PageSourceSearch

https://muscleup-2k.vercel.app/assets/index-Cfpamg6z.js

js muscleup-2k.vercel.app collected 2026-10-03 07:20:50 UTC 948,961 bytes, 1,650 lines download raw bytes

vendor: 5,780 bytes, lines 1-9
1function yk(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 o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Aw={exports:{}},Lf={},Ow={exports:{}},De={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ml=Symbol.for("react.element"),_k=Symbol.for("react.portal"),bk=Symbol.for("react.fragment"),wk=Symbol.for("react.strict_mode"),Sk=Symbol.for("react.profiler"),Ek=Symbol.for("react.provider"),Tk=Symbol.for("react.context"),xk=Symbol.for("react.forward_ref"),Rk=Symbol.for("react.suspense"),Ak=Symbol.for("react.memo"),Ok=Symbol.for("react.lazy"),zy=Symbol.iterator;function kk(e){return e===null||typeof e!="object"?null:(e=zy&&e[zy]||e["@@iterator"],typeof e=="function"?e:null)}var kw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cw=Object.assign,Pw={};function Os(e,t,n){this.props=e,this.context=t,this.refs=Pw,this.updater=n||kw}Os.prototype.isReactComponent={};Os.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")};Os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nw(){}Nw.prototype=Os.prototype;function _v(e,t,n){this.props=e,this.context=t,this.refs=Pw,this.updater=n||kw}var bv=_v.prototype=new Nw;bv.constructor=_v;Cw(bv,Os.prototype);bv.isPureReactComponent=!0;var qy=Array.isArray,Iw=Object.prototype.hasOwnProperty,wv={current:null},Lw={key:!0,ref:!0,__self:!0,__source:!0};function Dw(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Iw.call(t,r)&&!Lw.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ml,type:e,key:o,ref:s,props:i,_owner:wv.current}}function Ck(e,t){return{$$typeof:Ml,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Sv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ml}function Pk(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Hy=/\/+/g;function Zd(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Pk(""+e.key):t.toString(36)}function Yu(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ml:case _k:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Zd(s,0):r,qy(i)?(n="",e!=null&&(n=e.replace(Hy,"$&/")+"/"),Yu(i,t,n,"",function(u){return u})):i!=null&&(Sv(i)&&(i=Ck(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Hy,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",qy(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Zd(o,a);s+=Yu(o,t,n,l,i)}else if(l=kk(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Zd(o,a++),s+=Yu(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function pu(e,t,n){if(e==null)return e;var r=[],i=0;return Yu(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Nk(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 $t={current:null},Xu={transition:null},Ik={ReactCurrentDispatcher:$t,ReactCurrentBatchConfig:Xu,ReactCurrentOwner:wv};function Mw(){throw Error("act(...) is not supported in production builds of React.")}De.Children={map:pu,forEach:function(e,t,n){pu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return pu(e,function(){t++}),t},toArray:function(e){return pu(e,function(t){return t})||[]},only:function(e){if(!Sv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};De.Component=Os;De.Fragment=bk;De.Profiler=Sk;De.PureComponent=_v;De.StrictMode=wk;De.Suspense=Rk;
vendor: 4,811 bytes, lines 9-25
9De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ik;De.act=Mw;De.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=Cw({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=wv.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Iw.call(t,l)&&!Lw.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ml,type:e.type,key:i,ref:o,props:r,_owner:s}};De.createContext=function(e){return e={$$typeof:Tk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ek,_context:e},e.Consumer=e};De.createElement=Dw;De.createFactory=function(e){var t=Dw.bind(null,e);return t.type=e,t};De.createRef=function(){return{current:null}};De.forwardRef=function(e){return{$$typeof:xk,render:e}};De.isValidElement=Sv;De.lazy=function(e){return{$$typeof:Ok,_payload:{_status:-1,_result:e},_init:Nk}};De.memo=function(e,t){return{$$typeof:Ak,type:e,compare:t===void 0?null:t}};De.startTransition=function(e){var t=Xu.transition;Xu.transition={};try{e()}finally{Xu.transition=t}};De.unstable_act=Mw;De.useCallback=function(e,t){return $t.current.useCallback(e,t)};De.useContext=function(e){return $t.current.useContext(e)};De.useDebugValue=function(){};De.useDeferredValue=function(e){return $t.current.useDeferredValue(e)};De.useEffect=function(e,t){return $t.current.useEffect(e,t)};De.useId=function(){return $t.current.useId()};De.useImperativeHandle=function(e,t,n){return $t.current.useImperativeHandle(e,t,n)};De.useInsertionEffect=function(e,t){return $t.current.useInsertionEffect(e,t)};De.useLayoutEffect=function(e,t){return $t.current.useLayoutEffect(e,t)};De.useMemo=function(e,t){return $t.current.useMemo(e,t)};De.useReducer=function(e,t,n){return $t.current.useReducer(e,t,n)};De.useRef=function(e){return $t.current.useRef(e)};De.useState=function(e){return $t.current.useState(e)};De.useSyncExternalStore=function(e,t,n){return $t.current.useSyncExternalStore(e,t,n)};De.useTransition=function(){return $t.current.useTransition()};De.version="18.3.1";Ow.exports=De;var P=Ow.exports;const fe=yv(P),$w=yk({__proto__:null,default:fe},[P]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Lk=P,Dk=Symbol.for("react.element"),Mk=Symbol.for("react.fragment"),$k=Object.prototype.hasOwnProperty,jk=Lk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bk={key:!0,ref:!0,__self:!0,__source:!0};function jw(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)$k.call(t,r)&&!Bk.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:Dk,type:e,key:o,ref:s,props:i,_owner:jk.current}}Lf.Fragment=Mk;Lf.jsx=jw;Lf.jsxs=jw;Aw.exports=Lf;var Z=Aw.exports,mp={},Bw={exports:{}},sn={},Fw={exports:{}},Uw={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(H,j){var L=H.length;H.push(j);e:for(;0<L;){var k=L-1>>>1,A=H[k];if(0<i(A,j))H[k]=j,H[L]=A,L=k;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var j=H[0],L=H.pop();if(L!==j){H[0]=L;e:for(var k=0,A=H.length,D=A>>>1;k<D;){var B=2*(k+1)-1,U=H[B],I=B+1,F=H[I];if(0>i(U,L))I<A&&0>i(F,U)?(H[k]=F,H[I]=L,k=I):(H[k]=U,H[B]=L,k=B);else if(I<A&&0>i(F,L))H[k]=F,H[I]=L,k=I;else break e}}return j}function i(H,j){var L=H.sortIndex-j.sortIndex;return L!==0?L:H.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(H){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=H)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}
vendor: 9,390 bytes, lines 25-34
25function _(H){if(v=!1,y(H),!g)if(n(l)!==null)g=!0,z(w);else{var j=n(u);j!==null&&V(_,j.startTime-H)}}function w(H,j){g=!1,v&&(v=!1,m(S),S=-1),h=!0;var L=d;try{for(y(j),f=n(l);f!==null&&(!(f.expirationTime>j)||H&&!R());){var k=f.callback;if(typeof k=="function"){f.callback=null,d=f.priorityLevel;var A=k(f.expirationTime<=j);j=e.unstable_now(),typeof A=="function"?f.callback=A:f===n(l)&&r(l),y(j)}else r(l);f=n(l)}if(f!==null)var D=!0;else{var B=n(u);B!==null&&V(_,B.startTime-j),D=!1}return D}finally{f=null,d=L,h=!1}}var x=!1,E=null,S=-1,C=5,T=-1;function R(){return!(e.unstable_now()-T<C)}function O(){if(E!==null){var H=e.unstable_now();T=H;var j=!0;try{j=E(!0,H)}finally{j?N():(x=!1,E=null)}}else x=!1}var N;if(typeof p=="function")N=function(){p(O)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,$=M.port2;M.port1.onmessage=O,N=function(){$.postMessage(null)}}else N=function(){b(O,0)};function z(H){E=H,x||(x=!0,N())}function V(H,j){S=b(function(){H(e.unstable_now())},j)}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(H){H.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,z(w))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(H){switch(d){case 1:case 2:case 3:var j=3;break;default:j=d}var L=d;d=j;try{return H()}finally{d=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,j){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var L=d;d=H;try{return j()}finally{d=L}},e.unstable_scheduleCallback=function(H,j,L){var k=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?k+L:k):L=k,H){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=L+A,H={id:c++,callback:j,priorityLevel:H,startTime:L,expirationTime:A,sortIndex:-1},L>k?(H.sortIndex=L,t(u,H),n(l)===null&&H===n(u)&&(v?(m(S),S=-1):v=!0,V(_,L-k))):(H.sortIndex=A,t(l,H),g||h||(g=!0,z(w))),H},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(H){var j=d;return function(){var L=d;d=j;try{return H.apply(this,arguments)}finally{d=L}}}})(Uw);Fw.exports=Uw;var Fk=Fw.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var Uk=P,rn=Fk;function ne(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 Vw=new Set,za={};function vo(e,t){ls(e,t),ls(e+"Capture",t)}function ls(e,t){for(za[e]=t,e=0;e<t.length;e++)Vw.add(t[e])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vp=Object.prototype.hasOwnProperty,Vk=/^[: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]*$/,Wy={},Ky={};function zk(e){return vp.call(Ky,e)?!0:vp.call(Wy,e)?!1:Vk.test(e)?Ky[e]=!0:(Wy[e]=!0,!1)}function qk(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 Hk(e,t,n,r){if(t===null||typeof t>"u"||qk(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 jt(e,t,n,r,i,o,s){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=o,this.removeEmptyString=s}var Et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Et[e]=new jt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Et[t]=new jt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Et[e]=new jt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Et[e]=new jt(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){Et[e]=new jt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Et[e]=new jt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Et[e]=new jt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Et[e]=new jt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Et[e]=new jt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ev=/[\-:]([a-z])/g;function Tv(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(Ev,Tv);Et[t]=new jt(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(Ev,Tv);Et[t]=new jt(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(Ev,Tv);Et[t]=new jt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Et[e]=new jt(e,1,!1,e.toLowerCase(),null,!1,!1)});Et.xlinkHref=new jt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Et[e]=new jt(e,1,!1,e.toLowerCase(),null,!0,!0)});function xv(e,t,n,r){var i=Et.hasOwnProperty(t)?Et[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Hk(t,n,i,r)&&(n=null),r||i===null?zk(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 Ar=Uk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mu=Symbol.for("react.element"),Co=Symbol.for("react.portal"),Po=Symbol.for("react.fragment"),Rv=Symbol.for("react.strict_mode"),gp=Symbol.for("react.profiler"),zw=Symbol.for("react.provider"),qw=Symbol.for("react.context"),Av=Symbol.for("react.forward_ref"),yp=Symbol.for("react.suspense"),_p=Symbol.for("react.suspense_list"),Ov=Symbol.for("react.memo"),jr=Symbol.for("react.lazy"),Hw=Symbol.for("react.offscreen"),Gy=Symbol.iterator;function Xs(e){return e===null||typeof e!="object"?null:(e=Gy&&e[Gy]||e["@@iterator"],typeof e=="function"?e:null)}var at=Object.assign,Yd;function ma(e){if(Yd===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Yd=t&&t[1]||""}return`
34`+Yd+e}var Xd=!1;function Qd(e,t){if(!e||Xd)return"";Xd=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 4,297 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35`),o=r.stack.split(`
36`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
37`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Xd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ma(e):""}function Wk(e){switch(e.tag){case 5:return ma(e.type);case 16:return ma("Lazy");case 13:return ma("Suspense");case 19:return ma("SuspenseList");case 0:case 2:case 15:return e=Qd(e.type,!1),e;case 11:return e=Qd(e.type.render,!1),e;case 1:return e=Qd(e.type,!0),e;default:return""}}function bp(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 Po:return"Fragment";case Co:return"Portal";case gp:return"Profiler";case Rv:return"StrictMode";case yp:return"Suspense";case _p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qw:return(e.displayName||"Context")+".Consumer";case zw:return(e._context.displayName||"Context")+".Provider";case Av:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ov:return t=e.displayName||null,t!==null?t:bp(e.type)||"Memo";case jr:t=e._payload,e=e._init;try{return bp(e(t))}catch{}}return null}function Kk(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 bp(t);case 8:return t===Rv?"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 di(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ww(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gk(e){var t=Ww(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,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vu(e){e._valueTracker||(e._valueTracker=Gk(e))}function Kw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ww(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sc(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 wp(e,t){var n=t.checked;return at({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Zy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=di(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 Gw(e,t){t=t.checked,t!=null&&xv(e,"checked",t,!1)}function Sp(e,t){Gw(e,t);var n=di(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")?Ep(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ep(e,t.type,di(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,187 bytes, line 37
37function Yy(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 Ep(e,t,n){(t!=="number"||Sc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var va=Array.isArray;function Go(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=""+di(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 Tp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ne(91));return at({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xy(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ne(92));if(va(n)){if(1<n.length)throw Error(ne(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:di(n)}}function Zw(e,t){var n=di(t.value),r=di(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 Qy(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Yw(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 xp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Yw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gu,Xw=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(gu=gu||document.createElement("div"),gu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xa={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},Zk=["Webkit","ms","Moz","O"];Object.keys(xa).forEach(function(e){Zk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xa[t]=xa[e]})});function Qw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xa.hasOwnProperty(e)&&xa[e]?(""+t).trim():t+"px"}function Jw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Qw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Yk=at({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 Rp(e,t){if(t){if(Yk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ne(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ne(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ne(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ne(62))}}function Ap(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Op=null;function kv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kp=null,Zo=null,Yo=null;function Jy(e){if(e=Bl(e)){if(typeof kp!="function")throw Error(ne(280));var t=e.stateNode;t&&(t=Bf(t),kp(e.stateNode,e.type,t))}}function eS(e){Zo?Yo?Yo.push(e):Yo=[e]:Zo=e}function tS(){if(Zo){var e=Zo,t=Yo;if(Yo=Zo=null,Jy(e),t)for(e=0;e<t.length;e++)Jy(t[e])}}function nS(e,t){return e(t)}function rS(){}var Jd=!1;function iS(e,t,n){if(Jd)return e(t,n);Jd=!0;try{return nS(e,t,n)}finally{Jd=!1,(Zo!==null||Yo!==null)&&(rS(),tS())}}function Ha(e,t){var n=e.stateNode;if(n===null)return null;var r=Bf(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(ne(231,t,typeof n));return n}var Cp=!1;if(yr)try{var Qs={};Object.defineProperty(Qs,"passive",{get:function(){Cp=!0}}),window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs)}catch{Cp=!1}function Xk(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ra=!1,Ec=null,Tc=!1,Pp=null,Qk={onError:function(e){Ra=!0,Ec=e}};function Jk(e,t,n,r,i,o,s,a,l){Ra=!1,Ec=null,Xk.apply(Qk,arguments)}function eC(e,t,n,r,i,o,s,a,l){if(Jk.apply(this,arguments),Ra){if(Ra){var u=Ec;Ra=!1,Ec=null}else throw Error(ne(198));Tc||(Tc=!0,Pp=u)}}function go(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 oS(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 e0(e){if(go(e)!==e)throw Error(ne(188))}function tC(e){var t=e.alternate;if(!t){if(t=go(e),t===null)throw Error(ne(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return e0(i),e;if(o===r)return e0(i),t;o=o.sibling}throw Error(ne(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(ne(189))}}if(n.alternate!==r)throw Error(ne(190))}if(n.tag!==3)throw Error(ne(188));return n.stateNode.current===n?e:t}function sS(e){return e=tC(e),e!==null?aS(e):null}function aS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=aS(e);if(t!==null)return t;e=e.sibling}return null}var lS=rn.unstable_scheduleCallback,t0=rn.unstable_cancelCallback,nC=rn.unstable_shouldYield,rC=rn.unstable_requestPaint,ft=rn.unstable_now,iC=rn.unstable_getCurrentPriorityLevel,Cv=rn.unstable_ImmediatePriority,uS=rn.unstable_UserBlockingPriority,xc=rn.unstable_NormalPriority,oC=rn.unstable_LowPriority,cS=rn.unstable_IdlePriority,Df=null,Hn=null;function sC(e){if(Hn&&typeof Hn.onCommitFiberRoot=="function")try{Hn.onCommitFiberRoot(Df,e,void 0,(e.current.flags&128)===128)}catch{}}var kn=Math.clz32?Math.clz32:uC,aC=Math.log,lC=Math.LN2;function uC(e){return e>>>=0,e===0?32:31-(aC(e)/lC|0)|0}var yu=64,_u=4194304;function ga(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 Rc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=ga(a):(o&=s,o!==0&&(r=ga(o)))}else s=n&~i,s!==0?r=ga(s):o!==0&&(r=ga(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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-kn(t),i=1<<n,r|=e[n],t&=~i;return r}function cC(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 fC(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-kn(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=cC(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Np(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fS(){var e=yu;return yu<<=1,!(yu&4194240)&&(yu=64),e}function eh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $l(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kn(t),e[t]=n}function dC(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-kn(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Pv(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ue=0;function dS(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hS,Nv,pS,mS,vS,Ip=!1,bu=[],Qr=null,Jr=null,ei=null,Wa=new Map,Ka=new Map,Vr=[],hC="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 n0(e,t){switch(e){case"focusin":case"focusout":Qr=null;break;case"dragenter":case"dragleave":Jr=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":Wa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ka.delete(t.pointerId)}}function Js(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Bl(t),t!==null&&Nv(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pC(e,t,n,r,i){switch(t){case"focusin":return Qr=Js(Qr,e,t,n,r,i),!0;case"dragenter":return Jr=Js(Jr,e,t,n,r,i),!0;case"mouseover":return ei=Js(ei,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Wa.set(o,Js(Wa.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ka.set(o,Js(Ka.get(o)||null,e,t,n,r,i)),!0}return!1}function gS(e){var t=zi(e.target);if(t!==null){var n=go(t);if(n!==null){if(t=n.tag,t===13){if(t=oS(n),t!==null){e.blockedOn=t,vS(e.priority,function(){pS(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 Qu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Op=r,n.target.dispatchEvent(r),Op=null}else return t=Bl(n),t!==null&&Nv(t),e.blockedOn=n,!1;t.shift()}return!0}
vendor: 11,995 bytes, line 37
37function r0(e,t,n){Qu(e)&&n.delete(t)}function mC(){Ip=!1,Qr!==null&&Qu(Qr)&&(Qr=null),Jr!==null&&Qu(Jr)&&(Jr=null),ei!==null&&Qu(ei)&&(ei=null),Wa.forEach(r0),Ka.forEach(r0)}function ea(e,t){e.blockedOn===t&&(e.blockedOn=null,Ip||(Ip=!0,rn.unstable_scheduleCallback(rn.unstable_NormalPriority,mC)))}function Ga(e){function t(i){return ea(i,e)}if(0<bu.length){ea(bu[0],e);for(var n=1;n<bu.length;n++){var r=bu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Qr!==null&&ea(Qr,e),Jr!==null&&ea(Jr,e),ei!==null&&ea(ei,e),Wa.forEach(t),Ka.forEach(t),n=0;n<Vr.length;n++)r=Vr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vr.length&&(n=Vr[0],n.blockedOn===null);)gS(n),n.blockedOn===null&&Vr.shift()}var Xo=Ar.ReactCurrentBatchConfig,Ac=!0;function vC(e,t,n,r){var i=Ue,o=Xo.transition;Xo.transition=null;try{Ue=1,Iv(e,t,n,r)}finally{Ue=i,Xo.transition=o}}function gC(e,t,n,r){var i=Ue,o=Xo.transition;Xo.transition=null;try{Ue=4,Iv(e,t,n,r)}finally{Ue=i,Xo.transition=o}}function Iv(e,t,n,r){if(Ac){var i=Lp(e,t,n,r);if(i===null)ch(e,t,r,Oc,n),n0(e,r);else if(pC(i,e,t,n,r))r.stopPropagation();else if(n0(e,r),t&4&&-1<hC.indexOf(e)){for(;i!==null;){var o=Bl(i);if(o!==null&&hS(o),o=Lp(e,t,n,r),o===null&&ch(e,t,r,Oc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ch(e,t,r,null,n)}}var Oc=null;function Lp(e,t,n,r){if(Oc=null,e=kv(r),e=zi(e),e!==null)if(t=go(e),t===null)e=null;else if(n=t.tag,n===13){if(e=oS(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 Oc=e,null}function yS(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(iC()){case Cv:return 1;case uS:return 4;case xc:case oC:return 16;case cS:return 536870912;default:return 16}default:return 16}}var Gr=null,Lv=null,Ju=null;function _S(){if(Ju)return Ju;var e,t=Lv,n=t.length,r,i="value"in Gr?Gr.value:Gr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Ju=i.slice(e,1<r?1-r:void 0)}function ec(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 wu(){return!0}function i0(){return!1}function an(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?wu:i0,this.isPropagationStopped=i0,this}return at(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=wu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),t}var ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dv=an(ks),jl=at({},ks,{view:0,detail:0}),yC=an(jl),th,nh,ta,Mf=at({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mv,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!==ta&&(ta&&e.type==="mousemove"?(th=e.screenX-ta.screenX,nh=e.screenY-ta.screenY):nh=th=0,ta=e),th)},movementY:function(e){return"movementY"in e?e.movementY:nh}}),o0=an(Mf),_C=at({},Mf,{dataTransfer:0}),bC=an(_C),wC=at({},jl,{relatedTarget:0}),rh=an(wC),SC=at({},ks,{animationName:0,elapsedTime:0,pseudoElement:0}),EC=an(SC),TC=at({},ks,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xC=an(TC),RC=at({},ks,{data:0}),s0=an(RC),AC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},OC={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"},kC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function CC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kC[e])?!!t[e]:!1}function Mv(){return CC}var PC=at({},jl,{key:function(e){if(e.key){var t=AC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ec(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?OC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mv,charCode:function(e){return e.type==="keypress"?ec(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ec(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NC=an(PC),IC=at({},Mf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),a0=an(IC),LC=at({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mv}),DC=an(LC),MC=at({},ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),$C=an(MC),jC=at({},Mf,{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}),BC=an(jC),FC=[9,13,27,32],$v=yr&&"CompositionEvent"in window,Aa=null;yr&&"documentMode"in document&&(Aa=document.documentMode);var UC=yr&&"TextEvent"in window&&!Aa,bS=yr&&(!$v||Aa&&8<Aa&&11>=Aa),l0=" ",u0=!1;function wS(e,t){switch(e){case"keyup":return FC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function SS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var No=!1;function VC(e,t){switch(e){case"compositionend":return SS(t);case"keypress":return t.which!==32?null:(u0=!0,l0);case"textInput":return e=t.data,e===l0&&u0?null:e;default:return null}}function zC(e,t){if(No)return e==="compositionend"||!$v&&wS(e,t)?(e=_S(),Ju=Lv=Gr=null,No=!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 bS&&t.locale!=="ko"?null:t.data;default:return null}}var qC={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 c0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qC[e.type]:t==="textarea"}function ES(e,t,n,r){eS(r),t=kc(t,"onChange"),0<t.length&&(n=new Dv("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Oa=null,Za=null;function HC(e){LS(e,0)}function $f(e){var t=Do(e);if(Kw(t))return e}function WC(e,t){if(e==="change")return t}var TS=!1;if(yr){var ih;if(yr){var oh="oninput"in document;if(!oh){var f0=document.createElement("div");f0.setAttribute("oninput","return;"),oh=typeof f0.oninput=="function"}ih=oh}else ih=!1;TS=ih&&(!document.documentMode||9<document.documentMode)}function d0(){Oa&&(Oa.detachEvent("onpropertychange",xS),Za=Oa=null)}function xS(e){if(e.propertyName==="value"&&$f(Za)){var t=[];ES(t,Za,e,kv(e)),iS(HC,t)}}function KC(e,t,n){e==="focusin"?(d0(),Oa=t,Za=n,Oa.attachEvent("onpropertychange",xS)):e==="focusout"&&d0()}function GC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $f(Za)}function ZC(e,t){if(e==="click")return $f(t)}function YC(e,t){if(e==="input"||e==="change")return $f(t)}function XC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ln=typeof Object.is=="function"?Object.is:XC;function Ya(e,t){if(Ln(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(!vp.call(t,i)||!Ln(e[i],t[i]))return!1}return!0}function h0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function p0(e,t){var n=h0(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=h0(n)}}function RS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?RS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function AS(){for(var e=window,t=Sc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sc(e.document)}return t}function jv(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 QC(e){var t=AS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&RS(n.ownerDocument.documentElement,n)){if(r!==null&&jv(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,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=p0(n,o);var s=p0(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var JC=yr&&"documentMode"in document&&11>=document.documentMode,Io=null,Dp=null,ka=null,Mp=!1;function m0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mp||Io==null||Io!==Sc(r)||(r=Io,"selectionStart"in r&&jv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),ka&&Ya(ka,r)||(ka=r,r=kc(Dp,"onSelect"),0<r.length&&(t=new Dv("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Io)))}function Su(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Lo={animationend:Su("Animation","AnimationEnd"),animationiteration:Su("Animation","AnimationIteration"),animationstart:Su("Animation","AnimationStart"),transitionend:Su("Transition","TransitionEnd")},sh={},OS={};yr&&(OS=document.createElement("div").style,"AnimationEvent"in window||(delete Lo.animationend.animation,delete Lo.animationiteration.animation,delete Lo.animationstart.animation),"TransitionEvent"in window||delete Lo.transitionend.transition);function jf(e){if(sh[e])return sh[e];if(!Lo[e])return e;var t=Lo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in OS)return sh[e]=t[n];return e}var kS=jf("animationend"),CS=jf("animationiteration"),PS=jf("animationstart"),NS=jf("transitionend"),IS=new Map,v0="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 Si(e,t){IS.set(e,t),vo(t,[e])}for(var ah=0;ah<v0.length;ah++){var lh=v0[ah],eP=lh.toLowerCase(),tP=lh[0].toUpperCase()+lh.slice(1);Si(eP,"on"+tP)}Si(kS,"onAnimationEnd");Si(CS,"onAnimationIteration");Si(PS,"onAnimationStart");Si("dblclick","onDoubleClick");Si("focusin","onFocus");Si("focusout","onBlur");Si(NS,"onTransitionEnd");ls("onMouseEnter",["mouseout","mouseover"]);ls("onMouseLeave",["mouseout","mouseover"]);ls("onPointerEnter",["pointerout","pointerover"]);ls("onPointerLeave",["pointerout","pointerover"]);vo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vo("onBeforeInput",["compositionend","keypress","textInput","paste"]);vo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ya="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(" "),nP=new Set("cancel close invalid load scroll toggle".split(" ").concat(ya));function g0(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,eC(r,t,void 0,e),e.currentTarget=null}function LS(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 o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;g0(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;g0(i,a,u),o=l}}}if(Tc)throw e=Pp,Tc=!1,Pp=null,e}function Ze(e,t){var n=t[Up];n===void 0&&(n=t[Up]=new Set);var r=e+"__bubble";n.has(r)||(DS(t,e,2,!1),n.add(r))}function uh(e,t,n){var r=0;t&&(r|=4),DS(n,e,r,t)}var Eu="_reactListening"+Math.random().toString(36).slice(2);function Xa(e){if(!e[Eu]){e[Eu]=!0,Vw.forEach(function(n){n!=="selectionchange"&&(nP.has(n)||uh(n,!1,e),uh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Eu]||(t[Eu]=!0,uh("selectionchange",!1,t))}}function DS(e,t,n,r){switch(yS(t)){case 1:var i=vC;break;case 4:i=gC;break;default:i=Iv}n=i.bind(null,t,n,e),i=void 0,!Cp||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 ch(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;
vendor: 6,039 bytes, lines 37-38
37if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=zi(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}iS(function(){var u=o,c=kv(n),f=[];e:{var d=IS.get(e);if(d!==void 0){var h=Dv,g=e;switch(e){case"keypress":if(ec(n)===0)break e;case"keydown":case"keyup":h=NC;break;case"focusin":g="focus",h=rh;break;case"focusout":g="blur",h=rh;break;case"beforeblur":case"afterblur":h=rh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=o0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=bC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=DC;break;case kS:case CS:case PS:h=EC;break;case NS:h=$C;break;case"scroll":h=yC;break;case"wheel":h=BC;break;case"copy":case"cut":case"paste":h=xC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=a0}var v=(t&4)!==0,b=!v&&e==="scroll",m=v?d!==null?d+"Capture":null:d;v=[];for(var p=u,y;p!==null;){y=p;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,m!==null&&(_=Ha(p,m),_!=null&&v.push(Qa(p,_,y)))),b)break;p=p.return}0<v.length&&(d=new h(d,g,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Op&&(g=n.relatedTarget||n.fromElement)&&(zi(g)||g[_r]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?zi(g):null,g!==null&&(b=go(g),g!==b||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=o0,_="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=a0,_="onPointerLeave",m="onPointerEnter",p="pointer"),b=h==null?d:Do(h),y=g==null?d:Do(g),d=new v(_,p+"leave",h,n,c),d.target=b,d.relatedTarget=y,_=null,zi(c)===u&&(v=new v(m,p+"enter",g,n,c),v.target=y,v.relatedTarget=b,_=v),b=_,h&&g)t:{for(v=h,m=g,p=0,y=v;y;y=Eo(y))p++;for(y=0,_=m;_;_=Eo(_))y++;for(;0<p-y;)v=Eo(v),p--;for(;0<y-p;)m=Eo(m),y--;for(;p--;){if(v===m||m!==null&&v===m.alternate)break t;v=Eo(v),m=Eo(m)}v=null}else v=null;h!==null&&y0(f,d,h,v,!1),g!==null&&b!==null&&y0(f,b,g,v,!0)}}e:{if(d=u?Do(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var w=WC;else if(c0(d))if(TS)w=YC;else{w=GC;var x=KC}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=ZC);if(w&&(w=w(e,u))){ES(f,w,n,c);break e}x&&x(e,d,u),e==="focusout"&&(x=d._wrapperState)&&x.controlled&&d.type==="number"&&Ep(d,"number",d.value)}switch(x=u?Do(u):window,e){case"focusin":(c0(x)||x.contentEditable==="true")&&(Io=x,Dp=u,ka=null);break;case"focusout":ka=Dp=Io=null;break;case"mousedown":Mp=!0;break;case"contextmenu":case"mouseup":case"dragend":Mp=!1,m0(f,n,c);break;case"selectionchange":if(JC)break;case"keydown":case"keyup":m0(f,n,c)}var E;if($v)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else No?wS(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(bS&&n.locale!=="ko"&&(No||S!=="onCompositionStart"?S==="onCompositionEnd"&&No&&(E=_S()):(Gr=c,Lv="value"in Gr?Gr.value:Gr.textContent,No=!0)),x=kc(u,S),0<x.length&&(S=new s0(S,e,null,n,c),f.push({event:S,listeners:x}),E?S.data=E:(E=SS(n),E!==null&&(S.data=E)))),(E=UC?VC(e,n):zC(e,n))&&(u=kc(u,"onBeforeInput"),0<u.length&&(c=new s0("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}LS(f,t)})}function Qa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ha(e,n),o!=null&&r.unshift(Qa(e,o,i)),o=Ha(e,t),o!=null&&r.push(Qa(e,o,i))),e=e.return}return r}function Eo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function y0(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Ha(n,o),l!=null&&s.unshift(Qa(n,l,a))):i||(l=Ha(n,o),l!=null&&s.push(Qa(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var rP=/\r\n?/g,iP=/\u0000|\uFFFD/g;function _0(e){return(typeof e=="string"?e:""+e).replace(rP,`
38`).replace(iP,"")}function Tu(e,t,n){if(t=_0(t),_0(e)!==t&&n)throw Error(ne(425))}function Cc(){}var $p=null,jp=null;function Bp(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 Fp=typeof setTimeout=="function"?setTimeout:void 0,oP=typeof clearTimeout=="function"?clearTimeout:void 0,b0=typeof Promise=="function"?Promise:void 0,sP=typeof queueMicrotask=="function"?queueMicrotask:typeof b0<"u"?function(e){return b0.resolve(null).then(e).catch(aP)}:Fp;function aP(e){setTimeout(function(){throw e})}function fh(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),Ga(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ga(t)}function ti(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 w0(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 Cs=Math.random().toString(36).slice(2),Vn="__reactFiber$"+Cs,Ja="__reactProps$"+Cs,_r
vendor: 4,200 bytes, line 38
38="__reactContainer$"+Cs,Up="__reactEvents$"+Cs,lP="__reactListeners$"+Cs,uP="__reactHandles$"+Cs;function zi(e){var t=e[Vn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_r]||n[Vn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=w0(e);e!==null;){if(n=e[Vn])return n;e=w0(e)}return t}e=n,n=e.parentNode}return null}function Bl(e){return e=e[Vn]||e[_r],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Do(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ne(33))}function Bf(e){return e[Ja]||null}var Vp=[],Mo=-1;function Ei(e){return{current:e}}function Qe(e){0>Mo||(e.current=Vp[Mo],Vp[Mo]=null,Mo--)}function We(e,t){Mo++,Vp[Mo]=e.current,e.current=t}var hi={},Ct=Ei(hi),zt=Ei(!1),eo=hi;function us(e,t){var n=e.type.contextTypes;if(!n)return hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qt(e){return e=e.childContextTypes,e!=null}function Pc(){Qe(zt),Qe(Ct)}function S0(e,t,n){if(Ct.current!==hi)throw Error(ne(168));We(Ct,t),We(zt,n)}function MS(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(ne(108,Kk(e)||"Unknown",i));return at({},n,r)}function Nc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hi,eo=Ct.current,We(Ct,e),We(zt,zt.current),!0}function E0(e,t,n){var r=e.stateNode;if(!r)throw Error(ne(169));n?(e=MS(e,t,eo),r.__reactInternalMemoizedMergedChildContext=e,Qe(zt),Qe(Ct),We(Ct,e)):Qe(zt),We(zt,n)}var or=null,Ff=!1,dh=!1;function $S(e){or===null?or=[e]:or.push(e)}function cP(e){Ff=!0,$S(e)}function Ti(){if(!dh&&or!==null){dh=!0;var e=0,t=Ue;try{var n=or;for(Ue=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}or=null,Ff=!1}catch(i){throw or!==null&&(or=or.slice(e+1)),lS(Cv,Ti),i}finally{Ue=t,dh=!1}}return null}var $o=[],jo=0,Ic=null,Lc=0,fn=[],dn=0,to=null,ar=1,lr="";function Mi(e,t){$o[jo++]=Lc,$o[jo++]=Ic,Ic=e,Lc=t}function jS(e,t,n){fn[dn++]=ar,fn[dn++]=lr,fn[dn++]=to,to=e;var r=ar;e=lr;var i=32-kn(r)-1;r&=~(1<<i),n+=1;var o=32-kn(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ar=1<<32-kn(t)+i|n<<i|r,lr=o+e}else ar=1<<o|n<<i|r,lr=e}function Bv(e){e.return!==null&&(Mi(e,1),jS(e,1,0))}function Fv(e){for(;e===Ic;)Ic=$o[--jo],$o[jo]=null,Lc=$o[--jo],$o[jo]=null;for(;e===to;)to=fn[--dn],fn[dn]=null,lr=fn[--dn],fn[dn]=null,ar=fn[--dn],fn[dn]=null}var en=null,Qt=null,tt=!1,Rn=null;function BS(e,t){var n=hn(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 T0(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,en=e,Qt=ti(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,en=e,Qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=to!==null?{id:ar,overflow:lr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=hn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,en=e,Qt=null,!0):!1;default:return!1}}function zp(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qp(e){if(tt){var t=Qt;if(t){var n=t;if(!T0(e,t)){if(zp(e))throw Error(ne(418));t=ti(n.nextSibling);var r=en;t&&T0(e,t)?BS(r,n):(e.flags=e.flags&-4097|2,tt=!1,en=e)}}else{if(zp(e))throw Error(ne(418));e.flags=e.flags&-4097|2,tt=!1,en=e}}}function x0(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;en=e}function xu(e){if(e!==en)return!1;if(!tt)return x0(e),tt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bp(e.type,e.memoizedProps)),t&&(t=Qt)){if(zp(e))throw FS(),Error(ne(418));for(;t;)BS(e,t),t=ti(t.nextSibling)}if(x0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ne(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qt=ti(e.nextSibling);break e}t--}
vendor: 14,143 bytes, line 38
38else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qt=null}}else Qt=en?ti(e.stateNode.nextSibling):null;return!0}function FS(){for(var e=Qt;e;)e=ti(e.nextSibling)}function cs(){Qt=en=null,tt=!1}function Uv(e){Rn===null?Rn=[e]:Rn.push(e)}var fP=Ar.ReactCurrentBatchConfig;function na(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(ne(309));var r=n.stateNode}if(!r)throw Error(ne(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(ne(284));if(!n._owner)throw Error(ne(290,e))}return e}function Ru(e,t){throw e=Object.prototype.toString.call(t),Error(ne(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function R0(e){var t=e._init;return t(e._payload)}function US(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=oi(m,p),m.index=0,m.sibling=null,m}function o(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,y,_){return p===null||p.tag!==6?(p=_h(y,m.mode,_),p.return=m,p):(p=i(p,y),p.return=m,p)}function l(m,p,y,_){var w=y.type;return w===Po?c(m,p,y.props.children,_,y.key):p!==null&&(p.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===jr&&R0(w)===p.type)?(_=i(p,y.props),_.ref=na(m,p,y),_.return=m,_):(_=ac(y.type,y.key,y.props,null,m.mode,_),_.ref=na(m,p,y),_.return=m,_)}function u(m,p,y,_){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=bh(y,m.mode,_),p.return=m,p):(p=i(p,y.children||[]),p.return=m,p)}function c(m,p,y,_,w){return p===null||p.tag!==7?(p=Zi(y,m.mode,_,w),p.return=m,p):(p=i(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=_h(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case mu:return y=ac(p.type,p.key,p.props,null,m.mode,y),y.ref=na(m,null,p),y.return=m,y;case Co:return p=bh(p,m.mode,y),p.return=m,p;case jr:var _=p._init;return f(m,_(p._payload),y)}if(va(p)||Xs(p))return p=Zi(p,m.mode,y,null),p.return=m,p;Ru(m,p)}return null}function d(m,p,y,_){var w=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return w!==null?null:a(m,p,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case mu:return y.key===w?l(m,p,y,_):null;case Co:return y.key===w?u(m,p,y,_):null;case jr:return w=y._init,d(m,p,w(y._payload),_)}if(va(y)||Xs(y))return w!==null?null:c(m,p,y,_,null);Ru(m,y)}return null}function h(m,p,y,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return m=m.get(y)||null,a(p,m,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case mu:return m=m.get(_.key===null?y:_.key)||null,l(p,m,_,w);case Co:return m=m.get(_.key===null?y:_.key)||null,u(p,m,_,w);case jr:var x=_._init;return h(m,p,y,x(_._payload),w)}if(va(_)||Xs(_))return m=m.get(y)||null,c(p,m,_,w,null);Ru(p,_)}return null}function g(m,p,y,_){for(var w=null,x=null,E=p,S=p=0,C=null;E!==null&&S<y.length;S++){E.index>S?(C=E,E=null):C=E.sibling;var T=d(m,E,y[S],_);if(T===null){E===null&&(E=C);break}e&&E&&T.alternate===null&&t(m,E),p=o(T,p,S),x===null?w=T:x.sibling=T,x=T,E=C}if(S===y.length)return n(m,E),tt&&Mi(m,S),w;if(E===null){for(;S<y.length;S++)E=f(m,y[S],_),E!==null&&(p=o(E,p,S),x===null?w=E:x.sibling=E,x=E);return tt&&Mi(m,S),w}for(E=r(m,E);S<y.length;S++)C=h(E,m,S,y[S],_),C!==null&&(e&&C.alternate!==null&&E.delete(C.key===null?S:C.key),p=o(C,p,S),x===null?w=C:x.sibling=C,x=C);return e&&E.forEach(function(R){return t(m,R)}),tt&&Mi(m,S),w}function v(m,p,y,_){var w=Xs(y);if(typeof w!="function")throw Error(ne(150));if(y=w.call(y),y==null)throw Error(ne(151));for(var x=w=null,E=p,S=p=0,C=null,T=y.next();E!==null&&!T.done;S++,T=y.next()){E.index>S?(C=E,E=null):C=E.sibling;var R=d(m,E,T.value,_);if(R===null){E===null&&(E=C);break}e&&E&&R.alternate===null&&t(m,E),p=o(R,p,S),x===null?w=R:x.sibling=R,x=R,E=C}if(T.done)return n(m,E),tt&&Mi(m,S),w;if(E===null){for(;!T.done;S++,T=y.next())T=f(m,T.value,_),T!==null&&(p=o(T,p,S),x===null?w=T:x.sibling=T,x=T);return tt&&Mi(m,S),w}for(E=r(m,E);!T.done;S++,T=y.next())T=h(E,m,S,T.value,_),T!==null&&(e&&T.alternate!==null&&E.delete(T.key===null?S:T.key),p=o(T,p,S),x===null?w=T:x.sibling=T,x=T);return e&&E.forEach(function(O){return t(m,O)}),tt&&Mi(m,S),w}function b(m,p,y,_){if(typeof y=="object"&&y!==null&&y.type===Po&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case mu:e:{for(var w=y.key,x=p;x!==null;){if(x.key===w){if(w=y.type,w===Po){if(x.tag===7){n(m,x.sibling),p=i(x,y.props.children),p.return=m,m=p;break e}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===jr&&R0(w)===x.type){n(m,x.sibling),p=i(x,y.props),p.ref=na(m,x,y),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}y.type===Po?(p=Zi(y.props.children,m.mode,_,y.key),p.return=m,m=p):(_=ac(y.type,y.key,y.props,null,m.mode,_),_.ref=na(m,p,y),_.return=m,m=_)}return s(m);case Co:e:{for(x=y.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=i(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=bh(y,m.mode,_),p.return=m,m=p}return s(m);case jr:return x=y._init,b(m,p,x(y._payload),_)}if(va(y))return g(m,p,y,_);if(Xs(y))return v(m,p,y,_);Ru(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,y),p.return=m,m=p):(n(m,p),p=_h(y,m.mode,_),p.return=m,m=p),s(m)):n(m,p)}return b}var fs=US(!0),VS=US(!1),Dc=Ei(null),Mc=null,Bo=null,Vv=null;function zv(){Vv=Bo=Mc=null}function qv(e){var t=Dc.current;Qe(Dc),e._currentValue=t}function Hp(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 Qo(e,t){Mc=e,Vv=Bo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Vt=!0),e.firstContext=null)}function vn(e){var t=e._currentValue;if(Vv!==e)if(e={context:e,memoizedValue:t,next:null},Bo===null){if(Mc===null)throw Error(ne(308));Bo=e,Mc.dependencies={lanes:0,firstContext:e}}else Bo=Bo.next=e;return t}var qi=null;function Hv(e){qi===null?qi=[e]:qi.push(e)}function zS(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Hv(t)):(n.next=i.next,i.next=n),t.interleaved=n,br(e,r)}function br(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 Br=!1;function Wv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qS(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 hr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ni(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,je&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,br(e,n)}return i=r.interleaved,i===null?(t.next=t,Hv(r)):(t.next=i.next,i.next=t),r.interleaved=t,br(e,n)}function tc(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,Pv(e,n)}}function A0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,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 $c(e,t,n,r){var i=e.updateQueue;Br=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,c=u=l=null,a=o;do{var d=a.lane,h=a.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,v=a;switch(d=t,h=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(h,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(h,f,d):g,d==null)break e;f=at({},f,d);break e;case 2:Br=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ro|=s,e.lanes=s,e.memoizedState=f}}function O0(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(ne(191,i));i.call(r)}}}var Fl={},Wn=Ei(Fl),el=Ei(Fl),tl=Ei(Fl);function Hi(e){if(e===Fl)throw Error(ne(174));return e}function Kv(e,t){switch(We(tl,t),We(el,e),We(Wn,Fl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xp(t,e)}Qe(Wn),We(Wn,t)}function ds(){Qe(Wn),Qe(el),Qe(tl)}function HS(e){Hi(tl.current);var t=Hi(Wn.current),n=xp(t,e.type);t!==n&&(We(el,e),We(Wn,n))}function Gv(e){el.current===e&&(Qe(Wn),Qe(el))}var it=Ei(0);function jc(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 hh=[];function Zv(){for(var e=0;e<hh.length;e++)hh[e]._workInProgressVersionPrimary=null;hh.length=0}var nc=Ar.ReactCurrentDispatcher,ph=Ar.ReactCurrentBatchConfig,no=0,st=null,mt=null,yt=null,Bc=!1,Ca=!1,nl=0,dP=0;function Tt(){throw Error(ne(321))}function Yv(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ln(e[n],t[n]))return!1;return!0}function Xv(e,t,n,r,i,o){if(no=o,st=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,nc.current=e===null||e.memoizedState===null?vP:gP,e=n(r,i),Ca){o=0;do{if(Ca=!1,nl=0,25<=o)throw Error(ne(301));o+=1,yt=mt=null,t.updateQueue=null,nc.current=yP,e=n(r,i)}while(Ca)}if(nc.current=Fc,t=mt!==null&&mt.next!==null,no=0,yt=mt=st=null,Bc=!1,t)throw Error(ne(300));return e}function Qv(){var e=nl!==0;return nl=0,e}function Un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?st.memoizedState=yt=e:yt=yt.next=e,yt}function gn(){if(mt===null){var e=st.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var t=yt===null?st.memoizedState:yt.next;if(t!==null)yt=t,mt=e;else{if(e===null)throw Error(ne(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},yt===null?st.memoizedState=yt=e:yt=yt.next=e}return yt}function rl(e,t){return typeof t=="function"?t(e):t}function mh(e){var t=gn(),n=t.queue;if(n===null)throw Error(ne(311));n.lastRenderedReducer=e;var r=mt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var c=u.lane;if((no&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,st.lanes|=c,ro|=c}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Ln(r,t.memoizedState)||(Vt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,st.lanes|=o,ro|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vh(e){var t=gn(),n=t.queue;if(n===null)throw Error(ne(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Ln(o,t.memoizedState)||(Vt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function WS(){}function KS(e,t){var n=st,r=gn(),i=t(),o=!Ln(r.memoizedState,i);if(o&&(r.memoizedState=i,Vt=!0),r=r.queue,Jv(YS.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||yt!==null&&yt.memoizedState.tag&1){if(n.flags|=2048,il(9,ZS.bind(null,n,r,i,t),void 0,null),_t===null)throw Error(ne(349));no&30||GS(n,t,i)}return i}function GS(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ZS(e,t,n,r){t.value=n,t.getSnapshot=r,XS(t)&&QS(e)}
vendor: 4,384 bytes, line 38
38function YS(e,t,n){return n(function(){XS(t)&&QS(e)})}function XS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ln(e,n)}catch{return!0}}function QS(e){var t=br(e,1);t!==null&&Cn(t,e,1,-1)}function k0(e){var t=Un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:e},t.queue=e,e=e.dispatch=mP.bind(null,st,e),[t.memoizedState,e]}function il(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=st.updateQueue,t===null?(t={lastEffect:null,stores:null},st.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 JS(){return gn().memoizedState}function rc(e,t,n,r){var i=Un();st.flags|=e,i.memoizedState=il(1|t,n,void 0,r===void 0?null:r)}function Uf(e,t,n,r){var i=gn();r=r===void 0?null:r;var o=void 0;if(mt!==null){var s=mt.memoizedState;if(o=s.destroy,r!==null&&Yv(r,s.deps)){i.memoizedState=il(t,n,o,r);return}}st.flags|=e,i.memoizedState=il(1|t,n,o,r)}function C0(e,t){return rc(8390656,8,e,t)}function Jv(e,t){return Uf(2048,8,e,t)}function eE(e,t){return Uf(4,2,e,t)}function tE(e,t){return Uf(4,4,e,t)}function nE(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 rE(e,t,n){return n=n!=null?n.concat([e]):null,Uf(4,4,nE.bind(null,t,e),n)}function eg(){}function iE(e,t){var n=gn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yv(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oE(e,t){var n=gn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yv(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sE(e,t,n){return no&21?(Ln(n,t)||(n=fS(),st.lanes|=n,ro|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vt=!0),e.memoizedState=n)}function hP(e,t){var n=Ue;Ue=n!==0&&4>n?n:4,e(!0);var r=ph.transition;ph.transition={};try{e(!1),t()}finally{Ue=n,ph.transition=r}}function aE(){return gn().memoizedState}function pP(e,t,n){var r=ii(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lE(e))uE(t,n);else if(n=zS(e,t,n,r),n!==null){var i=Dt();Cn(n,e,r,i),cE(n,t,r)}}function mP(e,t,n){var r=ii(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lE(e))uE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Ln(a,s)){var l=t.interleaved;l===null?(i.next=i,Hv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=zS(e,t,i,r),n!==null&&(i=Dt(),Cn(n,e,r,i),cE(n,t,r))}}function lE(e){var t=e.alternate;return e===st||t!==null&&t===st}function uE(e,t){Ca=Bc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pv(e,n)}}var Fc={readContext:vn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},vP={readContext:vn,useCallback:function(e,t){return Un().memoizedState=[e,t===void 0?null:t],e},useContext:vn,useEffect:C0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,rc(4194308,4,nE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rc(4194308,4,e,t)},useInsertionEffect:function(e,t){return rc(4,2,e,t)},useMemo:function(e,t){var n=Un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Un();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=pP.bind(null,st,e),[r.memoizedState,e]},useRef:function(e){var t=Un();return e={current:e},t.memoizedState=e},useState:k0,useDebugValue:eg,useDeferredValue:function(e){return Un().memoizedState=e},useTransition:function(){var e=k0(!1),t=e[0];return e=hP.bind(null,e[1]),Un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=st,i=Un();if(tt){if(n===void 0)throw Error(ne(407));n=n()}else{if(n=t(),_t===null)throw Error(ne(349));
vendor: 5,645 bytes, lines 38-40
38no&30||GS(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,C0(YS.bind(null,r,o,e),[e]),r.flags|=2048,il(9,ZS.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Un(),t=_t.identifierPrefix;if(tt){var n=lr,r=ar;n=(r&~(1<<32-kn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=nl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=dP++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gP={readContext:vn,useCallback:iE,useContext:vn,useEffect:Jv,useImperativeHandle:rE,useInsertionEffect:eE,useLayoutEffect:tE,useMemo:oE,useReducer:mh,useRef:JS,useState:function(){return mh(rl)},useDebugValue:eg,useDeferredValue:function(e){var t=gn();return sE(t,mt.memoizedState,e)},useTransition:function(){var e=mh(rl)[0],t=gn().memoizedState;return[e,t]},useMutableSource:WS,useSyncExternalStore:KS,useId:aE,unstable_isNewReconciler:!1},yP={readContext:vn,useCallback:iE,useContext:vn,useEffect:Jv,useImperativeHandle:rE,useInsertionEffect:eE,useLayoutEffect:tE,useMemo:oE,useReducer:vh,useRef:JS,useState:function(){return vh(rl)},useDebugValue:eg,useDeferredValue:function(e){var t=gn();return mt===null?t.memoizedState=e:sE(t,mt.memoizedState,e)},useTransition:function(){var e=vh(rl)[0],t=gn().memoizedState;return[e,t]},useMutableSource:WS,useSyncExternalStore:KS,useId:aE,unstable_isNewReconciler:!1};function Tn(e,t){if(e&&e.defaultProps){t=at({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Wp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:at({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vf={isMounted:function(e){return(e=e._reactInternals)?go(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Dt(),i=ii(e),o=hr(r,i);o.payload=t,n!=null&&(o.callback=n),t=ni(e,o,i),t!==null&&(Cn(t,e,i,r),tc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Dt(),i=ii(e),o=hr(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ni(e,o,i),t!==null&&(Cn(t,e,i,r),tc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Dt(),r=ii(e),i=hr(n,r);i.tag=2,t!=null&&(i.callback=t),t=ni(e,i,r),t!==null&&(Cn(t,e,r,n),tc(t,e,r))}};function P0(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ya(n,r)||!Ya(i,o):!0}function fE(e,t,n){var r=!1,i=hi,o=t.contextType;return typeof o=="object"&&o!==null?o=vn(o):(i=qt(t)?eo:Ct.current,r=t.contextTypes,o=(r=r!=null)?us(e,i):hi),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Vf,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function N0(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&&Vf.enqueueReplaceState(t,t.state,null)}function Kp(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Wv(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=vn(o):(o=qt(t)?eo:Ct.current,i.context=us(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Wp(e,t,o,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&&Vf.enqueueReplaceState(i,i.state,null),$c(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function hs(e,t){try{var n="",r=t;do n+=Wk(r),r=r.return;while(r);var i=n}catch(o){i=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function gh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var _P=typeof WeakMap=="function"?WeakMap:Map;function dE(e,t,n){n=hr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vc||(Vc=!0,im=r),Gp(e,t)},n}function hE(e,t,n){n=hr(-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(){Gp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Gp(e,t),typeof r!="function"&&(ri===null?ri=new Set([this]):ri.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function I0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _P;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=IP.bind(null,e,t,n),t.then(e,e))}function L0(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 D0(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=hr(-1,1),t.tag=2,ni(n,t,1))),n.lanes|=1),e)}var bP=Ar.ReactCurrentOwner,Vt=!1;function It(e,t,n,r){t.child=e===null?VS(t,null,n,r):fs(t,e.child,n,r)}function M0(e,t,n,r,i){n=n.render;var o=t.ref;return Qo(t,i),r=Xv(e,t,n,r,o,i),n=Qv(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(tt&&n&&Bv(t),t.flags|=1,It(e,t,r,i
vendor: 6,651 bytes, line 40
40),t.child)}function $0(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!lg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,pE(e,t,o,r,i)):(e=ac(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ya,n(s,r)&&e.ref===t.ref)return wr(e,t,i)}return t.flags|=1,e=oi(o,r),e.ref=t.ref,e.return=t,t.child=e}function pE(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ya(o,r)&&e.ref===t.ref)if(Vt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Vt=!0);else return t.lanes=e.lanes,wr(e,t,i)}return Zp(e,t,n,r,i)}function mE(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},We(Uo,Zt),Zt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,We(Uo,Zt),Zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,We(Uo,Zt),Zt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,We(Uo,Zt),Zt|=r;return It(e,t,i,n),t.child}function vE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zp(e,t,n,r,i){var o=qt(n)?eo:Ct.current;return o=us(t,o),Qo(t,i),n=Xv(e,t,n,r,o,i),r=Qv(),e!==null&&!Vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(tt&&r&&Bv(t),t.flags|=1,It(e,t,n,i),t.child)}function j0(e,t,n,r,i){if(qt(n)){var o=!0;Nc(t)}else o=!1;if(Qo(t,i),t.stateNode===null)ic(e,t),fE(t,n,r),Kp(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=vn(u):(u=qt(n)?eo:Ct.current,u=us(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&N0(t,s,r,u),Br=!1;var d=t.memoizedState;s.state=d,$c(t,r,s,i),l=t.memoizedState,a!==r||d!==l||zt.current||Br?(typeof c=="function"&&(Wp(t,n,c,r),l=t.memoizedState),(a=Br||P0(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,qS(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Tn(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=vn(l):(l=qt(n)?eo:Ct.current,l=us(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&N0(t,s,r,l),Br=!1,d=t.memoizedState,s.state=d,$c(t,r,s,i);var g=t.memoizedState;a!==f||d!==g||zt.current||Br?(typeof h=="function"&&(Wp(t,n,h,r),g=t.memoizedState),(u=Br||P0(t,n,u,r,d,g,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Yp(e,t,n,r,o,i)}function Yp(e,t,n,r,i,o){vE(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&E0(t,n,!1),wr(e,t,o);r=t.stateNode,bP.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=fs(t,e.child,null,o),t.child=fs(t,null,a,o)):It(e,t,a,o),t.memoizedState=r.state,i&&E0(t,n,!0),t.child}function gE(e){var t=e.stateNode;t.pendingContext?S0(e,t.pendingContext,t.pendingContext!==t.context):t.context&&S0(e,t.context,!1),Kv(e,t.containerInfo)}function B0(e,t,n,r,i){return cs(),Uv(i),t.flags|=256,It(e,t,n,r),t.child}var Xp={dehydrated:null,treeContext:null,retryLane:0};function Qp(e){return{baseLanes:e,cachePool:null,transitions:null}}function yE(e,t,n){var r=t.pendingProps,i=it.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),We(it,i&1),e===null)return qp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Hf(s,r,0,null),e=Zi(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Qp(n),t.memoizedState=Xp,e):tg(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return wP(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=oi(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=oi(a,o):(o=Zi(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Qp(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Xp,r}return o=e.child,e=o.sibling,r=oi(o,{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 tg(e,t){return t=Hf({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Au(e,t,n,r){return r!==null&&Uv(r),fs(t,e.child,null,n),e=tg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}
vendor: 4,865 bytes, line 40
40function wP(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=gh(Error(ne(422))),Au(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Hf({mode:"visible",children:r.children},i,0,null),o=Zi(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&fs(t,e.child,null,s),t.child.memoizedState=Qp(s),t.memoizedState=Xp,o);if(!(t.mode&1))return Au(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(ne(419)),r=gh(o,r,void 0),Au(e,t,s,r)}if(a=(s&e.childLanes)!==0,Vt||a){if(r=_t,r!==null){switch(s&-s){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|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,br(e,i),Cn(r,e,i,-1))}return ag(),r=gh(Error(ne(421))),Au(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=LP.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Qt=ti(i.nextSibling),en=t,tt=!0,Rn=null,e!==null&&(fn[dn++]=ar,fn[dn++]=lr,fn[dn++]=to,ar=e.id,lr=e.overflow,to=t),t=tg(t,r.children),t.flags|=4096,t)}function F0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hp(e.return,t,n)}function yh(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function _E(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(It(e,t,r.children,n),r=it.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&&F0(e,n,t);else if(e.tag===19)F0(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(We(it,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&&jc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),yh(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&jc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}yh(t,!0,n,null,o);break;case"together":yh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ic(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ro|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ne(153));if(t.child!==null){for(e=t.child,n=oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function SP(e,t,n){switch(t.tag){case 3:gE(t),cs();break;case 5:HS(t);break;case 1:qt(t.type)&&Nc(t);break;case 4:Kv(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;We(Dc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(We(it,it.current&1),t.flags|=128,null):n&t.child.childLanes?yE(e,t,n):(We(it,it.current&1),e=wr(e,t,n),e!==null?e.sibling:null);We(it,it.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return _E(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),We(it,it.current),r)break;return null;case 22:case 23:return t.lanes=0,mE(e,t,n)}return wr(e,t,n)}var bE,Jp,wE,SE;bE=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}};Jp=function(){};wE=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Hi(Wn.current);var o=null;switch(n){case"input":i=wp(e,i),r=wp(e,r),o=[];break;case"select":i=at({},i,{value:void 0}),r=at({},r,{value:void 0}),o=[];break;case"textarea":i=Tp(e,i),r=Tp(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Cc)}Rp(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(za.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];
vendor: 5,267 bytes, line 40
40if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(za.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ze("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};SE=function(e,t,n,r){n!==r&&(t.flags|=4)};function ra(e,t){if(!tt)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 xt(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 EP(e,t,n){var r=t.pendingProps;switch(Fv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(t),null;case 1:return qt(t.type)&&Pc(),xt(t),null;case 3:return r=t.stateNode,ds(),Qe(zt),Qe(Ct),Zv(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rn!==null&&(am(Rn),Rn=null))),Jp(e,t),xt(t),null;case 5:Gv(t);var i=Hi(tl.current);if(n=t.type,e!==null&&t.stateNode!=null)wE(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ne(166));return xt(t),null}if(e=Hi(Wn.current),xu(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Vn]=t,r[Ja]=o,e=(t.mode&1)!==0,n){case"dialog":Ze("cancel",r),Ze("close",r);break;case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(i=0;i<ya.length;i++)Ze(ya[i],r);break;case"source":Ze("error",r);break;case"img":case"image":case"link":Ze("error",r),Ze("load",r);break;case"details":Ze("toggle",r);break;case"input":Zy(r,o),Ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ze("invalid",r);break;case"textarea":Xy(r,o),Ze("invalid",r)}Rp(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Tu(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Tu(r.textContent,a,e),i=["children",""+a]):za.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Ze("scroll",r)}switch(n){case"input":vu(r),Yy(r,o,!0);break;case"textarea":vu(r),Qy(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Cc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Yw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vn]=t,e[Ja]=r,bE(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ap(n,r),n){case"dialog":Ze("cancel",e),Ze("close",e),i=r;break;case"iframe":case"object":case"embed":Ze("load",e),i=r;break;case"video":case"audio":for(i=0;i<ya.length;i++)Ze(ya[i],e);i=r;break;case"source":Ze("error",e),i=r;break;case"img":case"image":case"link":Ze("error",e),Ze("load",e),i=r;break;case"details":Ze("toggle",e),i=r;break;case"input":Zy(e,r),i=wp(e,r),Ze("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=at({},r,{value:void 0}),Ze("invalid",e);break;case"textarea":Xy(e,r),i=Tp(e,r),Ze("invalid",e);break;default:i=r}Rp(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Jw(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Xw(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&qa(e,l):typeof l=="number"&&qa(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(za.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ze("scroll",e):l!=null&&xv(e,o,l,s))}switch(n){case"input":vu(e),Yy(e,r,!1);break;case"textarea":vu(e),Qy(e);break;case"option":r.value!=null&&e.setAttribute("value",""+di(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Go(e,!!r.multiple,o,!1):r.defaultValue!=null&&Go(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Cc)}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)}
vendor: 28,693 bytes, line 40
40return xt(t),null;case 6:if(e&&t.stateNode!=null)SE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ne(166));if(n=Hi(tl.current),Hi(Wn.current),xu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Vn]=t,(o=r.nodeValue!==n)&&(e=en,e!==null))switch(e.tag){case 3:Tu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Tu(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Vn]=t,t.stateNode=r}return xt(t),null;case 13:if(Qe(it),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(tt&&Qt!==null&&t.mode&1&&!(t.flags&128))FS(),cs(),t.flags|=98560,o=!1;else if(o=xu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(ne(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(ne(317));o[Vn]=t}else cs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xt(t),o=!1}else Rn!==null&&(am(Rn),Rn=null),o=!0;if(!o)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||it.current&1?vt===0&&(vt=3):ag())),t.updateQueue!==null&&(t.flags|=4),xt(t),null);case 4:return ds(),Jp(e,t),e===null&&Xa(t.stateNode.containerInfo),xt(t),null;case 10:return qv(t.type._context),xt(t),null;case 17:return qt(t.type)&&Pc(),xt(t),null;case 19:if(Qe(it),o=t.memoizedState,o===null)return xt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)ra(o,!1);else{if(vt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=jc(e),s!==null){for(t.flags|=128,ra(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return We(it,it.current&1|2),t.child}e=e.sibling}o.tail!==null&&ft()>ps&&(t.flags|=128,r=!0,ra(o,!1),t.lanes=4194304)}else{if(!r)if(e=jc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ra(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!tt)return xt(t),null}else 2*ft()-o.renderingStartTime>ps&&n!==1073741824&&(t.flags|=128,r=!0,ra(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ft(),t.sibling=null,n=it.current,We(it,r?n&1|2:n&1),t):(xt(t),null);case 22:case 23:return sg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Zt&1073741824&&(xt(t),t.subtreeFlags&6&&(t.flags|=8192)):xt(t),null;case 24:return null;case 25:return null}throw Error(ne(156,t.tag))}function TP(e,t){switch(Fv(t),t.tag){case 1:return qt(t.type)&&Pc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ds(),Qe(zt),Qe(Ct),Zv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gv(t),null;case 13:if(Qe(it),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ne(340));cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Qe(it),null;case 4:return ds(),null;case 10:return qv(t.type._context),null;case 22:case 23:return sg(),null;case 24:return null;default:return null}}var Ou=!1,At=!1,xP=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Fo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ut(e,t,r)}else n.current=null}function em(e,t,n){try{n()}catch(r){ut(e,t,r)}}var U0=!1;function RP(e,t){if($p=Ac,e=AS(),jv(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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(jp={focusedElem:e,selectionRange:n},Ac=!1,pe=t;pe!==null;)if(t=pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pe=e;else for(;pe!==null;){t=pe;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,b=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Tn(t.type,v),b);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(_){ut(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,pe=e;break}pe=t.return}return g=U0,U0=!1,g}function Pa(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 o=i.destroy;i.destroy=void 0,o!==void 0&&em(t,n,o)}i=i.next}while(i!==r)}}function zf(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 tm(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 EE(e){var t=e.alternate;t!==null&&(e.alternate=null,EE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vn],delete t[Ja],delete t[Up],delete t[lP],delete t[uP])),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 TE(e){return e.tag===5||e.tag===3||e.tag===4}function V0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TE(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 nm(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=Cc));else if(r!==4&&(e=e.child,e!==null))for(nm(e,t,n),e=e.sibling;e!==null;)nm(e,t,n),e=e.sibling}function rm(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(rm(e,t,n),e=e.sibling;e!==null;)rm(e,t,n),e=e.sibling}var bt=null,xn=!1;function Nr(e,t,n){for(n=n.child;n!==null;)xE(e,t,n),n=n.sibling}function xE(e,t,n){if(Hn&&typeof Hn.onCommitFiberUnmount=="function")try{Hn.onCommitFiberUnmount(Df,n)}catch{}switch(n.tag){case 5:At||Fo(n,t);case 6:var r=bt,i=xn;bt=null,Nr(e,t,n),bt=r,xn=i,bt!==null&&(xn?(e=bt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):bt.removeChild(n.stateNode));break;case 18:bt!==null&&(xn?(e=bt,n=n.stateNode,e.nodeType===8?fh(e.parentNode,n):e.nodeType===1&&fh(e,n),Ga(e)):fh(bt,n.stateNode));break;case 4:r=bt,i=xn,bt=n.stateNode.containerInfo,xn=!0,Nr(e,t,n),bt=r,xn=i;break;case 0:case 11:case 14:case 15:if(!At&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&em(n,t,s),i=i.next}while(i!==r)}Nr(e,t,n);break;case 1:if(!At&&(Fo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ut(n,t,a)}Nr(e,t,n);break;case 21:Nr(e,t,n);break;case 22:n.mode&1?(At=(r=At)||n.memoizedState!==null,Nr(e,t,n),At=r):Nr(e,t,n);break;default:Nr(e,t,n)}}function z0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xP),t.forEach(function(r){var i=DP.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Sn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:bt=a.stateNode,xn=!1;break e;case 3:bt=a.stateNode.containerInfo,xn=!0;break e;case 4:bt=a.stateNode.containerInfo,xn=!0;break e}a=a.return}if(bt===null)throw Error(ne(160));xE(o,s,i),bt=null,xn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ut(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)RE(t,e),t=t.sibling}function RE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Sn(t,e),Bn(e),r&4){try{Pa(3,e,e.return),zf(3,e)}catch(v){ut(e,e.return,v)}try{Pa(5,e,e.return)}catch(v){ut(e,e.return,v)}}break;case 1:Sn(t,e),Bn(e),r&512&&n!==null&&Fo(n,n.return);break;case 5:if(Sn(t,e),Bn(e),r&512&&n!==null&&Fo(n,n.return),e.flags&32){var i=e.stateNode;try{qa(i,"")}catch(v){ut(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&Gw(i,o),Ap(a,s);var u=Ap(a,o);for(s=0;s<l.length;s+=2){var c=l[s],f=l[s+1];c==="style"?Jw(i,f):c==="dangerouslySetInnerHTML"?Xw(i,f):c==="children"?qa(i,f):xv(i,c,f,u)}switch(a){case"input":Sp(i,o);break;case"textarea":Zw(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Go(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?Go(i,!!o.multiple,o.defaultValue,!0):Go(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ja]=o}catch(v){ut(e,e.return,v)}}break;case 6:if(Sn(t,e),Bn(e),r&4){if(e.stateNode===null)throw Error(ne(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){ut(e,e.return,v)}}break;case 3:if(Sn(t,e),Bn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ga(t.containerInfo)}catch(v){ut(e,e.return,v)}break;case 4:Sn(t,e),Bn(e);break;case 13:Sn(t,e),Bn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ig=ft())),r&4&&z0(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(At=(u=At)||c,Sn(t,e),At=u):Sn(t,e),Bn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(pe=e,c=e.child;c!==null;){for(f=pe=c;pe!==null;){switch(d=pe,h=d.child,d.tag){case 0:case 11:case 14:case 15:Pa(4,d,d.return);break;case 1:Fo(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){ut(r,n,v)}}break;case 5:Fo(d,d.return);break;case 22:if(d.memoizedState!==null){H0(f);continue}}h!==null?(h.return=d,pe=h):H0(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Qw("display",s))}catch(v){ut(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){ut(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Sn(t,e),Bn(e),r&4&&z0(e);break;case 21:break;default:Sn(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(TE(n)){var r=n;break e}n=n.return}throw Error(ne(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(qa(i,""),r.flags&=-33);var o=V0(e);rm(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=V0(e);nm(e,a,s);break;default:throw Error(ne(161))}}catch(l){ut(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function AP(e,t,n){pe=e,AE(e)}function AE(e,t,n){for(var r=(e.mode&1)!==0;pe!==null;){var i=pe,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Ou;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||At;a=Ou;var u=At;if(Ou=s,(At=l)&&!u)for(pe=i;pe!==null;)s=pe,l=s.child,s.tag===22&&s.memoizedState!==null?W0(i):l!==null?(l.return=s,pe=l):W0(i);for(;o!==null;)pe=o,AE(o),o=o.sibling;pe=i,Ou=a,At=u}q0(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,pe=o):q0(e)}}function q0(e){for(;pe!==null;){var t=pe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:At||zf(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!At)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Tn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&O0(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}O0(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ga(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ne(163))}At||t.flags&512&&tm(t)}catch(d){ut(t,t.return,d)}}if(t===e){pe=null;break}if(n=t.sibling,n!==null){n.return=t.return,pe=n;break}pe=t.return}}function H0(e){for(;pe!==null;){var t=pe;if(t===e){pe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,pe=n;break}pe=t.return}}function W0(e){for(;pe!==null;){var t=pe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{zf(4,t)}catch(l){ut(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ut(t,i,l)}}var o=t.return;try{tm(t)}catch(l){ut(t,o,l)}break;case 5:var s=t.return;try{tm(t)}catch(l){ut(t,s,l)}}}catch(l){ut(t,t.return,l)}if(t===e){pe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,pe=a;break}pe=t.return}}var OP=Math.ceil,Uc=Ar.ReactCurrentDispatcher,ng=Ar.ReactCurrentOwner,pn=Ar.ReactCurrentBatchConfig,je=0,_t=null,ht=null,St=0,Zt=0,Uo=Ei(0),vt=0,ol=null,ro=0,qf=0,rg=0,Na=null,Ut=null,ig=0,ps=1/0,ir=null,Vc=!1,im=null,ri=null,ku=!1,Zr=null,zc=0,Ia=0,om=null,oc=-1,sc=0;function Dt(){return je&6?ft():oc!==-1?oc:oc=ft()}function ii(e){return e.mode&1?je&2&&St!==0?St&-St:fP.transition!==null?(sc===0&&(sc=fS()),sc):(e=Ue,e!==0||(e=window.event,e=e===void 0?16:yS(e.type)),e):1}function Cn(e,t,n,r){if(50<Ia)throw Ia=0,om=null,Error(ne(185));$l(e,n,r),(!(je&2)||e!==_t)&&(e===_t&&(!(je&2)&&(qf|=n),vt===4&&zr(e,St)),Ht(e,r),n===1&&je===0&&!(t.mode&1)&&(ps=ft()+500,Ff&&Ti()))}function Ht(e,t){var n=e.callbackNode;fC(e,t);var r=Rc(e,e===_t?St:0);if(r===0)n!==null&&t0(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&t0(n),t===1)e.tag===0?cP(K0.bind(null,e)):$S(K0.bind(null,e)),sP(function(){!(je&6)&&Ti()}),n=null;else{switch(dS(r)){case 1:n=Cv;break;case 4:n=uS;break;case 16:n=xc;break;case 536870912:n=cS;break;default:n=xc}n=DE(n,OE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function OE(e,t){if(oc=-1,sc=0,je&6)throw Error(ne(327));var n=e.callbackNode;if(Jo()&&e.callbackNode!==n)return null;var r=Rc(e,e===_t?St:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=qc(e,r);else{t=r;var i=je;je|=2;var o=CE();(_t!==e||St!==t)&&(ir=null,ps=ft()+500,Gi(e,t));do try{PP();break}catch(a){kE(e,a)}while(!0);zv(),Uc.current=o,je=i,ht!==null?t=0:(_t=null,St=0,t=vt)}if(t!==0){if(t===2&&(i=Np(e),i!==0&&(r=i,t=sm(e,i))),t===1)throw n=ol,Gi(e,0),zr(e,r),Ht(e,ft()),n;if(t===6)zr(e,r);else{if(i=e.current.alternate,!(r&30)&&!kP(i)&&(t=qc(e,r),t===2&&(o=Np(e),o!==0&&(r=o,t=sm(e,o))),t===1))throw n=ol,Gi(e,0),zr(e,r),Ht(e,ft()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ne(345));case 2:$i(e,Ut,ir);break;case 3:if(zr(e,r),(r&130023424)===r&&(t=ig+500-ft(),10<t)){if(Rc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Dt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Fp($i.bind(null,e,Ut,ir),t);break}$i(e,Ut,ir);break;case 4:if(zr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-kn(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=ft()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*OP(r/1960))-r,10<r){e.timeoutHandle=Fp($i.bind(null,e,Ut,ir),r);break}$i(e,Ut,ir);break;case 5:$i(e,Ut,ir);break;default:throw Error(ne(329))}}}return Ht(e,ft()),e.callbackNode===n?OE.bind(null,e):null}function sm(e,t){var n=Na;return e.current.memoizedState.isDehydrated&&(Gi(e,t).flags|=256),e=qc(e,t),e!==2&&(t=Ut,Ut=n,t!==null&&am(t)),e}function am(e){Ut===null?Ut=e:Ut.push.apply(Ut,e)}function kP(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],o=i.getSnapshot;i=i.value;try{if(!Ln(o(),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 zr(e,t){for(t&=~rg,t&=~qf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kn(t),r=1<<n;e[n]=-1,t&=~r}}function K0(e){if(je&6)throw Error(ne(327));Jo();var t=Rc(e,0);if(!(t&1))return Ht(e,ft()),null;var n=qc(e,t);if(e.tag!==0&&n===2){var r=Np(e);r!==0&&(t=r,n=sm(e,r))}if(n===1)throw n=ol,Gi(e,0),zr(e,t),Ht(e,ft()),n;if(n===6)throw Error(ne(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$i(e,Ut,ir),Ht(e,ft()),null}function og(e,t){var n=je;je|=1;try{return e(t)}finally{je=n,je===0&&(ps=ft()+500,Ff&&Ti())}}function io(e){Zr!==null&&Zr.tag===0&&!(je&6)&&Jo();var t=je;je|=1;var n=pn.transition,r=Ue;try{if(pn.transition=null,Ue=1,e)return e()}finally{Ue=r,pn.transition=n,je=t,!(je&6)&&Ti()}}function sg(){Zt=Uo.current,Qe(Uo)}function Gi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,oP(n)),ht!==null)for(n=ht.return;n!==null;){var r=n;switch(Fv(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pc();break;case 3:ds(),Qe(zt),Qe(Ct),Zv();break;case 5:Gv(r);break;case 4:ds();break;case 13:Qe(it);break;case 19:Qe(it);break;case 10:qv(r.type._context);break;case 22:case 23:sg()}n=n.return}if(_t=e,ht=e=oi(e.current,null),St=Zt=t,vt=0,ol=null,rg=qf=ro=0,Ut=Na=null,qi!==null){for(t=0;t<qi.length;t++)if(n=qi[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}qi=null}return e}function kE(e,t){do{var n=ht;try{if(zv(),nc.current=Fc,Bc){for(var r=st.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Bc=!1}if(no=0,yt=mt=st=null,Ca=!1,nl=0,ng.current=null,n===null||n.return===null){vt=1,ol=t,ht=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=St,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=L0(s);if(h!==null){h.flags&=-257,D0(h,s,a,o,t),h.mode&1&&I0(o,u,t),t=h,l=u;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){I0(o,u,t),ag();break e}l=Error(ne(426))}}else if(tt&&a.mode&1){var b=L0(s);if(b!==null){!(b.flags&65536)&&(b.flags|=256),D0(b,s,a,o,t),Uv(hs(l,a));break e}}o=l=hs(l,a),vt!==4&&(vt=2),Na===null?Na=[o]:Na.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=dE(o,l,t);A0(o,m);break e;case 1:a=l;var p=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ri===null||!ri.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=hE(o,a,t);A0(o,_);break e}}o=o.return}while(o!==null)}NE(n)}catch(w){t=w,ht===n&&n!==null&&(ht=n=n.return);continue}break}while(!0)}function CE(){var e=Uc.current;return Uc.current=Fc,e===null?Fc:e}function ag(){(vt===0||vt===3||vt===2)&&(vt=4),_t===null||!(ro&268435455)&&!(qf&268435455)||zr(_t,St)}function qc(e,t){var n=je;je|=2;var r=CE();(_t!==e||St!==t)&&(ir=null,Gi(e,t));do try{CP();break}catch(i){kE(e,i)}while(!0);if(zv(),je=n,Uc.current=r,ht!==null)throw Error(ne(261));return _t=null,St=0,vt}function CP(){for(;ht!==null;)PE(ht)}function PP(){for(;ht!==null&&!nC();)PE(ht)}function PE(e){var t=LE(e.alternate,e,Zt);e.memoizedProps=e.pendingProps,t===null?NE(e):ht=t,ng.current=null}function NE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=TP(n,t),n!==null){n.flags&=32767,ht=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{vt=6,ht=null;return}}else if(n=EP(n,t,Zt),n!==null){ht=n;return}if(t=t.sibling,t!==null){ht=t;return}ht=t=e}while(t!==null);vt===0&&(vt=5)}function $i(e,t,n){var r=Ue,i=pn.transition;try{pn.transition=null,Ue=1,NP(e,t,n,r)}finally{pn.transition=i,Ue=r}return null}function NP(e,t,n,r){do Jo();while(Zr!==null);if(je&6)throw Error(ne(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(ne(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(dC(e,o),e===_t&&(ht=_t=null,St=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ku||(ku=!0,DE(xc,function(){return Jo(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=pn.transition,pn.transition=null;var s=Ue;Ue=1;var a=je;je|=4,ng.current=null,RP(e,n),RE(n,e),QC(jp),Ac=!!$p,jp=$p=null,e.current=n,AP(n),rC(),je=a,Ue=s,pn.transition=o}else e.current=n;if(ku&&(ku=!1,Zr=e,zc=i),o=e.pendingLanes,o===0&&(ri=null),sC(n.stateNode),Ht(e,ft()),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(Vc)throw Vc=!1,e=im,im=null,e;return zc&1&&e.tag!==0&&Jo(),o=e.pendingLanes,o&1?e===om?Ia++:(Ia=0,om=e):Ia=0,Ti(),null}function Jo(){if(Zr!==null){var e=dS(zc),t=pn.transition,n=Ue;try{if(pn.transition=null,Ue=16>e?16:e,Zr===null)var r=!1;else{if(e=Zr,Zr=null,zc=0,je&6)throw Error(ne(331));var i=je;for(je|=4,pe=e.current;pe!==null;){var o=pe,s=o.child;if(pe.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(pe=u;pe!==null;){var c=pe;switch(c.tag){case 0:case 11:case 15:Pa(8,c,o)}var f=c.child;if(f!==null)f.return=c,pe=f;else for(;pe!==null;){c=pe;var d=c.sibling,h=c.return;if(EE(c),c===u){pe=null;break}if(d!==null){d.return=h,pe=d;break}pe=h}}}var g=o.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}pe=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,pe=s;else e:for(;pe!==null;){if(o=pe,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Pa(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,pe=m;break e}pe=o.return}}var p=e.current;for(pe=p;pe!==null;){s=pe;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,pe=y;else e:for(s=p;pe!==null;){if(a=pe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:zf(9,a)}}catch(w){ut(a,a.return,w)}if(a===s){pe=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,pe=_;break e}pe=a.return}}if(je=i,Ti(),Hn&&typeof Hn.onPostCommitFiberRoot=="function")try{Hn.onPostCommitFiberRoot(Df,e)}catch{}r=!0}return r}finally{Ue=n,pn.transition=t}}return!1}function G0(e,t,n){t=hs(n,t),t=dE(e,t,1),e=ni(e,t,1),t=Dt(),e!==null&&($l(e,1,t),Ht(e,t))}function ut(e,t,n){if(e.tag===3)G0(e,e,n);else for(;t!==null;){if(t.tag===3){G0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ri===null||!ri.has(r))){e=hs(n,e),e=hE(t,e,1),t=ni(t,e,1),e=Dt(),t!==null&&($l(t,1,e),Ht(t,e));break}}t=t.return}}function IP(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Dt(),e.pingedLanes|=e.suspendedLanes&n,_t===e&&(St&n)===n&&(vt===4||vt===3&&(St&130023424)===St&&500>ft()-ig?Gi(e,0):rg|=n),Ht(e,t)}function IE(e,t){t===0&&(e.mode&1?(t=_u,_u<<=1,!(_u&130023424)&&(_u=4194304)):t=1);var n=Dt();e=br(e,t),e!==null&&($l(e,t,n),Ht(e,n))}function LP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),IE(e,n)}function DP(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(ne(314))}r!==null&&r.delete(t),IE(e,n)}var LE;LE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||zt.current)Vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vt=!1,SP(e,t,n);Vt=!!(e.flags&131072)}else Vt=!1,tt&&t.flags&1048576&&jS(t,Lc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ic(e,t),e=t.pendingProps;var i=us(t,Ct.current);Qo(t,n),i=Xv(null,t,r,e,i,n);var o=Qv();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,qt(r)?(o=!0,Nc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wv(t),i.updater=Vf,t.stateNode=i,i._reactInternals=t,Kp(t,r,e,n),t=Yp(null,t,r,!0,o,n)):(t.tag=0,tt&&o&&Bv(t),It(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ic(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=$P(r),e=Tn(r,e),i){case 0:t=Zp(null,t,r,e,n);break e;case 1:t=j0(null,t,r,e,n);break e;case 11:t=M0(null,t,r,e,n);break e;case 14:t=$0(null,t,r,Tn(r.type,e),n);break e}throw Error(ne(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),Zp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),j0(e,t,r,i,n);case 3:e:{if(gE(t),e===null)throw Error(ne(387));r=t.pendingProps,o=t.memoizedState,i=o.element,qS(e,t),$c(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=hs(Error(ne(423)),t),t=B0(e,t,r,n,i);break e}else if(r!==i){i=hs(Error(ne(424)),t),t=B0(e,t,r,n,i);break e}else for(Qt=ti(t.stateNode.containerInfo.firstChild),en=t,tt=!0,Rn=null,n=VS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(cs(),r===i){t=wr(e,t,n);break e}It(e,t,r,n)}t=t.child}return t;case 5:return HS(t),e===null&&qp(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Bp(r,i)?s=null:o!==null&&Bp(r,o)&&(t.flags|=32),vE(e,t),It(e,t,s,n),t.child;case 6:return e===null&&qp(t),null;case 13:return yE(e,t,n);case 4:return Kv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fs(t,null,r,n):It(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),M0(e,t,r,i,n);case 7:return It(e,t,t.pendingProps,n),t.child;case 8:return It(e,t,t.pendingProps.children,n),t.child;case 12:return It(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,We(Dc,r._currentValue),r._currentValue=s,o!==null)if(Ln(o.value,s)){if(o.children===i.children&&!zt.current){t=wr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=hr(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Hp(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(ne(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Hp(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}It(e,t,i.children,n),t=t.child}return t;
vendor: 5,153 bytes, line 40
40case 9:return i=t.type,r=t.pendingProps.children,Qo(t,n),i=vn(i),r=r(i),t.flags|=1,It(e,t,r,n),t.child;case 14:return r=t.type,i=Tn(r,t.pendingProps),i=Tn(r.type,i),$0(e,t,r,i,n);case 15:return pE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tn(r,i),ic(e,t),t.tag=1,qt(r)?(e=!0,Nc(t)):e=!1,Qo(t,n),fE(t,r,i),Kp(t,r,i,n),Yp(null,t,r,!0,e,n);case 19:return _E(e,t,n);case 22:return mE(e,t,n)}throw Error(ne(156,t.tag))};function DE(e,t){return lS(e,t)}function MP(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 hn(e,t,n,r){return new MP(e,t,n,r)}function lg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $P(e){if(typeof e=="function")return lg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Av)return 11;if(e===Ov)return 14}return 2}function oi(e,t){var n=e.alternate;return n===null?(n=hn(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 ac(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")lg(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Po:return Zi(n.children,i,o,t);case Rv:s=8,i|=8;break;case gp:return e=hn(12,n,t,i|2),e.elementType=gp,e.lanes=o,e;case yp:return e=hn(13,n,t,i),e.elementType=yp,e.lanes=o,e;case _p:return e=hn(19,n,t,i),e.elementType=_p,e.lanes=o,e;case Hw:return Hf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zw:s=10;break e;case qw:s=9;break e;case Av:s=11;break e;case Ov:s=14;break e;case jr:s=16,r=null;break e}throw Error(ne(130,e==null?e:typeof e,""))}return t=hn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zi(e,t,n,r){return e=hn(7,e,r,t),e.lanes=n,e}function Hf(e,t,n,r){return e=hn(22,e,r,t),e.elementType=Hw,e.lanes=n,e.stateNode={isHidden:!1},e}function _h(e,t,n){return e=hn(6,e,null,t),e.lanes=n,e}function bh(e,t,n){return t=hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jP(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=eh(0),this.expirationTimes=eh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ug(e,t,n,r,i,o,s,a,l){return e=new jP(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wv(o),e}function BP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Co,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ME(e){if(!e)return hi;e=e._reactInternals;e:{if(go(e)!==e||e.tag!==1)throw Error(ne(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ne(171))}if(e.tag===1){var n=e.type;if(qt(n))return MS(e,n,t)}return t}function $E(e,t,n,r,i,o,s,a,l){return e=ug(n,r,!0,e,i,o,s,a,l),e.context=ME(null),n=e.current,r=Dt(),i=ii(n),o=hr(r,i),o.callback=t??null,ni(n,o,i),e.current.lanes=i,$l(e,i,r),Ht(e,r),e}function Wf(e,t,n,r){var i=t.current,o=Dt(),s=ii(i);return n=ME(n),t.context===null?t.context=n:t.pendingContext=n,t=hr(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ni(i,t,s),e!==null&&(Cn(e,i,s,o),tc(e,i,s)),s}function Hc(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 Z0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cg(e,t){Z0(e,t),(e=e.alternate)&&Z0(e,t)}function FP(){return null}var jE=typeof reportError=="function"?reportError:function(e){console.error(e)};function fg(e){this._internalRoot=e}Kf.prototype.render=fg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ne(409));Wf(e,t,null,null)};Kf.prototype.unmount=fg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;
40io(function(){Wf(null,e,null,null)}),t[_r]=null}};function Kf(e){this._internalRoot=e}Kf.prototype.unstable_scheduleHydration=function(e){if(e){var t=mS();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vr.length&&t!==0&&t<Vr[n].priority;n++);Vr.splice(n,0,e),n===0&&gS(e)}};function dg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Y0(){}function UP(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Hc(s);o.call(u)}}var s=$E(t,r,e,0,null,!1,!1,"",Y0);return e._reactRootContainer=s,e[_r]=s.current,Xa(e.nodeType===8?e.parentNode:e),io(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Hc(l);a.call(u)}}var l=ug(e,0,!1,null,null,!1,!1,"",Y0);return e._reactRootContainer=l,e[_r]=l.current,Xa(e.nodeType===8?e.parentNode:e),io(function(){Wf(t,l,n,r)}),l}function Zf(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=Hc(s);a.call(l)}}Wf(t,s,e,i)}else s=UP(n,t,e,i,r);return Hc(s)}hS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ga(t.pendingLanes);n!==0&&(Pv(t,n|1),Ht(t,ft()),!(je&6)&&(ps=ft()+500,Ti()))}break;case 13:io(function(){var r=br(e,1);if(r!==null){var i=Dt();Cn(r,e,1,i)}}),cg(e,1)}};Nv=function(e){if(e.tag===13){var t=br(e,134217728);if(t!==null){var n=Dt();Cn(t,e,134217728,n)}cg(e,134217728)}};pS=function(e){if(e.tag===13){var t=ii(e),n=br(e,t);if(n!==null){var r=Dt();Cn(n,e,t,r)}cg(e,t)}};mS=function(){return Ue};vS=function(e,t){var n=Ue;try{return Ue=e,t()}finally{Ue=n}};kp=function(e,t,n){switch(t){case"input":if(Sp(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=Bf(r);if(!i)throw Error(ne(90));Kw(r),Sp(r,i)}}}break;case"textarea":Zw(e,n);break;case"select":t=n.value,t!=null&&Go(e,!!n.multiple,t,!1)}};nS=og;rS=io;var VP={usingClientEntryPoint:!1,Events:[Bl,Do,Bf,eS,tS,og]},ia={findFiberByHostInstance:zi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zP={bundleType:ia.bundleType,version:ia.version,rendererPackageName:ia.rendererPackageName,rendererConfig:ia.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ar.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sS(e),e===null?null:e.stateNode},findFiberByHostInstance:ia.findFiberByHostInstance||FP,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{Df=Cu.inject(zP),Hn=Cu}catch{}}sn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VP;sn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!dg(t))throw Error(ne(200));return BP(e,t,null,n)};sn.createRoot=function(e,t){if(!dg(e))throw Error(ne(299));var n=!1,r="",i=jE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ug(e,1,!1,null,null,n,!1,r,i),e[_r]=t.current,Xa(e.nodeType===8?e.parentNode:e),new fg(t)};sn.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(ne(188)):(e=Object.keys(e).join(","),Error(ne(268,e)));return e=sS(t),e=e===null?null:e.stateNode,e};sn.flushSync=function(e){return io(e)};sn.hydrate=function(e,t,n){if(!Gf(t))throw Error(ne(200));return Zf(null,e,t,!0,n)};sn.hydrateRoot=function(e,t,n){if(!dg(e))throw Error(ne(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=jE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=$E(t,null,e,1,n??null,i,!1,o,s),e[_r]=t.current,Xa(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 Kf(t)};sn.render=function(e,t,n){if(!Gf(t))throw Error(ne(200));return Zf(null,e,t,!1,n)};sn.unmountComponentAtNode=function(e){if(!Gf(e))throw Error(ne(40));return e._reactRootContainer?(io(function(){Zf(null,null,e,!1,function(){e._reactRootContainer=null,e[_r]=null})}),!0):!1};sn.unstable_batchedUpdates=og;sn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gf(n))throw Error(ne(200));if(e==null||e._reactInternals===void 0)throw Error(ne(38));return Zf(e,t,n,!1,r)};sn.version="18.3.1-next-f1338f8080-20240426";function BE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(BE)}catch(e){console.error(e)}}BE(),Bw.exports=sn;var Ps=Bw.exports;const qP=yv(Ps);var X0=Ps;mp.createRoot=X0.createRoot,mp.hydrateRoot=X0.hydrateRoot;/**
41 * @remix-run/router v1.16.1
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function sl(){return sl=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},sl.apply(this,arguments)}var Yr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Yr||(Yr={}));const Q0="popstate";function HP(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:s,hash:a}=r.location;return lm("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Wc(i)}return KP(t,n,null,e)}function dt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function FE(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WP(){return Math.random().toString(36).substr(2,8)}function J0(e,t){return{usr:e.state,key:e.key,idx:t}}function lm(e,t,n,r){return n===void 0&&(n=null),sl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ns(t):t,{state:n,key:t&&t.key||r||WP()})}function Wc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ns(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function KP(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Yr.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(sl({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=Yr.Pop;let b=c(),m=b==null?null:b-u;u=b,l&&l({action:a,location:v.location,delta:m})}function d(b,m){a=Yr.Push;let p=lm(v.location,b,m);u=c()+1;let y=J0(p,u),_=v.createHref(p);try{s.pushState(y,"",_)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(_)}o&&l&&l({action:a,location:v.location,delta:1})}function h(b,m){a=Yr.Replace;let p=lm(v.location,b,m);u=c();let y=J0(p,u),_=v.createHref(p);s.replaceState(y,"",_),o&&l&&l({action:a,location:v.location,delta:0})}function g(b){let m=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof b=="string"?b:Wc(b);return p=p.replace(/ $/,"%20"),dt(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let v={get action(){return a},get location(){return e(i,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Q0,f),l=b,()=>{i.removeEventListener(Q0,f),l=null}},createHref(b){return t(i,b)},createURL:g,encodeLocation(b){let m=g(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(b){return s.go(b)}};return v}var e1;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(e1||(e1={}));function GP(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ns(t):t,i=hg(r.pathname||"/",n);if(i==null)return null;let o=UE(e);ZP(o);let s=null;for(let a=0;s==null&&a<o.length;++a){let l=a2(i);s=i2(o[a],l)}return s}function UE(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(dt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not val
49id. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=si([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(dt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),UE(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:n2(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of VE(o.path))i(o,s,l)}),t}function VE(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=VE(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function ZP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:r2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const YP=/^:[\w-]+$/,XP=3,QP=2,JP=1,e2=10,t2=-2,t1=e=>e==="*";function n2(e,t){let n=e.split("/"),r=n.length;return n.some(t1)&&(r+=t2),t&&(r+=QP),n.filter(i=>!t1(i)).reduce((i,o)=>i+(YP.test(o)?XP:o===""?JP:e2),r)}function r2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function i2(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s<n.length;++s){let a=n[s],l=s===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",c=o2({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!c)return null;
vendor: 13,988 bytes, lines 49-67
49Object.assign(r,c.params);let f=a.route;o.push({params:r,pathname:si([i,c.pathname]),pathnameBase:f2(si([i,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(i=si([i,c.pathnameBase]))}return o}function o2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=s2(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,c,f)=>{let{paramName:d,isOptional:h}=c;if(d==="*"){let v=a[f]||"";s=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[f];return h&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:s,pattern:e}}function s2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),FE(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function a2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return FE(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function l2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ns(e):e;return{pathname:n?n.startsWith("/")?n:u2(n,t):t,search:d2(r),hash:h2(i)}}function u2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function wh(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function c2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pg(e,t){let n=c2(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mg(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ns(e):(i=sl({},e),dt(!i.pathname||!i.pathname.includes("?"),wh("?","pathname","search",i)),dt(!i.pathname||!i.pathname.includes("#"),wh("#","pathname","hash",i)),dt(!i.search||!i.search.includes("#"),wh("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=l2(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const si=e=>e.join("/").replace(/\/\/+/g,"/"),f2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),d2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,h2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function p2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zE=["post","put","patch","delete"];new Set(zE);const m2=["get",...zE];new Set(m2);/**
50 * React Router v6.23.1
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function al(){return al=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},al.apply(this,arguments)}const vg=P.createContext(null),v2=P.createContext(null),xi=P.createContext(null),Yf=P.createContext(null),Ri=P.createContext({outlet:null,matches:[],isDataRoute:!1}),qE=P.createContext(null);function g2(e,t){let{relative:n}=t===void 0?{}:t;Is()||dt(!1);let{basename:r,navigator:i}=P.useContext(xi),{hash:o,pathname:s,search:a}=WE(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:si([r,s])),i.createHref({pathname:l,search:a,hash:o})}function Is(){return P.useContext(Yf)!=null}function Ul(){return Is()||dt(!1),P.useContext(Yf).location}function HE(e){P.useContext(xi).static||P.useLayoutEffect(e)}function Vl(){let{isDataRoute:e}=P.useContext(Ri);return e?C2():y2()}function y2(){Is()||dt(!1);let e=P.useContext(vg),{basename:t,future:n,navigator:r}=P.useContext(xi),{matches:i}=P.useContext(Ri),{pathname:o}=Ul(),s=JSON.stringify(pg(i,n.v7_relativeSplatPath)),a=P.useRef(!1);return HE(()=>{a.current=!0}),P.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=mg(u,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:si([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,o,e])}function WE(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(xi),{matches:i}=P.useContext(Ri),{pathname:o}=Ul(),s=JSON.stringify(pg(i,r.v7_relativeSplatPath));return P.useMemo(()=>mg(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function _2(e,t){return b2(e,t)}function b2(e,t,n,r){Is()||dt(!1);let{navigator:i}=P.useContext(xi),{matches:o}=P.useContext(Ri),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=Ul(),c;if(t){var f;let b=typeof t=="string"?Ns(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||dt(!1),c=b}else c=u;let d=c.pathname||"/",h=d;if(l!=="/"){let b=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let g=GP(e,{pathname:h}),v=x2(g&&g.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:si([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:si([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),o,n,r);return t&&v?P.createElement(Yf.Provider,{value:{location:al({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Yr.Pop}},v):v}function w2(){let e=k2(),t=p2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,null)}const S2=P.createElement(w2,null);class E2 extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?P.createElement(Ri.Provider,{value:this.props.routeContext},P.createElement(qE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T2(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(vg);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(Ri.Provider,{value:t},r)}function x2(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=s.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);c>=0||dt(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let f=s[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:h}=n,g=f.route.loader&&d[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||g){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,d)=>{let h,g=!1,v=null,b=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||S2,l&&(u<0&&d===0?(g=!0,b=null):u===d&&(g=!0,b=f.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,d+1)),p=()=>{let y;return h?y=v:g?y=b:f.route.Component?y=P.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=c,P.createElement(T2,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:y})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?P.createElement(E2,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var KE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(KE||{}),Kc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Kc||{});function R2(e){let t=P.useContext(vg);return t||dt(!1),t}function A2(e){let t=P.useContext(v2);return t||dt(!1),t}function O2(e){let t=P.useContext(Ri);return t||dt(!1),t}function GE(e){let t=O2(),n=t.matches[t.matches.length-1];return n.route.id||dt(!1),n.route.id}function k2(){var e;let t=P.useContext(qE),n=A2(Kc.UseRouteError),r=GE(Kc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function C2(){let{router:e}=R2(KE.UseNavigateStable),t=GE(Kc.UseNavigateStable),n=P.useRef(!1);return HE(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,al({fromRouteId:t},o)))},[e,t])}function Sh(e){let{to:t,replace:n,state:r,relative:i}=e;Is()||dt(!1);let{future:o,static:s}=P.useContext(xi),{matches:a}=P.useContext(Ri),{pathname:l}=Ul(),u=Vl(),c=mg(t,pg(a,o.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return P.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function Oo(e){dt(!1)}function P2(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Yr.Pop,navigator:o,static:s=!1,future:a}=e;Is()&&dt(!1);let l=t.replace(/^\/*/,"/"),u=P.useMemo(()=>({basename:l,navigator:o,static:s,future:al({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Ns(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:g="default"}=r,v=P.useMemo(()=>{let b=hg(c,l);return b==null?null:{location:{pathname:b,search:f,hash:d,state:h,key:g},navigationType:i}},[l,c,f,d,h,g,i]);return v==null?null:P.createElement(xi.Provider,{value:u},P.createElement(Yf.Provider,{children:n,value:v}))}function N2(e){let{children:t,location:n}=e;return _2(um(t),n)}new Promise(()=>{});function um(e,t){t===void 0&&(t=[]);let n=[];return P.Children.forEach(e,(r,i)=>{if(!P.isValidElement(r))return;let o=[...t,i];if(r.type===P.Fragment){n.push.apply(n,um(r.props.children,o));return}r.type!==Oo&&dt(!1),!r.props.index||!r.props.children||dt(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=um(r.props.children,o)),n.push(s)}),n}/**
59 * React Router DOM v6.23.1
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function cm(){return cm=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},cm.apply(this,arguments)}function I2(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function L2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function D2(e,t){return e.button===0&&(!t||t==="_self")&&!L2(e)}const M2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],$2="6";try{window.__reactRouterVersion=$2}catch{}const j2="startTransition",n1=$w[j2];function B2(e){let{basename:t,children:n,future:r,window:i}=e,o=P.useRef();o.current==null&&(o.current=HP({window:i,v5Compat:!0}));let s=o.current,[a,l]=P.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=P.useCallback(f=>{u&&n1?n1(()=>l(f)):l(f)},[l,u]);return P.useLayoutEffect(()=>s.listen(c),[s,c]),P.createElement(P2,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const F2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gc=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}
67=t,d=I2(t,M2),{basename:h}=P.useContext(xi),g,v=!1;if(typeof u=="string"&&U2.test(u)&&(g=u,F2))try{let y=new URL(window.location.href),_=u.startsWith("//")?new URL(y.protocol+u):new URL(u),w=hg(_.pathname,h);_.origin===y.origin&&w!=null?u=w+_.search+_.hash:v=!0}catch{}let b=g2(u,{relative:i}),m=V2(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function p(y){r&&r(y),y.defaultPrevented||m(y)}return P.createElement("a",cm({},d,{href:g||b,onClick:v||o?r:p,ref:n,target:l}))});var r1;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(r1||(r1={}));var i1;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(i1||(i1={}));function V2(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,l=Vl(),u=Ul(),c=WE(e,{relative:s});return P.useCallback(f=>{if(D2(f,n)){f.preventDefault();let d=r!==void 0?r:Wc(u)===Wc(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}},[u,l,c,r,i,n,e,o,s,a])}var o1={};/**
68 * @license
69 * Copyright 2017 Google LLC
70 *
71 * Licensed under the Apache License, Version 2.0 (the "License");
72 * you may not use this file except in compliance with the License.
73 * You may obtain a copy of the License at
74 *
75 *   http://www.apache.org/licenses/LICENSE-2.0
76 *
77 * Unless required by applicable law or agreed to in writing, software
78 * distributed under the License is distributed on an "AS IS" BASIS,
79 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
80 * See the License for the specific language governing permissions and
81 * limitations under the License.
82 */const ZE=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},z2=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],a=e[n++],l=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},YE={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,a=s?e[i+1]:0,l=i+2<e.length,u=l?e[i+2]:0,c=o>>2,f=(o&3)<<4|a>>4;let d=(a&15)<<2|u>>6,h=u&63;l||(h=64,s||(d=64)),r.push(n[c],n[f],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(ZE(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):z2(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const u=i<e.length?n[e.charAt(i)]:64;++i;const f=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||a==null||u==null||f==null)throw new q2;const d=o<<2|a>>4;if(r.push(d),u!==64){const h=a<<4&240|u>>2;if(r.push(h),f!==64){const g=u<<6&192|f;r.push(g)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
82class q2 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const H2=function(e){const t=ZE(e);return YE.encodeByteArray(t,!0)},XE=function(e){return H2(e).replace(/\./g,"")},QE=function(e){try{return YE.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
83 * @license
84 * Copyright 2022 Google LLC
85 *
86 * Licensed under the Apache License, Version 2.0 (the "License");
87 * you may not use this file except in compliance with the License.
88 * You may obtain a copy of the License at
89 *
90 *   http://www.apache.org/licenses/LICENSE-2.0
91 *
92 * Unless required by applicable law or agreed to in writing, software
93 * distributed under the License is distributed on an "AS IS" BASIS,
94 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
95 * See the License for the specific language governing permissions and
96 * limitations under the License.
97 */function W2(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
98 * @license
99 * Copyright 2022 Google LLC
100 *
101 * Licensed under the Apache License, Version 2.0 (the "License");
102 * you may not use this file except in compliance with the License.
103 * You may obtain a copy of the License at
104 *
105 *   http://www.apache.org/licenses/LICENSE-2.0
106 *
107 * Unless required by applicable law or agreed to in writing, software
108 * distributed under the License is distributed on an "AS IS" BASIS,
109 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
110 * See the License for the specific language governing permissions and
111 * limitations under the License.
112 */const K2=()=>W2().__FIREBASE_DEFAULTS__,G2=()=>{if(typeof process>"u"||typeof o1>"u")return;const e=o1.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Z2=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&QE(e[1]);return t&&JSON.parse(t)},gg=()=>{try{return K2()||G2()||Z2()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Y2=e=>{var t,n;return(n=(t=gg())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},JE=()=>{var e;return(e=gg())===null||e===void 0?void 0:e.config},eT=e=>{var t;return(t=gg())===null||t===void 0?void 0:t[`_${e}`]};/**
113 * @license
114 * Copyright 2017 Google LLC
115 *
116 * Licensed under the Apache License, Version 2.0 (the "License");
117 * you may not use this file except in compliance with the License.
118 * You may obtain a copy of the License at
119 *
120 *   http://www.apache.org/licenses/LICENSE-2.0
121 *
122 * Unless required by applicable law or agreed to in writing, software
123 * distributed under the License is distributed on an "AS IS" BASIS,
124 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
125 * See the License for the specific language governing permissions and
126 * limitations under the License.
127 */class X2{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/**
128 * @license
129 * Copyright 2017 Google LLC
130 *
131 * Licensed under the Apache License, Version 2.0 (the "License");
132 * you may not use this file except in compliance with the License.
133 * You may obtain a copy of the License at
134 *
135 *   http://www.apache.org/licenses/LICENSE-2.0
136 *
137 * Unless required by applicable law or agreed to in writing, software
138 * distributed under the License is distributed on an "AS IS" BASIS,
139 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
140 * See the License for the specific language governing permissions and
141 * limitations under the License.
142 */function Pt(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Q2(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Pt())}function J2(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function eN(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function tN(){const e=Pt();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function nN(){try{return typeof indexedDB=="object"}catch{return!1}}function rN(){return new Promise((e,t)=>
142{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}/**
143 * @license
144 * Copyright 2017 Google LLC
145 *
146 * Licensed under the Apache License, Version 2.0 (the "License");
147 * you may not use this file except in compliance with the License.
148 * You may obtain a copy of the License at
149 *
150 *   http://www.apache.org/licenses/LICENSE-2.0
151 *
152 * Unless required by applicable law or agreed to in writing, software
153 * distributed under the License is distributed on an "AS IS" BASIS,
154 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
155 * See the License for the specific language governing permissions and
156 * limitations under the License.
157 */const iN="FirebaseError";class Ai extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=iN,Object.setPrototypeOf(this,Ai.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,zl.prototype.create)}}class zl{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?oN(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new Ai(i,a,r)}}function oN(e,t){return e.replace(sN,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const sN=/\{\$([^}]+)}/g;function aN(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Zc(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(s1(o)&&s1(s)){if(!Zc(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function s1(e){return e!==null&&typeof e=="object"}/**
158 * @license
159 * Copyright 2017 Google LLC
160 *
161 * Licensed under the Apache License, Version 2.0 (the "License");
162 * you may not use this file except in compliance with the License.
163 * You may obtain a copy of the License at
164 *
165 *   http://www.apache.org/licenses/LICENSE-2.0
166 *
167 * Unless required by applicable law or agreed to in writing, software
168 * distributed under the License is distributed on an "AS IS" BASIS,
169 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
170 * See the License for the specific language governing permissions and
171 * limitations under the License.
172 */function ql(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(i=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function _a(e){const t={};return e.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[i,o]=r.split("=");
172t[decodeURIComponent(i)]=decodeURIComponent(o)}}),t}function ba(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function lN(e,t){const n=new uN(e,t);return n.subscribe.bind(n)}class uN{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let i;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");cN(t,["next","error","complete"])?i=t:i={next:t,error:n,complete:r},i.next===void 0&&(i.next=Eh),i.error===void 0&&(i.error=Eh),i.complete===void 0&&(i.complete=Eh);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),o}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,t)}sendOne(t,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function cN(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function Eh(){}/**
173 * @license
174 * Copyright 2021 Google LLC
175 *
176 * Licensed under the Apache License, Version 2.0 (the "License");
177 * you may not use this file except in compliance with the License.
178 * You may obtain a copy of the License at
179 *
180 *   http://www.apache.org/licenses/LICENSE-2.0
181 *
182 * Unless required by applicable law or agreed to in writing, software
183 * distributed under the License is distributed on an "AS IS" BASIS,
184 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
185 * See the License for the specific language governing permissions and
186 * limitations under the License.
187 */function Or(e){return e&&e._delegate?e._delegate:e}class ms{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
188 * @license
189 * Copyright 2019 Google LLC
190 *
191 * Licensed under the Apache License, Version 2.0 (the "License");
192 * you may not use this file except in compliance with the License.
193 * You may obtain a copy of the License at
194 *
195 *   http://www.apache.org/licenses/LICENSE-2.0
196 *
197 * Unless required by applicable law or agreed to in writing, software
198 * distributed under the License is distributed on an "AS IS" BASIS,
199 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 * See the License for the specific language governing permissions and
201 * limitations under the License.
202 */const ji="[DEFAULT]";/**
203 * @license
204 * Copyright 2019 Google LLC
205 *
206 * Licensed under the Apache License, Version 2.0 (the "License");
207 * you may not use this file except in compliance with the License.
208 * You may obtain a copy of the License at
209 *
210 *   http://www.apache.org/licenses/LICENSE-2.0
211 *
212 * Unless required by applicable law or agreed to in writing, software
213 * distributed under the License is distributed on an "AS IS" BASIS,
214 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
215 * See the License for the specific language governing permissions and
216 * limitations under the License.
217 */class fN{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new X2;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(hN(t))try{this.getOrInitializeService({instanceIdentifier:ji})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=ji){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=ji){return this.instances.has(t)}getOptions(t=ji){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(o);r===a&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:dN(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=ji){return this.component?this.component.multipleInstances?t:ji:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function dN(e){return e===ji?void 0:e}function hN(e){return e.instantiationMode==="EAGER"}/**
218 * @license
219 * Copyright 2019 Google LLC
220 *
221 * Licensed under the Apache License, Version 2.0 (the "License");
222 * you may not use this file except in compliance with the License.
223 * You may obtain a copy of the License at
224 *
225 *   http://www.apache.org/licenses/LICENSE-2.0
226 *
227 * Unless required by applicable law or agreed to in writing, software
228 * distributed under the License is distributed on an "AS IS" BASIS,
229 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
230 * See the License for the specific language governing permissions and
231 * limitations under the License.
232 */class pN{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new fN(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
233 * @license
234 * Copyright 2017 Google LLC
235 *
236 * Licensed under the Apache License, Version 2.0 (the "License");
237 * you may not use this file except in compliance with the License.
238 * You may obtain a copy of the License at
239 *
240 *   http://www.apache.org/licenses/LICENSE-2.0
241 *
242 * Unless required by applicable law or agreed to in writing, software
243 * distributed under the License is distributed on an "AS IS" BASIS,
244 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
245 * See the License for the specific language governing permissions and
246 * limitations under the License.
247 */var Ve;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Ve||(Ve={}));const mN={debug:Ve.DEBUG,verbose:Ve.VERBOSE,info:Ve.INFO,warn:Ve.WARN,error:Ve.ERROR,silent:Ve.SILENT},vN=Ve.INFO,gN={[Ve.DEBUG]:"log",[Ve.VERBOSE]:"log",[Ve.INFO]:"info",[Ve.WARN]:"warn",[Ve.ERROR]:"error"},yN=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=gN[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class tT{constructor(t){this.name=t,this._logLevel=vN,this._logHandler=yN,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Ve))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?mN[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Ve.DEBUG,...t),this._logHandler(this,Ve.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Ve.VERBOSE,...t),this._logHandler(this,Ve.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Ve.INFO,...t),this._logHandler(this,Ve.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Ve.WARN,...t),this._logHandler(this,Ve.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Ve.ERROR,...t),this._logHandler(this,Ve.ERROR,...t)}}const _N=(e,t)=>t.some(n=>e instanceof n);let a1,l1;function bN(){return a1||(a1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function wN(){return l1||(l1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const nT=new WeakMap,fm=new WeakMap,rT=new WeakMap,Th=new WeakMap,yg=new WeakMap;function SN(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(ai(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&nT.set(n,e)}).catch(()=>{}),yg.set(t,e),t}function EN(e){if(fm.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});fm.set(e,t)}let dm={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return fm.get(e);if(t==="objectStoreNames")return e.objectStoreNames||rT.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ai(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function TN(e){dm=e(dm)}function xN(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(xh(this),t,...n);return rT.set(r,t.sort?t.sort():[t]),ai(r)}:wN().includes(e)?function(...t){return e.apply(xh(this),t),ai(nT.get(this))}:function(...t){return ai(e.apply(xh(this),t))}}function RN(e){return typeof e=="function"?xN(e):(e instanceof IDBTransaction&&EN(e),_N(e,bN())?new Proxy(e,dm):e)}function ai(e){if(e instanceof IDBRequest)return SN(e);if(Th.has(e))return Th.get(e);const t=RN(e);return t!==e&&(Th.set(e,t),yg.set(t,e)),t}const xh=e=>yg.get(e);function AN(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=ai(s);return r&&s.addEventListener("upgradeneeded",l=>{r(ai(s.result),l.oldVersion,l.newVersion,ai(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const ON=["get","getKey","getAll","getAllKeys","count"],kN=["put","add","delete","clear"],Rh=new Map;function u1(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Rh.get(t))return Rh.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=kN.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||ON.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let u=l.store;
247return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&l.done]))[0]};return Rh.set(t,o),o}TN(e=>({...e,get:(t,n,r)=>u1(t,n)||e.get(t,n,r),has:(t,n)=>!!u1(t,n)||e.has(t,n)}));/**
248 * @license
249 * Copyright 2019 Google LLC
250 *
251 * Licensed under the Apache License, Version 2.0 (the "License");
252 * you may not use this file except in compliance with the License.
253 * You may obtain a copy of the License at
254 *
255 *   http://www.apache.org/licenses/LICENSE-2.0
256 *
257 * Unless required by applicable law or agreed to in writing, software
258 * distributed under the License is distributed on an "AS IS" BASIS,
259 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
260 * See the License for the specific language governing permissions and
261 * limitations under the License.
262 */class CN{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(PN(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function PN(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const hm="@firebase/app",c1="0.10.5";/**
263 * @license
264 * Copyright 2019 Google LLC
265 *
266 * Licensed under the Apache License, Version 2.0 (the "License");
267 * you may not use this file except in compliance with the License.
268 * You may obtain a copy of the License at
269 *
270 *   http://www.apache.org/licenses/LICENSE-2.0
271 *
272 * Unless required by applicable law or agreed to in writing, software
273 * distributed under the License is distributed on an "AS IS" BASIS,
274 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
275 * See the License for the specific language governing permissions and
276 * limitations under the License.
277 */const oo=new tT("@firebase/app"),NN="@firebase/app-compat",IN="@firebase/analytics-compat",LN="@firebase/analytics",DN="@firebase/app-check-compat",MN="@firebase/app-check",$N="@firebase/auth",jN="@firebase/auth-compat",BN="@firebase/database",FN="@firebase/database-compat",UN="@firebase/functions",VN="@firebase/functions-compat",zN="@firebase/installations",qN="@firebase/installations-compat",HN="@firebase/messaging",WN="@firebase/messaging-compat",KN="@firebase/performance",GN="@firebase/performance-compat",ZN="@firebase/remote-config",YN="@firebase/remote-config-compat",XN="@firebase/storage",QN="@firebase/storage-compat",JN="@firebase/firestore",eI="@firebase/vertexai-preview",tI="@firebase/firestore-compat",nI="firebase",rI="10.12.2";/**
278 * @license
279 * Copyright 2019 Google LLC
280 *
281 * Licensed under the Apache License, Version 2.0 (the "License");
282 * you may not use this file except in compliance with the License.
283 * You may obtain a copy of the License at
284 *
285 *   http://www.apache.org/licenses/LICENSE-2.0
286 *
287 * Unless required by applicable law or agreed to in writing, software
288 * distributed under the License is distributed on an "AS IS" BASIS,
289 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
290 * See the License for the specific language governing permissions and
291 * limitations under the License.
292 */const pm="[DEFAULT]",iI={[hm]:"fire-core",[NN]:"fire-core-compat",[LN]:"fire-analytics",[IN]:"fire-analytics-compat",[MN]:"fire-app-check",[DN]:"fire-app-check-compat",[$N]:"fire-auth",[jN]:"fire-auth-compat",[BN]:"fire-rtdb",[FN]:"fire-rtdb-compat",[UN]:"fire-fn",[VN]:"fire-fn-compat",[zN]:"fire-iid",[qN]:"fire-iid-compat",[HN]:"fire-fcm",[WN]:"fire-fcm-compat",[KN]:"fire-perf",[GN]:"fire-perf-compat",[ZN]:"fire-rc",[YN]:"fire-rc-compat",[XN]:"fire-gcs",[QN]:"fire-gcs-compat",[JN]:"fire-fst",[tI]:"fire-fst-compat",[eI]:"fire-vertex","fire-js":"fire-js",[nI]:"fire-js-all"};/**
293 * @license
294 * Copyright 2019 Google LLC
295 *
296 * Licensed under the Apache License, Version 2.0 (the "License");
297 * you may not use this file except in compliance with the License.
298 * You may obtain a copy of the License at
299 *
300 *   http://www.apache.org/licenses/LICENSE-2.0
301 *
302 * Unless required by applicable law or agreed to in writing, software
303 * distributed under the License is distributed on an "AS IS" BASIS,
304 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
305 * See the License for the specific language governing permissions and
306 * limitations under the License.
307 */const Yc=new Map,oI=new Map,mm=new Map;function f1(e,t){try{e.container.addComponent(t)}catch(n){oo.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ll(e){const t=e.name;if(mm.has(t))return oo.debug(`There were multiple attempts to register component ${t}.`),!1;mm.set(t,e);for(const n of Yc.values())f1(n,e);for(const n of oI.values())f1(n,e);return!0}function iT(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function An(e){return e.settings!==void 0}/**
308 * @license
309 * Copyright 2019 Google LLC
310 *
311 * Licensed under the Apache License, Version 2.0 (the "License");
312 * you may not use this file except in compliance with the License.
313 * You may obtain a copy of the License at
314 *
315 *   http://www.apache.org/licenses/LICENSE-2.0
316 *
317 * Unless required by applicable law or agreed to in writing, software
318 * distributed under the License is distributed on an "AS IS" BASIS,
319 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
320 * See the License for the specific language governing permissions and
321 * limitations under the License.
322 */const sI={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
322d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},li=new zl("app","Firebase",sI);/**
323 * @license
324 * Copyright 2019 Google LLC
325 *
326 * Licensed under the Apache License, Version 2.0 (the "License");
327 * you may not use this file except in compliance with the License.
328 * You may obtain a copy of the License at
329 *
330 *   http://www.apache.org/licenses/LICENSE-2.0
331 *
332 * Unless required by applicable law or agreed to in writing, software
333 * distributed under the License is distributed on an "AS IS" BASIS,
334 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
335 * See the License for the specific language governing permissions and
336 * limitations under the License.
337 */class aI{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new ms("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw li.create("app-deleted",{appName:this._name})}}/**
338 * @license
339 * Copyright 2019 Google LLC
340 *
341 * Licensed under the Apache License, Version 2.0 (the "License");
342 * you may not use this file except in compliance with the License.
343 * You may obtain a copy of the License at
344 *
345 *   http://www.apache.org/licenses/LICENSE-2.0
346 *
347 * Unless required by applicable law or agreed to in writing, software
348 * distributed under the License is distributed on an "AS IS" BASIS,
349 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
350 * See the License for the specific language governing permissions and
351 * limitations under the License.
352 */const Hl=rI;function oT(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:pm,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw li.create("bad-app-name",{appName:String(i)});if(n||(n=JE()),!n)throw li.create("no-options");const o=Yc.get(i);if(o){if(Zc(n,o.options)&&Zc(r,o.config))return o;throw li.create("duplicate-app",{appName:i})}const s=new pN(i);for(const l of mm.values())s.addComponent(l);const a=new aI(n,r,s);return Yc.set(i,a),a}function lI(e=pm){const t=Yc.get(e);if(!t&&e===pm&&JE())return oT();if(!t)throw li.create("no-app",{appName:e});return t}
352function es(e,t,n){var r;let i=(r=iI[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${t}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),oo.warn(a.join(" "));return}ll(new ms(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
353 * @license
354 * Copyright 2021 Google LLC
355 *
356 * Licensed under the Apache License, Version 2.0 (the "License");
357 * you may not use this file except in compliance with the License.
358 * You may obtain a copy of the License at
359 *
360 *   http://www.apache.org/licenses/LICENSE-2.0
361 *
362 * Unless required by applicable law or agreed to in writing, software
363 * distributed under the License is distributed on an "AS IS" BASIS,
364 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
365 * See the License for the specific language governing permissions and
366 * limitations under the License.
367 */const uI="firebase-heartbeat-database",cI=1,ul="firebase-heartbeat-store";let Ah=null;function sT(){return Ah||(Ah=AN(uI,cI,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(ul)}catch(n){console.warn(n)}}}}).catch(e=>{throw li.create("idb-open",{originalErrorMessage:e.message})})),Ah}async function fI(e){try{const n=(await sT()).transaction(ul),r=await n.objectStore(ul).get(aT(e));return await n.done,r}catch(t){if(t instanceof Ai)oo.warn(t.message);else{const n=li.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});oo.warn(n.message)}}}async function d1(e,t){try{const r=(await sT()).transaction(ul,"readwrite");await r.objectStore(ul).put(t,aT(e)),await r.done}catch(n){if(n instanceof Ai)oo.warn(n.message);else{const r=li.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});oo.warn(r.message)}}}function aT(e){return`${e.name}!${e.options.appId}`}/**
368 * @license
369 * Copyright 2021 Google LLC
370 *
371 * Licensed under the Apache License, Version 2.0 (the "License");
372 * you may not use this file except in compliance with the License.
373 * You may obtain a copy of the License at
374 *
375 *   http://www.apache.org/licenses/LICENSE-2.0
376 *
377 * Unless required by applicable law or agreed to in writing, software
378 * distributed under the License is distributed on an "AS IS" BASIS,
379 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
380 * See the License for the specific language governing permissions and
381 * limitations under the License.
382 */const dI=1024,hI=30*24*60*60*1e3;class pI{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new vI(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=h1();if(!(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)))return this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=hI}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var t;if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=h1(),{heartbeatsToSend:r,unsentEntries:i}=mI(this._heartbeatsCache.heartbeats),o=XE(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}}function h1(){return new Date().toISOString().substring(0,10)}function mI(e,t=dI){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),p1(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),p1(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class vI{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return nN()?rN().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await fI(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return d1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return d1(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function p1(e){return XE(JSON.stringify({version:2,heartbeats:e})).length}/**
383 * @license
384 * Copyright 2019 Google LLC
385 *
386 * Licensed under the Apache License, Version 2.0 (the "License");
387 * you may not use this file except in compliance with the License.
388 * You may obtain a copy of the License at
389 *
390 *   http://www.apache.org/licenses/LICENSE-2.0
391 *
392 * Unless required by applicable law or agreed to in writing, software
393 * distributed under the License is distributed on an "AS IS" BASIS,
394 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
395 * See the License for the specific language governing permissions and
396 * limitations under the License.
397 */function gI(e){ll(new ms("platform-logger",t=>new CN(t),"PRIVATE")),ll(new ms("heartbeat",t=>new pI(t),"PRIVATE")),es(hm,c1,e),es(hm,c1,"esm2017"),es("fire-js","")}gI("");var zn=function(){return zn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},zn.apply(this,arguments)};function Wl(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 yI(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function lT(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const _I=lT,uT=new zl("auth","Firebase",lT());/**
398 * @license
399 * Copyright 2020 Google LLC
400 *
401 * Licensed under the Apache License, Version 2.0 (the "License");
402 * you may not use this file except in compliance with the License.
403 * You may obtain a copy of the License at
404 *
405 *   http://www.apache.org/licenses/LICENSE-2.0
406 *
407 * Unless required by applicable law or agreed to in writing, software
408 * distributed under the License is distributed on an "AS IS" BASIS,
409 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
410 * See the License for the specific language governing permissions and
411 * limitations under the License.
412 */const Xc=new tT("@firebase/auth");function bI(e,...t){Xc.logLevel<=Ve.WARN&&Xc.warn(`Auth (${Hl}): ${e}`,...t)}function lc(e,...t){Xc.logLevel<=Ve.ERROR&&Xc.error(`Auth (${Hl}): ${e}`,...t)}/**
413 * @license
414 * Copyright 2020 Google LLC
415 *
416 * Licensed under the Apache License, Version 2.0 (the "License");
417 * you may not use this file except in compliance with the License.
418 * You may obtain a copy of the License at
419 *
420 *   http://www.apache.org/licenses/LICENSE-2.0
421 *
422 * Unless required by applicable law or agreed to in writing, software
423 * distributed under the License is distributed on an "AS IS" BASIS,
424 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
425 * See the License for the specific language governing permissions and
426 * limitations under the License.
427 */function yn(e,...t){throw bg(e,...t)}function Pn(e,...t){return bg(e,...t)}function _g(e,t,n){const r=Object.assign(Object.assign({},_I()),{[t]:n});return new zl("auth","Firebase",r).create(t,{appName:e.name})}function pr(e){return _g(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function wI(e,t,n){const r=n;if(!(t instanceof r))throw r.name!==t.constructor.name&&yn(e,"argument-error"),_g(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function bg(e,...t){if(typeof e!="string"){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return uT.create(e,...t)}function Se(e,t,...n){if(!e)throw bg(t,...n)}function ur(e){const t="INTERNAL ASSERTION FAILED: "+e;throw lc(t),new Error(t)}function Sr(e,t){e||ur(t)}/**
428 * @license
429 * Copyright 2020 Google LLC
430 *
431 * Licensed under the Apache License, Version 2.0 (the "License");
432 * you may not use this file except in compliance with the License.
433 * You may obtain a copy of the License at
434 *
435 *   http://www.apache.org/licenses/LICENSE-2.0
436 *
437 * Unless required by applicable law or agreed to in writing, software
438 * distributed under the License is distributed on an "AS IS" BASIS,
439 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
440 * See the License for the specific language governing permissions and
441 * limitations under the License.
442 */function vm(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.href)||""}function SI(){return m1()==="http:"||m1()==="https:"}function m1(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.protocol)||null}/**
443 * @license
444 * Copyright 2020 Google LLC
445 *
446 * Licensed under the Apache License, Version 2.0 (the "License");
447 * you may not use this file except in compliance with the License.
448 * You may obtain a copy of the License at
449 *
450 *   http://www.apache.org/licenses/LICENSE-2.0
451 *
452 * Unless required by applicable law or agreed to in writing, software
453 * distributed under the License is distributed on an "AS IS" BASIS,
454 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
455 * See the License for the specific language governing permissions and
456 * limitations under the License.
457 */function EI(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(SI()||J2()||"connection"in navigator)?navigator.onLine:!0}function TI(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/**
458 * @license
459 * Copyright 2020 Google LLC
460 *
461 * Licensed under the Apache License, Version 2.0 (the "License");
462 * you may not use this file except in compliance with the License.
463 * You may obtain a copy of the License at
464 *
465 *   http://www.apache.org/licenses/LICENSE-2.0
466 *
467 * Unless required by applicable law or agreed to in writing, software
468 * distributed under the License is distributed on an "AS IS" BASIS,
469 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
470 * See the License for the specific language governing permissions and
471 * limitations under the License.
472 */class Kl{constructor(t,n){this.shortDelay=t,this.longDelay=n,Sr(n>t,"Short delay should be less than long delay!"),this.isMobile=Q2()||eN()}get(){return EI()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
473 * @license
474 * Copyright 2020 Google LLC
475 *
476 * Licensed under the Apache License, Version 2.0 (the "License");
477 * you may not use this file except in compliance with the License.
478 * You may obtain a copy of the License at
479 *
480 *   http://www.apache.org/licenses/LICENSE-2.0
481 *
482 * Unless required by applicable law or agreed to in writing, software
483 * distributed under the License is distributed on an "AS IS" BASIS,
484 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
485 * See the License for the specific language governing permissions and
486 * limitations under the License.
487 */function wg(e,t){Sr(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/**
488 * @license
489 * Copyright 2020 Google LLC
490 *
491 * Licensed under the Apache License, Version 2.0 (the "License");
492 * you may not use this file except in compliance with the License.
493 * You may obtain a copy of the License at
494 *
495 *   http://www.apache.org/licenses/LICENSE-2.0
496 *
497 * Unless required by applicable law or agreed to in writing, software
498 * distributed under the License is distributed on an "AS IS" BASIS,
499 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
500 * See the License for the specific language governing permissions and
501 * limitations under the License.
502 */class cT{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;ur("Could not find fetch implementation, make sure you call FetchProvi
502der.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;ur("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;ur("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
503 * @license
504 * Copyright 2020 Google LLC
505 *
506 * Licensed under the Apache License, Version 2.0 (the "License");
507 * you may not use this file except in compliance with the License.
508 * You may obtain a copy of the License at
509 *
510 *   http://www.apache.org/licenses/LICENSE-2.0
511 *
512 * Unless required by applicable law or agreed to in writing, software
513 * distributed under the License is distributed on an "AS IS" BASIS,
514 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
515 * See the License for the specific language governing permissions and
516 * limitations under the License.
517 */const xI={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/**
518 * @license
519 * Copyright 2020 Google LLC
520 *
521 * Licensed under the Apache License, Version 2.0 (the "License");
522 * you may not use this file except in compliance with the License.
523 * You may obtain a copy of the License at
524 *
525 *   http://www.apache.org/licenses/LICENSE-2.0
526 *
527 * Unless required by applicable law or agreed to in writing, software
528 * distributed under the License is distributed on an "AS IS" BASIS,
529 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
530 * See the License for the specific language governing permissions and
531 * limitations under the License.
532 */const RI=new Kl(3e4,6e4);function Oi(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function ki(e,t,n,r,i={}){return fT(e,i,async()=>{let o={},s={};r&&(t==="GET"?s=r:o={body:JSON.stringify(r)});const a=ql(Object.assign({key:e.config.apiKey},s)).slice(1),l=await e._getAdditionalHeaders();return l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode),cT.fetch()(dT(e,e.config.apiHost,n,a),Object.assign({method:t,headers:l,referrerPolicy:"no-referrer"},o))})}async function fT(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},xI),t);try{const i=new OI(e),o=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const s=await o.json();if("needConfirmation"in s)throw Pu(e,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const a=o.ok?s.errorMessage:s.error.message,[l,u]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Pu(e,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw Pu(e,"email-already-in-use",s);if(l==="USER_DISABLED")throw Pu(e,"user-disabled",s);const c=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(u)throw _g(e,c,u);yn(e,c)}}catch(i){if(i instanceof Ai)throw i;yn(e,"network-request-failed",{message:String(i)})}}async function Gl(e,t,n,r,i={}){const o=await ki(e,t,n,r,i);return"mfaPendingCredential"in o&&yn(e,"multi-factor-auth-required",{_serverResponse:o}),o}function dT(e,t,n,r){const i=`${t}${n}?${r}`;return e.config.emulator?wg(e.config,i):`${e.config.apiScheme}://${i}`}function AI(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class OI{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Pn(this.auth,"network-request-failed")),RI.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}
532function Pu(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=Pn(e,t,r);return i.customData._tokenResponse=n,i}function v1(e){return e!==void 0&&e.enterprise!==void 0}class kI{constructor(t){if(this.siteKey="",this.recaptchaEnforcementState=[],t.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=t.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=t.recaptchaEnforcementState}getProviderEnforcementState(t){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===t)return AI(n.enforcementState);return null}isProviderEnabled(t){return this.getProviderEnforcementState(t)==="ENFORCE"||this.getProviderEnforcementState(t)==="AUDIT"}}async function CI(e,t){return ki(e,"GET","/v2/recaptchaConfig",Oi(e,t))}/**
533 * @license
534 * Copyright 2020 Google LLC
535 *
536 * Licensed under the Apache License, Version 2.0 (the "License");
537 * you may not use this file except in compliance with the License.
538 * You may obtain a copy of the License at
539 *
540 *   http://www.apache.org/licenses/LICENSE-2.0
541 *
542 * Unless required by applicable law or agreed to in writing, software
543 * distributed under the License is distributed on an "AS IS" BASIS,
544 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545 * See the License for the specific language governing permissions and
546 * limitations under the License.
547 */async function PI(e,t){return ki(e,"POST","/v1/accounts:delete",t)}async function hT(e,t){return ki(e,"POST","/v1/accounts:lookup",t)}/**
548 * @license
549 * Copyright 2020 Google LLC
550 *
551 * Licensed under the Apache License, Version 2.0 (the "License");
552 * you may not use this file except in compliance with the License.
553 * You may obtain a copy of the License at
554 *
555 *   http://www.apache.org/licenses/LICENSE-2.0
556 *
557 * Unless required by applicable law or agreed to in writing, software
558 * distributed under the License is distributed on an "AS IS" BASIS,
559 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
560 * See the License for the specific language governing permissions and
561 * limitations under the License.
562 */function La(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function NI(e,t=!1){const n=Or(e),r=await n.getIdToken(t),i=Sg(r);Se(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o=typeof i.firebase=="object"?i.firebase:void 0,s=o==null?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:La(Oh(i.auth_time)),issuedAtTime:La(Oh(i.iat)),expirationTime:La(Oh(i.exp)),signInProvider:s||null,signInSecondFactor:(o==null?void 0:o.sign_in_second_factor)||null}}function Oh(e){return Number(e)*1e3}function Sg(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return lc("JWT malformed, contained fewer than 3 sections"),null;try{const i=QE(n);return i?JSON.parse(i):(lc("Failed to decode base64 JWT payload"),null)}catch(i){return lc("Caught error parsing JWT payload as JSON",i==null?void 0:i.toString()),null}}function g1(e){const t=Sg(e);return Se(t,"internal-error"),Se(typeof t.exp<"u","internal-error"),Se(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/**
563 * @license
564 * Copyright 2020 Google LLC
565 *
566 * Licensed under the Apache License, Version 2.0 (the "License");
567 * you may not use this file except in compliance with the License.
568 * You may obtain a copy of the License at
569 *
570 *   http://www.apache.org/licenses/LICENSE-2.0
571 *
572 * Unless required by applicable law or agreed to in writing, software
573 * distributed under the License is distributed on an "AS IS" BASIS,
574 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
575 * See the License for the specific language governing permissions and
576 * limitations under the License.
577 */async function cl(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof Ai&&II(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function II({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/**
578 * @license
579 * Copyright 2020 Google LLC
580 *
581 * Licensed under the Apache License, Version 2.0 (the "License");
582 * you may not use this file except in compliance with the License.
583 * You may obtain a copy of the License at
584 *
585 *   http://www.apache.org/licenses/LICENSE-2.0
586 *
587 * Unless required by applicable law or agreed to in writing, software
588 * distributed under the License is distributed on an "AS IS" BASIS,
589 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
590 * See the License for the specific language governing permissions and
591 * limitations under the License.
592 */class LI{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var n;if(t){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const i=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
593 * @license
594 * Copyright 2020 Google LLC
595 *
596 * Licensed under the Apache License, Version 2.0 (the "License");
597 * you may not use this file except in compliance with the License.
598 * You may obtain a copy of the License at
599 *
600 *   http://www.apache.org/licenses/LICENSE-2.0
601 *
602 * Unless required by applicable law or agreed to in writing, software
603 * distributed under the License is distributed on an "AS IS" BASIS,
604 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
605 * See the License for the specific language governing permissions and
606 * limitations under the License.
607 */class gm{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=La(this.lastLoginAt),this.creationTime=La(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
608 * @license
609 * Copyright 2019 Google LLC
610 *
611 * Licensed under the Apache License, Version 2.0 (the "License");
612 * you may not use this file except in compliance with the License.
613 * You may obtain a copy of the License at
614 *
615 *   http://www.apache.org/licenses/LICENSE-2.0
616 *
617 * Unless required by applicable law or agreed to in writing, software
618 * distributed under the License is distributed on an "AS IS" BASIS,
619 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
620 * See the License for the specific language governing permissions and
621 * limitations under the License.
622 */async function Qc(e){var t;const n=e.auth,r=await e.getIdToken(),i=await cl(e,hT(n,{idToken:r}));Se(i==null?void 0:i.users.length,n,"internal-error");const o=i.users[0];e._notifyReloadListener(o);const s=!((t=o.providerUserInfo)===null||t===void 0)&&t.length?pT(o.providerUserInfo):[],a=MI(e.providerData,s),l=e.isAnonymous,u=!(e.email&&o.passwordHash)&&!(a!=null&&a.length),c=l?u:!1,f={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:a,metadata:new gm(o.createdAt,o.lastLoginAt),isAnonymous:c};Object.assign(e,f)}async function DI(e){const t=Or(e);await Qc(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function MI(e,t){return[...e.filter(r=>!t.some(i=>i.providerId===r.providerId)),...t]}function pT(e){return e.map(t=>{var{providerId:n}=t,r=Wl(t,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
623 * @license
624 * Copyright 2020 Google LLC
625 *
626 * Licensed under the Apache License, Version 2.0 (the "License");
627 * you may not use this file except in compliance with the License.
628 * You may obtain a copy of the License at
629 *
630 *   http://www.apache.org/licenses/LICENSE-2.0
631 *
632 * Unless required by applicable law or agreed to in writing, softw
632are
633 * distributed under the License is distributed on an "AS IS" BASIS,
634 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
635 * See the License for the specific language governing permissions and
636 * limitations under the License.
637 */async function $I(e,t){const n=await fT(e,{},async()=>{const r=ql({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:i,apiKey:o}=e.config,s=dT(e,i,"/v1/token",`key=${o}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",cT.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function jI(e,t){return ki(e,"POST","/v2/accounts:revokeToken",Oi(e,t))}/**
638 * @license
639 * Copyright 2020 Google LLC
640 *
641 * Licensed under the Apache License, Version 2.0 (the "License");
642 * you may not use this file except in compliance with the License.
643 * You may obtain a copy of the License at
644 *
645 *   http://www.apache.org/licenses/LICENSE-2.0
646 *
647 * Unless required by applicable law or agreed to in writing, software
648 * distributed under the License is distributed on an "AS IS" BASIS,
649 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
650 * See the License for the specific language governing permissions and
651 * limitations under the License.
652 */class ts{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){Se(t.idToken,"internal-error"),Se(typeof t.idToken<"u","internal-error"),Se(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):g1(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){Se(t.length!==0,"internal-error");const n=g1(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Se(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:i,expiresIn:o}=await $I(t,n);this.updateTokensAndExpiration(r,i,Number(o))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:i,expirationTime:o}=n,s=new ts;return r&&(Se(typeof r=="string","internal-error",{appName:t}),s.refreshToken=r),i&&(Se(typeof i=="string","internal-error",{appName:t}),s.accessToken=i),o&&(Se(typeof o=="number","internal-error",{appName:t}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new ts,this.toJSON())}_performRefresh(){return ur("not implemented")}}/**
653 * @license
654 * Copyright 2020 Google LLC
655 *
656 * Licensed under the Apache License, Version 2.0 (the "License");
657 * you may not use this file except in compliance with the License.
658 * You may obtain a copy of the License at
659 *
660 *   http://www.apache.org/licenses/LICENSE-2.0
661 *
662 * Unless required by applicable law or agreed to in writing, software
663 * distributed under the License is distributed on an "AS IS" BASIS,
664 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
665 * See the License for the specific language governing permissions and
666 * limitations under the License.
667 */function Ir(e,t){Se(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class cr{constructor(t){var{uid:n,auth:r,stsTokenManager:i}=t,o=Wl(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new LI(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=o.displayName||null,this.email=o.email||null,this.emailVerified=o.emailVerified||!1,this.phoneNumber=o.phoneNumber||null,this.photoURL=o.photoURL||null,this.isAnonymous=o.isAnonymous||!1,this.tenantId=o.tenantId||null,this.providerData=o.providerData?[...o.providerData]:[],this.metadata=new gm(o.createdAt||void 0,o.lastLoginAt||void 0)}async getIdToken(t){const n=await cl(this,this.stsTokenManager.getToken(this.auth,t));return Se(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return NI(this,t)}reload(){return DI(this)}_assign(t){this!==t&&(Se(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>Object.assign({},n)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new cr(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){Se(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await Qc(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(An(this.auth.app))return Promise.reject(pr(this.auth));const t=await this.getIdToken();return await cl(this,PI(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
667nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){var r,i,o,s,a,l,u,c;const f=(r=n.displayName)!==null&&r!==void 0?r:void 0,d=(i=n.email)!==null&&i!==void 0?i:void 0,h=(o=n.phoneNumber)!==null&&o!==void 0?o:void 0,g=(s=n.photoURL)!==null&&s!==void 0?s:void 0,v=(a=n.tenantId)!==null&&a!==void 0?a:void 0,b=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,m=(u=n.createdAt)!==null&&u!==void 0?u:void 0,p=(c=n.lastLoginAt)!==null&&c!==void 0?c:void 0,{uid:y,emailVerified:_,isAnonymous:w,providerData:x,stsTokenManager:E}=n;Se(y&&E,t,"internal-error");const S=ts.fromJSON(this.name,E);Se(typeof y=="string",t,"internal-error"),Ir(f,t.name),Ir(d,t.name),Se(typeof _=="boolean",t,"internal-error"),Se(typeof w=="boolean",t,"internal-error"),Ir(h,t.name),Ir(g,t.name),Ir(v,t.name),Ir(b,t.name),Ir(m,t.name),Ir(p,t.name);const C=new cr({uid:y,auth:t,email:d,emailVerified:_,displayName:f,isAnonymous:w,photoURL:g,phoneNumber:h,tenantId:v,stsTokenManager:S,createdAt:m,lastLoginAt:p});return x&&Array.isArray(x)&&(C.providerData=x.map(T=>Object.assign({},T))),b&&(C._redirectEventId=b),C}static async _fromIdTokenResponse(t,n,r=!1){const i=new ts;i.updateFromServerResponse(n);const o=new cr({uid:n.localId,auth:t,stsTokenManager:i,isAnonymous:r});return await Qc(o),o}static async _fromGetAccountInfoResponse(t,n,r){const i=n.users[0];Se(i.localId!==void 0,"internal-error");const o=i.providerUserInfo!==void 0?pT(i.providerUserInfo):[],s=!(i.email&&i.passwordHash)&&!(o!=null&&o.length),a=new ts;a.updateFromIdToken(r);const l=new cr({uid:i.localId,auth:t,stsTokenManager:a,isAnonymous:s}),u={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new gm(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!(o!=null&&o.length)};return Object.assign(l,u),l}}/**
668 * @license
669 * Copyright 2020 Google LLC
670 *
671 * Licensed under the Apache License, Version 2.0 (the "License");
672 * you may not use this file except in compliance with the License.
673 * You may obtain a copy of the License at
674 *
675 *   http://www.apache.org/licenses/LICENSE-2.0
676 *
677 * Unless required by applicable law or agreed to in writing, software
678 * distributed under the License is distributed on an "AS IS" BASIS,
679 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
680 * See the License for the specific language governing permissions and
681 * limitations under the License.
682 */const y1=new Map;function fr(e){Sr(e instanceof Function,"Expected a class definition");let t=y1.get(e);return t?(Sr(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,y1.set(e,t),t)}/**
683 * @license
684 * Copyright 2019 Google LLC
685 *
686 * Licensed under the Apache License, Version 2.0 (the "License");
687 * you may not use this file except in compliance with the License.
688 * You may obtain a copy of the License at
689 *
690 *   http://www.apache.org/licenses/LICENSE-2.0
691 *
692 * Unless required by applicable law or agreed to in writing, software
693 * distributed under the License is distributed on an "AS IS" BASIS,
694 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
695 * See the License for the specific language governing permissions and
696 * limitations under the License.
697 */class mT{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}mT.type="NONE";const _1=mT;/**
698 * @license
699 * Copyright 2019 Google LLC
700 *
701 * Licensed under the Apache License, Version 2.0 (the "License");
702 * you may not use this file except in compliance with the License.
703 * You may obtain a copy of the License at
704 *
705 *   http://www.apache.org/licenses/LICENSE-2.0
706 *
707 * Unless required by applicable law or agreed to in writing, software
708 * distributed under the License is distributed on an "AS IS" BASIS,
709 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
710 * See the License for the specific language governing permissions and
711 * limitations under the License.
712 */function uc(e,t,n){return`firebase:${e}:${t}:${n}`}class ns{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:i,name:o}=this.auth;this.fullUserKey=uc(this.userKey,i.apiKey,o),this.fullPersistenceKey=uc("persistence",i.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);return t?cr._fromJSON(this.auth,t):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new ns(fr(_1),t,r);const i=(await Promise.all(n.map(async u=>{if(await u._isAvailable())return u}))).filter(u=>u);let o=i[0]||fr(_1);const s=uc(r,t.config.apiKey,t.name);let a=null;for(const u of n)try{const c=await u._get(s);if(c){const f=cr._fromJSON(t,c);u!==o&&(a=f),o=u;break}}catch{}const l=i.filter(u=>u._shouldAllowMigration);return!o._shouldAllowMigration||!l.length?new ns(o,t,r):(o=l[0],a&&await o._set(s,a.toJSON()),await Promise.all(n.map(async u=>{if(u!==o)try{await u._remove(s)}catch{}})),new ns(o,t,r))}}/**
713 * @license
714 * Copyright 2020 Google LLC
715 *
716 * Licensed under the Apache License, Version 2.0 (the "License");
717 * you may not use this file except in compliance with the License.
718 * You may obtain a copy of the License at
719 *
720 *   http://www.apache.org/licenses/LICENSE-2.0
721 *
722 * Unless required by applicable law or agreed to in writing, software
723 * distributed under the License is distributed on an "AS IS" BASIS,
724 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
725 * See the License for the specific language governing permissions and
726 * limitations under the License.
727 */function b1(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(yT(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(vT(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(bT(t))return"Blackberry";if(wT(t))return"Webos";if(Eg(t))return"Safari";if((t.includes("chrome/")||gT(t))&&!t.includes("edge/"))return"Chrome";if(_T(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function vT(e=Pt()){return/firefox\//i.test(e)}function Eg(e=Pt()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function gT(e=Pt()){return/crios\//i.test(e)}function yT(e=Pt()){return/iemobile/i.test(e)}function _T(e=Pt()){return/android/i.test(e)}function bT(e=Pt()){return/blackberry/i.test(e)}function wT(e=Pt()){return/webos/i.test(e)}function Xf(e=Pt()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function BI(e=Pt()){var t;return Xf(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function FI(){return tN()&&document.documentMode===10}function ST(e=Pt()){return Xf(e)||_T(e)||wT(e)||bT(e)||/windows phone/i.test(e)||yT(e)}function UI(){try{return!!(window&&window!==window.top)}catch{return!1}}/**
728 * @license
729 * Copyright 2020 Google LLC
730 *
731 * Licensed under the Apache License, Version 2.0 (the "License");
732 * you may not use this file except in compliance with the License.
733 * You may obtain a copy of the License at
734 *
735 *   http://www.apache.org/licenses/LICENSE-2.0
736 *
737 * Unless required by applicable law or agreed to in writing, software
738 * distributed under the License is distributed on an "AS IS" BASIS,
739 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
740 * See the License for the specific language governing permissions and
741 * limitations under the License.
742 */function ET(e,t=[]){let n;switch(e){case"Browser":n=b1(Pt());break;case"Worker":n=`${b1(Pt())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${Hl}/${r}`}/**
743 * @license
744 * Copyright 2022 Google LLC
745 *
746 * Licensed under the Apache License, Version 2.0 (the "License");
747 * you may not use this file except in compliance with the License.
748 * You may obtain a copy of the License at
749 *
750 *   http://www.apache.org/licenses/LICENSE-2.0
751 *
752 * Unless required by applicable law or agreed to in writing, software
753 * distributed under the License is distributed on an "AS IS" BASIS,
754 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
755 * See the License for the specific language governing permissions and
756 * limitations under the License.
757 */class VI{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=o=>new Promise((s,a)=>{try{const l=t(o);s(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const i of n)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/**
758 * @license
759 * Copyright 2023 Google LLC
760 *
761 * Licensed under the Apache License, Version 2.0 (the "License");
762 * you may not use this file except in compliance with the License.
763 * You may obtain a copy of the License at
764 *
765 *   http://www.apache.org/licenses/LICENSE-2.0
766 *
767 * Unless required by applicable law or agreed to in writing, software
768 * distributed under the License is distributed on an "AS IS" BASIS,
769 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
770 * See the License for the specific language governing permissions and
771 * limitations under the License.
772 */async function zI(e,t={}){return ki(e,"GET","/v2/passwordPolicy",Oi(e,t))}/**
773 * @license
774 * Copyright 2023 Google LLC
775 *
776 * Licensed under the Apache License, Version 2.0 (the "License");
777 * you may not use this file except in compliance with the License.
778 * You may obtain a copy of the License at
779 *
780 *   http://www.apache.org/licenses/LICENSE-2.0
781 *
782 * Unless required by applicable law or agreed to in writing, software
783 * distributed under the License is distributed on an "AS IS" BASIS,
784 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
785 * See the License for the specific language governing permissions and
786 * limitations under the License.
787 */const qI=6;class HI{constructor(t){var n,r,i,o;const s=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=s.minPasswordLength)!==null&&n!==void 0?n:qI,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(i=(r=t.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&i!==void 0?i:"",this.forceUpgradeOnSignin=(o=t.forceUpgradeOnSignin)!==null&&o!==void 0?o:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var n,r,i,o,s,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,l),this.validatePasswordCharacterOptions(t,l),l.isValid&&
787(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(i=l.containsLowercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(o=l.containsUppercaseLetter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(s=l.containsNumericCharacter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),i&&(n.meetsMaxPasswordLength=t.length<=i)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let i=0;i<t.length;i++)r=t.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,i,o){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=o))}}/**
788 * @license
789 * Copyright 2020 Google LLC
790 *
791 * Licensed under the Apache License, Version 2.0 (the "License");
792 * you may not use this file except in compliance with the License.
793 * You may obtain a copy of the License at
794 *
795 *   http://www.apache.org/licenses/LICENSE-2.0
796 *
797 * Unless required by applicable law or agreed to in writing, software
798 * distributed under the License is distributed on an "AS IS" BASIS,
799 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
800 * See the License for the specific language governing permissions and
801 * limitations under the License.
802 */class WI{constructor(t,n,r,i){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new w1(this),this.idTokenSubscription=new w1(this),this.beforeStateQueue=new VI(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=uT,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=i.sdkClientVersion}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=fr(n)),this._initializationPromise=this.queue(async()=>{var r,i;if(!this._deleted&&(this.persistenceManager=await ns.create(this,t),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await hT(this,{idToken:t}),r=await cr._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var n;if(An(this.app)){const s=this.app.settings.authIdToken;return s?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let i=r,o=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=i==null?void 0:i._redirectEventId,l=await this.tryRedirectSignIn(t);(!s||s===a)&&(l!=null&&l.user)&&(i=l.user,o=!0)}if(!i)return this.directlySetCurrentUser(null);
802if(!i._redirectEventId){if(o)try{await this.beforeStateQueue.runMiddleware(i)}catch(s){i=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return Se(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await Qc(t)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=TI()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(An(this.app))return Promise.reject(pr(this));const n=t?Or(t):null;return n&&Se(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&Se(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return An(this.app)?Promise.reject(pr(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return An(this.app)?Promise.reject(pr(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(fr(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await zI(this),n=new HI(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new zl("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await jI(this,r)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&fr(t)||this._popupRedirectResolver;Se(n,this,"argument-error"),this.redirectPersistenceManager=await ns.create(this,[fr(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===t?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,i){if(this._deleted)return()=>{};const o=typeof n=="function"?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Se(a,this,"internal-error"),a.then(()=>{s||o(this.currentUser)}),typeof n=="function"){const l=t.addObserver(n,r,i);return()=>{s=!0,l()}}else{const l=t.addObserver(n);return()=>{s=!0,l()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return Se(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=ET(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const i=await this._getAppCheckToken();return i&&(n["X-Firebase-AppCheck"]=i),n}async _getAppCheckToken(){var t;const n=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return n!=null&&n.error&&bI(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function Ci(e){return Or(e)}class w1{constructor(t){this.auth=t,this.observer=null,this.addObserver=lN(n=>this.observer=n)}get next(){return Se(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
803 * @license
804 * Copyright 2020 Google LLC
805 *
806 * Licensed under the Apache License, Version 2.0 (the "License");
807 * you may not use this file except in compliance with the License.
808 * You may obtain a copy of the License at
809 *
810 *   http://www.apache.org/licenses/LICENSE-2.0
811 *
812 * Unless required by applicable law or agreed to in writing, software
813 * distributed under the License is distributed on an "AS IS" BASIS,
814 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
815 * See the License for the specific language governing permissions and
816 * limitations under the License.
817 */let Qf={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function KI(e){Qf=e}function TT(e){return Qf.loadJS(e)}function GI(){return Qf.recaptchaEnterpriseScript}function ZI(){return Qf.gapiScript}function YI(e){return`__${e}${Math.floor(Math.random()*1e6)}`}const XI="recaptcha-enterprise",QI="NO_RECAPTCHA";class JI{constructor(t){this.type=XI,this.auth=Ci(t)}async verify(t="verify",n=!1){async function r(o){if(!n){if(o.tenantId==null&&o._agentRecaptchaConfig!=null)return o._agentRecaptchaConfig.siteKey;if(o.tenantId!=null&&o._tenantRecaptchaConfigs[o.tenantId]!==void 0)return o._tenantRecaptchaConfigs[o.tenantId].siteKey}return new Promise(async(s,a)=>{CI(o,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const u=new kI(l);return o.tenantId==null?o._agentRecaptchaConfig=u:o._tenantRecaptchaConfigs[o.tenantId]=u,s(u.siteKey)}}).catch(l=>{a(l)})})}function i(o,s,a){const l=window.grecaptcha;v1(l)?l.enterprise.ready(()=>{l.enterprise.execute(o,{action:t}).then(u=>{s(u)}).catch(()=>{s(QI)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((o,s)=>{r(this.auth).then(a=>{if(!n&&v1(window.grecaptcha))i(a,o,s);else{if(typeof window>"u"){s(new Error("RecaptchaVerifier is only supported in browser"));return}let l=GI();l.length!==0&&(l+=a),TT(l).then(()=>{i(a,o,s)}).catch(u=>{s(u)})}}).catch(a=>{s(a)})})}}async function S1(e,t,n,r=!1){const i=new JI(e);let o;try{o=await i.verify(n)}catch{o=await i.verify(n,!0)}const s=Object.assign({},t);return r?Object.assign(s,{captchaResp:o}):Object.assign(s,{captchaResponse:o}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}async function ym(e,t,n,r){var i;if(!((i=e._getRecaptchaConfig())===null||i===void 0)&&i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const o=await S1(e,t,n,n==="getOobCode");return r(e,o)}else return r(e,t).catch(async o=>{if(o.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const s=await S1(e,t,n,n==="getOobCode");return r(e,s)}else return Promise.reject(o)})}/**
818 * @license
819 * Copyright 2020 Google LLC
820 *
821 * Licensed under the Apache License, Version 2.0 (the "License");
822 * you may not use this file except in compliance with the License.
823 * You may obtain a copy of the License at
824 *
825 *   http://www.apache.org/licenses/LICENSE-2.0
826 *
827 * Unless required by applicable law or agreed to in writing, software
828 * distributed under the License is distributed on an "AS IS" BASIS,
829 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
830 * See the License for the specific language governing permissions and
831 * limitations under the License.
832 */function eL(e,t){const n=iT(e,"auth");if(n.isInitialized()){const i=n.getImmediate(),o=n.getOptions();if(Zc(o,t??{}))return i;yn(i,"already-initialized")}return n.initialize({options:t})}function tL(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(fr);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function nL(e,t,n){const r=Ci(e);Se(r._canInitEmulator,r,"emulator-config-failed"),Se(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!1,o=xT(t),{host:s,port:a}=rL(t),l=a===null?"":`:${a}`;r.config.emulator={url:`${o}//${s}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})}),iL()}function xT(e){const t=e.indexOf(":");
832return t<0?"":e.substr(0,t+1)}function rL(e){const t=xT(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const o=i[1];return{host:o,port:E1(r.substr(o.length+1))}}else{const[o,s]=r.split(":");return{host:o,port:E1(s)}}}function E1(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function iL(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/**
833 * @license
834 * Copyright 2020 Google LLC
835 *
836 * Licensed under the Apache License, Version 2.0 (the "License");
837 * you may not use this file except in compliance with the License.
838 * You may obtain a copy of the License at
839 *
840 *   http://www.apache.org/licenses/LICENSE-2.0
841 *
842 * Unless required by applicable law or agreed to in writing, software
843 * distributed under the License is distributed on an "AS IS" BASIS,
844 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
845 * See the License for the specific language governing permissions and
846 * limitations under the License.
847 */class Tg{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return ur("not implemented")}_getIdTokenResponse(t){return ur("not implemented")}_linkToIdToken(t,n){return ur("not implemented")}_getReauthenticationResolver(t){return ur("not implemented")}}async function oL(e,t){return ki(e,"POST","/v1/accounts:signUp",t)}/**
848 * @license
849 * Copyright 2020 Google LLC
850 *
851 * Licensed under the Apache License, Version 2.0 (the "License");
852 * you may not use this file except in compliance with the License.
853 * You may obtain a copy of the License at
854 *
855 *   http://www.apache.org/licenses/LICENSE-2.0
856 *
857 * Unless required by applicable law or agreed to in writing, software
858 * distributed under the License is distributed on an "AS IS" BASIS,
859 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
860 * See the License for the specific language governing permissions and
861 * limitations under the License.
862 */async function sL(e,t){return Gl(e,"POST","/v1/accounts:signInWithPassword",Oi(e,t))}/**
863 * @license
864 * Copyright 2020 Google LLC
865 *
866 * Licensed under the Apache License, Version 2.0 (the "License");
867 * you may not use this file except in compliance with the License.
868 * You may obtain a copy of the License at
869 *
870 *   http://www.apache.org/licenses/LICENSE-2.0
871 *
872 * Unless required by applicable law or agreed to in writing, software
873 * distributed under the License is distributed on an "AS IS" BASIS,
874 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
875 * See the License for the specific language governing permissions and
876 * limitations under the License.
877 */async function aL(e,t){return Gl(e,"POST","/v1/accounts:signInWithEmailLink",Oi(e,t))}async function lL(e,t){return Gl(e,"POST","/v1/accounts:signInWithEmailLink",Oi(e,t))}/**
878 * @license
879 * Copyright 2020 Google LLC
880 *
881 * Licensed under the Apache License, Version 2.0 (the "License");
882 * you may not use this file except in compliance with the License.
883 * You may obtain a copy of the License at
884 *
885 *   http://www.apache.org/licenses/LICENSE-2.0
886 *
887 * Unless required by applicable law or agreed to in writing, software
888 * distributed under the License is distributed on an "AS IS" BASIS,
889 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
890 * See the License for the specific language governing permissions and
891 * limitations under the License.
892 */class fl extends Tg{constructor(t,n,r,i=null){super("password",r),this._email=t,this._password=n,this._tenantId=i}static _fromEmailAndPassword(t,n){return new fl(t,n,"password")}static _fromEmailAndCode(t,n,r=null){return new fl(t,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t;if(n!=null&&n.email&&(n!=null&&n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(t){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return ym(t,n,"signInWithPassword",sL);case"emailLink":return aL(t,{email:this._email,oobCode:this._password});default:yn(t,"internal-error")}}async _linkToIdToken(t,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return ym(t,r,"signUpPassword",oL);case"emailLink":return lL(t,{idToken:n,email:this._email,oobCode:this._password});default:yn(t,"internal-error")}}_getReauthenticationResolver(t){return this._getIdTokenResponse(t)}}/**
893 * @license
894 * Copyright 2020 Google LLC
895 *
896 * Licensed under the Apache License, Version 2.0 (the "License");
897 * you may not use this file except in compliance with the License.
898 * You may obtain a copy of the License at
899 *
900 *   http://www.apache.org/licenses/LICENSE-2.0
901 *
902 * Unless required by applicable law or agreed to in writing, software
903 * distributed under the License is distributed on an "AS IS" BASIS,
904 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
905 * See the License for the specific language governing permissions and
906 * limitations under the License.
907 */async function rs(e,t){return Gl(e,"POST","/v1/accounts:signInWithIdp",Oi(e,t))}/**
908 * @license
909 * Copyright 2020 Google LLC
910 *
911 * Licensed under the Apache License, Version 2.0 (the "License");
912 * you may not use this file except in compliance with the License.
913 * You may obtain a copy of the License at
914 *
915 *   http://www.apache.org/licenses/LICENSE-2.0
916 *
917 * Unless required by applicable law or agreed to in writing, software
918 * distributed under the License is distributed on an "AS IS" BASIS,
919 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
920 * See the License for the specific language governing permissions and
921 * limitations under the License.
922 */const uL="http://localhost";class so extends Tg{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new so(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):yn("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
922once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:i}=n,o=Wl(n,["providerId","signInMethod"]);if(!r||!i)return null;const s=new so(r,i);return s.idToken=o.idToken||void 0,s.accessToken=o.accessToken||void 0,s.secret=o.secret,s.nonce=o.nonce,s.pendingToken=o.pendingToken||null,s}_getIdTokenResponse(t){const n=this.buildRequest();return rs(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,rs(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,rs(t,n)}buildRequest(){const t={requestUri:uL,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=ql(n)}return t}}/**
923 * @license
924 * Copyright 2020 Google LLC
925 *
926 * Licensed under the Apache License, Version 2.0 (the "License");
927 * you may not use this file except in compliance with the License.
928 * You may obtain a copy of the License at
929 *
930 *   http://www.apache.org/licenses/LICENSE-2.0
931 *
932 * Unless required by applicable law or agreed to in writing, software
933 * distributed under the License is distributed on an "AS IS" BASIS,
934 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
935 * See the License for the specific language governing permissions and
936 * limitations under the License.
937 */function cL(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function fL(e){const t=_a(ba(e)).link,n=t?_a(ba(t)).deep_link_id:null,r=_a(ba(e)).deep_link_id;return(r?_a(ba(r)).link:null)||r||n||t||e}class xg{constructor(t){var n,r,i,o,s,a;const l=_a(ba(t)),u=(n=l.apiKey)!==null&&n!==void 0?n:null,c=(r=l.oobCode)!==null&&r!==void 0?r:null,f=cL((i=l.mode)!==null&&i!==void 0?i:null);Se(u&&c&&f,"argument-error"),this.apiKey=u,this.operation=f,this.code=c,this.continueUrl=(o=l.continueUrl)!==null&&o!==void 0?o:null,this.languageCode=(s=l.languageCode)!==null&&s!==void 0?s:null,this.tenantId=(a=l.tenantId)!==null&&a!==void 0?a:null}static parseLink(t){const n=fL(t);try{return new xg(n)}catch{return null}}}/**
938 * @license
939 * Copyright 2020 Google LLC
940 *
941 * Licensed under the Apache License, Version 2.0 (the "License");
942 * you may not use this file except in compliance with the License.
943 * You may obtain a copy of the License at
944 *
945 *   http://www.apache.org/licenses/LICENSE-2.0
946 *
947 * Unless required by applicable law or agreed to in writing, software
948 * distributed under the License is distributed on an "AS IS" BASIS,
949 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
950 * See the License for the specific language governing permissions and
951 * limitations under the License.
952 */class Ls{constructor(){this.providerId=Ls.PROVIDER_ID}static credential(t,n){return fl._fromEmailAndPassword(t,n)}static credentialWithLink(t,n){const r=xg.parseLink(n);return Se(r,"argument-error"),fl._fromEmailAndCode(t,r.code,r.tenantId)}}Ls.PROVIDER_ID="password";Ls.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Ls.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
953 * @license
954 * Copyright 2020 Google LLC
955 *
956 * Licensed under the Apache License, Version 2.0 (the "License");
957 * you may not use this file except in compliance with the License.
958 * You may obtain a copy of the License at
959 *
960 *   http://www.apache.org/licenses/LICENSE-2.0
961 *
962 * Unless required by applicable law or agreed to in writing, software
963 * distributed under the License is distributed on an "AS IS" BASIS,
964 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
965 * See the License for the specific language governing permissions and
966 * limitations under the License.
967 */class Rg{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/**
968 * @license
969 * Copyright 2019 Google LLC
970 *
971 * Licensed under the Apache License, Version 2.0 (the "License");
972 * you may not use this file except in compliance with the License.
973 * You may obtain a copy of the License at
974 *
975 *   http://www.apache.org/licenses/LICENSE-2.0
976 *
977 * Unless required by applicable law or agreed to in writing, software
978 * distributed under the License is distributed on an "AS IS" BASIS,
979 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
980 * See the License for the specific language governing permissions and
981 * limitations under the License.
982 */class Zl extends Rg{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/**
983 * @license
984 * Copyright 2020 Google LLC
985 *
986 * Licensed under the Apache License, Version 2.0 (the "License");
987 * you may not use this file except in compliance with the License.
988 * You may obtain a copy of the License at
989 *
990 *   http://www.apache.org/licenses/LICENSE-2.0
991 *
992 * Unless required by applicable law or agreed to in writing, software
993 * distributed under the License is distributed on an "AS IS" BASIS,
994 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
995 * See the License for the specific language governing permissions and
996 * limitations under the License.
997 */class qr extends Zl{constructor(){super("facebook.com")}static credential(t){return so._fromParams({providerId:qr.PROVIDER_ID,signInMethod:qr.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return qr.credentialFromTaggedObject(t)}static credentialFromError(t){return qr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return qr.credential(t.oauthAccessToken)}catch{return null}}}qr.FACEBOOK_SIGN_IN_METHOD="facebook.com";qr.PROVIDER_ID="facebook.com";/**
998 * @license
999 * Copyright 2020 Google LLC
1000 *
1001 * Licensed under the Apache License, Version 2.0 (the "License");
1002 * you may not use this file except in compliance with the License.
1003 * You may obtain a copy of the License at
1004 *
1005 *   http://www.apache.org/licenses/LICENSE-2.0
1006 *
1007 * Unless required by applicable law or agreed to in writing, software
1008 * distributed under the License is distributed on an "AS IS" BASIS,
1009 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1010 * See the License for the specific language governing permissions and
1011 * limitations under the License.
1012 */class sr extends Zl{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return so._fromParams({providerId:sr.PROVIDER_ID,signInMethod:sr.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return sr.credentialFromTaggedObject(t)}static credentialFromError(t){return sr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return sr.credential(n,r)}catch{return null}}}sr.GOOGLE_SIGN_IN_METHOD="google.com";sr.PROVIDER_ID="google.com";/**
1013 * @license
1014 * Copyright 2020 Google LLC
1015 *
1016 * Licensed under the Apache License, Version 2.0 (the "License");
1017 * you may not use this file except in compliance with the License.
1018 * You may obtain a copy of the License at
1019 *
1020 *   http://www.apache.org/licenses/LICENSE-2.0
1021 *
1022 * Unless required by applicable law or agreed to in writing, software
1023 * distributed under the License is distributed on an "AS IS" BASIS,
1024 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1025 * See the License for the specific language governing permissions and
1026 * limitations under the License.
1027 */class Hr extends Zl{constructor(){super("github.com")}static credential(t){return so._fromParams({providerId:Hr.PROVIDER_ID,signInMethod:Hr.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Hr.credentialFromTaggedObject(t)}static credentialFromError(t){return Hr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Hr.credential(t.oauthAccessToken)}catch{return null}}}Hr.GITHUB_SIGN_IN_METHOD="github.com";Hr.PROVIDER_ID="github.com";/**
1028 * @license
1029 * Copyright 2020 Google LLC
1030 *
1031 * Licensed under the Apache License, Version 2.0 (the "License");
1032 * you may not use this file except in compliance with the License.
1033 * You may obtain a copy of the License at
1034 *
1035 *   http://www.apache.org/licenses/LICENSE-2.0
1036 *
1037 * Unless required by applicable law or agreed to in writing, software
1038 * distributed under the License is distributed on an "AS IS" BASIS,
1039 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1040 * See the License for the specific language governing permissions and
1041 * limitations under the License.
1042 */class Wr extends Zl{constructor(){super("twitter.com")}static credential(t,n){return so._fromParams({providerId:Wr.PROVIDER_ID,signInMethod:Wr.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return Wr.credentialFromTaggedObject(t)}static credentialFromError(t){return Wr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Wr.credential(n,r)}catch{return null}}}Wr.TWITTER_SIGN_IN_METHOD="twitter.com";Wr.PROVIDER_ID="twitter.com";/**
1043 * @license
1044 * Copyright 2020 Google LLC
1045 *
1046 * Licensed under the Apache License, Version 2.0 (the "License");
1047 * you may not use this file except in compliance with the License.
1048 * You may obtain a copy of the License at
1049 *
1050 *   http://www.apache.org/licenses/LICENSE-2.0
1051 *
1052 * Unless required by applicable law or agreed to in writing, software
1053 * distributed under the License is distributed on an "AS IS" BASIS,
1054 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1055 * See the License for the specific language governing permissions and
1056 * limitations under the License.
1057 */async function dL(e,t){return Gl(e,"POST","/v1/accounts:signUp",Oi(e,t))}/**
1058 * @license
1059 * Copyright 2020 Google LLC
1060 *
1061 * Licensed under the Apache License, Version 2.0 (the "License");
1062 * you may not use this file except in compliance with the License.
1063 * You may obtain a copy of the License at
1064 *
1065 *   http://www.apache.org/licenses/LICENSE-2.0
1066 *
1067 * Unless required by applicable law or agreed to in writing, software
1068 * distributed under the License is distributed on an "AS IS" BASIS,
1069 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1070 * See the License for the specific language governing permissions and
1071 * limitations under the License.
1072 */class ao{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,i=!1){const o=await cr._fromIdTokenResponse(t,r,i),s=T1(r);return new ao({user:o,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const i=T1(r);return new ao({user:t,providerId:i,_tokenResponse:r,operationType:n})}}function T1(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/**
1073 * @license
1074 * Copyright 2020 Google LLC
1075 *
1076 * Licensed under the Apache License, Version 2.0 (the "License");
1077 * you may not use this file except in compliance with the License.
1078 * You may obtain a copy of the License at
1079 *
1080 *   http://www.apache.org/licenses/LICENSE-2.0
1081 *
1082 * Unless required by applicable law or agreed to in writing, software
1083 * distributed under the License is distributed on an "AS IS" BASIS,
1084 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1085 * See the License for the specific language governing permissions and
1086 * limitations under the License.
1087 */class Jc extends Ai{constructor(t,n,r,i){var o;super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,Jc.prototype),this.customData={appName:t.name,tenantId:(o=t.tenantId)!==null&&o!==void 0?o:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,i){return new Jc(t,n,r,i)}}function RT(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(o=>{throw o.code==="auth/multi-factor-auth-required"?Jc._fromErrorAndOperation(e,o,t,r):o})}async function hL(e,t,n=!1){const r=await cl(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return ao._forOperation(e,"link",r)}/**
1088 * @license
1089 * Copyright 2019 Google LLC
1090 *
1091 * Licensed under the Apache License, Version 2.0 (the "License");
1092 * you may not use this file except in compliance with the License.
1093 * You may obtain a copy of the License at
1094 *
1095 *   http://www.apache.org/licenses/LICENSE-2.0
1096 *
1097 * Unless required by applicable law or agreed to in writing, software
1098 * distributed under the License is distributed on an "AS IS" BASIS,
1099 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1100 * See the License for the specific language governing permissions and
1101 * limitations under the License.
1102 */async function pL(e,t,n=!1){const{auth:r}=e;if(An(r.app))return Promise.reject(pr(r));const i="reauthenticate";try{const o=await cl(e,RT(r,i,t,e),n);Se(o.idToken,r,"internal-error");const s=Sg(o.idToken);Se(s,r,"internal-error");const{sub:a}=s;return Se(e.uid===a,r,"user-mismatch"),ao._forOperation(e,i,o)}catch(o){throw(o==null?void 0:o.code)==="auth/user-not-found"&&yn(r,"user-mismatch"),o}}/**
1103 * @license
1104 * Copyright 2020 Google LLC
1105 *
1106 * Licensed under the Apache License, Version 2.0 (the "License");
1107 * you may not use this file except in compliance with the License.
1108 * You may obtain a copy of the License at
1109 *
1110 *   http://www.apache.org/licenses/LICENSE-2.0
1111 *
1112 * Unless required by applicable law or agreed to in writing, software
1113 * distributed under the License is distributed on an "AS IS" BASIS,
1114 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1115 * See the License for the specific language governing permissions and
1116 * limitations under the License.
1117 */async function AT(e,t,n=!1){if(An(e.app))return Promise.reject(pr(e));const r="signIn",i=await RT(e,r,t),o=await ao._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(o.user),o}async function mL(e,t){return AT(Ci(e),t)}/**
1118 * @license
1119 * Copyright 2020 Google LLC
1120 *
1121 * Licensed under the Apache License, Version 2.0 (the "License");
1122 * you may not use this file except in compliance with the License.
1123 * You may obtain a copy of the License at
1124 *
1125 *   http://www.apache.org/licenses/LICENSE-2.0
1126 *
1127 * Unless required by applicable law or agreed to in writing, software
1128 * distributed under the License is distributed on an "AS IS" BASIS,
1129 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1130 * See the License for the specific language governing permissions and
1131 * limitations under the License.
1132 */async function OT(e){const t=Ci(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function vL(e,t,n){if(An(e.app))return Promise.reject(pr(e));const r=Ci(e),s=await ym(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",dL).catch(l=>{throw l.code==="auth/password-does-not-meet-requirements"&&OT(e),l}),a=await ao._fromIdTokenResponse(r,"signIn",s);return await r._updateCurrentUser(a.user),a}function gL(e,t,n){return An(e.app)?Promise.reject(pr(e)):mL(Or(e),Ls.credential(t,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&OT(e),r})}function yL(e,t,n,r){return Or(e).onIdTokenChanged(t,n,r)}
1132function _L(e,t,n){return Or(e).beforeAuthStateChanged(t,n)}function bL(e,t,n,r){return Or(e).onAuthStateChanged(t,n,r)}function wL(e){return Or(e).signOut()}const ef="__sak";/**
1133 * @license
1134 * Copyright 2019 Google LLC
1135 *
1136 * Licensed under the Apache License, Version 2.0 (the "License");
1137 * you may not use this file except in compliance with the License.
1138 * You may obtain a copy of the License at
1139 *
1140 *   http://www.apache.org/licenses/LICENSE-2.0
1141 *
1142 * Unless required by applicable law or agreed to in writing, software
1143 * distributed under the License is distributed on an "AS IS" BASIS,
1144 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1145 * See the License for the specific language governing permissions and
1146 * limitations under the License.
1147 */class kT{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(ef,"1"),this.storage.removeItem(ef),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
1148 * @license
1149 * Copyright 2020 Google LLC
1150 *
1151 * Licensed under the Apache License, Version 2.0 (the "License");
1152 * you may not use this file except in compliance with the License.
1153 * You may obtain a copy of the License at
1154 *
1155 *   http://www.apache.org/licenses/LICENSE-2.0
1156 *
1157 * Unless required by applicable law or agreed to in writing, software
1158 * distributed under the License is distributed on an "AS IS" BASIS,
1159 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1160 * See the License for the specific language governing permissions and
1161 * limitations under the License.
1162 */function SL(){const e=Pt();return Eg(e)||Xf(e)}const EL=1e3,TL=10;class CT extends kT{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=SL()&&UI(),this.fallbackToPolling=ST(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&t(n,i,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((s,a,l)=>{this.notifyListeners(s,l)});return}const r=t.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const s=this.storage.getItem(r);if(t.newValue!==s)t.newValue!==null?this.storage.setItem(r,t.newValue):this.storage.removeItem(r);else if(this.localCache[r]===t.newValue&&!n)return}const i=()=>{const s=this.storage.getItem(r);!n&&this.localCache[r]===s||this.notifyListeners(r,s)},o=this.storage.getItem(r);FI()&&o!==t.newValue&&t.newValue!==t.oldValue?setTimeout(i,TL):i()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},EL)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}CT.type="LOCAL";const xL=CT;/**
1163 * @license
1164 * Copyright 2020 Google LLC
1165 *
1166 * Licensed under the Apache License, Version 2.0 (the "License");
1167 * you may not use this file except in compliance with the License.
1168 * You may obtain a copy of the License at
1169 *
1170 *   http://www.apache.org/licenses/LICENSE-2.0
1171 *
1172 * Unless required by applicable law or agreed to in writing, software
1173 * distributed under the License is distributed on an "AS IS" BASIS,
1174 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1175 * See the License for the specific language governing permissions and
1176 * limitations under the License.
1177 */class PT extends kT{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}PT.type="SESSION";const NT=PT;/**
1178 * @license
1179 * Copyright 2019 Google LLC
1180 *
1181 * Licensed under the Apache License, Version 2.0 (the "License");
1182 * you may not use this file except in compliance with the License.
1183 * You may obtain a copy of the License at
1184 *
1185 *   http://www.apache.org/licenses/LICENSE-2.0
1186 *
1187 * Unless required by applicable law or agreed to in writing, software
1188 * distributed under the License is distributed on an "AS IS" BASIS,
1189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1190 * See the License for the specific language governing permissions and
1191 * limitations under the License.
1192 */function RL(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/**
1193 * @license
1194 * Copyright 2019 Google LLC
1195 *
1196 * Licensed under the Apache License, Version 2.0 (the "License");
1197 * you may not use this file except in compliance with the License.
1198 * You may obtain a copy of the License at
1199 *
1200 *   http://www.apache.org/licenses/LICENSE-2.0
1201 *
1202 * Unless required by applicable law or agreed to in writing, software
1203 * distributed under the License is distributed on an "AS IS" BASIS,
1204 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1205 * See the License for the specific language governing permissions and
1206 * limitations under the License.
1207 */class Jf{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(i=>i.isListeningto(t));if(n)return n;const r=new Jf(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:i,data:o}=n.data,s=this.handlersMap[i];if(!(s!=null&&s.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const a=Array.from(s).map(async u=>u(n.origin,o)),l=await RL(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:l})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Jf.receivers=[];/**
1208 * @license
1209 * Copyright 2020 Google LLC
1210 *
1211 * Licensed under the Apache License, Version 2.0 (the "License");
1212 * you may not use this file except in compliance with the License.
1213 * You may obtain a copy of the License at
1214 *
1215 *   http://www.apache.org/licenses/LICENSE-2.0
1216 *
1217 * Unless required by applicable law or agreed to in writing, software
1218 * distributed under the License is distributed on an "AS IS" BASIS,
1219 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1220 * See the License for the specific language governing permissions and
1221 * limitations under the License.
1222 */function Ag(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(Math.random()*10);return e+n}/**
1223 * @license
1224 * Copyright 2019 Google LLC
1225 *
1226 * Licensed under the Apache License, Version 2.0 (the "License");
1227 * you may not use this file except in compliance with the License.
1228 * You may obtain a copy of the License at
1229 *
1230 *   http://www.apache.org/licenses/LICENSE-2.0
1231 *
1232 * Unless required by applicable law or agreed to in writing, softw
1232are
1233 * distributed under the License is distributed on an "AS IS" BASIS,
1234 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1235 * See the License for the specific language governing permissions and
1236 * limitations under the License.
1237 */class AL{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let o,s;return new Promise((a,l)=>{const u=Ag("",20);i.port1.start();const c=setTimeout(()=>{l(new Error("unsupported_event"))},r);s={messageChannel:i,onMessage(f){const d=f;if(d.data.eventId===u)switch(d.data.status){case"ack":clearTimeout(c),o=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),a(d.data.response);break;default:clearTimeout(c),clearTimeout(o),l(new Error("invalid_response"));break}}},this.handlers.add(s),i.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:t,eventId:u,data:n},[i.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}/**
1238 * @license
1239 * Copyright 2020 Google LLC
1240 *
1241 * Licensed under the Apache License, Version 2.0 (the "License");
1242 * you may not use this file except in compliance with the License.
1243 * You may obtain a copy of the License at
1244 *
1245 *   http://www.apache.org/licenses/LICENSE-2.0
1246 *
1247 * Unless required by applicable law or agreed to in writing, software
1248 * distributed under the License is distributed on an "AS IS" BASIS,
1249 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1250 * See the License for the specific language governing permissions and
1251 * limitations under the License.
1252 */function Kn(){return window}function OL(e){Kn().location.href=e}/**
1253 * @license
1254 * Copyright 2020 Google LLC.
1255 *
1256 * Licensed under the Apache License, Version 2.0 (the "License");
1257 * you may not use this file except in compliance with the License.
1258 * You may obtain a copy of the License at
1259 *
1260 *   http://www.apache.org/licenses/LICENSE-2.0
1261 *
1262 * Unless required by applicable law or agreed to in writing, software
1263 * distributed under the License is distributed on an "AS IS" BASIS,
1264 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1265 * See the License for the specific language governing permissions and
1266 * limitations under the License.
1267 */function IT(){return typeof Kn().WorkerGlobalScope<"u"&&typeof Kn().importScripts=="function"}async function kL(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function CL(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function PL(){return IT()?self:null}/**
1268 * @license
1269 * Copyright 2019 Google LLC
1270 *
1271 * Licensed under the Apache License, Version 2.0 (the "License");
1272 * you may not use this file except in compliance with the License.
1273 * You may obtain a copy of the License at
1274 *
1275 *   http://www.apache.org/licenses/LICENSE-2.0
1276 *
1277 * Unless required by applicable law or agreed to in writing, software
1278 * distributed under the License is distributed on an "AS IS" BASIS,
1279 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1280 * See the License for the specific language governing permissions and
1281 * limitations under the License.
1282 */const LT="firebaseLocalStorageDb",NL=1,tf="firebaseLocalStorage",DT="fbase_key";class Yl{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function ed(e,t){return e.transaction([tf],t?"readwrite":"readonly").objectStore(tf)}function IL(){const e=indexedDB.deleteDatabase(LT);return new Yl(e).toPromise()}function _m(){const e=indexedDB.open(LT,NL);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(tf,{keyPath:DT})}catch(i){n(i)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(tf)?t(r):(r.close(),await IL(),t(await _m()))})})}async function x1(e,t,n){const r=ed(e,!0).put({[DT]:t,value:n});
1282return new Yl(r).toPromise()}async function LL(e,t){const n=ed(e,!1).get(t),r=await new Yl(n).toPromise();return r===void 0?null:r.value}function R1(e,t){const n=ed(e,!0).delete(t);return new Yl(n).toPromise()}const DL=800,ML=3;class MT{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await _m(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>ML)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return IT()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Jf._getInstance(PL()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1282)),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){var t,n;if(this.activeServiceWorker=await kL(),!this.activeServiceWorker)return;this.sender=new AL(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((t=r[0])===null||t===void 0)&&t.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||CL()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await _m();return await x1(t,ef,"1"),await R1(t,ef),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>x1(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>LL(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>R1(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(i=>{const o=ed(i,!1).getAll();return new Yl(o).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:i,value:o}of t)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(o)&&(this.notifyListeners(i,o),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),DL)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}MT.type="LOCAL";const $L=MT;new Kl(3e4,6e4);/**
1283 * @license
1284 * Copyright 2021 Google LLC
1285 *
1286 * Licensed under the Apache License, Version 2.0 (the "License");
1287 * you may not use this file except in compliance with the License.
1288 * You may obtain a copy of the License at
1289 *
1290 *   http://www.apache.org/licenses/LICENSE-2.0
1291 *
1292 * Unless required by applicable law or agreed to in writing, software
1293 * distributed under the License is distributed on an "AS IS" BASIS,
1294 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1295 * See the License for the specific language governing permissions and
1296 * limitations under the License.
1297 */function $T(e,t){return t?fr(t):(Se(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/**
1298 * @license
1299 * Copyright 2019 Google LLC
1300 *
1301 * Licensed under the Apache License, Version 2.0 (the "License");
1302 * you may not use this file except in compliance with the License.
1303 * You may obtain a copy of the License at
1304 *
1305 *   http://www.apache.org/licenses/LICENSE-2.0
1306 *
1307 * Unless required by applicable law or agreed to in writing, software
1308 * distributed under the License is distributed on an "AS IS" BASIS,
1309 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1310 * See the License for the specific language governing permissions and
1311 * limitations under the License.
1312 */class Og extends Tg{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return rs(t,this._buildIdpRequest())}_linkToIdToken(t,n){return rs(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return rs(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}function jL(e){return AT(e.auth,new Og(e),e.bypassAuthState)}function BL(e){const{auth:t,user:n}=e;return Se(n,t,"internal-error"),pL(n,new Og(e),e.bypassAuthState)}async function FL(e){const{auth:t,user:n}=e;return Se(n,t,"internal-error"),hL(n,new Og(e),e.bypassAuthState)}/**
1313 * @license
1314 * Copyright 2020 Google LLC
1315 *
1316 * Licensed under the Apache License, Version 2.0 (the "License");
1317 * you may not use this file except in compliance with the License.
1318 * You may obtain a copy of the License at
1319 *
1320 *   http://www.apache.org/licenses/LICENSE-2.0
1321 *
1322 * Unless required by applicable law or agreed to in writing, software
1323 * distributed under the License is distributed on an "AS IS" BASIS,
1324 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1325 * See the License for the specific language governing permissions and
1326 * limitations under the License.
1327 */class jT{constructor(t,n,r,i,o=!1){this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:i,tenantId:o,error:s,type:a}=t;if(s){this.reject(s);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:o||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(u){this.reject(u)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return jL;case"linkViaPopup":case"linkViaRedirect":return FL;case"reauthViaPopup":case"reauthViaRedirect":return BL;default:yn(this.auth,"internal-error")}}resolve(t){Sr(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){Sr(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
1328 * @license
1329 * Copyright 2020 Google LLC
1330 *
1331 * Licensed under the Apache License, Version 2.0 (the "License");
1332 * you may not use this file except in compliance with the License.
1333 * You may obtain a copy of the License at
1334 *
1335 *   http://www.apache.org/licenses/LICENSE-2.0
1336 *
1337 * Unless required by applicable law or agreed to in writing, software
1338 * distributed under the License is distributed on an "AS IS" BASIS,
1339 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1340 * See the License for the specific language governing permissions and
1341 * limitations under the License.
1342 */const UL=new Kl(2e3,1e4);async function VL(e,t,n){if(An(e.app))return Promise.reject(Pn(e,"operation-not-supported-in-this-environment"));const r=Ci(e);wI(e,t,Rg);const i=$T(r,n);return new Wi(r,"signInViaPopup",t,i).executeNotNull()}class Wi extends jT{constructor(t,n,r,i,o){super(t,n,i,o),this.provider=r,this.authWindow=null,this.pollId=null,Wi.currentPopupAction&&Wi.currentPopupAction.cancel(),Wi.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return Se(t,this.auth,"internal-error"),t}async onExecution(){Sr(this.filter.length===1,"Popup operations only handle one event");const t=Ag();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Pn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(Pn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Wi.currentPopupAction=null}pollUserCancellation(){const t=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Pn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,UL.get())};t()}}Wi.currentPopupAction=null;/**
1343 * @license
1344 * Copyright 2020 Google LLC
1345 *
1346 * Licensed under the Apache License, Version 2.0 (the "License");
1347 * you may not use this file except in compliance with the License.
1348 * You may obtain a copy of the License at
1349 *
1350 *   http://www.apache.org/licenses/LICENSE-2.0
1351 *
1352 * Unless required by applicable law or agreed to in writing, software
1353 * distributed under the License is distributed on an "AS IS" BASIS,
1354 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1355 * See the License for the specific language governing permissions and
1356 * limitations under the License.
1357 */const zL="pendingRedirect",cc=new Map;class qL extends jT{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=cc.get(this.auth._key());if(!t){try{const r=await HL(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}cc.set(this.auth._key(),t)}return this.bypassAuthState||cc.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function HL(e,t){const n=GL(t),r=KL(e);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}function WL(e,t){cc.set(e._key(),t)}function KL(e){return fr(e._redirectPersistence)}function GL(e){return uc(zL,e.config.apiKey,e.name)}async function ZL(e,t,n=!1){if(An(e.app))return Promise.reject(pr(e));const r=Ci(e),i=$T(r,t),s=await new qL(r,i,n).execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}/**
1358 * @license
1359 * Copyright 2020 Google LLC
1360 *
1361 * Licensed under the Apache License, Version 2.0 (the "License");
1362 * you may not use this file except in compliance with the License.
1363 * You may obtain a copy of the License at
1364 *
1365 *   http://www.apache.org/licenses/LICENSE-2.0
1366 *
1367 * Unless required by applicable law or agreed to in writing, software
1368 * distributed under the License is distributed on an "AS IS" BASIS,
1369 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1370 * See the License for the specific language governing permissions and
1371 * limitations under the License.
1372 */const YL=10*60*1e3;class XL{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!QL(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!BT(t)){const i=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Pn(this.auth,i))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=YL&&this.cachedEventUids.clear(),this.cachedEventUids.has(A1(t))}saveEventToCache(t){this.cachedEventUids.add(A1(t)),this.lastProcessedEventTime=Date.now()}}function A1(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function BT({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function QL(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return BT(e);default:return!1}}/**
1373 * @license
1374 * Copyright 2020 Google LLC
1375 *
1376 * Licensed under the Apache License, Version 2.0 (the "License");
1377 * you may not use this file except in compliance with the License.
1378 * You may obtain a copy of the License at
1379 *
1380 *   http://www.apache.org/licenses/LICENSE-2.0
1381 *
1382 * Unless required by applicable law or agreed to in writing, software
1383 * distributed under the License is distributed on an "AS IS" BASIS,
1384 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1385 * See the License for the specific language governing permissions and
1386 * limitations under the License.
1387 */async function JL(e,t={}){return ki(e,"GET","/v1/projects",t)}/**
1388 * @license
1389 * Copyright 2020 Google LLC
1390 *
1391 * Licensed under the Apache License, Version 2.0 (the "License");
1392 * you may not use this file except in compliance with the License.
1393 * You may obtain a copy of the License at
1394 *
1395 *   http://www.apache.org/licenses/LICENSE-2.0
1396 *
1397 * Unless required by applicable law or agreed to in writing, software
1398 * distributed under the License is distributed on an "AS IS" BASIS,
1399 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1400 * See the License for the specific language governing permissions and
1401 * limitations under the License.
1402 */const eD=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,tD=/^https?/;async function nD(e){if(e.config.emulator)return;const{authorizedDomains:t}=await JL(e);for(const n of t)try{if(rD(n))return}catch{}yn(e,"unauthorized-domain")}function rD(e){const t=vm(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const s=new URL(e);return s.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&s.hostname===r}if(!tD.test(n))return!1;if(eD.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}/**
1403 * @license
1404 * Copyright 2020 Google LLC.
1405 *
1406 * Licensed under the Apache License, Version 2.0 (the "License");
1407 * you may not use this file except in compliance with the License.
1408 * You may obtain a copy of the License at
1409 *
1410 *   http://www.apache.org/licenses/LICENSE-2.0
1411 *
1412 * Unless required by applicable law or agreed to in writing, software
1413 * distributed under the License is distributed on an "AS IS" BASIS,
1414 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1415 * See the License for the specific language governing permissions and
1416 * limitations under the License.
1417 */const iD=new Kl(3e4,6e4);function O1(){const e=Kn().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}}function oD(e){return new Promise((t,n)=>{var r,i,o;function s(){O1(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{O1(),n(Pn(e,"network-request-failed"))},timeout:iD.get()})}if(!((i=(r=Kn().gapi)===null||r===void 0?void 0:r.iframes)===null||i===void 0)&&i.Iframe)t(gapi.iframes.getContext());else if(!((o=Kn().gapi)===null||o===void 0)&&o.load)s();else{const a=YI("iframefcb");return Kn()[a]=()=>{gapi.load?s():n(Pn(e,"network-request-failed"))},TT(`${ZI()}?onload=${a}`).catch(l=>n(l))}}).catch(t=>{throw fc=null,t})}let fc=null;function sD(e){return fc=fc||oD(e),fc}/**
1418 * @license
1419 * Copyright 2020 Google LLC.
1420 *
1421 * Licensed under the Apache License, Version 2.0 (the "License");
1422 * you may not use this file except in compliance with the License.
1423 * You may obtain a copy of the License at
1424 *
1425 *   http://www.apache.org/licenses/LICENSE-2.0
1426 *
1427 * Unless required by applicable law or agreed to in writing, software
1428 * distributed under the License is distributed on an "AS IS" BASIS,
1429 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1430 * See the License for the specific language governing permissions and
1431 * limitations under the License.
1432 */const aD=new Kl(5e3,15e3),lD="__/auth/iframe",uD="emulator/auth/iframe",cD={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},fD=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function dD(e){const t=e.config;Se(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?wg(t,uD):`https://${e.config.authDomain}/${lD}
1432`,r={apiKey:t.apiKey,appName:e.name,v:Hl},i=fD.get(e.config.apiHost);i&&(r.eid=i);const o=e._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${ql(r).slice(1)}`}async function hD(e){const t=await sD(e),n=Kn().gapi;return Se(n,e,"internal-error"),t.open({where:document.body,url:dD(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:cD,dontclear:!0},r=>new Promise(async(i,o)=>{await r.restyle({setHideOnLeave:!1});const s=Pn(e,"network-request-failed"),a=Kn().setTimeout(()=>{o(s)},aD.get());function l(){Kn().clearTimeout(a),i(r)}r.ping(l).then(l,()=>{o(s)})}))}/**
1433 * @license
1434 * Copyright 2020 Google LLC.
1435 *
1436 * Licensed under the Apache License, Version 2.0 (the "License");
1437 * you may not use this file except in compliance with the License.
1438 * You may obtain a copy of the License at
1439 *
1440 *   http://www.apache.org/licenses/LICENSE-2.0
1441 *
1442 * Unless required by applicable law or agreed to in writing, software
1443 * distributed under the License is distributed on an "AS IS" BASIS,
1444 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1445 * See the License for the specific language governing permissions and
1446 * limitations under the License.
1447 */const pD={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},mD=500,vD=600,gD="_blank",yD="http://localhost";class k1{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function _D(e,t,n,r=mD,i=vD){const o=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},pD),{width:r.toString(),height:i.toString(),top:o,left:s}),u=Pt().toLowerCase();n&&(a=gT(u)?gD:n),vT(u)&&(t=t||yD,l.scrollbars="yes");const c=Object.entries(l).reduce((d,[h,g])=>`${d}${h}=${g},`,"");if(BI(u)&&a!=="_self")return bD(t||"",a),new k1(null);const f=window.open(t||"",a,c);Se(f,e,"popup-blocked");try{f.focus()}catch{}return new k1(f)}function bD(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/**
1448 * @license
1449 * Copyright 2021 Google LLC
1450 *
1451 * Licensed under the Apache License, Version 2.0 (the "License");
1452 * you may not use this file except in compliance with the License.
1453 * You may obtain a copy of the License at
1454 *
1455 *   http://www.apache.org/licenses/LICENSE-2.0
1456 *
1457 * Unless required by applicable law or agreed to in writing, software
1458 * distributed under the License is distributed on an "AS IS" BASIS,
1459 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1460 * See the License for the specific language governing permissions and
1461 * limitations under the License.
1462 */const wD="__/auth/handler",SD="emulator/auth/handler",ED=encodeURIComponent("fac");async function C1(e,t,n,r,i,o){Se(e.config.authDomain,e,"auth-domain-config-required"),Se(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Hl,eventId:i};if(t instanceof Rg){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",aN(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[c,f]of Object.entries({}))s[c]=f}if(t instanceof Zl){const c=t.getScopes().filter(f=>f!=="");c.length>0&&(s.scopes=c.join(","))}e.tenantId&&(s.tid=e.tenantId);const a=s;for(const c of Object.keys(a))a[c]===void 0&&delete a[c];const l=await e._getAppCheckToken(),u=l?`#${ED}=${encodeURIComponent(l)}`:"";return`${TD(e)}?${ql(a).slice(1)}${u}`}function TD({config:e}){return e.emulator?wg(e,SD):`https://${e.authDomain}/${wD}`}/**
1463 * @license
1464 * Copyright 2020 Google LLC
1465 *
1466 * Licensed under the Apache License, Version 2.0 (the "License");
1467 * you may not use this file except in compliance with the License.
1468 * You may obtain a copy of the License at
1469 *
1470 *   http://www.apache.org/licenses/LICENSE-2.0
1471 *
1472 * Unless required by applicable law or agreed to in writing, software
1473 * distributed under the License is distributed on an "AS IS" BASIS,
1474 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1475 * See the License for the specific language governing permissions and
1476 * limitations under the License.
1477 */const kh="webStorageSupport";class xD{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=NT,this._completeRedirectFn=ZL,this._overrideRedirectResult=WL}async _openPopup(t,n,r,i){var o;Sr((o=this.eventManagers[t._key()])===null||o===void 0?void 0:o.manager,"_initialize() not called before _openPopup()");const s=await C1(t,n,r,vm(),i);return _D(t,s,Ag())}async _openRedirect(t,n,r,i){await this._originValidation(t);const o=await C1(t,n,r,vm(),i);return OL(o),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:i,promise:o}=this.eventManagers[n];return i?Promise.resolve(i):(Sr(o,"If manager is not set, promise should be"),o)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await hD(t),r=new XL(t);return n.register("authEvent",i=>
1477(Se(i==null?void 0:i.authEvent,t,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(kh,{type:kh},i=>{var o;const s=(o=i==null?void 0:i[0])===null||o===void 0?void 0:o[kh];s!==void 0&&n(!!s),yn(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=nD(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return ST()||Eg()||Xf()}}const RD=xD;var P1="@firebase/auth",N1="1.7.4";/**
1478 * @license
1479 * Copyright 2020 Google LLC
1480 *
1481 * Licensed under the Apache License, Version 2.0 (the "License");
1482 * you may not use this file except in compliance with the License.
1483 * You may obtain a copy of the License at
1484 *
1485 *   http://www.apache.org/licenses/LICENSE-2.0
1486 *
1487 * Unless required by applicable law or agreed to in writing, software
1488 * distributed under the License is distributed on an "AS IS" BASIS,
1489 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1490 * See the License for the specific language governing permissions and
1491 * limitations under the License.
1492 */class AD{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Se(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
1493 * @license
1494 * Copyright 2020 Google LLC
1495 *
1496 * Licensed under the Apache License, Version 2.0 (the "License");
1497 * you may not use this file except in compliance with the License.
1498 * You may obtain a copy of the License at
1499 *
1500 *   http://www.apache.org/licenses/LICENSE-2.0
1501 *
1502 * Unless required by applicable law or agreed to in writing, software
1503 * distributed under the License is distributed on an "AS IS" BASIS,
1504 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1505 * See the License for the specific language governing permissions and
1506 * limitations under the License.
1507 */function OD(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function kD(e){ll(new ms("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),o=t.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Se(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:s,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:ET(e)},u=new WI(r,i,o,l);return tL(u,n),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),ll(new ms("auth-internal",t=>{const n=Ci(t.getProvider("auth").getImmediate());return(r=>new AD(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),es(P1,N1,OD(e)),es(P1,N1,"esm2017")}/**
1508 * @license
1509 * Copyright 2021 Google LLC
1510 *
1511 * Licensed under the Apache License, Version 2.0 (the "License");
1512 * you may not use this file except in compliance with the License.
1513 * You may obtain a copy of the License at
1514 *
1515 *   http://www.apache.org/licenses/LICENSE-2.0
1516 *
1517 * Unless required by applicable law or agreed to in writing, softw
1517are
1518 * distributed under the License is distributed on an "AS IS" BASIS,
1519 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1520 * See the License for the specific language governing permissions and
1521 * limitations under the License.
1522 */const CD=5*60,PD=eT("authIdTokenMaxAge")||CD;let I1=null;const ND=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>PD)return;const i=n==null?void 0:n.token;I1!==i&&(I1=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function ID(e=lI()){const t=iT(e,"auth");if(t.isInitialized())return t.getImmediate();const n=eL(e,{popupRedirectResolver:RD,persistence:[$L,xL,NT]}),r=eT("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const o=new URL(r,location.origin);if(location.origin===o.origin){const s=ND(o.toString());_L(n,s,()=>s(n.currentUser)),yL(n,a=>s(a))}}const i=Y2("auth");return i&&nL(n,`http://${i}`),n}function LD(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}KI({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=i=>{const o=Pn("internal-error");o.customData=i,n(o)},r.type="text/javascript",r.charset="UTF-8",LD().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});kD("Browser");/*! *****************************************************************************
1523Copyright (c) Microsoft Corporation.
1524
1525Permission to use, copy, modify, and/or distribute this software for any
1526purpose with or without fee is hereby granted.
1527
1528THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1529REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1530AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1531INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1532LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1533OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1534PERFORMANCE OF THIS SOFTWARE.
1535***************************************************************************** */function DD(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,[])).next())})}function MD(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}/*! *****************************************************************************
1536Copyright (c) Microsoft Corporation.
1537
1538Permission to use, copy, modify, and/or distribute this software for any
1539purpose with or without fee is hereby granted.
1540
1541THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1542REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1543AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1544INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1545LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1546OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1547PERFORMANCE OF THIS SOFTWARE.
1548***************************************************************************** */var Vo=function(){return Vo=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Vo.apply(this,arguments)},FT=function(e){return{loading:e==null,value:e}},$D=function(){return function(e,t){switch(t.type){case"error":return Vo(Vo({},e),{error:t.error,loading:!1,value:void 0});case"reset":return FT(t.defaultValue);case"value":return Vo(Vo({},e),{error:void 0,loading:!1,value:t.value});default:return e}}},jD=function(e){var t=e?e():void 0,n=P.useReducer($D(),FT(t)),r=n[0],i=n[1],o=P.useCallback(function(){var l=e?e():void 0;i({type:"reset",defaultValue:l})},[e]),s=P.useCallback(function(l){i({type:"error",error:l})},[]),a=P.useCallback(function(l){i({type:"value",value:l})},[]);return P.useMemo(function(){return{error:r.error,loading:r.loading,reset:o,setError:s,setValue:a,value:r.value}},[r.error,r.loading,o,s,a,r.value])},kg=function(e,t){var n=jD(function(){return e.currentUser}),r=n.error,i=n.loading,o=n.setError,s=n.setValue,a=n.value;return P.useEffect(function(){var l=bL(e,function(u){return DD(void 0,void 0,void 0,function(){var c;return MD(this,function(f){switch(f.label){case 0:return[3,4];case 1:return f.trys.push([1,3,,4]),[4,t.onUserChanged(u)];case 2:return f.sent(),[3,4];case 3:return c=f.sent(),o(c),[3,4];case 4:return s(u),[2]}})})},o);return function(){l()}},[e]),[a,i,r]},BD="firebase",FD="10.12.2";/**
1549 * @license
1550 * Copyright 2020 Google LLC
1551 *
1552 * Licensed under the Apache License, Version 2.0 (the "License");
1553 * you may not use this file except in compliance with the License.
1554 * You may obtain a copy of the License at
1555 *
1556 *   http://www.apache.org/licenses/LICENSE-2.0
1557 *
1558 * Unless required by applicable law or agreed to in writing, software
1559 * distributed under the License is distributed on an "AS IS" BASIS,
1560 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1561 * See the License for the specific language governing permissions and
1562 * limitations under the License.
1563 */es(BD,FD,"app");const UD={apiKey:"AIzaSyDqjnC1CUXDyr3TcPDIzmoX3Q0zMAKKTQA",authDomain:"saas-akshit.firebaseapp.com",projectId:"saas-akshit",storageBucket:"saas-akshit.appspot.com",messagingSenderId:"1018053854404",appId:"1:1018053854404:web:ebc0231c6ebfd5849eb591",measurementId:"G-KPHE6LPRL7"},VD=oT(UD),lo=ID(VD),zD=new sr,qD=()=>{const e=async()=>{try{await VL(lo,zD)}catch(t){console.error("Error signing in with Google:",t)}};return Z.jsx("button",{onClick:e,className:"w-full bg-red-500 text-white py-2 rounded mt-4",children:"Sign in with Google"})},HD=()=>{const[e,t]=P.useState(""),[n,r]=P.useState(""),[i,o]=P.useState(""),s=async a=>{a.preventDefault();try{await gL(lo,e,n),o("")}catch{o("Failed to login. Please check your credentials.")}};return Z.jsx("div",{className:"min-h-screen flex items-center justify-center px-5",children:Z.jsxs("div",{className:"bg-white p-8 rounded-xl shadow-2xl w-full max-w-md",children:[Z.jsx("h2",{className:"text-2xl mb-4",children:"Login"}),Z.jsxs("form",{onSubmit:s,className:"space-y-4",children:[Z.jsxs("div",{children:[Z.jsx("label",{className:"block mb-1",children:"Email"}),Z.jsx("input",{type:"email",value:e,onChange:a=>t(a.target.value),required:!0,className:"w-full p-2 border border-gray-300 rounded"})]}),Z.jsxs("div",{children:[Z.jsx("label",{className:"block mb-1",children:"Password"}),Z.jsx("input",{type:"password",value:n,onChange:a=>r(a.target.value),required:!0,className:"w-full p-2 border border-gray-300 rounded"})]}),i&&Z.jsx("p",{className:"text-red-500",children:i}),Z.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white py-2 rounded",children:"Login"})]}),Z.jsx(qD,{}),Z.jsxs("p",{className:"mt-4",children:["Don't have an account?"," ",Z.jsx(Gc,{to:"/sign-up",className:"text-blue-500",children:"Sign Up"})]})]})})};function UT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=UT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Xr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=UT(e))&&(r&&(r+=" "),r+=t);return r}const dl=e=>typeof e=="number"&&!isNaN(e),Yi=e=>typeof e=="string",Jt=e=>typeof e=="function",dc=e=>Yi(e)||Jt(e)?e:null,bm=e=>P.isValidElement(e)||Yi(e)||Jt(e)||dl(e);function WD(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function td(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(s){let{children:a,position:l,preventExitTransition:u,done:c,nodeRef:f,isIn:d,playToast:h}=s;const g=r?`${t}--${l}`:t,v=r?`${n}--${l}`:n,b=P.useRef(0);return P.useLayoutEffect(()=>{const m=f.current,p=g.split(" "),y=_=>{_.target===f.current&&(h(),m.removeEventListener("animationend",y),m.removeEventListener("animationcancel",y),b.current===0&&_.type!=="animationcancel"&&m.classList.remove(...p))};m.classList.add(...p),m.addEventListener("animationend",y),m.addEventListener("animationcancel",y)},[]),P.useEffect(()=>{const m=f.current,p=()=>{m.removeEventListener("animationend",p),i?WD(m,c,o):c()};d||(u?p():(b.current=1,m.className+=` ${v}`,m.addEventListener("animationend",p)))},[d]),fe.createElement(fe.Fragment,null,a)}}function L1(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Lt=new Map;let hl=[];const wm=new Set,KD=e=>wm.forEach(t=>t(e)),VT=()=>Lt.size>0;function zT(e,t){var n;if(t)return!((n=Lt.get(t))==null||!n.isToastActive(e));let r=!1;return Lt.forEach(i=>
1563{i.isToastActive(e)&&(r=!0)}),r}function qT(e,t){bm(e)&&(VT()||hl.push({content:e,options:t}),Lt.forEach(n=>{n.buildToast(e,t)}))}function D1(e,t){Lt.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function GD(e){const{subscribe:t,getSnapshot:n,setProps:r}=P.useRef(function(o){const s=o.containerId||1;return{subscribe(a){const l=function(c,f,d){let h=1,g=0,v=[],b=[],m=[],p=f;const y=new Map,_=new Set,w=()=>{m=Array.from(y.values()),_.forEach(S=>S())},x=S=>{b=S==null?[]:b.filter(C=>C!==S),w()},E=S=>{const{toastId:C,onOpen:T,updateId:R,children:O}=S.props,N=R==null;S.staleId&&y.delete(S.staleId),y.set(C,S),b=[...b,S.props.toastId].filter(M=>M!==S.staleId),w(),d(L1(S,N?"added":"updated")),N&&Jt(T)&&T(P.isValidElement(O)&&O.props)};return{id:c,props:p,observe:S=>(_.add(S),()=>_.delete(S)),toggle:(S,C)=>{y.forEach(T=>{C!=null&&C!==T.props.toastId||Jt(T.toggle)&&T.toggle(S)})},removeToast:x,toasts:y,clearQueue:()=>{g-=v.length,v=[]},buildToast:(S,C)=>{if((A=>{let{containerId:D,toastId:B,updateId:U}=A;const I=D?D!==c:c!==1,F=y.has(B)&&U==null;return I||F})(C))return;const{toastId:T,updateId:R,data:O,staleId:N,delay:M}=C,$=()=>{x(T)},z=R==null;z&&g++;const V={...p,style:p.toastStyle,key:h++,...Object.fromEntries(Object.entries(C).filter(A=>{let[D,B]=A;return B!=null})),toastId:T,updateId:R,data:O,closeToast:$,isIn:!1,className:dc(C.className||p.toastClassName),bodyClassName:dc(C.bodyClassName||p.bodyClassName),progressClassName:dc(C.progressClassName||p.progressClassName),autoClose:!C.isLoading&&(H=C.autoClose,j=p.autoClose,H===!1||dl(H)&&H>0?H:j),deleteToast(){const A=y.get(T),{onClose:D,children:B}=A.props;Jt(D)&&D(P.isValidElement(B)&&B.props),d(L1(A,"removed")),y.delete(T),g--,g<0&&(g=0),v.length>0?E(v.shift()):w()}};var H,j;V.closeButton=p.closeButton,C.closeButton===!1||bm(C.closeButton)?V.closeButton=C.closeButton:C.closeButton===!0&&(V.closeButton=!bm(p.closeButton)||p.closeButton);let L=S;P.isValidElement(S)&&!Yi(S.type)?L=P.cloneElement(S,{closeToast:$,toastProps:V,data:O}):Jt(S)&&(L=S({closeToast:$,toastProps:V,data:O}));const k={content:L,props:V,staleId:N};p.limit&&p.limit>0&&g>p.limit&&z?v.push(k):dl(M)?setTimeout(()=>{E(k)},M):E(k)},setProps(S){p=S},setToggle:(S,C)=>{y.get(S).toggle=C},isToastActive:S=>b.some(C=>C===S),getSnapshot:()=>p.newestOnTop?m.reverse():m}}(s,o,KD);Lt.set(s,l);const u=l.observe(a);return hl.forEach(c=>qT(c.content,c.options)),hl=[],()=>{u(),Lt.delete(s)}},setProps(a){var l;(l=Lt.get(s))==null||l.setProps(a)},getSnapshot(){var a;return(a=Lt.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=P.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:l}=a.props;s.has(l)||s.set(l,[]),s.get(l).push(a)}),Array.from(s,a=>o(a[0],a[1]))},isToastActive:zT,count:i==null?void 0:i.length}}function ZD(e){const[t,n]=P.useState(!1),[r,i]=P.useState(!1),o=P.useRef(null),s=P.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:f}=e;var d,h;function g(){n(!0)}function v(){n(!1)}function b(y){const _=o.current;s.canDrag&&_&&(s.didMove=!0,t&&v(),s.delta=e.draggableDirection==="x"?y.clientX-s.start:y.clientY-s.start,s.start!==y.clientX&&(s.canCloseOnClick=!1),_.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,_.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function m(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",m);const y=o.current;if(s.canDrag&&s.didMove&&y){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();y.style.transition="transform 0.2s, opacity 0.2s",y.style.removeProperty("transform"),y.style.removeProperty("opacity")}}(h=Lt.get((d={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||h.setToggle(d.id,d.fn),P.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||v(),window.addEventListener("focus",g),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",v)}},[e.pauseOnFocusLoss]);const p={onPointerDown:function(y){if(e.draggable===!0||e.draggable===y.pointerType){s.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",m);const _=o.current;s.canCloseOnClick=!0,s.canDrag=!0,_.style.transition="none",e.draggableDirection==="x"?(s.start=y.clientX,s.removalDistance=_.offsetWidth*(e.draggablePercent/100)):(s.start=y.clientY,s.removalDistance=_.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(y){const{top:_,bottom:w,left:x,right:E}=o.current.getBoundingClientRect();y.nativeEvent.type!=="touchend"&&e.pauseOnHover&&y.clientX>=x&&y.clientX<=E&&y.clientY>=_&&y.clientY<=w?v():g()}};return a&&l&&(p.onMouseEnter=v,e.stacked||(p.onMouseLeave=g)),f&&(p.onClick=y=>{c&&c(y),s.canCloseOnClick&&u()}),{playToast:g,pauseToast:v,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:p}}function YD(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:s,style:a,controlledProgress:l,progress:u,rtl:c,isIn:f,theme:d}=e;const h=o||l&&u===0,g={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const v=Xr("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),b=Jt(s)?s({rtl:c,type:i,defaultClassName:v}):Xr(v,s),m={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{f&&r()}};return fe.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},fe.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${i}`}),fe.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:b,style:g,...m}))}let XD=1;const HT=()=>""+XD++;function QD(e){return e&&(Yi(e.toastId)||dl(e.toastId))?e.toastId:HT()}function Da(e,t){return qT(e,t),t.toastId}function nf(e,t){return{...t,type:t&&t.type||e,toastId:QD(t)}}function Nu(e){return(t,n)=>Da(t,nf(e,n))}function He(e,t){return Da(e,nf("default",t))}He.loading=(e,t)=>
1563Da(e,nf("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),He.promise=function(e,t,n){let r,{pending:i,error:o,success:s}=t;i&&(r=Yi(i)?He.loading(i,n):He.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(c,f,d)=>{if(f==null)return void He.dismiss(r);const h={type:c,...a,...n,data:d},g=Yi(f)?{render:f}:f;return r?He.update(r,{...h,...g}):He(g.render,{...h,...g}),d},u=Jt(e)?e():e;return u.then(c=>l("success",s,c)).catch(c=>l("error",o,c)),u},He.success=Nu("success"),He.info=Nu("info"),He.error=Nu("error"),He.warning=Nu("warning"),He.warn=He.warning,He.dark=(e,t)=>Da(e,nf("default",{theme:"dark",...t})),He.dismiss=function(e){(function(t){var n;if(VT()){if(t==null||Yi(n=t)||dl(n))Lt.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Lt.get(t.containerId);r?r.removeToast(t.id):Lt.forEach(i=>{i.removeToast(t.id)})}}else hl=hl.filter(r=>t!=null&&r.options.toastId!==t)})(e)},He.clearWaitingQueue=function(e){e===void 0&&(e={}),Lt.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},He.isActive=zT,He.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:s}=i;return(o=Lt.get(s||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:HT()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,Da(s,o)}},He.done=e=>{He.update(e,{progress:1})},He.onChange=function(e){return wm.add(e),()=>{wm.delete(e)}},He.play=e=>D1(!0,e),He.pause=e=>D1(!1,e);const JD=typeof window<"u"?P.useLayoutEffect:P.useEffect,Iu=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return fe.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Ch={info:function(e){return fe.createElement(Iu,{...e},fe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return fe.createElement(Iu,{...e},fe.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return fe.createElement(Iu,{...e},fe.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return fe.createElement(Iu,{...e},fe.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return fe.createElement("div",{className:"Toastify__spinner"})}},eM=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=ZD(e),{closeButton:s,children:a,autoClose:l,onClick:u,type:c,hideProgressBar:f,closeToast:d,transition:h,position:g,className:v,style:b,bodyClassName:m,bodyStyle:p,progressClassName:y,progressStyle:_,updateId:w,role:x,progress:E,rtl:S,toastId:C,deleteToast:T,isIn:R,isLoading:O,closeOnClick:N,theme:M}=e,$=Xr("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":N}),z=Jt(v)?v({rtl:S,position:g,type:c,defaultClassName:$}):Xr($,v),V=function(k){let{theme:A,type:D,isLoading:B,icon:U}=k,I=null;const F={theme:A,type:D};return U===!1||(Jt(U)?I=U({...F,isLoading:B}):P.isValidElement(U)?I=P.cloneElement(U,F):B?I=Ch.spinner():(W=>W in Ch)(D)&&(I=Ch[D](F))),I}(e),H=!!E||!l,j={closeToast:d,type:c,theme:M};let L=null;return s===!1||(L=Jt(s)?s(j):P.isValidElement(s)?P.cloneElement(s,j):function(k){let{closeToast:A,theme:D,ariaLabel:B="close"}=k;return fe.createElement("button",{className:`Toastify__close-button Toastify__close-button--${D}`,type:"button",onClick:U=>{U.stopPropagation(),A(U)},"aria-label":B},fe.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},fe.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(j)),fe.createElement(h,{isIn:R,done:T,position:g,preventExitTransition:n,nodeRef:r,playToast:o},fe.createElement("div",{id:C,onClick:u,"data-in":R,className:z,...i,style:b,ref:r},fe.createElement("div",{...R&&{role:x},className:Jt(m)?m({type:c}):Xr("Toastify__toast-body",m),style:p},V!=null&&fe.createElement("div",{className:Xr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
1563:!O})},V),fe.createElement("div",null,a)),L,fe.createElement(YD,{...w&&!H?{key:`pb-${w}`}:{},rtl:S,theme:M,delay:l,isRunning:t,isIn:R,closeToast:d,hide:f,type:c,style:_,className:y,controlledProgress:H,progress:E||0})))},nd=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},tM=td(nd("bounce",!0));td(nd("slide",!0));td(nd("zoom"));td(nd("flip"));const nM={position:"top-right",transition:tM,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function rM(e){let t={...nM,...e};const n=e.stacked,[r,i]=P.useState(!0),o=P.useRef(null),{getToastToRender:s,isToastActive:a,count:l}=GD(t),{className:u,style:c,rtl:f,containerId:d}=t;function h(v){const b=Xr("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":f});return Jt(u)?u({position:v,rtl:f,defaultClassName:b}):Xr(b,dc(u))}function g(){n&&(i(!0),He.play())}return JD(()=>{if(n){var v;const b=o.current.querySelectorAll('[data-in="true"]'),m=12,p=(v=t.position)==null?void 0:v.includes("top");let y=0,_=0;Array.from(b).reverse().forEach((w,x)=>{const E=w;E.classList.add("Toastify__toast--stacked"),x>0&&(E.dataset.collapsed=`${r}`),E.dataset.pos||(E.dataset.pos=p?"top":"bot");const S=y*(r?.2:1)+(r?0:m*x);E.style.setProperty("--y",`${p?S:-1*S}px`),E.style.setProperty("--g",`${m}`),E.style.setProperty("--s",""+(1-(r?_:0))),y+=E.offsetHeight,_+=.025})}},[r,l,n]),fe.createElement("div",{ref:o,className:"Toastify",id:d,onMouseEnter:()=>{n&&(i(!1),He.pause())},onMouseLeave:g},s((v,b)=>{const m=b.length?{...c}:{...c,pointerEvents:"none"};return fe.createElement("div",{className:h(v),style:m,key:`container-${v}`},b.map(p=>{let{content:y,props:_}=p;return fe.createElement(eM,{..._,stacked:n,collapseAll:g,isIn:a(_.toastId,_.containerId),style:_.style,key:`toast-${_.key}`},y)}))}))}function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(null,arguments)}function Ke(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function iM(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Cg(...e){return t=>e.forEach(n=>iM(n,t))}function _n(...e){return P.useCallback(Cg(...e),e)}function Xl(e,t=[]){let n=[];function r(o,s){const a=P.createContext(s),l=n.length;n=[...n,s];function u(f){const{scope:d,children:h,...g}=f,v=(d==null?void 0:d[e][l])||a,b=P.useMemo(()=>g,Object.values(g));return P.createElement(v.Provider,{value:b},h)}function c(f,d){const h=(d==null?void 0:d[e][l])||a,g=P.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=n.map(s=>P.createContext(s));return function(a){const l=(a==null?void 0:a[e])||o;return P.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,oM(i,...t)]}function oM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...a,...f}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Yn(e){const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function WT({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=sM({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=Yn(n),l=P.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else i(u)},[o,e,i,a]);return[s,l]}function sM({defaultProp:e,onChange:t}){const n=P.useState(e),[r]=n,i=P.useRef(r),o=Yn(t);return P.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}const pl=P.forwardRef((e,t)=>
1563{const{children:n,...r}=e,i=P.Children.toArray(n),o=i.find(lM);if(o){const s=o.props.children,a=i.map(l=>l===o?P.Children.count(s)>1?P.Children.only(null):P.isValidElement(s)?s.props.children:null:l);return P.createElement(Sm,qe({},r,{ref:t}),P.isValidElement(s)?P.cloneElement(s,void 0,a):null)}return P.createElement(Sm,qe({},r,{ref:t}),n)});pl.displayName="Slot";const Sm=P.forwardRef((e,t)=>{const{children:n,...r}=e;return P.isValidElement(n)?P.cloneElement(n,{...uM(r,n.props),ref:t?Cg(t,n.ref):n.ref}):P.Children.count(n)>1?P.Children.only(null):null});Sm.displayName="SlotClone";const aM=({children:e})=>P.createElement(P.Fragment,null,e);function lM(e){return P.isValidElement(e)&&e.type===aM}function uM(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const cM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Pi=cM.reduce((e,t)=>{const n=P.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?pl:t;return P.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),P.createElement(a,qe({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function KT(e,t){e&&Ps.flushSync(()=>e.dispatchEvent(t))}function GT(e){const t=e+"CollectionProvider",[n,r]=Xl(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:g,children:v}=h,b=fe.useRef(null),m=fe.useRef(new Map).current;return fe.createElement(i,{scope:g,itemMap:m,collectionRef:b},v)},a=e+"CollectionSlot",l=fe.forwardRef((h,g)=>{const{scope:v,children:b}=h,m=o(a,v),p=_n(g,m.collectionRef);return fe.createElement(pl,{ref:p},b)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=fe.forwardRef((h,g)=>{const{scope:v,children:b,...m}=h,p=fe.useRef(null),y=_n(g,p),_=o(u,v);return fe.useEffect(()=>(_.itemMap.set(p,{ref:p,...m}),()=>void _.itemMap.delete(p))),fe.createElement(pl,{[c]:"",ref:y},b)});function d(h){const g=o(e+"CollectionConsumer",h);return fe.useCallback(()=>{const b=g.collectionRef.current;if(!b)return[];const m=Array.from(b.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((_,w)=>m.indexOf(_.ref.current)-m.indexOf(w.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:s,Slot:l,ItemSlot:f},d,r]}const fM=P.createContext(void 0);function ZT(e){const t=P.useContext(fM);return e||t||"ltr"}function dM(e,t=globalThis==null?void 0:globalThis.document){const n=Yn(e);P.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Em="dismissableLayer.update",hM="dismissableLayer.pointerDownOutside",pM="dismissableLayer.focusOutside";let M1;const mM=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vM=P.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:l,...u}=e,c=P.useContext(mM),[f,d]=P.useState(null),h=(n=f==null?void 0:f.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=P.useState({}),v=_n(t,S=>d(S)),b=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),p=b.indexOf(m),y=f?b.indexOf(f):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=p,x=gM(S=>{const C=S.target,T=[...c.branches].some(R=>R.contains(C));!w||T||(o==null||o(S),a==null||a(S),S.defaultPrevented||l==null||l())},h),E=yM(S=>{const C=S.target;[...c.branches].some(R=>R.contains(C))||(s==null||s(S),a==null||a(S),S.defaultPrevented||l==null||l())},h);return dM(S=>{y===c.layers.size-1&&(i==null||i(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))},h),P.useEffect(()=>{if(f)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(M1=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),$1(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=M1)}},[f,h,r,c]),P.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),$1())},[f,c]),P.useEffect(()=>{const S=()=>g({});return document.addEventListener(Em,S),()=>document.removeEventListener(Em,S)},[]),P.createElement(Pi.div,qe({},u,{ref:v,style:{pointerEvents:_?w?"auto":"none":void 0,...e.style},onFocusCapture:Ke(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ke(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ke(e.onPointerDownCapture,x.onPointerDownCapture)}))});function gM(e,t=globalThis==null?void 0:globalThis.document){const n=Yn(e),r=P.useRef(!1),i=P.useRef(()=>{});return P.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let c=function(){YT(hM,n,u,{discrete:!0})};var l=c;const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function yM(e,t=globalThis==null?void 0:globalThis.document){const n=Yn(e),r=P.useRef(!1);return P.useEffect(()=>{const i=o=>{o.target&&!r.current&&YT(pM,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $1(){const e=new CustomEvent(Em);document.dispatchEvent(e)}function YT(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?KT(i,o):i.dispatchEvent(o)}let Ph=0;function _M(){P.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:j1()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:j1()),Ph++,()=>{Ph===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Ph--}},[])}function j1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Nh="focusScope.autoFocusOnMount",Ih="focusScope.autoFocusOnUnmount",B1={bubbles:!1,cancelable:!0},bM=P.forwardRef((e,t)=>
vendor: 13,313 bytes, line 1563
1563{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=P.useState(null),u=Yn(i),c=Yn(o),f=P.useRef(null),d=_n(t,v=>l(v)),h=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(r){let p=function(x){if(h.paused||!a)return;const E=x.target;a.contains(E)?f.current=E:Mr(f.current,{select:!0})},y=function(x){if(h.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||Mr(f.current,{select:!0}))},_=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Mr(a)};var v=p,b=y,m=_;document.addEventListener("focusin",p),document.addEventListener("focusout",y);const w=new MutationObserver(_);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),w.disconnect()}}},[r,a,h.paused]),P.useEffect(()=>{if(a){U1.add(h);const v=document.activeElement;if(!a.contains(v)){const m=new CustomEvent(Nh,B1);a.addEventListener(Nh,u),a.dispatchEvent(m),m.defaultPrevented||(wM(RM(XT(a)),{select:!0}),document.activeElement===v&&Mr(a))}return()=>{a.removeEventListener(Nh,u),setTimeout(()=>{const m=new CustomEvent(Ih,B1);a.addEventListener(Ih,c),a.dispatchEvent(m),m.defaultPrevented||Mr(v??document.body,{select:!0}),a.removeEventListener(Ih,c),U1.remove(h)},0)}}},[a,u,c,h]);const g=P.useCallback(v=>{if(!n&&!r||h.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(b&&m){const p=v.currentTarget,[y,_]=SM(p);y&&_?!v.shiftKey&&m===_?(v.preventDefault(),n&&Mr(y,{select:!0})):v.shiftKey&&m===y&&(v.preventDefault(),n&&Mr(_,{select:!0})):m===p&&v.preventDefault()}},[n,r,h.paused]);return P.createElement(Pi.div,qe({tabIndex:-1},s,{ref:d,onKeyDown:g}))});function wM(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Mr(r,{select:t}),document.activeElement!==n)return}function SM(e){const t=XT(e),n=F1(t,e),r=F1(t.reverse(),e);return[n,r]}function XT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function F1(e,t){for(const n of e)if(!EM(n,{upTo:t}))return n}function EM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function TM(e){return e instanceof HTMLInputElement&&"select"in e}function Mr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&TM(e)&&t&&e.select()}}const U1=xM();function xM(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=V1(e,t),e.unshift(t)},remove(t){var n;e=V1(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function V1(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function RM(e){return e.filter(t=>t.tagName!=="A")}const vs=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{},AM=$w.useId||(()=>{});let OM=0;function Tm(e){const[t,n]=P.useState(AM());return vs(()=>{e||n(r=>r??String(OM++))},[e]),e||(t?`radix-${t}`:"")}const kM=["top","right","bottom","left"],qn=Math.min,Yt=Math.max,rf=Math.round,Lu=Math.floor,pi=e=>({x:e,y:e}),CM={left:"right",right:"left",bottom:"top",top:"bottom"},PM={start:"end",end:"start"};function xm(e,t,n){return Yt(e,qn(t,n))}function Er(e,t){return typeof e=="function"?e(t):e}function Tr(e){return e.split("-")[0]}function Ds(e){return e.split("-")[1]}function Pg(e){return e==="x"?"y":"x"}function Ng(e){return e==="y"?"height":"width"}function Ms(e){return["top","bottom"].includes(Tr(e))?"y":"x"}function Ig(e){return Pg(Ms(e))}function NM(e,t,n){n===void 0&&(n=!1);const r=Ds(e),i=Ig(e),o=Ng(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=of(s)),[s,of(s)]}function IM(e){const t=of(e);return[Rm(e),t,Rm(t)]}function Rm(e){return e.replace(/start|end/g,t=>PM[t])}function LM(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function DM(e,t,n,r){const i=Ds(e);let o=LM(Tr(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Rm)))),o}function of(e){return e.replace(/left|right|bottom|top/g,t=>CM[t])}function MM(e){return{top:0,right:0,bottom:0,left:0,...e}}function QT(e){return typeof e!="number"?MM(e):{top:e,right:e,bottom:e,left:e}}function sf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function z1(e,t,n){let{reference:r,floating:i}=e;const o=Ms(t),s=Ig(t),a=Ng(s),l=Tr(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Ds(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}const $M=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=z1(u,r,l),d=r,h={},g=0;for(let v=0;v<a.length;v++){const{name:b,fn:m}=a[v],{x:p,y,data:_,reset:w}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=p??c,f=y??f,h={...h,[b]:{...h[b],..._}},w&&g<=50&&(g++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=z1(u,d,l)),v=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}};async function ml(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Er(t,e),g=QT(h),b=a[d?f==="floating"?"reference":"floating":f],m=sf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},w=sf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:y,strategy:l}):p);return{top:(m.top-w.top+g.top)/_.y,bottom:(w.bottom-m.bottom+g.bottom)/_.y,left:(m.left-w.left+g.left)/_.x,right:(w.right-m.right+g.right)/_.x}}const jM=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Er(e,t)||{};if(u==null)return{};const f=QT(c),d={x:n,y:r},h=Ig(i),g=Ng(h),v=await s.getDimensions(u),b=h==="y",m=b?"top":"left",p=b?"bottom":"right",y=b?"clientHeight":"clientWidth",_=o.reference[g]+o.reference[h]-d[h]-o.floating[g],w=d[h]-o.reference[h],x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=x?x[y]:0;(!E||!await(s.isElement==null?void 0:s.isElement(x)))&&(E=a.floating[y]||o.floating[g]);const S=_/2-w/2,C=E/2-v[g]/2-1,T=qn(f[m],C),R=qn(f[p],C),O=T,N=E-v[g]-R,M=E/2-v[g]/2+S,$=xm(O,M,N),z=!l.arrow&&Ds(i)!=null&&M!==$&&o.reference[g]/2-(M<O?T:R)-v[g]/2<0,V=z?M<O?M-O:M-N:0;return{[h]:d[h]+V,data:{[h]:$,centerOffset:M-$-V,...z&&{alignmentOffset:V}},reset:z}}}),BM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...b}=Er(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const m=Tr(i),p=Tr(a)===a,y=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=d||(p||!v?[of(a)]:IM(a));!d&&g!=="none"&&_.push(...DM(a,v,g,y));const w=[a,..._],x=await ml(t,b),E=[];let S=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&E.push(x[m]),f){const O=NM(i,s,y);E.push(x[O[0]],x[O[1]])}if(S=[...S,{placement:i,overflows:E}],!E.every(O=>O<=0)){var C,T;const O=(((C=o.flip)==null?void 0:C.index)||0)+1,N=w[O];if(N)return{data:{index:O,overflows:S},reset:{placement:N}};let M=(T=S.filter($=>$.overflows[0]<=0).sort(($,z)=>$.overflows[1]-z.overflows[1])[0])==null?void 0:T.placement;if(!M)switch(h){case"bestFit":{var R;const $=(R=S.map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,H)=>V+H,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:R[0];$&&(M=$);break}case"initialPlacement":M=a;break}if(i!==M)return{reset:{placement:M}}}return{}}}};function q1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function H1(e){return kM.some(t=>e[t]>=0)}const FM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Er(e,t);switch(r){case"referenceHidden":{const o=await ml(t,{...i,elementContext:"reference"}),s=q1(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:H1(s)}}}case"escaped":{const o=await ml(t,{...i,altBoundary:!0}),s=q1(o,n.floating);return{data:{escapedOffsets:s,escaped:H1(s)}}}default:return{}}}}};async function UM(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Tr(n),a=Ds(n),l=Ms(n)==="y",u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,f=Er(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const VM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await UM(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},zM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:m,y:p}=b;return{x:m,y:p}}},...l}=Er(e,t),u={x:n,y:r},c=await ml(t,l),f=Ms(Tr(i)),d=Pg(f);let h=u[d],g=u[f];if(o){const b=d==="y"?"top":"left",m=d==="y"?"bottom":"right",p=h+c[b],y=h-c[m];h=xm(p,h,y)}if(s){const b=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=g+c[b],y=g-c[m];g=xm(p,g,y)}const v=a.fn({...t,[d]:h,[f]:g});return{...v,data:{x:v.x-n,y:v.y-r}}}}},qM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Er(e,t),c={x:n,y:r},f=Ms(i),d=Pg(f);let h=c[d],g=c[f];const v=Er(a,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=d==="y"?"height":"width",_=o.reference[d]-o.floating[y]+b.mainAxis,w=o.reference[d]+o.reference[y]-b.mainAxis;h<_?h=_:h>w&&(h=w)}if(u){var m,p;const y=d==="y"?"width":"height",_=["top","left"].includes(Tr(i)),w=o.reference[f]-o.floating[y]+(_&&((m=s.offset)==null?void 0:m[f])||0)+(_?0:b.crossAxis),x=o.reference[f]+o.reference[y]+(_?0:((p=s.offset)==null?void 0:p[f])||0)-(_?b.crossAxis:0);g<w?g=w:g>x&&(g=x)}return{[d]:h,[f]:g}}}},HM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=()=>{},...a}=Er(e,t),l=await ml(t,a),u=Tr(n),c=Ds(n),f=Ms(n)==="y",{width:d,height:h}=r.floating;let g,v;u==="top"||u==="bottom"?(g=u,v=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(v=u,g=c==="end"?"top":"bottom");const b=h-l.top-l.bottom,m=d-l.left-l.right,p=qn(h-l[g],b),y=qn(d-l[v],m),_=!t.middlewareData.shift;let w=p,x=y;if(f?x=c||_?qn(y,m):m:w=c||_?qn(p,b):b,_&&!c){const S=Yt(l.left,0),C=Yt(l.right,0),T=Yt(l.top,0),R=Yt(l.bottom,0);f?x=d-2*(S!==0||C!==0?S+C:Yt(l.left,l.right)):w=h-2*(T!==0||R!==0?T+R:Yt(l.top,l.bottom))}await s({...t,availableWidth:x,availableHeight:w});const E=await i.getDimensions(o.floating);return d!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function $s(e){return JT(e)?(e.nodeName||"").toLowerCase():"#document"}function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kr(e){var t;return(t=(JT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function JT(e){return e instanceof Node||e instanceof tn(e).Node}function Xn(e){return e instanceof Element||e instanceof tn(e).Element}function Qn(e){return e instanceof HTMLElement||e instanceof tn(e).HTMLElement}function W1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tn(e).ShadowRoot}function Ql(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Dn(e);
vendor: 4,994 bytes, line 1563
1563return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function WM(e){return["table","td","th"].includes($s(e))}function Lg(e){const t=Dg(),n=Dn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function KM(e){let t=mi(e);for(;Qn(t)&&!gs(t);){if(Lg(t))return t;t=mi(t)}return null}function Dg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gs(e){return["html","body","#document"].includes($s(e))}function Dn(e){return tn(e).getComputedStyle(e)}function rd(e){return Xn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function mi(e){if($s(e)==="html")return e;const t=e.assignedSlot||e.parentNode||W1(e)&&e.host||kr(e);return W1(t)?t.host:t}function ex(e){const t=mi(e);return gs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qn(t)&&Ql(t)?t:ex(t)}function vl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ex(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=tn(i);return o?t.concat(s,s.visualViewport||[],Ql(i)?i:[],s.frameElement&&n?vl(s.frameElement):[]):t.concat(i,vl(i,[],n))}function tx(e){const t=Dn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=rf(n)!==o||rf(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Mg(e){return Xn(e)?e:e.contextElement}function is(e){const t=Mg(e);if(!Qn(t))return pi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=tx(t);let s=(o?rf(n.width):n.width)/r,a=(o?rf(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const GM=pi(0);function nx(e){const t=tn(e);return!Dg()||!t.visualViewport?GM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tn(e)?!1:t}function uo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Mg(e);let s=pi(1);t&&(r?Xn(r)&&(s=is(r)):s=is(e));const a=ZM(o,n,r)?nx(o):pi(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(o){const d=tn(o),h=r&&Xn(r)?tn(r):r;let g=d,v=g.frameElement;for(;v&&r&&h!==g;){const b=is(v),m=v.getBoundingClientRect(),p=Dn(v),y=m.left+(v.clientLeft+parseFloat(p.paddingLeft))*b.x,_=m.top+(v.clientTop+parseFloat(p.paddingTop))*b.y;l*=b.x,u*=b.y,c*=b.x,f*=b.y,l+=y,u+=_,g=tn(v),v=g.frameElement}}return sf({width:c,height:f,x:l,y:u})}const YM=[":popover-open",":modal"];function $g(e){return YM.some(t=>{try{return e.matches(t)}catch{return!1}})}function XM(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=kr(r),a=t?$g(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=pi(1);const c=pi(0),f=Qn(r);if((f||!f&&!o)&&(($s(r)!=="body"||Ql(s))&&(l=rd(r)),Qn(r))){const d=uo(r);u=is(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function QM(e){return Array.from(e.getClientRects())}function rx(e){return uo(kr(e)).left+rd(e).scrollLeft}function JM(e){const t=kr(e),n=rd(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+rx(e);const a=-n.scrollTop;return Dn(r).direction==="rtl"&&(s+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function e$(e,t){const n=tn(e),r=kr(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=Dg();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function t$(e,t){const n=uo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Qn(e)?is(e):pi(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function K1(e,t,n){let r;if(t==="viewport")r=e$(e,n);else if(t==="document")r=JM(kr(e));else if(Xn(t))r=t$(t,n);else{const i=nx(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return sf(r)}function ix(e,t){const n=mi(e);return n===t||!Xn(n)||gs(n)?!1:Dn(n).position==="fixed"||ix(n,t)}function n$(e,t){const n=t.get(e);if(n)return n;let r=vl(e,[],!1).filter(a=>Xn(a)&&$s(a)!=="body"),i=null;const o=Dn(e).position==="fixed";let s=o?mi(e):e;for(;Xn(s)&&!gs(s);){const a=Dn(s),l=Lg(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ql(s)&&!l&&ix(e,s))?r=r.filter(c=>c!==s):i=a,s=mi(s)}return t.set(e,r),r}function r$(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?$g(t)?[]:n$(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const f=K1(t,c,i);
vendor: 10,954 bytes, line 1563
1563return u.top=Yt(f.top,u.top),u.right=qn(f.right,u.right),u.bottom=qn(f.bottom,u.bottom),u.left=Yt(f.left,u.left),u},K1(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function i$(e){const{width:t,height:n}=tx(e);return{width:t,height:n}}function o$(e,t,n){const r=Qn(t),i=kr(t),o=n==="fixed",s=uo(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=pi(0);if(r||!r&&!o)if(($s(t)!=="body"||Ql(i))&&(a=rd(t)),r){const f=uo(t,!0,o,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else i&&(l.x=rx(i));const u=s.left+a.scrollLeft-l.x,c=s.top+a.scrollTop-l.y;return{x:u,y:c,width:s.width,height:s.height}}function Lh(e){return Dn(e).position==="static"}function G1(e,t){return!Qn(e)||Dn(e).position==="fixed"?null:t?t(e):e.offsetParent}function ox(e,t){const n=tn(e);if($g(e))return n;if(!Qn(e)){let i=mi(e);for(;i&&!gs(i);){if(Xn(i)&&!Lh(i))return i;i=mi(i)}return n}let r=G1(e,t);for(;r&&WM(r)&&Lh(r);)r=G1(r,t);return r&&gs(r)&&Lh(r)&&!Lg(r)?n:r||KM(e)||n}const s$=async function(e){const t=this.getOffsetParent||ox,n=this.getDimensions,r=await n(e.floating);return{reference:o$(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function a$(e){return Dn(e).direction==="rtl"}const l$={convertOffsetParentRelativeRectToViewportRelativeRect:XM,getDocumentElement:kr,getClippingRect:r$,getOffsetParent:ox,getElementRects:s$,getClientRects:QM,getDimensions:i$,getScale:is,isElement:Xn,isRTL:a$};function u$(e,t){let n=null,r;const i=kr(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const h=Lu(c),g=Lu(i.clientWidth-(u+f)),v=Lu(i.clientHeight-(c+d)),b=Lu(u),p={rootMargin:-h+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Yt(0,qn(1,l))||1};let y=!0;function _(w){const x=w[0].intersectionRatio;if(x!==l){if(!y)return s();x?s(!1,x):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(_,{...p,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,p)}n.observe(e)}return s(!0),o}function c$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Mg(e),c=i||o?[...u?vl(u):[],...vl(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),o&&m.addEventListener("resize",n)});const f=u&&a?u$(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,v=l?uo(e):null;l&&b();function b(){const m=uo(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&n(),v=m,g=requestAnimationFrame(b)}return n(),()=>{var m;c.forEach(p=>{i&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),f==null||f(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const f$=VM,d$=zM,h$=BM,p$=HM,m$=FM,Z1=jM,v$=qM,g$=(e,t,n)=>{const r=new Map,i={platform:l$,...n},o={...i.platform,_c:r};return $M(e,t,{...i,platform:o})};var hc=typeof document<"u"?P.useLayoutEffect:P.useEffect;function af(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!af(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!af(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function sx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Y1(e,t){const n=sx(e);return Math.round(t*n)/n}function X1(e){const t=P.useRef(e);return hc(()=>{t.current=e}),t}function y$(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=P.useState(r);af(d,r)||h(r);const[g,v]=P.useState(null),[b,m]=P.useState(null),p=P.useCallback(V=>{V!==x.current&&(x.current=V,v(V))},[]),y=P.useCallback(V=>{V!==E.current&&(E.current=V,m(V))},[]),_=o||g,w=s||b,x=P.useRef(null),E=P.useRef(null),S=P.useRef(c),C=l!=null,T=X1(l),R=X1(i),O=P.useCallback(()=>{if(!x.current||!E.current)return;const V={placement:t,strategy:n,middleware:d};R.current&&(V.platform=R.current),g$(x.current,E.current,V).then(H=>{const j={...H,isPositioned:!0};N.current&&!af(S.current,j)&&(S.current=j,Ps.flushSync(()=>{f(j)}))})},[d,t,n,R]);hc(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[u]);const N=P.useRef(!1);hc(()=>(N.current=!0,()=>{N.current=!1}),[]),hc(()=>{if(_&&(x.current=_),w&&(E.current=w),_&&w){if(T.current)return T.current(_,w,O);O()}},[_,w,O,T,C]);const M=P.useMemo(()=>({reference:x,floating:E,setReference:p,setFloating:y}),[p,y]),$=P.useMemo(()=>({reference:_,floating:w}),[_,w]),z=P.useMemo(()=>{const V={position:n,left:0,top:0};if(!$.floating)return V;const H=Y1($.floating,c.x),j=Y1($.floating,c.y);return a?{...V,transform:"translate("+H+"px, "+j+"px)",...sx($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:j}},[n,a,$.floating,c.x,c.y]);return P.useMemo(()=>({...c,update:O,refs:M,elements:$,floatingStyles:z}),[c,O,M,$,z])}const _$=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Z1({element:r.current,padding:i}).fn(n):{}:r?Z1({element:r,padding:i}).fn(n):{}}}},b$=(e,t)=>({...f$(e),options:[e,t]}),w$=(e,t)=>({...d$(e),options:[e,t]}),S$=(e,t)=>({...v$(e),options:[e,t]}),E$=(e,t)=>({...h$(e),options:[e,t]}),T$=(e,t)=>({...p$(e),options:[e,t]}),x$=(e,t)=>({...m$(e),options:[e,t]}),R$=(e,t)=>({..._$(e),options:[e,t]});function A$(e){const[t,n]=P.useState(void 0);return vs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const ax="Popper",[lx,ux]=Xl(ax),[O$,cx]=lx(ax),k$=e=>{const{__scopePopper:t,children:n}=e,[r,i]=P.useState(null);return P.createElement(O$,{scope:t,anchor:r,onAnchorChange:i},n)},C$="PopperAnchor",P$=P.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=cx(C$,n),s=P.useRef(null),a=_n(t,s);return P.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:P.createElement(Pi.div,qe({},i,{ref:a}))}),fx="PopperContent",[N$,fJ]=lx(fx),I$=P.forwardRef((e,t)=>{var n,r,i,o,s,a,l,u;const{__scopePopper:c,side:f="bottom",sideOffset:d=0,align:h="center",alignOffset:g=0,arrowPadding:v=0,avoidCollisions:b=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:y="partial",hideWhenDetached:_=!1,updatePositionStrategy:w="optimized",onPlaced:x,...E}=e,S=cx(fx,c),[C,T]=P.useState(null),R=_n(t,xe=>T(xe)),[O,N]=P.useState(null),M=A$(O),$=(n=M==null?void 0:M.width)!==null&&n!==void 0?n:0,z=(r=M==null?void 0:M.height)!==null&&r!==void 0?r:0,V=f+(h!=="center"?"-"+h:""),H=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},j=Array.isArray(m)?m:[m],L=j.length>0,k={padding:H,boundary:j.filter(L$),altBoundary:L},{refs:A,floatingStyles:D,placement:B,isPositioned:U,middlewareData:I}=y$({strategy:"fixed",placement:V,whileElementsMounted:(...xe)=>c$(...xe,{animationFrame:w==="always"}),elements:{reference:S.anchor},middleware:[b$({mainAxis:d+z,alignmentAxis:g}),b&&w$({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?S$():void 0,...k}),b&&E$({...k}),T$({...k,apply:({elements:xe,rects:Be,availableWidth:Me,availableHeight:Q})=>{const{width:J,height:oe}=Be.reference,ae=xe.floating.style;ae.setProperty("--radix-popper-available-width",`${Me}px`),ae.setProperty("--radix-popper-available-height",`${Q}px`),ae.setProperty("--radix-popper-anchor-width",`${J}px`),ae.setProperty("--radix-popper-anchor-height",`${oe}px`)}}),O&&R$({element:O,padding:v}),D$({arrowWidth:$,arrowHeight:z}),_&&x$({strategy:"referenceHidden",...k})]}),[F,W]=dx(B),q=Yn(x);vs(()=>{U&&(q==null||q())},[U,q]);const Y=(i=I.arrow)===null||i===void 0?void 0:i.x,ie=(o=I.arrow)===null||o===void 0?void 0:o.y,se=((s=I.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[he,ye]=P.useState();return vs(()=>{C&&ye(window.getComputedStyle(C).zIndex)},[C]),P.createElement("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:U?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(a=I.transformOrigin)===null||a===void 0?void 0:a.x,(l=I.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},P.createElement(N$,{scope:c,placedSide:F,onArrowChange:N,arrowX:Y,arrowY:ie,shouldHideArrow:se},P.createElement(Pi.div,qe({"data-side":F,"data-align":W},E,{ref:R,style:{...E.style,animation:U?void 0:"none",opacity:(u=I.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function L$(e){return e!==null}const D$=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;const{placement:a,rects:l,middlewareData:u}=t,f=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=f?0:e.arrowWidth,h=f?0:e.arrowHeight,[g,v]=dx(a),b={start:"0%",center:"50%",end:"100%"}[v],m=((r=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+d/2,p=((o=(s=u.arrow)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)+h/2;let y="",_="";return g==="bottom"?(y=f?b:`${m}px`,_=`${-h}px`):g==="top"?(y=f?b:`${m}px`,_=`${l.floating.height+h}px`):g==="right"?(y=`${-h}px`,_=f?b:`${p}px`):g==="left"&&(y=`${l.floating.width+h}px`,_=f?b:`${p}px`),{data:{x:y,y:_}}}});function dx(e){const[t,n="center"]=e.split("-");return[t,n]}const M$=k$,$$=P$,j$=I$;function B$(e,t){return P.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const hx=e=>{const{present:t,children:n}=e,r=F$(t),i=typeof n=="function"?n({present:r.isPresent}):P.Children.only(n),o=_n(r.ref,i.ref);return typeof n=="function"||r.isPresent?P.cloneElement(i,{ref:o}):null};hx.displayName="Presence";function F$(e){const[t,n]=P.useState(),r=P.useRef({}),i=P.useRef(e),o=P.useRef("none"),s=e?"mounted":"unmounted",[a,l]=B$(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const u=Du(r.current);o.current=a==="mounted"?u:"none"},[a]),vs(()=>
1563{const u=r.current,c=i.current;if(c!==e){const d=o.current,h=Du(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),vs(()=>{if(t){const u=f=>{const h=Du(r.current).includes(f.animationName);f.target===t&&h&&Ps.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(o.current=Du(r.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:P.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function Du(e){return(e==null?void 0:e.animationName)||"none"}const Dh="rovingFocusGroup.onEntryFocus",U$={bubbles:!1,cancelable:!0},jg="RovingFocusGroup",[Am,px,V$]=GT(jg),[z$,mx]=Xl(jg,[V$]),[q$,H$]=z$(jg),W$=P.forwardRef((e,t)=>P.createElement(Am.Provider,{scope:e.__scopeRovingFocusGroup},P.createElement(Am.Slot,{scope:e.__scopeRovingFocusGroup},P.createElement(K$,qe({},e,{ref:t}))))),K$=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,f=P.useRef(null),d=_n(t,f),h=ZT(o),[g=null,v]=WT({prop:s,defaultProp:a,onChange:l}),[b,m]=P.useState(!1),p=Yn(u),y=px(n),_=P.useRef(!1),[w,x]=P.useState(0);return P.useEffect(()=>{const E=f.current;if(E)return E.addEventListener(Dh,p),()=>E.removeEventListener(Dh,p)},[p]),P.createElement(q$,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:g,onItemFocus:P.useCallback(E=>v(E),[v]),onItemShiftTab:P.useCallback(()=>m(!0),[]),onFocusableItemAdd:P.useCallback(()=>x(E=>E+1),[]),onFocusableItemRemove:P.useCallback(()=>x(E=>E-1),[])},P.createElement(Pi.div,qe({tabIndex:b||w===0?-1:0,"data-orientation":r},c,{ref:d,style:{outline:"none",...e.style},onMouseDown:Ke(e.onMouseDown,()=>{_.current=!0}),onFocus:Ke(e.onFocus,E=>{const S=!_.current;if(E.target===E.currentTarget&&S&&!b){const C=new CustomEvent(Dh,U$);if(E.currentTarget.dispatchEvent(C),!C.defaultPrevented){const T=y().filter($=>$.focusable),R=T.find($=>$.active),O=T.find($=>
vendor: 3,821 bytes, line 1563
1563$.id===g),M=[R,O,...T].filter(Boolean).map($=>$.ref.current);vx(M)}}_.current=!1}),onBlur:Ke(e.onBlur,()=>m(!1))})))}),G$="RovingFocusGroupItem",Z$=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...s}=e,a=Tm(),l=o||a,u=H$(G$,n),c=u.currentTabStopId===l,f=px(n),{onFocusableItemAdd:d,onFocusableItemRemove:h}=u;return P.useEffect(()=>{if(r)return d(),()=>h()},[r,d,h]),P.createElement(Am.ItemSlot,{scope:n,id:l,focusable:r,active:i},P.createElement(Pi.span,qe({tabIndex:c?0:-1,"data-orientation":u.orientation},s,{ref:t,onMouseDown:Ke(e.onMouseDown,g=>{r?u.onItemFocus(l):g.preventDefault()}),onFocus:Ke(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Ke(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const v=Q$(g,u.orientation,u.dir);if(v!==void 0){g.preventDefault();let m=f().filter(p=>p.focusable).map(p=>p.ref.current);if(v==="last")m.reverse();else if(v==="prev"||v==="next"){v==="prev"&&m.reverse();const p=m.indexOf(g.currentTarget);m=u.loop?J$(m,p+1):m.slice(p+1)}setTimeout(()=>vx(m))}})})))}),Y$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function X$(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Q$(e,t,n){const r=X$(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Y$[r]}function vx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function J$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const e3=W$,t3=Z$;var n3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},To=new WeakMap,Mu=new WeakMap,$u={},Mh=0,gx=function(e){return e&&(e.host||gx(e.parentNode))},r3=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=gx(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})},i3=function(e,t,n,r){var i=r3(t,Array.isArray(e)?e:[e]);$u[n]||($u[n]=new WeakMap);var o=$u[n],s=[],a=new Set,l=new Set(i),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))c(d);else try{var h=d.getAttribute(r),g=h!==null&&h!=="false",v=(To.get(d)||0)+1,b=(o.get(d)||0)+1;To.set(d,v),o.set(d,b),s.push(d),v===1&&g&&Mu.set(d,!0),b===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return c(t),a.clear(),Mh++,function(){s.forEach(function(f){var d=To.get(f)-1,h=o.get(f)-1;To.set(f,d),o.set(f,h),d||(Mu.has(f)||f.removeAttribute(r),Mu.delete(f)),h||f.removeAttribute(n)}),Mh--,Mh||(To=new WeakMap,To=new WeakMap,Mu=new WeakMap,$u={})}},o3=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=n3(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),i3(r,i,n,"aria-hidden")):function(){return null}},pc="right-scroll-bar-position",mc="width-before-scroll-bar",s3="with-scroll-bars-hidden",a3="--removed-body-scroll-bar-size";function $h(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function l3(e,t){var n=P.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}var u3=typeof window<"u"?P.useLayoutEffect:P.useEffect,Q1=new WeakMap;function c3(e,t){var n=l3(null,function(r){return e.forEach(function(i){return $h(i,r)})});return u3(function(){var r=Q1.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;
vendor: 4,123 bytes, lines 1563-1578
1563i.forEach(function(a){o.has(a)||$h(a,null)}),o.forEach(function(a){i.has(a)||$h(a,s)})}Q1.set(n,e)},[e]),n}function f3(e){return e}function d3(e,t){t===void 0&&(t=f3);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(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var c=s;s=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function h3(e){e===void 0&&(e={});var t=d3(null);return t.options=zn({async:!0,ssr:!1},e),t}var yx=function(e){var t=e.sideCar,n=Wl(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 P.createElement(r,zn({},n))};yx.isSideCarExport=!0;function p3(e,t){return e.useMedium(t),yx}var _x=h3(),jh=function(){},id=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:jh,onWheelCapture:jh,onTouchMoveCapture:jh}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,m=b===void 0?"div":b,p=Wl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=d,_=c3([n,t]),w=zn(zn({},p),i);return P.createElement(P.Fragment,null,c&&P.createElement(y,{sideCar:_x,removeScrollBar:u,shards:f,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!v,lockRef:n}),s?P.cloneElement(P.Children.only(a),zn(zn({},w),{ref:_})):P.createElement(m,zn({},w,{className:l,ref:_}),a))});id.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};id.classNames={fullWidth:mc,zeroRight:pc};var m3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function v3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=m3();return t&&e.setAttribute("nonce",t),e}function g3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function y3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _3=function(){var e=0,t=null;return{add:function(n){e==0&&(t=v3())&&(g3(t,n),y3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b3=function(){var e=_3();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bx=function(){var e=b3(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},w3={left:0,top:0,right:0,gap:0},Bh=function(e){return parseInt(e||"",10)||0},S3=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[Bh(n),Bh(r),Bh(i)]},E3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return w3;var t=S3(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])}},T3=bx(),os="data-scroll-locked",x3=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
1564  .`.concat(s3,` {
1565   overflow: hidden `).concat(r,`;
1566   padding-right: `).concat(a,"px ").concat(r,`;
1567  }
1568  body[`).concat(os,`] {
1569    overflow: hidden `).concat(r,`;
1570    overscroll-behavior: contain;
1571    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
1572    padding-left: `.concat(i,`px;
1573    padding-top: `).concat(o,`px;
1574    padding-right: `).concat(s,`px;
1575    margin-left:0;
1576    margin-top:0;
1577    margin-right: `).concat(a,"px ").concat(r,`;
1578    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
1578")].filter(Boolean).join(""),`
1579  }
1580  
1581  .`).concat(pc,` {
1582    right: `).concat(a,"px ").concat(r,`;
1583  }
1584  
1585  .`).concat(mc,` {
1586    margin-right: `).concat(a,"px ").concat(r,`;
1587  }
1588  
1589  .`).concat(pc," .").concat(pc,` {
1590    right: 0 `).concat(r,`;
1591  }
1592  
1593  .`).concat(mc," .").concat(mc,` {
1594    margin-right: 0 `).concat(r,`;
1595  }
1596  
1597  body[`).concat(os,`] {
1598    `).concat(a3,": ").concat(a,`px;
1599  }
1600`)},J1=function(){var e=parseInt(document.body.getAttribute(os)||"0",10);return isFinite(e)?e:0},R3=function(){P.useEffect(function(){return document.body.setAttribute(os,(J1()+1).toString()),function(){var e=J1()-1;e<=0?document.body.removeAttribute(os):document.body.setAttribute(os,e.toString())}},[])},A3=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;R3();var o=P.useMemo(function(){return E3(i)},[i]);return P.createElement(T3,{styles:x3(o,!t,i,n?"":"!important")})},Om=!1;if(typeof window<"u")try{var ju=Object.defineProperty({},"passive",{get:function(){return Om=!0,!0}});window.addEventListener("test",ju,ju),window.removeEventListener("test",ju,ju)}catch{Om=!1}var xo=Om?{passive:!1}:!1,O3=function(e){return e.tagName==="TEXTAREA"},wx=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!O3(e)&&n[t]==="visible")},k3=function(e){return wx(e,"overflowY")},C3=function(e){return wx(e,"overflowX")},e_=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Sx(e,n);if(r){var i=Ex(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},P3=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},N3=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Sx=function(e,t){return e==="v"?k3(t):C3(t)},Ex=function(e,t){return e==="v"?P3(t):N3(t)},I3=function(e,t){return e==="h"&&t==="rtl"?-1:1},L3=function(e,t,n,r,i){var o=I3(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),u=!1,c=s>0,f=0,d=0;do{var h=Ex(e,a),g=h[0],v=h[1],b=h[2],m=v-b-o*g;(g||m)&&Sx(e,a)&&(f+=m,d+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&(f===0||!i)||!c&&(d===0||!i))&&(u=!0),u},Bu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t_=function(e){return[e.deltaX,e.deltaY]},n_=function(e){return e&&"current"in e?e.current:e},D3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},M3=function(e){return`
1601  .block-interactivity-`.concat(e,` {pointer-events: none;}
1602  .allow-interactivity-`).concat(e,` {pointer-events: all;}
1603`)},$3=0,Ro=[];function j3(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState($3++)[0],o=P.useState(function(){return bx()})[0],s=P.useRef(e);P.useEffect(function(){s.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=yI([e.lockRef.current],(e.shards||[]).map(n_),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=P.useCallback(function(v,b){if("touches"in v&&v.touches.length===2)return!s.current.allowPinchZoom;var m=Bu(v),p=n.current,y="deltaX"in v?v.deltaX:p[0]-m[0],_="deltaY"in v?v.deltaY:p[1]-m[1],w,x=v.target,E=Math.abs(y)>Math.abs(_)?"h":"v";if("touches"in v&&E==="h"&&x.type==="range")return!1;var S=e_(E,x);if(!S)return!0;if(S?w=E:(w=E==="v"?"h":"v",S=e_(E,x)),!S)return!1;if(!r.current&&"changedTouches"in v&&(y||_)&&(r.current=w),!w)return!0;var C=r.current||w;return L3(C,b,v,C==="h"?y:_,!0)},[]),l=P.useCallback(function(v){var b=v;if(!(!Ro.length||Ro[Ro.length-1]!==o)){var m="deltaY"in b?t_(b):Bu(b),p=t.current.filter(function(w){return w.name===b.type&&w.target===b.target&&D3(w.delta,m)})[0];if(p&&p.should){b.cancelable&&b.preventDefault();return}if(!p){var y=(s.current.shards||[]).map(n_).filter(Boolean).filter(function(w){return w.contains(b.target)}),_=y.length>0?a(b,y[0]):!s.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),u=P.useCallback(function(v,b,m,p){var y={name:v,delta:b,target:m,should:p};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(_){return _!==y})},1)},[]),c=P.useCallback(function(v){n.current=Bu(v),r.current=void 0},[]),f=P.useCallback(function(v){u(v.type,t_(v),v.target,a(v,e.lockRef.current))},[]),d=P.useCallback(function(v){u(v.type,Bu(v),v.target,a(v,e.lockRef.current))},[]);P.useEffect(function(){return Ro.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,xo),document.addEventListener("touchmove",l,xo),document.addEventListener("touchstart",c,xo),function(){Ro=Ro.filter(function(v){return v!==o}),document.removeEventListener("wheel",l,xo),document.removeEventListener("touchmove",l,xo),document.removeEventListener("touchstart",c,xo)}},[]);var h=e.removeScrollBar,g=e.inert;return P.createElement(P.Fragment,null,g?P.createElement(o,{styles:M3(i)}):null,h?P.createElement(A3,{gapMode:"margin"}):null)}const B3=p3(_x,j3);var Tx=P.forwardRef(function(e,t){return P.createElement(id,zn({},e,{ref:t,sideCar:B3}))});Tx.classNames=id.classNames;const F3=["Enter"," "],U3=["ArrowDown","PageUp","Home"],xx=["ArrowUp","PageDown","End"],V3=[...U3,...xx],od="Menu",[km,z3,q3]=GT(od),[yo,Rx]=Xl(od,[q3,ux,mx]),Bg=ux(),Ax=mx(),[H3,sd]=yo(od),[W3,Fg]=yo(od),K3=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:s=!0}=e,a=Bg(t),[l,u]=P.useState(null),c=P.useRef(!1),f=Yn(o),d=ZT(i);return P.useEffect(()=>{const h=()=>{c.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>c.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),P.createElement(M$,a,P.createElement(H3,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u},P.createElement(W3,{scope:t,onClose:P.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:s},r)))},G3=P.forwardRef((e,t)=>
1603{const{__scopeMenu:n,...r}=e,i=Bg(n);return P.createElement($$,qe({},i,r,{ref:t}))}),Z3="MenuPortal",[dJ,Y3]=yo(Z3,{forceMount:void 0}),ui="MenuContent",[X3,Ox]=yo(ui),Q3=P.forwardRef((e,t)=>{const n=Y3(ui,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=sd(ui,e.__scopeMenu),s=Fg(ui,e.__scopeMenu);return P.createElement(km.Provider,{scope:e.__scopeMenu},P.createElement(hx,{present:r||o.open},P.createElement(km.Slot,{scope:e.__scopeMenu},s.modal?P.createElement(J3,qe({},i,{ref:t})):P.createElement(e4,qe({},i,{ref:t})))))}),J3=P.forwardRef((e,t)=>{const n=sd(ui,e.__scopeMenu),r=P.useRef(null),i=_n(t,r);return P.useEffect(()=>{const o=r.current;if(o)return o3(o)},[]),P.createElement(kx,qe({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ke(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),e4=P.forwardRef((e,t)=>{const n=sd(ui,e.__scopeMenu);return P.createElement(kx,qe({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),kx=P.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h,disableOutsideScroll:g,...v}=e,b=sd(ui,n),m=Fg(ui,n),p=Bg(n),y=Ax(n),_=z3(n),[w,x]=P.useState(null),E=P.useRef(null),S=_n(t,E,b.onContentChange),C=P.useRef(0),T=P.useRef(""),R=P.useRef(0),O=P.useRef(null),N=P.useRef("right"),M=P.useRef(0),$=g?Tx:P.Fragment,z=g?{as:pl,allowPinchZoom:!0}:void 0,V=j=>{var L,k;const A=T.current+j,D=_().filter(q=>!q.disabled),B=document.activeElement,U=(L=D.find(q=>q.ref.current===B))===null||L===void 0?void 0:L.textValue,I=D.map(q=>q.textValue),F=u4(I,A,U),W=(k=D.find(q=>q.textValue===F))===null||k===void 0?void 0:k.ref.current;(function q(Y){T.current=Y,window.clearTimeout(C.current),Y!==""&&(C.current=window.setTimeout(()=>q(""),1e3))})(A),W&&setTimeout(()=>W.focus())};P.useEffect(()=>()=>window.clearTimeout(C.current),[]),_M();const H=P.useCallback(j=>{var L,k;return N.current===((L=O.current)===null||L===void 0?void 0:L.side)&&f4(j,(k=O.current)===null||k===void 0?void 0:k.area)},[]);return P.createElement(X3,{scope:n,searchRef:T,onItemEnter:P.useCallback(j=>{H(j)&&j.preventDefault()},[H]),onItemLeave:P.useCallback(j=>{var L;H(j)||((L=E.current)===null||L===void 0||L.focus(),x(null))},[H]),onTriggerLeave:P.useCallback(j=>{H(j)&&j.preventDefault()},[H]),pointerGraceTimerRef:R,onPointerGraceIntentChange:P.useCallback(j=>{O.current=j},[])},P.createElement($,z,P.createElement(bM,{asChild:!0,trapped:i,onMountAutoFocus:Ke(o,j=>{var L;j.preventDefault(),(L=E.current)===null||L===void 0||L.focus()}),onUnmountAutoFocus:s},P.createElement(vM,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h},P.createElement(e3,qe({asChild:!0},y,{dir:m.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:x,onEntryFocus:Ke(l,j=>{m.isUsingKeyboardRef.current||j.preventDefault()})}),P.createElement(j$,qe({role:"menu","aria-orientation":"vertical","data-state":s4(b.open),"data-radix-menu-content":"",dir:m.dir},p,v,{ref:S,style:{outline:"none",...v.style},onKeyDown:Ke(v.onKeyDown,j=>{const k=j.target.closest("[data-radix-menu-content]")===j.currentTarget,A=j.ctrlKey||j.altKey||j.metaKey,D=j.key.length===1;k&&(j.key==="Tab"&&j.preventDefault(),!A&&D&&V(j.key));const B=E.current;if(j.target!==B||!V3.includes(j.key))return;j.preventDefault();const I=_().filter(F=>!F.disabled).map(F=>F.ref.current);xx.includes(j.key)&&I.reverse(),a4(I)}),onBlur:Ke(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(C.current),T.current="")}),onPointerMove:Ke(e.onPointerMove,Pm(j=>{const L=j.target,k=M.current!==j.clientX;if(j.currentTarget.contains(L)&&k){const A=j.clientX>M.current?"right":"left";N.current=A,M.current=j.clientX}}))})))))))}),Cm="MenuItem",r_="menu.itemSelect",t4=P.forwardRef((e,t)=>
1603{const{disabled:n=!1,onSelect:r,...i}=e,o=P.useRef(null),s=Fg(Cm,e.__scopeMenu),a=Ox(Cm,e.__scopeMenu),l=_n(t,o),u=P.useRef(!1),c=()=>{const f=o.current;if(!n&&f){const d=new CustomEvent(r_,{bubbles:!0,cancelable:!0});f.addEventListener(r_,h=>r==null?void 0:r(h),{once:!0}),KT(f,d),d.defaultPrevented?u.current=!1:s.onClose()}};return P.createElement(n4,qe({},i,{ref:l,disabled:n,onClick:Ke(e.onClick,c),onPointerDown:f=>{var d;(d=e.onPointerDown)===null||d===void 0||d.call(e,f),u.current=!0},onPointerUp:Ke(e.onPointerUp,f=>{var d;u.current||(d=f.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Ke(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||F3.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),n4=P.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,s=Ox(Cm,n),a=Ax(n),l=P.useRef(null),u=_n(t,l),[c,f]=P.useState(!1),[d,h]=P.useState("");return P.useEffect(()=>{const g=l.current;if(g){var v;h(((v=g.textContent)!==null&&v!==void 0?v:"").trim())}},[o.children]),P.createElement(km.ItemSlot,{scope:n,disabled:r,textValue:i??d},P.createElement(t3,qe({asChild:!0},a,{focusable:!r}),P.createElement(Pi.div,qe({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:Ke(e.onPointerMove,Pm(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:Ke(e.onPointerLeave,Pm(g=>s.onItemLeave(g))),onFocus:Ke(e.onFocus,()=>f(!0)),onBlur:Ke(e.onBlur,()=>f(!1))}))))}),r4="MenuRadioGroup";yo(r4,{value:void 0,onValueChange:()=>{}});const i4="MenuItemIndicator";yo(i4,{checked:!1});const o4="MenuSub";yo(o4);function s4(e){return e?"open":"closed"}function a4(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function l4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function u4(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=l4(e,Math.max(o,0));i.length===1&&(s=s.filter(u=>u!==n));const l=s.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function c4(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const a=t[o].x,l=t[o].y,u=t[s].x,c=t[s].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(i=!i)}return i}function f4(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return c4(n,t)}function Pm(e){return t=>t.pointerType==="mouse"?e(t):void 0}const d4=K3,h4=G3,p4=Q3,m4=t4,Cx="DropdownMenu",[v4,hJ]=Xl(Cx,[Rx]),ad=Rx(),[g4,Px]=v4(Cx),y4=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,l=ad(t),u=P.useRef(null),[c=!1,f]=WT({prop:i,defaultProp:o,onChange:s});return P.createElement(g4,{scope:t,triggerId:Tm(),triggerRef:u,contentId:Tm(),open:c,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(d=>!d),[f]),modal:a},P.createElement(d4,qe({},l,{open:c,onOpenChange:f,dir:r,modal:a}),n))},_4="DropdownMenuTrigger",b4=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=Px(_4,n),s=ad(n);return P.createElement(h4,qe({asChild:!0},s),P.createElement(Pi.button,qe({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:Cg(t,o.triggerRef),onPointerDown:Ke(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(o.onOpenToggle(),o.open||a.preventDefault())}),onKeyDown:Ke(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&o.onOpenToggle(),a.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})))}),w4="DropdownMenuContent",S4=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Px(w4,n),o=ad(n),s=P.useRef(!1);return P.createElement(p4,qe({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:Ke(e.onCloseAutoFocus,a=>{var l;s.current||(l=i.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:Ke(e.onInteractOutside,a=>{const l=a.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;(!i.modal||c)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),E4=P.forwardRef((e,t)=>
vendor: 7,179 bytes, line 1603
1603{const{__scopeDropdownMenu:n,...r}=e,i=ad(n);return P.createElement(m4,qe({},i,r,{ref:t}))}),T4=y4,x4=b4,R4=S4,A4=E4,Ug=()=>{const[e]=kg(lo),t=Vl(),n=()=>{wL(lo),t("/")};return Z.jsxs("div",{className:"flex justify-between items-center px-5 md:px-10 lg:px-20 py-2 h-18 backdrop-blur-sm bg-transparent",children:[Z.jsx(Gc,{to:e?"/dashboard":"/",children:Z.jsx("div",{className:"text-xl font-medium hover:scale-105 duration-150",children:"MuscleUp💪"})}),Z.jsx("div",{className:"flex items-center space-x-4",children:e?Z.jsxs(T4,{children:[Z.jsx(x4,{className:"flex items-center space-x-2 cursor-pointer focus:outline-none",children:Z.jsx("img",{src:e.photoURL||"https://t3.ftcdn.net/jpg/03/58/90/78/360_F_358907879_Vdu96gF4XVhjCZxN2kCG0THTsSQi8IhT.jpg",alt:"User Profile",className:"w-10 h-10 rounded-full"})}),Z.jsx(R4,{className:" rounded shadow-md p-2 mt-2 absolute w-30 right-0",children:Z.jsx(A4,{onClick:n,className:"cursor-pointer p-2 text-white duration-150 rounded bg-red-500 hover:bg-red-700",children:"Logout"})})]}):Z.jsx(Gc,{to:"/login",children:Z.jsx("button",{className:"text-black hover:scale-105 duration-150",children:"Login"})})})]})};var $e;(function(e){e.assertEqual=i=>i;function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),s={};for(const a of o)s[a]=i[a];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},e.find=(i,o)=>{for(const s of i)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})($e||($e={}));var Nm;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Nm||(Nm={}));const de=$e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Kr=e=>{switch(typeof e){case"undefined":return de.undefined;case"string":return de.string;case"number":return isNaN(e)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(e)?de.array:e===null?de.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?de.promise:typeof Map<"u"&&e instanceof Map?de.map:typeof Set<"u"&&e instanceof Set?de.set:typeof Date<"u"&&e instanceof Date?de.date:de.object;default:return de.unknown}},re=$e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),O4=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class nn extends Error{constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(s))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof nn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}nn.create=e=>new nn(e);const ys=(e,t)=>{let n;switch(e.code){case re.invalid_type:e.received===de.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case re.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,$e.jsonStringifyReplacer)}`;break;case re.unrecognized_keys:n=`Unrecognized key(s) in object: ${$e.joinValues(e.keys,", ")}`;break;case re.invalid_union:n="Invalid input";break;case re.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${$e.joinValues(e.options)}`;break;case re.invalid_enum_value:n=`Invalid enum value. Expected ${$e.joinValues(e.options)}, received '${e.received}'`;break;case re.invalid_arguments:n="Invalid function arguments";break;case re.invalid_return_type:n="Invalid function return type";break;case re.invalid_date:n="Invalid date";break;case re.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:$e.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case re.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case re.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case re.custom:n="Invalid input";break;
vendor: 6,144 bytes, line 1603
1603case re.invalid_intersection_types:n="Intersection results could not be merged";break;case re.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case re.not_finite:n="Number must be finite";break;default:n=t.defaultError,$e.assertNever(e)}return{message:n}};let Nx=ys;function k4(e){Nx=e}function lf(){return Nx}const uf=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(s,{data:t,defaultError:a}).message;return{...i,path:o,message:a}},C4=[];function ce(e,t){const n=lf(),r=uf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ys?void 0:ys].filter(i=>!!i)});e.common.issues.push(r)}class Nt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Ee;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,s=await i.value;r.push({key:o,value:s})}return Nt.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:s}=i;if(o.status==="aborted"||s.status==="aborted")return Ee;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[o.value]=s.value)}return{status:t.value,value:r}}}const Ee=Object.freeze({status:"aborted"}),zo=e=>({status:"dirty",value:e}),Mt=e=>({status:"valid",value:e}),Im=e=>e.status==="aborted",Lm=e=>e.status==="dirty",gl=e=>e.status==="valid",yl=e=>typeof Promise<"u"&&e instanceof Promise;function cf(e,t,n,r){if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Ix(e,t,n,r,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var ve;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ve||(ve={}));var wa,Sa;class Jn{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const i_=(e,t)=>{if(gl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new nn(e.common.issues);return this._error=n,this._error}}};function ke(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,a)=>{var l,u;const{message:c}=e;return s.code==="invalid_enum_value"?{message:c??a.defaultError}:typeof a.data>"u"?{message:(l=c??r)!==null&&l!==void 0?l:a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:(u=c??n)!==null&&u!==void 0?u:a.defaultError}},description:i}}class Ie{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Kr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Kr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nt,ctx:{common:t.parent.common,data:t.data,parsedType:Kr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(yl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const i={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Kr(t)},o=this._parseSync({data:t,path:i.path,parent:i});return i_(i,o)}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Kr(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(yl(i)?i:Promise.resolve(i));return i_(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const s=t(i),a=()=>o.addIssue({code:re.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,i)=>
vendor: 18,367 bytes, line 1603
1603t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Mn({schema:this,typeName:_e.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Gn.create(this,this._def)}nullable(){return _i.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nn.create(this,this._def)}promise(){return bs.create(this,this._def)}or(t){return Sl.create([this,t],this._def)}and(t){return El.create(this,t,this._def)}transform(t){return new Mn({...ke(this._def),schema:this,typeName:_e.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Ol({...ke(this._def),innerType:this,defaultValue:n,typeName:_e.ZodDefault})}brand(){return new Vg({typeName:_e.ZodBranded,type:this,...ke(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new kl({...ke(this._def),innerType:this,catchValue:n,typeName:_e.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Jl.create(this,t)}readonly(){return Cl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const P4=/^c[^\s-]{8,}$/i,N4=/^[0-9a-z]+$/,I4=/^[0-9A-HJKMNP-TV-Z]{26}$/,L4=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,D4=/^[a-z0-9_-]{21}$/i,M4=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,$4=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j4="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Fh;const B4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,F4=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,U4=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Lx="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",V4=new RegExp(`^${Lx}$`);function Dx(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function z4(e){return new RegExp(`^${Dx(e)}$`)}function Mx(e){let t=`${Lx}T${Dx(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function q4(e,t){return!!((t==="v4"||!t)&&B4.test(e)||(t==="v6"||!t)&&F4.test(e))}class On extends Ie{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==de.string){const o=this._getOrReturnCtx(t);return ce(o,{code:re.invalid_type,expected:de.string,received:o.parsedType}),Ee}const r=new Nt;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),ce(i,{code:re.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),ce(i,{code:re.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,a=t.data.length<o.value;(s||a)&&(i=this._getOrReturnCtx(t,i),s?ce(i,{code:re.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&ce(i,{code:re.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")$4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"email",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Fh||(Fh=new RegExp(j4,"u")),Fh.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"emoji",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")L4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"uuid",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")D4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"nanoid",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")P4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"cuid",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")N4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"cuid2",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")I4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"ulid",code:re.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),ce(i,{validation:"url",code:re.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"regex",code:re.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),ce(i,{code:re.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),ce(i,{code:re.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),ce(i,{code:re.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Mx(o).test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{code:re.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?V4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{code:re.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?z4(o).test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{code:re.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?M4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"duration",code:re.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?q4(t.data,o.version)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"ip",code:re.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?U4.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"base64",code:re.invalid_string,message:o.message}),r.dirty()):$e.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:re.invalid_string,...ve.errToObj(r)})}_addCheck(t){return new On({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ve.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ve.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ve.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ve.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ve.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ve.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ve.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ve.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ve.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ve.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...ve.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ve.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ve.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ve.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ve.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ve.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ve.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ve.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ve.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ve.errToObj(n)})}nonempty(t){return this.min(1,ve.errToObj(t))}trim(){return new On({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new On({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new On({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}On.create=e=>{var t;return new On({checks:[],typeName:_e.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ke(e)})};function H4(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return o%s/Math.pow(10,i)}class vi extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==de.number){const o=this._getOrReturnCtx(t);return ce(o,{code:re.invalid_type,expected:de.number,received:o.parsedType}),Ee}let r;const i=new Nt;for(const o of this._def.checks)o.kind==="int"?$e.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:re.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:re.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:re.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?H4(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),ce(r,{code:re.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ce(r,{code:re.not_finite,message:o.message}),i.dirty()):$e.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ve.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ve.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ve.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ve.toString(n))}setLimit(t,n,r,i){return new vi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ve.toString(i)}]})}_addCheck(t){return new vi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ve.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ve.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ve.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ve.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ve.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ve.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ve.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ve.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ve.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&$e.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}vi.create=e=>new vi({checks:[],typeName:_e.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ke(e)});class gi extends Ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==de.bigint){const o=this._getOrReturnCtx(t);return ce(o,{code:re.invalid_type,expected:de.bigint,received:o.parsedType}),Ee}let r;const i=new Nt;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:re.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:re.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ce(r,{code:re.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):$e.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ve.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ve.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ve.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ve.toString(n))}setLimit(t,n,r,i){return new gi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ve.toString(i)}]})}_addCheck(t){return new gi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ve.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ve.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ve.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ve.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ve.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}gi.create=e=>{var t;return new gi({checks:[],typeName:_e.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...ke(e)})};class _l extends Ie{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==de.boolean){const r=this._getOrReturnCtx(t);return ce(r,{code:re.invalid_type,expected:de.boolean,received:r.parsedType}),Ee}return Mt(t.data)}}_l.create=e=>new _l({typeName:_e.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ke(e)});class co extends Ie{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==de.date){const o=this._getOrReturnCtx(t);return ce(o,{code:re.invalid_type,expected:de.date,received:o.parsedType}),Ee}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return ce(o,{code:re.invalid_date}),Ee}const r=new Nt;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),ce(i,{code:re.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),ce(i,{code:re.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):$e.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new co({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ve.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ve.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}co.create=e=>new co({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:_e.ZodDate,...ke(e)});class ff extends Ie{_parse(t){if(this._getType(t)!==de.symbol){const r=this._getOrReturnCtx(t);
vendor: 1,247 bytes, line 1603
1603return ce(r,{code:re.invalid_type,expected:de.symbol,received:r.parsedType}),Ee}return Mt(t.data)}}ff.create=e=>new ff({typeName:_e.ZodSymbol,...ke(e)});class bl extends Ie{_parse(t){if(this._getType(t)!==de.undefined){const r=this._getOrReturnCtx(t);return ce(r,{code:re.invalid_type,expected:de.undefined,received:r.parsedType}),Ee}return Mt(t.data)}}bl.create=e=>new bl({typeName:_e.ZodUndefined,...ke(e)});class wl extends Ie{_parse(t){if(this._getType(t)!==de.null){const r=this._getOrReturnCtx(t);return ce(r,{code:re.invalid_type,expected:de.null,received:r.parsedType}),Ee}return Mt(t.data)}}wl.create=e=>new wl({typeName:_e.ZodNull,...ke(e)});class _s extends Ie{constructor(){super(...arguments),this._any=!0}_parse(t){return Mt(t.data)}}_s.create=e=>new _s({typeName:_e.ZodAny,...ke(e)});class Xi extends Ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Mt(t.data)}}Xi.create=e=>new Xi({typeName:_e.ZodUnknown,...ke(e)});class xr extends Ie{_parse(t){const n=this._getOrReturnCtx(t);return ce(n,{code:re.invalid_type,expected:de.never,received:n.parsedType}),Ee}}xr.create=e=>new xr({typeName:_e.ZodNever,...ke(e)});class df extends Ie{_parse(t){if(this._getType(t)!==de.undefined){const r=this._getOrReturnCtx(t);
vendor: 24,898 bytes, line 1603
1603return ce(r,{code:re.invalid_type,expected:de.void,received:r.parsedType}),Ee}return Mt(t.data)}}df.create=e=>new df({typeName:_e.ZodVoid,...ke(e)});class Nn extends Ie{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==de.array)return ce(n,{code:re.invalid_type,expected:de.array,received:n.parsedType}),Ee;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,a=n.data.length<i.exactLength.value;(s||a)&&(ce(n,{code:s?re.too_big:re.too_small,minimum:a?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(ce(n,{code:re.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(ce(n,{code:re.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>i.type._parseAsync(new Jn(n,s,n.path,a)))).then(s=>Nt.mergeArray(r,s));const o=[...n.data].map((s,a)=>i.type._parseSync(new Jn(n,s,n.path,a)));return Nt.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Nn({...this._def,minLength:{value:t,message:ve.toString(n)}})}max(t,n){return new Nn({...this._def,maxLength:{value:t,message:ve.toString(n)}})}length(t,n){return new Nn({...this._def,exactLength:{value:t,message:ve.toString(n)}})}nonempty(t){return this.min(1,t)}}Nn.create=(e,t)=>new Nn({type:e,minLength:null,maxLength:null,exactLength:null,typeName:_e.ZodArray,...ke(t)});function ko(e){if(e instanceof rt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Gn.create(ko(r))}return new rt({...e._def,shape:()=>t})}else return e instanceof Nn?new Nn({...e._def,type:ko(e.element)}):e instanceof Gn?Gn.create(ko(e.unwrap())):e instanceof _i?_i.create(ko(e.unwrap())):e instanceof er?er.create(e.items.map(t=>ko(t))):e}class rt extends Ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=$e.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==de.object){const u=this._getOrReturnCtx(t);return ce(u,{code:re.invalid_type,expected:de.object,received:u.parsedType}),Ee}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof xr&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||a.push(u);const l=[];for(const u of s){const c=o[u],f=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Jn(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof xr){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(u==="strict")a.length>0&&(ce(i,{code:re.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of a){const f=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Jn(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>Nt.mergeObjectSync(r,u)):Nt.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ve.errToObj,new rt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,o,s,a;const l=(s=(o=(i=this._def).errorMap)===null||o===void 0?void 0:o.call(i,n,r).message)!==null&&s!==void 0?s:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=ve.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new rt({...this._def,unknownKeys:"strip"})}passthrough(){return new rt({...this._def,unknownKeys:"passthrough"})}extend(t){return new rt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new rt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:_e.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new rt({...this._def,catchall:t})}pick(t){const n={};return $e.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new rt({...this._def,shape:()=>n})}omit(t){const n={};return $e.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new rt({...this._def,shape:()=>n})}deepPartial(){return ko(this)}partial(t){const n={};return $e.objectKeys(this.shape).forEach(r=>{const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}),new rt({...this._def,shape:()=>n})}required(t){const n={};return $e.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Gn;)o=o._def.innerType;n[r]=o}}),new rt({...this._def,shape:()=>n})}keyof(){return $x($e.objectKeys(this.shape))}}rt.create=(e,t)=>new rt({shape:()=>e,unknownKeys:"strip",catchall:xr.create(),typeName:_e.ZodObject,...ke(t)});rt.strictCreate=(e,t)=>new rt({shape:()=>e,unknownKeys:"strict",catchall:xr.create(),typeName:_e.ZodObject,...ke(t)});rt.lazycreate=(e,t)=>new rt({shape:e,unknownKeys:"strip",catchall:xr.create(),typeName:_e.ZodObject,...ke(t)});class Sl extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(a=>new nn(a.ctx.common.issues));return ce(n,{code:re.invalid_union,unionErrors:s}),Ee}if(n.common.async)return Promise.all(r.map(async o=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let o;const s=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(l=>new nn(l));return ce(n,{code:re.invalid_union,unionErrors:a}),Ee}}get options(){return this._def.options}}Sl.create=(e,t)=>new Sl({options:e,typeName:_e.ZodUnion,...ke(t)});const rr=e=>e instanceof xl?rr(e.schema):e instanceof Mn?rr(e.innerType()):e instanceof Rl?[e.value]:e instanceof yi?e.options:e instanceof Al?$e.objectValues(e.enum):e instanceof Ol?rr(e._def.innerType):e instanceof bl?[void 0]:e instanceof wl?[null]:e instanceof Gn?[void 0,...rr(e.unwrap())]:e instanceof _i?[null,...rr(e.unwrap())]:e instanceof Vg||e instanceof Cl?rr(e.unwrap()):e instanceof kl?rr(e._def.innerType):[];class ld extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.object)return ce(n,{code:re.invalid_type,expected:de.object,received:n.parsedType}),Ee;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(ce(n,{code:re.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ee)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const s=rr(o.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of s){if(i.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);i.set(a,o)}}return new ld({typeName:_e.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ke(r)})}}function Dm(e,t){const n=Kr(e),r=Kr(t);if(e===t)return{valid:!0,data:e};if(n===de.object&&r===de.object){const i=$e.objectKeys(t),o=$e.objectKeys(e).filter(a=>i.indexOf(a)!==-1),s={...e,...t};for(const a of o){const l=Dm(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===de.array&&r===de.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const s=e[o],a=t[o],l=Dm(s,a);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===de.date&&r===de.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class El extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,s)=>{if(Im(o)||Im(s))return Ee;const a=Dm(o.value,s.value);return a.valid?((Lm(o)||Lm(s))&&n.dirty(),{status:n.value,value:a.data}):(ce(r,{code:re.invalid_intersection_types}),Ee)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,s])=>i(o,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}El.create=(e,t,n)=>new El({left:e,right:t,typeName:_e.ZodIntersection,...ke(n)});class er extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.array)return ce(r,{code:re.invalid_type,expected:de.array,received:r.parsedType}),Ee;if(r.data.length<this._def.items.length)return ce(r,{code:re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ee;!this._def.rest&&r.data.length>this._def.items.length&&(ce(r,{code:re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Jn(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>Nt.mergeArray(n,s)):Nt.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new er({...this._def,rest:t})}}er.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new er({items:e,typeName:_e.ZodTuple,rest:null,...ke(t)})};class Tl extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.object)return ce(r,{code:re.invalid_type,expected:de.object,received:r.parsedType}),Ee;const i=[],o=this._def.keyType,s=this._def.valueType;for(const a in r.data)i.push({key:o._parse(new Jn(r,a,r.path,a)),value:s._parse(new Jn(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Nt.mergeObjectAsync(n,i):Nt.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Ie?new Tl({keyType:t,valueType:n,typeName:_e.ZodRecord,...ke(r)}):new Tl({keyType:On.create(),valueType:t,typeName:_e.ZodRecord,...ke(n)})}}class hf extends Ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.map)return ce(r,{code:re.invalid_type,expected:de.map,received:r.parsedType}),Ee;const i=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([a,l],u)=>({key:i._parse(new Jn(r,a,r.path,[u,"key"])),value:o._parse(new Jn(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return Ee;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return Ee;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}}hf.create=(e,t,n)=>new hf({valueType:t,keyType:e,typeName:_e.ZodMap,...ke(n)});class fo extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==de.set)return ce(r,{code:re.invalid_type,expected:de.set,received:r.parsedType}),Ee;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(ce(r,{code:re.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(ce(r,{code:re.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return Ee;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>o._parse(new Jn(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new fo({...this._def,minSize:{value:t,message:ve.toString(n)}})}max(t,n){return new fo({...this._def,maxSize:{value:t,message:ve.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}fo.create=(e,t)=>new fo({valueType:e,minSize:null,maxSize:null,typeName:_e.ZodSet,...ke(t)});class ss extends Ie{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.function)return ce(n,{code:re.invalid_type,expected:de.function,received:n.parsedType}),Ee;function r(a,l){return uf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,lf(),ys].filter(u=>!!u),issueData:{code:re.invalid_arguments,argumentsError:l}})}function i(a,l){return uf({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,lf(),ys].filter(u=>!!u),issueData:{code:re.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof bs){const a=this;return Mt(async function(...l){const u=new nn([]),c=await a._def.args.parseAsync(l,o).catch(h=>{throw u.addIssue(r(l,h)),u}),f=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(f,o).catch(h=>{throw u.addIssue(i(f,h)),u})})}else{const a=this;return Mt(function(...l){const u=a._def.args.safeParse(l,o);if(!u.success)throw new nn([r(l,u.error)]);const c=Reflect.apply(s,this,u.data),f=a._def.returns.safeParse(c,o);if(!f.success)throw new nn([i(c,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ss({...this._def,args:er.create(t).rest(Xi.create())})}returns(t){return new ss({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ss({args:t||er.create([]).rest(Xi.create()),returns:n||Xi.create(),typeName:_e.ZodFunction,...ke(r)})}}class xl extends Ie{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}xl.create=(e,t)=>new xl({getter:e,typeName:_e.ZodLazy,...ke(t)});class Rl extends Ie{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ce(n,{received:n.data,code:re.invalid_literal,expected:this._def.value}),Ee}return{status:"valid",value:t.data}}get value(){return this._def.value}}Rl.create=(e,t)=>new Rl({value:e,typeName:_e.ZodLiteral,...ke(t)});function $x(e,t){return new yi({values:e,typeName:_e.ZodEnum,...ke(t)})}class yi extends Ie{constructor(){super(...arguments),wa.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{expected:$e.joinValues(r),received:n.parsedType,code:re.invalid_type}),Ee}if(cf(this,wa)||Ix(this,wa,new Set(this._def.values)),!cf(this,wa).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ce(n,{received:n.data,code:re.invalid_enum_value,options:r}),Ee}return Mt(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return yi.create(t,{...this._def,...n})}exclude(t,n=this._def){return yi.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}wa=new WeakMap;yi.create=$x;class Al extends Ie{constructor(){super(...arguments),Sa.set(this,void 0)}_parse(t){const n=$e.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==de.string&&r.parsedType!==de.number){const i=$e.objectValues(n);return ce(r,{expected:$e.joinValues(i),received:r.parsedType,code:re.invalid_type}),Ee}if(cf(this,Sa)||Ix(this,Sa,new Set($e.getValidEnumValues(this._def.values))),!cf(this,Sa).has(t.data)){const i=$e.objectValues(n);return ce(r,{received:r.data,code:re.invalid_enum_value,options:i}),Ee}return Mt(t.data)}get enum(){return this._def.values}}Sa=new WeakMap;Al.create=(e,t)=>new Al({values:e,typeName:_e.ZodNativeEnum,...ke(t)});class bs extends Ie{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==de.promise&&n.common.async===!1)return ce(n,{code:re.invalid_type,expected:de.promise,received:n.parsedType}),Ee;const r=n.parsedType===de.promise?n.data:Promise.resolve(n.data);return Mt(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}bs.create=(e,t)=>new bs({type:e,typeName:_e.ZodPromise,...ke(t)});class Mn extends Ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===_e.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:s=>{ce(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const s=i.transform(r.data,o);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return Ee;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?Ee:l.status==="dirty"||n.value==="dirty"?zo(l.value):l});{if(n.value==="aborted")return Ee;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?Ee:a.status==="dirty"||n.value==="dirty"?zo(a.value):a}}if(i.type==="refinement"){const s=a=>{const l=i.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ee:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?Ee:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!gl(s))return s;const a=i.transform(s.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>gl(s)?Promise.resolve(i.transform(s.value,o)).then(a=>({status:n.value,value:a})):s);$e.assertNever(i)}}Mn.create=(e,t,n)=>new Mn({schema:e,typeName:_e.ZodEffects,effect:t,...ke(n)});Mn.createWithPreprocess=(e,t,n)=>new Mn({schema:t,effect:{type:"preprocess",transform:e},typeName:_e.ZodEffects,...ke(n)});class Gn extends Ie{_parse(t){return this._getType(t)===de.undefined?Mt(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gn.create=(e,t)=>new Gn({innerType:e,typeName:_e.ZodOptional,...ke(t)});class _i extends Ie{_parse(t){return this._getType(t)===de.null?Mt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_i.create=(e,t)=>new _i({innerType:e,typeName:_e.ZodNullable,...ke(t)});class Ol extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===de.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Ol.create=(e,t)=>new Ol({innerType:e,typeName:_e.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ke(t)});class kl extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return yl(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new nn(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new nn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}kl.create=(e,t)=>new kl({innerType:e,typeName:_e.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ke(t)});class pf extends Ie{_parse(t){if(this._getType(t)!==de.nan){const r=this._getOrReturnCtx(t);return ce(r,{code:re.invalid_type,expected:de.nan,received:r.parsedType}),Ee}return{status:"valid",value:t.data}}}pf.create=e=>new pf({typeName:_e.ZodNaN,...ke(e)});const W4=Symbol("zod_brand");class Vg extends Ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Jl extends Ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ee:o.status==="dirty"?(n.dirty(),zo(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ee:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Jl({in:t,out:n,typeName:_e.ZodPipeline})}}class Cl extends Ie{_parse(t){const n=this._def.innerType._parse(t),r=i=>(gl(i)&&(i.value=Object.freeze(i.value)),i);return yl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Cl.create=(e,t)=>new Cl({innerType:e,typeName:_e.ZodReadonly,...ke(t)});function jx(e,t={},n){return e?_s.create().superRefine((r,i)=>{var o,s;if(!e(r)){const a=typeof t=="function"?t(r):typeof t=="string"?{message:t}:t,l=(s=(o=a.fatal)!==null&&o!==void 0?o:n)!==null&&s!==void 0?s:!0,u=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...u,fatal:l})}}):_s.create()}const K4={object:rt.lazycreate};var _e;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(_e||(_e={}));const G4=(e,t={message:`Input not instance of ${e.name}`})=>jx(n=>n instanceof e,t),Bx=On.create,Fx=vi.create,Z4=pf.create,Y4=gi.create,Ux=_l.create,X4=co.create,Q4=ff.create,J4=bl.create,e5=wl.create,t5=_s.create,n5=Xi.create,r5=xr.create,i5=df.create,o5=Nn.create,s5=rt.create,a5=rt.strictCreate,l5=Sl.create,u5=ld.create,c5=El.create,f5=er.create,d5=Tl.create,h5=hf.create,p5=fo.create,m5=ss.create,v5=xl.create,g5=Rl.create,y5=yi.create,_5=Al.create,b5=bs.create,o_=Mn.create,w5=Gn.create,S5=_i.create,E5=Mn.createWithPreprocess,T5=Jl.create,x5=()=>Bx().optional(),R5=()=>Fx().optional(),A5=()=>Ux().optional(),O5={string:e=>On.create({...e,coerce:!0}),number:e=>vi.create({...e,coerce:!0}),boolean:e=>_l.create({...e,coerce:!0}),bigint:e=>gi.create({...e,coerce:!0}),date:e=>co.create({...e,coerce:!0})},k5=Ee;var et=Object.freeze({__proto__:null,defaultErrorMap:ys,setErrorMap:k4,getErrorMap:lf,makeIssue:uf,EMPTY_PATH:C4,addIssueToContext:ce,ParseStatus:Nt,INVALID:Ee,DIRTY:zo,OK:Mt,isAborted:Im,isDirty:Lm,isValid:gl,isAsync:yl,get util(){return $e},get objectUtil(){return Nm}
vendor: 9,225 bytes, line 1603
1603,ZodParsedType:de,getParsedType:Kr,ZodType:Ie,datetimeRegex:Mx,ZodString:On,ZodNumber:vi,ZodBigInt:gi,ZodBoolean:_l,ZodDate:co,ZodSymbol:ff,ZodUndefined:bl,ZodNull:wl,ZodAny:_s,ZodUnknown:Xi,ZodNever:xr,ZodVoid:df,ZodArray:Nn,ZodObject:rt,ZodUnion:Sl,ZodDiscriminatedUnion:ld,ZodIntersection:El,ZodTuple:er,ZodRecord:Tl,ZodMap:hf,ZodSet:fo,ZodFunction:ss,ZodLazy:xl,ZodLiteral:Rl,ZodEnum:yi,ZodNativeEnum:Al,ZodPromise:bs,ZodEffects:Mn,ZodTransformer:Mn,ZodOptional:Gn,ZodNullable:_i,ZodDefault:Ol,ZodCatch:kl,ZodNaN:pf,BRAND:W4,ZodBranded:Vg,ZodPipeline:Jl,ZodReadonly:Cl,custom:jx,Schema:Ie,ZodSchema:Ie,late:K4,get ZodFirstPartyTypeKind(){return _e},coerce:O5,any:t5,array:o5,bigint:Y4,boolean:Ux,date:X4,discriminatedUnion:u5,effect:o_,enum:y5,function:m5,instanceof:G4,intersection:c5,lazy:v5,literal:g5,map:h5,nan:Z4,nativeEnum:_5,never:r5,null:e5,nullable:S5,number:Fx,object:s5,oboolean:A5,onumber:R5,optional:w5,ostring:x5,pipeline:T5,preprocess:E5,promise:b5,record:d5,set:p5,strictObject:a5,string:Bx,symbol:Q4,transformer:o_,tuple:f5,undefined:J4,union:l5,unknown:n5,void:i5,NEVER:k5,ZodIssueCode:re,quotelessJson:O4,ZodError:nn});function Vx(e,t){return function(){return e.apply(t,arguments)}}const{toString:C5}=Object.prototype,{getPrototypeOf:zg}=Object,ud=(e=>t=>{const n=C5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$n=e=>(e=e.toLowerCase(),t=>ud(t)===e),cd=e=>t=>typeof t===e,{isArray:js}=Array,Pl=cd("undefined");function P5(e){return e!==null&&!Pl(e)&&e.constructor!==null&&!Pl(e.constructor)&&mn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zx=$n("ArrayBuffer");function N5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&zx(e.buffer),t}const I5=cd("string"),mn=cd("function"),qx=cd("number"),fd=e=>e!==null&&typeof e=="object",L5=e=>e===!0||e===!1,vc=e=>{if(ud(e)!=="object")return!1;const t=zg(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},D5=$n("Date"),M5=$n("File"),$5=$n("Blob"),j5=$n("FileList"),B5=e=>fd(e)&&mn(e.pipe),F5=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mn(e.append)&&((t=ud(e))==="formdata"||t==="object"&&mn(e.toString)&&e.toString()==="[object FormData]"))},U5=$n("URLSearchParams"),[V5,z5,q5,H5]=["ReadableStream","Request","Response","Headers"].map($n),W5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function eu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),js(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(r=0;r<s;r++)a=o[r],t.call(null,e[a],a,e)}}function Hx(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 Wx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Kx=e=>!Pl(e)&&e!==Wx;function Mm(){const{caseless:e}=Kx(this)&&this||{},t={},n=(r,i)=>{const o=e&&Hx(t,i)||i;vc(t[o])&&vc(r)?t[o]=Mm(t[o],r):vc(r)?t[o]=Mm({},r):js(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&eu(arguments[r],n);return t}const K5=(e,t,n,{allOwnKeys:r}={})=>(eu(t,(i,o)=>{n&&mn(i)?e[o]=Vx(i,n):e[o]=i},{allOwnKeys:r}),e),G5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Z5=(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)},Y5=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&zg(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},X5=(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},Q5=e=>{if(!e)return null;if(js(e))return e;let t=e.length;if(!qx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},J5=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&zg(Uint8Array)),ej=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},tj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},nj=$n("HTMLFormElement"),rj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),s_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ij=$n("RegExp"),Gx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};eu(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},oj=e=>{Gx(e,(t,n)=>{if(mn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mn(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+"'")})}})},sj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return js(e)?r(e):r(String(e).split(t)),n},aj=()=>{},lj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Uh="abcdefghijklmnopqrstuvwxyz",a_="0123456789",Zx={DIGIT:a_,ALPHA:Uh,ALPHA_DIGIT:Uh+Uh.toUpperCase()+a_},uj=(e=16,t=Zx.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function cj(e){return!!(e&&mn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const fj=e=>{const t=new Array(10),n=(r,i)=>{if(fd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=js(r)?[]:{};return eu(r,(s,a)=>{const l=n(s,i+1);!Pl(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},dj=$n("AsyncFunction"),hj=e=>e&&(fd(e)||mn(e))&&mn(e.then)&&mn(e.catch),X={isArray:js,isArrayBuffer:zx,isBuffer:P5,isFormData:F5,isArrayBufferView:N5,isString:I5,isNumber:qx,isBoolean:L5,isObject:fd,isPlainObject:vc,isReadableStream:V5,isRequest:z5,isResponse:q5,isHeaders:H5,isUndefined:Pl,isDate:D5,isFile:M5,isBlob:$5,isRegExp:ij,isFunction:mn,isStream:B5,isURLSearchParams:U5,isTypedArray:J5,isFileList:j5,forEach:eu,merge:Mm,extend:K5,trim:W5,stripBOM:G5,inherits:Z5,toFlatObject:Y5,kindOf:ud,kindOfTest:$n,endsWith:X5,toArray:Q5,forEachEntry:ej,matchAll:tj,isHTMLForm:nj,hasOwnProperty:s_,hasOwnProp:s_,reduceDescriptors:Gx,freezeMethods:oj,toObjectSet:sj,toCamelCase:rj,noop:aj,toFiniteNumber:lj,findKey:Hx,global:Wx,isContextDefined:Kx,ALPHABET:Zx,generateString:uj,isSpecCompliantForm:cj,toJSONObject:fj,isAsyncFn:dj,isThenable:hj};function Ae(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)}X.inherits(Ae,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:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yx=Ae.prototype,Xx={};["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=>{Xx[e]={value:e}});Object.defineProperties(Ae,Xx);Object.defineProperty(Yx,"isAxiosError",{value:!0});Ae.from=(e,t,n,r,i,o)=>{const s=Object.create(Yx);return X.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Ae.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const pj=null;function $m(e){return X.isPlainObject(e)||X.isArray(e)}function Qx(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function l_(e,t,n){return e?e.concat(t).map(function(i,o){return i=Qx(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function mj(e){return X.isArray(e)&&!e.some($m)}const vj=X.toFlatObject(X,{},null,function(t){return/^is[A-Z]/.test(t)});function dd(e,t,n){if(!X.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,b){return!X.isUndefined(b[v])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(X.isDate(g))return g.toISOString();if(!l&&X.isBlob(g))throw new Ae("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(g)||X.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,b){let m=g;if(g&&!b&&typeof g=="object"){if(X.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(X.isArray(g)&&mj(g)||(X.isFileList(g)||X.endsWith(v,"[]"))&&(m=X.toArray(g)))return v=Qx(v),m.forEach(function(y,_){!(X.isUndefined(y)||y===null)&&t.append(s===!0?l_([v],_,o):s===null?v:v+"[]",u(y))}),!1}return $m(g)?!0:(t.append(l_(b,v,o),u(g)),!1)}const f=[],d=Object.assign(vj,{defaultVisitor:c,convertValue:u,isVisitable:$m});function h(g,v){if(!X.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));
vendor: 4,780 bytes, line 1603
1603f.push(g),X.forEach(g,function(m,p){(!(X.isUndefined(m)||m===null)&&i.call(t,m,X.isString(p)?p.trim():p,v,d))===!0&&h(m,v?v.concat(p):[p])}),f.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return h(e),t}function u_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function qg(e,t){this._pairs=[],e&&dd(e,this,t)}const Jx=qg.prototype;Jx.append=function(t,n){this._pairs.push([t,n])};Jx.toString=function(t){const n=t?function(r){return t.call(this,r,u_)}:u_;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function gj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eR(e,t,n){if(!t)return e;const r=n&&n.encode||gj,i=n&&n.serialize;let o;if(i?o=i(t,n):o=X.isURLSearchParams(t)?t.toString():new qg(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class c_{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){X.forEach(this.handlers,function(r){r!==null&&t(r)})}}const tR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yj=typeof URLSearchParams<"u"?URLSearchParams:qg,_j=typeof FormData<"u"?FormData:null,bj=typeof Blob<"u"?Blob:null,wj={isBrowser:!0,classes:{URLSearchParams:yj,FormData:_j,Blob:bj},protocols:["http","https","file","blob","url","data"]},Hg=typeof window<"u"&&typeof document<"u",Sj=(e=>Hg&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ej=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tj=Hg&&window.location.href||"http://localhost",xj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hg,hasStandardBrowserEnv:Sj,hasStandardBrowserWebWorkerEnv:Ej,origin:Tj},Symbol.toStringTag,{value:"Module"})),In={...xj,...wj};function Rj(e,t){return dd(e,new In.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return In.isNode&&X.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Aj(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Oj(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function nR(e){function t(n,r,i,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=n.length;return s=!s&&X.isArray(i)?i.length:s,l?(X.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!X.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&X.isArray(i[s])&&(i[s]=Oj(i[s])),!a)}if(X.isFormData(e)&&X.isFunction(e.entries)){const n={};return X.forEachEntry(e,(r,i)=>{t(Aj(r),i,n,0)}),n}return null}function kj(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const tu={transitional:tR,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=X.isObject(t);if(o&&X.isHTMLForm(t)&&(t=new FormData(t)),X.isFormData(t))return i?JSON.stringify(nR(t)):t;if(X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)||X.isReadableStream(t))return t;if(X.isArrayBufferView(t))return t.buffer;if(X.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rj(t,this.formSerializer).toString();if((a=X.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return dd(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),kj(t)):t}],transformResponse:[function(t){const n=this.transitional||tu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(X.isResponse(t)||X.isReadableStream(t))return t;if(t&&X.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Ae.from(a,Ae.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:In.classes.FormData,Blob:In.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};
1603X.forEach(["delete","get","head","post","put","patch"],e=>{tu.headers[e]={}});const Cj=X.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"]),Pj=e=>{const t={};let n,r,i;return e&&e.split(`
1604`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&Cj[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},f_=Symbol("internals");function oa(e){return e&&String(e).trim().toLowerCase()}function gc(e){return e===!1||e==null?e:X.isArray(e)?e.map(gc):String(e)}function Nj(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 Ij=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Vh(e,t,n,r,i){if(X.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!X.isString(t)){if(X.isString(r))return t.indexOf(r)!==-1;if(X.isRegExp(r))return r.test(t)}}function Lj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Dj(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class Wt{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=oa(l);if(!c)throw new Error("header name must be a non-empty string");const f=X.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=gc(a))}const s=(a,l)=>X.forEach(a,(u,c)=>o(u,c,l));if(X.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(X.isString(t)&&(t=t.trim())&&!Ij(t))s(Pj(t),n);else if(X.isHeaders(t))for(const[a,l]of t.entries())o(l,a,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=oa(t),t){const r=X.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Nj(i);if(X.isFunction(n))return n.call(this,i,r);if(X.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=oa(t),t){const r=X.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Vh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=oa(s),s){const a=X.findKey(r,s);a&&(!n||Vh(r,r[a],a,n))&&(delete r[a],i=!0)}}return X.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Vh(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return X.forEach(this,(i,o)=>{const s=X.findKey(r,o);if(s){n[s]=gc(i),delete n[o];return}const a=t?Lj(o):String(o).trim();a!==o&&delete n[o],n[a]=gc(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&X.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(`
1605`)}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[f_]=this[f_]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=oa(s);r[a]||(Dj(i,s),r[a]=!0)}return X.isArray(t)?t.forEach(o):o(t),this}}Wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(Wt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});X.freezeMethods(Wt);function zh(e,t){const n=this||tu,r=t||n,i=Wt.from(r.headers);let o=r.data;return X.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function rR(e){return!!(e&&e.__CANCEL__)}function Bs(e,t,n){Ae.call(this,e??"canceled",Ae.ERR_CANCELED,t,n),this.name="CanceledError"}X.inherits(Bs,Ae,{__CANCEL__:!0});function iR(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ae("Request failed with status code "+n.status,[Ae.ERR_BAD_REQUEST,Ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mj(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $j(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-s<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function jj(e,t){let n=0;const r=1e3/t;let i=null;return function(){const s=this===!0,a=Date.now();if(s||a-n>r)return i&&(clearTimeout(i),i=null),n=a,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}const mf=(e,t,n=3)=>{let r=0;const i=$j(50,250);return jj(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,u=i(l),c=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:o,lengthComputable:a!=null};f[t?"download":"upload"]=!0,e(f)},n)},Bj=In.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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(s){const a=X.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Fj=In.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];X.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),X.isString(r)&&s.push("path="+r),X.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Uj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vj(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function oR(e,t){return e&&!Uj(t)?Vj(e,t):t}const d_=e=>e instanceof Wt?{...e}:e;
1605function ho(e,t){t=t||{};const n={};function r(u,c,f){return X.isPlainObject(u)&&X.isPlainObject(c)?X.merge.call({caseless:f},u,c):X.isPlainObject(c)?X.merge({},c):X.isArray(c)?c.slice():c}function i(u,c,f){if(X.isUndefined(c)){if(!X.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!X.isUndefined(c))return r(void 0,c)}function s(u,c){if(X.isUndefined(c)){if(!X.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(d_(u),d_(c),!0)};return X.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);X.isUndefined(d)&&f!==a||(n[c]=d)}),n}const sR=e=>{const t=ho({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=Wt.from(s),t.url=eR(oR(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(X.isFormData(n)){if(In.hasStandardBrowserEnv||In.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...c].join("; "))}}if(In.hasStandardBrowserEnv&&(r&&X.isFunction(r)&&(r=r(t)),r||r!==!1&&Bj(t.url))){const u=i&&o&&Fj.read(o);u&&s.set(i,u)}return t},zj=typeof XMLHttpRequest<"u",qj=zj&&function(e){return new Promise(function(n,r){const i=sR(e);let o=i.data;const s=Wt.from(i.headers).normalize();let{responseType:a}=i,l;function u(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout;function f(){if(!c)return;const h=Wt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};iR(function(m){n(m),u()},function(m){r(m),u()},v),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new Ae("Request aborted",Ae.ECONNABORTED,i,c)),c=null)},c.onerror=function(){r(new Ae("Network Error",Ae.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const v=i.transitional||tR;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new Ae(g,v.clarifyTimeoutError?Ae.ETIMEDOUT:Ae.ECONNABORTED,i,c)),c=null},o===void 0&&s.setContentType(null),"setRequestHeader"in c&&X.forEach(s.toJSON(),function(g,v){c.setRequestHeader(v,g)}),X.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),a&&a!=="json"&&(c.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&c.addEventListener("progress",mf(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",mf(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=h=>{c&&(r(!h||h.type?new Bs(null,e,c):h),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const d=Mj(i.url);if(d&&In.protocols.indexOf(d)===-1){r(new Ae("Unsupported protocol "+d+":",Ae.ERR_BAD_REQUEST,e));return}c.send(o||null)})},Hj=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof Ae?u:new Bs(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{i(new Ae(`timeout ${t} of ms exceeded`,Ae.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{o&&clearTimeout(o),o=null}]},Wj=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i}
1605,Kj=async function*(e,t,n){for await(const r of e)yield*Wj(ArrayBuffer.isView(r)?r:await n(String(r)),t)},h_=(e,t,n,r,i)=>{const o=Kj(e,t,i);let s=0;return new ReadableStream({type:"bytes",async pull(a){const{done:l,value:u}=await o.next();if(l){a.close(),r();return}let c=u.byteLength;n&&n(s+=c),a.enqueue(new Uint8Array(u))},cancel(a){return r(a),o.return()}},{highWaterMark:2})},p_=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},hd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",aR=hd&&typeof ReadableStream=="function",jm=hd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gj=aR&&(()=>{let e=!1;const t=new Request(In.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),m_=64*1024,Bm=aR&&!!(()=>{try{return X.isReadableStream(new Response("").body)}catch{}})(),vf={stream:Bm&&(e=>e.body)};hd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!vf[t]&&(vf[t]=X.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ae(`Response type '${t}' is not supported`,Ae.ERR_NOT_SUPPORT,r)})})})(new Response);const Zj=async e=>{if(e==null)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(X.isArrayBufferView(e))return e.byteLength;if(X.isURLSearchParams(e)&&(e=e+""),X.isString(e))return(await jm(e)).byteLength},Yj=async(e,t)=>{const n=X.toFiniteNumber(e.getContentLength());return n??Zj(t)},Xj=hd&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=sR(e);u=u?(u+"").toLowerCase():"text";let[h,g]=i||o||s?Hj([i,o],s):[],v,b;const m=()=>{!v&&setTimeout(()=>{h&&h.unsubscribe()}),v=!0};let p;try{if(l&&Gj&&n!=="get"&&n!=="head"&&(p=await Yj(c,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),E;X.isFormData(r)&&(E=x.headers.get("content-type"))&&c.setContentType(E),x.body&&(r=h_(x.body,m_,p_(p,mf(l)),null,jm))}X.isString(f)||(f=f?"cors":"omit"),b=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let y=await fetch(b);const _=Bm&&(u==="stream"||u==="response");if(Bm&&(a||_)){const x={};["status","statusText","headers"].forEach(S=>{x[S]=y[S]});const E=X.toFiniteNumber(y.headers.get("content-length"));y=new Response(h_(y.body,m_,a&&p_(E,mf(a,!0)),_&&m,jm),x)}u=u||"text";let w=await vf[X.findKey(vf,u)||"text"](y,e);return!_&&m(),g&&g(),await new Promise((x,E)=>{iR(x,E,{data:w,headers:Wt.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:b})})}catch(y){throw m(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Ae("Network Error",Ae.ERR_NETWORK,e,b),{cause:y.cause||y}):Ae.from(y,y&&y.code,e,b)}}),Fm={http:pj,xhr:qj,fetch:Xj};X.forEach(Fm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const v_=e=>`- ${e}`,Qj=e=>X.isFunction(e)||e===null||e===!1,lR={getAdapter:e=>{e=X.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let s;if(r=n,!Qj(n)&&(r=Fm[(s=String(n)).toLowerCase()],r===void 0))throw new Ae(`Unknown adapter '${s}'`);if(r)break;i[s||"#"+o]=r}if(!r){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
1606`+o.map(v_).join(`
1607`):" "+v_(o[0]):"as no adapter specified";throw new Ae("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Fm};function qh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bs(null,e)}function g_(e){return qh(e),e.headers=Wt.from(e.headers),e.data=zh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lR.getAdapter(e.adapter||tu.adapter)(e).then(function(r){return qh(e),r.data=zh.call(e,e.transformResponse,r),r.headers=Wt.from(r.headers),r},function(r){return rR(r)||(qh(e),r&&r.response&&(r.response.data=zh.call(e,e.transformResponse,r.response),r.response.headers=Wt.from(r.response.headers))),Promise.reject(r)})}const uR="1.7.2",Wg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Wg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const y_={};Wg.transitional=function(t,n,r){function i(o,s){return"[Axios v"+uR+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>
vendor: 3,964 bytes, lines 1607-1608
1607{if(t===!1)throw new Ae(i(s," has been removed"+(n?" in "+n:"")),Ae.ERR_DEPRECATED);return n&&!y_[s]&&(y_[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function Jj(e,t,n){if(typeof e!="object")throw new Ae("options must be an object",Ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Ae("option "+o+" must be "+l,Ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ae("Unknown option "+o,Ae.ERR_BAD_OPTION)}}const Um={assertOptions:Jj,validators:Wg},Lr=Um.validators;class Qi{constructor(t){this.defaults=t,this.interceptors={request:new c_,response:new c_}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
1608`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ho(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Um.assertOptions(r,{silentJSONParsing:Lr.transitional(Lr.boolean),forcedJSONParsing:Lr.transitional(Lr.boolean),clarifyTimeoutError:Lr.transitional(Lr.boolean)},!1),i!=null&&(X.isFunction(i)?n.paramsSerializer={serialize:i}:Um.assertOptions(i,{encode:Lr.function,serialize:Lr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&X.merge(o.common,o[n.method]);o&&X.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=Wt.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const g=[g_.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,u),d=g.length,c=Promise.resolve(n);f<d;)c=c.then(g[f++],g[f++]);return c}d=a.length;let h=n;for(f=0;f<d;){const g=a[f++],v=a[f++];try{h=g(h)}catch(b){v.call(this,b);break}}try{c=g_.call(this,h)}catch(g){return Promise.reject(g)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=ho(this.defaults,t);const n=oR(t.baseURL,t.url);return eR(n,t.params,t.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(t){Qi.prototype[t]=function(n,r){return this.request(ho(r||{},{method:t,url:n,data:(r||{}).data}))}});X.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(ho(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Qi.prototype[t]=n(),Qi.prototype[t+"Form"]=n(!0)});class Kg{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new Bs(o,s,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 Kg(function(i){t=i}),cancel:t}}}function eB(e){return function(n){return e.apply(null,n)}}function tB(e){return X.isObject(e)&&e.isAxiosError===!0}const Vm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
vendor: 1,696 bytes, line 1608
1608alContent: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(Vm).forEach(([e,t])=>{Vm[t]=e});function cR(e){const t=new Qi(e),n=Vx(Qi.prototype.request,t);return X.extend(n,Qi.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return cR(ho(e,i))},n}const pt=cR(tu);pt.Axios=Qi;pt.CanceledError=Bs;pt.CancelToken=Kg;pt.isCancel=rR;pt.VERSION=uR;pt.toFormData=dd;pt.AxiosError=Ae;pt.Cancel=pt.CanceledError;pt.all=function(t){return Promise.all(t)};pt.spread=eB;pt.isAxiosError=tB;pt.mergeConfig=ho;pt.AxiosHeaders=Wt;pt.formToJSON=e=>nR(X.isHTMLForm(e)?new FormData(e):e);pt.getAdapter=lR.getAdapter;pt.HttpStatusCode=Vm;pt.default=pt;var fR={};function nB(e){const t=new Error(e);
vendor: 41,899 bytes, lines 1608-1610
1608if(t.stack===void 0)try{throw t}catch{}return t}var rB=nB,Ne=rB;function iB(e){return!!e&&typeof e.then=="function"}var Xe=iB;function oB(e,t){if(e!=null)return e;throw Ne(t??"Got unexpected null or undefined")}var nt=oB;function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class pd{getValue(){throw Ne("BaseLoadable")}toPromise(){throw Ne("BaseLoadable")}valueMaybe(){throw Ne("BaseLoadable")}valueOrThrow(){throw Ne(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Ne("BaseLoadable")}promiseOrThrow(){throw Ne(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Ne("BaseLoadable")}errorOrThrow(){throw Ne(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Ne("BaseLoadable")}}class sB extends pd{constructor(t){super(),Oe(this,"state","hasValue"),Oe(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Xe(n)?po(n):ws(n)?n:nu(n)}catch(n){return Xe(n)?po(n.next(()=>this.map(t))):md(n)}}}class aB extends pd{constructor(t){super(),Oe(this,"state","hasError"),Oe(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class dR extends pd{constructor(t){super(),Oe(this,"state","loading"),Oe(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return po(this.contents.then(n=>{const r=t(n);if(ws(r)){const i=r;switch(i.state){case"hasValue":return i.contents;case"hasError":throw i.contents;case"loading":return i.contents}}return r}).catch(n=>{if(Xe(n))return n.then(()=>this.map(t).contents);throw n}))}}function nu(e){return Object.freeze(new sB(e))}function md(e){return Object.freeze(new aB(e))}function po(e){return Object.freeze(new dR(e))}function hR(){return Object.freeze(new dR(new Promise(()=>{})))}function lB(e){return e.every(t=>t.state==="hasValue")?nu(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?md(nt(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):po(Promise.all(e.map(t=>t.contents)))}function pR(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])).map(i=>ws(i)?i:Xe(i)?po(i):nu(i)),r=lB(n);return Array.isArray(e)?r:r.map(i=>Object.getOwnPropertyNames(e).reduce((o,s,a)=>({...o,[s]:i[a]}),{}))}function ws(e){return e instanceof pd}const uB={of:e=>Xe(e)?po(e):ws(e)?e:nu(e),error:e=>md(e),loading:()=>hR(),all:pR,isLoadable:ws};var _o={loadableWithValue:nu,loadableWithError:md,loadableWithPromise:po,loadableLoading:hR,loadableAll:pR,isLoadable:ws,RecoilLoadable:uB},cB=_o.loadableWithValue,fB=_o.loadableWithError,dB=_o.loadableWithPromise,hB=_o.loadableLoading,pB=_o.loadableAll,mB=_o.isLoadable,vB=_o.RecoilLoadable,ru=Object.freeze({__proto__:null,loadableWithValue:cB,loadableWithError:fB,loadableWithPromise:dB,loadableLoading:hB,loadableAll:pB,isLoadable:mB,RecoilLoadable:vB});const zm={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function gB(e,t){var n,r;const i=(n=fR[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(i==null||i==="")return;if(!["true","false"].includes(i))throw Ne(`process.env.${e} value must be 'true', 'false', or empty: ${i}`);t(i==="true")}function yB(e,t){var n;const r=(n=fR[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function _B(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(gB("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{zm.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),yB("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{zm.RECOIL_GKS_ENABLED.add(n)})}))}_B();var Fs=zm;function vd(e){return Fs.RECOIL_GKS_ENABLED.has(e)}vd.setPass=e=>{Fs.RECOIL_GKS_ENABLED.add(e)};vd.setFail=e=>{Fs.RECOIL_GKS_ENABLED.delete(e)};vd.clear=()=>{Fs.RECOIL_GKS_ENABLED.clear()};var ze=vd;function bB(e,t,{error:n}={}){return null}var wB=bB,Gg=wB,Hh,Wh,Kh;const SB=(Hh=fe.createMutableSource)!==null&&Hh!==void 0?Hh:fe.unstable_createMutableSource,mR=(Wh=fe.useMutableSource)!==null&&Wh!==void 0?Wh:fe.unstable_useMutableSource,vR=(Kh=fe.useSyncExternalStore)!==null&&Kh!==void 0?Kh:fe.unstable_useSyncExternalStore;function EB(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function TB(){return ze("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:ze("recoil_sync_external_store")&&vR!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:ze("recoil_mutable_source")&&mR!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?ze("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:ze("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function xB(){return!1}var iu={createMutableSource:SB,useMutableSource:mR,useSyncExternalStore:vR,currentRendererSupportsUseSyncExternalStore:EB,reactMode:TB,isFastRefreshEnabled:xB};class Zg{constructor(t){Oe(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class gR extends Zg{}class yR extends Zg{}function RB(e){return e instanceof gR||e instanceof yR}var gd={AbstractRecoilValue:Zg,RecoilState:gR,RecoilValueReadOnly:yR,isRecoilValue:RB},AB=gd.AbstractRecoilValue,OB=gd.RecoilState,kB=gd.RecoilValueReadOnly,CB=gd.isRecoilValue,Ss=Object.freeze({__proto__:null,AbstractRecoilValue:AB,RecoilState:OB,RecoilValueReadOnly:kB,isRecoilValue:CB});function PB(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var yd=PB;class _R{}const NB=new _R,mo=new Map,Yg=new Map;function IB(e){return yd(e,t=>nt(Yg.get(t)))}function LB(e){if(mo.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
1609      production. But it is safe to ignore this warning if it occurred because of
1610      hot module replacement.`;console.warn(t)}}function DB(e){Fs.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&LB(e.key),mo.set(e.key,e);const t=e.set==null?new Ss.RecoilValueReadOnly(e.key):new Ss.RecoilState(e.key);return Yg.set(e.key,t),t}class bR extends Error{}function MB(e){const t=mo.get(e);if(t==null)throw new bR(`Missing definition for RecoilValue: "${e}""`);return t}function $B(e){return mo.get(e)}const gf=new Map;function jB(e){var t;if(!ze("recoil_memory_managament_2020"))return;const n=mo.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;mo.delete(e),(r=wR(e))===null||r===void 0||r(),gf.delete(e)}}function BB(e,t){ze("recoil_memory_managament_2020")&&(t===void 0?gf.delete(e):gf.set(e,t))}function wR(e){return gf.get(e)}var Gt={nodes:mo,recoilValues:Yg,registerNode:DB,getNode:MB,getNodeMaybe:$B,deleteNodeConfigIfPossible:jB,setConfigDeletionHandler:BB,getConfigDeletionHandler:wR,recoilValuesForKeys:IB,NodeMissingError:bR,DefaultValue:_R,DEFAULT_VALUE:NB};function FB(e,t){t()}var UB={enqueueExecution:FB};function VB(e,t){return t={exports:{}},e(t,t.exports),t.exports}var zB=VB(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},n={},r=5,i=Math.pow(2,r),o=i-1,s=i/2,a=i/4,l={},u=function(K){return function(){return K}},c=n.hash=function(G){var K=typeof G>"u"?"undefined":t(G);if(K==="number")return G;K!=="string"&&(G+="");for(var te=0,le=0,ue=G.length;le<ue;++le){var me=G.charCodeAt(le);te=(te<<5)-te+me|0}return te},f=function(K){return K-=K>>1&1431655765,K=(K&858993459)+(K>>2&858993459),K=K+(K>>4)&252645135,K+=K>>8,K+=K>>16,K&127},d=function(K,te){return te>>>K&o},h=function(K){return 1<<K},g=function(K,te){return f(K&te-1)},v=function(K,te,le,ue){var me=ue;if(!K){var Te=ue.length;me=new Array(Te);for(var be=0;be<Te;++be)me[be]=ue[be]}return me[te]=le,me},b=function(K,te,le){var ue=le.length-1,me=0,Te=0,be=le;if(K)me=Te=te;else for(be=new Array(ue);me<te;)be[Te++]=le[me++];for(++me;me<=ue;)be[Te++]=le[me++];return K&&(be.length=ue),be},m=function(K,te,le,ue){var me=ue.length;if(K){for(var Te=me;Te>=te;)ue[Te--]=ue[Te];return ue[te]=le,ue}for(var be=0,we=0,Le=new Array(me+1);be<te;)Le[we++]=ue[be++];for(Le[te]=le;be<me;)Le[++we]=ue[be++];return Le},p=1,y=2,_=3,w=4,x={__hamt_isEmpty:!0},E=function(K){return K===x||K&&K.__hamt_isEmpty},S=function(K,te,le,ue){return{type:p,edit:K,hash:te,key:le,value:ue,_modify:H}},C=function(K,te,le){return{type:y,edit:K,hash:te,children:le,_modify:j}},T=function(K,te,le){return{type:_,edit:K,mask:te,children:le,_modify:L}},R=function(K,te,le){return{type:w,edit:K,size:te,children:le,_modify:k}},O=function(K){return K===x||K.type===p||K.type===y},N=function(K,te,le,ue,me){for(var Te=[],be=ue,we=0,Le=0;be;++Le)be&1&&(Te[Le]=me[we++]),be>>>=1;return Te[te]=le,R(K,we+1,Te)},M=function(K,te,le,ue){for(var me=new Array(te-1),Te=0,be=0,we=0,Le=ue.length;we<Le;++we)if(we!==le){var Je=ue[we];Je&&!E(Je)&&(me[Te++]=Je,be|=1<<we)}return T(K,be,me)},$=function G(K,te,le,ue,me,Te){if(le===me)return C(K,le,[Te,ue]);var be=d(te,le),we=d(te,me);return T(K,h(be)|h(we),be===we?[G(K,te+r,le,ue,me,Te)]:be<we?[ue,Te]:[Te,ue])},z=function(K,te,le,ue,me,Te,be,we){for(var Le=me.length,Je=0;Je<Le;++Je){var Ft=me[Je];if(le(be,Ft.key)){var gt=Ft.value,ln=Te(gt);return ln===gt?me:ln===l?(--we.value,b(K,Je,me)):v(K,Je,S(te,ue,be,ln),me)}}var wn=Te();return wn===l?me:(++we.value,v(K,Le,S(te,ue,be,wn),me))},V=function(K,te){return K===te.edit},H=function(K,te,le,ue,me,Te,be){if(te(Te,this.key)){var we=ue(this.value);return we===this.value?this:we===l?(--be.value,x):V(K,this)?(this.value=we,this):S(K,me,Te,we)}var Le=ue();return Le===l?this:(++be.value,$(K,le,this.hash,this,me,S(K,me,Te,Le)))},j=function(K,te,le,ue,me,Te,be){if(me===this.hash){var we=V(K,this),Le=z(we,K,te,this.hash,this.children,ue,Te,be);return Le===this.children?this:Le.length>1?C(K,this.hash,Le):Le[0]}var Je=ue();return Je===l?this:(++be.value,$(K,le,this.hash,this,me,S(K,me,Te,Je)))},L=function(K,te,le,ue,me,Te,be){var we=this.mask,Le=this.children,Je=d(le,me),Ft=h(Je),gt=g(we,Ft),ln=we&Ft,wn=ln?Le[gt]:x,So=wn._modify(K,te,le+r,ue,me,Te,be);if(wn===So)return this;var hu=V(K,this),Zs=we,Ys=void 0;if(ln&&E(So)){if(Zs&=~Ft,!Zs)return x;if(Le.length<=2&&O(Le[gt^1]))return Le[gt^1];Ys=b(hu,gt,Le)}else if(!ln&&!E(So)){if(Le.length>=s)return N(K,Je,So,we,Le);Zs|=Ft,Ys=m(hu,gt,So,Le)}else Ys=v(hu,gt,So,Le);return hu?(this.mask=Zs,this.children=Ys,this):T(K,Zs,Ys)},k=function(K,te,le,ue,me,Te,be){var we=this.size,Le=this.children,Je=d(le,me),Ft=Le[Je],gt=(Ft||x)._modify(K,te,le+r,ue,me,Te,be);if(Ft===gt)return this;var ln=V(K,this),wn=void 0;if(E(Ft)&&!E(gt))++we,wn=v(ln,Je,gt,Le);else if(!E(Ft)&&E(gt)){if(--we,we<=a)return M(K,we,Je,Le);wn=v(ln,Je,x,Le)}else wn=v(ln,Je,gt,Le);return ln?(this.size=we,this.children=wn,this):R(K,we,wn)};x._modify=function(G,K,te,le,ue,me,Te){var be=le();return be===l?x:(++Te.value,S(G,ue,me,be))};function A(G,K,te,le,ue){this._editable=G,this._edit=K,this._config=te,this._root=le,this._size=ue}A.prototype.setTree=function(G,K){return this._editable?(this._root=G,this._size=K,this):G===this._root?this:new A(this._editable,this._edit,this._config,G,K)};var D=n.tryGetHash=function(G,K,te,le){for(var ue=le._root,me=0,Te=le._config.keyEq;;)switch(ue.type){case p:return Te(te,ue.key)?ue.value:G;case y:{if(K===ue.hash)for(var be=ue.children,we=0,Le=be.length;we<Le;++we){var Je=be[we];if(Te(te,Je.key))return Je.value}return G}case _:{var Ft=d(me,K),gt=h(Ft);if(ue.mask&gt){ue=ue.children[g(ue.mask,gt)],me+=r;break}return G}case w:{if(ue=ue.children[d(me,K)],ue){me+=r;break}return G}default:return G}};A.prototype.tryGetHash=function(G,K,te){return D(G,K,te,this)};var B=n.tryGet=function(G,K,te){return D(G,te._config.hash(K),K,te)};A.prototype.tryGet=function(G,K){return B(G,K,this)};var U=n.getHash=function(G,K,te){return D(void 0,G,K,te)};A.prototype.getHash=function(G,K){return U(G,K,this)},n.get=function(G,K){return D(void 0,K._config.hash(G),G,K)},A.prototype.get=function(G,K){return B(K,G,this)};var I=n.has=function(G,K,te){return D(l,G,K,te)!==l};A.prototype.hasHash=function(G,K){return I(G,K,this)};var F=n.has=function(G,K){return I(K._config.hash(G),G,K)};A.prototype.has=function(G){return F(G,this)};var W=function(K,te){return K===te};n.make=function(G){return new A(0,0,{keyEq:G&&G.keyEq||W,hash:G&&G.hash||c},x,0)},n.empty=n.make();var q=n.isEmpty=function(G){return G&&!!E(G._root)};A.prototype.isEmpty=function(){return q(this)};var Y=n.modifyHash=function(G,K,te,le){var ue={value:le._size},me=le._root._modify(le._editable?le._edit:NaN,le._config.keyEq,0,G,K,te,ue);return le.setTree(me,ue.value)};A.prototype.modifyHash=function(G,K,te){return Y(te,G,K,this)};var ie=n.modify=function(G,K,te){return Y(G,te._config.hash(K),K,te)};A.prototype.modify=function(G,K){return ie(K,G,this)};var se=n.setHash=function(G,K,te,le){return Y(u(te),G,K,le)};A.prototype.setHash=function(G,K,te){return se(G,K,te,this)};var he=n.set=function(G,K,te){return se(te._config.hash(G),G,K,te)};A.prototype.set=function(G,K){return he(G,K,this)};var ye=u(l),xe=n.removeHash=function(G,K,te){return Y(ye,G,K,te)};A.prototype.removeHash=A.prototype.deleteHash=function(G,K){return xe(G,K,this)};var Be=n.remove=function(G,K){return xe(K._config.hash(G),G,K)};A.prototype.remove=A.prototype.delete=function(G){return Be(G,this)};var Me=n.beginMutation=function(G){return new A(G._editable+1,G._edit+1,G._config,G._root,G._size)};A.prototype.beginMutation=function(){return Me(this)};var Q=n.endMutation=function(G){return G._editable=G._editable&&G._editable-1,G};A.prototype.endMutation=function(){return Q(this)};var J=n.mutate=function(G,K){var te=Me(K);return G(te),Q(te)};A.prototype.mutate=function(G){return J(G,this)};var oe=function(K){return K&&ae(K[0],K[1],K[2],K[3],K[4])},ae=function(K,te,le,ue,me){for(;le<K;){var Te=te[le++];if(Te&&!E(Te))return ee(Te,ue,[K,te,le,ue,me])}return oe(me)},ee=function(K,te,le){switch(K.type){case p:return{value:te(K),rest:le};case y:case w:case _:var ue=K.children;return ae(ue.length,ue,0,te,le);default:return oe(le)}},Pe={done:!0};function Re(G){this.v=G}Re.prototype.next=function(){if(!this.v)return Pe;var G=this.v;return this.v=oe(G.rest),G},Re.prototype[Symbol.iterator]=function(){return this};var Ce=function(K,te){return new Re(ee(K._root,te))},Bt=function(K){return[K.key,K.value]},bn=n.entries=function(G){return Ce(G,Bt)};A.prototype.entries=A.prototype[Symbol.iterator]=function(){return bn(this)};var Ge=function(K){return K.key},Gd=n.keys=function(G){return Ce(G,Ge)};A.prototype.keys=function(){return Gd(this)};var lt=function(K){return K.value},jn=n.values=A.prototype.values=function(G){return Ce(G,lt)};A.prototype.values=function(){return jn(this)};var Vy=n.fold=function(G,K,te){var le=te._root;if(le.type===p)return G(K,le.value,le.key);for(var ue=[le.children],me=void 0;me=ue.pop();)for(var Te=0,be=me.length;Te<be;){var we=me[Te++];we&&we.type&&(we.type===p?K=G(K,we.value,we.key):ue.push(we.children))}return K};A.prototype.fold=function(G,K){return Vy(G,K,this)};var vk=n.forEach=function(G,K){return Vy(function(te,le,ue){return G(le,ue,K)},null,K)};A.prototype.forEach=function(G){return vk(G,this)};var gk=n.count=function(G){return G._size};A.prototype.count=function(){return gk(this)},Object.defineProperty(A.prototype,"size",{get:A.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class qB{constructor(t){Oe(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return Qg(this)}toMap(){return new Map(this._map)}}class Xg{constructor(t){if(Oe(this,"_hamt",zB.empty.beginMutation()),t instanceof Xg){const n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(const[n,r]of t.entries())this._hamt.set(n,r)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return Qg(this)}toMap(){return new Map(this._hamt)}}function Qg(e){return ze("recoil_hamt_2020")?new Xg(e):new qB(e)}var HB={persistentMap:Qg},WB=HB.persistentMap,KB=Object.freeze({__proto__:null,persistentMap:WB});function GB(e,...t){const n=new Set;e:for(const r of e){for(const i of t)if(i.has(r))continue e;n.add(r)}return n}var Ma=GB;function ZB(e,t){const n=new Map;return e.forEach((r,i)=>{n.set(i,t(r,i))}),n}var yf=ZB;function YB(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function XB(e){return{nodeDeps:yf(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:yf(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Gh(e,t,n,r){const{nodeDeps:i,nodeToNodeSubscriptions:o}=n,s=i.get(e);if(s&&r&&s!==r.nodeDeps.get(e))return;i.set(e,t);const a=s==null?t:Ma(t,s);for(const l of a)o.has(l)||o.set(l,new Set),nt(o.get(l)).add(e);if(s){const l=Ma(s,t);for(const u of l){if(!o.has(u))return;const c=nt(o.get(u));c.delete(e),c.size===0&&o.delete(u)}}}function QB(e,t,n,r){var i,o,s,a;const l=n.getState();r===l.currentTree.version||r===((i=l.nextTree)===null||i===void 0?void 0:i.version)||((o=l.previousTree)===null||o===void 0||o.version);const u=n.getGraph(r);if(Gh(e,t,u),r===((s=l.previousTree)===null||s===void 0?void 0:s.version)){const f=n.getGraph(l.currentTree.version);Gh(e,t,f,u)}if(r===((a=l.previousTree)===null||a===void 0?void 0:a.version)||r===l.currentTree.version){var c;const f=(c=l.nextTree)===null||c===void 0?void 0:c.version;if(f!==void 0){const d=n.getGraph(f);Gh(e,t,d,u)}}}var ou={cloneGraph:XB,graph:YB,saveDepsToStore:QB};let JB=0;const e6=()=>JB++;let t6=0;const n6=()=>t6++;let r6=0;const i6=()=>r6++;var _d={getNextTreeStateVersion:e6,getNextStoreID:n6,getNextComponentID:i6};const{persistentMap:__}=KB,{graph:o6}=ou,{getNextTreeStateVersion:SR}=_d;function ER(){const e=SR();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:__(),nonvalidatedAtoms:__()}}function s6(){const e=ER();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,o6()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var TR={makeEmptyTreeState:ER,makeEmptyStoreState:s6,getNextTreeStateVersion:SR};class xR{}function a6(){return new xR}var bd={RetentionZone:xR,retentionZone:a6};function l6(e,t){const n=new Set(e);return n.add(t),n}function u6(e,t){const n=new Set(e);return n.delete(t),n}function c6(e,t,n){const r=new Map(e);return r.set(t,n),r}function f6(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function d6(e,t){const n=new Map(e);return n.delete(t),n}function h6(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var RR={setByAddingToSet:l6,setByDeletingFromSet:u6,mapBySettingInMap:c6,mapByUpdatingInMap:f6,mapByDeletingFromMap:d6,mapByDeletingMultipleFromMap:h6};function*p6(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var Jg=p6;function m6(e,t){return new Proxy(e,{get:(r,i)=>(!(i in r)&&i in t&&(r[i]=t[i]()),r[i]),ownKeys:r=>Object.keys(r)})}var AR=m6;const{getNode:su,getNodeMaybe:v6,recoilValuesForKeys:b_}=Gt,{RetentionZone:w_}=bd,{setByAddingToSet:g6}=RR,y6=Object.freeze(new Set);class _6 extends Error{}function b6(e,t,n){if(!ze("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function i(o){let s=r.get(o);s||r.set(o,s=new Set),s.add(t)}if(n instanceof w_)i(n);else if(Array.isArray(n))for(const o of n)i(o);return()=>{if(!ze("recoil_memory_managament_2020"))return;const{retention:o}=e.getState();function s(a){const l=o.nodesRetainedByZone.get(a);l==null||l.delete(t),l&&l.size===0&&o.nodesRetainedByZone.delete(a)}if(n instanceof w_)s(n);else if(Array.isArray(n))for(const a of n)s(a)}}function ey(e,t,n,r){const i=e.getState();if(i.nodeCleanupFunctions.has(n))return;const o=su(n),s=b6(e,n,o.retainedBy),a=o.init(e,t,r);i.nodeCleanupFunctions.set(n,()=>{a(),s()})}function w6(e,t,n){ey(e,e.getState().currentTree,t,n)}function S6(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function E6(e,t,n){return ey(e,t,n,"get"),su(n).get(e,t)}function OR(e,t,n){return su(n).peek(e,t)}function T6(e,t,n){var r;const i=v6(t);return i==null||(r=i.invalidate)===null||r===void 0||r.call(i,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:g6(e.dirtyAtoms,t)}}function x6(e,t,n,r){const i=su(n);if(i.set==null)throw new _6(`Attempt to set read-only RecoilValue: ${n}`);const o=i.set;return ey(e,t,n,"set"),o(e,t,r)}function R6(e,t,n){const r=e.getState(),i=e.getGraph(t.version),o=su(n).nodeType;return AR({type:o},{loadable:()=>OR(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>o==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var s;return b_((s=i.nodeDeps.get(n))!==null&&s!==void 0?s:[])},subscribers:()=>{var s,a;return{nodes:b_(Jg(kR(e,t,new Set([n])),l=>l!==n)),components:yd((s=(a=r.nodeToComponentSubscriptions.get(n))===null||a===void 0?void 0:a.values())!==null&&s!==void 0?s:[],([l])=>({name:l}))}}})}function kR(e,t,n){const r=new Set,i=Array.from(n),o=e.getGraph(t.version);for(let a=i.pop();a;a=i.pop()){var s;r.add(a);const l=(s=o.nodeToNodeSubscriptions.get(a))!==null&&s!==void 0?s:y6;for(const u of l)r.has(u)||i.push(u)}return r}var Ni={getNodeLoadable:E6,peekNodeLoadable:OR,setNodeValue:x6,initializeNode:w6,cleanUpNode:S6,setUnvalidatedAtomValue_DEPRECATED:T6,peekNodeInfo:R6,getDownstreamNodes:kR};let CR=null;function A6(e){CR=e}function O6(){var e;(e=CR)===null||e===void 0||e()}var PR={setInvalidateMemoizedSnapshot:A6,invalidateMemoizedSnapshot:O6};const{getDownstreamNodes:k6,getNodeLoadable:NR,setNodeValue:C6}=Ni,{getNextComponentID:P6}=_d,{getNode:N6,getNodeMaybe:IR}=Gt,{DefaultValue:ty}=Gt,{reactMode:I6}=iu,{AbstractRecoilValue:L6,RecoilState:D6,RecoilValueReadOnly:M6,isRecoilValue:$6}=Ss,{invalidateMemoizedSnapshot:j6}=PR;function B6(e,{key:t},n=e.getState().currentTree){var r,i;const o=e.getState();n.version===o.currentTree.version||n.version===((r=o.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(i=o.previousTree)===null||i===void 0||i.version);const s=NR(e,n,t);return s.state==="loading"&&s.contents.catch(()=>{}),s}function F6(e,t){const n=e.clone();return t.forEach((r,i)=>{r.state==="hasValue"&&r.contents instanceof ty?n.delete(i):n.set(i,r)}),n}function U6(e,t,{key:n},r){if(typeof r=="function"){const i=NR(e,t,n);if(i.state==="loading"){const o=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw Ne(o)}else if(i.state==="hasError")throw i.contents;return r(i.contents)}else return r}function V6(e,t,n){if(n.type==="set"){const{recoilValue:i,valueOrUpdater:o}=n,s=U6(e,t,i,o),a=C6(e,t,i.key,s);for(const[l,u]of a.entries())qm(t,l,u)}else if(n.type==="setLoadable"){const{recoilValue:{key:i},loadable:o}=n;qm(t,i,o)}else if(n.type==="markModified"){const{recoilValue:{key:i}}=n;t.dirtyAtoms.add(i)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:i},unvalidatedValue:o}=n,s=IR(i);s==null||(r=s.invalidate)===null||r===void 0||r.call(s,t),t.atomValues.delete(i),t.nonvalidatedAtoms.set(i,o),t.dirtyAtoms.add(i)}else Gg(`Unknown action ${n.type}`)}function qm(e,t,n){n.state==="hasValue"&&n.contents instanceof ty?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function LR(e,t){e.replaceState(n=>{const r=DR(n);for(const i of t)V6(e,r,i);return MR(e,r),j6(),r})}function wd(e,t){if($a.length){const n=$a[$a.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else LR(e,[t])}const $a=[];function z6(){const e=new Map;return $a.push(e),()=>{for(const[t,n]of e)LR(t,n);$a.pop()}}function DR(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function MR(e,t){const n=k6(e,t,t.dirtyAtoms);for(const o of n){var r,i;(r=IR(o))===null||r===void 0||(i=r.invalidate)===null||i===void 0||i.call(r,t)}}function $R(e,t,n){wd(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function q6(e,t,n){if(n instanceof ty)return $R(e,t,n);wd(e,{type:"setLoadable",recoilValue:t,loadable:n})}function H6(e,t){wd(e,{type:"markModified",recoilValue:t})}function W6(e,t,n){wd(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function K6(e,{key:t},n,r=null){const i=P6(),o=e.getState();o.nodeToComponentSubscriptions.has(t)||o.nodeToComponentSubscriptions.set(t,new Map),nt(o.nodeToComponentSubscriptions.get(t)).set(i,[r??"<not captured>",n]);const s=I6();if(s.early&&(s.mode==="LEGACY"||s.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&n(a)}return{release:()=>{const a=e.getState(),l=a.nodeToComponentSubscriptions.get(t);l===void 0||!l.has(i)||(l.delete(i),l.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function G6(e,t){var n;const{currentTree:r}=e.getState(),i=N6(t.key);(n=i.clearCache)===null||n===void 0||n.call(i,e,r)}var tr={RecoilValueReadOnly:M6,AbstractRecoilValue:L6,RecoilState:D6,getRecoilValueAsLoadable:B6,setRecoilValue:$R,setRecoilValueLoadable:q6,markRecoilValueModified:H6,setUnvalidatedRecoilValue:W6,subscribeToRecoilValue:K6,isRecoilValue:$6,applyAtomValueWrites:F6,batchStart:z6,writeLoadableToTreeState:qm,invalidateDownstreams:MR,copyTreeState:DR,refreshRecoilValue:G6};function Z6(e,t,n){const r=e.entries();let i=r.next();for(;!i.done;){const o=i.value;if(t.call(n,o[1],o[0],e))return!0;i=r.next()}return!1}var Y6=Z6;const{cleanUpNode:X6}=Ni,{deleteNodeConfigIfPossible:Q6,getNode:jR}=Gt,{RetentionZone:BR}=bd,J6=12e4,FR=new Set;function UR(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const i=new Set;for(const s of t)if(s instanceof BR)for(const a of rF(n,s))i.add(a);else i.add(s);const o=eF(e,i);for(const s of o)nF(e,r,s)}function eF(e,t){const n=e.getState(),r=n.currentTree,i=e.getGraph(r.version),o=new Set,s=new Set;return a(t),o;function a(l){const u=new Set,c=tF(e,r,l,o,s);for(const g of c){var f;if(jR(g).retainedBy==="recoilRoot"){s.add(g);continue}if(((f=n.retention.referenceCounts.get(g))!==null&&f!==void 0?f:0)>0){s.add(g);continue}if(VR(g).some(b=>n.retention.referenceCounts.get(b))){s.add(g);continue}const v=i.nodeToNodeSubscriptions.get(g);if(v&&Y6(v,b=>s.has(b))){s.add(g);continue}o.add(g),u.add(g)}const d=new Set;for(const g of u)for(const v of(h=i.nodeDeps.get(g))!==null&&h!==void 0?h:FR){var h;o.has(v)||d.add(v)}d.size&&a(d)}}function tF(e,t,n,r,i){const o=e.getGraph(t.version),s=[],a=new Set;for(;n.size>0;)l(nt(n.values().next().value));return s;function l(u){if(r.has(u)||i.has(u)){n.delete(u);return}if(a.has(u))return;const c=o.nodeToNodeSubscriptions.get(u);if(c)for(const f of c)l(f);a.add(u),n.delete(u),s.push(u)}}function nF(e,t,n){if(!ze("recoil_memory_managament_2020"))return;X6(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const i=VR(n);for(const l of i){var o;(o=r.retention.nodesRetainedByZone.get(l))===null||o===void 0||o.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const s=r.graphsByVersion.get(t.version);if(s){const l=s.nodeDeps.get(n);if(l!==void 0){s.nodeDeps.delete(n);for(const u of l){var a;(a=s.nodeToNodeSubscriptions.get(u))===null||a===void 0||a.delete(n)}}s.nodeToNodeSubscriptions.delete(n)}Q6(n)}function rF(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:FR}function VR(e){const t=jR(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof BR?[t]:t}function iF(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):UR(e,new Set([t]))}function oF(e,t,n){var r;if(!ze("recoil_memory_managament_2020"))return;const i=e.getState().retention.referenceCounts,o=((r=i.get(t))!==null&&r!==void 0?r:0)+n;o===0?zR(e,t):i.set(t,o)}function zR(e,t){if(!ze("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),iF(e,t)}function sF(e){if(!ze("recoil_memory_managament_2020"))return;const t=e.getState();UR(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function aF(e){return e===void 0?"recoilRoot":e}var bo={SUSPENSE_TIMEOUT_MS:J6,updateRetainCount:oF,updateRetainCountToZero:zR,releaseScheduledRetainablesNow:sF,retainedByOptionWithDefault:aF};const{unstable_batchedUpdates:lF}=qP;var uF={unstable_batchedUpdates:lF};const{unstable_batchedUpdates:cF}=uF;var fF={unstable_batchedUpdates:cF};const{batchStart:dF}=tr,{unstable_batchedUpdates:hF}=fF;let ny=hF||(e=>e());const pF=e=>{ny=e},mF=()=>ny,vF=e=>{ny(()=>{let t=()=>{};try{t=dF(),e()}finally{t()}})};var Sd={getBatcher:mF,setBatcher:pF,batchUpdates:vF};function*gF(e){for(const t of e)for(const n of t)yield n}var qR=gF;const HR=typeof Window>"u"||typeof window>"u",yF=e=>!HR&&(e===window||e instanceof Window),_F=typeof navigator<"u"&&navigator.product==="ReactNative";var Ed={isSSR:HR,isReactNative:_F,isWindow:yF};function bF(e,t){let n;return(...r)=>{n||(n={});const i=t(...r);return Object.hasOwnProperty.call(n,i)||(n[i]=e(...r)),n[i]}}function wF(e,t){let n,r;return(...i)=>{const o=t(...i);return n===o||(n=o,r=e(...i)),r}}function SF(e,t){let n,r;return[(...s)=>{const a=t(...s);return n===a||(n=a,r=e(...s)),r},()=>{n=null}]}var EF={memoizeWithArgsHash:bF,memoizeOneWithArgsHash:wF,memoizeOneWithArgsHashAndInvalidation:SF};const{batchUpdates:Hm}=Sd,{initializeNode:TF,peekNodeInfo:xF}=Ni,{graph:RF}=ou,{getNextStoreID:AF}=_d,{DEFAULT_VALUE:OF,recoilValues:S_,recoilValuesForKeys:E_}=Gt,{AbstractRecoilValue:kF,getRecoilValueAsLoadable:CF,setRecoilValue:T_,setUnvalidatedRecoilValue:PF}=tr,{updateRetainCount:yc}=bo,{setInvalidateMemoizedSnapshot:NF}=PR,{getNextTreeStateVersion:IF,makeEmptyStoreState:LF}=TR,{isSSR:DF}=Ed,{memoizeOneWithArgsHashAndInvalidation:MF}=EF;class Td{constructor(t,n){Oe(this,"_store",void 0),Oe(this,"_refCount",1),Oe(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),CF(this._store,r))),Oe(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Oe(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const s=this._store.getState().currentTree;return E_(s.dirtyAtoms)}const i=this._store.getState().knownAtoms,o=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?S_.values():r.isInitialized===!0?E_(qR([i,o])):Jg(S_.values(),({key:s})=>!i.has(s)&&!o.has(s))}),Oe(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),xF(this._store,this._store.getState().currentTree,r))),Oe(this,"map",r=>{this.checkRefCount_INTERNAL();const i=new Wm(this,Hm);return r(i),i}),Oe(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const i=new Wm(this,Hm);return i.retain(),await r(i),i.autoRelease_INTERNAL(),i}),this._store={storeID:AF(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const i=t.graphsByVersion;if(i.has(r))return nt(i.get(r));const o=RF();return i.set(r,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Ne("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)TF(this._store,r,"get"),yc(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){DF||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!ze("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){ze("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function WR(e,t,n=!1){const r=e.getState(),i=n?IF():t.version;return{currentTree:{version:n?i:t.version,stateID:n?i:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(i,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(yd(r.nodeCleanupFunctions.entries(),([o])=>[o,()=>{}]))}}function $F(e){const t=new Td(LF());return e!=null?t.map(e):t}const[x_,KR]=MF((e,t)=>{var n;const r=e.getState(),i=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:nt(r.previousTree);return new Td(WR(e,i),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});NF(KR);function jF(e,t="latest"){const n=x_(e,t);return n.isRetained()?n:(KR(),x_(e,t))}class Wm extends Td{constructor(t,n){super(WR(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Oe(this,"_batch",void 0),Oe(this,"set",(r,i)=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{yc(o,r.key,1),T_(this.getStore_INTERNAL(),r,i)})}),Oe(this,"reset",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{yc(i,r.key,1),T_(this.getStore_INTERNAL(),r,OF)})}),Oe(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();Hm(()=>{for(const[o,s]of r.entries())yc(i,o,1),PF(i,new kF(o),s)})}),this._batch=n}}var xd={Snapshot:Td,MutableSnapshot:Wm,freshSnapshot:$F,cloneSnapshot:jF},BF=xd.Snapshot,FF=xd.MutableSnapshot,UF=xd.freshSnapshot,VF=xd.cloneSnapshot,Rd=Object.freeze({__proto__:null,Snapshot:BF,MutableSnapshot:FF,freshSnapshot:UF,cloneSnapshot:VF});function zF(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var qF=zF;const{useRef:HF}=fe;function WF(e){const t=HF(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var R_=WF;const{getNextTreeStateVersion:KF,makeEmptyStoreState:GR}=TR,{cleanUpNode:GF,getDownstreamNodes:ZF,initializeNode:YF,setNodeValue:XF,setUnvalidatedAtomValue_DEPRECATED:QF}=Ni,{graph:JF}=ou,{cloneGraph:eU}=ou,{getNextStoreID:ZR}=_d,{createMutableSource:Zh,reactMode:YR}=iu,{applyAtomValueWrites:tU}=tr,{releaseScheduledRetainablesNow:XR}=bo,{freshSnapshot:nU}=Rd,{useCallback:rU,useContext:QR,useEffect:Km,useMemo:iU,useRef:oU,useState:sU}=fe;function sa(){throw Ne("This component must be used inside a <RecoilRoot> component.")}const JR=Object.freeze({storeID:ZR(),getState:sa,replaceState:sa,getGraph:sa,subscribeToTransactions:sa,addTransactionMetadata:sa});let Gm=!1;function A_(e){if(Gm)throw Ne("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){ze("recoil_memory_managament_2020")&&ze("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&XR(e);const n=t.currentTree.version,r=KF();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,eU(nt(t.graphsByVersion.get(n))))}}const eA=fe.createContext({current:JR}),Ad=()=>QR(eA),tA=fe.createContext(null);function aU(){return QR(tA)}function ry(e,t,n){const r=ZF(e,n,n.dirtyAtoms);for(const i of r){const o=t.nodeToComponentSubscriptions.get(i);if(o)for(const[s,[a,l]]of o)l(n)}}function nA(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[i,o]of t.nodeTransactionSubscriptions)if(r.has(i))for(const[s,a]of o)a(e);for(const[i,o]of t.transactionSubscriptions)o(e);(!YR().early||t.suspendedComponentResolvers.size>0)&&(ry(e,t,n),t.suspendedComponentResolvers.forEach(i=>i()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(i=>i(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function lU(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,nA(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Gg("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,ze("recoil_memory_managament_2020")&&n==null&&XR(e)}finally{t.commitDepth--}}function uU({setNotifyBatcherOfChange:e}){const t=Ad(),[,n]=sU([]);return e(()=>n({})),Km(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),Km(()=>{UB.enqueueExecution("Batcher",()=>{lU(t.current)})}),null}function cU(e,t){const n=GR();return t({set:(r,i)=>{const o=n.currentTree,s=XF(e,o,r.key,i),a=new Set(s.keys()),l=o.nonvalidatedAtoms.clone();for(const u of a)l.delete(u);n.currentTree={...o,dirtyAtoms:qF(o.dirtyAtoms,a),atomValues:tU(o.atomValues,s),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((i,o)=>{n.currentTree=QF(n.currentTree,o,i)})}}),n}function fU(e){const t=nU(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let O_=0;function dU({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let i;const o=h=>{const g=i.current.graphsByVersion;if(g.has(h))return nt(g.get(h));const v=JF();return g.set(h,v),v},s=(h,g)=>{if(g==null){const{transactionSubscriptions:v}=f.current.getState(),b=O_++;return v.set(b,h),{release:()=>{v.delete(b)}}}else{const{nodeTransactionSubscriptions:v}=f.current.getState();v.has(g)||v.set(g,new Map);const b=O_++;return nt(v.get(g)).set(b,h),{release:()=>{const m=v.get(g);m&&(m.delete(b),m.size===0&&v.delete(g))}}}},a=h=>{A_(f.current);for(const g of Object.keys(h))nt(f.current.getState().nextTree).transactionMetadata[g]=h[g]},l=h=>{A_(f.current);const g=nt(i.current.nextTree);let v;try{Gm=!0,v=h(g)}finally{Gm=!1}v!==g&&(i.current.nextTree=v,YR().early&&ry(f.current,i.current,v),nt(u.current)())},u=oU(null),c=rU(h=>{u.current=h},[u]),f=R_(()=>n??{storeID:ZR(),getState:()=>i.current,replaceState:l,getGraph:o,subscribeToTransactions:s,addTransactionMetadata:a});n!=null&&(f.current=n),i=R_(()=>e!=null?cU(f.current,e):t!=null?fU(t):GR());const d=iU(()=>Zh==null?void 0:Zh(i,()=>i.current.currentTree.version),[i]);return Km(()=>{const h=f.current;for(const g of new Set(h.getState().knownAtoms))YF(h,g,"get");return()=>{for(const g of h.getState().knownAtoms)GF(h,g)}},[f]),fe.createElement(eA.Provider,{value:f},fe.createElement(tA.Provider,{value:d},fe.createElement(uU,{setNotifyBatcherOfChange:c}),r))}function hU(e){const{override:t,...n}=e,r=Ad();return t===!1&&r.current!==JR?e.children:fe.createElement(dU,n)}function pU(){return Ad().current.storeID}var Cr={RecoilRoot:hU,useStoreRef:Ad,useRecoilMutableSource:aU,useRecoilStoreID:pU,notifyComponents_FOR_TESTING:ry,sendEndOfBatchNotifications_FOR_TESTING:nA};function mU(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}var vU=mU;const{useEffect:gU,useRef:yU}=fe;function _U(e){const t=yU();return gU(()=>{t.current=e}),t.current}var rA=_U;const{useStoreRef:bU}=Cr,{SUSPENSE_TIMEOUT_MS:wU}=bo,{updateRetainCount:aa}=bo,{RetentionZone:SU}=bd,{useEffect:EU,useRef:TU}=fe,{isSSR:k_}=Ed;function xU(e){if(ze("recoil_memory_managament_2020"))return RU(e)}function RU(e){const n=(Array.isArray(e)?e:[e]).map(s=>s instanceof SU?s:s.key),r=bU();EU(()=>{if(!ze("recoil_memory_managament_2020"))return;const s=r.current;if(i.current&&!k_)window.clearTimeout(i.current),i.current=null;else for(const a of n)aa(s,a,1);return()=>{for(const a of n)aa(s,a,-1)}},[r,...n]);const i=TU(),o=rA(n);if(!k_&&(o===void 0||!vU(o,n))){const s=r.current;for(const a of n)aa(s,a,1);if(o)for(const a of o)aa(s,a,-1);i.current&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>{i.current=null;
1610for(const a of n)aa(s,a,-1)},wU)}}var iy=xU;function AU(){return"<component name not available>"}var au=AU;const{batchUpdates:OU}=Sd,{DEFAULT_VALUE:iA}=Gt,{currentRendererSupportsUseSyncExternalStore:kU,reactMode:Us,useMutableSource:CU,useSyncExternalStore:PU}=iu,{useRecoilMutableSource:NU,useStoreRef:nr}=Cr,{AbstractRecoilValue:Zm,getRecoilValueAsLoadable:lu,setRecoilValue:_f,setUnvalidatedRecoilValue:IU,subscribeToRecoilValue:Es}=tr,{useCallback:Kt,useEffect:Ts,useMemo:oA,useRef:ja,useState:oy}=fe,{setByAddingToSet:LU}=RR,{isSSR:DU}=Ed;function sy(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(i=>{const o=n.current.getState().suspendedComponentResolvers;o.add(i),DU&&Xe(e.contents)&&e.contents.finally(()=>{o.delete(i)})}):e.state==="hasError"?e.contents:Ne(`Invalid value of loadable atom "${t.key}"`)}function MU(){const e=au(),t=nr(),[,n]=oy([]),r=ja(new Set);r.current=new Set;const i=ja(new Set),o=ja(new Map),s=Kt(l=>{const u=o.current.get(l);u&&(u.release(),o.current.delete(l))},[o]),a=Kt((l,u)=>{o.current.has(u)&&n([])},[]);return Ts(()=>{const l=t.current;Ma(r.current,i.current).forEach(u=>{if(o.current.has(u))return;const c=Es(l,new Zm(u),d=>a(d,u),e);o.current.set(u,c),l.getState().nextTree?l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(l.getState(),u)}):a(l.getState(),u)}),Ma(i.current,r.current).forEach(u=>{s(u)}),i.current=r.current}),Ts(()=>{const l=o.current;return Ma(r.current,new Set(l.keys())).forEach(u=>{const c=Es(t.current,new Zm(u),f=>a(f,u),e);l.set(u,c)}),()=>l.forEach((u,c)=>s(c))},[e,t,s,a]),oA(()=>{function l(g){return v=>{_f(t.current,g,v)}}function u(g){return()=>_f(t.current,g,iA)}function c(g){var v;r.current.has(g.key)||(r.current=LU(r.current,g.key));const b=t.current.getState();return lu(t.current,g,Us().early&&(v=b.nextTree)!==null&&v!==void 0?v:b.currentTree)}function f(g){const v=c(g);return sy(v,g,t)}function d(g){return[f(g),l(g)]}function h(g){return[c(g),l(g)]}
vendor: 3,182 bytes, line 1610
1610return{getRecoilValue:f,getRecoilValueLoadable:c,getRecoilState:d,getRecoilStateLoadable:h,getSetRecoilState:l,getResetRecoilState:u}},[r,t])}const $U={current:0};function jU(e){const t=nr(),n=au(),r=Kt(()=>{var a;const l=t.current,u=l.getState(),c=Us().early&&(a=u.nextTree)!==null&&a!==void 0?a:u.currentTree;return{loadable:lu(l,e,c),key:e.key}},[t,e]),i=Kt(a=>{let l;return()=>{var u,c;const f=a();return(u=l)!==null&&u!==void 0&&u.loadable.is(f.loadable)&&((c=l)===null||c===void 0?void 0:c.key)===f.key?l:(l=f,f)}},[]),o=oA(()=>i(r),[r,i]),s=Kt(a=>{const l=t.current;return Es(l,e,a,n).release},[t,e,n]);return PU(s,o,o).loadable}function BU(e){const t=nr(),n=Kt(()=>{var u;const c=t.current,f=c.getState(),d=Us().early&&(u=f.nextTree)!==null&&u!==void 0?u:f.currentTree;return lu(c,e,d)},[t,e]),r=Kt(()=>n(),[n]),i=au(),o=Kt((u,c)=>{const f=t.current;return Es(f,e,()=>{if(!ze("recoil_suppress_rerender_in_callback"))return c();const h=n();l.current.is(h)||c(),l.current=h},i).release},[t,e,i,n]),s=NU();if(s==null)throw Ne("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=CU(s,r,o),l=ja(a);return Ts(()=>{l.current=a}),a}function Ym(e){const t=nr(),n=au(),r=Kt(()=>{var l;const u=t.current,c=u.getState(),f=Us().early&&(l=c.nextTree)!==null&&l!==void 0?l:c.currentTree;return lu(u,e,f)},[t,e]),i=Kt(()=>({loadable:r(),key:e.key}),[r,e.key]),o=Kt(l=>{const u=i();return l.loadable.is(u.loadable)&&l.key===u.key?l:u},[i]);Ts(()=>{const l=Es(t.current,e,u=>{a(o)},n);return a(o),l.release},[n,e,t,o]);const[s,a]=oy(i);return s.key!==e.key?i().loadable:s.loadable}function FU(e){const t=nr(),[,n]=oy([]),r=au(),i=Kt(()=>{var a;const l=t.current,u=l.getState(),c=Us().early&&(a=u.nextTree)!==null&&a!==void 0?a:u.currentTree;return lu(l,e,c)},[t,e]),o=i(),s=ja(o);return Ts(()=>{s.current=o}),Ts(()=>{const a=t.current,l=a.getState(),u=Es(a,e,f=>{var d;if(!ze("recoil_suppress_rerender_in_callback"))return n([]);const h=i();(d=s.current)!==null&&d!==void 0&&d.is(h)||n(h),s.current=h},r);if(l.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s.current=null,n([])});else{var c;if(!ze("recoil_suppress_rerender_in_callback"))return n([]);const f=i();(c=s.current)!==null&&c!==void 0&&c.is(f)||n(f),s.current=f}return u.release},[r,i,e,t]),o}function ay(e){return ze("recoil_memory_managament_2020")&&iy(e),{TRANSITION_SUPPORT:Ym,SYNC_EXTERNAL_STORE:kU()?jU:Ym,MUTABLE_SOURCE:BU,LEGACY:FU}[Us().mode](e)}function sA(e){const t=nr(),n=ay(e);return sy(n,e,t)}function Od(e){const t=nr();return Kt(n=>{_f(t.current,e,n)},[t,e])}function UU(e){const t=nr();return Kt(()=>{_f(t.current,e,iA)},[t,e])}function VU(e){return[sA(e),Od(e)]}function zU(e){return[ay(e),Od(e)]}function qU(){const e=nr();return(t,n={})=>{OU(()=>{e.current.addTransactionMetadata(n),t.forEach((r,i)=>IU(e.current,new Zm(i),r))})}}function aA(e){return ze("recoil_memory_managament_2020")&&iy(e),Ym(e)}function lA(e){const t=nr(),n=aA(e);return sy(n,e,t)}function HU(e){return[lA(e),Od(e)]}var WU={recoilComponentGetRecoilValueCount_FOR_TESTING:$U,useRecoilInterface:MU,useRecoilState:VU,useRecoilStateLoadable:zU,useRecoilValue:sA,useRecoilValueLo
1610adable:ay,useResetRecoilState:UU,useSetRecoilState:Od,useSetUnvalidatedAtomValues:qU,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:aA,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:lA,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:HU};function KU(e,t){const n=new Map;for(const[r,i]of e)t(i,r)&&n.set(r,i);return n}var GU=KU;function ZU(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var YU=ZU;function XU(...e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].keys();let i;for(;!(i=r.next()).done;)t.set(i.value,e[n].get(i.value))}return t}var QU=XU;const{batchUpdates:JU}=Sd,{DEFAULT_VALUE:eV,getNode:uA,nodes:tV}=Gt,{useStoreRef:ly}=Cr,{AbstractRecoilValue:nV,setRecoilValueLoadable:rV}=tr,{SUSPENSE_TIMEOUT_MS:iV}=bo,{cloneSnapshot:bf}=Rd,{useCallback:kd,useEffect:cA,useRef:C_,useState:oV}=fe,{isSSR:P_}=Ed;function Cd(e){const t=ly();cA(()=>t.current.subscribeToTransactions(e).release,[e,t])}function N_(e){const t=e.atomValues.toMap(),n=yf(GU(t,(r,i)=>{const s=uA(i).persistence_UNSTABLE;return s!=null&&s.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return QU(e.nonvalidatedAtoms.toMap(),n)}function sV(e){Cd(kd(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const i=N_(r),o=N_(n),s=yf(tV,l=>{var u,c,f,d;return{persistence_UNSTABLE:{type:(u=(c=l.persistence_UNSTABLE)===null||c===void 0?void 0:c.type)!==null&&u!==void 0?u:"none",backButton:(f=(d=l.persistence_UNSTABLE)===null||d===void 0?void 0:d.backButton)!==null&&f!==void 0?f:!1}}}),a=YU(r.dirtyAtoms,l=>i.has(l)||o.has(l));e({atomValues:i,previousAtomValues:o,atomInfo:s,modifiedAtoms:a,transactionMetadata:{...r.transactionMetadata}})},[e]))}function aV(e){Cd(kd(t=>{const n=bf(t,"latest"),r=bf(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function lV(){const e=ly(),[t,n]=oV(()=>bf(e.current)),r=rA(t),i=C_(),o=C_();if(Cd(kd(a=>n(bf(a)),[])),cA(()=>{const a=t.retain();if(i.current&&!P_){var l;window.clearTimeout(i.current),i.current=null,(l=o.current)===null||l===void 0||l.call(o),o.current=null}return()=>{window.setTimeout(a,10)}},[t]),r!==t&&!P_){if(i.current){var s;window.clearTimeout(i.current),i.current=null,(s=o.current)===null||s===void 0||s.call(o),o.current=null}o.current=t.retain(),i.current=window.setTimeout(()=>{var a;i.current=null,(a=o.current)===null||a===void 0||a.call(o),o.current=null},iV)}return t}function fA(e,t){var n;const r=e.getState(),i=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,o=t.getStore_INTERNAL().getState().currentTree;JU(()=>{const s=new Set;for(const u of[i.atomValues.keys(),o.atomValues.keys()])for(const c of u){var a,l;((a=i.atomValues.get(c))===null||a===void 0?void 0:a.contents)!==((l=o.atomValues.get(c))===null||l===void 0?void 0:l.contents)&&uA(c).shouldRestoreFromSnapshots&&s.add(c)}s.forEach(u=>{rV(e,new nV(u),o.atomValues.has(u)?nt(o.atomValues.get(u)):eV)}),e.replaceState(u=>({...u,stateID:t.getID()}))})}function uV(){const e=ly();return kd(t=>fA(e.current,t),[e])}var dA={useRecoilSnapshot:lV,gotoSnapshot:fA,useGotoRecoilSnapshot:uV,useRecoilTransactionObserver:aV,useTransactionObservation_DEPRECATED:sV,useTransactionSubscription_DEPRECATED:Cd};const{peekNodeInfo:cV}=Ni,{useStoreRef:fV}=Cr;function dV(){const e=fV();return({key:t})=>cV(e.current,e.current.getState().currentTree,t)}var hV=dV;const{reactMode:pV}=iu,{RecoilRoot:mV,useStoreRef:vV}=Cr,{useMemo:gV}=fe;function yV(){pV().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode.  Please consider upgrading to recoil_sync_external_store mode.");const e=vV().current;return gV(()=>{function t({children:n}){return fe.createElement(mV,{store_INTERNAL:e},n)}return t},[e])}var _V=yV;const{loadableWithValue:bV}=ru,{initializeNode:wV}=Ni,{DEFAULT_VALUE:SV,getNode:EV}=Gt,{copyTreeState:TV,getRecoilValueAsLoadable:xV,invalidateDownstreams:RV,writeLoadableToTreeState:AV}=tr;function I_(e){return EV(e.key).nodeType==="atom"}class OV{constructor(t,n){Oe(this,"_store",void 0),Oe(this,"_treeState",void 0),Oe(this,"_changes",void 0),Oe(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!I_(r))throw Ne("Reading selectors within atomicUpdate is not supported");const i=xV(this._store,r,this._treeState);if(i.state==="hasValue")return i.contents;throw i.state==="hasError"?i.contents:Ne(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Oe(this,"set",(r,i)=>{if(!I_(r))throw Ne("Setting selectors within atomicUpdate is not supported");if(typeof i=="function"){const o=this.get(r);this._changes.set(r.key,i(o))}else wV(this._store,r.key,"set"),this._changes.set(r.key,i)}),Oe(this,"reset",r=>{this.set(r,SV)}),this._store=t,this._treeState=n,this._changes=new Map}
vendor: 4,623 bytes, line 1610
1610newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=TV(this._treeState);for(const[n,r]of this._changes)AV(t,n,bV(r));return RV(this._store,t),t}}function kV(e){return t=>{e.replaceState(n=>{const r=new OV(e,n);return t(r),r.newTreeState_INTERNAL()})}}var CV={atomicUpdater:kV},PV=CV.atomicUpdater,hA=Object.freeze({__proto__:null,atomicUpdater:PV});function NV(e,t){if(!e)throw new Error(t)}var IV=NV,Ea=IV;const{atomicUpdater:LV}=hA,{batchUpdates:DV}=Sd,{DEFAULT_VALUE:MV}=Gt,{useStoreRef:$V}=Cr,{refreshRecoilValue:jV,setRecoilValue:L_}=tr,{cloneSnapshot:BV}=Rd,{gotoSnapshot:FV}=dA,{useCallback:UV}=fe;class pA{}const VV=new pA;function mA(e,t,n,r){let i=VV,o;if(DV(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create.  Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Ne(a);const l=AR({...r??{},set:(c,f)=>L_(e,c,f),reset:c=>L_(e,c,MV),refresh:c=>jV(e,c),gotoSnapshot:c=>FV(e,c),transact_UNSTABLE:c=>LV(e)(c)},{snapshot:()=>{const c=BV(e);return o=c.retain(),c}}),u=t(l);if(typeof u!="function")throw Ne(a);i=u(...n)}),i instanceof pA&&Ea(!1),Xe(i))i=i.finally(()=>{var a;(a=o)===null||a===void 0||a()});else{var s;(s=o)===null||s===void 0||s()}return i}function zV(e,t){const n=$V();return UV((...r)=>mA(n.current,e,r),t!=null?[...t,n]:void 0)}var vA={recoilCallback:mA,useRecoilCallback:zV};const{useStoreRef:qV}=Cr,{refreshRecoilValue:HV}=tr,{useCallback:WV}=fe;function KV(e){const t=qV();return WV(()=>{const n=t.current;HV(n,e)},[e,t])}var GV=KV;const{atomicUpdater:ZV}=hA,{useStoreRef:YV}=Cr,{useMemo:XV}=fe;function QV(e,t){const n=YV();return XV(()=>(...r)=>{ZV(n.current)(o=>{e(o)(...r)})},t!=null?[...t,n]:void 0)}var JV=QV;class e8{constructor(t){Oe(this,"value",void 0),this.value=t}}var t8={WrappedValue:e8},n8=t8.WrappedValue,gA=Object.freeze({__proto__:null,WrappedValue:n8});const{isFastRefreshEnabled:r8}=iu;class D_ extends Error{}class i8{constructor(t){var n,r,i;Oe(this,"_name",void 0),Oe(this,"_numLeafs",void 0),Oe(this,"_root",void 0),Oe(this,"_onHit",void 0),Oe(this,"_onSet",void 0),Oe(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(i=t==null?void 0:t.mapNodeValue)!==null&&i!==void 0?i:o=>o}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const i=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(i)}}set(t,n,r){const i=()=>{var o,s,a,l;let u,c;for(const[b,m]of t){var f,d,h;const p=this._root;if((p==null?void 0:p.type)==="leaf")throw this.invalidCacheError();const y=u;if(u=y?y.branches.get(c):p,u=(f=u)!==null&&f!==void 0?f:{type:"branch",nodeKey:b,parent:y,branches:new Map,branchKey:c},u.type!=="branch"||u.nodeKey!==b)throw this.invalidCacheError();y==null||y.branches.set(c,u),r==null||(d=r.onNodeVisit)===null||d===void 0||d.call(r,u),c=this._mapNodeValue(m),this._root=(h=this._root)!==null&&h!==void 0?h:u}const g=u?(o=u)===null||o===void 0?void 0:o.branches.get(c):this._root;if(g!=null&&(g.type!=="leaf"||g.branchKey!==c))throw this.invalidCacheError();const v={type:"leaf",value:n,parent:u,branchKey:c};(s=u)===null||s===void 0||s.branches.set(c,v),this._root=(a=this._root)!==null&&a!==void 0?a:v,this._numLeafs++,this._onSet(v),r==null||(l=r.onNodeVisit)===null||l===void 0||l.call(r,v)};try{i()}catch(o){if(o instanceof D_)this.clear(),i();else throw o}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,i=t.branchKey;for(;r;){var o;if(r.branches.delete(i),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;i=(o=r)===null||o===void 0?void 0:o.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=r8()?"Possible Fast Refresh module reload detected.  This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cac
1610he values.  This happens when selectors do not return consistent values for the same input dependency values.  That may also be caused when using Fast Refresh to change a selector implementation.  Resetting cache.";throw Gg(t+(this._name!=null?` - ${this._name}`:"")),new D_}}var o8={TreeCache:i8},s8=o8.TreeCache,yA=Object.freeze({__proto__:null,TreeCache:s8});class a8{constructor(t){var n;Oe(this,"_maxSize",void 0),Oe(this,"_size",void 0),Oe(this,"_head",void 0),Oe(this,"_tail",void 0),Oe(this,"_map",void 0),Oe(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const o=this.head(),s={key:t,right:o,left:null,value:n};o?o.left=s:this._tail=s,this._map.set(r,s),this._head=s,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=nt(this._map.get(n)),i=r.right,o=r.left;i&&(i.left=r.left),o&&(o.right=r.right),r===this.head()&&(this._head=i),r===this.tail()&&(this._tail=o),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var l8={LRUCache:a8},u8=l8.LRUCache,_A=Object.freeze({__proto__:null,LRUCache:u8});const{LRUCache:c8}=_A,{TreeCache:f8}=yA;function d8({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new c8({maxSize:t}),i=new f8({name:e,mapNodeValue:n,onHit:o=>{r.set(o,!0)},onSet:o=>{const s=r.tail();r.set(o,!0),s&&i.size()>t&&i.delete(s.key)}});return i}var M_=d8;function En(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Ne("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(Xe(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((i,o)=>En(i,t,o.toString()))}]`;if(typeof e.toJSON=="function")return En(e.toJSON(n),t,n);if(e instanceof Map){const i={};for(const[o,s]of e)i[typeof o=="string"?o:En(o,t)]=s;return En(i,t,n)}return e instanceof Set?En(Array.from(e).sort((i,o)=>En(i,t).localeCompare(En(o,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?En(Array.from(e),t,n):`{${Object.keys(e).filter(i=>e[i]!==void 0).sort().map(i=>`${En(i,t)}:${En(e[i],t,i)}`).join(",")}}`}function h8(e,t={allowFunctions:!1}){return En(e,t)}var Pd=h8;const{TreeCache:p8}=yA,Fu={equality:"reference",eviction:"keep-all",maxSize:1/0};function m8({equality:e=Fu.equality,eviction:t=Fu.eviction,maxSize:n=Fu.maxSize}=Fu,r){const i=v8(e);return g8(t,n,i,r)}function v8(e){switch(e){case"reference":return t=>t;case"value":return t=>Pd(t)}throw Ne(`Unrecognized equality policy ${e}`)}function g8(e,t,n,r){switch(e){case"keep-all":return new p8({name:r,mapNodeValue:n});case"lru":return M_({name:r,maxSize:nt(t),mapNodeValue:n});case"most-recent":return M_({name:r,maxSize:1,mapNodeValue:n})}throw Ne(`Unrecognized eviction policy ${e}`)}var y8=m8;function _8(e){return()=>null}var b8={startPerfBlock:_8};const{isLoadable:w8,loadableWithError:Uu,loadableWithPromise:S8,loadableWithValue:Yh}=ru,{WrappedValue:bA}=gA,{getNodeLoadable:Vu,peekNodeLoadable:E8,setNodeValue:T8}=Ni,{saveDepsToStore:x8}=ou,{DEFAULT_VALUE:R8,getConfigDeletionHandler:A8,getNode:O8,registerNode:$_}=Gt,{isRecoilValue:k8}=Ss,{markRecoilValueModified:j_}=tr,{retainedByOptionWithDefault:C8}=bo,{recoilCallback:P8}=vA,{startPerfBlock:N8}=b8;class wA{}
vendor: 2,632 bytes, line 1610
1610const la=new wA,ua=[],zu=new Map,I8=(()=>{let e=0;return()=>e++})();function SA(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:i}=e,o=e.set!=null?e.set:void 0,s=new Set,a=y8(i??{equality:"reference",eviction:"keep-all"},n),l=C8(e.retainedBy_UNSTABLE),u=new Map;let c=0;function f(){return!ze("recoil_memory_managament_2020")||c>0}function d(A){return A.getState().knownSelectors.add(n),c++,()=>{c--}}function h(){return A8(n)!==void 0&&!f()}function g(A,D,B,U,I){z(D,U,I),v(A,B)}function v(A,D){M(A,D)&&N(A),m(D,!0)}function b(A,D){M(A,D)&&(nt(T(A)).stateVersions.clear(),m(D,!1))}function m(A,D){const B=zu.get(A);if(B!=null){for(const U of B)j_(U,nt(t));D&&zu.delete(A)}}function p(A,D){let B=zu.get(D);B==null&&zu.set(D,B=new Set),B.add(A)}function y(A,D,B,U,I,F){return D.then(W=>{if(!f())throw N(A),la;const q=Yh(W);return g(A,B,I,q,U),W}).catch(W=>{if(!f())throw N(A),la;if(Xe(W))return _(A,W,B,U,I,F);const q=Uu(W);throw g(A,B,I,q,U),W})}function _(A,D,B,U,I,F){return D.then(W=>{if(!f())throw N(A),la;F.loadingDepKey!=null&&F.loadingDepPromise===D?B.atomValues.set(F.loadingDepKey,Yh(W)):A.getState().knownSelectors.forEach(se=>{B.atomValues.delete(se)});const q=E(A,B);if(q&&q.state!=="loading"){if((M(A,I)||T(A)==null)&&v(A,I),q.state==="hasValue")return q.contents;throw q.contents}if(!M(A,I)){const se=C(A,B);if(se!=null)return se.loadingLoadable.contents}const[Y,ie]=x(A,B,I);if(Y.state!=="loading"&&g(A,B,I,Y,ie),Y.state==="hasError")throw Y.contents;return Y.contents}).catch(W=>{if(W instanceof wA)throw la;if(!f())throw N(A),la;const q=Uu(W);throw g(A,B,I,q,U),W})}function w(A,D,B,U){var I,F,W,q;if(M(A,U)||D.version===((I=A.getState())===null||I===void 0||(F=I.currentTree)===null||F===void 0?void 0:F.version)||D.version===((W=A.getState())===null||W===void 0||(q=W.nextTree)===null||q===void 0?void 0:q.version)){var Y,ie,se;x8(n,B,A,(Y=(ie=A.getState())===null||ie===void 0||(se=ie.nextTree)===null||se===void 0?void 0:se.version)!==null&&Y!==void 0?Y:A.getState().currentTree.version)}for(const he of B)s.add(he)}function x(A,D,B){const U=N8(n);let I=!0,F=!0;const W=()=>{U(),F=!1};let q,Y=!1,ie;const se={loadingDepKey:null,loadingDepPromise:null},he=new Map;function ye({key:Be}){const Me=Vu(A,D,Be);switch(he.set(Be,Me),I||(w(A,D,new Set(he.keys()),B),b(A,B)),Me.state){case"hasValue":return Me.contents;case"hasError":throw Me.contents;case"loading":throw se.loadingDepKey=Be,se.loadingDepPromise=Me.contents,Me.contents}throw Ne("Invalid Loadable state")}const xe=Be=>(...Me)=>{if(F)throw Ne("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated.  It c
1610an be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Ea(!1),P8(A,Be,Me,{node:t})};try{q=r({get:ye,getCallback:xe}),q=k8(q)?ye(q):q,w8(q)&&(q.state==="hasError"&&(Y=!0),q=q.contents),Xe(q)?q=y(A,q,D,he,B,se).finally(W):W(),q=q instanceof bA?q.value:q}catch(Be){q=Be,Xe(q)?q=_(A,q,D,he,B,se).finally(W):(Y=!0,W())}return Y?ie=Uu(q):Xe(q)?ie=S8(q):ie=Yh(q),I=!1,O(A,B,he),w(A,D,new Set(he.keys()),B),[ie,he]}function E(A,D){let B=D.atomValues.get(n);if(B!=null)return B;const U=new Set;try{B=a.get(F=>(typeof F!="string"&&Ea(!1),Vu(A,D,F).contents),{onNodeVisit:F=>{F.type==="branch"&&F.nodeKey!==n&&U.add(F.nodeKey)}})}catch(F){throw Ne(`Problem with cache lookup for selector "${n}": ${F.message}`)}if(B){var I;D.atomValues.set(n,B),w(A,D,U,(I=T(A))===null||I===void 0?void 0:I.executionID)}return B}function S(A,D){const B=E(A,D);if(B!=null)return N(A),B;const U=C(A,D);if(U!=null){var I;return((I=U.loadingLoadable)===null||I===void 0?void 0:I.state)==="loading"&&p(A,U.executionID),U.loadingLoadable}const F=I8(),[W,q]=x(A,D,F);return W.state==="loading"?(R(A,F,W,q,D),p(A,F)):(N(A),z(D,W,q)),W}function C(A,D){const B=qR([u.has(A)?[nt(u.get(A))]:[],yd(Jg(u,([I])=>I!==A),([,I])=>I)]);function U(I){for(const[F,W]of I)if(!Vu(A,D,F).is(W))return!0;return!1}for(const I of B){if(I.stateVersions.get(D.version)||!U(I.depValuesDiscoveredSoFarDuringAsyncWork))return I.stateVersions.set(D.version,!0),I;I.stateVersions.set(D.version,!1)}}function T(A){return u.get(A)}function R(A,D,B,U,I){u.set(A,{depValuesDiscoveredSoFarDuringAsyncWork:U,executionID:D,loadingLoadable:B,stateVersions:new Map([[I.version,!0]])})}function O(A,D,B){if(M(A,D)){const U=T(A);U!=null&&(U.depValuesDiscoveredSoFarDuringAsyncWork=B)}}function N(A){u.delete(A)}function M(A,D){var B;return D===((B=T(A))===null||B===void 0?void 0:B.executionID)}function $(A){return Array.from(A.entries()).map(([D,B])=>[D,B.contents])}function z(A,D,B){A.atomValues.set(n,D);try{a.set($(B),D)}catch(U){throw Ne(`Problem with setting cache for selector "${n}": ${U.message}`)}}function V(A){if(ua.includes(n)){const D=`Recoil selector has circular dependencies: ${ua.slice(ua.indexOf(n)).join(" → ")}`;return Uu(Ne(D))}ua.push(n);try{return A()}finally{ua.pop()}}function H(A,D){const B=D.atomValues.get(n);return B??a.get(U=>{var I;return typeof U!="string"&&Ea(!1),(I=E8(A,D,U))===null||I===void 0?void 0:I.contents})}function j(A,D){return V(()=>S(A,D))}function L(A){A.atomValues.delete(n)}function k(A,D){t==null&&Ea(!1);for(const U of s){var B;const I=O8(U);(B=I.clearCache)===null||B===void 0||B.call(I,A,D)}s.clear(),L(D),a.clear(),j_(A,t)}return o!=null?t=$_({key:n,nodeType:"selector",peek:H,get:j,set:(D,B,U)=>{let I=!1;const F=new Map;function W({key:se}){if(I)throw Ne("Recoil: Async selector sets are not currently supported.");const he=Vu(D,B,se);if(he.state==="hasValue")return he.contents;if(he.state==="loading"){const ye=`Getting value of asynchronous atom or selector "${se}" in a pending state while setting selector "${n}" is not yet supported.`;throw Ne(ye)}else throw he.contents}function q(se,he){if(I)throw Ne("Recoil: Async selector sets are not currently supported.");const ye=typeof he=="function"?he(W(se)):he;T8(D,B,se.key,ye).forEach((Be,Me)=>F.set(Me,Be))}function Y(se){q(se,R8)}const ie=o({set:q,get:W,reset:Y},U);if(ie!==void 0)throw Xe(ie)?Ne("Recoil: Async selector sets are not currently supported."):Ne("Recoil: selector set should be a void function.");return I=!0,F},init:d,invalidate:L,clearCache:k,shouldDeleteConfigOnRelease:h,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l}):t=$_({key:n,nodeType:"selector",peek:H,get:j,init:d,invalidate:L,clearCache:k,shouldDeleteConfigOnRelease:h,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}SA.value=e=>new bA(e);var xs=SA;const{isLoadable:L8,loadableWithError:Xh,loadableWithPromise:Qh,loadableWithValue:Ao}=ru,{WrappedValue:EA}=gA,{peekNodeInfo:D8}
vendor: 10,132 bytes, line 1610
1610=Ni,{DEFAULT_VALUE:Vi,DefaultValue:Fr,getConfigDeletionHandler:TA,registerNode:M8,setConfigDeletionHandler:$8}=Gt,{isRecoilValue:j8}=Ss,{getRecoilValueAsLoadable:B8,markRecoilValueModified:F8,setRecoilValue:B_,setRecoilValueLoadable:U8}=tr,{retainedByOptionWithDefault:V8}=bo,ca=e=>e instanceof EA?e.value:e;function z8(e){const{key:t,persistence_UNSTABLE:n}=e,r=V8(e.retainedBy_UNSTABLE);let i=0;function o(p){return Qh(p.then(y=>(s=Ao(y),y)).catch(y=>{throw s=Xh(y),y}))}let s=Xe(e.default)?o(e.default):L8(e.default)?e.default.state==="loading"?o(e.default.contents):e.default:Ao(ca(e.default));s.contents;let a;const l=new Map;function u(p){return p}function c(p,y){const _=y.then(w=>{var x,E;return((E=((x=p.getState().nextTree)!==null&&x!==void 0?x:p.getState().currentTree).atomValues.get(t))===null||E===void 0?void 0:E.contents)===_&&B_(p,m,w),w}).catch(w=>{var x,E;throw((E=((x=p.getState().nextTree)!==null&&x!==void 0?x:p.getState().currentTree).atomValues.get(t))===null||E===void 0?void 0:E.contents)===_&&U8(p,m,Xh(w)),w});return _}function f(p,y,_){var w;i++;const x=()=>{var T;i--,(T=l.get(p))===null||T===void 0||T.forEach(R=>R()),l.delete(p)};if(p.getState().knownAtoms.add(t),s.state==="loading"){const T=()=>{var R;((R=p.getState().nextTree)!==null&&R!==void 0?R:p.getState().currentTree).atomValues.has(t)||F8(p,m)};s.contents.finally(T)}const E=(w=e.effects)!==null&&w!==void 0?w:e.effects_UNSTABLE;if(E!=null){let T=function(L){if(M&&L.key===t){const k=N;return k instanceof Fr?d(p,y):Xe(k)?Qh(k.then(A=>A instanceof Fr?s.toPromise():A)):Ao(k)}return B8(p,L)},R=function(L){return T(L).toPromise()},O=function(L){var k;const A=D8(p,(k=p.getState().nextTree)!==null&&k!==void 0?k:p.getState().currentTree,L.key);return M&&L.key===t&&!(N instanceof Fr)?{...A,isSet:!0,loadable:T(L)}:A},N=Vi,M=!0,$=!1,z=null;const V=L=>k=>{if(M){const A=T(m),D=A.state==="hasValue"?A.contents:Vi;N=typeof k=="function"?k(D):k,Xe(N)&&(N=N.then(B=>(z={effect:L,value:B},B)))}else{if(Xe(k))throw Ne("Setting atoms to async values is not implemented.");typeof k!="function"&&(z={effect:L,value:ca(k)}),B_(p,m,typeof k=="function"?A=>{const D=ca(k(A));return z={effect:L,value:D},D}:ca(k))}},H=L=>()=>V(L)(Vi),j=L=>k=>{var A;const{release:D}=p.subscribeToTransactions(B=>{var U;let{currentTree:I,previousTree:F}=B.getState();F||(F=I);const W=(U=I.atomValues.get(t))!==null&&U!==void 0?U:s;if(W.state==="hasValue"){var q,Y,ie,se;const he=W.contents,ye=(q=F.atomValues.get(t))!==null&&q!==void 0?q:s,xe=ye.state==="hasValue"?ye.contents:Vi;((Y=z)===null||Y===void 0?void 0:Y.effect)!==L||((ie=z)===null||ie===void 0?void 0:ie.value)!==he?k(he,xe,!I.atomValues.has(t)):((se=z)===null||se===void 0?void 0:se.effect)===L&&(z=null)}},t);l.set(p,[...(A=l.get(p))!==null&&A!==void 0?A:[],D])};for(const L of E)try{const k=L({node:m,storeID:p.storeID,parentStoreID_UNSTABLE:p.parentStoreID,trigger:_,setSelf:V(L),resetSelf:H(L),onSet:j(L),getPromise:R,getLoadable:T,getInfo_UNSTABLE:O});if(k!=null){var S;l.set(p,[...(S=l.get(p))!==null&&S!==void 0?S:[],k])}}catch(k){N=k,$=!0}if(M=!1,!(N instanceof Fr)){var C;const L=$?Xh(N):Xe(N)?Qh(c(p,N)):Ao(ca(N));L.contents,y.atomValues.set(t,L),(C=p.getState().nextTree)===null||C===void 0||C.atomValues.set(t,L)}}return x}function d(p,y){var _,w;return(_=(w=y.atomValues.get(t))!==null&&w!==void 0?w:a)!==null&&_!==void 0?_:s}function h(p,y){if(y.atomValues.has(t))return nt(y.atomValues.get(t));if(y.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(n==null)return s;const _=y.nonvalidatedAtoms.get(t),w=n.validator(_,Vi);return a=w instanceof Fr?s:Ao(w),a}else return s}function g(){a=void 0}function v(p,y,_){if(y.atomValues.has(t)){const w=nt(y.atomValues.get(t));if(w.state==="hasValue"&&_===w.contents)return new Map}else if(!y.nonvalidatedAtoms.has(t)&&_ instanceof Fr)return new Map;return a=void 0,new Map().set(t,Ao(_))}function b(){return TA(t)!==void 0&&i<=0}const m=M8({key:t,nodeType:"atom",peek:d,get:h,set:v,init:f,invalidate:g,shouldDeleteConfigOnRelease:b,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return m}function uy(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return j8(n)?q8({...t,default:n}):z8({...t,default:n})}function q8(e){const t=uy({...e,default:Vi,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof Fr?r:nt(e.persistence_UNSTABLE).validator(r,Vi)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=xs({key:`${e.key}__withFallback`,get:({get:r})=>{const i=r(t);return i instanceof Fr?e.default:i},set:({set:r},i)=>r(t,i),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return $8(n.key,TA(e.key)),n}uy.value=e=>new EA(e);var xA=uy;let H8=class{constructor(t){var n;Oe(this,"_map",void 0),Oe(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}};var W8={MapCache:H8},K8=W8.MapCache,G8=Object.freeze({__proto__:null,MapCache:K8});const{LRUCache:F_}=_A,{MapCache:Z8}=G8,qu={equality:"reference",eviction:"none",maxSize:1/0};function Y8({equality:e=qu.equality,eviction:t=qu.eviction,maxSize:n=qu.maxSize}=qu){const r=X8(e);return Q8(t,n,r)}function X8(e){switch(e){case"reference":return t=>t;case"value":return t=>Pd(t)}throw Ne(`Unrecognized equality policy ${e}`)}function Q8(e,t,n){switch(e){case"keep-all":return new Z8({mapKey:n});case"lru":return new F_({mapKey:n,maxSize:nt(t)});case"most-recent":return new F_({mapKey:n,maxSize:1})}throw Ne(`Unrecognized eviction policy ${e}`)}var RA=Y8;const{setConfigDeletionHandler:J8}=Gt;function e9(e){var t,n;const r=RA({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return i=>{var o,s;const a=r.get(i);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:l,...u}=e,c="default"in e?e.default:new Promise(()=>{}),f=xA({...u,key:`${e.key}__${(o=Pd(i))!==null&&o!==void 0?o:"void"}`,default:typeof c=="function"?c(i):c,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(i):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(i):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(i):(s=e.effects)!==null&&s!==void 0?s:e.effects_UNSTABLE});return r.set(i,f),J8(f.key,()=>{r.delete(i)}),f}}var t9=e9;const{setConfigDeletionHandler:n9}=Gt;let r9=0;function i9(e){var t,n;const r=RA({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return i=>{var o;let s;try{s=r.get(i)}catch(d){throw Ne(`Problem with cache lookup for selector ${e.key}: ${d.message}`)}if(s!=null)return s;const a=`${e.key}__selectorFamily/${(o=Pd(i,{allowFunctions:!0}))!==null&&o!==void 0?o:"void"}/${r9++}`,l=d=>e.get(i)(d),u=e.cachePolicy_UNSTABLE,c=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(i):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const d=e.set;f=xs({key:a,get:l,set:(g,v)=>d(i)(g,v),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c})}else f=xs({key:a,get:l,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:c});return r.set(i,f),n9(f.key,()=>{r.delete(i)}),f}}var Ii=i9;const o9=Ii({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function s9(e){return o9(e)}var a9=s9;const l9=Ii({key:"__error",get:e=>()=>{throw Ne(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function u9(e){return l9(e)}var c9=u9;function f9(e){return e}var d9=f9;const{loadableWithError:AA,loadableWithPromise:OA,loadableWithValue:kA}=ru;function Nd(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[i,o]of t.entries())try{n[i]=e(o)}catch(s){r[i]=s}return[n,r]}function h9(e){return e!=null&&!Xe(e)}function Id(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function Xm(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,i)=>({...n,[r]:t[i]}),{})}function as(e,t,n){const r=n.map((i,o)=>i==null?kA(t[o]):Xe(i)?OA(i):AA(i));return Xm(e,r)}function p9(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const m9=Ii({key:"__waitForNone",get:e=>({get:t})=>{const n=Id(e),[r,i]=Nd(t,n);return as(e,r,i)},dangerouslyAllowMutability:!0}),v9=Ii({key:"__waitForAny",get:e=>({get:t})=>{const n=Id(e),[r,i]=Nd(t,n);return i.some(o=>!Xe(o))?as(e,r,i):new Promise(o=>{for(const[s,a]of i.entries())Xe(a)&&a.then(l=>{r[s]=l,i[s]=void 0,o(as(e,r,i))}).catch(l=>{i[s]=l,o(as(e,r,i))})})},dangerouslyAllowMutability:!0}),g9=Ii({key:"__waitForAll",get:e=>({get:t})=>{const n=Id(e),[r,i]=Nd(t,n);if(i.every(s=>s==null))return Xm(e,r);const o=i.find(h9);if(o!=null)throw o;return Promise.all(i).then(s=>Xm(e,p9(r,s)))},dangerouslyAllowMutability:!0}),y9=Ii({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Id(e),[r,i]=Nd(t,n);return i.every(o=>!Xe(o))?as(e,r,i):Promise.all(i.map((o,s)=>Xe(o)?o.then(a=>{r[s]=a,i[s]=void 0}).catch(a=>{r[s]=void 0,i[s]=a}):null)).then(()=>as(e,r,i))},dangerouslyAllowMutability:!0}),_9=Ii({key:"__noWait",get:e=>({get:t})=>{try{return xs.value(kA(t(e)))}catch(n){return xs.value(Xe(n)?OA(n):AA(n))}},dangerouslyAllowMutability:!0});var b9={waitForNone:m9,waitForAny:v9,waitForAll:g9,waitForAllSettled:y9,noWait:_9};const{RecoilLoadable:w9}=ru,{DefaultValue:S9}=Gt,{RecoilRoot:E9,useRecoilStoreID:T9}=Cr,{isRecoilValue:x9}=Ss,{retentionZone:R9}=bd,{freshSnapshot:A9}=Rd,{useRecoilState:O9,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:k9,useRecoilStateLoadable:C9,useRecoilValue:P9,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:N9,useRecoilValueLo
1610adable:I9,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:L9,useResetRecoilState:D9,useSetRecoilState:M9}=WU,{useGotoRecoilSnapshot:$9,useRecoilSnapshot:j9,useRecoilTransactionObserver:B9}=dA,{useRecoilCallback:F9}=vA,{noWait:U9,waitForAll:V9,waitForAllSettled:z9,waitForAny:q9,waitForNone:H9}=b9;var Ld={DefaultValue:S9,isRecoilValue:x9,RecoilLoadable:w9,RecoilEnv:Fs,RecoilRoot:E9,useRecoilStoreID:T9,useRecoilBridgeAcrossReactRoots_UNSTABLE:_V,atom:xA,selector:xs,atomFamily:t9,selectorFamily:Ii,constSelector:a9,errorSelector:c9,readOnlySelector:d9,noWait:U9,waitForNone:H9,waitForAny:q9,waitForAll:V9,waitForAllSettled:z9,useRecoilValue:P9,useRecoilValueLoadable:I9,useRecoilState:O9,useRecoilStateLoadable:C9,useSetRecoilState:M9,useResetRecoilState:D9,useGetRecoilValueInfo_UNSTABLE:hV,useRecoilRefresher_UNSTABLE:GV,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:L9,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:N9,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:k9,useRecoilCallback:F9,useRecoilTransaction_UNSTABLE:JV,useGotoRecoilSnapshot:$9,useRecoilSnapshot:j9,useRecoilTransactionObserver_UNSTABLE:B9,snapshot_UNSTABLE:A9,useRetain:iy,retentionZone:R9},W9=Ld.RecoilRoot,K9=Ld.atom,G9=Ld.useRecoilValue,Z9=Ld.useSetRecoilState;const CA=K9({key:"responseData",default:null});et.object({age:et.number().int().min(12).max(100),height:et.number().int().max(230),weight:et.number().int().max(200),experience:et.string().min(1),schedule:et.string().min(1),hours:et.string().min(1),goal:et.string().min(1),diet:et.string().min(1),gender:et.string().min(1)});function Y9(){return Z.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"w-7 h-7 animate-spin mx-auto",viewBox:"0 0 16 16",children:[Z.jsx("path",{d:"M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41zm-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9z"}),Z.jsx("path",{fillRule:"evenodd",d:"M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5.002 5.002 0 0 0 8 3zM3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9H3.1z"})]})}const fa=({label:e,value:t,min:n,max:r,onChange:i,title:o,units:s})=>{const a=()=>{i(Math.min(t+1,r))},l=()=>{i(Math.max(t-1,n))},u=c=>{i(parseInt(c.target.value))};return Z.jsxs("div",{className:"max-w-3xl mx-auto py-3 px-6 bg-white rounded-lg shadow-xl",children:[Z.jsx("h2",{className:"text-2xl font-bold mb-4 flex items-center",children:e}),Z.jsxs("div",{className:"flex items-center justify-between mb-4",children:[Z.jsx("button",{type:"button",onClick:l,className:"w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center text-gray-600 hover:bg-gray-300 focus:outline-none",children:"-"}),Z.jsx("span",{className:"text-4xl font-bold",children:t}),Z.jsx("button",{type:"button",onClick:a,className:"w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center text-gray-600 hover:bg-gray-300 focus:outline-none",children:"+"})]}),Z.jsxs("div",{className:"relative",children:[Z.jsx("input",{type:"range",min:n,max:r,value:t,onChange:u,className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer"}),Z.jsxs("div",{className:"text-center text-sm text-gray-600",children:[s," ",o]})]})]})},Hu=({goal:e,setGoal:t,goals:n,label:r})=>Z.jsxs("div",{className:"max-w-3xl mx-auto p-6 bg-white rounded-lg shadow-xl",children:[Z.jsx("h3",{className:"text-xl font-semibold mb-4",children:r}),Z.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:n.map(i=>Z.jsxs("button",{type:"button",onClick:()=>t(i.id),className:`flex flex-col items-center justify-between p-4 border rounded-lg transition-colors duration-200 ease-in-out ${e===i.id?"bg-blue-100 border-blue-500":"bg-gray-50 border-gray-300"}`,children:[Z.jsxs("div",{className:"text-center",children:[Z.jsx("h4",{className:"text-lg font-bold mb-2",children:i.title}),Z.jsx("span",{className:"text-3xl mb-2",children:i.icon})]}),Z.jsx("p",{className:"text-sm text-gray-500 mt-2",children:i.description})]},i.id))})]}),X9=et.object({age:et.number().int().min(15).max(100),height:et.number().int().max(230),weight:et.number().int().max(200),experience:et.string().min(1),schedule:et.number().min(1).max(7),hours:et.number().min(1).max(6),goal:et.string().min(1),diet:et.string().min(1),gender:et.string().min(1)}),Q9=()=>{const e=[{id:"cutting",title:"Cut Down",icon:"🔥",description:"Burn fats and gain muscle"},{id:"healthy",title:"Cardiovascular",icon:"❤️",description:"Better heart health and blood vessels"},{id:"bulk",title:"Bulk Up",icon:"💪",description:"Gain those muscles"}],t=[{id:"beginner",title:"Beginner",icon:"😅",description:"About to start gym journey"},{id:"intermediate",title:"Intermediate",icon:"😊",description:"Been to gym for 1-2 years"},{id:"advance",title:"Advance",icon:"😎",description:"Have plenty experience"}],n=[{id:"male",title:"Male",icon:"🚹",description:""},{id:"female",title:"Female",icon:"🚺",description:""},{id:"LGBTQ individual",title:"Others",icon:"💭",description:""}],r=[{id:"vegetarian",title:"Vegetarian",icon:"🍏🫑",description:"I love vegg
1610ies!"},{id:"non vegetarian",title:"Non Vegetarian",icon:"🥩🍗",description:"Who loves veggies?😂"},{id:"vegetarian + egg",title:"Eggs",icon:"🥚🍳",description:"I prefer eggs and veggies!"}],[i,o]=P.useState(null),[s,a]=P.useState(null),[l,u]=P.useState(null),[c,f]=P.useState(null),[d,h]=P.useState(22),[g,v]=P.useState(140),[b,m]=P.useState(53),[p,y]=P.useState(2),[_,w]=P.useState(1),x=L=>{a(L)},E=L=>{u(L)},S=L=>{o(L)},C=L=>{h(L)},T=L=>{v(L)},R=L=>{m(L)},O=L=>{f(L)},N=L=>{y(L)},M=L=>{w(L)},[$,z]=P.useState(!1),V=Z9(CA),H=Vl(),j=async L=>{L.preventDefault(),z(!0);try{const k={age:d,height:g,weight:b,gender:i,experience:l,schedule:p,hours:_,goal:s,diet:c};X9.parse(k);const A=await pt.post("https://muscle-up.akshitgaur2003.workers.dev/gen",k,{headers:{"Content-Type":"application/json"}});V(A.data),H("/advice")}catch(k){He.error(k.errors[0].message)}finally{z(!1)}};return Z.jsxs(Z.Fragment,{children:[Z.jsx(Ug,{}),Z.jsx("div",{className:"flex justify-center  py-6 px-5 md:px-10 lg:px-20",children:Z.jsxs("form",{onSubmit:j,className:" w-full space-y-10",children:[Z.jsx(Hu,{goal:s,setGoal:x,goals:e,label:"Fitness Goal 🏃"}),Z.jsx(fa,{label:"What is your current age ? ",value:d,min:15,max:100,onChange:C,units:"years",title:"old"}),Z.jsx(Hu,{goal:l,setGoal:E,goals:t,label:"Tell about your experience"}),Z.jsx(Hu,{goal:i,setGoal:S,goals:n,label:"What is your gender? "}),Z.jsx(fa,{label:"What is your height? 📏",value:g,min:100,max:230,onChange:T,units:"cms",title:""}),Z.jsx(fa,{label:"What is your current weight? ⚖️",value:b,min:30,max:200,onChange:R,units:"kilograms",title:"weight"}),Z.jsx(Hu,{goal:c,setGoal:O,goals:r,label:"What diet will you follow? "}),Z.jsx(fa,{label:"How many days will you prefer? ⚖️",value:p,min:1,max:7,onChange:N,units:"days",title:""}),Z.jsx(fa,{label:"How many hours will you prefer? ⚖️",value:_,min:1,max:6,onChange:M,units:"hours",title:""}),Z.jsx("div",{className:"flex justify-center",children:Z.jsx("button",{type:"submit",className:"py-2 px-6 bg-indigo-600 hover:bg-indigo-700 text-white font-semibold rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:$?Z.jsx(Y9,{}):"Submit"})})]})})]})},J9=()=>Z.jsx(Z.Fragment,{children:Z.jsx(Q9,{})}),e7=()=>{const[e,t]=P.useState(""),[n,r]=P.useState(""),[i,o]=P.useState(""),[s,a]=P.useState(""),l=async c=>{c.preventDefault();const f={email:e,password:n,confirmPassword:i};try{u(f)}catch(d){a(d.message);return}try{await vL(lo,e,n),a("")}catch{a("Failed to create account. Please try again later.")}},u=c=>{et.object({email:et.string().email("Invalid email format").min(5),password:et.string().min(6,"Password must be at least 6 characters"),confirmPassword:et.string().min(6,"Password must be at least 6 characters").refine(d=>d===n,"Passwords do not match")}).parse(c)};return Z.jsx("div",{className:"min-h-screen flex items-center justify-center",children:Z.jsxs("div",{className:"bg-white p-8 rounded shadow-2xl w-full max-w-md",children:[Z.jsx("h2",{className:"text-2xl mb-4",children:"Sign Up"}),Z.jsxs("form",{onSubmit:l,className:"space-y-4",children:[Z.jsxs("div",{children:[Z.jsx("label",{className:"block mb-1",children:"Email"}),Z.jsx("input",{type:"email",value:e,onChange:c=>t(c.target.value),required:!0,className:"w-full p-2 border border-gray-300 rounded"})]}),Z.jsxs("div",{children:[Z.jsx("label",{className:"block mb-1",children:"Password"}),Z.jsx("input",{type:"password",value:n,onChange:c=>r(c.target.value),required:!0,className:"w-full p-2 border border-gray-300 rounded"})]}),Z.jsxs("div",{children:[Z.jsx("label",{className:"block mb-1",children:"Confirm Password"}),Z.jsx("input",{type:"password",value:i,onChange:c=>o(c.target.value),required:!0,className:"w-full p-2 border border-gray-300 rounded"})]}),s&&Z.jsx("p",{className:"text-red-500",children:s}),Z.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white py-2 rounded",children:"Sign Up"})]}),Z.jsxs("p",{className:"mt-4",children:["Already have an account?"," ",Z.jsx(Gc,{to:"/login",className:"text-blue-500",children:"Login"})]})]})})};function t7(){this.__data__=[],this.size=0}var n7=t7;function r7(e,t){return e===t||e!==e&&t!==t}var PA=r7,i7=PA;function o7(e,t){for(var n=e.length;n--;)if(i7(e[n][0],t))return n;return-1}var Dd=o7,s7=Dd,a7=Array.prototype,l7=a7.splice;function u7(e){var t=this.__data__,n=s7(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():l7.call(t,n,1),--this.size,!0}var c7=u7,f7=Dd;function d7(e){var t=this.__data__,n=f7(t,e);return n<0?void 0:t[n][1]}var h7=d7,p7=Dd;function m7(e){return p7(this.__data__,e)>-1}var v7=m7,g7=Dd;function y7(e,t){var n=this.__data__,r=g7(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var _7=y7,b7=n7,w7=c7,S7=h7,E7=v7,T7=_7;function Vs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vs.prototype.clear=b7;Vs.prototype.delete=w7;Vs.prototype.get=S7;Vs.prototype.has=E7;Vs.prototype.set=T7;var Md=Vs,x7=Md;function R7(){this.__data__=new x7,this.size=0}var A7=R7;function O7(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var k7=O7;function C7(e){return this.__data__.get(e)}var P7=C7;function N7(e){return this.__data__.has(e)}var I7=N7,L7=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,NA=L7,D7=NA,M7=typeof self=="object"&&self&&self.Object===Object&&self,$7=D7||M7||Function("return this")(),Pr=$7,j7=Pr,B7=j7.Symbol,cy=B7,U_=cy,IA
vendor: 111,115 bytes, lines 1610-1640
1610=Object.prototype,F7=IA.hasOwnProperty,U7=IA.toString,da=U_?U_.toStringTag:void 0;function V7(e){var t=F7.call(e,da),n=e[da];try{e[da]=void 0;var r=!0}catch{}var i=U7.call(e);return r&&(t?e[da]=n:delete e[da]),i}var z7=V7,q7=Object.prototype,H7=q7.toString;function W7(e){return H7.call(e)}var K7=W7,V_=cy,G7=z7,Z7=K7,Y7="[object Null]",X7="[object Undefined]",z_=V_?V_.toStringTag:void 0;function Q7(e){return e==null?e===void 0?X7:Y7:z_&&z_ in Object(e)?G7(e):Z7(e)}var $d=Q7;function J7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var LA=J7,ez=$d,tz=LA,nz="[object AsyncFunction]",rz="[object Function]",iz="[object GeneratorFunction]",oz="[object Proxy]";function sz(e){if(!tz(e))return!1;var t=ez(e);return t==rz||t==iz||t==nz||t==oz}var DA=sz,az=Pr,lz=az["__core-js_shared__"],uz=lz,Jh=uz,q_=function(){var e=/[^.]+$/.exec(Jh&&Jh.keys&&Jh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function cz(e){return!!q_&&q_ in e}var fz=cz,dz=Function.prototype,hz=dz.toString;function pz(e){if(e!=null){try{return hz.call(e)}catch{}try{return e+""}catch{}}return""}var MA=pz,mz=DA,vz=fz,gz=LA,yz=MA,_z=/[\\^$.*+?()[\]{}|]/g,bz=/^\[object .+?Constructor\]$/,wz=Function.prototype,Sz=Object.prototype,Ez=wz.toString,Tz=Sz.hasOwnProperty,xz=RegExp("^"+Ez.call(Tz).replace(_z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rz(e){if(!gz(e)||vz(e))return!1;var t=mz(e)?xz:bz;return t.test(yz(e))}var Az=Rz;function Oz(e,t){return e==null?void 0:e[t]}var kz=Oz,Cz=Az,Pz=kz;function Nz(e,t){var n=Pz(e,t);return Cz(n)?n:void 0}var zs=Nz,Iz=zs,Lz=Pr,Dz=Iz(Lz,"Map"),fy=Dz,Mz=zs,$z=Mz(Object,"create"),jd=$z,H_=jd;function jz(){this.__data__=H_?H_(null):{},this.size=0}var Bz=jz;function Fz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Uz=Fz,Vz=jd,zz="__lodash_hash_undefined__",qz=Object.prototype,Hz=qz.hasOwnProperty;function Wz(e){var t=this.__data__;if(Vz){var n=t[e];return n===zz?void 0:n}return Hz.call(t,e)?t[e]:void 0}var Kz=Wz,Gz=jd,Zz=Object.prototype,Yz=Zz.hasOwnProperty;function Xz(e){var t=this.__data__;return Gz?t[e]!==void 0:Yz.call(t,e)}var Qz=Xz,Jz=jd,eq="__lodash_hash_undefined__";function tq(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jz&&t===void 0?eq:t,this}var nq=tq,rq=Bz,iq=Uz,oq=Kz,sq=Qz,aq=nq;function qs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qs.prototype.clear=rq;qs.prototype.delete=iq;qs.prototype.get=oq;qs.prototype.has=sq;qs.prototype.set=aq;var lq=qs,W_=lq,uq=Md,cq=fy;function fq(){this.size=0,this.__data__={hash:new W_,map:new(cq||uq),string:new W_}}var dq=fq;function hq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var pq=hq,mq=pq;function vq(e,t){var n=e.__data__;return mq(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Bd=vq,gq=Bd;function yq(e){var t=gq(this,e).delete(e);return this.size-=t?1:0,t}var _q=yq,bq=Bd;function wq(e){return bq(this,e).get(e)}var Sq=wq,Eq=Bd;function Tq(e){return Eq(this,e).has(e)}var xq=Tq,Rq=Bd;function Aq(e,t){var n=Rq(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Oq=Aq,kq=dq,Cq=_q,Pq=Sq,Nq=xq,Iq=Oq;function Hs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hs.prototype.clear=kq;Hs.prototype.delete=Cq;Hs.prototype.get=Pq;Hs.prototype.has=Nq;Hs.prototype.set=Iq;var $A=Hs,Lq=Md,Dq=fy,Mq=$A,$q=200;function jq(e,t){var n=this.__data__;if(n instanceof Lq){var r=n.__data__;if(!Dq||r.length<$q-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mq(r)}return n.set(e,t),this.size=n.size,this}var Bq=jq,Fq=Md,Uq=A7,Vq=k7,zq=P7,qq=I7,Hq=Bq;function Ws(e){var t=this.__data__=new Fq(e);this.size=t.size}Ws.prototype.clear=Uq;Ws.prototype.delete=Vq;Ws.prototype.get=zq;Ws.prototype.has=qq;Ws.prototype.set=Hq;var Wq=Ws,Kq="__lodash_hash_undefined__";function Gq(e){return this.__data__.set(e,Kq),this}var Zq=Gq;function Yq(e){return this.__data__.has(e)}var Xq=Yq,Qq=$A,Jq=Zq,eH=Xq;function wf(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Qq;++t<n;)this.add(e[t])}wf.prototype.add=wf.prototype.push=Jq;wf.prototype.has=eH;var tH=wf;function nH(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var rH=nH;function iH(e,t){return e.has(t)}var oH=iH,sH=tH,aH=rH,lH=oH,uH=1,cH=2;function fH(e,t,n,r,i,o){var s=n&uH,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&cH?new sH:void 0;for(o.set(e,t),o.set(t,e);++f<a;){var g=e[f],v=t[f];if(r)var b=s?r(v,g,f,t,e,o):r(g,v,f,e,t,o);if(b!==void 0){if(b)continue;d=!1;break}if(h){if(!aH(t,function(m,p){if(!lH(h,p)&&(g===m||i(g,m,n,r,o)))return h.push(p)})){d=!1;break}}else if(!(g===v||i(g,v,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var jA=fH,dH=Pr,hH=dH.Uint8Array,pH=hH;function mH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var vH=mH;function gH(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var yH=gH,K_=cy,G_=pH,_H=PA,bH=jA,wH=vH,SH=yH,EH=1,TH=2,xH="[object Boolean]",RH="[object Date]",AH="[object Error]",OH="[object Map]",kH="[object Number]",CH="[object RegExp]",PH="[object Set]",NH="[object String]",IH="[object Symbol]",LH="[object ArrayBuffer]",DH="[object DataView]",Z_=K_?K_.prototype:void 0,ep=Z_?Z_.valueOf:void 0;function MH(e,t,n,r,i,o,s){switch(n){case DH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case LH:return!(e.byteLength!=t.byteLength||!o(new G_(e),new G_(t)));case xH:case RH:case kH:return _H(+e,+t);case AH:return e.name==t.name&&e.message==t.message;case CH:case NH:return e==t+"";case OH:var a=wH;case PH:var l=r&EH;if(a||(a=SH),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=TH,s.set(e,t);var c=bH(a(e),a(t),r,i,o,s);return s.delete(e),c;case IH:if(ep)return ep.call(e)==ep.call(t)}return!1}var $H=MH;function jH(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var BH=jH,FH=Array.isArray,dy=FH,UH=BH,VH=dy;function zH(e,t,n){var r=t(e);return VH(e)?r:UH(r,n(e))}var qH=zH;function HH(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}var WH=HH;function KH(){return[]}var GH=KH,ZH=WH,YH=GH,XH=Object.prototype,QH=XH.propertyIsEnumerable,Y_=Object.getOwnPropertySymbols,JH=Y_?function(e){return e==null?[]:(e=Object(e),ZH(Y_(e),function(t){return QH.call(e,t)}))}:YH,eW=JH;function tW(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var nW=tW;function rW(e){return e!=null&&typeof e=="object"}var Fd=rW,iW=$d,oW=Fd,sW="[object Arguments]";function aW(e){return oW(e)&&iW(e)==sW}var lW=aW,X_=lW,uW=Fd,BA=Object.prototype,cW=BA.hasOwnProperty,fW=BA.propertyIsEnumerable,dW=X_(function(){return arguments}())?X_:function(e){return uW(e)&&cW.call(e,"callee")&&!fW.call(e,"callee")},hW=dW,Sf={exports:{}};function pW(){return!1}var mW=pW;Sf.exports;(function(e,t){var n=Pr,r=mW,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,a=s?n.Buffer:void 0,l=a?a.isBuffer:void 0,u=l||r;e.exports=u})(Sf,Sf.exports);var FA=Sf.exports,vW=9007199254740991,gW=/^(?:0|[1-9]\d*)$/;function yW(e,t){var n=typeof e;return t=t??vW,!!t&&(n=="number"||n!="symbol"&&gW.test(e))&&e>-1&&e%1==0&&e<t}var _W=yW,bW=9007199254740991;function wW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bW}var UA=wW,SW=$d,EW=UA,TW=Fd,xW="[object Arguments]",RW="[object Array]",AW="[object Boolean]",OW="[object Date]",kW="[object Error]",CW="[object Function]",PW="[object Map]",NW="[object Number]",IW="[object Object]",LW="[object RegExp]",DW="[object Set]",MW="[object String]",$W="[object WeakMap]",jW="[object ArrayBuffer]",BW="[object DataView]",FW="[object Float32Array]",UW="[object Float64Array]",VW="[object Int8Array]",zW="[object Int16Array]",qW="[object Int32Array]",HW="[object Uint8Array]",WW="[object Uint8ClampedArray]",KW="[object Uint16Array]",GW="[object Uint32Array]",Ye={};Ye[FW]=Ye[UW]=Ye[VW]=Ye[zW]=Ye[qW]=Ye[HW]=Ye[WW]=Ye[KW]=Ye[GW]=!0;Ye[xW]=Ye[RW]=Ye[jW]=Ye[AW]=Ye[BW]=Ye[OW]=Ye[kW]=Ye[CW]=Ye[PW]=Ye[NW]=Ye[IW]=Ye[LW]=Ye[DW]=Ye[MW]=Ye[$W]=!1;function ZW(e){return TW(e)&&EW(e.length)&&!!Ye[SW(e)]}var YW=ZW;function XW(e){return function(t){return e(t)}}var QW=XW,Ef={exports:{}};Ef.exports;(function(e,t){var n=NA,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,a=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=a})(Ef,Ef.exports);var JW=Ef.exports,eK=YW,tK=QW,Q_=JW,J_=Q_&&Q_.isTypedArray,nK=J_?tK(J_):eK,VA=nK,rK=nW,iK=hW,oK=dy,sK=FA,aK=_W,lK=VA,uK=Object.prototype,cK=uK.hasOwnProperty;function fK(e,t){var n=oK(e),r=!n&&iK(e),i=!n&&!r&&sK(e),o=!n&&!r&&!i&&lK(e),s=n||r||i||o,a=s?rK(e.length,String):[],l=a.length;for(var u in e)(t||cK.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||aK(u,l)))&&a.push(u);return a}var dK=fK,hK=Object.prototype;function pK(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||hK;return e===n}var mK=pK;function vK(e,t){return function(n){return e(t(n))}}var gK=vK,yK=gK,_K=yK(Object.keys,Object),bK=_K,wK=mK,SK=bK,EK=Object.prototype,TK=EK.hasOwnProperty;function xK(e){if(!wK(e))return SK(e);var t=[];for(var n in Object(e))TK.call(e,n)&&n!="constructor"&&t.push(n);return t}var RK=xK,AK=DA,OK=UA;function kK(e){return e!=null&&OK(e.length)&&!AK(e)}var CK=kK,PK=dK,NK=RK,IK=CK;function LK(e){return IK(e)?PK(e):NK(e)}var DK=LK,MK=qH,$K=eW,jK=DK;function BK(e){return MK(e,jK,$K)}var FK=BK,eb=FK,UK=1,VK=Object.prototype,zK=VK.hasOwnProperty;function qK(e,t,n,r,i,o){var s=n&UK,a=eb(e),l=a.length,u=eb(t),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var d=a[f];if(!(s?d in t:zK.call(t,d)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var v=!0;o.set(e,t),o.set(t,e);for(var b=s;++f<l;){d=a[f];var m=e[d],p=t[d];if(r)var y=s?r(p,m,d,t,e,o):r(m,p,d,e,t,o);if(!(y===void 0?m===p||i(m,p,n,r,o):y)){v=!1;break}b||(b=d=="constructor")}if(v&&!b){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(e),o.delete(t),v}var HK=qK,WK=zs,KK=Pr,GK=WK(KK,"DataView"),ZK=GK,YK=zs,XK=Pr,QK=YK(XK,"Promise"),JK=QK,eG=zs,tG=Pr,nG=eG(tG,"Set"),rG=nG,iG=zs,oG=Pr,sG=iG(oG,"WeakMap"),aG=sG,Qm=ZK,Jm=fy,ev=JK,tv=rG,nv=aG,zA=$d,Ks=MA,tb="[object Map]",lG="[object Object]",nb="[object Promise]",rb="[object Set]",ib="[object WeakMap]",ob="[object DataView]",uG=Ks(Qm),cG=Ks(Jm),fG=Ks(ev),dG=Ks(tv),hG=Ks(nv),Bi=zA;(Qm&&Bi(new Qm(new ArrayBuffer(1)))!=ob||Jm&&Bi(new Jm)!=tb||ev&&Bi(ev.resolve())!=nb||tv&&Bi(new tv)!=rb||nv&&Bi(new nv)!=ib)&&(Bi=function(e){var t=zA(e),n=t==lG?e.constructor:void 0,r=n?Ks(n):"";if(r)switch(r){case uG:return ob;case cG:return tb;case fG:return nb;case dG:return rb;case hG:return ib}return t});var pG=Bi,tp=Wq,mG=jA,vG=$H,gG=HK,sb=pG,ab=dy,lb=FA,yG=VA,_G=1,ub="[object Arguments]",cb="[object Array]",Wu="[object Object]",bG=Object.prototype,fb=bG.hasOwnProperty;function wG(e,t,n,r,i,o){var s=ab(e),a=ab(t),l=s?cb:sb(e),u=a?cb:sb(t);l=l==ub?Wu:l,u=u==ub?Wu:u;var c=l==Wu,f=u==Wu,d=l==u;if(d&&lb(e)){if(!lb(t))return!1;s=!0,c=!1}if(d&&!c)return o||(o=new tp),s||yG(e)?mG(e,t,n,r,i,o):vG(e,t,l,n,r,i,o);if(!(n&_G)){var h=c&&fb.call(e,"__wrapped__"),g=f&&fb.call(t,"__wrapped__");if(h||g){var v=h?e.value():e,b=g?t.value():t;return o||(o=new tp),i(v,b,n,r,o)}}return d?(o||(o=new tp),gG(e,t,n,r,i,o)):!1}var SG=wG,EG=SG,db=Fd;function qA(e,t,n,r,i){return e===t?!0:e==null||t==null||!db(e)&&!db(t)?e!==e&&t!==t:EG(e,t,n,r,qA,i)}var TG=qA,xG=TG;function RG(e,t){return xG(e,t)}var AG=RG,HA={exports:{}};/*!
1611 * Quill Editor v1.3.7
1612 * https://quilljs.com/
1613 * Copyright (c) 2014, Jason Chen
1614 * Copyright (c) 2013, salesforce.com
1615 */(function(e,t){(function(r,i){e.exports=i()})(typeof self<"u"?self:Xt,function(){return function(n){var r={};function i(o){if(r[o])return r[o].exports;var s=r[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=n,i.c=r,i.d=function(o,s,a){i.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:a})},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=109)}([function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(17),s=i(18),a=i(19),l=i(45),u=i(46),c=i(47),f=i(48),d=i(49),h=i(12),g=i(32),v=i(33),b=i(31),m=i(1),p={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:o.default,Format:s.default,Leaf:a.default,Embed:f.default,Scroll:l.default,Block:c.default,Inline:u.default,Text:d.default,Attributor:{Attribute:h.default,Class:g.default,Style:v.default,Store:b.default}};r.default=p},function(n,r,i){var o=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,p){m.__proto__=p}||function(m,p){for(var y in p)p.hasOwnProperty(y)&&(m[y]=p[y])};return function(m,p){b(m,p);function y(){this.constructor=m}m.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=function(b){o(m,b);function m(p){var y=this;return p="[Parchment] "+p,y=b.call(this,p)||this,y.message=p,y.name=y.constructor.name,y}return m}(Error);r.ParchmentError=s;var a={},l={},u={},c={};r.DATA_KEY="__blot";var f;(function(b){b[b.TYPE=3]="TYPE",b[b.LEVEL=12]="LEVEL",b[b.ATTRIBUTE=13]="ATTRIBUTE",b[b.BLOT=14]="BLOT",b[b.INLINE=7]="INLINE",b[b.BLOCK=11]="BLOCK",b[b.BLOCK_BLOT=10]="BLOCK_BLOT",b[b.INLINE_BLOT=6]="INLINE_BLOT",b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",b[b.ANY=15]="ANY"})(f=r.Scope||(r.Scope={}));function d(b,m){var p=g(b);if(p==null)throw new s("Unable to create "+b+" blot");var y=p,_=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:y.create(m);return new y(_,m)}r.create=d;function h(b,m){return m===void 0&&(m=!1),b==null?null:b[r.DATA_KEY]!=null?b[r.DATA_KEY].blot:m?h(b.parentNode,m):null}r.find=h;function g(b,m){m===void 0&&(m=f.ANY);var p;if(typeof b=="string")p=c[b]||a[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)p=c.text;else if(typeof b=="number")b&f.LEVEL&f.BLOCK?p=c.block:b&f.LEVEL&f.INLINE&&(p=c.inline);else if(b instanceof HTMLElement){var y=(b.getAttribute("class")||"").split(/\s+/);for(var _ in y)if(p=l[y[_]],p)break;p=p||u[b.tagName]}return p==null?null:m&f.LEVEL&p.scope&&m&f.TYPE&p.scope?p:null}r.query=g;function v(){for(var b=[],m=0;m<arguments.length;m++)b[m]=arguments[m];if(b.length>1)return b.map(function(_){return v(_)});var p=b[0];if(typeof p.blotName!="string"&&typeof p.attrName!="string")throw new s("Invalid definition");if(p.blotName==="abstract")throw new s("Cannot register abstract class");if(c[p.blotName||p.attrName]=p,typeof p.keyName=="string")a[p.keyName]=p;else if(p.className!=null&&(l[p.className]=p),p.tagName!=null){Array.isArray(p.tagName)?p.tagName=p.tagName.map(function(_){return _.toUpperCase()}):p.tagName=p.tagName.toUpperCase();var y=Array.isArray(p.tagName)?p.tagName:[p.tagName];y.forEach(function(_){(u[_]==null||p.className==null)&&(u[_]=p)})}return p}r.register=v},function(n,r,i){var o=i(51),s=i(11),a=i(3),l=i(20),u="\0",c=function(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]};c.prototype.insert=function(f,d){var h={};return f.length===0?this:(h.insert=f,d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h))},c.prototype.delete=function(f){return f<=0?this:this.push({delete:f})},c.prototype.retain=function(f,d){if(f<=0)return this;var h={retain:f};return d!=null&&typeof d=="object"&&Object.keys(d).length>0&&(h.attributes=d),this.push(h)},c.prototype.push=function(f){var d=this.ops.length,h=this.ops[d-1];if(f=a(!0,{},f),typeof h=="object"){if(typeof f.delete=="number"&&typeof h.delete=="number")return this.ops[d-1]={delete:h.delete+f.delete},this;if(typeof h.delete=="number"&&f.insert!=null&&(d-=1,h=this.ops[d-1],typeof h!="object"))return this.ops.unshift(f),this;if(s(f.attributes,h.attributes)){if(typeof f.insert=="string"&&typeof h.insert=="string")return this.ops[d-1]={insert:h.insert+f.insert},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof h.retain=="number")return this.ops[d-1]={retain:h.retain+f.retain},typeof f.attributes=="object"&&(this.ops[d-1].attributes=f.attributes),this}}return d===this.ops.length?this.ops.push(f):this.ops.splice(d,0,f),this},c.prototype.chop=function(){var f=this.ops[this.ops.length-1];return f&&f.retain&&!f.attributes&&this.ops.pop(),this},c.prototype.filter=function(f){return this.ops.filter(f)},c.prototype.forEach=function(f){this.ops.forEach(f)},c.prototype.map=function(f){return this.ops.map(f)},c.prototype.partition=function(f){var d=[],h=[];return this.forEach(function(g){var v=f(g)?d:h;v.push(g)}),[d,h]},c.prototype.reduce=function(f,d){return this.ops.reduce(f,d)},c.prototype.changeLength=function(){return this.reduce(function(f,d){return d.insert?f+l.length(d):d.delete?f-d.delete:f},0)},c.prototype.length=function(){return this.reduce(function(f,d){return f+l.length(d)},0)},c.prototype.slice=function(f,d){f=f||0,typeof d!="number"&&(d=1/0);for(var h=[],g=l.iterator(this.ops),v=0;v<d&&g.hasNext();){var b;v<f?b=g.next(f-v):(b=g.next(d-v),h.push(b)),v+=l.length(b)}return new c(h)},c.prototype.compose=function(f){var d=l.iterator(this.ops),h=l.iterator(f.ops),g=[],v=h.peek();if(v!=null&&typeof v.retain=="number"&&v.attributes==null){for(var b=v.retain;d.peekType()==="insert"&&d.peekLength()<=b;)b-=d.peekLength(),g.push(d.next());v.retain-b>0&&h.next(v.retain-b)}for(var m=new c(g);d.hasNext()||h.hasNext();)if(h.peekType()==="insert")m.push(h.next());else if(d.peekType()==="delete")m.push(d.next());else{var p=Math.min(d.peekLength(),h.peekLength()),y=d.next(p),_=h.next(p);if(typeof _.retain=="number"){var w={};typeof y.retain=="number"?w.retain=p:w.insert=y.insert;var x=l.attributes.compose(y.attributes,_.attributes,typeof y.retain=="number");if(x&&(w.attributes=x),m.push(w),!h.hasNext()&&s(m.ops[m.ops.length-1],w)){var E=new c(d.rest());return m.concat(E).chop()}}else typeof _.delete=="number"&&typeof y.retain=="number"&&m.push(_)}return m.chop()},c.prototype.concat=function(f){var d=new c(this.ops.slice());return f.ops.length>0&&(d.push(f.ops[0]),d.ops=d.ops.concat(f.ops.slice(1))),d},c.prototype.diff=function(f,d){if(this.ops===f.ops)return new c;var h=[this,f].map(function(p){return p.map(function(y){if(y.insert!=null)return typeof y.insert=="string"?y.insert:u;var _=p===f?"on":"with";throw new Error("diff() called "+_+" non-document")}).join("")}),g=new c,v=o(h[0],h[1],d),b=l.iterator(this.ops),m=l.iterator(f.ops);return v.forEach(function(p){for(var y=p[1].length;y>0;){var _=0;switch(p[0]){case o.INSERT:_=Math.min(m.peekLength(),y),g.push(m.next(_));break;case o.DELETE:_=Math.min(y,b.peekLength()),b.next(_),g.delete(_);break;case o.EQUAL:_=Math.min(b.peekLength(),m.peekLength(),y);var w=b.next(_),x=m.next(_);s(w.insert,x.insert)?g.retain(_,l.attributes.diff(w.attributes,x.attributes)):g.push(x).delete(_);break}y-=_}}),g.chop()},c.prototype.eachLine=function(f,d){d=d||`
1616`;for(var h=l.iterator(this.ops),g=new c,v=0;h.hasNext();){if(h.peekType()!=="insert")return;var b=h.peek(),m=l.length(b)-h.peekLength(),p=typeof b.insert=="string"?b.insert.indexOf(d,m)-m:-1;if(p<0)g.push(h.next());else if(p>0)g.push(h.next(p));else{if(f(g,h.next(1).attributes||{},v)===!1)return;v+=1,g=new c}}g.length()>0&&f(g,{},v)},c.prototype.transform=function(f,d){if(d=!!d,typeof f=="number")return this.transformPosition(f,d);for(var h=l.iterator(this.ops),g=l.iterator(f.ops),v=new c;h.hasNext()||g.hasNext();)if(h.peekType()==="insert"&&(d||g.peekType()!=="insert"))v.retain(l.length(h.next()));else if(g.peekType()==="insert")v.push(g.next());else{var b=Math.min(h.peekLength(),g.peekLength()),m=h.next(b),p=g.next(b);if(m.delete)continue;p.delete?v.push(p):v.retain(b,l.attributes.transform(m.attributes,p.attributes,d))}return v.chop()},c.prototype.transformPosition=function(f,d){d=!!d;for(var h=l.iterator(this.ops),g=0;h.hasNext()&&g<=f;){var v=h.peekLength(),b=h.peekType();if(h.next(),b==="delete"){f-=Math.min(v,f-g);continue}else b==="insert"&&(g<f||!d)&&(f+=v);g+=v}return f},n.exports=c},function(n,r){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):o.call(h)==="[object Array]"},u=function(h){if(!h||o.call(h)!=="[object Object]")return!1;var g=i.call(h,"constructor"),v=h.constructor&&h.constructor.prototype&&i.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!v)return!1;var b;for(b in h);return typeof b>"u"||i.call(h,b)},c=function(h,g){s&&g.name==="__proto__"?s(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},f=function(h,g){if(g==="__proto__")if(i.call(h,g)){if(a)return a(h,g).value}else return;return h[g]};n.exports=function d(){var h,g,v,b,m,p,y=arguments[0],_=1,w=arguments.length,x=!1;for(typeof y=="boolean"&&(x=y,y=arguments[1]||{},_=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});_<w;++_)if(h=arguments[_],h!=null)for(g in h)v=f(y,g),b=f(h,g),y!==b&&(x&&b&&(u(b)||(m=l(b)))?(m?(m=!1,p=v&&l(v)?v:[]):p=v&&u(v)?v:{},c(y,{name:g,newValue:d(x,p,b)})):typeof b<"u"&&c(y,{name:g,newValue:b}));return y}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var o=function(){function R(O,N){for(var M=0;M<N.length;M++){var $=N[M];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(O,$.key,$)}}return function(O,N,M){return N&&R(O.prototype,N),M&&R(O,M),O}}(),s=function R(O,N,M){O===null&&(O=Function.prototype);var $=Object.getOwnPropertyDescriptor(O,N);if($===void 0){var z=Object.getPrototypeOf(O);return z===null?void 0:R(z,N,M)}else{if("value"in $)return $.value;var V=$.get;return V===void 0?void 0:V.call(M)}},a=i(3),l=y(a),u=i(2),c=y(u),f=i(0),d=y(f),h=i(16),g=y(h),v=i(6),b=y(v),m=i(7),p=y(m);function y(R){return R&&R.__esModule?R:{default:R}}function _(R,O){if(!(R instanceof O))throw new TypeError("Cannot call a class as a function")}function w(R,O){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:R}function x(R,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);R.prototype=Object.create(O&&O.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(R,O):R.__proto__=O)}var E=1,S=function(R){x(O,R);function O(){return _(this,O),w(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return o(O,[{key:"attach",value:function(){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new d.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(M,$){var z=d.default.query(M,d.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,$)}},{key:"formatAt",value:function(M,$,z,V){this.format(z,V)}},{key:"insertAt",value:function(M,$,z){if(typeof $=="string"&&$.endsWith(`
1617`)){var V=d.default.create(C.blotName);this.parent.insertBefore(V,M===0?this:this.next),V.insertAt(0,$.slice(0,-1))}else s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,M,$,z)}}]),O}(d.default.Embed);S.scope=d.default.Scope.BLOCK_BLOT;var C=function(R){x(O,R);function O(N){_(this,O);var M=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N));return M.cache={},M}return o(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(d.default.Leaf).reduce(function(M,$){return $.length()===0?M:M.insert($.value(),T($))},new c.default).insert(`
1618`,T(this))),this.cache.delta}},{key:"deleteAt",value:function(M,$){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,M,$),this.cache={}}},{key:"formatAt",value:function(M,$,z,V){$<=0||(d.default.query(z,d.default.Scope.BLOCK)?M+$===this.length()&&this.format(z,V):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,M,Math.min($,this.length()-M-1),z,V),this.cache={})}},{key:"insertAt",value:function(M,$,z){if(z!=null)return s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,M,$,z);if($.length!==0){var V=$.split(`
1619`),H=V.shift();H.length>0&&(M<this.length()-1||this.children.tail==null?s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(M,this.length()-1),H):this.children.tail.insertAt(this.children.tail.length(),H),this.cache={});var j=this;V.reduce(function(L,k){return j=j.split(L,!0),j.insertAt(0,k),k.length},M+H.length)}}},{key:"insertBefore",value:function(M,$){var z=this.children.head;s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,M,$),z instanceof g.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(M,$){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,M,$),this.cache={}}},{key:"optimize",value:function(M){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,M),this.cache={}}},{key:"path",value:function(M){return s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,M,!0)}},{key:"removeChild",value:function(M){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,M),this.cache={}}},{key:"split",value:function(M){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if($&&(M===0||M>=this.length()-E)){var z=this.clone();return M===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var V=s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,M,$);return this.cache={},V}}}]),O}(d.default.Block);C.blotName="block",C.tagName="P",C.defaultChild="break",C.allowedChildren=[b.default,d.default.Embed,p.default];function T(R){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R==null||(typeof R.formats=="function"&&(O=(0,l.default)(O,R.formats())),R.parent==null||R.parent.blotName=="scroll"||R.parent.statics.scope!==R.statics.scope)?O:T(R.parent,O)}r.bubbleFormats=T,r.BlockEmbed=S,r.default=C},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},s=function(){function j(L,k){var A=[],D=!0,B=!1,U=void 0;try{for(var I=L[Symbol.iterator](),F;!(D=(F=I.next()).done)&&(A.push(F.value),!(k&&A.length===k));D=!0);}catch(W){B=!0,U=W}finally{try{!D&&I.return&&I.return()}finally{if(B)throw U}}return A}return function(L,k){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return j(L,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function j(L,k){for(var A=0;A<k.length;A++){var D=k[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(L,D.key,D)}}return function(L,k,A){return k&&j(L.prototype,k),A&&j(L,A),L}}();i(50);var l=i(2),u=T(l),c=i(14),f=T(c),d=i(8),h=T(d),g=i(9),v=T(g),b=i(0),m=T(b),p=i(15),y=T(p),_=i(3),w=T(_),x=i(10),E=T(x),S=i(34),C=T(S);function T(j){return j&&j.__esModule?j:{default:j}}function R(j,L,k){return L in j?Object.defineProperty(j,L,{value:k,enumerable:!0,configurable:!0,writable:!0}):j[L]=k,j}function O(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}var N=(0,E.default)("quill"),M=function(){a(j,null,[{key:"debug",value:function(k){k===!0&&(k="log"),E.default.level(k)}},{key:"find",value:function(k){return k.__quill||m.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&N.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,A){var D=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var U=k.attrName||k.blotName;typeof U=="string"?this.register("formats/"+U,k,A):Object.keys(k).forEach(function(I){D.register(I,k[I],A)})}else this.imports[k]!=null&&!B&&N.warn("Overwriting "+k+" with",A),this.imports[k]=A,(k.startsWith("blots/")||k.startsWith("formats/"))&&A.blotName!=="abstract"?m.default.register(A):k.startsWith("modules")&&typeof A.register=="function"&&A.register()}}]);function j(L){var k=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,j),this.options=$(L,A),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",L);this.options.debug&&j.debug(this.options.debug);var D=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new f.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(U){U===h.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(U,I){var F=k.selection.lastRange,W=F&&F.length===0?F.index:void 0;z.call(k,function(){return k.editor.update(null,I,W)},U)});var B=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+D+"<p><br></p></div>");this.setContents(B),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(j,[{key:"addContainer",value:function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var D=k;k=document.createElement("div"),k.classList.add(D)}return this.container.insertBefore(k,A),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,A,D){var B=this,U=V(k,A,D),I=s(U,4);return k=I[0],A=I[1],D=I[3],z.call(this,function(){return B.editor.deleteText(k,A)},D,k,-1*A)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,A){var D=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return z.call(this,function(){var U=D.getSelection(!0),I=new u.default;if(U==null)return I;if(m.default.query(k,m.default.Scope.BLOCK))I=D.editor.formatLine(U.index,U.length,R({},k,A));else{if(U.length===0)return D.selection.format(k,A),I;I=D.editor.formatText(U.index,U.length,R({},k,A))}return D.setSelection(U,h.default.sources.SILENT),I},B)}},{key:"formatLine",value:function(k,A,D,B,U){var I=this,F=void 0,W=V(k,A,D,B,U),q=s(W,4);return k=q[0],A=q[1],F=q[2],U=q[3],z.call(this,function(){return I.editor.formatLine(k,A,F)},U,k,0)}},{key:"formatText",value:function(k,A,D,B,U){var I=this,F=void 0,W=V(k,A,D,B,U),q=s(W,4);return k=q[0],A=q[1],F=q[2],U=q[3],z.call(this,function(){return I.editor.formatText(k,A,F)},U,k,0)}},{key:"getBounds",value:function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=void 0;typeof k=="number"?D=this.selection.getBounds(k,A):D=this.selection.getBounds(k.index,k.length);var B=this.container.getBoundingClientRect();return{bottom:D.bottom-B.top,height:D.height,left:D.left-B.left,right:D.right-B.left,top:D.top-B.top,width:D.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,D=V(k,A),B=s(D,2);return k=B[0],A=B[1],this.editor.getContents(k,A)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,A):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,A)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,D=V(k,A),B=s(D,2);return k=B[0],A=B[1],this.editor.getText(k,A)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,A,D){var B=this,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:j.sources.API;return z.call(this,function(){return B.editor.insertEmbed(k,A,D)},U,k)}},{key:"insertText",value:function(k,A,D,B,U){var I=this,F=void 0,W=V(k,0,D,B,U),q=s(W,4);return k=q[0],F=q[2],U=q[3],z.call(this,function(){return I.editor.insertText(k,A,F)},U,k,A.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(k,A,D){this.clipboard.dangerouslyPasteHTML(k,A,D)}},{key:"removeFormat",value:function(k,A,D){var B=this,U=V(k,A,D),I=s(U,4);return k=I[0],A=I[1],D=I[3],z.call(this,function(){return B.editor.removeFormat(k,A)},D,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var A=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return z.call(this,function(){k=new u.default(k);var B=A.getLength(),U=A.editor.deleteText(0,B),I=A.editor.applyDelta(k),F=I.ops[I.ops.length-1];F!=null&&typeof F.insert=="string"&&F.insert[F.insert.length-1]===`
1620`&&(A.editor.deleteText(A.getLength()-1,1),I.delete(1));var W=U.compose(I);return W},D)}},{key:"setSelection",value:function(k,A,D){if(k==null)this.selection.setRange(null,A||j.sources.API);else{var B=V(k,A,D),U=s(B,4);k=U[0],A=U[1],D=U[3],this.selection.setRange(new p.Range(k,A),D),D!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,D=new u.default().insert(k);return this.setContents(D,A)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,A=this.scroll.update(k);return this.selection.update(k),A}},{key:"updateContents",value:function(k){var A=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return z.call(this,function(){return k=new u.default(k),A.editor.applyDelta(k,D)},D,!0)}}]),j}();M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.7",M.imports={delta:u.default,parchment:m.default,"core/module":v.default,"core/theme":C.default};function $(j,L){if(L=(0,w.default)(!0,{container:j,modules:{clipboard:!0,keyboard:!0,history:!0}},L),!L.theme||L.theme===M.DEFAULTS.theme)L.theme=C.default;else if(L.theme=M.import("themes/"+L.theme),L.theme==null)throw new Error("Invalid theme "+L.theme+". Did you register it?");var k=(0,w.default)(!0,{},L.theme.DEFAULTS);[k,L].forEach(function(B){B.modules=B.modules||{},Object.keys(B.modules).forEach(function(U){B.modules[U]===!0&&(B.modules[U]={})})});var A=Object.keys(k.modules).concat(Object.keys(L.modules)),D=A.reduce(function(B,U){var I=M.import("modules/"+U);return I==null?N.error("Cannot load "+U+" module. Are you sure you registered it?"):B[U]=I.DEFAULTS||{},B},{});return L.modules!=null&&L.modules.toolbar&&L.modules.toolbar.constructor!==Object&&(L.modules.toolbar={container:L.modules.toolbar}),L=(0,w.default)(!0,{},M.DEFAULTS,{modules:D},k,L),["bounds","container","scrollingContainer"].forEach(function(B){typeof L[B]=="string"&&(L[B]=document.querySelector(L[B]))}),L.modules=Object.keys(L.modules).reduce(function(B,U){return L.modules[U]&&(B[U]=L.modules[U]),B},{}),L}function z(j,L,k,A){if(this.options.strict&&!this.isEnabled()&&L===h.default.sources.USER)return new u.default;var D=k==null?null:this.getSelection(),B=this.editor.delta,U=j();if(D!=null&&(k===!0&&(k=D.index),A==null?D=H(D,U,L):A!==0&&(D=H(D,k,A,L)),this.setSelection(D,h.default.sources.SILENT)),U.length()>0){var I,F=[h.default.events.TEXT_CHANGE,U,B,L];if((I=this.emitter).emit.apply(I,[h.default.events.EDITOR_CHANGE].concat(F)),L!==h.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,F)}}return U}function V(j,L,k,A,D){var B={};return typeof j.index=="number"&&typeof j.length=="number"?typeof L!="number"?(D=A,A=k,k=L,L=j.length,j=j.index):(L=j.length,j=j.index):typeof L!="number"&&(D=A,A=k,k=L,L=0),(typeof k>"u"?"undefined":o(k))==="object"?(B=k,D=A):typeof k=="string"&&(A!=null?B[k]=A:D=k),D=D||h.default.sources.API,[j,L,B,D]}function H(j,L,k,A){if(j==null)return null;var D=void 0,B=void 0;if(L instanceof u.default){var U=[j.index,j.index+j.length].map(function(q){return L.transformPosition(q,A!==h.default.sources.USER)}),I=s(U,2);D=I[0],B=I[1]}else{var F=[j.index,j.index+j.length].map(function(q){return q<L||q===L&&A===h.default.sources.USER?q:k>=0?q+k:Math.max(L,q+k)}),W=s(F,2);D=W[0],B=W[1]}return new p.Range(D,B-D)}r.expandConfig=$,r.overload=V,r.default=M},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function b(m,p){for(var y=0;y<p.length;y++){var _=p[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,p,y){return p&&b(m.prototype,p),y&&b(m,y),m}}(),s=function b(m,p,y){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,p);if(_===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:b(w,p,y)}else{if("value"in _)return _.value;var x=_.get;return x===void 0?void 0:x.call(y)}},a=i(7),l=f(a),u=i(0),c=f(u);function f(b){return b&&b.__esModule?b:{default:b}}function d(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function h(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function g(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=function(b){g(m,b);function m(){return d(this,m),h(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"formatAt",value:function(y,_,w,x){if(m.compare(this.statics.blotName,w)<0&&c.default.query(w,c.default.Scope.BLOT)){var E=this.isolate(y,_);x&&E.wrap(w,x)}else s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,y,_,w,x)}},{key:"optimize",value:function(y){if(s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,y),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var _=this.parent.isolate(this.offset(),this.length());this.moveChildren(_),_.wrap(this)}}}],[{key:"compare",value:function(y,_){var w=m.order.indexOf(y),x=m.order.indexOf(_);return w>=0||x>=0?w-x:y===_?0:y<_?-1:1}}]),m}(c.default.Inline);v.allowedChildren=[v,c.default.Embed,l.default],v.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),s=a(o);function a(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function u(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){c(h,d);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default.Text);r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function p(y,_){for(var w=0;w<_.length;w++){var x=_[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,_,w){return _&&p(y.prototype,_),w&&p(y,w),y}}(),s=function p(y,_,w){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,_);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:p(E,_,w)}else{if("value"in x)return x.value;var S=x.get;return S===void 0?void 0:S.call(w)}},a=i(54),l=f(a),u=i(10),c=f(u);function f(p){return p&&p.__esModule?p:{default:p}}function d(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function h(p,y){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:p}function g(p,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);p.prototype=Object.create(y&&y.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(p,y):p.__proto__=y)}var v=(0,c.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(p){document.addEventListener(p,function(){for(var y=arguments.length,_=Array(y),w=0;w<y;w++)_[w]=arguments[w];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(x){if(x.__quill&&x.__quill.emitter){var E;(E=x.__quill.emitter).handleDOM.apply(E,_)}})})});var m=function(p){g(y,p);function y(){d(this,y);var _=h(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));return _.listeners={},_.on("error",v.error),_}return o(y,[{key:"emit",value:function(){v.log.apply(v,arguments),s(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(w){for(var x=arguments.length,E=Array(x>1?x-1:0),S=1;S<x;S++)E[S-1]=arguments[S];(this.listeners[w.type]||[]).forEach(function(C){var T=C.node,R=C.handler;(w.target===T||T.contains(w.target))&&R.apply(void 0,[w].concat(E))})}},{key:"listenDOM",value:function(w,x,E){this.listeners[w]||(this.listeners[w]=[]),this.listeners[w].push({node:x,handler:E})}}]),y}(l.default);m.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},m.sources={API:"api",SILENT:"silent",USER:"user"},r.default=m},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});function o(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}var s=function a(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,a),this.quill=l,this.options=u};s.DEFAULTS={},r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=["error","warn","log","info"],s="warn";function a(u){if(o.indexOf(u)<=o.indexOf(s)){for(var c,f=arguments.length,d=Array(f>1?f-1:0),h=1;h<f;h++)d[h-1]=arguments[h];(c=console)[u].apply(c,d)}}function l(u){return o.reduce(function(c,f){return c[f]=a.bind(console,f,u),c},{})}a.level=l.level=function(u){s=u},r.default=l},function(n,r,i){var o=Array.prototype.slice,s=i(52),a=i(53),l=n.exports=function(d,h,g){return g||(g={}),d===h?!0:d instanceof Date&&h instanceof Date?d.getTime()===h.getTime():!d||!h||typeof d!="object"&&typeof h!="object"?g.strict?d===h:d==h:f(d,h,g)};function u(d){return d==null}function c(d){return!(!d||typeof d!="object"||typeof d.length!="number"||typeof d.copy!="function"||typeof d.slice!="function"||d.length>0&&typeof d[0]!="number")}function f(d,h,g){var v,b;if(u(d)||u(h)||d.prototype!==h.prototype)return!1;if(a(d))return a(h)?(d=o.call(d),h=o.call(h),l(d,h,g)):!1;if(c(d)){if(!c(h)||d.length!==h.length)return!1;for(v=0;v<d.length;v++)if(d[v]!==h[v])return!1;return!0}try{var m=s(d),p=s(h)}catch{return!1}if(m.length!=p.length)return!1;for(m.sort(),p.sort(),v=m.length-1;v>=0;v--)if(m[v]!=p[v])return!1;for(v=m.length-1;v>=0;v--)if(b=m[v],!l(d[b],h[b],g))return!1;return typeof d==typeof h}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(1),s=function(){function a(l,u,c){c===void 0&&(c={}),this.attrName=l,this.keyName=u;var f=o.Scope.TYPE&o.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&o.Scope.LEVEL|f:this.scope=o.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return a.keys=function(l){return[].map.call(l.attributes,function(u){return u.name})},a.prototype.add=function(l,u){return this.canAdd(l,u)?(l.setAttribute(this.keyName,u),!0):!1},a.prototype.canAdd=function(l,u){var c=o.query(l,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof u=="string"?this.whitelist.indexOf(u.replace(/["']/g,""))>-1:this.whitelist.indexOf(u)>-1},a.prototype.remove=function(l){l.removeAttribute(this.keyName)},a.prototype.value=function(l){var u=l.getAttribute(this.keyName);return this.canAdd(l,u)&&u?u:""},a}();r.default=s},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var o=function(){function S(C,T){var R=[],O=!0,N=!1,M=void 0;try{for(var $=C[Symbol.iterator](),z;!(O=(z=$.next()).done)&&(R.push(z.value),!(T&&R.length===T));O=!0);}catch(V){N=!0,M=V}finally{try{!O&&$.return&&$.return()}finally{if(N)throw M}}return R}return function(C,T){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return S(C,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(C,T){for(var R=0;R<T.length;R++){var O=T[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(C,O.key,O)}}return function(C,T,R){return T&&S(C.prototype,T),R&&S(C,R),C}}(),a=function S(C,T,R){C===null&&(C=Function.prototype);var O=Object.getOwnPropertyDescriptor(C,T);if(O===void 0){var N=Object.getPrototypeOf(C);return N===null?void 0:S(N,T,R)}else{if("value"in O)return O.value;var M=O.get;return M===void 0?void 0:M.call(R)}},l=i(2),u=p(l),c=i(0),f=p(c),d=i(4),h=p(d),g=i(6),v=p(g),b=i(7),m=p(b);function p(S){return S&&S.__esModule?S:{default:S}}function y(S,C){if(!(S instanceof C))throw new TypeError("Cannot call a class as a function")}function _(S,C){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:S}function w(S,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);S.prototype=Object.create(C&&C.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(S,C):S.__proto__=C)}var x=function(S){w(C,S);function C(){return y(this,C),_(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return C}(v.default);x.blotName="code",x.tagName="CODE";var E=function(S){w(C,S);function C(){return y(this,C),_(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return s(C,[{key:"delta",value:function(){var R=this,O=this.domNode.textContent;return O.endsWith(`
1621`)&&(O=O.slice(0,-1)),O.split(`
1622`).reduce(function(N,M){return N.insert(M).insert(`
1623`,R.formats())},new u.default)}},{key:"format",value:function(R,O){if(!(R===this.statics.blotName&&O)){var N=this.descendant(m.default,this.length()-1),M=o(N,1),$=M[0];$!=null&&$.deleteAt($.length()-1,1),a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"format",this).call(this,R,O)}}},{key:"formatAt",value:function(R,O,N,M){if(O!==0&&!(f.default.query(N,f.default.Scope.BLOCK)==null||N===this.statics.blotName&&M===this.statics.formats(this.domNode))){var $=this.newlineIndex(R);if(!($<0||$>=R+O)){var z=this.newlineIndex(R,!0)+1,V=$-z+1,H=this.isolate(z,V),j=H.next;H.format(N,M),j instanceof C&&j.formatAt(0,R-z+O-V,N,M)}}}},{key:"insertAt",value:function(R,O,N){if(N==null){var M=this.descendant(m.default,R),$=o(M,2),z=$[0],V=$[1];z.insertAt(V,O)}}},{key:"length",value:function(){var R=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
1624`)?R:R+1}},{key:"newlineIndex",value:function(R){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,R).lastIndexOf(`
1625`);var N=this.domNode.textContent.slice(R).indexOf(`
1626`);return N>-1?R+N:-1}},{key:"optimize",value:function(R){this.domNode.textContent.endsWith(`
1627`)||this.appendChild(f.default.create("text",`
1628`)),a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,R);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(R),O.moveChildren(this),O.remove())}},{key:"replace",value:function(R){a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"replace",this).call(this,R),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var N=f.default.find(O);N==null?O.parentNode.removeChild(O):N instanceof f.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(R){var O=a(C.__proto__||Object.getPrototypeOf(C),"create",this).call(this,R);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),C}(h.default);E.blotName="code-block",E.tagName="PRE",E.TAB="  ",r.Code=x,r.default=E},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},s=function(){function j(L,k){var A=[],D=!0,B=!1,U=void 0;try{for(var I=L[Symbol.iterator](),F;!(D=(F=I.next()).done)&&(A.push(F.value),!(k&&A.length===k));D=!0);}catch(W){B=!0,U=W}finally{try{!D&&I.return&&I.return()}finally{if(B)throw U}}return A}return function(L,k){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return j(L,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function j(L,k){for(var A=0;A<k.length;A++){var D=k[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(L,D.key,D)}}return function(L,k,A){return k&&j(L.prototype,k),A&&j(L,A),L}}(),l=i(2),u=O(l),c=i(20),f=O(c),d=i(0),h=O(d),g=i(13),v=O(g),b=i(24),m=O(b),p=i(4),y=O(p),_=i(16),w=O(_),x=i(21),E=O(x),S=i(11),C=O(S),T=i(3),R=O(T);function O(j){return j&&j.__esModule?j:{default:j}}function N(j,L,k){return L in j?Object.defineProperty(j,L,{value:k,enumerable:!0,configurable:!0,writable:!0}):j[L]=k,j}function M(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}var $=/^[ -~]*$/,z=function(){function j(L){M(this,j),this.scroll=L,this.delta=this.getDelta()}return a(j,[{key:"applyDelta",value:function(k){var A=this,D=!1;this.scroll.update();var B=this.scroll.length();return this.scroll.batchStart(),k=H(k),k.reduce(function(U,I){var F=I.retain||I.delete||I.insert.length||1,W=I.attributes||{};if(I.insert!=null){if(typeof I.insert=="string"){var q=I.insert;q.endsWith(`
1629`)&&D&&(D=!1,q=q.slice(0,-1)),U>=B&&!q.endsWith(`
1630`)&&(D=!0),A.scroll.insertAt(U,q);var Y=A.scroll.line(U),ie=s(Y,2),se=ie[0],he=ie[1],ye=(0,R.default)({},(0,p.bubbleFormats)(se));if(se instanceof y.default){var xe=se.descendant(h.default.Leaf,he),Be=s(xe,1),Me=Be[0];ye=(0,R.default)(ye,(0,p.bubbleFormats)(Me))}W=f.default.attributes.diff(ye,W)||{}}else if(o(I.insert)==="object"){var Q=Object.keys(I.insert)[0];if(Q==null)return U;A.scroll.insertAt(U,Q,I.insert[Q])}B+=F}return Object.keys(W).forEach(function(J){A.scroll.formatAt(U,F,J,W[J])}),U+F},0),k.reduce(function(U,I){return typeof I.delete=="number"?(A.scroll.deleteAt(U,I.delete),U):U+(I.retain||I.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,A){return this.scroll.deleteAt(k,A),this.update(new u.default().retain(k).delete(A))}},{key:"formatLine",value:function(k,A){var D=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(B).forEach(function(U){if(!(D.scroll.whitelist!=null&&!D.scroll.whitelist[U])){var I=D.scroll.lines(k,Math.max(A,1)),F=A;I.forEach(function(W){var q=W.length();if(!(W instanceof v.default))W.format(U,B[U]);else{var Y=k-W.offset(D.scroll),ie=W.newlineIndex(Y+F)-Y+1;W.formatAt(Y,ie,U,B[U])}F-=q})}}),this.scroll.optimize(),this.update(new u.default().retain(k).retain(A,(0,E.default)(B)))}},{key:"formatText",value:function(k,A){var D=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(B).forEach(function(U){D.scroll.formatAt(k,A,U,B[U])}),this.update(new u.default().retain(k).retain(A,(0,E.default)(B)))}},{key:"getContents",value:function(k,A){return this.delta.slice(k,k+A)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,A){return k.concat(A.delta())},new u.default)}},{key:"getFormat",value:function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D=[],B=[];A===0?this.scroll.path(k).forEach(function(I){var F=s(I,1),W=F[0];W instanceof y.default?D.push(W):W instanceof h.default.Leaf&&B.push(W)}):(D=this.scroll.lines(k,A),B=this.scroll.descendants(h.default.Leaf,k,A));var U=[D,B].map(function(I){if(I.length===0)return{};for(var F=(0,p.bubbleFormats)(I.shift());Object.keys(F).length>0;){var W=I.shift();if(W==null)return F;F=V((0,p.bubbleFormats)(W),F)}return F});return R.default.apply(R.default,U)}},{key:"getText",value:function(k,A){return this.getContents(k,A).filter(function(D){return typeof D.insert=="string"}).map(function(D){return D.insert}).join("")}},{key:"insertEmbed",value:function(k,A,D){return this.scroll.insertAt(k,A,D),this.update(new u.default().retain(k).insert(N({},A,D)))}},{key:"insertText",value:function(k,A){var D=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return A=A.replace(/\r\n/g,`
1631`).replace(/\r/g,`
1632`),this.scroll.insertAt(k,A),Object.keys(B).forEach(function(U){D.scroll.formatAt(k,A.length,U,B[U])}),this.update(new u.default().retain(k).insert(A,(0,E.default)(B)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==y.default.blotName||k.children.length>1?!1:k.children.head instanceof w.default}},{key:"removeFormat",value:function(k,A){var D=this.getText(k,A),B=this.scroll.line(k+A),U=s(B,2),I=U[0],F=U[1],W=0,q=new u.default;I!=null&&(I instanceof v.default?W=I.newlineIndex(F)-F+1:W=I.length()-F,q=I.delta().slice(F,F+W-1).insert(`
1633`));var Y=this.getContents(k,A+W),ie=Y.diff(new u.default().insert(D).concat(q)),se=new u.default().retain(k).concat(ie);return this.applyDelta(se)}},{key:"update",value:function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,B=this.delta;if(A.length===1&&A[0].type==="characterData"&&A[0].target.data.match($)&&h.default.find(A[0].target)){var U=h.default.find(A[0].target),I=(0,p.bubbleFormats)(U),F=U.offset(this.scroll),W=A[0].oldValue.replace(m.default.CONTENTS,""),q=new u.default().insert(W),Y=new u.default().insert(U.value()),ie=new u.default().retain(F).concat(q.diff(Y,D));k=ie.reduce(function(se,he){return he.insert?se.insert(he.insert,I):se.push(he)},new u.default),this.delta=B.compose(k)}else this.delta=this.getDelta(),(!k||!(0,C.default)(B.compose(k),this.delta))&&(k=B.diff(this.delta,D));return k}}]),j}();function V(j,L){return Object.keys(L).reduce(function(k,A){return j[A]==null||(L[A]===j[A]?k[A]=L[A]:Array.isArray(L[A])?L[A].indexOf(j[A])<0&&(k[A]=L[A].concat([j[A]])):k[A]=[L[A],j[A]]),k},{})}function H(j){return j.reduce(function(L,k){if(k.insert===1){var A=(0,E.default)(k.attributes);return delete A.image,L.insert({image:k.attributes.image},A)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,E.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var D=k.insert.replace(/\r\n/g,`
1634`).replace(/\r/g,`
1635`);return L.insert(D,k.attributes)}return L.push(k)},new u.default)}r.default=z},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var o=function(){function S(C,T){var R=[],O=!0,N=!1,M=void 0;try{for(var $=C[Symbol.iterator](),z;!(O=(z=$.next()).done)&&(R.push(z.value),!(T&&R.length===T));O=!0);}catch(V){N=!0,M=V}finally{try{!O&&$.return&&$.return()}finally{if(N)throw M}}return R}return function(C,T){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return S(C,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(C,T){for(var R=0;R<T.length;R++){var O=T[R];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(C,O.key,O)}}return function(C,T,R){return T&&S(C.prototype,T),R&&S(C,R),C}}(),a=i(0),l=m(a),u=i(21),c=m(u),f=i(11),d=m(f),h=i(8),g=m(h),v=i(10),b=m(v);function m(S){return S&&S.__esModule?S:{default:S}}function p(S){if(Array.isArray(S)){for(var C=0,T=Array(S.length);C<S.length;C++)T[C]=S[C];return T}else return Array.from(S)}function y(S,C){if(!(S instanceof C))throw new TypeError("Cannot call a class as a function")}var _=(0,b.default)("quill:selection"),w=function S(C){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;y(this,S),this.index=C,this.length=T},x=function(){function S(C,T){var R=this;y(this,S),this.emitter=T,this.scroll=C,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){R.mouseDown||setTimeout(R.update.bind(R,g.default.sources.USER),1)}),this.emitter.on(g.default.events.EDITOR_CHANGE,function(O,N){O===g.default.events.TEXT_CHANGE&&N.length()>0&&R.update(g.default.sources.SILENT)}),this.emitter.on(g.default.events.SCROLL_BEFORE_UPDATE,function(){if(R.hasFocus()){var O=R.getNativeRange();O!=null&&O.start.node!==R.cursor.textNode&&R.emitter.once(g.default.events.SCROLL_UPDATE,function(){try{R.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(g.default.events.SCROLL_OPTIMIZE,function(O,N){if(N.range){var M=N.range,$=M.startNode,z=M.startOffset,V=M.endNode,H=M.endOffset;R.setNativeRange($,z,V,H)}}),this.update(g.default.sources.SILENT)}return s(S,[{key:"handleComposition",value:function(){var T=this;this.root.addEventListener("compositionstart",function(){T.composing=!0}),this.root.addEventListener("compositionend",function(){if(T.composing=!1,T.cursor.parent){var R=T.cursor.restore();if(!R)return;setTimeout(function(){T.setNativeRange(R.startNode,R.startOffset,R.endNode,R.endOffset)},1)}})}},{key:"handleDragging",value:function(){var T=this;this.emitter.listenDOM("mousedown",document.body,function(){T.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){T.mouseDown=!1,T.update(g.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(T,R){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[T])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||l.default.query(T,l.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var N=l.default.find(O.start.node,!1);if(N==null)return;if(N instanceof l.default.Leaf){var M=N.split(O.start.offset);N.parent.insertBefore(this.cursor,M)}else N.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(T,R),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();T=Math.min(T,O-1),R=Math.min(T+R,O-1)-T;var N=void 0,M=this.scroll.leaf(T),$=o(M,2),z=$[0],V=$[1];if(z==null)return null;var H=z.position(V,!0),j=o(H,2);N=j[0],V=j[1];var L=document.createRange();if(R>0){L.setStart(N,V);var k=this.scroll.leaf(T+R),A=o(k,2);if(z=A[0],V=A[1],z==null)return null;var D=z.position(V,!0),B=o(D,2);return N=B[0],V=B[1],L.setEnd(N,V),L.getBoundingClientRect()}else{var U="left",I=void 0;return N instanceof Text?(V<N.data.length?(L.setStart(N,V),L.setEnd(N,V+1)):(L.setStart(N,V-1),L.setEnd(N,V),U="right"),I=L.getBoundingClientRect()):(I=z.domNode.getBoundingClientRect(),V>0&&(U="right")),{bottom:I.top+I.height,height:I.height,left:I[U],right:I[U],top:I.top,width:0}}}},{key:"getNativeRange",value:function(){var T=document.getSelection();if(T==null||T.rangeCount<=0)return null;var R=T.getRangeAt(0);if(R==null)return null;var O=this.normalizeNative(R);return _.info("getNativeRange",O),O}},{key:"getRange",value:function(){var T=this.getNativeRange();if(T==null)return[null,null];var R=this.normalizedToRange(T);return[R,T]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(T){var R=this,O=[[T.start.node,T.start.offset]];T.native.collapsed||O.push([T.end.node,T.end.offset]);var N=O.map(function(z){var V=o(z,2),H=V[0],j=V[1],L=l.default.find(H,!0),k=L.offset(R.scroll);return j===0?k:L instanceof l.default.Container?k+L.length():k+L.index(H,j)}),M=Math.min(Math.max.apply(Math,p(N)),this.scroll.length()-1),$=Math.min.apply(Math,[M].concat(p(N)));return new w($,M-$)}},{key:"normalizeNative",value:function(T){if(!E(this.root,T.startContainer)||!T.collapsed&&!E(this.root,T.endContainer))return null;var R={start:{node:T.startContainer,offset:T.startOffset},end:{node:T.endContainer,offset:T.endOffset},native:T};return[R.start,R.end].forEach(function(O){for(var N=O.node,M=O.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>M)N=N.childNodes[M],M=0;else if(N.childNodes.length===M)N=N.lastChild,M=N instanceof Text?N.data.length:N.childNodes.length+1;else break;O.node=N,O.offset=M}),R}},{key:"rangeToNative",value:function(T){var R=this,O=T.collapsed?[T.index]:[T.index,T.index+T.length],N=[],M=this.scroll.length();return O.forEach(function($,z){$=Math.min(M-1,$);var V=void 0,H=R.scroll.leaf($),j=o(H,2),L=j[0],k=j[1],A=L.position(k,z!==0),D=o(A,2);V=D[0],k=D[1],N.push(V,k)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(T){var R=this.lastRange;if(R!=null){var O=this.getBounds(R.index,R.length);if(O!=null){var N=this.scroll.length()-1,M=this.scroll.line(Math.min(R.index,N)),$=o(M,1),z=$[0],V=z;if(R.length>0){var H=this.scroll.line(Math.min(R.index+R.length,N)),j=o(H,1);V=j[0]}if(!(z==null||V==null)){var L=T.getBoundingClientRect();O.top<L.top?T.scrollTop-=L.top-O.top:O.bottom>L.bottom&&(T.scrollTop+=O.bottom-L.bottom)}}}}},{key:"setNativeRange",value:function(T,R){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:T,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(_.info("setNativeRange",T,R,O,N),!(T!=null&&(this.root.parentNode==null||T.parentNode==null||O.parentNode==null))){var $=document.getSelection();if($!=null)if(T!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||M||T!==z.startContainer||R!==z.startOffset||O!==z.endContainer||N!==z.endOffset){T.tagName=="BR"&&(R=[].indexOf.call(T.parentNode.childNodes,T),T=T.parentNode),O.tagName=="BR"&&(N=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var V=document.createRange();V.setStart(T,R),V.setEnd(O,N),$.removeAllRanges(),$.addRange(V)}}else $.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof R=="string"&&(O=R,R=!1),_.info("setRange",T),T!=null){var N=this.rangeToNative(T);this.setNativeRange.apply(this,p(N).concat([R]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g.default.sources.USER,R=this.lastRange,O=this.getRange(),N=o(O,2),M=N[0],$=N[1];if(this.lastRange=M,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,d.default)(R,this.lastRange)){var z;!this.composing&&$!=null&&$.native.collapsed&&$.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[g.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(R),T];if((z=this.emitter).emit.apply(z,[g.default.events.EDITOR_CHANGE].concat(V)),T!==g.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,V)}}}}]),S}();function E(S,C){try{C.parentNode}catch{return!1}return C instanceof Text&&(C=C.parentNode),S.contains(C)}r.Range=w,r.default=x},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function g(v,b){for(var m=0;m<b.length;m++){var p=b[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(v,p.key,p)}}return function(v,b,m){return b&&g(v.prototype,b),m&&g(v,m),v}}(),s=function g(v,b,m){v===null&&(v=Function.prototype);var p=Object.getOwnPropertyDescriptor(v,b);if(p===void 0){var y=Object.getPrototypeOf(v);return y===null?void 0:g(y,b,m)}else{if("value"in p)return p.value;var _=p.get;return _===void 0?void 0:_.call(m)}},a=i(0),l=u(a);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function d(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=function(g){d(v,g);function v(){return c(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"insertInto",value:function(m,p){m.children.length===0?s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertInto",this).call(this,m,p):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),v}(l.default.Embed);h.blotName="break",h.tagName="BR",r.default=h},function(n,r,i){var o=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])};return function(d,h){f(d,h);function g(){this.constructor=d}d.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(44),a=i(30),l=i(1),u=function(f){o(d,f);function d(h){var g=f.call(this,h)||this;return g.build(),g}return d.prototype.appendChild=function(h){this.insertBefore(h)},d.prototype.attach=function(){f.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},d.prototype.build=function(){var h=this;this.children=new s.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(g){try{var v=c(g);h.insertBefore(v,h.children.head||void 0)}catch(b){if(b instanceof l.ParchmentError)return;throw b}})},d.prototype.deleteAt=function(h,g){if(h===0&&g===this.length())return this.remove();this.children.forEachAt(h,g,function(v,b,m){v.deleteAt(b,m)})},d.prototype.descendant=function(h,g){var v=this.children.find(g),b=v[0],m=v[1];return h.blotName==null&&h(b)||h.blotName!=null&&b instanceof h?[b,m]:b instanceof d?b.descendant(h,m):[null,-1]},d.prototype.descendants=function(h,g,v){g===void 0&&(g=0),v===void 0&&(v=Number.MAX_VALUE);var b=[],m=v;return this.children.forEachAt(g,v,function(p,y,_){(h.blotName==null&&h(p)||h.blotName!=null&&p instanceof h)&&b.push(p),p instanceof d&&(b=b.concat(p.descendants(h,y,m))),m-=_}),b},d.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),f.prototype.detach.call(this)},d.prototype.formatAt=function(h,g,v,b){this.children.forEachAt(h,g,function(m,p,y){m.formatAt(p,y,v,b)})},d.prototype.insertAt=function(h,g,v){var b=this.children.find(h),m=b[0],p=b[1];if(m)m.insertAt(p,g,v);else{var y=v==null?l.create("text",g):l.create(g,v);this.appendChild(y)}},d.prototype.insertBefore=function(h,g){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(v){return h instanceof v}))throw new l.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,g)},d.prototype.length=function(){return this.children.reduce(function(h,g){return h+g.length()},0)},d.prototype.moveChildren=function(h,g){this.children.forEach(function(v){h.insertBefore(v,g)})},d.prototype.optimize=function(h){if(f.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var g=l.create(this.statics.defaultChild);this.appendChild(g),g.optimize(h)}else this.remove()},d.prototype.path=function(h,g){g===void 0&&(g=!1);var v=this.children.find(h,g),b=v[0],m=v[1],p=[[this,h]];return b instanceof d?p.concat(b.path(m,g)):(b!=null&&p.push([b,m]),p)},d.prototype.removeChild=function(h){this.children.remove(h)},d.prototype.replace=function(h){h instanceof d&&h.moveChildren(this),f.prototype.replace.call(this,h)},d.prototype.split=function(h,g){if(g===void 0&&(g=!1),!g){if(h===0)return this;if(h===this.length())return this.next}var v=this.clone();return this.parent.insertBefore(v,this.next),this.children.forEachAt(h,this.length(),function(b,m,p){b=b.split(m,g),v.appendChild(b)}),v},d.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},d.prototype.update=function(h,g){var v=this,b=[],m=[];h.forEach(function(p){p.target===v.domNode&&p.type==="childList"&&(b.push.apply(b,p.addedNodes),m.push.apply(m,p.removedNodes))}),m.forEach(function(p){if(!(p.parentNode!=null&&p.tagName!=="IFRAME"&&document.body.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var y=l.find(p);y!=null&&(y.domNode.parentNode==null||y.domNode.parentNode===v.domNode)&&y.detach()}}),b.filter(function(p){return p.parentNode==v.domNode}).sort(function(p,y){return p===y?0:p.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(p){var y=null;p.nextSibling!=null&&(y=l.find(p.nextSibling));var _=c(p);(_.next!=y||_.next==null)&&(_.parent!=null&&_.parent.removeChild(v),v.insertBefore(_,y||void 0))})},d}(a.default);function c(f){var d=l.find(f);if(d==null)try{d=l.create(f)}catch{d=l.create(l.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(g){d.domNode.appendChild(g)}),f.parentNode&&f.parentNode.replaceChild(d.domNode,f),d.attach()}return d}r.default=u},function(n,r,i){var o=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])};return function(d,h){f(d,h);function g(){this.constructor=d}d.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12),a=i(31),l=i(17),u=i(1),c=function(f){o(d,f);function d(h){var g=f.call(this,h)||this;return g.attributes=new a.default(g.domNode),g}return d.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},d.prototype.format=function(h,g){var v=u.query(h);v instanceof s.default?this.attributes.attribute(v,g):g&&v!=null&&(h!==this.statics.blotName||this.formats()[h]!==g)&&this.replaceWith(h,g)},d.prototype.formats=function(){var h=this.attributes.values(),g=this.statics.formats(this.domNode);return g!=null&&(h[this.statics.blotName]=g),h},d.prototype.replaceWith=function(h,g){var v=f.prototype.replaceWith.call(this,h,g);return this.attributes.copy(v),v},d.prototype.update=function(h,g){var v=this;f.prototype.update.call(this,h,g),h.some(function(b){return b.target===v.domNode&&b.type==="attributes"})&&this.attributes.build()},d.prototype.wrap=function(h,g){var v=f.prototype.wrap.call(this,h,g);return v instanceof d&&v.statics.scope===this.statics.scope&&this.attributes.move(v),v},d}(l.default);r.default=c},function(n,r,i){var o=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)f.hasOwnProperty(d)&&(c[d]=f[d])};return function(c,f){u(c,f);function d(){this.constructor=c}c.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(30),a=i(1),l=function(u){o(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.value=function(f){return!0},c.prototype.index=function(f,d){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(d,1):-1},c.prototype.position=function(f,d){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return f>0&&(h+=1),[this.parent.domNode,h]},c.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f},c.scope=a.Scope.INLINE_BLOT,c}(s.default);r.default=l},function(n,r,i){var o=i(11),s=i(3),a={attributes:{compose:function(u,c,f){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});var d=s(!0,{},c);f||(d=Object.keys(d).reduce(function(g,v){return d[v]!=null&&(g[v]=d[v]),g},{}));for(var h in u)u[h]!==void 0&&c[h]===void 0&&(d[h]=u[h]);return Object.keys(d).length>0?d:void 0},diff:function(u,c){typeof u!="object"&&(u={}),typeof c!="object"&&(c={});var f=Object.keys(u).concat(Object.keys(c)).reduce(function(d,h){return o(u[h],c[h])||(d[h]=c[h]===void 0?null:c[h]),d},{});return Object.keys(f).length>0?f:void 0},transform:function(u,c,f){if(typeof u!="object")return c;if(typeof c=="object"){if(!f)return c;var d=Object.keys(c).reduce(function(h,g){return u[g]===void 0&&(h[g]=c[g]),h},{});return Object.keys(d).length>0?d:void 0}}},iterator:function(u){return new l(u)},length:function(u){return typeof u.delete=="number"?u.delete:typeof u.retain=="number"?u.retain:typeof u.insert=="string"?u.insert.length:1}};function l(u){this.ops=u,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(u){u||(u=1/0);var c=this.ops[this.index];if(c){var f=this.offset,d=a.length(c);if(u>=d-f?(u=d-f,this.index+=1,this.offset=0):this.offset+=u,typeof c.delete=="number")return{delete:u};var h={};return c.attributes&&(h.attributes=c.attributes),typeof c.retain=="number"?h.retain=u:typeof c.insert=="string"?h.insert=c.insert.substr(f,u):h.insert=c.insert,h}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var u=this.offset,c=this.index,f=this.next(),d=this.ops.slice(this.index);return this.offset=u,this.index=c,[f].concat(d)}else return[]},n.exports=a},function(n,r){var i=function(){function o(v,b){return b!=null&&v instanceof b}var s;try{s=Map}catch{s=function(){}}var a;try{a=Set}catch{a=function(){}}var l;try{l=Promise}catch{l=function(){}}function u(v,b,m,p,y){typeof b=="object"&&(m=b.depth,p=b.prototype,y=b.includeNonEnumerable,b=b.circular);var _=[],w=[],x=typeof Buffer<"u";typeof b>"u"&&(b=!0),typeof m>"u"&&(m=1/0);function E(S,C){if(S===null)return null;if(C===0)return S;var T,R;if(typeof S!="object")return S;if(o(S,s))T=new s;else if(o(S,a))T=new a;else if(o(S,l))T=new l(function(L,k){S.then(function(A){L(E(A,C-1))},function(A){k(E(A,C-1))})});else if(u.__isArray(S))T=[];else if(u.__isRegExp(S))T=new RegExp(S.source,g(S)),S.lastIndex&&(T.lastIndex=S.lastIndex);else if(u.__isDate(S))T=new Date(S.getTime());else{if(x&&Buffer.isBuffer(S))return Buffer.allocUnsafe?T=Buffer.allocUnsafe(S.length):T=new Buffer(S.length),S.copy(T),T;o(S,Error)?T=Object.create(S):typeof p>"u"?(R=Object.getPrototypeOf(S),T=Object.create(R)):(T=Object.create(p),R=p)}if(b){var O=_.indexOf(S);if(O!=-1)return w[O];_.push(S),w.push(T)}o(S,s)&&S.forEach(function(L,k){var A=E(k,C-1),D=E(L,C-1);T.set(A,D)}),o(S,a)&&S.forEach(function(L){var k=E(L,C-1);T.add(k)});for(var N in S){var M;R&&(M=Object.getOwnPropertyDescriptor(R,N)),!(M&&M.set==null)&&(T[N]=E(S[N],C-1))}if(Object.getOwnPropertySymbols)for(var $=Object.getOwnPropertySymbols(S),N=0;N<$.length;N++){var z=$[N],V=Object.getOwnPropertyDescriptor(S,z);V&&!V.enumerable&&!y||(T[z]=E(S[z],C-1),V.enumerable||Object.defineProperty(T,z,{enumerable:!1}))}if(y)for(var H=Object.getOwnPropertyNames(S),N=0;N<H.length;N++){var j=H[N],V=Object.getOwnPropertyDescriptor(S,j);V&&V.enumerable||(T[j]=E(S[j],C-1),Object.defineProperty(T,j,{enumerable:!1}))}return T}return E(v,m)}u.clonePrototype=function(b){if(b===null)return null;var m=function(){};return m.prototype=b,new m};function c(v){return Object.prototype.toString.call(v)}u.__objToStr=c;function f(v){return typeof v=="object"&&c(v)==="[object Date]"}u.__isDate=f;function d(v){return typeof v=="object"&&c(v)==="[object Array]"}u.__isArray=d;function h(v){return typeof v=="object"&&c(v)==="[object RegExp]"}u.__isRegExp=h;function g(v){var b="";return v.global&&(b+="g"),v.ignoreCase&&(b+="i"),v.multiline&&(b+="m"),b}return u.__getRegExpFlags=g,u}();typeof n=="object"&&n.exports&&(n.exports=i)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function T(R,O){var N=[],M=!0,$=!1,z=void 0;try{for(var V=R[Symbol.iterator](),H;!(M=(H=V.next()).done)&&(N.push(H.value),!(O&&N.length===O));M=!0);}catch(j){$=!0,z=j}finally{try{!M&&V.return&&V.return()}finally{if($)throw z}}return N}return function(R,O){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return T(R,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function T(R,O){for(var N=0;N<O.length;N++){var M=O[N];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,M.key,M)}}return function(R,O,N){return O&&T(R.prototype,O),N&&T(R,N),R}}(),a=function T(R,O,N){R===null&&(R=Function.prototype);var M=Object.getOwnPropertyDescriptor(R,O);if(M===void 0){var $=Object.getPrototypeOf(R);return $===null?void 0:T($,O,N)}else{if("value"in M)return M.value;var z=M.get;return z===void 0?void 0:z.call(N)}},l=i(0),u=_(l),c=i(8),f=_(c),d=i(4),h=_(d),g=i(16),v=_(g),b=i(13),m=_(b),p=i(25),y=_(p);function _(T){return T&&T.__esModule?T:{default:T}}function w(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}function x(T,R){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:T}function E(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(T,R):T.__proto__=R)}function S(T){return T instanceof h.default||T instanceof d.BlockEmbed}var C=function(T){E(R,T);function R(O,N){w(this,R);var M=x(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,O));return M.emitter=N.emitter,Array.isArray(N.whitelist)&&(M.whitelist=N.whitelist.reduce(function($,z){return $[z]=!0,$},{})),M.domNode.addEventListener("DOMNodeInserted",function(){}),M.optimize(),M.enable(),M}return s(R,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,M){var $=this.line(N),z=o($,2),V=z[0],H=z[1],j=this.line(N+M),L=o(j,1),k=L[0];if(a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,N,M),k!=null&&V!==k&&H>0){if(V instanceof d.BlockEmbed||k instanceof d.BlockEmbed){this.optimize();return}if(V instanceof m.default){var A=V.newlineIndex(V.length(),!0);if(A>-1&&(V=V.split(A+1),V===k)){this.optimize();return}}else if(k instanceof m.default){var D=k.newlineIndex(0);D>-1&&k.split(D+1)}var B=k.children.head instanceof v.default?null:k.children.head;V.moveChildren(k,B),V.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,M,$,z){this.whitelist!=null&&!this.whitelist[$]||(a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,N,M,$,z),this.optimize())}},{key:"insertAt",value:function(N,M,$){if(!($!=null&&this.whitelist!=null&&!this.whitelist[M])){if(N>=this.length())if($==null||u.default.query(M,u.default.Scope.BLOCK)==null){var z=u.default.create(this.statics.defaultChild);this.appendChild(z),$==null&&M.endsWith(`
1636`)&&(M=M.slice(0,-1)),z.insertAt(0,M,$)}else{var V=u.default.create(M,$);this.appendChild(V)}else a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,N,M,$);this.optimize()}}},{key:"insertBefore",value:function(N,M){if(N.statics.scope===u.default.Scope.INLINE_BLOT){var $=u.default.create(this.statics.defaultChild);$.appendChild(N),N=$}a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,N,M)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(S,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,$=function z(V,H,j){var L=[],k=j;return V.children.forEachAt(H,j,function(A,D,B){S(A)?L.push(A):A instanceof u.default.Container&&(L=L.concat(z(A,D,k))),k-=B}),L};return $(this,N,M)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,N,M),N.length>0&&this.emitter.emit(f.default.events.SCROLL_OPTIMIZE,N,M))}},{key:"path",value:function(N){return a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var M=f.default.sources.USER;typeof N=="string"&&(M=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE,M,N),a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(f.default.events.SCROLL_UPDATE,M,N)}}}]),R}(u.default.Scroll);C.blotName="scroll",C.className="ql-editor",C.tagName="DIV",C.defaultChild="block",C.allowedChildren=[h.default,d.BlockEmbed,y.default],r.default=C},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},s=function(){function I(F,W){var q=[],Y=!0,ie=!1,se=void 0;try{for(var he=F[Symbol.iterator](),ye;!(Y=(ye=he.next()).done)&&(q.push(ye.value),!(W&&q.length===W));Y=!0);}catch(xe){ie=!0,se=xe}finally{try{!Y&&he.return&&he.return()}finally{if(ie)throw se}}return q}return function(F,W){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return I(F,W);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function I(F,W){for(var q=0;q<W.length;q++){var Y=W[q];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(F,Y.key,Y)}}return function(F,W,q){return W&&I(F.prototype,W),q&&I(F,q),F}}(),l=i(21),u=T(l),c=i(11),f=T(c),d=i(3),h=T(d),g=i(2),v=T(g),b=i(20),m=T(b),p=i(0),y=T(p),_=i(5),w=T(_),x=i(10),E=T(x),S=i(9),C=T(S);function T(I){return I&&I.__esModule?I:{default:I}}function R(I,F,W){return F in I?Object.defineProperty(I,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):I[F]=W,I}function O(I,F){if(!(I instanceof F))throw new TypeError("Cannot call a class as a function")}function N(I,F){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:I}function M(I,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);I.prototype=Object.create(F&&F.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(I,F):I.__proto__=F)}var $=(0,E.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=function(I){M(F,I),a(F,null,[{key:"match",value:function(q,Y){return Y=U(Y),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ie){return!!Y[ie]!==q[ie]&&Y[ie]!==null})?!1:Y.key===(q.which||q.keyCode)}}]);function F(W,q){O(this,F);var Y=N(this,(F.__proto__||Object.getPrototypeOf(F)).call(this,W,q));return Y.bindings={},Object.keys(Y.options.bindings).forEach(function(ie){ie==="list autofill"&&W.scroll.whitelist!=null&&!W.scroll.whitelist.list||Y.options.bindings[ie]&&Y.addBinding(Y.options.bindings[ie])}),Y.addBinding({key:F.keys.ENTER,shiftKey:null},A),Y.addBinding({key:F.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Y.addBinding({key:F.keys.BACKSPACE},{collapsed:!0},j),Y.addBinding({key:F.keys.DELETE},{collapsed:!0},L)):(Y.addBinding({key:F.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},j),Y.addBinding({key:F.keys.DELETE},{collapsed:!0,suffix:/^.?$/},L)),Y.addBinding({key:F.keys.BACKSPACE},{collapsed:!1},k),Y.addBinding({key:F.keys.DELETE},{collapsed:!1},k),Y.addBinding({key:F.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},j),Y.listen(),Y}return a(F,[{key:"addBinding",value:function(q){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},se=U(q);if(se==null||se.key==null)return $.warn("Attempted to add invalid keyboard binding",se);typeof Y=="function"&&(Y={handler:Y}),typeof ie=="function"&&(ie={handler:ie}),se=(0,h.default)(se,Y,ie),this.bindings[se.key]=this.bindings[se.key]||[],this.bindings[se.key].push(se)}},{key:"listen",value:function(){var q=this;this.quill.root.addEventListener("keydown",function(Y){if(!Y.defaultPrevented){var ie=Y.which||Y.keyCode,se=(q.bindings[ie]||[]).filter(function(lt){return F.match(Y,lt)});if(se.length!==0){var he=q.quill.getSelection();if(!(he==null||!q.quill.hasFocus())){var ye=q.quill.getLine(he.index),xe=s(ye,2),Be=xe[0],Me=xe[1],Q=q.quill.getLeaf(he.index),J=s(Q,2),oe=J[0],ae=J[1],ee=he.length===0?[oe,ae]:q.quill.getLeaf(he.index+he.length),Pe=s(ee,2),Re=Pe[0],Ce=Pe[1],Bt=oe instanceof y.default.Text?oe.value().slice(0,ae):"",bn=Re instanceof y.default.Text?Re.value().slice(Ce):"",Ge={collapsed:he.length===0,empty:he.length===0&&Be.length()<=1,format:q.quill.getFormat(he),offset:Me,prefix:Bt,suffix:bn},Gd=se.some(function(lt){if(lt.collapsed!=null&&lt.collapsed!==Ge.collapsed||lt.empty!=null&&lt.empty!==Ge.empty||lt.offset!=null&&lt.offset!==Ge.offset)return!1;if(Array.isArray(lt.format)){if(lt.format.every(function(jn){return Ge.format[jn]==null}))return!1}else if(o(lt.format)==="object"&&!Object.keys(lt.format).every(function(jn){return lt.format[jn]===!0?Ge.format[jn]!=null:lt.format[jn]===!1?Ge.format[jn]==null:(0,f.default)(lt.format[jn],Ge.format[jn])}))return!1;return lt.prefix!=null&&!lt.prefix.test(Ge.prefix)||lt.suffix!=null&&!lt.suffix.test(Ge.suffix)?!1:lt.handler.call(q,he,Ge)!==!0});Gd&&Y.preventDefault()}}}})}}]),F}(C.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(F,W){if(W.collapsed&&W.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(F,W){if(W.collapsed&&W.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(F,W){W.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):W.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":D(!0),"outdent code-block":D(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(F){this.quill.deleteText(F.index-1,1,w.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(F){this.quill.history.cutoff();var W=new v.default().retain(F.index).delete(F.length).insert("	");this.quill.updateContents(W,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index+1,w.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(F,W){this.quill.format("list",!1,w.default.sources.USER),W.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(F){var W=this.quill.getLine(F.index),q=s(W,2),Y=q[0],ie=q[1],se=(0,h.default)({},Y.formats(),{list:"checked"}),he=new v.default().retain(F.index).insert(`
1637`,se).retain(Y.length()-ie-1).retain(1,{list:"unchecked"});this.quill.updateContents(he,w.default.sources.USER),this.quill.setSelection(F.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(F,W){var q=this.quill.getLine(F.index),Y=s(q,2),ie=Y[0],se=Y[1],he=new v.default().retain(F.index).insert(`
1638`,W.format).retain(ie.length()-se-1).retain(1,{header:null});this.quill.updateContents(he,w.default.sources.USER),this.quill.setSelection(F.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(F,W){var q=W.prefix.length,Y=this.quill.getLine(F.index),ie=s(Y,2),se=ie[0],he=ie[1];if(he>q)return!0;var ye=void 0;switch(W.prefix.trim()){case"[]":case"[ ]":ye="unchecked";break;case"[x]":ye="checked";break;case"-":case"*":ye="bullet";break;default:ye="ordered"}this.quill.insertText(F.index," ",w.default.sources.USER),this.quill.history.cutoff();var xe=new v.default().retain(F.index-he).delete(q+1).retain(se.length()-2-he).retain(1,{list:ye});this.quill.updateContents(xe,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(F.index-q,w.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(F){var W=this.quill.getLine(F.index),q=s(W,2),Y=q[0],ie=q[1],se=new v.default().retain(F.index+Y.length()-ie-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(se,w.default.sources.USER)}},"embed left":H(V.keys.LEFT,!1),"embed left shift":H(V.keys.LEFT,!0),"embed right":H(V.keys.RIGHT,!1),"embed right shift":H(V.keys.RIGHT,!0)}};function H(I,F){var W,q=I===V.keys.LEFT?"prefix":"suffix";return W={key:I,shiftKey:F,altKey:null},R(W,q,/^$/),R(W,"handler",function(ie){var se=ie.index;I===V.keys.RIGHT&&(se+=ie.length+1);var he=this.quill.getLeaf(se),ye=s(he,1),xe=ye[0];return xe instanceof y.default.Embed?(I===V.keys.LEFT?F?this.quill.setSelection(ie.index-1,ie.length+1,w.default.sources.USER):this.quill.setSelection(ie.index-1,w.default.sources.USER):F?this.quill.setSelection(ie.index,ie.length+1,w.default.sources.USER):this.quill.setSelection(ie.index+ie.length+1,w.default.sources.USER),!1):!0}),W}function j(I,F){if(!(I.index===0||this.quill.getLength()<=1)){var W=this.quill.getLine(I.index),q=s(W,1),Y=q[0],ie={};if(F.offset===0){var se=this.quill.getLine(I.index-1),he=s(se,1),ye=he[0];if(ye!=null&&ye.length()>1){var xe=Y.formats(),Be=this.quill.getFormat(I.index-1,1);ie=m.default.attributes.diff(xe,Be)||{}}}var Me=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(F.prefix)?2:1;this.quill.deleteText(I.index-Me,Me,w.default.sources.USER),Object.keys(ie).length>0&&this.quill.formatLine(I.index-Me,Me,ie,w.default.sources.USER),this.quill.focus()}}function L(I,F){var W=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(F.suffix)?2:1;if(!(I.index>=this.quill.getLength()-W)){var q={},Y=0,ie=this.quill.getLine(I.index),se=s(ie,1),he=se[0];if(F.offset>=he.length()-1){var ye=this.quill.getLine(I.index+1),xe=s(ye,1),Be=xe[0];if(Be){var Me=he.formats(),Q=this.quill.getFormat(I.index,1);q=m.default.attributes.diff(Me,Q)||{},Y=Be.length()}}this.quill.deleteText(I.index,W,w.default.sources.USER),Object.keys(q).length>0&&this.quill.formatLine(I.index+Y-1,W,q,w.default.sources.USER)}}function k(I){var F=this.quill.getLines(I),W={};if(F.length>1){var q=F[0].formats(),Y=F[F.length-1].formats();W=m.default.attributes.diff(Y,q)||{}}this.quill.deleteText(I,w.default.sources.USER),Object.keys(W).length>0&&this.quill.formatLine(I.index,1,W,w.default.sources.USER),this.quill.setSelection(I.index,w.default.sources.SILENT),this.quill.focus()}function A(I,F){var W=this;I.length>0&&this.quill.scroll.deleteAt(I.index,I.length);var q=Object.keys(F.format).reduce(function(Y,ie){return y.default.query(ie,y.default.Scope.BLOCK)&&!Array.isArray(F.format[ie])&&(Y[ie]=F.format[ie]),Y},{});this.quill.insertText(I.index,`
1639`,q,w.default.sources.USER),this.quill.setSelection(I.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(F.format).forEach(function(Y){q[Y]==null&&(Array.isArray(F.format[Y])||Y!=="link"&&W.quill.format(Y,F.format[Y],w.default.sources.USER))})}function D(I){return{key:V.keys.TAB,shiftKey:!I,format:{"code-block":!0},handler:function(W){var q=y.default.query("code-block"),Y=W.index,ie=W.length,se=this.quill.scroll.descendant(q,Y),he=s(se,2),ye=he[0],xe=he[1];if(ye!=null){var Be=this.quill.getIndex(ye),Me=ye.newlineIndex(xe,!0)+1,Q=ye.newlineIndex(Be+xe+ie),J=ye.domNode.textContent.slice(Me,Q).split(`
1640`);xe=0,J.forEach(function(oe,ae){I?(ye.insertAt(Me+xe,q.TAB),xe+=q.TAB.length,ae===0?Y+=q.TAB.length:ie+=q.TAB.length):oe.startsWith(q.TAB)&&(ye.deleteAt(Me+xe,q.TAB.length),xe-=q.TAB.length,ae===0?Y-=q.TAB.length:ie-=q.TAB.length),xe+=oe.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(Y,ie,w.default.sources.SILENT)}}}}function B(I){return{key:I[0].toUpperCase(),shortKey:!0,handler:function(W,q){this.quill.format(I,!q.format[I],w.default.sources.USER)}}}function U(I){if(typeof I=="string"||typeof I=="number")return U({key:I});if((typeof I>"u"?"undefined":o(I))==="object"&&(I=(0,u.default)(I,!1)),typeof I.key=="string")if(V.keys[I.key.toUpperCase()]!=null)I.key=V.keys[I.key.toUpperCase()];else if(I.key.length===1)I.key=I.key.toUpperCase().charCodeAt(0);else return null;return I.shortKey&&(I[z]=I.shortKey,delete I.shortKey),I}r.default=V,r.SHORTKEY=z},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function m(p,y){var _=[],w=!0,x=!1,E=void 0;try{for(var S=p[Symbol.iterator](),C;!(w=(C=S.next()).done)&&(_.push(C.value),!(y&&_.length===y));w=!0);}catch(T){x=!0,E=T}finally{try{!w&&S.return&&S.return()}finally{if(x)throw E}}return _}return function(p,y){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return m(p,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function m(p,y,_){p===null&&(p=Function.prototype);var w=Object.getOwnPropertyDescriptor(p,y);if(w===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:m(x,y,_)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(_)}},a=function(){function m(p,y){for(var _=0;_<y.length;_++){var w=y[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(p,w.key,w)}}return function(p,y,_){return y&&m(p.prototype,y),_&&m(p,_),p}}(),l=i(0),u=d(l),c=i(7),f=d(c);function d(m){return m&&m.__esModule?m:{default:m}}function h(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function g(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function v(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var b=function(m){v(p,m),a(p,null,[{key:"value",value:function(){}}]);function p(y,_){h(this,p);var w=g(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,y));return w.selection=_,w.textNode=document.createTextNode(p.CONTENTS),w.domNode.appendChild(w.textNode),w._length=0,w}return a(p,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(_,w){if(this._length!==0)return s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"format",this).call(this,_,w);for(var x=this,E=0;x!=null&&x.statics.scope!==u.default.Scope.BLOCK_BLOT;)E+=x.offset(x.parent),x=x.parent;x!=null&&(this._length=p.CONTENTS.length,x.optimize(),x.formatAt(E,p.CONTENTS.length,_,w),this._length=0)}},{key:"index",value:function(_,w){return _===this.textNode?0:s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"index",this).call(this,_,w)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var _=this.textNode,w=this.selection.getNativeRange(),x=void 0,E=void 0,S=void 0;if(w!=null&&w.start.node===_&&w.end.node===_){var C=[_,w.start.offset,w.end.offset];x=C[0],E=C[1],S=C[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==p.CONTENTS){var T=this.textNode.data.split(p.CONTENTS).join("");this.next instanceof f.default?(x=this.next.domNode,this.next.insertAt(0,T),this.textNode.data=p.CONTENTS):(this.textNode.data=T,this.parent.insertBefore(u.default.create(this.textNode),this),this.textNode=document.createTextNode(p.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var R=[E,S].map(function(N){return Math.max(0,Math.min(x.data.length,N-1))}),O=o(R,2);return E=O[0],S=O[1],{startNode:x,startOffset:E,endNode:x,endOffset:S}}}}},{key:"update",value:function(_,w){var x=this;if(_.some(function(S){return S.type==="characterData"&&S.target===x.textNode})){var E=this.restore();E&&(w.range=E)}}},{key:"value",value:function(){return""}}]),p}(u.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),s=u(o),a=i(4),l=u(a);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function d(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=function(g){d(v,g);function v(){return c(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(s.default.Container);h.allowedChildren=[l.default,a.BlockEmbed,h],r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var o=function(){function b(m,p){for(var y=0;y<p.length;y++){var _=p[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,p,y){return p&&b(m.prototype,p),y&&b(m,y),m}}(),s=function b(m,p,y){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,p);if(_===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:b(w,p,y)}else{if("value"in _)return _.value;var x=_.get;return x===void 0?void 0:x.call(y)}},a=i(0),l=u(a);function u(b){return b&&b.__esModule?b:{default:b}}function c(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function f(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var h=function(b){d(m,b);function m(){return c(this,m),f(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"value",value:function(y){var _=s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,y);return _.startsWith("rgb(")?(_=_.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+_.split(",").map(function(w){return("00"+parseInt(w).toString(16)).slice(-2)}).join("")):_}}]),m}(l.default.Attributor.Style),g=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),v=new h("color","color",{scope:l.default.Scope.INLINE});r.ColorAttributor=h,r.ColorClass=g,r.ColorStyle=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var o=function(){function v(b,m){for(var p=0;p<m.length;p++){var y=m[p];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(b,y.key,y)}}return function(b,m,p){return m&&v(b.prototype,m),p&&v(b,p),b}}(),s=function v(b,m,p){b===null&&(b=Function.prototype);var y=Object.getOwnPropertyDescriptor(b,m);if(y===void 0){var _=Object.getPrototypeOf(b);return _===null?void 0:v(_,m,p)}else{if("value"in y)return y.value;var w=y.get;return w===void 0?void 0:w.call(p)}},a=i(6),l=u(a);function u(v){return v&&v.__esModule?v:{default:v}}function c(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function f(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function d(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=function(v){d(b,v);function b(){return c(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"format",value:function(p,y){if(p!==this.statics.blotName||!y)return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,p,y);y=this.constructor.sanitize(y),this.domNode.setAttribute("href",y)}}],[{key:"create",value:function(p){var y=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,p);return p=this.sanitize(p),y.setAttribute("href",p),y.setAttribute("rel","noopener noreferrer"),y.setAttribute("target","_blank"),y}},{key:"formats",value:function(p){return p.getAttribute("href")}},{key:"sanitize",value:function(p){return g(p,this.PROTOCOL_WHITELIST)?p:this.SANITIZED_URL}}]),b}(l.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function g(v,b){var m=document.createElement("a");m.href=v;var p=m.href.slice(0,m.href.indexOf(":"));return b.indexOf(p)>-1}r.default=h,r.sanitize=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},s=function(){function b(m,p){for(var y=0;y<p.length;y++){var _=p[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,p,y){return p&&b(m.prototype,p),y&&b(m,y),m}}(),a=i(23),l=f(a),u=i(107),c=f(u);function f(b){return b&&b.__esModule?b:{default:b}}function d(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}var h=0;function g(b,m){b.setAttribute(m,b.getAttribute(m)!=="true")}var v=function(){function b(m){var p=this;d(this,b),this.select=m,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){p.togglePicker()}),this.label.addEventListener("keydown",function(y){switch(y.keyCode){case l.default.keys.ENTER:p.togglePicker();break;case l.default.keys.ESCAPE:p.escape(),y.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return s(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),g(this.label,"aria-expanded"),g(this.options,"aria-hidden")}},{key:"buildItem",value:function(p){var y=this,_=document.createElement("span");return _.tabIndex="0",_.setAttribute("role","button"),_.classList.add("ql-picker-item"),p.hasAttribute("value")&&_.setAttribute("data-value",p.getAttribute("value")),p.textContent&&_.setAttribute("data-label",p.textContent),_.addEventListener("click",function(){y.selectItem(_,!0)}),_.addEventListener("keydown",function(w){switch(w.keyCode){case l.default.keys.ENTER:y.selectItem(_,!0),w.preventDefault();break;case l.default.keys.ESCAPE:y.escape(),w.preventDefault();break}}),_}},{key:"buildLabel",value:function(){var p=document.createElement("span");return p.classList.add("ql-picker-label"),p.innerHTML=c.default,p.tabIndex="0",p.setAttribute("role","button"),p.setAttribute("aria-expanded","false"),this.container.appendChild(p),p}},{key:"buildOptions",value:function(){var p=this,y=document.createElement("span");y.classList.add("ql-picker-options"),y.setAttribute("aria-hidden","true"),y.tabIndex="-1",y.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",y.id),this.options=y,[].slice.call(this.select.options).forEach(function(_){var w=p.buildItem(_);y.appendChild(w),_.selected===!0&&p.selectItem(w)}),this.container.appendChild(y)}},{key:"buildPicker",value:function(){var p=this;[].slice.call(this.select.attributes).forEach(function(y){p.container.setAttribute(y.name,y.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var p=this;this.close(),setTimeout(function(){return p.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","fal
1640se"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=this.container.querySelector(".ql-selected");if(p!==_&&(_!=null&&_.classList.remove("ql-selected"),p!=null&&(p.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(p.parentNode.children,p),p.hasAttribute("data-value")?this.label.setAttribute("data-value",p.getAttribute("data-value")):this.label.removeAttribute("data-value"),p.hasAttribute("data-label")?this.label.setAttribute("data-label",p.getAttribute("data-label")):this.label.removeAttribute("data-label"),y))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var p=void 0;if(this.select.selectedIndex>-1){var y=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];p=this.select.options[this.select.selectedIndex],this.selectItem(y)}else this.selectItem(null);var _=p!=null&&p!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",_)}}]),b}();r.default=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(0),s=$(o),a=i(5),l=$(a),u=i(4),c=$(u),f=i(16),d=$(f),h=i(25),g=$(h),v=i(24),b=$(v),m=i(35),p=$(m),y=i(6),_=$(y),w=i(22),x=$(w),E=i(7),S=$(E),C=i(55),T=$(C),R=i(42),O=$(R),N=i(23),M=$(N);function $(z){return z&&z.__esModule?z:{default:z}}l.default.register({"blots/block":c.default,"blots/block/embed":u.BlockEmbed,"blots/break":d.default,"blots/container":g.default,"blots/cursor":b.default,"blots/embed":p.default,"blots/inline":_.default,"blots/scroll":x.default,"blots/text":S.default,"modules/clipboard":T.default,"modules/history":O.default,"modules/keyboard":M.default}),s.default.register(c.default,d.default,b.default,_.default,x.default,S.default),r.default=l.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(1),s=function(){function a(l){this.domNode=l,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(a.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),a.create=function(l){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var u;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?u=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?u=document.createElement(l):u=document.createElement(this.tagName[0])):u=document.createElement(this.tagName),this.className&&u.classList.add(this.className),u},a.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},a.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return o.create(l)},a.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},a.prototype.deleteAt=function(l,u){var c=this.isolate(l,u);c.remove()},a.prototype.formatAt=function(l,u,c,f){var d=this.isolate(l,u);if(o.query(c,o.Scope.BLOT)!=null&&f)d.wrap(c,f);else if(o.query(c,o.Scope.ATTRIBUTE)!=null){var h=o.create(this.statics.scope);d.wrap(h),h.format(c,f)}},a.prototype.insertAt=function(l,u,c){var f=c==null?o.create("text",u):o.create(u,c),d=this.split(l);this.parent.insertBefore(f,d)},a.prototype.insertInto=function(l,u){u===void 0&&(u=null),this.parent!=null&&this.parent.children.remove(this);var c=null;l.children.insertBefore(this,u),u!=null&&(c=u.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=c)&&l.domNode.insertBefore(this.domNode,c),this.parent=l,this.attach()},a.prototype.isolate=function(l,u){var c=this.split(l);return c.split(u),c},a.prototype.length=function(){return 1},a.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},a.prototype.optimize=function(l){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},a.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},a.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},a.prototype.replaceWith=function(l,u){var c=typeof l=="string"?o.create(l,u):l;return c.replace(this),c},a.prototype.split=function(l,u){return l===0?this:this.next},a.prototype.update=function(l,u){},a.prototype.wrap=function(l,u){var c=typeof l=="string"?o.create(l,u):l;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},a.blotName="abstract",a}();r.default=s}
vendor: 97,745 bytes, lines 1640-1650
1640,function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(12),s=i(32),a=i(33),l=i(1),u=function(){function c(f){this.attributes={},this.domNode=f,this.build()}return c.prototype.attribute=function(f,d){d?f.add(this.domNode,d)&&(f.value(this.domNode)!=null?this.attributes[f.attrName]=f:delete this.attributes[f.attrName]):(f.remove(this.domNode),delete this.attributes[f.attrName])},c.prototype.build=function(){var f=this;this.attributes={};var d=o.default.keys(this.domNode),h=s.default.keys(this.domNode),g=a.default.keys(this.domNode);d.concat(h).concat(g).forEach(function(v){var b=l.query(v,l.Scope.ATTRIBUTE);b instanceof o.default&&(f.attributes[b.attrName]=b)})},c.prototype.copy=function(f){var d=this;Object.keys(this.attributes).forEach(function(h){var g=d.attributes[h].value(d.domNode);f.format(h,g)})},c.prototype.move=function(f){var d=this;this.copy(f),Object.keys(this.attributes).forEach(function(h){d.attributes[h].remove(d.domNode)}),this.attributes={}},c.prototype.values=function(){var f=this;return Object.keys(this.attributes).reduce(function(d,h){return d[h]=f.attributes[h].value(f.domNode),d},{})},c}();r.default=u},function(n,r,i){var o=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)f.hasOwnProperty(d)&&(c[d]=f[d])};return function(c,f){u(c,f);function d(){this.constructor=c}c.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12);function a(u,c){var f=u.getAttribute("class")||"";return f.split(/\s+/).filter(function(d){return d.indexOf(c+"-")===0})}var l=function(u){o(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(d){return d.split("-").slice(0,-1).join("-")})},c.prototype.add=function(f,d){return this.canAdd(f,d)?(this.remove(f),f.classList.add(this.keyName+"-"+d),!0):!1},c.prototype.remove=function(f){var d=a(f,this.keyName);d.forEach(function(h){f.classList.remove(h)}),f.classList.length===0&&f.removeAttribute("class")},c.prototype.value=function(f){var d=a(f,this.keyName)[0]||"",h=d.slice(this.keyName.length+1);return this.canAdd(f,h)?h:""},c}(s.default);r.default=l},function(n,r,i){var o=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)f.hasOwnProperty(d)&&(c[d]=f[d])};return function(c,f){u(c,f);function d(){this.constructor=c}c.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(12);function a(u){var c=u.split("-"),f=c.slice(1).map(function(d){return d[0].toUpperCase()+d.slice(1)}).join("");return c[0]+f}var l=function(u){o(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(d){var h=d.split(":");return h[0].trim()})},c.prototype.add=function(f,d){return this.canAdd(f,d)?(f.style[a(this.keyName)]=d,!0):!1},c.prototype.remove=function(f){f.style[a(this.keyName)]="",f.getAttribute("style")||f.removeAttribute("style")},c.prototype.value=function(f){var d=f.style[a(this.keyName)];return this.canAdd(f,d)?d:""},c}(s.default);r.default=l},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function l(u,c){for(var f=0;f<c.length;f++){var d=c[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,c,f){return c&&l(u.prototype,c),f&&l(u,f),u}}();function s(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var a=function(){function l(u,c){s(this,l),this.quill=u,this.options=c,this.modules={}}return o(l,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(f){c.modules[f]==null&&c.addModule(f)})}},{key:"addModule",value:function(c){var f=this.quill.constructor.import("modules/"+c);return this.modules[c]=new f(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),l}();a.DEFAULTS={modules:{}},a.themes={default:a},r.default=a},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function m(p,y){for(var _=0;_<y.length;_++){var w=y[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(p,w.key,w)}}return function(p,y,_){return y&&m(p.prototype,y),_&&m(p,_),p}}(),s=function m(p,y,_){p===null&&(p=Function.prototype);var w=Object.getOwnPropertyDescriptor(p,y);if(w===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:m(x,y,_)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(_)}},a=i(0),l=f(a),u=i(7),c=f(u);function f(m){return m&&m.__esModule?m:{default:m}}function d(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function h(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function g(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var v="\uFEFF",b=function(m){g(p,m);function p(y){d(this,p);var _=h(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,y));return _.contentNode=document.createElement("span"),_.contentNode.setAttribute("contenteditable",!1),[].slice.call(_.domNode.childNodes).forEach(function(w){_.contentNode.appendChild(w)}),_.leftGuard=document.createTextNode(v),_.rightGuard=document.createTextNode(v),_.domNode.appendChild(_.leftGuard),_.domNode.appendChild(_.contentNode),_.domNode.appendChild(_.rightGuard),_}return o(p,[{key:"index",value:function(_,w){return _===this.leftGuard?0:_===this.rightGuard?1:s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"index",this).call(this,_,w)}},{key:"restore",value:function(_){var w=void 0,x=void 0,E=_.data.split(v).join("");if(_===this.leftGuard)if(this.prev instanceof c.default){var S=this.prev.length();this.prev.insertAt(S,E),w={startNode:this.prev.domNode,startOffset:S+E.length}}else x=document.createTextNode(E),this.parent.insertBefore(l.default.create(x),this),w={startNode:x,startOffset:E.length};else _===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,E),w={startNode:this.next.domNode,startOffset:E.length}):(x=document.createTextNode(E),this.parent.insertBefore(l.default.create(x),this.next),w={startNode:x,startOffset:E.length}));return _.data=v,w}},{key:"update",value:function(_,w){var x=this;_.forEach(function(E){if(E.type==="characterData"&&(E.target===x.leftGuard||E.target===x.rightGuard)){var S=x.restore(E.target);S&&(w.range=S)}})}}]),p}(l.default.Embed);r.default=b},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var o=i(0),s=a(o);function a(d){return d&&d.__esModule?d:{default:d}}var l={scope:s.default.Scope.BLOCK,whitelist:["right","center","justify"]},u=new s.default.Attributor.Attribute("align","align",l),c=new s.default.Attributor.Class("align","ql-align",l),f=new s.default.Attributor.Style("align","text-align",l);r.AlignAttribute=u,r.AlignClass=c,r.AlignStyle=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var o=i(0),s=l(o),a=i(26);function l(f){return f&&f.__esModule?f:{default:f}}var u=new s.default.Attributor.Class("background","ql-bg",{scope:s.default.Scope.INLINE}),c=new a.ColorAttributor("background","background-color",{scope:s.default.Scope.INLINE});r.BackgroundClass=u,r.BackgroundStyle=c},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var o=i(0),s=a(o);function a(d){return d&&d.__esModule?d:{default:d}}var l={scope:s.default.Scope.BLOCK,whitelist:["rtl"]},u=new s.default.Attributor.Attribute("direction","dir",l),c=new s.default.Attributor.Class("direction","ql-direction",l),f=new s.default.Attributor.Style("direction","direction",l);r.DirectionAttribute=u,r.DirectionClass=c,r.DirectionStyle=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var o=function(){function m(p,y){for(var _=0;_<y.length;_++){var w=y[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(p,w.key,w)}}return function(p,y,_){return y&&m(p.prototype,y),_&&m(p,_),p}}(),s=function m(p,y,_){p===null&&(p=Function.prototype);var w=Object.getOwnPropertyDescriptor(p,y);if(w===void 0){var x=Object.getPrototypeOf(p);return x===null?void 0:m(x,y,_)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(_)}},a=i(0),l=u(a);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function f(m,p){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:m}function d(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(m,p):m.__proto__=p)}var h={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},g=new l.default.Attributor.Class("font","ql-font",h),v=function(m){d(p,m);function p(){return c(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,[{key:"value",value:function(_){return s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"value",this).call(this,_).replace(/["']/g,"")}}]),p}(l.default.Attributor.Style),b=new v("font","font-family",h);r.FontStyle=b,r.FontClass=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var o=i(0),s=a(o);function a(c){return c&&c.__esModule?c:{default:c}}var l=new s.default.Attributor.Class("size","ql-size",{scope:s.default.Scope.INLINE,whitelist:["small","large","huge"]}),u=new s.default.Attributor.Style("size","font-size",{scope:s.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=l,r.SizeStyle=u},function(n,r,i){n.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var o=function(){function y(_,w){for(var x=0;x<w.length;x++){var E=w[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}return function(_,w,x){return w&&y(_.prototype,w),x&&y(_,x),_}}(),s=i(0),a=d(s),l=i(5),u=d(l),c=i(9),f=d(c);function d(y){return y&&y.__esModule?y:{default:y}}function h(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function g(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:y}function v(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}var b=function(y){v(_,y);function _(w,x){h(this,_);var E=g(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w,x));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(u.default.events.EDITOR_CHANGE,function(S,C,T,R){S!==u.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||R===u.default.sources.USER?E.record(C,T):E.transform(C))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return o(_,[{key:"change",value:function(x,E){if(this.stack[x].length!==0){var S=this.stack[x].pop();this.stack[E].push(S),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(S[x],u.default.sources.USER),this.ignoreChange=!1;var C=p(S[x]);this.quill.setSelection(C)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(x,E){if(x.ops.length!==0){this.stack.redo=[];var S=this.quill.getContents().diff(E),C=Date.now();if(this.lastRecorded+this.options.delay>C&&this.stack.undo.length>0){var T=this.stack.undo.pop();S=S.compose(T.undo),x=T.redo.compose(x)}else this.lastRecorded=C;this.stack.undo.push({redo:x,undo:S}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(x){this.stack.undo.forEach(function(E){E.undo=x.transform(E.undo,!0),E.redo=x.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=x.transform(E.undo,!0),E.redo=x.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),_}(f.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(y){var _=y.ops[y.ops.length-1];return _==null?!1:_.insert!=null?typeof _.insert=="string"&&_.insert.endsWith(`
1641`):_.attributes!=null?Object.keys(_.attributes).some(function(w){return a.default.query(w,a.default.Scope.BLOCK)!=null}):!1}function p(y){var _=y.reduce(function(x,E){return x+=E.delete||0,x},0),w=y.length()-_;return m(y)&&(w-=1),w}r.default=b,r.getLastChangeIndex=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var o=function(){function A(D,B){for(var U=0;U<B.length;U++){var I=B[U];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(D,I.key,I)}}return function(D,B,U){return B&&A(D.prototype,B),U&&A(D,U),D}}(),s=function A(D,B,U){D===null&&(D=Function.prototype);var I=Object.getOwnPropertyDescriptor(D,B);if(I===void 0){var F=Object.getPrototypeOf(D);return F===null?void 0:A(F,B,U)}else{if("value"in I)return I.value;var W=I.get;return W===void 0?void 0:W.call(U)}},a=i(3),l=C(a),u=i(2),c=C(u),f=i(8),d=C(f),h=i(23),g=C(h),v=i(34),b=C(v),m=i(59),p=C(m),y=i(60),_=C(y),w=i(28),x=C(w),E=i(61),S=C(E);function C(A){return A&&A.__esModule?A:{default:A}}function T(A,D){if(!(A instanceof D))throw new TypeError("Cannot call a class as a function")}function R(A,D){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:A}function O(A,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);A.prototype=Object.create(D&&D.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(A,D):A.__proto__=D)}var N=[!1,"center","right","justify"],M=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],$=[!1,"serif","monospace"],z=["1","2","3",!1],V=["small",!1,"large","huge"],H=function(A){O(D,A);function D(B,U){T(this,D);var I=R(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,B,U)),F=function W(q){if(!document.body.contains(B.root))return document.body.removeEventListener("click",W);I.tooltip!=null&&!I.tooltip.root.contains(q.target)&&document.activeElement!==I.tooltip.textbox&&!I.quill.hasFocus()&&I.tooltip.hide(),I.pickers!=null&&I.pickers.forEach(function(Y){Y.container.contains(q.target)||Y.close()})};return B.emitter.listenDOM("click",document.body,F),I}return o(D,[{key:"addModule",value:function(U){var I=s(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"addModule",this).call(this,U);return U==="toolbar"&&this.extendToolbar(I),I}},{key:"buildButtons",value:function(U,I){U.forEach(function(F){var W=F.getAttribute("class")||"";W.split(/\s+/).forEach(function(q){if(q.startsWith("ql-")&&(q=q.slice(3),I[q]!=null))if(q==="direction")F.innerHTML=I[q][""]+I[q].rtl;else if(typeof I[q]=="string")F.innerHTML=I[q];else{var Y=F.value||"";Y!=null&&I[q][Y]&&(F.innerHTML=I[q][Y])}})})}},{key:"buildPickers",value:function(U,I){var F=this;this.pickers=U.map(function(q){if(q.classList.contains("ql-align"))return q.querySelector("option")==null&&k(q,N),new _.default(q,I.align);if(q.classList.contains("ql-background")||q.classList.contains("ql-color")){var Y=q.classList.contains("ql-background")?"background":"color";return q.querySelector("option")==null&&k(q,M,Y==="background"?"#ffffff":"#000000"),new p.default(q,I[Y])}else return q.querySelector("option")==null&&(q.classList.contains("ql-font")?k(q,$):q.classList.contains("ql-header")?k(q,z):q.classList.contains("ql-size")&&k(q,V)),new x.default(q)});var W=function(){F.pickers.forEach(function(Y){Y.update()})};this.quill.on(d.default.events.EDITOR_CHANGE,W)}}]),D}(b.default);H.DEFAULTS=(0,l.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var D=this,B=this.container.querySelector("input.ql-image[type=file]");B==null&&(B=document.createElement("input"),B.setAttribute("type","file"),B.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),B.classList.add("ql-image"),B.addEventListener("change",function(){if(B.files!=null&&B.files[0]!=null){var U=new FileReader;U.onload=function(I){var F=D.quill.getSelection(!0);D.quill.updateContents(new c.default().retain(F.index).delete(F.length).insert({image:I.target.result}),d.default.sources.USER),D.quill.setSelection(F.index+1,d.default.sources.SILENT),B.value=""},U.readAsDataURL(B.files[0])}}),this.container.appendChild(B)),B.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var j=function(A){O(D,A);function D(B,U){T(this,D);var I=R(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,B,U));return I.textbox=I.root.querySelector('input[type="text"]'),I.listen(),I}return o(D,[{key:"listen",value:function(){var U=this;this.textbox.addEventListener("keydown",function(I){g.default.match(I,"enter")?(U.save(),I.preventDefault()):g.default.match(I,"escape")&&(U.cancel(),I.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),I!=null?this.textbox.value=I:U!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+U)||""),this.root.setAttribute("data-mode",U)}},{key:"restoreFocus",value:function(){var U=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=U}},{key:"save",value:function(){var U=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var I=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",U,d.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",U,d.default.sources.USER)),this.quill.root.scrollTop=I;break}case"video":U=L(U);case"formula":{if(!U)break;var F=this.quill.getSelection(!0);if(F!=null){var W=F.index+F.length;this.quill.insertEmbed(W,this.root.getAttribute("data-mode"),U,d.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(W+1," ",d.default.sources.USER),this.quill.setSelection(W+2,d.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),D}(S.default);function L(A){var D=A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return D?(D[1]||"https")+"://www.youtube.com/embed/"+D[2]+"?showinfo=0":(D=A.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(D[1]||"https")+"://player.vimeo.com/video/"+D[2]+"/":A}function k(A,D){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;D.forEach(function(U){var I=document.createElement("option");U===B?I.setAttribute("selected","selected"):I.setAttribute("value",U),A.appendChild(I)})}r.BaseTooltip=j,r.default=H},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function s(){this.head=this.tail=null,this.length=0}return s.prototype.append=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];this.insertBefore(a[0],null),a.length>1&&this.append.apply(this,a.slice(1))},s.prototype.contains=function(a){for(var l,u=this.iterator();l=u();)if(l===a)return!0;return!1},s.prototype.insertBefore=function(a,l){a&&(a.next=l,l!=null?(a.prev=l.prev,l.prev!=null&&(l.prev.next=a),l.prev=a,l===this.head&&(this.head=a)):this.tail!=null?(this.tail.next=a,a.prev=this.tail,this.tail=a):(a.prev=null,this.head=this.tail=a),this.length+=1)},s.prototype.offset=function(a){for(var l=0,u=this.head;u!=null;){if(u===a)return l;l+=u.length(),u=u.next}return-1},s.prototype.remove=function(a){this.contains(a)&&(a.prev!=null&&(a.prev.next=a.next),a.next!=null&&(a.next.prev=a.prev),a===this.head&&(this.head=a.next),a===this.tail&&(this.tail=a.prev),this.length-=1)},s.prototype.iterator=function(a){return a===void 0&&(a=this.head),function(){var l=a;return a!=null&&(a=a.next),l}},s.prototype.find=function(a,l){l===void 0&&(l=!1);for(var u,c=this.iterator();u=c();){var f=u.length();if(a<f||l&&a===f&&(u.next==null||u.next.length()!==0))return[u,a];a-=f}return[null,0]},s.prototype.forEach=function(a){for(var l,u=this.iterator();l=u();)a(l)},s.prototype.forEachAt=function(a,l,u){if(!(l<=0))for(var c=this.find(a),f=c[0],d=c[1],h,g=a-d,v=this.iterator(f);(h=v())&&g<a+l;){var b=h.length();a>g?u(h,a-g,Math.min(l,g+b-a)):u(h,0,Math.min(b,a+l-g)),g+=b}},s.prototype.map=function(a){return this.reduce(function(l,u){return l.push(a(u)),l},[])},s.prototype.reduce=function(a,l){for(var u,c=this.iterator();u=c();)l=a(l,u);return l},s}();r.default=o},function(n,r,i){var o=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var g in h)h.hasOwnProperty(g)&&(d[g]=h[g])};return function(d,h){f(d,h);function g(){this.constructor=d}d.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(17),a=i(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=100,c=function(f){o(d,f);function d(h){var g=f.call(this,h)||this;return g.scroll=g,g.observer=new MutationObserver(function(v){g.update(v)}),g.observer.observe(g.domNode,l),g.attach(),g}return d.prototype.detach=function(){f.prototype.detach.call(this),this.observer.disconnect()},d.prototype.deleteAt=function(h,g){this.update(),h===0&&g===this.length()?this.children.forEach(function(v){v.remove()}):f.prototype.deleteAt.call(this,h,g)},d.prototype.formatAt=function(h,g,v,b){this.update(),f.prototype.formatAt.call(this,h,g,v,b)},d.prototype.insertAt=function(h,g,v){this.update(),f.prototype.insertAt.call(this,h,g,v)},d.prototype.optimize=function(h,g){var v=this;h===void 0&&(h=[]),g===void 0&&(g={}),f.prototype.optimize.call(this,g);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)h.push(b.pop());for(var m=function(w,x){x===void 0&&(x=!0),!(w==null||w===v)&&w.domNode.parentNode!=null&&(w.domNode[a.DATA_KEY].mutations==null&&(w.domNode[a.DATA_KEY].mutations=[]),x&&m(w.parent))},p=function(w){w.domNode[a.DATA_KEY]==null||w.domNode[a.DATA_KEY].mutations==null||(w instanceof s.default&&w.children.forEach(p),w.optimize(g))},y=h,_=0;y.length>0;_+=1){if(_>=u)throw new Error("[Parchment] Maximum optimize iterations reached");for(y.forEach(function(w){var x=a.find(w.target,!0);x!=null&&(x.domNode===w.target&&(w.type==="childList"?(m(a.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(E){var S=a.find(E,!1);m(S,!1),S instanceof s.default&&S.children.forEach(function(C){m(C,!1)})})):w.type==="attributes"&&m(x.prev)),m(x))}),this.children.forEach(p),y=[].slice.call(this.observer.takeRecords()),b=y.slice();b.length>0;)h.push(b.pop())}},d.prototype.update=function(h,g){var v=this;g===void 0&&(g={}),h=h||this.observer.takeRecords(),h.map(function(b){var m=a.find(b.target,!0);return m==null?null:m.domNode[a.DATA_KEY].mutations==null?(m.domNode[a.DATA_KEY].mutations=[b],m):(m.domNode[a.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===v||b.domNode[a.DATA_KEY]==null||b.update(b.domNode[a.DATA_KEY].mutations||[],g)}),this.domNode[a.DATA_KEY].mutations!=null&&f.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,g),this.optimize(h,g)},d.blotName="scroll",d.defaultChild="block",d.scope=a.Scope.BLOCK_BLOT,d.tagName="DIV",d}(s.default);r.default=c},function(n,r,i){var o=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var h in d)d.hasOwnProperty(h)&&(f[h]=d[h])};return function(f,d){c(f,d);function h(){this.constructor=f}f.prototype=d===null?Object.create(d):(h.prototype=d.prototype,new h)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(18),a=i(1);function l(c,f){if(Object.keys(c).length!==Object.keys(f).length)return!1;for(var d in c)if(c[d]!==f[d])return!1;return!0}var u=function(c){o(f,c);function f(){return c!==null&&c.apply(this,arguments)||this}return f.formats=function(d){if(d.tagName!==f.tagName)return c.formats.call(this,d)},f.prototype.format=function(d,h){var g=this;d===this.statics.blotName&&!h?(this.children.forEach(function(v){v instanceof s.default||(v=v.wrap(f.blotName,!0)),g.attributes.copy(v)}),this.unwrap()):c.prototype.format.call(this,d,h)},f.prototype.formatAt=function(d,h,g,v){if(this.formats()[g]!=null||a.query(g,a.Scope.ATTRIBUTE)){var b=this.isolate(d,h);b.format(g,v)}else c.prototype.formatAt.call(this,d,h,g,v)},f.prototype.optimize=function(d){c.prototype.optimize.call(this,d);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var g=this.next;g instanceof f&&g.prev===this&&l(h,g.formats())&&(g.moveChildren(this),g.remove())},f.blotName="inline",f.scope=a.Scope.INLINE_BLOT,f.tagName="SPAN",f}(s.default);r.default=u},function(n,r,i){var o=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)f.hasOwnProperty(d)&&(c[d]=f[d])};return function(c,f){u(c,f);function d(){this.constructor=c}c.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(18),a=i(1),l=function(u){o(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.formats=function(f){var d=a.query(c.blotName).tagName;if(f.tagName!==d)return u.formats.call(this,f)},c.prototype.format=function(f,d){a.query(f,a.Scope.BLOCK)!=null&&(f===this.statics.blotName&&!d?this.replaceWith(c.blotName):u.prototype.format.call(this,f,d))},c.prototype.formatAt=function(f,d,h,g){a.query(h,a.Scope.BLOCK)!=null?this.format(h,g):u.prototype.formatAt.call(this,f,d,h,g)},c.prototype.insertAt=function(f,d,h){if(h==null||a.query(d,a.Scope.INLINE)!=null)u.prototype.insertAt.call(this,f,d,h);else{var g=this.split(f),v=a.create(d,h);g.parent.insertBefore(v,g)}},c.prototype.update=function(f,d){navigator.userAgent.match(/Trident/)?this.build():u.prototype.update.call(this,f,d)},c.blotName="block",c.scope=a.Scope.BLOCK_BLOT,c.tagName="P",c}(s.default);r.default=l},function(n,r,i){var o=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var f in c)c.hasOwnProperty(f)&&(u[f]=c[f])};return function(u,c){l(u,c);function f(){this.constructor=u}u.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(19),a=function(l){o(u,l);function u(){return l!==null&&l.apply(this,arguments)||this}return u.formats=function(c){},u.prototype.format=function(c,f){l.prototype.formatAt.call(this,0,this.length(),c,f)},u.prototype.formatAt=function(c,f,d,h){c===0&&f===this.length()?this.format(d,h):l.prototype.formatAt.call(this,c,f,d,h)},u.prototype.formats=function(){return this.statics.formats(this.domNode)},u}(s.default);r.default=a},function(n,r,i){var o=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)f.hasOwnProperty(d)&&(c[d]=f[d])};return function(c,f){u(c,f);function d(){this.constructor=c}c.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(r,"__esModule",{value:!0});var s=i(19),a=i(1),l=function(u){o(c,u);function c(f){var d=u.call(this,f)||this;return d.text=d.statics.value(d.domNode),d}return c.create=function(f){return document.createTextNode(f)},c.value=function(f){var d=f.data;return d.normalize&&(d=d.normalize()),d},c.prototype.deleteAt=function(f,d){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+d)},c.prototype.index=function(f,d){return this.domNode===f?d:-1},c.prototype.insertAt=function(f,d,h){h==null?(this.text=this.text.slice(0,f)+d+this.text.slice(f),this.domNode.data=this.text):u.prototype.insertAt.call(this,f,d,h)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(f){u.prototype.optimize.call(this,f),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(f,d){return[this.domNode,f]},c.prototype.split=function(f,d){if(d===void 0&&(d=!1),!d){if(f===0)return this;if(f===this.length())return this.next}var h=a.create(this.domNode.splitText(f));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},c.prototype.update=function(f,d){var h=this;f.some(function(g){return g.type==="characterData"&&g.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=a.Scope.INLINE_BLOT,c}(s.default);r.default=l},function(n,r,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(a,l){return arguments.length>1&&!this.contains(a)==!l?l:s.call(this,a)}}String.prototype.startsWith||(String.prototype.startsWith=function(a,l){return l=l||0,this.substr(l,a.length)===a}),String.prototype.endsWith||(String.prototype.endsWith=function(a,l){var u=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>u.length)&&(l=u.length),l-=a.length;var c=u.indexOf(a,l);return c!==-1&&c===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var u=Object(this),c=u.length>>>0,f=arguments[1],d,h=0;h<c;h++)if(d=u[h],l.call(f,d,h,u))return d}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,r){var i=-1,o=1,s=0;function a(_,w,x){if(_==w)return _?[[s,_]]:[];(x<0||_.length<x)&&(x=null);var E=f(_,w),S=_.substring(0,E);_=_.substring(E),w=w.substring(E),E=d(_,w);var C=_.substring(_.length-E);_=_.substring(0,_.length-E),w=w.substring(0,w.length-E);var T=l(_,w);return S&&T.unshift([s,S]),C&&T.push([s,C]),g(T),x!=null&&(T=m(T,x)),T=p(T),T}function l(_,w){var x;if(!_)return[[o,w]];if(!w)return[[i,_]];var E=_.length>w.length?_:w,S=_.length>w.length?w:_,C=E.indexOf(S);if(C!=-1)return x=[[o,E.substring(0,C)],[s,S],[o,E.substring(C+S.length)]],_.length>w.length&&(x[0][0]=x[2][0]=i),x;if(S.length==1)return[[i,_],[o,w]];var T=h(_,w);if(T){var R=T[0],O=T[1],N=T[2],M=T[3],$=T[4],z=a(R,N),V=a(O,M);return z.concat([[s,$]],V)}return u(_,w)}function u(_,w){for(var x=_.length,E=w.length,S=Math.ceil((x+E)/2),C=S,T=2*S,R=new Array(T),O=new Array(T),N=0;N<T;N++)R[N]=-1,O[N]=-1;R[C+1]=0,O[C+1]=0;for(var M=x-E,$=M%2!=0,z=0,V=0,H=0,j=0,L=0;L<S;L++){for(var k=-L+z;k<=L-V;k+=2){var A=C+k,D;k==-L||k!=L&&R[A-1]<R[A+1]?D=R[A+1]:D=R[A-1]+1;for(var B=D-k;D<x&&B<E&&_.charAt(D)==w.charAt(B);)D++,B++;if(R[A]=D,D>x)V+=2;else if(B>E)z+=2;else if($){var U=C+M-k;if(U>=0&&U<T&&O[U]!=-1){var I=x-O[U];if(D>=I)return c(_,w,D,B)}}}for(var F=-L+H;F<=L-j;F+=2){var U=C+F,I;F==-L||F!=L&&O[U-1]<O[U+1]?I=O[U+1]:I=O[U-1]+1;for(var W=I-F;I<x&&W<E&&_.charAt(x-I-1)==w.charAt(E-W-1);)I++,W++;if(O[U]=I,I>x)j+=2;else if(W>E)H+=2;else if(!$){var A=C+M-F;if(A>=0&&A<T&&R[A]!=-1){var D=R[A],B=C+D-A;if(I=x-I,D>=I)return c(_,w,D,B)}}}}return[[i,_],[o,w]]}function c(_,w,x,E){var S=_.substring(0,x),C=w.substring(0,E),T=_.substring(x),R=w.substring(E),O=a(S,C),N=a(T,R);return O.concat(N)}function f(_,w){if(!_||!w||_.charAt(0)!=w.charAt(0))return 0;for(var x=0,E=Math.min(_.length,w.length),S=E,C=0;x<S;)_.substring(C,S)==w.substring(C,S)?(x=S,C=x):E=S,S=Math.floor((E-x)/2+x);return S}function d(_,w){if(!_||!w||_.charAt(_.length-1)!=w.charAt(w.length-1))return 0;for(var x=0,E=Math.min(_.length,w.length),S=E,C=0;x<S;)_.substring(_.length-S,_.length-C)==w.substring(w.length-S,w.length-C)?(x=S,C=x):E=S,S=Math.floor((E-x)/2+x);return S}function h(_,w){var x=_.length>w.length?_:w,E=_.length>w.length?w:_;if(x.length<4||E.length*2<x.length)return null;function S(V,H,j){for(var L=V.substring(j,j+Math.floor(V.length/4)),k=-1,A="",D,B,U,I;(k=H.indexOf(L,k+1))!=-1;){var F=f(V.substring(j),H.substring(k)),W=d(V.substring(0,j),H.substring(0,k));A.length<W+F&&(A=H.substring(k-W,k)+H.substring(k,k+F),D=V.substring(0,j-W),B=V.substring(j+F),U=H.substring(0,k-W),I=H.substring(k+F))}return A.length*2>=V.length?[D,B,U,I,A]:null}var C=S(x,E,Math.ceil(x.length/4)),T=S(x,E,Math.ceil(x.length/2)),R;if(!C&&!T)return null;T?C?R=C[4].length>T[4].length?C:T:R=T:R=C;var O,N,M,$;_.length>w.length?(O=R[0],N=R[1],M=R[2],$=R[3]):(M=R[0],$=R[1],O=R[2],N=R[3]);var z=R[4];return[O,N,M,$,z]}function g(_){_.push([s,""]);for(var w=0,x=0,E=0,S="",C="",T;w<_.length;)switch(_[w][0]){case o:E++,C+=_[w][1],w++;break;case i:x++,S+=_[w][1],w++;break;case s:x+E>1?(x!==0&&E!==0&&(T=f(C,S),T!==0&&(w-x-E>0&&_[w-x-E-1][0]==s?_[w-x-E-1][1]+=C.substring(0,T):(_.splice(0,0,[s,C.substring(0,T)]),w++),C=C.substring(T),S=S.substring(T)),T=d(C,S),T!==0&&(_[w][1]=C.substring(C.length-T)+_[w][1],C=C.substring(0,C.length-T),S=S.substring(0,S.length-T))),x===0?_.splice(w-E,x+E,[o,C]):E===0?_.splice(w-x,x+E,[i,S]):_.splice(w-x-E,x+E,[i,S],[o,C]),w=w-x-E+(x?1:0)+(E?1:0)+1):w!==0&&_[w-1][0]==s?(_[w-1][1]+=_[w][1],_.splice(w,1)):w++,E=0,x=0,S="",C="";break}_[_.length-1][1]===""&&_.pop();var R=!1;for(w=1;w<_.length-1;)_[w-1][0]==s&&_[w+1][0]==s&&(_[w][1].substring(_[w][1].length-_[w-1][1].length)==_[w-1][1]?(_[w][1]=_[w-1][1]+_[w][1].substring(0,_[w][1].length-_[w-1][1].length),_[w+1][1]=_[w-1][1]+_[w+1][1],_.splice(w-1,1),R=!0):_[w][1].substring(0,_[w+1][1].length)==_[w+1][1]&&(_[w-1][1]+=_[w+1][1],_[w][1]=_[w][1].substring(_[w+1][1].length)+_[w+1][1],_.splice(w+1,1),R=!0)),w++;R&&g(_)}var v=a;v.INSERT=o,v.DELETE=i,v.EQUAL=s,n.exports=v;function b(_,w){if(w===0)return[s,_];for(var x=0,E=0;E<_.length;E++){var S=_[E];if(S[0]===i||S[0]===s){var C=x+S[1].length;if(w===C)return[E+1,_];if(w<C){_=_.slice();var T=w-x,R=[S[0],S[1].slice(0,T)],O=[S[0],S[1].slice(T)];return _.splice(E,1,R,O),[E+1,_]}else x=C}}throw new Error("cursor_pos is out of bounds!")}function m(_,w){var x=b(_,w),E=x[1],S=x[0],C=E[S],T=E[S+1];if(C==null)return _;if(C[0]!==s)return _;if(T!=null&&C[1]+T[1]===T[1]+C[1])return E.splice(S,2,T,C),y(E,S,2);if(T!=null&&T[1].indexOf(C[1])===0){E.splice(S,2,[T[0],C[1]],[0,C[1]]);var R=T[1].slice(C[1].length);return R.length>0&&E.splice(S+2,0,[T[0],R]),y(E,S,3)}else return _}function p(_){for(var w=!1,x=function(T){return T.charCodeAt(0)>=56320&&T.charCodeAt(0)<=57343},E=function(T){return T.charCodeAt(T.length-1)>=55296&&T.charCodeAt(T.length-1)<=56319},S=2;S<_.length;S+=1)_[S-2][0]===s&&E(_[S-2][1])&&_[S-1][0]===i&&x(_[S-1][1])&&_[S][0]===o&&x(_[S][1])&&(w=!0,_[S-1][1]=_[S-2][1].slice(-1)+_[S-1][1],_[S][1]=_[S-2][1].slice(-1)+_[S][1],_[S-2][1]=_[S-2][1].slice(0,-1));if(!w)return _;for(var C=[],S=0;S<_.length;S+=1)_[S][1].length>0&&C.push(_[S]);return C}function y(_,w,x){for(var E=w+x-1;E>=0&&E>=w-1;E--)if(E+1<_.length){var S=_[E],C=_[E+1];S[0]===C[1]&&_.splice(E,2,[S[0],S[1]+C[1]])}return _}},function(n,r){r=n.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(o){var s=[];for(var a in o)s.push(a);return s}},function(n,r){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";r=n.exports=i?o:s,r.supported=o;function o(a){return Object.prototype.toString.call(a)=="[object Arguments]"}r.unsupported=s;function s(a){return a&&typeof a=="object"&&typeof a.length=="number"&&Object.prototype.hasOwnProperty.call(a,"callee")&&!Object.prototype.propertyIsEnumerable.call(a,"callee")||!1}},function(n,r){var i=Object.prototype.hasOwnProperty,o="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(o=!1));function a(u,c,f){this.fn=u,this.context=c,this.once=f||!1}function l(){this._events=new s,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],f,d;if(this._eventsCount===0)return c;for(d in f=this._events)i.call(f,d)&&c.push(o?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},l.prototype.listeners=function(c,f){var d=o?o+c:c,h=this._events[d];if(f)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var g=0,v=h.length,b=new Array(v);g<v;g++)b[g]=h[g].fn;return b},l.prototype.emit=function(c,f,d,h,g,v){var b=o?o+c:c;if(!this._events[b])return!1;var m=this._events[b],p=arguments.length,y,_;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),p){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,f),!0;case 3:return m.fn.call(m.context,f,d),!0;case 4:return m.fn.call(m.context,f,d,h),!0;case 5:return m.fn.call(m.context,f,d,h,g),!0;case 6:return m.fn.call(m.context,f,d,h,g,v),!0}for(_=1,y=new Array(p-1);_<p;_++)y[_-1]=arguments[_];m.fn.apply(m.context,y)}else{var w=m.length,x;for(_=0;_<w;_++)switch(m[_].once&&this.removeListener(c,m[_].fn,void 0,!0),p){case 1:m[_].fn.call(m[_].context);break;case 2:m[_].fn.call(m[_].context,f);break;case 3:m[_].fn.call(m[_].context,f,d);break;case 4:m[_].fn.call(m[_].context,f,d,h);break;default:if(!y)for(x=1,y=new Array(p-1);x<p;x++)y[x-1]=arguments[x];m[_].fn.apply(m[_].context,y)}}return!0},l.prototype.on=function(c,f,d){var h=new a(f,d||this),g=o?o+c:c;return this._events[g]?this._events[g].fn?this._events[g]=[this._events[g],h]:this._events[g].push(h):(this._events[g]=h,this._eventsCount++),this},l.prototype.once=function(c,f,d){var h=new a(f,d||this,!0),g=o?o+c:c;return this._events[g]?this._events[g].fn?this._events[g]=[this._events[g],h]:this._events[g].push(h):(this._events[g]=h,this._eventsCount++),this},l.prototype.removeListener=function(c,f,d,h){var g=o?o+c:c;if(!this._events[g])return this;if(!f)return--this._eventsCount===0?this._events=new s:delete this._events[g],this;var v=this._events[g];if(v.fn)v.fn===f&&(!h||v.once)&&(!d||v.context===d)&&(--this._eventsCount===0?this._events=new s:delete this._events[g]);else{for(var b=0,m=[],p=v.length;b<p;b++)(v[b].fn!==f||h&&!v[b].once||d&&v[b].context!==d)&&m.push(v[b]);m.length?this._events[g]=m.length===1?m[0]:m:--this._eventsCount===0?this._events=new s:delete this._events[g]}return this},l.prototype.removeAllListeners=function(c){var f;return c?(f=o?o+c:c,this._events[f]&&(--this._eventsCount===0?this._events=new s:delete this._events[f])):(this._events=new s,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=o,l.EventEmitter=l,typeof n<"u"&&(n.exports=l)},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},s=function(){function Q(J,oe){var ae=[],ee=!0,Pe=!1,Re=void 0;try{for(var Ce=J[Symbol.iterator](),Bt;!(ee=(Bt=Ce.next()).done)&&(ae.push(Bt.value),!(oe&&ae.length===oe));ee=!0);}catch(bn){Pe=!0,Re=bn}finally{try{!ee&&Ce.return&&Ce.return()}finally{if(Pe)throw Re}}return ae}return function(J,oe){if(Array.isArray(J))return J;if(Symbol.iterator in Object(J))return Q(J,oe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function Q(J,oe){for(var ae=0;ae<oe.length;ae++){var ee=oe[ae];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(J,ee.key,ee)}}return function(J,oe,ae){return oe&&Q(J.prototype,oe),ae&&Q(J,ae),J}}(),l=i(3),u=O(l),c=i(2),f=O(c),d=i(0),h=O(d),g=i(5),v=O(g),b=i(10),m=O(b),p=i(9),y=O(p),_=i(36),w=i(37),x=i(13),E=O(x),S=i(26),C=i(38),T=i(39),R=i(40);function O(Q){return Q&&Q.__esModule?Q:{default:Q}}function N(Q,J,oe){return J in Q?Object.defineProperty(Q,J,{value:oe,enumerable:!0,configurable:!0,writable:!0}):Q[J]=oe,Q}function M(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")}function $(Q,J){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J&&(typeof J=="object"||typeof J=="function")?J:Q}function z(Q,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof J);Q.prototype=Object.create(J&&J.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),J&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,J):Q.__proto__=J)}var V=(0,m.default)("quill:clipboard"),H="__ql-matcher",j=[[Node.TEXT_NODE,Me],[Node.TEXT_NODE,ye],["br",ie],[Node.ELEMENT_NODE,ye],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,xe],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,Be],["li",he],["b",W.bind(W,"bold")],["i",W.bind(W,"italic")],["style",se]],L=[_.AlignAttribute,C.DirectionAttribute].reduce(function(Q,J){return Q[J.keyName]=J,Q},{}),k=[_.AlignStyle,w.BackgroundStyle,S.ColorStyle,C.DirectionStyle,T.FontStyle,R.SizeStyle].reduce(function(Q,J){return Q[J.keyName]=J,Q},{}),A=function(Q){z(J,Q);function J(oe,ae){M(this,J);var ee=$(this,(J.__proto__||Object.getPrototypeOf(J)).call(this,oe,ae));return ee.quill.root.addEventListener("paste",ee.onPaste.bind(ee)),ee.container=ee.quill.addContainer("ql-clipboard"),ee.container.setAttribute("contenteditable",!0),ee.container.setAttribute("tabindex",-1),ee.matchers=[],j.concat(ee.options.matchers).forEach(function(Pe){var Re=s(Pe,2),Ce=Re[0],Bt=Re[1];!ae.matchVisual&&Bt===xe||ee.addMatcher(Ce,Bt)}),ee}return a(J,[{key:"addMatcher",value:function(ae,ee){this.matchers.push([ae,ee])}},{key:"convert",value:function(ae){if(typeof ae=="string")return this.container.innerHTML=ae.replace(/\>\r?\n +\</g,"><"),this.convert();var ee=this.quill.getFormat(this.quill.selection.savedRange.index);if(ee[E.default.blotName]){var Pe=this.container.innerText;return this.container.innerHTML="",new f.default().insert(Pe,N({},E.default.blotName,ee[E.default.blotName]))}var Re=this.prepareMatching(),Ce=s(Re,2),Bt=Ce[0],bn=Ce[1],Ge=F(this.container,Bt,bn);return U(Ge,`
1642`)&&Ge.ops[Ge.ops.length-1].attributes==null&&(Ge=Ge.compose(new f.default().retain(Ge.length()-1).delete(1))),V.log("convert",this.container.innerHTML,Ge),this.container.innerHTML="",Ge}},{key:"dangerouslyPasteHTML",value:function(ae,ee){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof ae=="string")this.quill.setContents(this.convert(ae),ee),this.quill.setSelection(0,v.default.sources.SILENT);else{var Re=this.convert(ee);this.quill.updateContents(new f.default().retain(ae).concat(Re),Pe),this.quill.setSelection(ae+Re.length(),v.default.sources.SILENT)}}},{key:"onPaste",value:function(ae){var ee=this;if(!(ae.defaultPrevented||!this.quill.isEnabled())){var Pe=this.quill.getSelection(),Re=new f.default().retain(Pe.index),Ce=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(v.default.sources.SILENT),setTimeout(function(){Re=Re.concat(ee.convert()).delete(Pe.length),ee.quill.updateContents(Re,v.default.sources.USER),ee.quill.setSelection(Re.length()-Pe.length,v.default.sources.SILENT),ee.quill.scrollingContainer.scrollTop=Ce,ee.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ae=this,ee=[],Pe=[];return this.matchers.forEach(function(Re){var Ce=s(Re,2),Bt=Ce[0],bn=Ce[1];switch(Bt){case Node.TEXT_NODE:Pe.push(bn);break;case Node.ELEMENT_NODE:ee.push(bn);break;default:[].forEach.call(ae.container.querySelectorAll(Bt),function(Ge){Ge[H]=Ge[H]||[],Ge[H].push(bn)});break}}),[ee,Pe]}}]),J}(y.default);A.DEFAULTS={matchers:[],matchVisual:!0};function D(Q,J,oe){return(typeof J>"u"?"undefined":o(J))==="object"?Object.keys(J).reduce(function(ae,ee){return D(ae,ee,J[ee])},Q):Q.reduce(function(ae,ee){return ee.attributes&&ee.attributes[J]?ae.push(ee):ae.insert(ee.insert,(0,u.default)({},N({},J,oe),ee.attributes))},new f.default)}function B(Q){if(Q.nodeType!==Node.ELEMENT_NODE)return{};var J="__ql-computed-style";return Q[J]||(Q[J]=window.getComputedStyle(Q))}function U(Q,J){for(var oe="",ae=Q.ops.length-1;ae>=0&&oe.length<J.length;--ae){var ee=Q.ops[ae];if(typeof ee.insert!="string")break;oe=ee.insert+oe}return oe.slice(-1*J.length)===J}function I(Q){if(Q.childNodes.length===0)return!1;var J=B(Q);return["block","list-item"].indexOf(J.display)>-1}function F(Q,J,oe){return Q.nodeType===Q.TEXT_NODE?oe.reduce(function(ae,ee){return ee(Q,ae)},new f.default):Q.nodeType===Q.ELEMENT_NODE?[].reduce.call(Q.childNodes||[],function(ae,ee){var Pe=F(ee,J,oe);return ee.nodeType===Q.ELEMENT_NODE&&(Pe=J.reduce(function(Re,Ce){return Ce(ee,Re)},Pe),Pe=(ee[H]||[]).reduce(function(Re,Ce){return Ce(ee,Re)},Pe)),ae.concat(Pe)},new f.default):new f.default}function W(Q,J,oe){return D(oe,Q,!0)}function q(Q,J){var oe=h.default.Attributor.Attribute.keys(Q),ae=h.default.Attributor.Class.keys(Q),ee=h.default.Attributor.Style.keys(Q),Pe={};return oe.concat(ae).concat(ee).forEach(function(Re){var Ce=h.default.query(Re,h.default.Scope.ATTRIBUTE);Ce!=null&&(Pe[Ce.attrName]=Ce.value(Q),Pe[Ce.attrName])||(Ce=L[Re],Ce!=null&&(Ce.attrName===Re||Ce.keyName===Re)&&(Pe[Ce.attrName]=Ce.value(Q)||void 0),Ce=k[Re],Ce!=null&&(Ce.attrName===Re||Ce.keyName===Re)&&(Ce=k[Re],Pe[Ce.attrName]=Ce.value(Q)||void 0))}),Object.keys(Pe).length>0&&(J=D(J,Pe)),J}function Y(Q,J){var oe=h.default.query(Q);if(oe==null)return J;if(oe.prototype instanceof h.default.Embed){var ae={},ee=oe.value(Q);ee!=null&&(ae[oe.blotName]=ee,J=new f.default().insert(ae,oe.formats(Q)))}else typeof oe.formats=="function"&&(J=D(J,oe.blotName,oe.formats(Q)));return J}function ie(Q,J){return U(J,`
1643`)||J.insert(`
1644`),J}function se(){return new f.default}function he(Q,J){var oe=h.default.query(Q);if(oe==null||oe.blotName!=="list-item"||!U(J,`
1645`))return J;for(var ae=-1,ee=Q.parentNode;!ee.classList.contains("ql-clipboard");)(h.default.query(ee)||{}).blotName==="list"&&(ae+=1),ee=ee.parentNode;return ae<=0?J:J.compose(new f.default().retain(J.length()-1).retain(1,{indent:ae}))}function ye(Q,J){return U(J,`
1646`)||(I(Q)||J.length()>0&&Q.nextSibling&&I(Q.nextSibling))&&J.insert(`
1647`),J}function xe(Q,J){if(I(Q)&&Q.nextElementSibling!=null&&!U(J,`
1648
1649`)){var oe=Q.offsetHeight+parseFloat(B(Q).marginTop)+parseFloat(B(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+oe*1.5&&J.insert(`
1650`)}return J}function Be(Q,J){var oe={},ae=Q.style||{};return ae.fontStyle&&B(Q).fontStyle==="italic"&&(oe.italic=!0),ae.fontWeight&&(B(Q).fontWeight.startsWith("bold")||parseInt(B(Q).fontWeight)>=700)&&(oe.bold=!0),Object.keys(oe).length>0&&(J=D(J,oe)),parseFloat(ae.textIndent||0)>0&&(J=new f.default().insert("	").concat(J)),J}function Me(Q,J){var oe=Q.data;if(Q.parentNode.tagName==="O:P")return J.insert(oe.trim());if(oe.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return J;if(!B(Q.parentNode).whiteSpace.startsWith("pre")){var ae=function(Pe,Re){return Re=Re.replace(/[^\u00a0]/g,""),Re.length<1&&Pe?" ":Re};oe=oe.replace(/\r\n/g," ").replace(/\n/g," "),oe=oe.replace(/\s\s+/g,ae.bind(ae,!0)),(Q.previousSibling==null&&I(Q.parentNode)||Q.previousSibling!=null&&I(Q.previousSibling))&&(oe=oe.replace(/^\s+/,ae.bind(ae,!1))),(Q.nextSibling==null&&I(Q.parentNode)||Q.nextSibling!=null&&I(Q.nextSibling))&&(oe=oe.replace(/\s+$/,ae.bind(ae,!1)))}return J.insert(oe)}r.default=A,r.matchAttributor=q,r.matchBlot=Y,r.matchNewline=ye,r.matchSpacing=xe,r.matchText=Me},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function g(v,b){for(var m=0;m<b.length;m++){var p=b[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(v,p.key,p)}}return function(v,b,m){return b&&g(v.prototype,b),m&&g(v,m),v}}(),s=function g(v,b,m){v===null&&(v=Function.prototype);var p=Object.getOwnPropertyDescriptor(v,b);if(p===void 0){var y=Object.getPrototypeOf(v);return y===null?void 0:g(y,b,m)}else{if("value"in p)return p.value;var _=p.get;return _===void 0?void 0:_.call(m)}},a=i(6),l=u(a);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function d(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=function(g){d(v,g);function v(){return c(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"optimize",value:function(m){s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),v}(l.default);h.blotName="bold",h.tagName=["STRONG","B"],r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var o=function(){function R(O,N){var M=[],$=!0,z=!1,V=void 0;try{for(var H=O[Symbol.iterator](),j;!($=(j=H.next()).done)&&(M.push(j.value),!(N&&M.length===N));$=!0);}catch(L){z=!0,V=L}finally{try{!$&&H.return&&H.return()}finally{if(z)throw V}}return M}return function(O,N){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return R(O,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function R(O,N){for(var M=0;M<N.length;M++){var $=N[M];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(O,$.key,$)}}return function(O,N,M){return N&&R(O.prototype,N),M&&R(O,M),O}}(),a=i(2),l=m(a),u=i(0),c=m(u),f=i(5),d=m(f),h=i(10),g=m(h),v=i(9),b=m(v);function m(R){return R&&R.__esModule?R:{default:R}}function p(R,O,N){return O in R?Object.defineProperty(R,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):R[O]=N,R}function y(R,O){if(!(R instanceof O))throw new TypeError("Cannot call a class as a function")}function _(R,O){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:R}function w(R,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);R.prototype=Object.create(O&&O.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(R,O):R.__proto__=O)}var x=(0,g.default)("quill:toolbar"),E=function(R){w(O,R);function O(N,M){y(this,O);var $=_(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N,M));if(Array.isArray($.options.container)){var z=document.createElement("div");C(z,$.options.container),N.container.parentNode.insertBefore(z,N.container),$.container=z}else typeof $.options.container=="string"?$.container=document.querySelector($.options.container):$.container=$.options.container;if(!($.container instanceof HTMLElement)){var V;return V=x.error("Container required for toolbar",$.options),_($,V)}return $.container.classList.add("ql-toolbar"),$.controls=[],$.handlers={},Object.keys($.options.handlers).forEach(function(H){$.addHandler(H,$.options.handlers[H])}),[].forEach.call($.container.querySelectorAll("button, select"),function(H){$.attach(H)}),$.quill.on(d.default.events.EDITOR_CHANGE,function(H,j){H===d.default.events.SELECTION_CHANGE&&$.update(j)}),$.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var H=$.quill.selection.getRange(),j=o(H,1),L=j[0];$.update(L)}),$}return s(O,[{key:"addHandler",value:function(M,$){this.handlers[M]=$}},{key:"attach",value:function(M){var $=this,z=[].find.call(M.classList,function(H){return H.indexOf("ql-")===0});if(z){if(z=z.slice(3),M.tagName==="BUTTON"&&M.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){x.warn("ignoring attaching to disabled format",z,M);return}if(c.default.query(z)==null){x.warn("ignoring attaching to nonexistent format",z,M);return}}var V=M.tagName==="SELECT"?"change":"click";M.addEventListener(V,function(H){var j=void 0;if(M.tagName==="SELECT"){if(M.selectedIndex<0)return;var L=M.options[M.selectedIndex];L.hasAttribute("selected")?j=!1:j=L.value||!1}else M.classList.contains("ql-active")?j=!1:j=M.value||!M.hasAttribute("value"),H.preventDefault();$.quill.focus();var k=$.quill.selection.getRange(),A=o(k,1),D=A[0];if($.handlers[z]!=null)$.handlers[z].call($,j);else if(c.default.query(z).prototype instanceof c.default.Embed){if(j=prompt("Enter "+z),!j)return;$.quill.updateContents(new l.default().retain(D.index).delete(D.length).insert(p({},z,j)),d.default.sources.USER)}else $.quill.format(z,j,d.default.sources.USER);$.update(D)}),this.controls.push([z,M])}}},{key:"update",value:function(M){var $=M==null?{}:this.quill.getFormat(M);this.controls.forEach(function(z){var V=o(z,2),H=V[0],j=V[1];if(j.tagName==="SELECT"){var L=void 0;if(M==null)L=null;else if($[H]==null)L=j.querySelector("option[selected]");else if(!Array.isArray($[H])){var k=$[H];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),L=j.querySelector('option[value="'+k+'"]')}L==null?(j.value="",j.selectedIndex=-1):L.selected=!0}else if(M==null)j.classList.remove("ql-active");else if(j.hasAttribute("value")){var A=$[H]===j.getAttribute("value")||$[H]!=null&&$[H].toString()===j.getAttribute("value")||$[H]==null&&!j.getAttribute("value");j.classList.toggle("ql-active",A)}else j.classList.toggle("ql-active",$[H]!=null)})}}]),O}(b.default);E.DEFAULTS={};function S(R,O,N){var M=document.createElement("button");M.setAttribute("type","button"),M.classList.add("ql-"+O),N!=null&&(M.value=N),R.appendChild(M)}function C(R,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(N){var M=document.createElement("span");M.classList.add("ql-formats"),N.forEach(function($){if(typeof $=="string")S(M,$);else{var z=Object.keys($)[0],V=$[z];Array.isArray(V)?T(M,z,V):S(M,z,V)}}),R.appendChild(M)})}function T(R,O,N){var M=document.createElement("select");M.classList.add("ql-"+O),N.forEach(function($){var z=document.createElement("option");$!==!1?z.setAttribute("value",$):z.setAttribute("selected","selected"),M.appendChild(z)}),R.appendChild(M)}E.DEFAULTS={container:null,handlers:{clean:function(){var O=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var M=this.quill.getFormat();Object.keys(M).forEach(function($){c.default.query($,c.default.Scope.INLINE)!=null&&O.quill.format($,!1)})}else this.quill.removeFormat(N,d.default.sources.USER)},direction:function(O){var N=this.quill.getFormat().align;O==="rtl"&&N==null?this.quill.format("align","right",d.default.sources.USER):!O&&N==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",O,d.default.sources.USER)},indent:function(O){var N=this.quill.getSelection(),M=this.quill.getFormat(N),$=parseInt(M.indent||0);if(O==="+1"||O==="-1"){var z=O==="+1"?1:-1;M.direction==="rtl"&&(z*=-1),this.quill.format("indent",$+z,d.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,d.default.sources.USER)},list:function(O){var N=this.quill.getSelection(),M=this.quill.getFormat(N);O==="check"?M.list==="checked"||M.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",O,d.default.sources.USER)}}},r.default=E,r.addControls=C},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function g(v,b){for(var m=0;m<b.length;m++){var p=b[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(v,p.key,p)}}return function(v,b,m){return b&&g(v.prototype,b),m&&g(v,m),v}}(),s=function g(v,b,m){v===null&&(v=Function.prototype);var p=Object.getOwnPropertyDescriptor(v,b);if(p===void 0){var y=Object.getPrototypeOf(v);return y===null?void 0:g(y,b,m)}else{if("value"in p)return p.value;var _=p.get;return _===void 0?void 0:_.call(m)}},a=i(28),l=u(a);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function d(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=function(g){d(v,g);function v(b,m){c(this,v);var p=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,b));return p.label.innerHTML=m,p.container.classList.add("ql-color-picker"),[].slice.call(p.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(y){y.classList.add("ql-primary")}),p}return o(v,[{key:"buildItem",value:function(m){var p=s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"buildItem",this).call(this,m);return p.style.backgroundColor=m.getAttribute("value")||"",p}},{key:"selectItem",value:function(m,p){s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,m,p);var y=this.label.querySelector(".ql-color-label"),_=m&&m.getAttribute("data-value")||"";y&&(y.tagName==="line"?y.style.stroke=_:y.style.fill=_)}}]),v}(l.default);r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function g(v,b){for(var m=0;m<b.length;m++){var p=b[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(v,p.key,p)}}return function(v,b,m){return b&&g(v.prototype,b),m&&g(v,m),v}}(),s=function g(v,b,m){v===null&&(v=Function.prototype);var p=Object.getOwnPropertyDescriptor(v,b);if(p===void 0){var y=Object.getPrototypeOf(v);return y===null?void 0:g(y,b,m)}else{if("value"in p)return p.value;var _=p.get;return _===void 0?void 0:_.call(m)}},a=i(28),l=u(a);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function d(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=function(g){d(v,g);function v(b,m){c(this,v);var p=f(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,b));return p.container.classList.add("ql-icon-picker"),[].forEach.call(p.container.querySelectorAll(".ql-picker-item"),function(y){y.innerHTML=m[y.getAttribute("data-value")||""]}),p.defaultItem=p.container.querySelector(".ql-selected"),p.selectItem(p.defaultItem),p}return o(v,[{key:"selectItem",value:function(m,p){s(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,m,p),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),v}(l.default);r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function l(u,c){for(var f=0;f<c.length;f++){var d=c[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,c,f){return c&&l(u.prototype,c),f&&l(u,f),u}}();function s(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var a=function(){function l(u,c){var f=this;s(this,l),this.quill=u,this.boundsContainer=c||document.body,this.root=u.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"}),this.hide()}return o(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var f=c.left+c.width/2-this.root.offsetWidth/2,d=c.bottom+this.quill.root.scrollTop;this.root.style.left=f+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),g=this.root.getBoundingClientRect(),v=0;if(g.right>h.right&&(v=h.right-g.right,this.root.style.left=f+v+"px"),g.left<h.left&&(v=h.left-g.left,this.root.style.left=f+v+"px"),g.bottom>h.bottom){var b=g.bottom-g.top,m=c.bottom-c.top+b;this.root.style.top=d-m+"px",this.root.classList.add("ql-flip")}return v}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();r.default=a},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function T(R,O){var N=[],M=!0,$=!1,z=void 0;try{for(var V=R[Symbol.iterator](),H;!(M=(H=V.next()).done)&&(N.push(H.value),!(O&&N.length===O));M=!0);}catch(j){$=!0,z=j}finally{try{!M&&V.return&&V.return()}finally{if($)throw z}}return N}return function(R,O){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return T(R,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function T(R,O,N){R===null&&(R=Function.prototype);var M=Object.getOwnPropertyDescriptor(R,O);if(M===void 0){var $=Object.getPrototypeOf(R);return $===null?void 0:T($,O,N)}else{if("value"in M)return M.value;var z=M.get;return z===void 0?void 0:z.call(N)}},a=function(){function T(R,O){for(var N=0;N<O.length;N++){var M=O[N];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(R,M.key,M)}}return function(R,O,N){return O&&T(R.prototype,O),N&&T(R,N),R}}(),l=i(3),u=y(l),c=i(8),f=y(c),d=i(43),h=y(d),g=i(27),v=y(g),b=i(15),m=i(41),p=y(m);function y(T){return T&&T.__esModule?T:{default:T}}function _(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}function w(T,R){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:T}function x(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(T,R):T.__proto__=R)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],S=function(T){x(R,T);function R(O,N){_(this,R),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=E);var M=w(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,O,N));return M.quill.container.classList.add("ql-snow"),M}return a(R,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),p.default),this.tooltip=new C(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(M,$){N.handlers.link.call(N,!$.format.link)})}}]),R}(h.default);S.DEFAULTS=(0,u.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(R){if(R){var O=this.quill.getSelection();if(O==null||O.length==0)return;var N=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var M=this.quill.theme.tooltip;M.edit("link",N)}else this.quill.format("link",!1)}}}}});var C=function(T){x(R,T);function R(O,N){_(this,R);var M=w(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,O,N));return M.preview=M.root.querySelector("a.ql-preview"),M}return a(R,[{key:"listen",value:function(){var N=this;s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(M){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),M.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(M){if(N.linkRange!=null){var $=N.linkRange;N.restoreFocus(),N.quill.formatText($,"link",!1,f.default.sources.USER),delete N.linkRange}M.preventDefault(),N.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(M,$,z){if(M!=null){if(M.length===0&&z===f.default.sources.USER){var V=N.quill.scroll.descendant(v.default,M.index),H=o(V,2),j=H[0],L=H[1];if(j!=null){N.linkRange=new b.Range(M.index-L,j.length());var k=v.default.formats(j.domNode);N.preview.textContent=k,N.preview.setAttribute("href",k),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){s(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),R}(d.BaseTooltip);C.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),r.default=S},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(29),s=ee(o),a=i(36),l=i(38),u=i(64),c=i(65),f=ee(c),d=i(66),h=ee(d),g=i(67),v=ee(g),b=i(37),m=i(26),p=i(39),y=i(40),_=i(56),w=ee(_),x=i(68),E=ee(x),S=i(27),C=ee(S),T=i(69),R=ee(T),O=i(70),N=ee(O),M=i(71),$=ee(M),z=i(72),V=ee(z),H=i(73),j=ee(H),L=i(13),k=ee(L),A=i(74),D=ee(A),B=i(75),U=ee(B),I=i(57),F=ee(I),W=i(41),q=ee(W),Y=i(28),ie=ee(Y),se=i(59),he=ee(se),ye=i(60),xe=ee(ye),Be=i(61),Me=ee(Be),Q=i(108),J=ee(Q),oe=i(62),ae=ee(oe);function ee(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}s.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":y.SizeStyle},!0),s.default.register({"formats/align":a.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":u.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":p.FontClass,"formats/size":y.SizeClass,"formats/blockquote":f.default,"formats/code-block":k.default,"formats/header":h.default,"formats/list":v.default,"formats/bold":w.default,"formats/code":L.Code,"formats/italic":E.default,"formats/link":C.default,"formats/script":R.default,"formats/strike":N.default,"formats/underline":$.default,"formats/image":V.default,"formats/video":j.default,"formats/list/item":g.ListItem,"modules/formula":D.default,"modules/syntax":U.default,"modules/toolbar":F.default,"themes/bubble":J.default,"themes/snow":ae.default,"ui/icons":q.default,"ui/picker":ie.default,"ui/icon-picker":xe.default,"ui/color-picker":he.default,"ui/tooltip":Me.default},!0),r.default=s.default},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var o=function(){function v(b,m){for(var p=0;p<m.length;p++){var y=m[p];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(b,y.key,y)}}return function(b,m,p){return m&&v(b.prototype,m),p&&v(b,p),b}}(),s=function v(b,m,p){b===null&&(b=Function.prototype);var y=Object.getOwnPropertyDescriptor(b,m);if(y===void 0){var _=Object.getPrototypeOf(b);return _===null?void 0:v(_,m,p)}else{if("value"in y)return y.value;var w=y.get;return w===void 0?void 0:w.call(p)}},a=i(0),l=u(a);function u(v){return v&&v.__esModule?v:{default:v}}function c(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function f(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function d(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=function(v){d(b,v);function b(){return c(this,b),f(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"add",value:function(p,y){if(y==="+1"||y==="-1"){var _=this.value(p)||0;y=y==="+1"?_+1:_-1}return y===0?(this.remove(p),!0):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,p,y)}},{key:"canAdd",value:function(p,y){return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,p,y)||s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,p,parseInt(y))}},{key:"value",value:function(p){return parseInt(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,p))||void 0}}]),b}(l.default.Attributor.Class),g=new h("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=g},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(4),s=a(o);function a(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function u(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){c(h,d);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="blockquote",f.tagName="blockquote",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function h(g,v){for(var b=0;b<v.length;b++){var m=v[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(g,m.key,m)}}return function(g,v,b){return v&&h(g.prototype,v),b&&h(g,b),g}}(),s=i(4),a=l(s);function l(h){return h&&h.__esModule?h:{default:h}}function u(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function c(h,g){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:h}function f(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);h.prototype=Object.create(g&&g.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(h,g):h.__proto__=g)}var d=function(h){f(g,h);function g(){return u(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),g}(a.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],r.default=d},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var o=function(){function _(w,x){for(var E=0;E<x.length;E++){var S=x[E];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,x,E){return x&&_(w.prototype,x),E&&_(w,E),w}}(),s=function _(w,x,E){w===null&&(w=Function.prototype);var S=Object.getOwnPropertyDescriptor(w,x);if(S===void 0){var C=Object.getPrototypeOf(w);return C===null?void 0:_(C,x,E)}else{if("value"in S)return S.value;var T=S.get;return T===void 0?void 0:T.call(E)}},a=i(0),l=h(a),u=i(4),c=h(u),f=i(25),d=h(f);function h(_){return _&&_.__esModule?_:{default:_}}function g(_,w,x){return w in _?Object.defineProperty(_,w,{value:x,enumerable:!0,configurable:!0,writable:!0}):_[w]=x,_}function v(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function b(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:_}function m(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var p=function(_){m(w,_);function w(){return v(this,w),b(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"format",value:function(E,S){E===y.blotName&&!S?this.replaceWith(l.default.create(this.statics.scope)):s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,E,S)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,S){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,S),this):(this.parent.unwrap(),s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,E,S))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:s(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,E)}}]),w}(c.default);p.blotName="list-item",p.tagName="LI";var y=function(_){m(w,_),o(w,null,[{key:"create",value:function(E){var S=E==="ordered"?"OL":"UL",C=s(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,S);return(E==="checked"||E==="unchecked")&&C.setAttribute("data-checked",E==="checked"),C}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function w(x){v(this,w);var E=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,x)),S=function(T){if(T.target.parentNode===x){var R=E.statics.formats(x),O=l.default.find(T.target);R==="checked"?O.format("list","unchecked"):R==="unchecked"&&O.format("list","checked")}};return x.addEventListener("touchstart",S),x.addEventListener("mousedown",S),E}return o(w,[{key:"format",value:function(E,S){this.children.length>0&&this.children.tail.format(E,S)}},{key:"formats",value:function(){return g({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,S){if(E instanceof p)s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,E,S);else{var C=S==null?this.length():S.offset(this),T=this.split(C);T.parent.insertBefore(E,T)}}},{key:"optimize",value:function(E){s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,E);var S=this.next;S!=null&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var S=l.default.create(this.statics.defaultChild);E.moveChildren(S),this.appendChild(S)}s(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,E)}}]),w}(d.default);y.blotName="list",y.scope=l.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[p],r.ListItem=p,r.default=y},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(56),s=a(o);function a(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function u(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){c(h,d);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="italic",f.tagName=["EM","I"],r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function g(v,b){for(var m=0;m<b.length;m++){var p=b[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(v,p.key,p)}}return function(v,b,m){return b&&g(v.prototype,b),m&&g(v,m),v}}(),s=function g(v,b,m){v===null&&(v=Function.prototype);var p=Object.getOwnPropertyDescriptor(v,b);if(p===void 0){var y=Object.getPrototypeOf(v);return y===null?void 0:g(y,b,m)}else{if("value"in p)return p.value;var _=p.get;return _===void 0?void 0:_.call(m)}},a=i(6),l=u(a);function u(g){return g&&g.__esModule?g:{default:g}}function c(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function f(g,v){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:g}function d(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(g,v):g.__proto__=v)}var h=function(g){d(v,g);function v(){return c(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):s(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),v}(l.default);h.blotName="script",h.tagName=["SUB","SUP"],r.default=h},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),s=a(o);function a(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function u(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){c(h,d);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="strike",f.tagName="S",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=i(6),s=a(o);function a(d){return d&&d.__esModule?d:{default:d}}function l(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function u(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var f=function(d){c(h,d);function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);f.blotName="underline",f.tagName="U",r.default=f},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function b(m,p){for(var y=0;y<p.length;y++){var _=p[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,p,y){return p&&b(m.prototype,p),y&&b(m,y),m}}(),s=function b(m,p,y){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,p);if(_===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:b(w,p,y)}else{if("value"in _)return _.value;var x=_.get;return x===void 0?void 0:x.call(y)}},a=i(0),l=c(a),u=i(27);function c(b){return b&&b.__esModule?b:{default:b}}function f(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function d(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function h(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var g=["alt","height","width"],v=function(b){h(m,b);function m(){return f(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"format",value:function(y,_){g.indexOf(y)>-1?_?this.domNode.setAttribute(y,_):this.domNode.removeAttribute(y):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,y,_)}}],[{key:"create",value:function(y){var _=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y);return typeof y=="string"&&_.setAttribute("src",this.sanitize(y)),_}},{key:"formats",value:function(y){return g.reduce(function(_,w){return y.hasAttribute(w)&&(_[w]=y.getAttribute(w)),_},{})}},{key:"match",value:function(y){return/\.(jpe?g|gif|png)$/.test(y)||/^data:image\/.+;base64/.test(y)}},{key:"sanitize",value:function(y){return(0,u.sanitize)(y,["http","https","data"])?y:"//:0"}},{key:"value",value:function(y){return y.getAttribute("src")}}]),m}(l.default.Embed);v.blotName="image",v.tagName="IMG",r.default=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function b(m,p){for(var y=0;y<p.length;y++){var _=p[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,p,y){return p&&b(m.prototype,p),y&&b(m,y),m}}(),s=function b(m,p,y){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,p);if(_===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:b(w,p,y)}else{if("value"in _)return _.value;var x=_.get;return x===void 0?void 0:x.call(y)}},a=i(4),l=i(27),u=c(l);function c(b){return b&&b.__esModule?b:{default:b}}function f(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function d(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function h(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var g=["height","width"],v=function(b){h(m,b);function m(){return f(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"format",value:function(y,_){g.indexOf(y)>-1?_?this.domNode.setAttribute(y,_):this.domNode.removeAttribute(y):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,y,_)}}],[{key:"create",value:function(y){var _=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y);return _.setAttribute("frameborder","0"),_.setAttribute("allowfullscreen",!0),_.setAttribute("src",this.sanitize(y)),_}},{key:"formats",value:function(y){return g.reduce(function(_,w){return y.hasAttribute(w)&&(_[w]=y.getAttribute(w)),_},{})}},{key:"sanitize",value:function(y){return u.default.sanitize(y)}},{key:"value",value:function(y){return y.getAttribute("src")}}]),m}(a.BlockEmbed);v.blotName="video",v.className="ql-video",v.tagName="IFRAME",r.default=v},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var o=function(){function y(_,w){for(var x=0;x<w.length;x++){var E=w[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}return function(_,w,x){return w&&y(_.prototype,w),x&&y(_,x),_}}(),s=function y(_,w,x){_===null&&(_=Function.prototype);var E=Object.getOwnPropertyDescriptor(_,w);if(E===void 0){var S=Object.getPrototypeOf(_);return S===null?void 0:y(S,w,x)}else{if("value"in E)return E.value;var C=E.get;return C===void 0?void 0:C.call(x)}},a=i(35),l=h(a),u=i(5),c=h(u),f=i(9),d=h(f);function h(y){return y&&y.__esModule?y:{default:y}}function g(y,_){if(!(y instanceof _))throw new TypeError("Cannot call a class as a function")}function v(y,_){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:y}function b(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}var m=function(y){b(_,y);function _(){return g(this,_),v(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,null,[{key:"create",value:function(x){var E=s(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,x);return typeof x=="string"&&(window.katex.render(x,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",x)),E}},{key:"value",value:function(x){return x.getAttribute("data-value")}}]),_}(l.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var p=function(y){b(_,y),o(_,null,[{key:"register",value:function(){c.default.register(m,!0)}}]);function _(){g(this,_);var w=v(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return w}return _}(d.default);r.FormulaBlot=m,r.default=p},function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var o=function(){function x(E,S){for(var C=0;C<S.length;C++){var T=S[C];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(E,T.key,T)}}return function(E,S,C){return S&&x(E.prototype,S),C&&x(E,C),E}}(),s=function x(E,S,C){E===null&&(E=Function.prototype);var T=Object.getOwnPropertyDescriptor(E,S);if(T===void 0){var R=Object.getPrototypeOf(E);return R===null?void 0:x(R,S,C)}else{if("value"in T)return T.value;var O=T.get;return O===void 0?void 0:O.call(C)}},a=i(0),l=v(a),u=i(5),c=v(u),f=i(9),d=v(f),h=i(13),g=v(h);function v(x){return x&&x.__esModule?x:{default:x}}function b(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function m(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function p(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}var y=function(x){p(E,x);function E(){return b(this,E),m(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"replaceWith",value:function(C){this.domNode.textContent=this.domNode.textContent,this.attach(),s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,C)}},{key:"highlight",value:function(C){var T=this.domNode.textContent;this.cachedText!==T&&((T.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=C(T),this.domNode.normalize(),this.attach()),this.cachedText=T)}}]),E}(g.default);y.className="ql-syntax";var _=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),w=function(x){p(E,x),o(E,null,[{key:"register",value:function(){c.default.register(_,!0),c.default.register(y,!0)}}]);function E(S,C){b(this,E);var T=m(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S,C));if(typeof T.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var R=null;return T.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(R),R=setTimeout(function(){T.highlight(),R=null},T.options.interval)}),T.highlight(),T}return o(E,[{key:"highlight",value:function(){var C=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var T=this.quill.getSelection();this.quill.scroll.descendants(y).forEach(function(R){R.highlight(C.options.highlight)}),this.quill.update(c.default.sources.SILENT),T!=null&&this.quill.setSelection(T,c.default.sources.SILENT)}}}]),E}(d.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(x){var E=window.hljs.highlightAuto(x);return E.value}}(),interval:1e3},r.CodeBlock=y,r.CodeToken=_,r.default=w},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
1650 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,r){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,r){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,r){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}
vendor: 11,401 bytes, line 1650
1650,function(n,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var o=function E(S,C,T){S===null&&(S=Function.prototype);var R=Object.getOwnPropertyDescriptor(S,C);if(R===void 0){var O=Object.getPrototypeOf(S);return O===null?void 0:E(O,C,T)}else{if("value"in R)return R.value;var N=R.get;return N===void 0?void 0:N.call(T)}},s=function(){function E(S,C){for(var T=0;T<C.length;T++){var R=C[T];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(S,R.key,R)}}return function(S,C,T){return C&&E(S.prototype,C),T&&E(S,T),S}}(),a=i(3),l=b(a),u=i(8),c=b(u),f=i(43),d=b(f),h=i(15),g=i(41),v=b(g);function b(E){return E&&E.__esModule?E:{default:E}}function m(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}function p(E,S){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:E}function y(E,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);E.prototype=Object.create(S&&S.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(E,S):E.__proto__=S)}var _=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=function(E){y(S,E);function S(C,T){m(this,S),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=_);var R=p(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,C,T));return R.quill.container.classList.add("ql-bubble"),R}return s(S,[{key:"extendToolbar",value:function(T){this.tooltip=new x(this.quill,this.options.bounds),this.tooltip.root.appendChild(T.container),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),v.default)}}]),S}(d.default);w.DEFAULTS=(0,l.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){S?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var x=function(E){y(S,E);function S(C,T){m(this,S);var R=p(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,C,T));return R.quill.on(c.default.events.EDITOR_CHANGE,function(O,N,M,$){if(O===c.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&$===c.default.sources.USER){R.show(),R.root.style.left="0px",R.root.style.width="",R.root.style.width=R.root.offsetWidth+"px";var z=R.quill.getLines(N.index,N.length);if(z.length===1)R.position(R.quill.getBounds(N));else{var V=z[z.length-1],H=R.quill.getIndex(V),j=Math.min(V.length()-1,N.index+N.length-H),L=R.quill.getBounds(new h.Range(H,j));R.position(L)}}else document.activeElement!==R.textbox&&R.quill.hasFocus()&&R.hide()}),R}return s(S,[{key:"listen",value:function(){var T=this;o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){T.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!T.root.classList.contains("ql-hidden")){var R=T.quill.getSelection();R!=null&&T.position(T.quill.getBounds(R))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(T){var R=o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"position",this).call(this,T),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",R===0)return R;O.style.marginLeft=-1*R-O.offsetWidth/2+"px"}}]),S}(f.BaseTooltip);x.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=x,r.default=w},function(n,r,i){n.exports=i(63)}]).default})})(HA);var OG=HA.exports,kG=Xt&&Xt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tf=Xt&&Xt.__assign||function(){return Tf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Tf.apply(this,arguments)},CG=Xt&&Xt.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},Ud=Xt&&Xt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Fn=Ud(P),PG=Ud(Ps),ha=Ud(AG),hb=Ud(OG),NG=function(e){kG(t,e);function t(n){var r=e.call(this,n)||this;r.dirtyProps=["modules","formats","bounds","theme","children"],r.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],r.state={generation:0},r.selection=null,r.onEditorChange=function(o,s,a,l){var u,c,f,d;o==="text-change"?(c=(u=r).onEditorChangeText)===null||c===void 0||c.call(u,r.editor.root.innerHTML,s,l,r.unprivilegedEditor):o==="selection-change"&&((d=(f=r).onEditorChangeSelection)===null||d===void 0||d.call(f,s,l,r.unprivilegedEditor))};var i=r.isControlled()?n.value:n.defaultValue;return r.value=i??"",r}return t.prototype.validateProps=function(n){var r;if(Fn.default.Children.count(n.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(Fn.default.Children.count(n.children)){var i=Fn.default.Children.only(n.children);if(((r=i)===null||r===void 0?void 0:r.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&n.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(n,r){var i=this,o;if(this.validateProps(n),!this.editor||this.state.generation!==r.generation)return!0;if("value"in n){var s=this.getEditorContents(),a=(o=n.value,o??"");this.isEqualValue(a,s)||this.setEditorContents(this.editor,a)}return n.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,n.readOnly),CG(this.cleanProps,this.dirtyProps).some(function(l){return!ha.default(n[l],i.props[l])})},t.prototype.shouldComponentRegenerate=function(n){var r=this;return this.dirtyProps.some(function(i){return!ha.default(n[i],r.props[i])})},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(n,r){var i=this;if(this.editor&&this.shouldComponentRegenerate(n)){var o=this.editor.getContents(),s=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:s},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==r.generation){var a=this.regenerationSnapshot,o=a.delta,l=a.selection;delete this.regenerationSnapshot,this.instantiateEditor();var u=this.editor;u.setContents(o),pb(function(){return i.setEditorSelection(u,l)})}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(n,r){var i=new hb.default(n,r);return r.tabIndex!=null&&this.setEditorTabIndex(i,r.tabIndex),this.hookEditor(i),i},t.prototype.hookEditor=function(n){this.unprivilegedEditor=this.makeUnprivilegedEditor(n),n.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(n){n.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(n){return n&&n.ops},t.prototype.isEqualValue=function(n,r){return this.isDelta(n)&&this.isDelta(r)?ha.default(n.ops,r.ops):ha.default(n,r)},t.prototype.setEditorContents=function(n,r){var i=this;this.value=r;var o=this.getEditorSelection();typeof r=="string"?n.setContents(n.clipboard.convert(r)):n.setContents(r),pb(function(){return i.setEditorSelection(n,o)})},t.prototype.setEditorSelection=function(n,r){if(this.selection=r,r){var i=n.getLength();r.index=Math.max(0,Math.min(r.index,i-1)),r.length=Math.max(0,Math.min(r.length,i-1-r.index)),n.setSelection(r)}},t.prototype.setEditorTabIndex=function(n,r){var i,o;!((o=(i=n)===null||i===void 0?void 0:i.scroll)===null||o===void 0)&&o.domNode&&(n.scroll.domNode.tabIndex=r)},t.prototype.setEditorReadOnly=function(n,r){r?n.disable():n.enable()},t.prototype.makeUnprivilegedEditor=function(n){var r=n;return{getHTML:function(){return r.root.innerHTML},getLength:r.getLength.bind(r),getText:r.getText.bind(r),getContents:r.getContents.bind(r),getSelection:r.getSelection.bind(r),getBounds:r.getBounds.bind(r)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var n=PG.default.findDOMNode(this.editingArea);if(!n)throw new Error("Cannot find element for editing area");if(n.nodeType===3)throw new Error("Editing area cannot be a text node");return n},t.prototype.renderEditingArea=function(){var n=this,r=this.props,i=r.children,o=r.preserveWhitespace,s=this.state.generation,a={key:s,ref:function(l){n.editingArea=l}};return Fn.default.Children.count(i)?Fn.default.cloneElement(Fn.default.Children.only(i),a):o?Fn.default.createElement("pre",Tf({},a)):Fn.default.createElement("div",Tf({},a))},t.prototype.render=function(){var n;return Fn.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(n=this.props.className,n??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(n,r,i,o){var s,a;if(this.editor){var l=this.isDelta(this.value)?o.getContents():o.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=r,this.value=l,(a=(s=this.props).onChange)===null||a===void 0||a.call(s,n,r,i,o))}},t.prototype.onEditorChangeSelection=function(n,r,i){var o,s,a,l,u,c;if(this.editor){var f=this.getEditorSelection(),d=!f&&n,h=f&&!n;ha.default(n,f)||(this.selection=n,(s=(o=this.props).onChangeSelection)===null||s===void 0||s.call(o,n,r,i),d?(l=(a=this.props).onFocus)===null||l===void 0||l.call(a,n,r,i):h&&((c=(u=this.props).onBlur)===null||c===void 0||c.c
1650all(u,f,r,i)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=hb.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(Fn.default.Component);function pb(e){Promise.resolve().then(e)}var IG=NG;const LG=yv(IG),DG=()=>{const e=G9(CA)||{data:"No data available"};return Z.jsxs(Z.Fragment,{children:[Z.jsx(Ug,{}),Z.jsx("div",{className:"overflow-hidden"}),Z.jsx("div",{className:"px-5 md:px-10 lg:px-20 max-w-6xl h-screen mt-2 mb-20 mx-auto",children:Z.jsx("div",{className:"",children:Z.jsx(LG,{value:e.data,readOnly:!0,theme:"bubble",className:"custom-quill"})})})]})},WA=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vd=P.createContext({}),hy=P.createContext(null),py=typeof document<"u",MG=py?P.useLayoutEffect:P.useEffect,KA=P.createContext({strict:!1}),my=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$G="framerAppearId",GA="data-"+my($G),jG={skipAnimations:!1,useManualTiming:!1};class mb{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 BG(e){let t=new mb,n=new mb,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&s.add(l),d.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u<r;u++){const c=t.order[u];s.has(c)&&(a.schedule(c),e()),c(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const Ku=["read","resolveKeyframes","update","preRender","render","postRender"],FG=40;function ZA(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Ku.reduce((f,d)=>(f[d]=BG(()=>n=!0),f),{}),s=f=>{o[f].process(i)},a=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,FG),1),i.timestamp=f,i.isProcessing=!0,Ku.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:Ku.reduce((f,d)=>{const h=o[d];return f[d]=(g,v=!1,b=!1)=>(n||l(),h.schedule(g,v,b)),f},{}),cancel:f=>Ku.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:vy,cancel:mJ}=ZA(queueMicrotask,!1);function qo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const YA=P.createContext({});let vb=!1;function UG(e,t,n,r,i){const{visualElement:o}=P.useContext(Vd),s=P.useContext(KA),a=P.useContext(hy),l=P.useContext(WA).reducedMotion,u=P.useRef();r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,f=P.useContext(YA);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&zG(u.current,n,i,f),P.useInsertionEffect(()=>{c&&c.update(n,a)});const d=P.useRef(!!(n[GA]&&!window.HandoffComplete));return MG(()=>{c&&(c.updateFeatures(),vy.render(c.render),d.current&&c.animationState&&c.animationState.animateChanges())}),P.useEffect(()=>{c&&(!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,vb||(vb=!0,queueMicrotask(VG))))}),c}function VG(){window.HandoffComplete=!0}function zG(e,t,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:XA(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&qo(a),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function XA(e){if(e)return e.options.allowProjection!==!1?e.projection:XA(e.parent)}function qG(e,t,n){return P.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qo(n)&&(n.current=r))},[t])}function Nl(e){return typeof e=="string"||Array.isArray(e)}function zd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const gy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yy=["initial",...gy];function qd(e){return zd(e.animate)||yy.some(t=>Nl(e[t]))}function QA(e){return!!(qd(e)||e.variants)}function HG(e,t){if(qd(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Nl(n)?n:void 0,animate:Nl(r)?r:void 0}}return e.inherit!==!1?t:{}}function WG(e){const{initial:t,animate:n}=HG(e,P.useContext(Vd));return P.useMemo(()=>({initial:t,animate:n}),[gb(t),gb(n)])}function gb(e){return Array.isArray(e)?e.join(" "):e}const yb={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"]},Rs={};for(const e in yb)Rs[e]={isEnabled:t=>yb[e].some(n=>!!t[n])};function KG(e){for(const t in e)Rs[t]={...Rs[t],...e[t]}}const JA=P.createContext({}),GG=Symbol.for("motionComponentSymbol"),kt=e=>e;let rv=kt;function ZG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&KG(e);function o(a,l){let u;const c={...P.useContext(WA),...a,layoutId:YG(a)},{isStatic:f}=c,d=WG(a),h=r(a,f);if(!f&&py){XG();const g=QG(c);u=g.MeasureLayout,d.visualElement=UG(i,h,c,t,g.ProjectionNode)}return Z.jsxs(Vd.Provider,{value:d,children:[u&&d.visualElement?Z.jsx(u,{visualElement:d.visualElement,...c}):null,n(i,a,qG(h,d.visualElement,l),h,f,d.visualElement)]})}const s=P.forwardRef(o);return s[GG]=i,s}function YG({layoutId:e}){const t=P.useContext(JA).id;return t&&e!==void 0?t+"-"+e:e}
1650function XG(e,t){P.useContext(KA).strict}function QG(e){const{drag:t,layout:n}=Rs;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function JG(e){function t(r,i={}){return ZG(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 eZ=["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 _y(e){return typeof e!="string"||e.includes("-")?!1:!!(eZ.indexOf(e)>-1||/[A-Z]/u.test(e))}const xf={};function tZ(e){Object.assign(xf,e)}const uu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wo=new Set(uu);function eO(e,{layout:t,layoutId:n}){return wo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!xf[e]||e==="opacity")}const Ot=e=>!!(e&&e.getVelocity),nZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rZ=uu.length;function iZ(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<rZ;s++){const a=uu[s];if(e[a]!==void 0){const l=nZ[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const tO=e=>t=>typeof t=="string"&&t.startsWith(e),nO=tO("--"),oZ=tO("var(--"),by=e=>oZ(e)?sZ.test(e.split("/*")[0].trim()):!1,sZ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,aZ=(e,t)=>t&&typeof e=="number"?t.transform(e):e,bi=(e,t,n)=>n>t?t:n<e?e:n,Gs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ba={...Gs,transform:e=>bi(0,1,e)},Gu={...Gs,default:1},Fa=e=>Math.round(e*1e5)/1e5,wy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,lZ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,uZ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function cu(e){return typeof e=="string"}const fu=e=>({test:t=>cu(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$r=fu("deg"),Zn=fu("%"),ge=fu("px"),cZ=fu("vh"),fZ=fu("vw"),_b={...Zn,parse:e=>Zn.parse(e)/100,transform:e=>Zn.transform(e*100)},bb={...Gs,transform:Math.round},rO={borderWidth:ge,borderTopWidth:ge,borderRightWidth:ge,borderBottomWidth:ge,borderLeftWidth:ge,borderRadius:ge,radius:ge,borderTopLeftRadius:ge,borderTopRightRadius:ge,borderBottomRightRadius:ge,borderBottomLeftRadius:ge,width:ge,maxWidth:ge,height:ge,maxHeight:ge,size:ge,top:ge,right:ge,bottom:ge,left:ge,padding:ge,paddingTop:ge,paddingRight:ge,paddingBottom:ge,paddingLeft:ge,margin:ge,marginTop:ge,marginRight:ge,marginBottom:ge,marginLeft:ge,rotate:$r,rotateX:$r,rotateY:$r,rotateZ:$r,scale:Gu,scaleX:Gu,scaleY:Gu,scaleZ:Gu,skew:$r,skewX:$r,skewY:$r,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:Ba,originX:_b,originY:_b,originZ:ge,zIndex:bb,backgroundPositionX:ge,backgroundPositionY:ge,fillOpacity:Ba,strokeOpacity:Ba,numOctaves:bb};function Sy(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(nO(f)){o[f]=d;continue}const h=rO[f],g=aZ(d,h);if(wo.has(f)){if(l=!0,s[f]=g,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,a[f]=g):i[f]=g}if(t.transform||(l||r?i.transform=iZ(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;i.transformOrigin=`${f} ${d} ${h}`}}const Ey=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iO(e,t,n){for(const r in t)!Ot(t[r])&&!eO(r,n)&&(e[r]=t[r])}function dZ({transformTemplate:e},t,n){return P.useMemo(()=>{const r=Ey();return Sy(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function hZ(e,t,n){const r=e.style||{},i={};return iO(i,r,e),Object.assign(i,dZ(e,t,n)),i}function pZ(e,t,n){const r={}
vendor: 4,919 bytes, line 1650
1650,i=hZ(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 mZ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Rf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mZ.has(e)}let oO=e=>!Rf(e);function vZ(e){e&&(oO=t=>t.startsWith("on")?!Rf(t):e(t))}try{vZ(require("@emotion/is-prop-valid").default)}catch{}function gZ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(oO(i)||n===!0&&Rf(i)||!t&&!Rf(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function wb(e,t,n){return typeof e=="string"?e:ge.transform(t+n*e)}function yZ(e,t,n){const r=wb(t,e.x,e.width),i=wb(n,e.y,e.height);return`${r} ${i}`}const _Z={offset:"stroke-dashoffset",array:"stroke-dasharray"},bZ={offset:"strokeDashoffset",array:"strokeDasharray"};function wZ(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?_Z:bZ;e[o.offset]=ge.transform(-r);const s=ge.transform(t),a=ge.transform(n);e[o.array]=`${s} ${a}`}function Ty(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f,d){if(Sy(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:v}=e;h.transform&&(v&&(g.transform=h.transform),delete h.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=yZ(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&wZ(h,s,a,l,!1)}const sO=()=>({...Ey(),attrs:{}}),xy=e=>typeof e=="string"&&e.toLowerCase()==="svg";function SZ(e,t,n,r){const i=P.useMemo(()=>{const o=sO();return Ty(o,t,{enableHardwareAcceleration:!1},xy(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};iO(o,e.style,e),i.style={...o,...i.style}}return i}function EZ(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(_y(n)?SZ:pZ)(r,o,s,n),u=gZ(r,typeof n=="string",e),c=n!==P.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=P.useMemo(()=>Ot(f)?f.get():f,[f]);return P.createElement(n,{...c,children:d})}}function aO(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const lO=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 uO(e,t,n,r){aO(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(lO.has(i)?i:my(i),t.attrs[i])}function Ry(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(Ot(i[s])||t.style&&Ot(t.style[s])||eO(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function cO(e,t,n){const r=Ry(e,t,n);for(const i in e)if(Ot(e[i])||Ot(t[i])){const o=uu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function Sb(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ay(e,t,n,r){if(typeof t=="function"){const[i,o]=Sb(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Sb(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function TZ(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const iv=e=>Array.isArray(e),xZ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),RZ=e=>iv(e)?e[e.length-1]||0:e;function _c(e){const t=Ot(e)?e.get():e;return xZ(t)?t.toValue():t}function AZ({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:OZ(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const fO=e=>(t,n)=>{const r=P.useContext(Vd),i=P.useContext(hy),o=()=>AZ(e,t,r,i);return n?o():TZ(o)};function OZ(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=_c(o[d]);let{initial:s,animate:a}=e;const l=qd(e),u=QA(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;return f&&typeof f!="boolean"&&!zd(f)&&(Array.isArray(f)?f:[f]).forEac
1650h(h=>{const g=Ay(e,h);if(!g)return;const{transitionEnd:v,transition:b,...m}=g;for(const p in m){let y=m[p];if(Array.isArray(y)){const _=c?y.length-1:0;y=y[_]}y!==null&&(i[p]=y)}for(const p in v)i[p]=v[p]}),i}const{schedule:Fe,cancel:Rr,state:wt,steps:np}=ZA(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),kZ={useVisualState:fO({scrapeMotionValuesFromProps:cO,createRenderState:sO,onMount:(e,t,{renderState:n,latestValues:r})=>{Fe.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Fe.render(()=>{Ty(n,r,{enableHardwareAcceleration:!1},xy(t.tagName),e.transformTemplate),uO(t,n)})}})},CZ={useVisualState:fO({scrapeMotionValuesFromProps:Ry,createRenderState:Ey})};function PZ(e,{forwardMotionProps:t=!1},n,r){return{..._y(e)?kZ:CZ,preloadedFeatures:n,useRender:EZ(t),createVisualElement:r,Component:e}}function dr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const dO=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Hd(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const NZ=e=>t=>dO(t)&&e(t,Hd(t));function mr(e,t,n,r){return dr(e,t,NZ(n),r)}const IZ=(e,t)=>n=>t(e(n)),vr=(...e)=>e.reduce(IZ);function hO(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Eb=hO("dragHorizontal"),Tb=hO("dragVertical");function pO(e){let t=!1;if(e==="y")t=Tb();else if(e==="x")t=Eb();else{const n=Eb(),r=Tb();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function mO(){const e=pO(!0);return e?(e(),!1):!0}class Li{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xb(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||mO())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&Fe.postRender(()=>l(o,s))};return mr(e.current,n,i,{passive:!e.getProps()[r]})}class LZ extends Li{mount(){this.unmount=vr(xb(this.node,!0),xb(this.node,!1))}unmount(){}}class DZ extends Li{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=vr(dr(this.node.current,"focus",()=>this.onFocus()),dr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const vO=(e,t)=>t?e===t?!0:vO(e,t.parentElement):!1;function rp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Hd(n))}class MZ extends Li{constructor(){super(...arguments),this.removeStartListeners=kt,this.removeEndListeners=kt,this.removeAccessibleListeners=kt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=mr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps(),d=!f&&!vO(this.node.current,a.target)?c:u;d&&Fe.update(()=>d(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=mr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=vr(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||rp("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Fe.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=dr(this.node.current,"keyup",s),rp("down",(a,l)=>{this.startPress(a,l)})},n=dr(this.node.current,"keydown",t),r=()=>{this.isPressing&&rp("cancel",(o,s)=>this.cancelPress(o,s))},i=dr(this.node.current,"blur",r);this.removeAccessibleListeners=vr(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&&Fe.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!mO()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Fe.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=mr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=dr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=vr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const ov=new WeakMap,ip=new WeakMap,$Z=e=>{const t=ov.get(e.target);t&&t(e)},jZ=e=>{e.forEach($Z)};function BZ({root:e,...t}){const n=e||document;ip.has(n)||ip.set(n,{});const r=ip.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(jZ,{root:e,...t})),r[i]}function FZ(e,t,n){const r=BZ(t);return ov.set(e,n),r.observe(e),()=>{ov.delete(e),r.unobserve(e)}}const UZ={some:0,all:1};class VZ extends Li{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:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:UZ[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return FZ(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(zZ(t,n))&&this.startObserver()}unmount(){}}function zZ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const qZ={inView:{Feature:VZ},tap:{Feature:MZ},focus:{Feature:DZ},hover:{Feature:LZ}};function gO(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 Wd(e,t,n){const r=e.getProps();return Ay(r,t,n!==void 0?n:r.custom,e)}const ci=e=>e*1e3,gr=e=>e/1e3,HZ={type:"spring",stiffness:500,damping:25,restSpeed:10},WZ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),KZ={type:"keyframes",duration:.8},GZ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ZZ=(e,{keyframes:t})=>t.length>2?KZ:wo.has(e)?e.startsWith("scale")?WZ(t[1]):HZ:GZ;function YZ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Oy(e,t){return e[t]||e.default||e}const XZ=e=>e!==null;function Kd(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(XZ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}let bc;function QZ(){bc=void 0}const fi={now:()=>(bc===void 0&&fi.set(wt.isProcessing||jG.useManualTiming?wt.timestamp:performance.now()),bc),set:e=>{bc=e,queueMicrotask(QZ)}},yO=e=>/^0[^.\s]+$/u.test(e);function JZ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yO(e):!0}const _O=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),eY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tY(e){const t=eY.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function bO(e,t,n=1){const[r,i]=tY(e);
vendor: 65,070 bytes, line 1650
1650if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return _O(s)?parseFloat(s):s}return by(i)?bO(i,t,n+1):i}const nY=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rb=e=>e===Gs||e===ge,Ab=(e,t)=>parseFloat(e.split(", ")[t]),Ob=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Ab(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Ab(o[1],e):0}},rY=new Set(["x","y","z"]),iY=uu.filter(e=>!rY.has(e));function oY(e){const t=[];return iY.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const As={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:Ob(4,13),y:Ob(5,14)};As.translateX=As.x;As.translateY=As.y;const wO=e=>t=>t.test(e),sY={test:e=>e==="auto",parse:e=>e},SO=[Gs,ge,Zn,$r,fZ,cZ,sY],kb=e=>SO.find(wO(e)),Ji=new Set;let sv=!1,av=!1;function EO(){if(av){const e=Array.from(Ji).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=oY(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}av=!1,sv=!1,Ji.forEach(e=>e.complete()),Ji.clear()}function TO(){Ji.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(av=!0)})}function aY(){TO(),EO()}class ky{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ji.add(this),sv||(sv=!0,Fe.read(TO),Fe.resolveKeyframes(EO))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const s=i==null?void 0:i.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ji.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ji.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Cy=(e,t)=>n=>!!(cu(n)&&uZ.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),xO=(e,t,n)=>r=>{if(!cu(r))return r;const[i,o,s,a]=r.match(wy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},lY=e=>bi(0,255,e),op={...Gs,transform:e=>Math.round(lY(e))},Ki={test:Cy("rgb","red"),parse:xO("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+op.transform(e)+", "+op.transform(t)+", "+op.transform(n)+", "+Fa(Ba.transform(r))+")"};function uY(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 lv={test:Cy("#"),parse:uY,transform:Ki.transform},Ho={test:Cy("hsl","hue"),parse:xO("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Zn.transform(Fa(t))+", "+Zn.transform(Fa(n))+", "+Fa(Ba.transform(r))+")"},Rt={test:e=>Ki.test(e)||lv.test(e)||Ho.test(e),parse:e=>Ki.test(e)?Ki.parse(e):Ho.test(e)?Ho.parse(e):lv.parse(e),transform:e=>cu(e)?e:e.hasOwnProperty("red")?Ki.transform(e):Ho.transform(e)};function cY(e){var t,n;return isNaN(e)&&cu(e)&&(((t=e.match(wy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(lZ))===null||n===void 0?void 0:n.length)||0)>0}const RO="number",AO="color",fY="var",dY="var(",Cb="${}",hY=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Il(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(hY,l=>(Rt.test(l)?(r.color.push(o),i.push(AO),n.push(Rt.parse(l))):l.startsWith(dY)?(r.var.push(o),i.push(fY),n.push(l)):(r.number.push(o),i.push(RO),n.push(parseFloat(l))),++o,Cb)).split(Cb);return{values:n,split:a,indexes:r,types:i}}function OO(e){return Il(e).values}function kO(e){const{split:t,types:n}=Il(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){const a=n[s];a===RO?o+=Fa(i[s]):a===AO?o+=Rt.transform(i[s]):o+=i[s]}return o}}const pY=e=>typeof e=="number"?0:e;function mY(e){const t=OO(e);return kO(e)(t.map(pY))}const wi={test:cY,parse:OO,createTransformer:kO,getAnimatableNone:mY},vY=new Set(["brightness","contrast","saturate","opacity"]);function gY(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(wy)||[];if(!r)return e;const i=n.replace(r,"");let o=vY.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const yY=/\b([a-z-]*)\(.*?\)/gu,uv={...wi,getAnimatableNone:e=>{const t=e.match(yY);return t?t.map(gY).join(" "):e}},_Y={...rO,color:Rt,backgroundColor:Rt,outlineColor:Rt,fill:Rt,stroke:Rt,borderColor:Rt,borderTopColor:Rt,borderRightColor:Rt,borderBottomColor:Rt,borderLeftColor:Rt,filter:uv,WebkitFilter:uv},Py=e=>_Y[e];function CO(e,t){let n=Py(e);return n!==uv&&(n=wi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bY=new Set(["auto","none","0"]);function wY(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!bY.has(o)&&Il(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=CO(n,i)}class PO extends ky{constructor(t,n,r,i){super(t,n,r,i,i==null?void 0:i.owner,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),by(u))){const c=bO(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!nY.has(r)||t.length!==2)return;const[i,o]=t,s=kb(i),a=kb(o);if(s!==a)if(Rb(s)&&Rb(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)JZ(t[i])&&r.push(i);r.length&&wY(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=As[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,a=i[s];i[s]=As[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function NO(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wi.test(e)||e==="0")&&!e.startsWith("url("));function SY(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function EY(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Pb(i,t),a=Pb(o,t);return!s||!a?!1:SY(e)||n==="spring"&&r}class IO{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:s,...a},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&aY(),this._resolved}onKeyframesResolved(t,n){this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!EY(t,r,i,o))if(s)this.options.duration=0;else{l==null||l(Kd(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function LO(e,t){return t?e*(1e3/t):0}const TY=5;function DO(e,t,n){const r=Math.max(t-TY,0);return LO(n-e(r),t-r)}const sp=.001,xY=.01,RY=10,AY=.05,OY=1;function kY({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=bi(AY,OY,s),e=bi(xY,RY,gr(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=cv(u,s),g=Math.exp(-f);return sp-d/h*g},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),v=cv(Math.pow(u,2),s);return(-i(u)+sp>0?-1:1)*((d-h)*g)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-sp+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=PY(i,o,a);if(e=ci(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const CY=12;function PY(e,t,n){let r=n;for(let i=1;i<CY;i++)r=r-e(r)/t(r);return r}function cv(e,t){return e*Math.sqrt(1-t*t)}const NY=["duration","bounce"],IY=["stiffness","damping","mass"];function Nb(e,t){return t.some(n=>e[n]!==void 0)}function LY(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Nb(e,IY)&&Nb(e,NY)){const n=kY(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function MO({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=LY({...r,velocity:-gr(r.velocity||0)}),h=f||0,g=l/(2*Math.sqrt(a*u)),v=o-i,b=gr(Math.sqrt(a/u)),m=Math.abs(v)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let p;if(g<1){const y=cv(b,g);p=_=>{const w=Math.exp(-g*b*_);return o-w*((h+g*b*v)/y*Math.sin(y*_)+v*Math.cos(y*_))}}else if(g===1)p=y=>o-Math.exp(-b*y)*(v+(h+b*v)*y);else{const y=b*Math.sqrt(g*g-1);p=_=>{const w=Math.exp(-g*b*_),x=Math.min(y*_,300);return o-w*((h+g*b*v)*Math.sinh(x)+y*v*Math.cosh(x))/y}}return{calculatedDuration:d&&c||null,next:y=>{const _=p(y);if(d)s.done=y>=c;else{let w=h;y!==0&&(g<1?w=DO(p,y,_):w=0);const x=Math.abs(w)<=n,E=Math.abs(o-_)<=t;s.done=x&&E}return s.value=s.done?o:_,s}}}function Ib({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=S=>a!==void 0&&S<a||l!==void 0&&S>l,g=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let v=n*t;const b=f+v,m=s===void 0?b:s(b);m!==b&&(v=m-f);const p=S=>-v*Math.exp(-S/r),y=S=>m+p(S),_=S=>{const C=p(S),T=y(S);d.done=Math.abs(C)<=u,d.value=d.done?m:T};let w,x;const E=S=>{h(d.value)&&(w=S,x=MO({keyframes:[d.value,g(d.value)],velocity:DO(y,S,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:S=>{let C=!1;return!x&&w===void 0&&(C=!0,_(S),E(S)),w!==void 0&&S>=w?x.next(S-w):(!C&&_(S),d)}}}const $O=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,DY=1e-7,MY=12;function $Y(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=$O(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>DY&&++a<MY);return s}function du(e,t,n,r){if(e===t&&n===r)return kt;const i=o=>$Y(o,0,1,e,n);return o=>o===0||o===1?o:$O(i(o),t,r)}const jY=du(.42,0,1,1),BY=du(0,0,.58,1),jO=du(.42,0,.58,1),FY=e=>Array.isArray(e)&&typeof e[0]!="number",BO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,FO=e=>t=>1-e(1-t),Ny=e=>1-Math.sin(Math.acos(e)),UO=FO(Ny),UY=BO(Ny),VO=du(.33,1.53,.69,.99),Iy=FO(VO),VY=BO(Iy),zY=e=>(e*=2)<1?.5*Iy(e):.5*(2-Math.pow(2,-10*(e-1))),Lb={linear:kt,easeIn:jY,easeInOut:jO,easeOut:BY,circIn:Ny,circInOut:UY,circOut:UO,backIn:Iy,backInOut:VY,backOut:VO,anticipate:zY},Db=e=>{if(Array.isArray(e)){rv(e.length===4);const[t,n,r,i]=e;return du(t,n,r,i)}else if(typeof e=="string")return rv(Lb[e]!==void 0),Lb[e];return e},Ll=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ot=(e,t,n)=>e+(t-e)*n;function ap(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 qY({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=ap(l,a,e+1/3),o=ap(l,a,e),s=ap(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Af(e,t){return n=>n>0?t:e}const lp=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},HY=[lv,Ki,Ho],WY=e=>HY.find(t=>t.test(e));function Mb(e){const t=WY(e);if(!t)return!1;let n=t.parse(e);return t===Ho&&(n=qY(n)),n}const $b=(e,t)=>{const n=Mb(e),r=Mb(t);if(!n||!r)return Af(e,t);const i={...n};return o=>(i.red=lp(n.red,r.red,o),i.green=lp(n.green,r.green,o),i.blue=lp(n.blue,r.blue,o),i.alpha=ot(n.alpha,r.alpha,o),Ki.transform(i))},fv=new Set(["none","hidden"]);function KY(e,t){return fv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function GY(e,t){return n=>ot(e,t,n)}function Ly(e){return typeof e=="number"?GY:typeof e=="string"?by(e)?Af:Rt.test(e)?$b:XY:Array.isArray(e)?zO:typeof e=="object"?Rt.test(e)?$b:ZY:Af}function zO(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>Ly(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function ZY(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ly(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function YY(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}const XY=(e,t)=>{const n=wi.createTransformer(t),r=Il(e),i=Il(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?fv.has(e)&&!i.values.length||fv.has(t)&&!r.values.length?KY(e,t):vr(zO(YY(r,i),i.values),n):Af(e,t)};function qO(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):Ly(e)(e,t)}function QY(e,t,n){const r=[],i=n||qO,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||kt:t;a=vr(l,a)}r.push(a)}return r}function JY(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(rv(o===t.length),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=QY(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=Ll(e[c],e[c+1],u);return s[c](f)};return n?u=>l(bi(e[0],e[o-1],u)):l}function eX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ll(0,t,r);e.push(ot(n,1,i))}}function tX(e){const t=[0];return eX(t,e.length-1),t}function nX(e,t){return e.map(n=>n*t)}function rX(e,t){return e.map(()=>t||jO).splice(0,e.length-1)}function Of({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=FY(r)?r.map(Db):Db(r),o={done:!1,value:t[0]},s=nX(n&&n.length===t.length?n:tX(t),e),a=JY(s,t,{ease:Array.isArray(i)?i:rX(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}const jb=2e4;function iX(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<jb;)t+=n,r=e.next(t);return t>=jb?1/0:t}const oX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Fe.update(t,!0),stop:()=>Rr(t),now:()=>wt.isProcessing?wt.timestamp:fi.now()}},sX={decay:Ib,inertia:Ib,tween:Of,keyframes:Of,spring:MO},aX=e=>e/100;class Dy extends IO{constructor({KeyframeResolver:t=ky,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:i,keyframes:o}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,s,r,i):this.resolver=new t(o,s,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,a=sX[n]||Of;let l,u;a!==Of&&typeof t[0]!="number"&&(l=vr(aX,qO(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});o==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=iX(c));const{calculatedDuration:f}=c,d=f+i,h=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:h,repeatType:g,repeatDelay:v,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let y=this.currentTime,_=o;if(h){const S=Math.min(this.currentTime,c)/f;let C=Math.floor(S),T=S%1;!T&&S>=1&&(T=1),T===1&&C--,C=Math.min(C,h+1),!!(C%2)&&(g==="reverse"?(T=1-T,v&&(T-=v/f)):g==="mirror"&&(_=s)),y=bi(0,1,T)*f}const w=p?{done:!1,value:l[0]}:_.next(y);a&&(w.value=a(w.value));let{done:x}=w;!p&&u!==null&&(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&x);return E&&i!==void 0&&(w.value=Kd(l,this.options,i)),b&&b(w.value),E&&this.finish(),w}get duration(){const{resolved:t}=this;return t?gr(t.calculatedDuration):0}get time(){return gr(this.currentTime)}set time(t){t=ci(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=gr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=oX,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const HO=e=>Array.isArray(e)&&typeof e[0]=="number";function WO(e){return!!(!e||typeof e=="string"&&e in My||HO(e)||Array.isArray(e)&&e.every(WO))}const Ta=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,My={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ta([0,.65,.55,1]),circOut:Ta([.55,0,1,.45]),backIn:Ta([.31,.01,.66,-.59]),backOut:Ta([.33,1.53,.69,.99])};function lX(e){return KO(e)||My.easeOut}function KO(e){if(e)return HO(e)?Ta(e):Array.isArray(e)?e.map(lX):My[e]}function uX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=KO(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const cX=NO(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),fX=new Set(["opacity","clipPath","filter","transform"]),kf=10,dX=2e4;function hX(e){return e.type==="spring"||e.name==="backgroundColor"||!WO(e.ease)}function pX(e,t){const n=new Dy({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<dX;)r=n.sample(o),i.push(r.value),o+=kf;return{times:void 0,keyframes:i,duration:o-kf,ease:"linear"}}class Bb extends IO{constructor(t){super(t);const{name:n,motionValue:r,keyframes:i}=this.options;this.resolver=new PO(i,(o,s)=>this.onKeyframesResolved(o,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(hX(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,...g}=this.options,v=pX(t,g);t=v.keyframes,t.length===1&&(t[1]=t[0]),i=v.duration,o=v.times,s=v.ease,a="keyframes"}const c=uX(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:s});return c.startTime=fi.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(Kd(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return gr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return gr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ci(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return kt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:a}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...f}=this.options,d=new Dy({...f,keyframes:r,duration:i,type:o,ease:s,times:a,isGenerator:!0}),h=ci(this.time);l.setWithVelocity(d.sample(h-kf).value,d.sample(h).value,kf)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:a}=t;return cX()&&r&&fX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&s!==0&&a!=="inertia"}}function mX(e,t){let n;const r=()=>{const{currentTime:i}=t,s=(i===null?0:i.value)/100;n!==s&&e(s),n=s};return Fe.update(r,!0),()=>Rr(r)}const vX=NO(()=>window.ScrollTimeline!==void 0);class gX{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>{if(vX()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),mX(i=>{r.time=r.duration*i},t)});return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const $y=(e,t,n,r={},i,o)=>s=>{const a=Oy(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ci(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};YZ(a)||(c={...c,...ZZ(e,c)}),c.duration&&(c.duration=ci(c.duration)),c.repeatDelay&&(c.repeatDelay=ci(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=Kd(c.keyframes,a);if(d!==void 0)return Fe.update(()=>{c.onUpdate(d),c.onComplete()}),new gX([])}return!o&&Bb.supports(c)?new Bb(c):new Dy(c)};function Cf(e){return!!(Ot(e)&&e.add)}function jy(e,t){e.indexOf(t)===-1&&e.push(t)}function By(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Fy{constructor(){this.subscriptions=[]}add(t){return jy(this.subscriptions,t),()=>By(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 o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Fb=30,yX=e=>!isNaN(parseFloat(e));class _X{constructor(t,n={}){this.version="11.2.12",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=fi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=fi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yX(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Fy);const r=this.events[t].add(n);return t==="change"?()=>{r(),Fe.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=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=fi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fb);return LO(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 Dl(e,t){return new _X(e,t)}function bX(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dl(n))}function wX(e,t){const n=Wd(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const a=RZ(o[s]);bX(e,s,a)}}function GO(e){return e.getProps()[GA]}function SX({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ZO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;const u=e.getValue("willChange");r&&(s=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const h=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),g=l[d];if(g===void 0||f&&SX(f,d))continue;const v={delay:n,elapsed:0,...Oy(s||{},d)};let b=!1;if(window.HandoffAppearAnimations){const p=GO(e);if(p){const y=window.HandoffAppearAnimations(p,d,h,Fe);y!==null&&(v.elapsed=y,b=!0)}}h.start($y(d,h,g,e.shouldReduceMotion&&wo.has(d)?{type:!1}:v,e,b));const m=h.animation;m&&(Cf(u)&&(u.add(d),m.then(()=>u.remove(d))),c.push(m))}return a&&Promise.all(c).then(()=>{Fe.update(()=>{a&&wX(e,a)})}),c}function dv(e,t,n={}){var r;const i=Wd(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(ZO(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return EX(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function EX(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(TX).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(dv(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function TX(e,t){return e.sortNodePosition(t)}function xX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>dv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=dv(e,t,n);else{const i=typeof t=="function"?Wd(e,t,n.custom):t;r=Promise.all(ZO(e,i,n))}return r.then(()=>{Fe.postRender(()=>{e.notify("AnimationComplete",t)})})}const RX=[...gy].reverse(),AX=gy.length;function OX(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xX(e,n,r)))}function kX(e){let t=OX(e),n=Ub(),r=!0;const i=l=>(u,c)=>{var f;const d=Wd(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:g,...v}=d;u={...u,...v,...g}}return u};function o(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set;let h={},g=1/0;for(let b=0;b<AX;b++){const m=RX[b],p=n[m],y=u[m]!==void 0?u[m]:c[m],_=Nl(y),w=m===l?p.isActive:null;w===!1&&(g=b);let x=y===c[m]&&y!==u[m]&&_;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),p.protectedKeys={...h},!p.isActive&&w===null||!y&&!p.prevProp||zd(y)||typeof y=="boolean")continue;let S=CX(p.prevProp,y)||m===l&&p.isActive&&!x&&_||b>g&&_,C=!1;const T=Array.isArray(y)?y:[y];let R=T.reduce(i(m),{});w===!1&&(R={});const{prevResolvedValues:O={}}=p,N={...O,...R},M=$=>{S=!0,d.has($)&&(C=!0,d.delete($)),p.needsAnimating[$]=!0;const z=e.getValue($);z&&(z.liveStyle=!1)};for(const $ in N){const z=R[$],V=O[$];if(h.hasOwnProperty($))continue;let H=!1;iv(z)&&iv(V)?H=!gO(z,V):H=z!==V,H?z!=null?M($):d.add($):z!==void 0&&d.has($)?M($):p.protectedKeys[$]=!0}p.prevProp=y,p.prevResolvedValues=R,p.isActive&&(h={...h,...R}),r&&e.blockInitialAnimation&&(S=!1),S&&(!x||C)&&f.push(...T.map($=>({animation:$,options:{type:m}})))}if(d.size){const b={};d.forEach(m=>{const p=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),b[m]=p??null}),f.push({animation:b})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ub(),r=!0}}}function CX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gO(t,e):!1}function Di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ub(){return{animate:Di(!0),whileInView:Di(),whileHover:Di(),whileTap:Di(),whileDrag:Di(),whileFocus:Di(),exit:Di()}}class PX extends Li{constructor(t){super(t),t.animationState||(t.animationState=kX(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();zd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let NX=0;class IX extends Li{constructor(){super(...arguments),this.id=NX++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const LX={animation:{Feature:PX},exit:{Feature:IX}},Vb=(e,t)=>Math.abs(e-t);function DX(e,t){const n=Vb(e.x,t.x),r=Vb(e.y,t.y);return Math.sqrt(n**2+r**2)}class YO{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=cp(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=DX(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:g}=f,{timestamp:v}=wt;this.history.push({...g,timestamp:v});const{onStart:b,onMove:m}=this.handlers;d||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=up(d,this.transformPagePoint),Fe.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=cp(f.type==="pointercancel"?this.lastMoveEventInfo:up(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,b),g&&g(f,b)},!dO(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Hd(t),a=up(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=wt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,cp(a,this.history)),this.removeListeners=vr(mr(this.contextWindow,"pointermove",this.handlePointerMove),mr(this.contextWindow,"pointerup",this.handlePointerUp),mr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Rr(this.updatePoint)}}function up(e,t){return t?{point:t(e.point)}:e}function zb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cp({point:e},t){return{point:e,delta:zb(e,XO(t)),offset:zb(e,MX(t)),velocity:$X(t,.1)}}function MX(e){return e[0]}function XO(e){return e[e.length-1]}function $X(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=XO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ci(t)));)n--;if(!r)return{x:0,y:0};const o=gr(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function on(e){return e.max-e.min}function hv(e,t=0,n=.01){return Math.abs(e-t)<=n}function qb(e,t,n,r=.5){e.origin=r,e.originPoint=ot(t.min,t.max,e.origin),e.scale=on(n)/on(t),(hv(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ot(n.min,n.max,e.origin)-e.originPoint,(hv(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ua(e,t,n,r){qb(e.x,t.x,n.x,r?r.originX:void 0),qb(e.y,t.y,n.y,r?r.originY:void 0)}function Hb(e,t,n){e.min=n.min+t.min,e.max=e.min+on(t)}function jX(e,t,n){Hb(e.x,t.x,n.x),Hb(e.y,t.y,n.y)}function Wb(e,t,n){e.min=t.min-n.min,e.max=e.min+on(t)}function Va(e,t,n){Wb(e.x,t.x,n.x),Wb(e.y,t.y,n.y)}function BX(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ot(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ot(n,e,r.max):Math.min(e,n)),e}function Kb(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 FX(e,{top:t,left:n,bottom:r,right:i}){return{x:Kb(e.x,n,i),y:Kb(e.y,t,r)}}function Gb(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 UX(e,t){return{x:Gb(e.x,t.x),y:Gb(e.y,t.y)}}function VX(e,t){let n=.5;const r=on(e),i=on(t);return i>r?n=Ll(t.min,t.max-r,e.min):r>i&&(n=Ll(e.min,e.max-i,t.min)),bi(0,1,n)}function zX(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 pv=.35;function qX(e=pv){return e===!1?e=0:e===!0&&(e=pv),{x:Zb(e,"left","right"),y:Zb(e,"top","bottom")}}function Zb(e,t,n){return{min:Yb(e,t),max:Yb(e,n)}}function Yb(e,t){return typeof e=="number"?e:e[t]||0}const Xb=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wo=()=>({x:Xb(),y:Xb()}),Qb=()=>({min:0,max:0}),ct=()=>({x:Qb(),y:Qb()});function cn(e){return[e("x"),e("y")]}function QO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function HX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function WX(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 fp(e){return e===void 0||e===1}function mv({scale:e,scaleX:t,scaleY:n}){return!fp(e)||!fp(t)||!fp(n)}function Fi(e){return mv(e)||JO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function JO(e){return Jb(e.x)||Jb(e.y)}function Jb(e){return e&&e!=="0%"}function Pf(e,t,n){const r=e-n,i=t*r;return n+i}function ew(e,t,n,r,i){return i!==void 0&&(e=Pf(e,i,r)),Pf(e,n,r)+t}function vv(e,t=0,n=1,r,i){e.min=ew(e.min,t,n,r,i),e.max=ew(e.max,t,n,r,i)}function ek(e,{x:t,y:n}){vv(e.x,t.translate,t.scale,t.originPoint),vv(e.y,n.translate,n.scale,n.originPoint)}function KX(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ko(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,ek(e,s)),r&&Fi(o.latestValues)&&Ko(e,o.latestValues))}t.x=tw(t.x),t.y=tw(t.y)}function tw(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Ur(e,t){e.min=e.min+t,e.max=e.max+t}function nw(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=ot(e.min,e.max,o);vv(e,t[n],t[r],s,t.scale)}const GX=["x","scaleX","originX"],ZX=["y","scaleY","originY"];function Ko(e,t){nw(e.x,t,GX),nw(e.y,t,ZX)}function tk(e,t){return QO(WX(e.getBoundingClientRect(),t))}function YX(e,t,n){const r=tk(e,n),{scroll:i}=t;return i&&(Ur(r.x,i.offset.x),Ur(r.y,i.offset.y)),r}const nk=({current:e})=>e?e.ownerDocument.defaultView:null,XX=new WeakMap;class QX{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=ct(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Hd(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:h,onDragStart:g}=this.getProps();if(d&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=pO(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),cn(b=>{let m=this.getAxisMotionValue(b).get()||0;if(Zn.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[b];y&&(m=on(y)*(parseFloat(m)/100))}}this.originPoint[b]=m}),g&&Fe.postRender(()=>g(c,f));const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:g,onDrag:v}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:b}=f;if(h&&this.currentDirection===null){this.currentDirection=JX(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),v&&v(c,f)},a=(c,f)=>this.stop(c,f),l=()=>cn(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new YO(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:nk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fe.postRender(()=>o(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||!Zu(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=BX(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&qo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=FX(i.layoutBox,n):this.constraints=!1,this.elastic=qX(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&cn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=zX(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qo(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=YX(r,i.root,this.visualElement.getTransformPagePoint());let s=UX(i.layout.layoutBox,o);if(n){const a=n(HX(s));this.hasMutatedConstraints=!!a,a&&(s=QO(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=cn(c=>{if(!Zu(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start($y(t,r,0,n,this.visualElement))}stopAnimation(){cn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){cn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}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){cn(n=>{const{drag:r}=this.getProps();if(!Zu(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-ot(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};cn(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();i[s]=VX({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),cn(s=>{if(!Zu(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ot(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;XX.set(this.visualElement,this);const t=this.visualElement.current,n=mr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();qo(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fe.read(r);const s=dr(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(cn(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=pv,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function Zu(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function JX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class eQ extends Li{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new QX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const rw=e=>(t,n)=>{e&&Fe.postRender(()=>e(t,n))};class tQ extends Li{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new YO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:rw(t),onStart:rw(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Fe.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=mr(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 nQ(){const e=P.useContext(hy);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=P.useId();return P.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const wc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function iw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const n=iw(e,t.target.x),r=iw(e,t.target.y);return`${n}% ${r}%`}},rQ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wi.parse(e);if(i.length>5)return r;const o=wi.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=ot(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class iQ extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;tZ(oQ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),wc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Fe.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),vy.postRender(()=>{!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 rk(e){const[t,n]=nQ(),r=P.useContext(JA);return Z.jsx(iQ,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(YA),isPresent:t,safeToRemove:n})}const oQ={borderRadius:{...pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pa,borderTopRightRadius:pa,borderBottomLeftRadius:pa,borderBottomRightRadius:pa,boxShadow:rQ},ik=["TopLeft","TopRight","BottomLeft","BottomRight"],sQ=ik.length,ow=e=>typeof e=="string"?parseFloat(e):e,sw=e=>typeof e=="number"||ge.test(e);function aQ(e,t,n,r,i,o){i?(e.opacity=ot(0,n.opacity!==void 0?n.opacity:1,lQ(r)),e.opacityExit=ot(t.opacity!==void 0?t.opacity:1,0,uQ(r))):o&&(e.opacity=ot(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<sQ;s++){const a=`border${ik[s]}Radius`;let l=aw(t,a),u=aw(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||sw(l)===sw(u)?(e[a]=Math.max(ot(ow(l),ow(u),r),0),(Zn.test(u)||Zn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=ot(t.rotate||0,n.rotate||0,r))}function aw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const lQ=ok(0,.5,UO),uQ=ok(.5,.95,kt);function ok(e,t,n){return r=>r<e?0:r>t?1:n(Ll(e,t,r))}function lw(e,t){e.min=t.min,e.max=t.max}function un(e,t){lw(e.x,t.x),lw(e.y,t.y)}function uw(e,t,n,r,i){return e-=t,e=Pf(e,1/n,r),i!==void 0&&(e=Pf(e,1/i,r)),e}function cQ(e,t=0,n=1,r=.5,i,o=e,s=e){if(Zn.test(t)&&(t=parseFloat(t),t=ot(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ot(o.min,o.max,r);e===o&&(a-=t),e.min=uw(e.min,t,n,a,i),e.max=uw(e.max,t,n,a,i)}function cw(e,t,[n,r,i],o,s){cQ(e,t[n],t[r],t[i],t.scale,o,s)}const fQ=["x","scaleX","originX"],dQ=["y","scaleY","originY"];function fw(e,t,n,r){cw(e.x,t,fQ,n?n.x:void 0,r?r.x:void 0),cw(e.y,t,dQ,n?n.y:void 0,r?r.y:void 0)}function dw(e){return e.translate===0&&e.scale===1}function sk(e){return dw(e.x)&&dw(e.y)}function hQ(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 ak(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 hw(e){return on(e.x)/on(e.y)}class pQ{constructor(){this.members=[]}add(t){jy(this.members,t),t.scheduleRender()}remove(t){if(By(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 o=this.members[i];if(o.isPresent!==!1){r=o;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 pw(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:h,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const mQ=(e,t)=>e.depth-t.depth;class vQ{constructor(){this.children=[],this.isDirty=!1}add(t){jy(this.children,t),this.isDirty=!0}remove(t){By(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(mQ),this.isDirty=!1,this.children.forEach(t)}}function gQ(e,t){const n=fi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Rr(r),e(o-t))};return Fe.read(r,!0),()=>Rr(r)}function yQ(e){window.MotionDebug&&window.MotionDebug.record(e)}function _Q(e){return e instanceof SVGElement&&e.tagName!=="svg"}function bQ(e,t,n){const r=Ot(e)?e:Dl(e);return r.start($y("",r,t,n)),r.animation}const dp=["","X","Y","Z"],wQ={visibility:"hidden"},mw=1e3;let SQ=0;const Ui={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function hp(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function lk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?GO(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?lk(e.parent):!1:!1}function uk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=SQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ui.totalNodes=Ui.resolvedTargetDeltas=Ui.recalculatedProjection=0,this.nodes.forEach(xQ),this.nodes.forEach(CQ),this.nodes.forEach(PQ),this.nodes.forEach(RQ),yQ(Ui)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,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 l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new vQ)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Fy),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=_Q(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=gQ(d,250),wc.hasAnimatedSinceResize&&(wc.hasAnimatedSinceResize=!1,this.nodes.forEach(gw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||MQ,{onLayoutAnimationStart:b,onLayoutAnimationComplete:m}=c.getProps(),p=!this.targetLayout||!ak(this.targetLayout,g)||h,y=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const _={...Oy(v,"layout"),onPlay:b,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else d||gw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rr(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(NQ),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&lk(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vw);return}this.isUpdating||this.nodes.forEach(OQ),this.isUpdating=!1,this.nodes.forEach(kQ),this.nodes.forEach(EQ),this.nodes.forEach(TQ),this.clearAllSnapshots();const a=fi.now();wt.delta=bi(0,1e3/60,a-wt.timestamp),wt.timestamp=a,wt.isProcessing=!0,np.update.process(wt),np.preRender.process(wt),np.render.process(wt),wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AQ),this.sharedNodes.forEach(IQ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fe.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ct(),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,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!sk(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(a||Fi(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),$Q(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return ct();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Ur(a.x,l.offset.x),Ur(a.y,l.offset.y)),a}removeElementScroll(s){const a=ct();un(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;if(u!==this.root&&c&&f.layoutScroll){if(c.isRoot){un(a,s);const{scroll:d}=this.root;d&&(Ur(a.x,-d.offset.x),Ur(a.y,-d.offset.y))}Ur(a.x,c.offset.x),Ur(a.y,c.offset.y)}}return a}applyTransform(s,a=!1){const l=ct();un(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ko(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Fi(c.latestValues)&&Ko(l,c.latestValues)}return Fi(this.latestValues)&&Ko(l,this.latestValues),l}removeTransform(s){const a=ct();un(a,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Fi(u.latestValues))continue;mv(u.latestValues)&&u.updateSnapshot();const c=ct(),f=u.measurePageBox();un(c,f),fw(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Fi(this.latestValues)&&fw(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=wt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ct(),this.relativeTargetOrigin=ct(),V
vendor: 4,497 bytes, line 1650
1650a(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),un(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ct(),this.targetWithTransforms=ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jX(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):un(this.target,this.layout.layoutBox),ek(this.target,this.targetDelta)):un(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ct(),this.relativeTargetOrigin=ct(),Va(this.relativeTargetOrigin,this.target,h.target),un(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ui.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mv(this.parent.latestValues)||JO(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 s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===wt.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;un(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;KX(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ct());const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=Wo(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Wo(),this.projectionDeltaWithTransform=Wo());const v=this.projectionTransform;Ua(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=pw(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==d||this.treeScale.y!==h)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Ui.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=Wo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=ct(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,v=h!==g,b=this.getStack(),m=!b||b.members.length<=1,p=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(DQ));this.animationProgress=0;let y;this.mixTargetDelta=_=>{const w=_/1e3;yw(f.x,s.x,w),yw(f.y,s.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Va(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LQ(this.relativeTarget,this.relativeTargetOrigin,d,w),y&&hQ(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=ct()),un(y,this.relativeTarget)),v&&(this.animationValues=c,aQ(c,u,this.latestValues,w,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(
vendor: 16,692 bytes, line 1650
1650Rr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fe.update(()=>{wc.hasAnimatedSinceResize=!0,this.currentAnimation=bQ(0,mw,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&ck(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ct();const f=on(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=on(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}un(a,l),Ko(a,c),Ua(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new pQ),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&hp("z",s,u,this.animationValues);for(let c=0;c<dp.length;c++)hp(`rotate${dp[c]}`,s,u,this.animationValues),hp(`skew${dp[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wQ;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=_c(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=_c(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Fi(this.latestValues)&&(v.transform=c?c({},""):"none",this.hasProjected=!1),v}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=pw(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const v in xf){if(d[v]===void 0)continue;const{correct:b,applyTo:m}=xf[v],p=u.transform==="none"?d[v]:b(d[v],f);if(m){const y=m.length;for(let _=0;_<y;_++)u[m[_]]=p}else u[v]=p}return this.options.layoutId&&(u.pointerEvents=f===this?_c(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(vw),this.root.sharedNodes.clear()}}}function EQ(e){e.updateLayout()}function TQ(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:o}=e.options,s=n.source!==e.layout.source;o==="size"?cn(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=on(d);d.min=r[f].min,d.max=d.min+h}):ck(o,n.layoutBox,r)&&cn(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=on(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=Wo();Ua(a,r,n.layoutBox);const l=Wo();s?Ua(l,e.applyTransform(i,!0),n.measuredBox):Ua(l,r,n.layoutBox);const u=!sk(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=ct();Va(g,n.layoutBox,d.layoutBox);const v=ct();Va(v,r,h.layoutBox),ak(g,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function xQ(e){Ui.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 RQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AQ(e){e.clearSnapshot()}function vw(e){e.clearMeasurements()}function OQ(e){e.isLayoutDirty=!1}function kQ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function gw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CQ(e){e.resolveTargetDelta()}function PQ(e){e.calcProjection()}function NQ(e){e.resetSkewAndRotation()}function IQ(e){e.removeLeadSnapshot()}function yw(e,t,n){e.translate=ot(t.translate,0,n),e.scale=ot(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _w(e,t,n,r){e.min=ot(t.min,n.min,r),e.max=ot(t.max,n.max,r)}function LQ(e,t,n,r){_w(e.x,t.x,n.x,r),_w(e.y,t.y,n.y,r)}function DQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const MQ={duration:.45,ease:[.4,0,.1,1]},bw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ww=bw("applewebkit/")&&!bw("chrome/")?Math.round:kt;function Sw(e){e.min=ww(e.min),e.max=ww(e.max)}function $Q(e){Sw(e.x),Sw(e.y)}function ck(e,t,n){return e==="position"||e==="preserve-aspect"&&!hv(hw(t),hw(n),.2)}const jQ=uk({attachResizeListener:(e,t)=>dr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pp={current:void 0},fk=uk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pp.current){const e=new jQ({});e.mount(window),e.setOptions({layoutScroll:!0}),pp.current=e}return pp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),BQ={pan:{Feature:tQ},drag:{Feature:eQ,ProjectionNode:fk,MeasureLayout:rk}},gv={current:null},dk={current:!1};function FQ(){if(dk.current=!0,!!py)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gv.current=e.matches;e.addListener(t),t()}else gv.current=!1}function UQ(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Ot(o))e.addValue(i,o),Cf(r)&&r.add(i);else if(Ot(s))e.addValue(i,Dl(o,{owner:e})),Cf(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Dl(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Ew=new WeakMap,VQ=[...SO,Rt,wi],zQ=e=>VQ.find(wO(e)),Tw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qQ=yy.length;class HQ{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},a={}){this.resolveKeyframes=(d,h,g,v)=>new this.KeyframeResolver(d,h,g,v,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ky,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=()=>Fe.render(this.render,!1,!0);const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=qd(n),this.isVariantNode=QA(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const h=f[d];l[d]!==void 0&&Ot(h)&&(h.set(l[d],!1),Cf(c)&&c.add(d))}}mount(t){this.current=t,Ew.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)),dk.current||FQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gv.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ew.delete(this.current),this.projection&&this.projection.unmount(),Rr(this.notifyUpdate),Rr(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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=wo.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Fe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Rs){const n=Rs[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=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<Tw.length;r++){const i=Tw[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=UQ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),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<qQ;r++){const i=yy[r],o=this.props[i];(Nl(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&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=Dl(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(_O(i)||yO(i))?i=parseFloat(i):!zQ(i)&&wi.test(n)&&(i=CO(t,n)),this.setBaseTarget(t,Ot(i)?i.get():i)),Ot(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Ay(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ot(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Fy),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class hk extends HQ{constructor(){super(...arguments),this.KeyframeResolver=PO}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]}}function WQ(e){return window.getComputedStyle(e)}class KQ extends hk{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(wo.has(n)){const r=Py(n);return r&&r.default||0}else{const r=WQ(t),i=(nO(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tk(t,n)}build(t,n,r,i){Sy(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ry(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){aO(t,n,r,i)}}class GQ extends hk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wo.has(n)){const r=Py(n);return r&&r.default||0}return n=lO.has(n)?n:my(n),t.getAttribute(n)}measureInstanceViewportBox(){return ct()}scrapeMotionValuesFromProps(t,n,r){return cO(t,n,r)}build(t,n,r,i){Ty(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){uO(t,n,r,i)}mount(t){this.isSVGTag=xy(t.tagName),super.mount(t)}}const ZQ=(e,t)=>_y(e)?new GQ(t,{enableHardwareAcceleration:!1}):new KQ(t,{allowProjection:e!==P.Fragment,enableHardwareAcceleration:!0}),YQ={layout:{ProjectionNode:fk,MeasureLayout:rk}},XQ={...LX,...qZ,...BQ,...YQ},Dr=JG((e,t)=>
1650PZ(e,t,XQ,ZQ));var pk={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xw=fe.createContext&&fe.createContext(pk),QQ=["attr","size","title"];function JQ(e,t){if(e==null)return{};var n=eJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Nf(){return Nf=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},Nf.apply(this,arguments)}function Rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(n),!0).forEach(function(r){tJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tJ(e,t,n){return t=nJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nJ(e){var t=rJ(e,"string");return typeof t=="symbol"?t:t+""}function rJ(e,t){if(typeof e!="object"||!e)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 mk(e){return e&&e.map((t,n)=>fe.createElement(t.tag,If({key:n},t.attr),mk(t.child)))}function Uy(e){return t=>fe.createElement(iJ,Nf({attr:If({},e.attr)},t),mk(e.child))}function iJ(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=JQ(e,QQ),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),fe.createElement("svg",Nf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:If(If({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&fe.createElement("title",null,o),e.children)};return xw!==void 0?fe.createElement(xw.Consumer,null,n=>t(n)):t(pk)}function oJ(e){return Uy({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"},child:[]}]})(e)}function sJ(e){return Uy({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"},child:[]}]})(e)}function aJ(e){return Uy({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"},child:[]}]})(e)}const lJ=()=>{const e=Vl(),[t]=kg(lo);return Z.jsxs(Z.Fragment,{children:[Z.jsx("section",{id:"home",className:"flex flex-col items-center justify-center  text-center h-[85vh]",children:Z.jsxs(Dr.div,{className:"p-10 rounded-md",initial:{opacity:0}
1650,animate:{opacity:1},transition:{duration:1.5},children:[Z.jsx("h1",{className:"text-4xl sm:text-6xl font-semibold",children:"AI Powered Gym Guide"}),Z.jsx("p",{className:"text-lg sm:text-2xl mt-4",children:"Transform Your Workout and Diet with AI"}),Z.jsx(Dr.button,{className:"mt-6 px-6 py-3 bg-gray-800 text-white rounded-full hover:bg-gray-700",whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>e("/login"),children:t?"Dashboard":"Get Started Now"})]})}),Z.jsx("section",{id:"features",className:"py-20",children:Z.jsxs("div",{className:"container mx-auto text-center",children:[Z.jsx(Dr.h2,{className:"text-3xl sm:text-4xl font-bold",initial:{opacity:0},whileInView:{opacity:1},transition:{duration:1},children:"Our Features"}),Z.jsx("div",{className:"mt-10 flex flex-wrap justify-around",children:[{icon:Z.jsx(sJ,{size:40}),title:"AI Workout Plans",description:"Personalized workout plans generated by AI to match your fitness goals."},{icon:Z.jsx(aJ,{size:40}),title:"Health Monitoring",description:"Track your health metrics and progress with advanced AI tools."},{icon:Z.jsx(oJ,{size:40}),title:"AI Diet Plans",description:"Get customized diet plans based on your preferences and goals."}].map((n,r)=>Z.jsxs(Dr.div,{className:"bg-white/30 backdrop-blur-sm p-6 m-4 rounded-md shadow-xl w-full sm:w-1/3",whileHover:{scale:1.05},children:[Z.jsx("div",{className:"text-center mb-4",children:n.icon}),Z.jsx("h3",{className:"text-lg sm:text-2xl font-semibold",children:n.title}),Z.jsx("p",{className:"mt-2 text-sm",children:n.description})]},r))})]})}),Z.jsx("section",{id:"how-it-works",className:"py-20",children:Z.jsxs("div",{className:"container mx-auto text-center",children:[Z.jsx(Dr.h2,{className:"text-3xl sm:text-4xl font-bold",initial:{opacity:0}
1650,whileInView:{opacity:1},transition:{duration:.5},children:"How It Works"}),Z.jsx("div",{className:"mt-10 flex flex-wrap justify-around items-center",children:[{step:"1",title:"Sign Up",description:"Create your profile and set your fitness goals."},{step:"2",title:"Get Your Plan",description:"Receive your AI-generated workout and diet plan."},{step:"3",title:"Start Training",description:"Follow your personalized plan and track your progress."}].map((n,r)=>Z.jsxs(Dr.div,{className:"bg-white/30 backdrop-blur-sm p-6 m-4 rounded-md shadow-xl w-full sm:w-1/3",whileHover:{scale:1.05},children:[Z.jsx("div",{className:"text-3xl font-bold mb-4",children:n.step}),Z.jsx("h3",{className:"text-lg sm:text-xl font-semibold",children:n.title}),Z.jsx("p",{className:"mt-2 text-sm",children:n.description})]},r))})]})}),Z.jsx("section",{id:"cta",className:"py-20",children:Z.jsxs("div",{className:"container mx-auto text-center",children:[Z.jsx(Dr.h2,{className:"text-3xl sm:text-4xl font-bold",initial:{opacity:0},whileInView:{opacity:1},transition:{duration:.5},children:"Ready to Transform Your Life?"}),Z.jsx(Dr.button,{className:"mt-6 px-6 py-3 bg-gray-800 text-white rounded-full hover:bg-gray-700",whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>e("/sign-up"),children:t?"Dashboard":"Register"})]})})]})},uJ=()=>Z.jsxs(Z.Fragment,{children:[Z.jsx(Ug,{}),Z.jsx(lJ,{})]}),cJ=()=>{const[e]=kg(lo);return Z.jsxs(W9,{children:[Z.jsx(rM,{}),Z.jsx(B2,{children:Z.jsxs(N2,{children:[Z.jsx(Oo,{path:"/",element:Z.jsx(uJ,{})}),Z.jsx(Oo,{path:"/login",element:e?Z.jsx(Sh,{to:"/dashboard"}):Z.jsx(HD,{})}),Z.jsx(Oo,{path:"/sign-up",element:e?Z.jsx(Sh,{to:"/dashboard"}):Z.jsx(e7,{})}),Z.jsx(Oo,{path:"/dashboard",element:e?Z.jsx(J9,{}):Z.jsx(Sh,{to:"/login"})}),Z.jsx(Oo,{path:"/advice",element:Z.jsx(DG,{})})]})})]})};mp.createRoot(document.getElementById("root")).render(Z.jsx(fe.StrictMode,{children:Z.jsx(cJ,{})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.