Created
August 8, 2023 10:18
-
-
Save nakasyou/0ca70c986bf597fc3566f61cdcd2d751 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var qg=Object.create;var Ma=Object.defineProperty;var Qg=Object.getOwnPropertyDescriptor;var Gg=Object.getOwnPropertyNames;var Yg=Object.getPrototypeOf,Xg=Object.prototype.hasOwnProperty;var rr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ac=(e,t)=>{for(var n in t)Ma(e,n,{get:t[n],enumerable:!0})},Jg=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gg(t))!Xg.call(e,o)&&o!==n&&Ma(e,o,{get:()=>t[o],enumerable:!(r=Qg(t,o))||r.enumerable});return e};var lt=(e,t,n)=>(n=e!=null?qg(Yg(e)):{},Jg(t||!e||!e.__esModule?Ma(n,"default",{value:e,enumerable:!0}):n,e));var gd=rr(F=>{"use strict";var go=Symbol.for("react.element"),Ex=Symbol.for("react.portal"),Cx=Symbol.for("react.fragment"),kx=Symbol.for("react.strict_mode"),Tx=Symbol.for("react.profiler"),Rx=Symbol.for("react.provider"),Px=Symbol.for("react.context"),Nx=Symbol.for("react.forward_ref"),Mx=Symbol.for("react.suspense"),Ox=Symbol.for("react.memo"),Ax=Symbol.for("react.lazy"),id=Symbol.iterator;function Lx(e){return e===null||typeof e!="object"?null:(e=id&&e[id]||e["@@iterator"],typeof e=="function"?e:null)}var ld={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ud=Object.assign,cd={};function xr(e,t,n){this.props=e,this.context=t,this.refs=cd,this.updater=n||ld}xr.prototype.isReactComponent={};xr.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")};xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pd(){}pd.prototype=xr.prototype;function dl(e,t,n){this.props=e,this.context=t,this.refs=cd,this.updater=n||ld}var fl=dl.prototype=new pd;fl.constructor=dl;ud(fl,xr.prototype);fl.isPureReactComponent=!0;var sd=Array.isArray,dd=Object.prototype.hasOwnProperty,ml={current:null},fd={key:!0,ref:!0,__self:!0,__source:!0};function md(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)dd.call(t,r)&&!fd.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:go,type:e,key:i,ref:s,props:o,_owner:ml.current}}function Dx(e,t){return{$$typeof:go,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function gl(e){return typeof e=="object"&&e!==null&&e.$$typeof===go}function bx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ad=/\/+/g;function pl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bx(""+e.key):t.toString(36)}function Ji(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case go:case Ex:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+pl(s,0):r,sd(o)?(n="",e!=null&&(n=e.replace(ad,"$&/")+"/"),Ji(o,t,n,"",function(u){return u})):o!=null&&(gl(o)&&(o=Dx(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(ad,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",sd(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+pl(i,a);s+=Ji(i,t,n,l,o)}else if(l=Lx(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+pl(i,a++),s+=Ji(i,t,n,l,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Xi(e,t,n){if(e==null)return e;var r=[],o=0;return Ji(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Fx(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 Te={current:null},Zi={transition:null},Ix={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:Zi,ReactCurrentOwner:ml};F.Children={map:Xi,forEach:function(e,t,n){Xi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xi(e,function(){t++}),t},toArray:function(e){return Xi(e,function(t){return t})||[]},only:function(e){if(!gl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};F.Component=xr;F.Fragment=Cx;F.Profiler=Tx;F.PureComponent=dl;F.StrictMode=kx;F.Suspense=Mx;F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ix;F.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=ud({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=ml.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)dd.call(t,l)&&!fd.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:go,type:e.type,key:o,ref:i,props:r,_owner:s}};F.createContext=function(e){return e={$$typeof:Px,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Rx,_context:e},e.Consumer=e};F.createElement=md;F.createFactory=function(e){var t=md.bind(null,e);return t.type=e,t};F.createRef=function(){return{current:null}};F.forwardRef=function(e){return{$$typeof:Nx,render:e}};F.isValidElement=gl;F.lazy=function(e){return{$$typeof:Ax,_payload:{_status:-1,_result:e},_init:Fx}};F.memo=function(e,t){return{$$typeof:Ox,type:e,compare:t===void 0?null:t}};F.startTransition=function(e){var t=Zi.transition;Zi.transition={};try{e()}finally{Zi.transition=t}};F.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};F.useCallback=function(e,t){return Te.current.useCallback(e,t)};F.useContext=function(e){return Te.current.useContext(e)};F.useDebugValue=function(){};F.useDeferredValue=function(e){return Te.current.useDeferredValue(e)};F.useEffect=function(e,t){return Te.current.useEffect(e,t)};F.useId=function(){return Te.current.useId()};F.useImperativeHandle=function(e,t,n){return Te.current.useImperativeHandle(e,t,n)};F.useInsertionEffect=function(e,t){return Te.current.useInsertionEffect(e,t)};F.useLayoutEffect=function(e,t){return Te.current.useLayoutEffect(e,t)};F.useMemo=function(e,t){return Te.current.useMemo(e,t)};F.useReducer=function(e,t,n){return Te.current.useReducer(e,t,n)};F.useRef=function(e){return Te.current.useRef(e)};F.useState=function(e){return Te.current.useState(e)};F.useSyncExternalStore=function(e,t,n){return Te.current.useSyncExternalStore(e,t,n)};F.useTransition=function(){return Te.current.useTransition()};F.version="18.0.0-fc46dba67-20220329"});var Xe=rr((FD,hd)=>{"use strict";hd.exports=gd()});var Rd=rr(V=>{"use strict";function xl(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<es(o,t))e[r]=t,e[n]=o,n=r;else break e}}function ft(e){return e.length===0?null:e[0]}function ns(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,a=e[s],l=s+1,u=e[l];if(0>es(a,n))l<o&&0>es(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[s]=n,r=s);else if(l<o&&0>es(u,n))e[r]=u,e[l]=n,r=l;else break e}}return t}function es(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(yd=performance,V.unstable_now=function(){return yd.now()}):(hl=Date,vd=hl.now(),V.unstable_now=function(){return hl.now()-vd});var yd,hl,vd,Et=[],nn=[],jx=1,Je=null,ye=3,rs=!1,_n=!1,yo=!1,Sd=typeof setTimeout=="function"?setTimeout:null,Ed=typeof clearTimeout=="function"?clearTimeout:null,xd=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function wl(e){for(var t=ft(nn);t!==null;){if(t.callback===null)ns(nn);else if(t.startTime<=e)ns(nn),t.sortIndex=t.expirationTime,xl(Et,t);else break;t=ft(nn)}}function Sl(e){if(yo=!1,wl(e),!_n)if(ft(Et)!==null)_n=!0,Cl(El);else{var t=ft(nn);t!==null&&kl(Sl,t.startTime-e)}}function El(e,t){_n=!1,yo&&(yo=!1,Ed(vo),vo=-1),rs=!0;var n=ye;try{for(wl(t),Je=ft(Et);Je!==null&&(!(Je.expirationTime>t)||e&&!Td());){var r=Je.callback;if(typeof r=="function"){Je.callback=null,ye=Je.priorityLevel;var o=r(Je.expirationTime<=t);t=V.unstable_now(),typeof o=="function"?Je.callback=o:Je===ft(Et)&&ns(Et),wl(t)}else ns(Et);Je=ft(Et)}if(Je!==null)var i=!0;else{var s=ft(nn);s!==null&&kl(Sl,s.startTime-t),i=!1}return i}finally{Je=null,ye=n,rs=!1}}var os=!1,ts=null,vo=-1,Cd=5,kd=-1;function Td(){return!(V.unstable_now()-kd<Cd)}function yl(){if(ts!==null){var e=V.unstable_now();kd=e;var t=!0;try{t=ts(!0,e)}finally{t?ho():(os=!1,ts=null)}}else os=!1}var ho;typeof xd=="function"?ho=function(){xd(yl)}:typeof MessageChannel<"u"?(vl=new MessageChannel,wd=vl.port2,vl.port1.onmessage=yl,ho=function(){wd.postMessage(null)}):ho=function(){Sd(yl,0)};var vl,wd;function Cl(e){ts=e,os||(os=!0,ho())}function kl(e,t){vo=Sd(function(){e(V.unstable_now())},t)}V.unstable_IdlePriority=5;V.unstable_ImmediatePriority=1;V.unstable_LowPriority=4;V.unstable_NormalPriority=3;V.unstable_Profiling=null;V.unstable_UserBlockingPriority=2;V.unstable_cancelCallback=function(e){e.callback=null};V.unstable_continueExecution=function(){_n||rs||(_n=!0,Cl(El))};V.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Cd=0<e?Math.floor(1e3/e):5};V.unstable_getCurrentPriorityLevel=function(){return ye};V.unstable_getFirstCallbackNode=function(){return ft(Et)};V.unstable_next=function(e){switch(ye){case 1:case 2:case 3:var t=3;break;default:t=ye}var n=ye;ye=t;try{return e()}finally{ye=n}};V.unstable_pauseExecution=function(){};V.unstable_requestPaint=function(){};V.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=ye;ye=e;try{return t()}finally{ye=n}};V.unstable_scheduleCallback=function(e,t,n){var r=V.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=n+o,e={id:jx++,callback:t,priorityLevel:e,startTime:n,expirationTime:o,sortIndex:-1},n>r?(e.sortIndex=n,xl(nn,e),ft(Et)===null&&e===ft(nn)&&(yo?(Ed(vo),vo=-1):yo=!0,kl(Sl,n-r))):(e.sortIndex=o,xl(Et,e),_n||rs||(_n=!0,Cl(El))),e};V.unstable_shouldYield=Td;V.unstable_wrapCallback=function(e){var t=ye;return function(){var n=ye;ye=t;try{return e.apply(this,arguments)}finally{ye=n}}}});var Nd=rr((jD,Pd)=>{"use strict";Pd.exports=Rd()});var Lg=rr(We=>{"use strict";var _f=Xe(),$e=Nd();function k(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 zf=new Set,Bo={};function Yn(e,t){zr(e,t),zr(e+"Capture",t)}function zr(e,t){for(Bo[e]=t,e=0;e<t.length;e++)zf.add(t[e])}var Ht=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Kl=Object.prototype.hasOwnProperty,_x=/^[: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]*$/,Md={},Od={};function zx(e){return Kl.call(Od,e)?!0:Kl.call(Md,e)?!1:_x.test(e)?Od[e]=!0:(Md[e]=!0,!1)}function Bx(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 Vx(e,t,n,r){if(t===null||typeof t>"u"||Bx(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 Ne(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new Ne(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new Ne(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new Ne(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new Ne(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){fe[e]=new Ne(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new Ne(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new Ne(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new Ne(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new Ne(e,5,!1,e.toLowerCase(),null,!1,!1)});var Iu=/[\-:]([a-z])/g;function ju(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(Iu,ju);fe[t]=new Ne(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(Iu,ju);fe[t]=new Ne(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(Iu,ju);fe[t]=new Ne(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new Ne(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new Ne("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new Ne(e,1,!1,e.toLowerCase(),null,!0,!0)});function _u(e,t,n,r){var o=fe.hasOwnProperty(t)?fe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Vx(t,n,o,r)&&(n=null),r||o===null?zx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Wt=_f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,is=Symbol.for("react.element"),Er=Symbol.for("react.portal"),Cr=Symbol.for("react.fragment"),zu=Symbol.for("react.strict_mode"),ql=Symbol.for("react.profiler"),Bf=Symbol.for("react.provider"),Vf=Symbol.for("react.context"),Bu=Symbol.for("react.forward_ref"),Ql=Symbol.for("react.suspense"),Gl=Symbol.for("react.suspense_list"),Vu=Symbol.for("react.memo"),rn=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Hf=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var Ad=Symbol.iterator;function xo(e){return e===null||typeof e!="object"?null:(e=Ad&&e[Ad]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,Tl;function No(e){if(Tl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Tl=t&&t[1]||""}return` | |
`+Tl+e}var Rl=!1;function Pl(e,t){if(!e||Rl)return"";Rl=!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()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(` | |
`),i=r.stack.split(` | |
`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=` | |
`+o[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{Rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?No(e):""}function Hx(e){switch(e.tag){case 5:return No(e.type);case 16:return No("Lazy");case 13:return No("Suspense");case 19:return No("SuspenseList");case 0:case 2:case 15:return e=Pl(e.type,!1),e;case 11:return e=Pl(e.type.render,!1),e;case 1:return e=Pl(e.type,!0),e;default:return""}}function Yl(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 Cr:return"Fragment";case Er:return"Portal";case ql:return"Profiler";case zu:return"StrictMode";case Ql:return"Suspense";case Gl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vf:return(e.displayName||"Context")+".Consumer";case Bf:return(e._context.displayName||"Context")+".Provider";case Bu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vu:return t=e.displayName||null,t!==null?t:Yl(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return Yl(e(t))}catch{}}return null}function $x(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 Yl(t);case 8:return t===zu?"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 hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ux(e){var t=$f(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.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 ss(e){e._valueTracker||(e._valueTracker=Ux(e))}function Uf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$f(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Is(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 Xl(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ld(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(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 Wf(e,t){t=t.checked,t!=null&&_u(e,"checked",t,!1)}function Jl(e,t){Wf(e,t);var n=hn(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")?Zl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zl(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dd(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 Zl(e,t,n){(t!=="number"||Is(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mo=Array.isArray;function Dr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+hn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function eu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(Mo(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:hn(n)}}function Kf(e,t){var n=hn(t.value),r=hn(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 Fd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qf(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 tu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var as,Qf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(as=as||document.createElement("div"),as.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=as.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lo={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},Wx=["Webkit","ms","Moz","O"];Object.keys(Lo).forEach(function(e){Wx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lo[t]=Lo[e]})});function Gf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lo.hasOwnProperty(e)&&Lo[e]?(""+t).trim():t+"px"}function Yf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Kx=Y({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 nu(e,t){if(t){if(Kx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function ru(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ou=null;function Hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var iu=null,br=null,Fr=null;function Id(e){if(e=si(e)){if(typeof iu!="function")throw Error(k(280));var t=e.stateNode;t&&(t=pa(t),iu(e.stateNode,e.type,t))}}function Xf(e){br?Fr?Fr.push(e):Fr=[e]:br=e}function Jf(){if(br){var e=br,t=Fr;if(Fr=br=null,Id(e),t)for(e=0;e<t.length;e++)Id(t[e])}}function Zf(e,t){return e(t)}function em(){}var Nl=!1;function tm(e,t,n){if(Nl)return e(t,n);Nl=!0;try{return Zf(e,t,n)}finally{Nl=!1,(br!==null||Fr!==null)&&(em(),Jf())}}function Ho(e,t){var n=e.stateNode;if(n===null)return null;var r=pa(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(k(231,t,typeof n));return n}var su=!1;if(Ht)try{wr={},Object.defineProperty(wr,"passive",{get:function(){su=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{su=!1}var wr;function qx(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Do=!1,js=null,_s=!1,au=null,Qx={onError:function(e){Do=!0,js=e}};function Gx(e,t,n,r,o,i,s,a,l){Do=!1,js=null,qx.apply(Qx,arguments)}function Yx(e,t,n,r,o,i,s,a,l){if(Gx.apply(this,arguments),Do){if(Do){var u=js;Do=!1,js=null}else throw Error(k(198));_s||(_s=!0,au=u)}}function Xn(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 nm(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 jd(e){if(Xn(e)!==e)throw Error(k(188))}function Xx(e){var t=e.alternate;if(!t){if(t=Xn(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return jd(o),e;if(i===r)return jd(o),t;i=i.sibling}throw Error(k(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,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){for(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)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function rm(e){return e=Xx(e),e!==null?om(e):null}function om(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=om(e);if(t!==null)return t;e=e.sibling}return null}var im=$e.unstable_scheduleCallback,_d=$e.unstable_cancelCallback,Jx=$e.unstable_shouldYield,Zx=$e.unstable_requestPaint,ee=$e.unstable_now,ew=$e.unstable_getCurrentPriorityLevel,$u=$e.unstable_ImmediatePriority,sm=$e.unstable_UserBlockingPriority,zs=$e.unstable_NormalPriority,tw=$e.unstable_LowPriority,am=$e.unstable_IdlePriority,aa=null,Tt=null;function nw(e){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(aa,e,void 0,(e.current.flags&128)===128)}catch{}}var ht=Math.clz32?Math.clz32:iw,rw=Math.log,ow=Math.LN2;function iw(e){return e>>>=0,e===0?32:31-(rw(e)/ow|0)|0}var ls=64,us=4194304;function Oo(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 Bs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Oo(a):(i&=s,i!==0&&(r=Oo(i)))}else s=n&~o,s!==0?r=Oo(s):i!==0&&(r=Oo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ht(t),o=1<<n,r|=e[n],t&=~o;return r}function sw(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 aw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-ht(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=sw(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function lu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ml(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function lw(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 o=31-ht(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function Uu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ht(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var z=0;function lm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var um,Wu,cm,pm,dm,uu=!1,cs=[],cn=null,pn=null,dn=null,$o=new Map,Uo=new Map,sn=[],uw="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 zd(e,t){switch(e){case"focusin":case"focusout":cn=null;break;case"dragenter":case"dragleave":pn=null;break;case"mouseover":case"mouseout":dn=null;break;case"pointerover":case"pointerout":$o.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(t.pointerId)}}function wo(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=si(t),t!==null&&Wu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function cw(e,t,n,r,o){switch(t){case"focusin":return cn=wo(cn,e,t,n,r,o),!0;case"dragenter":return pn=wo(pn,e,t,n,r,o),!0;case"mouseover":return dn=wo(dn,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return $o.set(i,wo($o.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Uo.set(i,wo(Uo.get(i)||null,e,t,n,r,o)),!0}return!1}function fm(e){var t=Vn(e.target);if(t!==null){var n=Xn(t);if(n!==null){if(t=n.tag,t===13){if(t=nm(n),t!==null){e.blockedOn=t,dm(e.priority,function(){cm(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 Ps(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ou=r,n.target.dispatchEvent(r),ou=null}else return t=si(n),t!==null&&Wu(t),e.blockedOn=n,!1;t.shift()}return!0}function Bd(e,t,n){Ps(e)&&n.delete(t)}function pw(){uu=!1,cn!==null&&Ps(cn)&&(cn=null),pn!==null&&Ps(pn)&&(pn=null),dn!==null&&Ps(dn)&&(dn=null),$o.forEach(Bd),Uo.forEach(Bd)}function So(e,t){e.blockedOn===t&&(e.blockedOn=null,uu||(uu=!0,$e.unstable_scheduleCallback($e.unstable_NormalPriority,pw)))}function Wo(e){function t(o){return So(o,e)}if(0<cs.length){So(cs[0],e);for(var n=1;n<cs.length;n++){var r=cs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(cn!==null&&So(cn,e),pn!==null&&So(pn,e),dn!==null&&So(dn,e),$o.forEach(t),Uo.forEach(t),n=0;n<sn.length;n++)r=sn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<sn.length&&(n=sn[0],n.blockedOn===null);)fm(n),n.blockedOn===null&&sn.shift()}var Ir=Wt.ReactCurrentBatchConfig;function dw(e,t,n,r){var o=z,i=Ir.transition;Ir.transition=null;try{z=1,Ku(e,t,n,r)}finally{z=o,Ir.transition=i}}function fw(e,t,n,r){var o=z,i=Ir.transition;Ir.transition=null;try{z=4,Ku(e,t,n,r)}finally{z=o,Ir.transition=i}}function Ku(e,t,n,r){var o=cu(e,t,n,r);if(o===null)Il(e,t,r,Vs,n),zd(e,r);else if(cw(o,e,t,n,r))r.stopPropagation();else if(zd(e,r),t&4&&-1<uw.indexOf(e)){for(;o!==null;){var i=si(o);if(i!==null&&um(i),i=cu(e,t,n,r),i===null&&Il(e,t,r,Vs,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Il(e,t,r,null,n)}var Vs=null;function cu(e,t,n,r){if(Vs=null,e=Hu(r),e=Vn(e),e!==null)if(t=Xn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=nm(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 Vs=e,null}function mm(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(ew()){case $u:return 1;case sm:return 4;case zs:case tw:return 16;case am:return 536870912;default:return 16}default:return 16}}var ln=null,qu=null,Ns=null;function gm(){if(Ns)return Ns;var e,t=qu,n=t.length,r,o="value"in ln?ln.value:ln.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return Ns=o.slice(e,1<r?1-r:void 0)}function Ms(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 ps(){return!0}function Vd(){return!1}function Ue(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ps:Vd,this.isPropagationStopped=Vd,this}return Y(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=ps)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ps)},persist:function(){},isPersistent:ps}),t}var qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qu=Ue(qr),ii=Y({},qr,{view:0,detail:0}),mw=Ue(ii),Ol,Al,Eo,la=Y({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gu,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!==Eo&&(Eo&&e.type==="mousemove"?(Ol=e.screenX-Eo.screenX,Al=e.screenY-Eo.screenY):Al=Ol=0,Eo=e),Ol)},movementY:function(e){return"movementY"in e?e.movementY:Al}}),Hd=Ue(la),gw=Y({},la,{dataTransfer:0}),hw=Ue(gw),yw=Y({},ii,{relatedTarget:0}),Ll=Ue(yw),vw=Y({},qr,{animationName:0,elapsedTime:0,pseudoElement:0}),xw=Ue(vw),ww=Y({},qr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Sw=Ue(ww),Ew=Y({},qr,{data:0}),$d=Ue(Ew),Cw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kw={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"},Tw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Tw[e])?!!t[e]:!1}function Gu(){return Rw}var Pw=Y({},ii,{key:function(e){if(e.key){var t=Cw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ms(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gu,charCode:function(e){return e.type==="keypress"?Ms(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ms(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Nw=Ue(Pw),Mw=Y({},la,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=Ue(Mw),Ow=Y({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gu}),Aw=Ue(Ow),Lw=Y({},qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dw=Ue(Lw),bw=Y({},la,{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}),Fw=Ue(bw),Iw=[9,13,27,32],Yu=Ht&&"CompositionEvent"in window,bo=null;Ht&&"documentMode"in document&&(bo=document.documentMode);var jw=Ht&&"TextEvent"in window&&!bo,hm=Ht&&(!Yu||bo&&8<bo&&11>=bo),Wd=String.fromCharCode(32),Kd=!1;function ym(e,t){switch(e){case"keyup":return Iw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function _w(e,t){switch(e){case"compositionend":return vm(t);case"keypress":return t.which!==32?null:(Kd=!0,Wd);case"textInput":return e=t.data,e===Wd&&Kd?null:e;default:return null}}function zw(e,t){if(kr)return e==="compositionend"||!Yu&&ym(e,t)?(e=gm(),Ns=qu=ln=null,kr=!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 hm&&t.locale!=="ko"?null:t.data;default:return null}}var Bw={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 qd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bw[e.type]:t==="textarea"}function xm(e,t,n,r){Xf(r),t=Hs(t,"onChange"),0<t.length&&(n=new Qu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Fo=null,Ko=null;function Vw(e){Om(e,0)}function ua(e){var t=Pr(e);if(Uf(t))return e}function Hw(e,t){if(e==="change")return t}var wm=!1;Ht&&(Ht?(fs="oninput"in document,fs||(Dl=document.createElement("div"),Dl.setAttribute("oninput","return;"),fs=typeof Dl.oninput=="function"),ds=fs):ds=!1,wm=ds&&(!document.documentMode||9<document.documentMode));var ds,fs,Dl;function Qd(){Fo&&(Fo.detachEvent("onpropertychange",Sm),Ko=Fo=null)}function Sm(e){if(e.propertyName==="value"&&ua(Ko)){var t=[];xm(t,Ko,e,Hu(e)),tm(Vw,t)}}function $w(e,t,n){e==="focusin"?(Qd(),Fo=t,Ko=n,Fo.attachEvent("onpropertychange",Sm)):e==="focusout"&&Qd()}function Uw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ua(Ko)}function Ww(e,t){if(e==="click")return ua(t)}function Kw(e,t){if(e==="input"||e==="change")return ua(t)}function qw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pt=typeof Object.is=="function"?Object.is:qw;function qo(e,t){if(Pt(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 o=n[r];if(!Kl.call(t,o)||!Pt(e[o],t[o]))return!1}return!0}function Gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yd(e,t){var n=Gd(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=Gd(n)}}function Em(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Em(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cm(){for(var e=window,t=Is();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Is(e.document)}return t}function Xu(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 Qw(e){var t=Cm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Em(n.ownerDocument.documentElement,n)){if(r!==null&&Xu(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Yd(n,i);var s=Yd(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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 Gw=Ht&&"documentMode"in document&&11>=document.documentMode,Tr=null,pu=null,Io=null,du=!1;function Xd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;du||Tr==null||Tr!==Is(r)||(r=Tr,"selectionStart"in r&&Xu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Io&&qo(Io,r)||(Io=r,r=Hs(pu,"onSelect"),0<r.length&&(t=new Qu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Tr)))}function ms(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rr={animationend:ms("Animation","AnimationEnd"),animationiteration:ms("Animation","AnimationIteration"),animationstart:ms("Animation","AnimationStart"),transitionend:ms("Transition","TransitionEnd")},bl={},km={};Ht&&(km=document.createElement("div").style,"AnimationEvent"in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),"TransitionEvent"in window||delete Rr.transitionend.transition);function ca(e){if(bl[e])return bl[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in km)return bl[e]=t[n];return e}var Tm=ca("animationend"),Rm=ca("animationiteration"),Pm=ca("animationstart"),Nm=ca("transitionend"),Mm=new Map,Jd="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 xn(e,t){Mm.set(e,t),Yn(t,[e])}for(gs=0;gs<Jd.length;gs++)hs=Jd[gs],Zd=hs.toLowerCase(),ef=hs[0].toUpperCase()+hs.slice(1),xn(Zd,"on"+ef);var hs,Zd,ef,gs;xn(Tm,"onAnimationEnd");xn(Rm,"onAnimationIteration");xn(Pm,"onAnimationStart");xn("dblclick","onDoubleClick");xn("focusin","onFocus");xn("focusout","onBlur");xn(Nm,"onTransitionEnd");zr("onMouseEnter",["mouseout","mouseover"]);zr("onMouseLeave",["mouseout","mouseover"]);zr("onPointerEnter",["pointerout","pointerover"]);zr("onPointerLeave",["pointerout","pointerover"]);Yn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ao="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(" "),Yw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ao));function tf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Yx(r,t,void 0,e),e.currentTarget=null}function Om(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=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!==i&&o.isPropagationStopped())break e;tf(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;tf(o,a,u),i=l}}}if(_s)throw e=au,_s=!1,au=null,e}function $(e,t){var n=t[hu];n===void 0&&(n=t[hu]=new Set);var r=e+"__bubble";n.has(r)||(Am(t,e,2,!1),n.add(r))}function Fl(e,t,n){var r=0;t&&(r|=4),Am(n,e,r,t)}var ys="_reactListening"+Math.random().toString(36).slice(2);function Qo(e){if(!e[ys]){e[ys]=!0,zf.forEach(function(n){n!=="selectionchange"&&(Yw.has(n)||Fl(n,!1,e),Fl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ys]||(t[ys]=!0,Fl("selectionchange",!1,t))}}function Am(e,t,n,r){switch(mm(t)){case 1:var o=dw;break;case 4:o=fw;break;default:o=Ku}n=o.bind(null,t,n,e),o=void 0,!su||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Il(e,t,n,r,o){var i=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;if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Vn(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}tm(function(){var u=i,c=Hu(n),m=[];e:{var d=Mm.get(e);if(d!==void 0){var h=Qu,v=e;switch(e){case"keypress":if(Ms(n)===0)break e;case"keydown":case"keyup":h=Nw;break;case"focusin":v="focus",h=Ll;break;case"focusout":v="blur",h=Ll;break;case"beforeblur":case"afterblur":h=Ll;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=Hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=hw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Aw;break;case Tm:case Rm:case Pm:h=xw;break;case Nm:h=Dw;break;case"scroll":h=mw;break;case"wheel":h=Fw;break;case"copy":case"cut":case"paste":h=Sw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ud}var x=(t&4)!==0,C=!x&&e==="scroll",g=x?d!==null?d+"Capture":null:d;x=[];for(var f=u,y;f!==null;){y=f;var p=y.stateNode;if(y.tag===5&&p!==null&&(y=p,g!==null&&(p=Ho(f,g),p!=null&&x.push(Go(f,p,y)))),C)break;f=f.return}0<x.length&&(d=new h(d,v,null,n,c),m.push({event:d,listeners:x}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==ou&&(v=n.relatedTarget||n.fromElement)&&(Vn(v)||v[$t]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=u,v=v?Vn(v):null,v!==null&&(C=Xn(v),v!==C||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(x=Hd,p="onMouseLeave",g="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(x=Ud,p="onPointerLeave",g="onPointerEnter",f="pointer"),C=h==null?d:Pr(h),y=v==null?d:Pr(v),d=new x(p,f+"leave",h,n,c),d.target=C,d.relatedTarget=y,p=null,Vn(c)===u&&(x=new x(g,f+"enter",v,n,c),x.target=y,x.relatedTarget=C,p=x),C=p,h&&v)t:{for(x=h,g=v,f=0,y=x;y;y=Sr(y))f++;for(y=0,p=g;p;p=Sr(p))y++;for(;0<f-y;)x=Sr(x),f--;for(;0<y-f;)g=Sr(g),y--;for(;f--;){if(x===g||g!==null&&x===g.alternate)break t;x=Sr(x),g=Sr(g)}x=null}else x=null;h!==null&&nf(m,d,h,x,!1),v!==null&&C!==null&&nf(m,C,v,x,!0)}}e:{if(d=u?Pr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var E=Hw;else if(qd(d))if(wm)E=Kw;else{E=Uw;var w=$w}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(E=Ww);if(E&&(E=E(e,u))){xm(m,E,n,c);break e}w&&w(e,d,u),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&Zl(d,"number",d.value)}switch(w=u?Pr(u):window,e){case"focusin":(qd(w)||w.contentEditable==="true")&&(Tr=w,pu=u,Io=null);break;case"focusout":Io=pu=Tr=null;break;case"mousedown":du=!0;break;case"contextmenu":case"mouseup":case"dragend":du=!1,Xd(m,n,c);break;case"selectionchange":if(Gw)break;case"keydown":case"keyup":Xd(m,n,c)}var T;if(Yu)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else kr?ym(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(hm&&n.locale!=="ko"&&(kr||R!=="onCompositionStart"?R==="onCompositionEnd"&&kr&&(T=gm()):(ln=c,qu="value"in ln?ln.value:ln.textContent,kr=!0)),w=Hs(u,R),0<w.length&&(R=new $d(R,e,null,n,c),m.push({event:R,listeners:w}),T?R.data=T:(T=vm(n),T!==null&&(R.data=T)))),(T=jw?_w(e,n):zw(e,n))&&(u=Hs(u,"onBeforeInput"),0<u.length&&(c=new $d("onBeforeInput","beforeinput",null,n,c),m.push({event:c,listeners:u}),c.data=T))}Om(m,t)})}function Go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hs(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ho(e,n),i!=null&&r.unshift(Go(e,i,o)),i=Ho(e,t),i!=null&&r.push(Go(e,i,o))),e=e.return}return r}function Sr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function nf(e,t,n,r,o){for(var i=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,o?(l=Ho(n,i),l!=null&&s.unshift(Go(n,l,a))):o||(l=Ho(n,i),l!=null&&s.push(Go(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Xw=/\r\n?/g,Jw=/\u0000|\uFFFD/g;function rf(e){return(typeof e=="string"?e:""+e).replace(Xw,` | |
`).replace(Jw,"")}function vs(e,t,n){if(t=rf(t),rf(e)!==t&&n)throw Error(k(425))}function $s(){}var fu=null;function mu(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 gu=typeof setTimeout=="function"?setTimeout:void 0,Zw=typeof clearTimeout=="function"?clearTimeout:void 0,of=typeof Promise=="function"?Promise:void 0,e0=typeof queueMicrotask=="function"?queueMicrotask:typeof of<"u"?function(e){return of.resolve(null).then(e).catch(t0)}:gu;function t0(e){setTimeout(function(){throw e})}function jl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Wo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Wo(t)}function _t(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 sf(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 Qr=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Qr,Yo="__reactProps$"+Qr,$t="__reactContainer$"+Qr,hu="__reactEvents$"+Qr,n0="__reactListeners$"+Qr,r0="__reactHandles$"+Qr;function Vn(e){var t=e[Ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$t]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sf(e);e!==null;){if(n=e[Ct])return n;e=sf(e)}return t}e=n,n=e.parentNode}return null}function si(e){return e=e[Ct]||e[$t],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function pa(e){return e[Yo]||null}var yu=[],Nr=-1;function wn(e){return{current:e}}function U(e){0>Nr||(e.current=yu[Nr],yu[Nr]=null,Nr--)}function H(e,t){Nr++,yu[Nr]=e.current,e.current=t}var yn={},Se=wn(yn),be=wn(!1),qn=yn;function Br(e,t){var n=e.type.contextTypes;if(!n)return yn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fe(e){return e=e.childContextTypes,e!=null}function Us(){U(be),U(Se)}function af(e,t,n){if(Se.current!==yn)throw Error(k(168));H(Se,t),H(be,n)}function Lm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,$x(e)||"Unknown",o));return Y({},n,r)}function Ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yn,qn=Se.current,H(Se,e),H(be,be.current),!0}function lf(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Lm(e,t,qn),r.__reactInternalMemoizedMergedChildContext=e,U(be),U(Se),H(Se,e)):U(be),H(be,n)}var jt=null,da=!1,_l=!1;function Dm(e){jt===null?jt=[e]:jt.push(e)}function o0(e){da=!0,Dm(e)}function Sn(){if(!_l&&jt!==null){_l=!0;var e=0,t=z;try{var n=jt;for(z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}jt=null,da=!1}catch(o){throw jt!==null&&(jt=jt.slice(e+1)),im($u,Sn),o}finally{z=t,_l=!1}}return null}var i0=Wt.ReactCurrentBatchConfig;function mt(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Ks=wn(null),qs=null,Mr=null,Ju=null;function Zu(){Ju=Mr=qs=null}function ec(e){var t=Ks.current;U(Ks),e._currentValue=t}function vu(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 jr(e,t){qs=e,Ju=Mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ve=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(Ju!==e)if(e={context:e,memoizedValue:t,next:null},Mr===null){if(qs===null)throw Error(k(308));Mr=e,qs.dependencies={lanes:0,firstContext:e}}else Mr=Mr.next=e;return t}var kt=null,on=!1;function tc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bm(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 Vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fn(e,t){var n=e.updateQueue;n!==null&&(n=n.shared,re!==null&&e.mode&1&&!(I&2)?(e=n.interleaved,e===null?(t.next=t,kt===null?kt=[n]:kt.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(e=n.pending,e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function Os(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,Uu(e,n)}}function uf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=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};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qs(e,t,n,r){var o=e.updateQueue;on=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=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(i!==null){var m=o.baseState;s=0,c=u=l=null,a=i;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 v=e,x=a;switch(d=t,h=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){m=v.call(h,m,d);break e}m=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,d=typeof v=="function"?v.call(h,m,d):v,d==null)break e;m=Y({},m,d);break e;case 2:on=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.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=m):c=c.next=h,s|=d;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;d=a,a=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(c===null&&(l=m),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Wr|=s,e.lanes=s,e.memoizedState=m}}function cf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(k(191,o));o.call(r)}}}var Fm=new _f.Component().refs;function xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fa={isMounted:function(e){return(e=e._reactInternals)?Xn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),o=gn(e),i=Vt(r,o);i.payload=t,n!=null&&(i.callback=n),fn(e,i),t=ot(e,o,r),t!==null&&Os(t,e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),o=gn(e),i=Vt(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),fn(e,i),t=ot(e,o,r),t!==null&&Os(t,e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=gn(e),o=Vt(n,r);o.tag=2,t!=null&&(o.callback=t),fn(e,o),t=ot(e,r,n),t!==null&&Os(t,e,r)}};function pf(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!qo(n,r)||!qo(o,i):!0}function Im(e,t,n){var r=!1,o=yn,i=t.contextType;return typeof i=="object"&&i!==null?i=it(i):(o=Fe(t)?qn:Se.current,r=t.contextTypes,i=(r=r!=null)?Br(e,o):yn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function df(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&&fa.enqueueReplaceState(t,t.state,null)}function wu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Fm,tc(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=it(i):(i=Fe(t)?qn:Se.current,o.context=Br(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(xu(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&fa.enqueueReplaceState(o,o.state,null),Qs(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}var Or=[],Ar=0,Gs=null,Ys=0,Ze=[],et=0,Qn=null,zt=1,Bt="";function zn(e,t){Or[Ar++]=Ys,Or[Ar++]=Gs,Gs=e,Ys=t}function jm(e,t,n){Ze[et++]=zt,Ze[et++]=Bt,Ze[et++]=Qn,Qn=e;var r=zt;e=Bt;var o=32-ht(r)-1;r&=~(1<<o),n+=1;var i=32-ht(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,zt=1<<32-ht(t)+o|n<<o|r,Bt=i+e}else zt=1<<i|n<<o|r,Bt=e}function nc(e){e.return!==null&&(zn(e,1),jm(e,1,0))}function rc(e){for(;e===Gs;)Gs=Or[--Ar],Or[Ar]=null,Ys=Or[--Ar],Or[Ar]=null;for(;e===Qn;)Qn=Ze[--et],Ze[et]=null,Bt=Ze[--et],Ze[et]=null,zt=Ze[--et],Ze[et]=null}var He=null,Le=null,q=!1,gt=null;function _m(e,t){var n=tt(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 ff(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,He=e,Le=_t(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,He=e,Le=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Qn!==null?{id:zt,overflow:Bt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=tt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,He=e,Le=null,!0):!1;default:return!1}}function Su(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eu(e){if(q){var t=Le;if(t){var n=t;if(!ff(e,t)){if(Su(e))throw Error(k(418));t=_t(n.nextSibling);var r=He;t&&ff(e,t)?_m(r,n):(e.flags=e.flags&-4097|2,q=!1,He=e)}}else{if(Su(e))throw Error(k(418));e.flags=e.flags&-4097|2,q=!1,He=e}}}function mf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;He=e}function Co(e){if(e!==He)return!1;if(!q)return mf(e),q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!mu(e.type,e.memoizedProps)),t&&(t=Le)){if(Su(e)){for(e=Le;e;)e=_t(e.nextSibling);throw Error(k(418))}for(;t;)_m(e,t),t=_t(t.nextSibling)}if(mf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Le=_t(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Le=null}}else Le=He?_t(e.stateNode.nextSibling):null;return!0}function Vr(){Le=He=null,q=!1}function oc(e){gt===null?gt=[e]:gt.push(e)}function ko(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(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;a===Fm&&(a=o.refs={}),s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function xs(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gf(e){var t=e._init;return t(e._payload)}function zm(e){function t(g,f){if(e){var y=g.deletions;y===null?(g.deletions=[f],g.flags|=16):y.push(f)}}function n(g,f){if(!e)return null;for(;f!==null;)t(g,f),f=f.sibling;return null}function r(g,f){for(g=new Map;f!==null;)f.key!==null?g.set(f.key,f):g.set(f.index,f),f=f.sibling;return g}function o(g,f){return g=vn(g,f),g.index=0,g.sibling=null,g}function i(g,f,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<f?(g.flags|=2,f):y):(g.flags|=2,f)):(g.flags|=1048576,f)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,f,y,p){return f===null||f.tag!==6?(f=Ul(y,g.mode,p),f.return=g,f):(f=o(f,y),f.return=g,f)}function l(g,f,y,p){var E=y.type;return E===Cr?c(g,f,y.props.children,p,y.key):f!==null&&(f.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rn&&gf(E)===f.type)?(p=o(f,y.props),p.ref=ko(g,f,y),p.return=g,p):(p=Fs(y.type,y.key,y.props,null,g.mode,p),p.ref=ko(g,f,y),p.return=g,p)}function u(g,f,y,p){return f===null||f.tag!==4||f.stateNode.containerInfo!==y.containerInfo||f.stateNode.implementation!==y.implementation?(f=Wl(y,g.mode,p),f.return=g,f):(f=o(f,y.children||[]),f.return=g,f)}function c(g,f,y,p,E){return f===null||f.tag!==7?(f=Kn(y,g.mode,p,E),f.return=g,f):(f=o(f,y),f.return=g,f)}function m(g,f,y){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Ul(""+f,g.mode,y),f.return=g,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case is:return y=Fs(f.type,f.key,f.props,null,g.mode,y),y.ref=ko(g,null,f),y.return=g,y;case Er:return f=Wl(f,g.mode,y),f.return=g,f;case rn:var p=f._init;return m(g,p(f._payload),y)}if(Mo(f)||xo(f))return f=Kn(f,g.mode,y,null),f.return=g,f;xs(g,f)}return null}function d(g,f,y,p){var E=f!==null?f.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return E!==null?null:a(g,f,""+y,p);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case is:return y.key===E?l(g,f,y,p):null;case Er:return y.key===E?u(g,f,y,p):null;case rn:return E=y._init,d(g,f,E(y._payload),p)}if(Mo(y)||xo(y))return E!==null?null:c(g,f,y,p,null);xs(g,y)}return null}function h(g,f,y,p,E){if(typeof p=="string"&&p!==""||typeof p=="number")return g=g.get(y)||null,a(f,g,""+p,E);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case is:return g=g.get(p.key===null?y:p.key)||null,l(f,g,p,E);case Er:return g=g.get(p.key===null?y:p.key)||null,u(f,g,p,E);case rn:var w=p._init;return h(g,f,y,w(p._payload),E)}if(Mo(p)||xo(p))return g=g.get(y)||null,c(f,g,p,E,null);xs(f,p)}return null}function v(g,f,y,p){for(var E=null,w=null,T=f,R=f=0,D=null;T!==null&&R<y.length;R++){T.index>R?(D=T,T=null):D=T.sibling;var O=d(g,T,y[R],p);if(O===null){T===null&&(T=D);break}e&&T&&O.alternate===null&&t(g,T),f=i(O,f,R),w===null?E=O:w.sibling=O,w=O,T=D}if(R===y.length)return n(g,T),q&&zn(g,R),E;if(T===null){for(;R<y.length;R++)T=m(g,y[R],p),T!==null&&(f=i(T,f,R),w===null?E=T:w.sibling=T,w=T);return q&&zn(g,R),E}for(T=r(g,T);R<y.length;R++)D=h(T,g,R,y[R],p),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?R:D.key),f=i(D,f,R),w===null?E=D:w.sibling=D,w=D);return e&&T.forEach(function(B){return t(g,B)}),q&&zn(g,R),E}function x(g,f,y,p){var E=xo(y);if(typeof E!="function")throw Error(k(150));if(y=E.call(y),y==null)throw Error(k(151));for(var w=E=null,T=f,R=f=0,D=null,O=y.next();T!==null&&!O.done;R++,O=y.next()){T.index>R?(D=T,T=null):D=T.sibling;var B=d(g,T,O.value,p);if(B===null){T===null&&(T=D);break}e&&T&&B.alternate===null&&t(g,T),f=i(B,f,R),w===null?E=B:w.sibling=B,w=B,T=D}if(O.done)return n(g,T),q&&zn(g,R),E;if(T===null){for(;!O.done;R++,O=y.next())O=m(g,O.value,p),O!==null&&(f=i(O,f,R),w===null?E=O:w.sibling=O,w=O);return q&&zn(g,R),E}for(T=r(g,T);!O.done;R++,O=y.next())O=h(T,g,R,O.value,p),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?R:O.key),f=i(O,f,R),w===null?E=O:w.sibling=O,w=O);return e&&T.forEach(function(W){return t(g,W)}),q&&zn(g,R),E}function C(g,f,y,p){if(typeof y=="object"&&y!==null&&y.type===Cr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case is:e:{for(var E=y.key,w=f;w!==null;){if(w.key===E){if(E=y.type,E===Cr){if(w.tag===7){n(g,w.sibling),f=o(w,y.props.children),f.return=g,g=f;break e}}else if(w.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===rn&&gf(E)===w.type){n(g,w.sibling),f=o(w,y.props),f.ref=ko(g,w,y),f.return=g,g=f;break e}n(g,w);break}else t(g,w);w=w.sibling}y.type===Cr?(f=Kn(y.props.children,g.mode,p,y.key),f.return=g,g=f):(p=Fs(y.type,y.key,y.props,null,g.mode,p),p.ref=ko(g,f,y),p.return=g,g=p)}return s(g);case Er:e:{for(w=y.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(g,f.sibling),f=o(f,y.children||[]),f.return=g,g=f;break e}else{n(g,f);break}else t(g,f);f=f.sibling}f=Wl(y,g.mode,p),f.return=g,g=f}return s(g);case rn:return w=y._init,C(g,f,w(y._payload),p)}if(Mo(y))return v(g,f,y,p);if(xo(y))return x(g,f,y,p);xs(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(g,f.sibling),f=o(f,y),f.return=g,g=f):(n(g,f),f=Ul(y,g.mode,p),f.return=g,g=f),s(g)):n(g,f)}return C}var Hr=zm(!0),Bm=zm(!1),ai={},Rt=wn(ai),Xo=wn(ai),Jo=wn(ai);function Hn(e){if(e===ai)throw Error(k(174));return e}function ic(e,t){switch(H(Jo,t),H(Xo,e),H(Rt,ai),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tu(t,e)}U(Rt),H(Rt,t)}function $r(){U(Rt),U(Xo),U(Jo)}function Vm(e){Hn(Jo.current);var t=Hn(Rt.current),n=tu(t,e.type);t!==n&&(H(Xo,e),H(Rt,n))}function sc(e){Xo.current===e&&(U(Rt),U(Xo))}var G=wn(0);function Xs(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 zl=[];function ac(){for(var e=0;e<zl.length;e++)zl[e]._workInProgressVersionPrimary=null;zl.length=0}var As=Wt.ReactCurrentDispatcher,nt=Wt.ReactCurrentBatchConfig,Ur=0,J=null,we=null,ue=null,Js=!1,jo=!1,Zo=0,s0=0;function ve(){throw Error(k(321))}function lc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pt(e[n],t[n]))return!1;return!0}function uc(e,t,n,r,o,i){if(Ur=i,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,As.current=e===null||e.memoizedState===null?c0:p0,e=n(r,o),jo){i=0;do{if(jo=!1,Zo=0,25<=i)throw Error(k(301));i+=1,ue=we=null,t.updateQueue=null,As.current=d0,e=n(r,o)}while(jo)}if(As.current=Zs,t=we!==null&&we.next!==null,Ur=0,ue=we=J=null,Js=!1,t)throw Error(k(300));return e}function cc(){var e=Zo!==0;return Zo=0,e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?J.memoizedState=ue=e:ue=ue.next=e,ue}function Nt(){if(we===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=ue===null?J.memoizedState:ue.next;if(t!==null)ue=t,we=e;else{if(e===null)throw Error(k(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},ue===null?J.memoizedState=ue=e:ue=ue.next=e}return ue}function Un(e,t){return typeof t=="function"?t(e):t}function ws(e){var t=Nt(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=we,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((Ur&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 m={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=m,s=r):l=l.next=m,J.lanes|=c,Wr|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,Pt(r,t.memoizedState)||(Ve=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,J.lanes|=i,Wr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ss(e){var t=Nt(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);Pt(i,t.memoizedState)||(Ve=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Hm(){}function $m(e,t){var n=J,r=Nt(),o=t(),i=!Pt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ve=!0),r=r.queue,ti(Km.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,ei(9,Wm.bind(null,n,r,o,t),void 0,null),re===null)throw Error(k(349));Ur&30||Um(n,t,o)}return o}function Um(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wm(e,t,n,r){t.value=n,t.getSnapshot=r,qm(t)&&ot(e,1,-1)}function Km(e,t,n){return n(function(){qm(t)&&ot(e,1,-1)})}function qm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pt(e,n)}catch{return!0}}function Bl(e){var t=It();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:e},t.queue=e,e=e.dispatch=u0.bind(null,J,e),[t.memoizedState,e]}function ei(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.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 Qm(){return Nt().memoizedState}function Ls(e,t,n,r){var o=It();J.flags|=e,o.memoizedState=ei(1|t,n,void 0,r===void 0?null:r)}function ma(e,t,n,r){var o=Nt();r=r===void 0?null:r;var i=void 0;if(we!==null){var s=we.memoizedState;if(i=s.destroy,r!==null&&lc(r,s.deps)){o.memoizedState=ei(t,n,i,r);return}}J.flags|=e,o.memoizedState=ei(1|t,n,i,r)}function Vl(e,t){return Ls(8390656,8,e,t)}function ti(e,t){return ma(2048,8,e,t)}function Gm(e,t){return ma(4,2,e,t)}function Ym(e,t){return ma(4,4,e,t)}function Xm(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 Jm(e,t,n){return n=n!=null?n.concat([e]):null,ma(4,4,Xm.bind(null,t,e),n)}function pc(){}function Zm(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function eg(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function a0(e,t){var n=z;z=n!==0&&4>n?n:4,e(!0);var r=nt.transition;nt.transition={};try{e(!1),t()}finally{z=n,nt.transition=r}}function tg(){return Nt().memoizedState}function l0(e,t,n){var r=gn(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ng(e)?rg(t,n):(og(e,t,n),n=Pe(),e=ot(e,r,n),e!==null&&ig(e,t,r))}function u0(e,t,n){var r=gn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ng(e))rg(t,o);else{og(e,t,o);var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Pt(a,s))return}catch{}finally{}n=Pe(),e=ot(e,r,n),e!==null&&ig(e,t,r)}}function ng(e){var t=e.alternate;return e===J||t!==null&&t===J}function rg(e,t){jo=Js=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function og(e,t,n){re!==null&&e.mode&1&&!(I&2)?(e=t.interleaved,e===null?(n.next=n,kt===null?kt=[t]:kt.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function ig(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Uu(e,n)}}var Zs={readContext:it,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},c0={readContext:it,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:Vl,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ls(4194308,4,Xm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ls(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();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=l0.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:Bl,useDebugValue:pc,useDeferredValue:function(e){var t=Bl(e),n=t[0],r=t[1];return Vl(function(){var o=nt.transition;nt.transition={};try{r(e)}finally{nt.transition=o}},[e]),n},useTransition:function(){var e=Bl(!1),t=e[0];return e=a0.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,o=It();if(q){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),re===null)throw Error(k(349));Ur&30||Um(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Vl(Km.bind(null,r,i,e),[e]),r.flags|=2048,ei(9,Wm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=It(),t=re.identifierPrefix;if(q){var n=Bt,r=zt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=s0++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},p0={readContext:it,useCallback:Zm,useContext:it,useEffect:ti,useImperativeHandle:Jm,useInsertionEffect:Gm,useLayoutEffect:Ym,useMemo:eg,useReducer:ws,useRef:Qm,useState:function(){return ws(Un)},useDebugValue:pc,useDeferredValue:function(e){var t=ws(Un),n=t[0],r=t[1];return ti(function(){var o=nt.transition;nt.transition={};try{r(e)}finally{nt.transition=o}},[e]),n},useTransition:function(){var e=ws(Un)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Hm,useSyncExternalStore:$m,useId:tg,unstable_isNewReconciler:!1},d0={readContext:it,useCallback:Zm,useContext:it,useEffect:ti,useImperativeHandle:Jm,useInsertionEffect:Gm,useLayoutEffect:Ym,useMemo:eg,useReducer:Ss,useRef:Qm,useState:function(){return Ss(Un)},useDebugValue:pc,useDeferredValue:function(e){var t=Ss(Un),n=t[0],r=t[1];return ti(function(){var o=nt.transition;nt.transition={};try{r(e)}finally{nt.transition=o}},[e]),n},useTransition:function(){var e=Ss(Un)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Hm,useSyncExternalStore:$m,useId:tg,unstable_isNewReconciler:!1};function dc(e,t){try{var n="",r=t;do n+=Hx(r),r=r.return;while(r);var o=n}catch(i){o=` | |
Error generating stack: `+i.message+` | |
`+i.stack}return{value:e,source:t,stack:o}}function Cu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var f0=typeof WeakMap=="function"?WeakMap:Map;function sg(e,t,n){n=Vt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){na||(na=!0,Lu=r),Cu(e,t)},n}function ag(e,t,n){n=Vt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Cu(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Cu(e,t),typeof r!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new f0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=P0.bind(null,e,t,n),t.then(e,e))}function yf(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 vf(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=Vt(-1,1),t.tag=2,fn(n,t))),n.lanes|=1),e)}var lg,ku,ug,cg;lg=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}};ku=function(){};ug=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Hn(Rt.current);var i=null;switch(n){case"input":o=Xl(e,o),r=Xl(e,r),i=[];break;case"select":o=Y({},o,{value:void 0}),r=Y({},r,{value:void 0}),i=[];break;case"textarea":o=eu(e,o),r=eu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=$s)}nu(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Bo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o?.[u],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||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Bo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&$("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};cg=function(e,t,n,r){n!==r&&(t.flags|=4)};function To(e,t){if(!q)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 xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function m0(e,t,n){var r=t.pendingProps;switch(rc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Fe(t.type)&&Us(),xe(t),null;case 3:return r=t.stateNode,$r(),U(be),U(Se),ac(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Co(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,gt!==null&&(Fu(gt),gt=null))),ku(e,t),xe(t),null;case 5:sc(t);var o=Hn(Jo.current);if(n=t.type,e!==null&&t.stateNode!=null)ug(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return xe(t),null}if(e=Hn(Rt.current),Co(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ct]=t,r[Yo]=i,e=(t.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(o=0;o<Ao.length;o++)$(Ao[o],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":Ld(r,i),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},$("invalid",r);break;case"textarea":bd(r,i),$("invalid",r)}nu(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(vs(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(vs(r.textContent,a,e),o=["children",""+a]):Bo.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&$("scroll",r)}switch(n){case"input":ss(r),Dd(r,i,!0);break;case"textarea":ss(r),Fd(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=$s)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qf(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[Ct]=t,e[Yo]=r,lg(e,t,!1,!1),t.stateNode=e;e:{switch(s=ru(n,r),n){case"dialog":$("cancel",e),$("close",e),o=r;break;case"iframe":case"object":case"embed":$("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ao.length;o++)$(Ao[o],e);o=r;break;case"source":$("error",e),o=r;break;case"img":case"image":case"link":$("error",e),$("load",e),o=r;break;case"details":$("toggle",e),o=r;break;case"input":Ld(e,r),o=Xl(e,r),$("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Y({},r,{value:void 0}),$("invalid",e);break;case"textarea":bd(e,r),o=eu(e,r),$("invalid",e);break;default:o=r}nu(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Yf(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Qf(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Vo(e,l):typeof l=="number"&&Vo(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Bo.hasOwnProperty(i)?l!=null&&i==="onScroll"&&$("scroll",e):l!=null&&_u(e,i,l,s))}switch(n){case"input":ss(e),Dd(e,r,!1);break;case"textarea":ss(e),Fd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+hn(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Dr(e,!!r.multiple,i,!1):r.defaultValue!=null&&Dr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=$s)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)cg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=Hn(Jo.current),Hn(Rt.current),Co(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ct]=t,(i=r.nodeValue!==n)&&(e=He,e!==null))switch(s=(e.mode&1)!==0,e.tag){case 3:vs(r.nodeValue,n,s);break;case 5:e.memoizedProps[void 0]!==!0&&vs(r.nodeValue,n,s)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ct]=t,t.stateNode=r}return xe(t),null;case 13:if(U(G),r=t.memoizedState,q&&Le!==null&&t.mode&1&&!(t.flags&128)){for(r=Le;r;)r=_t(r.nextSibling);return Vr(),t.flags|=98560,t}if(r!==null&&r.dehydrated!==null){if(r=Co(t),e===null){if(!r)throw Error(k(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(k(317));r[Ct]=t}else Vr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;return xe(t),null}return gt!==null&&(Fu(gt),gt=null),t.flags&128?(t.lanes=n,t):(r=r!==null,n=!1,e===null?Co(t):n=e.memoizedState!==null,r&&!n&&(t.child.flags|=8192,t.mode&1&&(e===null||G.current&1?se===0&&(se=3):vc())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return $r(),ku(e,t),e===null&&Qo(t.stateNode.containerInfo),xe(t),null;case 10:return ec(t.type._context),xe(t),null;case 17:return Fe(t.type)&&Us(),xe(t),null;case 19:if(U(G),i=t.memoizedState,i===null)return xe(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)To(i,!1);else{if(se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Xs(e),s!==null){for(t.flags|=128,To(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return H(G,G.current&1|2),t.child}e=e.sibling}i.tail!==null&&ee()>Kr&&(t.flags|=128,r=!0,To(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),To(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!q)return xe(t),null}else 2*ee()-i.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,To(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ee(),t.sibling=null,n=G.current,H(G,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Be&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}var g0=Wt.ReactCurrentOwner,Ve=!1;function Re(e,t,n,r){t.child=e===null?Bm(t,null,n,r):Hr(t,e.child,n,r)}function xf(e,t,n,r,o){n=n.render;var i=t.ref;return jr(t,o),r=uc(e,t,n,r,i,o),n=cc(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ut(e,t,o)):(q&&n&&nc(t),t.flags|=1,Re(e,t,r,o),t.child)}function wf(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!xc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,pg(e,t,i,r,o)):(e=Fs(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:qo,n(s,r)&&e.ref===t.ref)return Ut(e,t,o)}return t.flags|=1,e=vn(i,r),e.ref=t.ref,e.return=t,t.child=e}function pg(e,t,n,r,o){if(e!==null&&qo(e.memoizedProps,r)&&e.ref===t.ref)if(Ve=!1,(e.lanes&o)!==0)e.flags&131072&&(Ve=!0);else return t.lanes=e.lanes,Ut(e,t,o);return Tu(e,t,n,r,o)}function dg(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null},H(Lr,Be),Be|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null},r=i!==null?i.baseLanes:n,H(Lr,Be),Be|=r;else return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,H(Lr,Be),Be|=e,null;else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,H(Lr,Be),Be|=r;return Re(e,t,o,n),t.child}function fg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tu(e,t,n,r,o){var i=Fe(n)?qn:Se.current;return i=Br(t,i),jr(t,o),n=uc(e,t,n,r,i,o),r=cc(),e!==null&&!Ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ut(e,t,o)):(q&&r&&nc(t),t.flags|=1,Re(e,t,n,o),t.child)}function Sf(e,t,n,r,o){if(Fe(n)){var i=!0;Ws(t)}else i=!1;if(jr(t,o),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Im(t,n,r),wu(t,n,r,o),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=it(u):(u=Fe(n)?qn:Se.current,u=Br(t,u));var c=n.getDerivedStateFromProps,m=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&df(t,s,r,u),on=!1;var d=t.memoizedState;s.state=d,Qs(t,r,s,o),l=t.memoizedState,a!==r||d!==l||be.current||on?(typeof c=="function"&&(xu(t,n,c,r),l=t.memoizedState),(a=on||pf(t,n,a,r,d,l,u))?(m||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,bm(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:mt(t.type,a),s.props=u,m=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=it(l):(l=Fe(n)?qn:Se.current,l=Br(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==m||d!==l)&&df(t,s,r,l),on=!1,d=t.memoizedState,s.state=d,Qs(t,r,s,o);var v=t.memoizedState;a!==m||d!==v||be.current||on?(typeof h=="function"&&(xu(t,n,h,r),v=t.memoizedState),(u=on||pf(t,n,u,r,d,v,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,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=v),s.props=r,s.state=v,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 Ru(e,t,n,r,i,o)}function Ru(e,t,n,r,o,i){fg(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&lf(t,n,!1),Ut(e,t,i);r=t.stateNode,g0.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Hr(t,e.child,null,i),t.child=Hr(t,null,a,i)):Re(e,t,a,i),t.memoizedState=r.state,o&&lf(t,n,!0),t.child}function mg(e){var t=e.stateNode;t.pendingContext?af(e,t.pendingContext,t.pendingContext!==t.context):t.context&&af(e,t.context,!1),ic(e,t.containerInfo)}function Ef(e,t,n,r,o){return Vr(),oc(o),t.flags|=256,Re(e,t,n,r),t.child}var Es={dehydrated:null,treeContext:null,retryLane:0};function Cs(e){return{baseLanes:e,cachePool:null}}function gg(e,t,n){var r=t.pendingProps,o=G.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),H(G,o&1),e===null)return Eu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ia(o,r,0,null),e=Kn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Cs(n),t.memoizedState=Es,e):Pu(t,o));if(o=e.memoizedState,o!==null){if(a=o.dehydrated,a!==null){if(s)return t.flags&256?(t.flags&=-257,ks(e,t,n,Error(k(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=ia({mode:"visible",children:r.children},o,0,null),i=Kn(i,o,n,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Hr(t,e.child,null,n),t.child.memoizedState=Cs(n),t.memoizedState=Es,i);if(!(t.mode&1))t=ks(e,t,n,null);else if(a.data==="$!")t=ks(e,t,n,Error(k(419)));else if(r=(n&e.childLanes)!==0,Ve||r){if(r=re,r!==null){switch(n&-n){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}r=i&(r.suspendedLanes|n)?0:i,r!==0&&r!==o.retryLane&&(o.retryLane=r,ot(e,r,-1))}vc(),t=ks(e,t,n,Error(k(421)))}else a.data==="$?"?(t.flags|=128,t.child=e.child,t=N0.bind(null,e),a._reactRetry=t,t=null):(n=o.treeContext,Le=_t(a.nextSibling),He=t,q=!0,gt=null,n!==null&&(Ze[et++]=zt,Ze[et++]=Bt,Ze[et++]=Qn,zt=n.id,Bt=n.overflow,Qn=t),t=Pu(t,t.pendingProps.children),t.flags|=4096);return t}return i?(r=kf(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?Cs(n):{baseLanes:o.baseLanes|n,cachePool:null},i.childLanes=e.childLanes&~n,t.memoizedState=Es,r):(n=Cf(e,t,r.children,n),t.memoizedState=null,n)}return i?(r=kf(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?Cs(n):{baseLanes:o.baseLanes|n,cachePool:null},i.childLanes=e.childLanes&~n,t.memoizedState=Es,r):(n=Cf(e,t,r.children,n),t.memoizedState=null,n)}function Pu(e,t){return t=ia({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Cf(e,t,n,r){var o=e.child;return e=o.sibling,n=vn(o,{mode:"visible",children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function kf(e,t,n,r,o){var i=t.mode;e=e.child;var s=e.sibling,a={mode:"hidden",children:n};return!(i&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=a,t.deletions=null):(n=vn(e,a),n.subtreeFlags=e.subtreeFlags&14680064),s!==null?r=vn(s,r):(r=Kn(r,i,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ks(e,t,n,r){return r!==null&&oc(r),Hr(t,e.child,null,n),e=Pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vu(e.return,t,n)}function Hl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function hg(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Re(e,t,r.children,n),r=G.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&&Tf(e,n,t);else if(e.tag===19)Tf(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(H(G,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Xs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Xs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function h0(e,t,n){switch(t.tag){case 3:mg(t),Vr();break;case 5:Vm(t);break;case 1:Fe(t.type)&&Ws(t);break;case 4:ic(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;H(Ks,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(H(G,G.current&1),t.flags|=128,null):n&t.child.childLanes?gg(e,t,n):(H(G,G.current&1),e=Ut(e,t,n),e!==null?e.sibling:null);H(G,G.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hg(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),H(G,G.current),r)break;return null;case 22:case 23:return t.lanes=0,dg(e,t,n)}return Ut(e,t,n)}function y0(e,t){switch(rc(t),t.tag){case 1:return Fe(t.type)&&Us(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),U(be),U(Se),ac(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sc(t),null;case 13:if(U(G),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(G),null;case 4:return $r(),null;case 10:return ec(t.type._context),null;case 22:case 23:return yc(),null;case 24:return null;default:return null}}var Ts=!1,$n=!1,v0=typeof WeakSet=="function"?WeakSet:Set,P=null;function ea(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function Nu(e,t,n){try{n()}catch(r){De(e,t,r)}}var Rf=!1;function x0(e,t){if(e=Cm(),Xu(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,m=e,d=null;t:for(;;){for(var h;m!==n||o!==0&&m.nodeType!==3||(a=s+o),m!==i||r!==0&&m.nodeType!==3||(l=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(h=m.firstChild)!==null;)d=m,m=h;for(;;){if(m===e)break t;if(d===n&&++u===o&&(a=s),d===i&&++c===r&&(l=s),(h=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fu={focusedElem:e,selectionRange:n},P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,C=v.memoizedState,g=t.stateNode,f=g.getSnapshotBeforeUpdate(t.elementType===t.type?x:mt(t.type,x),C);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var y=t.stateNode.containerInfo;if(y.nodeType===1)y.textContent="";else if(y.nodeType===9){var p=y.body;p!=null&&(p.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(E){De(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return v=Rf,Rf=!1,v}function ni(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Nu(t,n,i)}o=o.next}while(o!==r)}}function ga(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 Mu(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 Pf(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(aa,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var o=r,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Nu(t,n,i),r=r.next}while(r!==e)}break;case 1:if(ea(t,n),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(s){De(t,n,s)}break;case 5:ea(t,n);break;case 4:xg(e,t,n)}}function yg(e){var t=e.alternate;t!==null&&(e.alternate=null,yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[Yo],delete t[hu],delete t[n0],delete t[r0])),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 vg(e){return e.tag===5||e.tag===3||e.tag===4}function Nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vg(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 Mf(e){e:{for(var t=e.return;t!==null;){if(vg(t))break e;t=t.return}throw Error(k(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,n.flags&32&&(Vo(t,""),n.flags&=-33),n=Nf(e),Au(e,n,t);break;case 3:case 4:t=n.stateNode.containerInfo,n=Nf(e),Ou(e,n,t);break;default:throw Error(k(161))}}function Ou(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=$s));else if(r!==4&&(e=e.child,e!==null))for(Ou(e,t,n),e=e.sibling;e!==null;)Ou(e,t,n),e=e.sibling}function Au(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(Au(e,t,n),e=e.sibling;e!==null;)Au(e,t,n),e=e.sibling}function xg(e,t,n){for(var r=t,o=!1,i,s;;){if(!o){o=r.return;e:for(;;){if(o===null)throw Error(k(160));switch(i=o.stateNode,o.tag){case 5:s=!1;break e;case 3:i=i.containerInfo,s=!0;break e;case 4:i=i.containerInfo,s=!0;break e}o=o.return}o=!0}if(r.tag===5||r.tag===6){e:for(var a=e,l=r,u=n,c=l;;)if(Pf(a,c,u),c.child!==null&&c.tag!==4)c.child.return=c,c=c.child;else{if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}s?(a=i,l=r.stateNode,a.nodeType===8?a.parentNode.removeChild(l):a.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===18)s?(a=i,l=r.stateNode,a.nodeType===8?jl(a.parentNode,l):a.nodeType===1&&jl(a,l),Wo(a)):jl(i,r.stateNode);else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,s=!0,r.child.return=r,r=r.child;continue}}else if(Pf(e,r,n),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(o=!1)}r.sibling.return=r.return,r=r.sibling}}function $l(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ni(3,t,t.return),ga(3,t),ni(5,t,t.return);return;case 1:return;case 5:var n=t.stateNode;if(n!=null){var r=t.memoizedProps,o=e!==null?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(e==="input"&&r.type==="radio"&&r.name!=null&&Wf(n,r),ru(e,o),t=ru(e,r),o=0;o<i.length;o+=2){var s=i[o],a=i[o+1];s==="style"?Yf(n,a):s==="dangerouslySetInnerHTML"?Qf(n,a):s==="children"?Vo(n,a):_u(n,s,a,t)}switch(e){case"input":Jl(n,r);break;case"textarea":Kf(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,i=r.value,i!=null?Dr(n,!!r.multiple,i,!1):e!==!!r.multiple&&(r.defaultValue!=null?Dr(n,!!r.multiple,r.defaultValue,!0):Dr(n,!!r.multiple,r.multiple?[]:"",!1))}n[Yo]=r}}return;case 6:if(t.stateNode===null)throw Error(k(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:e!==null&&e.memoizedState.isDehydrated&&Wo(t.stateNode.containerInfo);return;case 12:return;case 13:Of(t);return;case 19:Of(t);return;case 17:return}throw Error(k(163))}function Of(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new v0),t.forEach(function(r){var o=M0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function w0(e,t){for(P=t;P!==null;){t=P;var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{xg(e,o,t);var i=o.alternate;i!==null&&(i.return=null),o.return=null}catch(R){De(o,t,R)}}if(n=t.child,t.subtreeFlags&12854&&n!==null)n.return=t,P=n;else for(;P!==null;){t=P;try{var s=t.flags;if(s&32&&Vo(t.stateNode,""),s&512){var a=t.alternate;if(a!==null){var l=a.ref;l!==null&&(typeof l=="function"?l(null):l.current=null)}}if(s&8192)switch(t.tag){case 13:if(t.memoizedState!==null){var u=t.alternate;(u===null||u.memoizedState===null)&&(gc=ee())}break;case 22:var c=t.memoizedState!==null,m=t.alternate,d=m!==null&&m.memoizedState!==null;n=t;e:{r=n,o=c;for(var h=null,v=r;;){if(v.tag===5){if(h===null){h=v;var x=v.stateNode;if(o){var C=x.style;typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none"}else{var g=v.stateNode,f=v.memoizedProps.style,y=f!=null&&f.hasOwnProperty("display")?f.display:null;g.style.display=Gf("display",y)}}}else if(v.tag===6)h===null&&(v.stateNode.nodeValue=o?"":v.memoizedProps);else if((v.tag!==22&&v.tag!==23||v.memoizedState===null||v===r)&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===r)break;for(;v.sibling===null;){if(v.return===null||v.return===r)break e;h===v&&(h=null),v=v.return}h===v&&(h=null),v.sibling.return=v.return,v=v.sibling}}if(c&&!d&&n.mode&1){P=n;for(var p=n.child;p!==null;){for(n=P=p;P!==null;){r=P;var E=r.child;switch(r.tag){case 0:case 11:case 14:case 15:ni(4,r,r.return);break;case 1:ea(r,r.return);var w=r.stateNode;if(typeof w.componentWillUnmount=="function"){var T=r.return;try{w.props=r.memoizedProps,w.state=r.memoizedState,w.componentWillUnmount()}catch(R){De(r,T,R)}}break;case 5:ea(r,r.return);break;case 22:if(r.memoizedState!==null){Lf(n);continue}}E!==null?(E.return=r,P=E):Lf(n)}p=p.sibling}}}switch(s&4102){case 2:Mf(t),t.flags&=-3;break;case 6:Mf(t),t.flags&=-3,$l(t.alternate,t);break;case 4096:t.flags&=-4097;break;case 4100:t.flags&=-4097,$l(t.alternate,t);break;case 4:$l(t.alternate,t)}}catch(R){De(t,t.return,R)}if(n=t.sibling,n!==null){n.return=t.return,P=n;break}P=t.return}}}function S0(e,t,n){P=e,wg(e,t,n)}function wg(e,t,n){for(var r=(e.mode&1)!==0;P!==null;){var o=P,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Ts;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||$n;a=Ts;var u=$n;if(Ts=s,($n=l)&&!u)for(P=o;P!==null;)s=P,l=s.child,s.tag===22&&s.memoizedState!==null?Df(o):l!==null?(l.return=s,P=l):Df(o);for(;i!==null;)P=i,wg(i,t,n),i=i.sibling;P=o,Ts=a,$n=u}Af(e,t,n)}else o.subtreeFlags&8772&&i!==null?(i.return=o,P=i):Af(e,t,n)}}function Af(e){for(;P!==null;){var t=P;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:$n||ga(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!$n)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&cf(t,i,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}cf(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 m=c.dehydrated;m!==null&&Wo(m)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(k(163))}$n||t.flags&512&&Mu(t)}catch(d){De(t,t.return,d)}}if(t===e){P=null;break}if(n=t.sibling,n!==null){n.return=t.return,P=n;break}P=t.return}}function Lf(e){for(;P!==null;){var t=P;if(t===e){P=null;break}var n=t.sibling;if(n!==null){n.return=t.return,P=n;break}P=t.return}}function Df(e){for(;P!==null;){var t=P;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ga(4,t)}catch(l){De(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){De(t,o,l)}}var i=t.return;try{Mu(t)}catch(l){De(t,i,l)}break;case 5:var s=t.return;try{Mu(t)}catch(l){De(t,s,l)}}}catch(l){De(t,t.return,l)}if(t===e){P=null;break}var a=t.sibling;if(a!==null){a.return=t.return,P=a;break}P=t.return}}var E0=Math.ceil,ta=Wt.ReactCurrentDispatcher,fc=Wt.ReactCurrentOwner,rt=Wt.ReactCurrentBatchConfig,I=0,re=null,ne=null,de=0,Be=0,Lr=wn(0),se=0,ri=null,Wr=0,ha=0,mc=0,_o=null,Ae=null,gc=0,Kr=1/0,na=!1,Lu=null,mn=null,Rs=!1,un=null,ra=0,zo=0,Du=null,Ds=-1,bs=0;function Pe(){return I&6?ee():Ds!==-1?Ds:Ds=ee()}function gn(e){return e.mode&1?I&2&&de!==0?de&-de:i0.transition!==null?(bs===0&&(e=ls,ls<<=1,!(ls&4194240)&&(ls=64),bs=e),bs):(e=z,e!==0||(e=window.event,e=e===void 0?16:mm(e.type)),e):1}function ot(e,t,n){if(50<zo)throw zo=0,Du=null,Error(k(185));var r=ya(e,t);return r===null?null:(oi(r,t,n),(!(I&2)||r!==re)&&(r===re&&(!(I&2)&&(ha|=t),se===4&&an(r,de)),Ie(r,n),t===1&&I===0&&!(e.mode&1)&&(Kr=ee()+500,da&&Sn())),r)}function ya(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}function Ie(e,t){var n=e.callbackNode;aw(e,t);var r=Bs(e,e===re?de:0);if(r===0)n!==null&&_d(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_d(n),t===1)e.tag===0?o0(bf.bind(null,e)):Dm(bf.bind(null,e)),e0(function(){I===0&&Sn()}),n=null;else{switch(lm(r)){case 1:n=$u;break;case 4:n=sm;break;case 16:n=zs;break;case 536870912:n=am;break;default:n=zs}n=Ng(n,Sg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sg(e,t){if(Ds=-1,bs=0,I&6)throw Error(k(327));var n=e.callbackNode;if(_r()&&e.callbackNode!==n)return null;var r=Bs(e,e===re?de:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=oa(e,r);else{t=r;var o=I;I|=2;var i=Cg();(re!==e||de!==t)&&(Kr=ee()+500,Wn(e,t));do try{T0();break}catch(a){Eg(e,a)}while(1);Zu(),ta.current=i,I=o,ne!==null?t=0:(re=null,de=0,t=se)}if(t!==0){if(t===2&&(o=lu(e),o!==0&&(r=o,t=bu(e,o))),t===1)throw n=ri,Wn(e,0),an(e,r),Ie(e,ee()),n;if(t===6)an(e,r);else{if(o=e.current.alternate,!(r&30)&&!C0(o)&&(t=oa(e,r),t===2&&(i=lu(e),i!==0&&(r=i,t=bu(e,i))),t===1))throw n=ri,Wn(e,0),an(e,r),Ie(e,ee()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:Bn(e,Ae);break;case 3:if(an(e,r),(r&130023424)===r&&(t=gc+500-ee(),10<t)){if(Bs(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=gu(Bn.bind(null,e,Ae),t);break}Bn(e,Ae);break;case 4:if(an(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-ht(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*E0(r/1960))-r,10<r){e.timeoutHandle=gu(Bn.bind(null,e,Ae),r);break}Bn(e,Ae);break;case 5:Bn(e,Ae);break;default:throw Error(k(329))}}}return Ie(e,ee()),e.callbackNode===n?Sg.bind(null,e):null}function bu(e,t){var n=_o;return e.current.memoizedState.isDehydrated&&(Wn(e,t).flags|=256),e=oa(e,t),e!==2&&(t=Ae,Ae=n,t!==null&&Fu(t)),e}function Fu(e){Ae===null?Ae=e:Ae.push.apply(Ae,e)}function C0(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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!Pt(i(),o))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 an(e,t){for(t&=~mc,t&=~ha,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),r=1<<n;e[n]=-1,t&=~r}}function bf(e){if(I&6)throw Error(k(327));_r();var t=Bs(e,0);if(!(t&1))return Ie(e,ee()),null;var n=oa(e,t);if(e.tag!==0&&n===2){var r=lu(e);r!==0&&(t=r,n=bu(e,r))}if(n===1)throw n=ri,Wn(e,0),an(e,t),Ie(e,ee()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Bn(e,Ae),Ie(e,ee()),null}function hc(e,t){var n=I;I|=1;try{return e(t)}finally{I=n,I===0&&(Kr=ee()+500,da&&Sn())}}function Gn(e){un!==null&&un.tag===0&&!(I&6)&&_r();var t=I;I|=1;var n=rt.transition,r=z;try{if(rt.transition=null,z=1,e)return e()}finally{z=r,rt.transition=n,I=t,!(I&6)&&Sn()}}function yc(){Be=Lr.current,U(Lr)}function Wn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Zw(n)),ne!==null)for(n=ne.return;n!==null;){var r=n;switch(rc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Us();break;case 3:$r(),U(be),U(Se),ac();break;case 5:sc(r);break;case 4:$r();break;case 13:U(G);break;case 19:U(G);break;case 10:ec(r.type._context);break;case 22:case 23:yc()}n=n.return}if(re=e,ne=e=vn(e.current,null),de=Be=t,se=0,ri=null,mc=ha=Wr=0,Ae=_o=null,kt!==null){for(t=0;t<kt.length;t++)if(n=kt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}kt=null}return e}function Eg(e,t){do{var n=ne;try{if(Zu(),As.current=Zs,Js){for(var r=J.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Js=!1}if(Ur=0,ue=we=J=null,jo=!1,Zo=0,fc.current=null,n===null||n.return===null){se=1,ri=t,ne=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=de,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,m=c.tag;if(!(c.mode&1)&&(m===0||m===11||m===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=yf(s);if(h!==null){h.flags&=-257,vf(h,s,a,i,t),h.mode&1&&hf(i,u,t),t=h,l=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(l),t.updateQueue=x}else v.add(l);break e}else{if(!(t&1)){hf(i,u,t),vc();break e}l=Error(k(426))}}else if(q&&a.mode&1){var C=yf(s);if(C!==null){!(C.flags&65536)&&(C.flags|=256),vf(C,s,a,i,t),oc(l);break e}}i=l,se!==4&&(se=2),_o===null?_o=[i]:_o.push(i),l=dc(l,a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=sg(a,l,t);uf(a,g);break e;case 1:i=l;var f=a.type,y=a.stateNode;if(!(a.flags&128)&&(typeof f.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(mn===null||!mn.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t;var p=ag(a,i,t);uf(a,p);break e}}a=a.return}while(a!==null)}Tg(n)}catch(E){t=E,ne===n&&n!==null&&(ne=n=n.return);continue}break}while(1)}function Cg(){var e=ta.current;return ta.current=Zs,e===null?Zs:e}function vc(){(se===0||se===3||se===2)&&(se=4),re===null||!(Wr&268435455)&&!(ha&268435455)||an(re,de)}function oa(e,t){var n=I;I|=2;var r=Cg();re===e&&de===t||Wn(e,t);do try{k0();break}catch(o){Eg(e,o)}while(1);if(Zu(),I=n,ta.current=r,ne!==null)throw Error(k(261));return re=null,de=0,se}function k0(){for(;ne!==null;)kg(ne)}function T0(){for(;ne!==null&&!Jx();)kg(ne)}function kg(e){var t=Pg(e.alternate,e,Be);e.memoizedProps=e.pendingProps,t===null?Tg(e):ne=t,fc.current=null}function Tg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=y0(n,t),n!==null){n.flags&=32767,ne=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{se=6,ne=null;return}}else if(n=m0(n,t,Be),n!==null){ne=n;return}if(t=t.sibling,t!==null){ne=t;return}ne=t=e}while(t!==null);se===0&&(se=5)}function Bn(e,t){var n=z,r=rt.transition;try{rt.transition=null,z=1,R0(e,t,n)}finally{rt.transition=r,z=n}return null}function R0(e,t,n){do _r();while(un!==null);if(I&6)throw Error(k(327));var r=e.finishedWork,o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(lw(e,i),e===re&&(ne=re=null,de=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Rs||(Rs=!0,Ng(zs,function(){return _r(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=rt.transition,rt.transition=null;var s=z;z=1;var a=I;I|=4,fc.current=null,x0(e,r),w0(e,r,o),Qw(fu),fu=null,e.current=r,S0(r,e,o),Zx(),I=a,z=s,rt.transition=i}else e.current=r;if(Rs&&(Rs=!1,un=e,ra=o),i=e.pendingLanes,i===0&&(mn=null),nw(r.stateNode,n),Ie(e,ee()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)n(t[r]);if(na)throw na=!1,e=Lu,Lu=null,e;return ra&1&&e.tag!==0&&_r(),i=e.pendingLanes,i&1?e===Du?zo++:(zo=0,Du=e):zo=0,Sn(),null}function _r(){if(un!==null){var e=lm(ra),t=rt.transition,n=z;try{if(rt.transition=null,z=16>e?16:e,un===null)var r=!1;else{if(e=un,un=null,ra=0,I&6)throw Error(k(331));var o=I;for(I|=4,P=e.current;P!==null;){var i=P,s=i.child;if(P.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(P=u;P!==null;){var c=P;switch(c.tag){case 0:case 11:case 15:ni(8,c,i)}var m=c.child;if(m!==null)m.return=c,P=m;else for(;P!==null;){c=P;var d=c.sibling,h=c.return;if(yg(c),c===u){P=null;break}if(d!==null){d.return=h,P=d;break}P=h}}}var v=i.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var C=x.sibling;x.sibling=null,x=C}while(x!==null)}}P=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,P=s;else e:for(;P!==null;){if(i=P,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ni(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,P=g;break e}P=i.return}}var f=e.current;for(P=f;P!==null;){s=P;var y=s.child;if(s.subtreeFlags&2064&&y!==null)y.return=s,P=y;else e:for(s=f;P!==null;){if(a=P,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ga(9,a)}}catch(E){De(a,a.return,E)}if(a===s){P=null;break e}var p=a.sibling;if(p!==null){p.return=a.return,P=p;break e}P=a.return}}if(I=o,Sn(),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(aa,e)}catch{}r=!0}return r}finally{z=n,rt.transition=t}}return!1}function Ff(e,t,n){t=dc(n,t),t=sg(e,t,1),fn(e,t),t=Pe(),e=ya(e,1),e!==null&&(oi(e,1,t),Ie(e,t))}function De(e,t,n){if(e.tag===3)Ff(e,e,n);else for(;t!==null;){if(t.tag===3){Ff(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(mn===null||!mn.has(r))){e=dc(n,e),e=ag(t,e,1),fn(t,e),e=Pe(),t=ya(t,1),t!==null&&(oi(t,1,e),Ie(t,e));break}}t=t.return}}function P0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,re===e&&(de&n)===n&&(se===4||se===3&&(de&130023424)===de&&500>ee()-gc?Wn(e,0):mc|=n),Ie(e,t)}function Rg(e,t){t===0&&(e.mode&1?(t=us,us<<=1,!(us&130023424)&&(us=4194304)):t=1);var n=Pe();e=ya(e,t),e!==null&&(oi(e,t,n),Ie(e,n))}function N0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Rg(e,n)}function M0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Rg(e,n)}var Pg;Pg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||be.current)Ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ve=!1,h0(e,t,n);Ve=!!(e.flags&131072)}else Ve=!1,q&&t.flags&1048576&&jm(t,Ys,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var o=Br(t,Se.current);jr(t,n),o=uc(null,t,r,e,o,n);var i=cc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(i=!0,Ws(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tc(t),o.updater=fa,t.stateNode=o,o._reactInternals=t,wu(t,r,e,n),t=Ru(null,t,r,!0,i,n)):(t.tag=0,q&&i&&nc(t),Re(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=A0(r),e=mt(r,e),o){case 0:t=Tu(null,t,r,e,n);break e;case 1:t=Sf(null,t,r,e,n);break e;case 11:t=xf(null,t,r,e,n);break e;case 14:t=wf(null,t,r,mt(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Tu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Sf(e,t,r,o,n);case 3:e:{if(mg(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,o=i.element,bm(e,t),Qs(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Error(k(423)),t=Ef(e,t,r,n,o);break e}else if(r!==o){o=Error(k(424)),t=Ef(e,t,r,n,o);break e}else for(Le=_t(t.stateNode.containerInfo.firstChild),He=t,q=!0,gt=null,n=Bm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vr(),r===o){t=Ut(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return Vm(t),e===null&&Eu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,mu(r,o)?s=null:i!==null&&mu(r,i)&&(t.flags|=32),fg(e,t),Re(e,t,s,n),t.child;case 6:return e===null&&Eu(t),null;case 13:return gg(e,t,n);case 4:return ic(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hr(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),xf(e,t,r,o,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,H(Ks,r._currentValue),r._currentValue=s,i!==null)if(Pt(i.value,s)){if(i.children===o.children&&!be.current){t=Ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Vt(-1,n&-n),l.tag=2;var u=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),vu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(k(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),vu(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Re(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jr(t,n),o=it(o),r=r(o),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),wf(e,t,r,o,n);case 15:return pg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Fe(r)?(e=!0,Ws(t)):e=!1,jr(t,n),Im(t,r,o),wu(t,r,o,n),Ru(null,t,r,!0,e,n);case 19:return hg(e,t,n);case 22:return dg(e,t,n)}throw Error(k(156,t.tag))};function Ng(e,t){return im(e,t)}function O0(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 tt(e,t,n,r){return new O0(e,t,n,r)}function xc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function A0(e){if(typeof e=="function")return xc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bu)return 11;if(e===Vu)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=tt(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 Fs(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")xc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Cr:return Kn(n.children,o,i,t);case zu:s=8,o|=8;break;case ql:return e=tt(12,n,t,o|2),e.elementType=ql,e.lanes=i,e;case Ql:return e=tt(13,n,t,o),e.elementType=Ql,e.lanes=i,e;case Gl:return e=tt(19,n,t,o),e.elementType=Gl,e.lanes=i,e;case Hf:return ia(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bf:s=10;break e;case Vf:s=9;break e;case Bu:s=11;break e;case Vu:s=14;break e;case rn:s=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=tt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Kn(e,t,n,r){return e=tt(7,e,r,t),e.lanes=n,e}function ia(e,t,n,r){return e=tt(22,e,r,t),e.elementType=Hf,e.lanes=n,e.stateNode={},e}function Ul(e,t,n){return e=tt(6,e,null,t),e.lanes=n,e}function Wl(e,t,n){return t=tt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function L0(e,t,n,r,o){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=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function wc(e,t,n,r,o,i,s,a,l){return e=new L0(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},tc(i),e}function D0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Er,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mg(e){if(!e)return yn;e=e._reactInternals;e:{if(Xn(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(Fe(n))return Lm(e,n,t)}return t}function Og(e,t,n,r,o,i,s,a,l){return e=wc(n,r,!0,e,o,i,s,a,l),e.context=Mg(null),n=e.current,r=Pe(),o=gn(n),i=Vt(r,o),i.callback=t??null,fn(n,i),e.current.lanes=o,oi(e,o,r),Ie(e,r),e}function va(e,t,n,r){var o=t.current,i=Pe(),s=gn(o);return n=Mg(n),t.context===null?t.context=n:t.pendingContext=n,t=Vt(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),fn(o,t),e=ot(o,s,i),e!==null&&Os(e,o,s),s}function sa(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 If(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sc(e,t){If(e,t),(e=e.alternate)&&If(e,t)}function b0(){return null}var Ag=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ec(e){this._internalRoot=e}xa.prototype.render=Ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));va(e,t,null,null)};xa.prototype.unmount=Ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gn(function(){va(null,e,null,null)}),t[$t]=null}};function xa(e){this._internalRoot=e}xa.prototype.unstable_scheduleHydration=function(e){if(e){var t=pm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<sn.length&&t!==0&&t<sn[n].priority;n++);sn.splice(n,0,e),n===0&&fm(e)}};function Cc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jf(){}function F0(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=sa(s);i.call(u)}}var s=Og(t,r,e,0,null,!1,!1,"",jf);return e._reactRootContainer=s,e[$t]=s.current,Qo(e.nodeType===8?e.parentNode:e),Gn(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=sa(l);a.call(u)}}var l=wc(e,0,!1,null,null,!1,!1,"",jf);return e._reactRootContainer=l,e[$t]=l.current,Qo(e.nodeType===8?e.parentNode:e),Gn(function(){va(t,l,n,r)}),l}function Sa(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=sa(s);a.call(l)}}va(t,s,e,o)}else s=F0(n,t,e,o,r);return sa(s)}um=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Oo(t.pendingLanes);n!==0&&(Uu(t,n|1),Ie(t,ee()),!(I&6)&&(Kr=ee()+500,Sn()))}break;case 13:var r=Pe();Gn(function(){return ot(e,1,r)}),Sc(e,1)}};Wu=function(e){if(e.tag===13){var t=Pe();ot(e,134217728,t),Sc(e,134217728)}};cm=function(e){if(e.tag===13){var t=Pe(),n=gn(e);ot(e,n,t),Sc(e,n)}};pm=function(){return z};dm=function(e,t){var n=z;try{return z=e,t()}finally{z=n}};iu=function(e,t,n){switch(t){case"input":if(Jl(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 o=pa(r);if(!o)throw Error(k(90));Uf(r),Jl(r,o)}}}break;case"textarea":Kf(e,n);break;case"select":t=n.value,t!=null&&Dr(e,!!n.multiple,t,!1)}};Zf=hc;em=Gn;var I0={usingClientEntryPoint:!1,Events:[si,Pr,pa,Xf,Jf,hc]},Ro={findFiberByHostInstance:Vn,bundleType:0,version:"18.0.0-fc46dba67-20220329",rendererPackageName:"react-dom"},j0={bundleType:Ro.bundleType,version:Ro.version,rendererPackageName:Ro.rendererPackageName,rendererConfig:Ro.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rm(e),e===null?null:e.stateNode},findFiberByHostInstance:Ro.findFiberByHostInstance||b0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Po=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Po.isDisabled&&Po.supportsFiber))try{aa=Po.inject(j0),Tt=Po}catch{}var Po;We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I0;We.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cc(t))throw Error(k(200));return D0(e,t,null,n)};We.createRoot=function(e,t){if(!Cc(e))throw Error(k(299));var n=!1,r="",o=Ag;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=wc(e,1,!1,null,null,n,!1,r,o),e[$t]=t.current,Qo(e.nodeType===8?e.parentNode:e),new Ec(t)};We.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(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=rm(t),e=e===null?null:e.stateNode,e};We.flushSync=function(e){return Gn(e)};We.hydrate=function(e,t,n){if(!wa(t))throw Error(k(200));return Sa(null,e,t,!0,n)};We.hydrateRoot=function(e,t,n){if(!Cc(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=Ag;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Og(t,null,e,1,n??null,o,!1,i,s),e[$t]=t.current,Qo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new xa(t)};We.render=function(e,t,n){if(!wa(t))throw Error(k(200));return Sa(null,e,t,!1,n)};We.unmountComponentAtNode=function(e){if(!wa(e))throw Error(k(40));return e._reactRootContainer?(Gn(function(){Sa(null,null,e,!1,function(){e._reactRootContainer=null,e[$t]=null})}),!0):!1};We.unstable_batchedUpdates=hc;We.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wa(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return Sa(e,t,n,!1,r)};We.version="18.0.0-fc46dba67-20220329"});var Fg=rr((zD,bg)=>{"use strict";function Dg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dg)}catch(e){console.error(e)}}Dg(),bg.exports=Lg()});function Qt(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}var wt=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:t,editor:n,state:r}=this,{view:o}=n,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(t).map(([a,l])=>[a,(...c)=>{let m=l(...c)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),m}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){let{rawCommands:r,editor:o,state:i}=this,{view:s}=o,a=[],l=!!t,u=t||i.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(d=>d===!0)),m={...Object.fromEntries(Object.entries(r).map(([d,h])=>[d,(...x)=>{let C=this.buildProps(u,n),g=h(...x)(C);return a.push(g),m}])),run:c};return m}createCan(t){let{rawCommands:n,state:r}=this,o=!1,i=t||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(n).map(([l,u])=>[l,(...c)=>u(...c)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(t,n=!0){let{rawCommands:r,editor:o,state:i}=this,{view:s}=o,a={tr:t,editor:o,view:s,state:Qt({state:i,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,u])=>[l,(...c)=>u(...c)(a)]))}};return a}};import{EditorState as fv}from"@tiptap/pm/state";import{EditorView as mv}from"@tiptap/pm/view";var Si=class{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){let r=this.callbacks[t];return r&&r.forEach(o=>o.apply(this,n)),this}off(t,n){let r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(o=>o!==n):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}};import{keymap as ih}from"@tiptap/pm/keymap";function N(e,t,n){return e.config[t]===void 0&&e.parent?N(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?N(e.parent,t,n):null}):e.config[t]}function Gt(e){let t=e.filter(o=>o.type==="extension"),n=e.filter(o=>o.type==="node"),r=e.filter(o=>o.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function Ei(e){let t=[],{nodeExtensions:n,markExtensions:r}=Gt(e),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(s=>{let a={name:s.name,options:s.options,storage:s.storage},l=N(s,"addGlobalAttributes",a);if(!l)return;l().forEach(c=>{c.types.forEach(m=>{Object.entries(c.attributes).forEach(([d,h])=>{t.push({type:m,name:d,attribute:{...i,...h}})})})})}),o.forEach(s=>{let a={name:s.name,options:s.options,storage:s.storage},l=N(s,"addAttributes",a);if(!l)return;let u=l();Object.entries(u).forEach(([c,m])=>{let d={...i,...m};typeof d?.default=="function"&&(d.default=d.default()),d?.isRequired&&d?.default===void 0&&delete d.default,t.push({type:s.name,name:c,attribute:d})})}),t}function b(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Lc(...e){return e.filter(t=>!!t).reduce((t,n)=>{let r={...t};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}o==="class"?r[o]=[r[o],i].join(" "):o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function no(e,t){return t.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Lc(n,r),{})}import{Schema as Zg}from"@tiptap/pm/model";function Ci(e){return typeof e=="function"}function A(e,t=void 0,...n){return Ci(e)?t?e.bind(t)(...n):e(...n):e}function Dc(e={}){return Object.keys(e).length===0&&e.constructor===Object}function bc(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function Oa(e,t){return e.style?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let o=t.reduce((i,s)=>{let a=s.attribute.parseHTML?s.attribute.parseHTML(n):bc(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...r,...o}}}}function Fc(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&Dc(n)?!1:n!=null))}function ki(e,t){let n=Ei(e),{nodeExtensions:r,markExtensions:o}=Gt(e),i=r.find(l=>N(l,"topNode"))?.name,s=Object.fromEntries(r.map(l=>{let u=n.filter(C=>C.type===l.name),c={name:l.name,options:l.options,storage:l.storage,editor:t},m=e.reduce((C,g)=>{let f=N(g,"extendNodeSchema",c);return{...C,...f?f(l):{}}},{}),d=Fc({...m,content:A(N(l,"content",c)),marks:A(N(l,"marks",c)),group:A(N(l,"group",c)),inline:A(N(l,"inline",c)),atom:A(N(l,"atom",c)),selectable:A(N(l,"selectable",c)),draggable:A(N(l,"draggable",c)),code:A(N(l,"code",c)),defining:A(N(l,"defining",c)),isolating:A(N(l,"isolating",c)),attrs:Object.fromEntries(u.map(C=>[C.name,{default:C?.attribute?.default}]))}),h=A(N(l,"parseHTML",c));h&&(d.parseDOM=h.map(C=>Oa(C,u)));let v=N(l,"renderHTML",c);v&&(d.toDOM=C=>v({node:C,HTMLAttributes:no(C,u)}));let x=N(l,"renderText",c);return x&&(d.toText=x),[l.name,d]})),a=Object.fromEntries(o.map(l=>{let u=n.filter(x=>x.type===l.name),c={name:l.name,options:l.options,storage:l.storage,editor:t},m=e.reduce((x,C)=>{let g=N(C,"extendMarkSchema",c);return{...x,...g?g(l):{}}},{}),d=Fc({...m,inclusive:A(N(l,"inclusive",c)),excludes:A(N(l,"excludes",c)),group:A(N(l,"group",c)),spanning:A(N(l,"spanning",c)),code:A(N(l,"code",c)),attrs:Object.fromEntries(u.map(x=>[x.name,{default:x?.attribute?.default}]))}),h=A(N(l,"parseHTML",c));h&&(d.parseDOM=h.map(x=>Oa(x,u)));let v=N(l,"renderHTML",c);return v&&(d.toDOM=x=>v({mark:x,HTMLAttributes:no(x,u)})),[l.name,d]}));return new Zg({topNode:i,nodes:s,marks:a})}function Ti(e,t){return t.nodes[e]||t.marks[e]||null}function Aa(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}import{Plugin as eh}from"@tiptap/pm/state";var Ic=(e,t=500)=>{let n="",r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(o,i,s,a)=>{let l=o.type.spec.toText?.({node:o,pos:i,parent:s,index:a})||o.textContent||"%leaf%";n+=l.slice(0,Math.max(0,r-i))}),n};function or(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var qe=class{constructor(t){this.find=t.find,this.handler=t.handler}},th=(e,t)=>{if(or(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function La(e){let{editor:t,from:n,to:r,text:o,rules:i,plugin:s}=e,{view:a}=t;if(a.composing)return!1;let l=a.state.doc.resolve(n);if(l.parent.type.spec.code||(l.nodeBefore||l.nodeAfter)?.marks.find(m=>m.type.spec.code))return!1;let u=!1,c=Ic(l)+o;return i.forEach(m=>{if(u)return;let d=th(c,m.find);if(!d)return;let h=a.state.tr,v=Qt({state:a.state,transaction:h}),x={from:n-(d[0].length-o.length),to:r},{commands:C,chain:g,can:f}=new wt({editor:t,state:v});m.handler({state:v,range:x,match:d,commands:C,chain:g,can:f})===null||!h.steps.length||(h.setMeta(s,{transform:h,from:n,to:r,text:o}),a.dispatch(h),u=!0)}),u}function jc(e){let{editor:t,rules:n}=e,r=new eh({state:{init(){return null},apply(o,i){let s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,a){return La({editor:t,from:i,to:s,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{let{$cursor:i}=o.state.selection;i&&La({editor:t,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;let{$cursor:s}=o.state.selection;return s?La({editor:t,from:s.pos,to:s.pos,text:` | |
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}import{Plugin as nh}from"@tiptap/pm/state";function _c(e){return typeof e=="number"}var Yt=class{constructor(t){this.find=t.find,this.handler=t.handler}},rh=(e,t)=>{if(or(t))return[...e.matchAll(t)];let n=t(e);return n?n.map(r=>{let o=[r.text];return o.index=r.index,o.input=e,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function oh(e){let{editor:t,state:n,from:r,to:o,rule:i}=e,{commands:s,chain:a,can:l}=new wt({editor:t,state:n}),u=[];return n.doc.nodesBetween(r,o,(m,d)=>{if(!m.isTextblock||m.type.spec.code)return;let h=Math.max(r,d),v=Math.min(o,d+m.content.size),x=m.textBetween(h-d,v-d,void 0,"\uFFFC");rh(x,i.find).forEach(g=>{if(g.index===void 0)return;let f=h+g.index+1,y=f+g[0].length,p={from:n.tr.mapping.map(f),to:n.tr.mapping.map(y)},E=i.handler({state:n,range:p,match:g,commands:s,chain:a,can:l});u.push(E)})}),u.every(m=>m!==null)}function zc(e){let{editor:t,rules:n}=e,r=null,o=!1,i=!1;return n.map(a=>new nh({view(l){let u=c=>{r=l.dom.parentElement?.contains(c.target)?l.dom.parentElement:null};return window.addEventListener("dragstart",u),{destroy(){window.removeEventListener("dragstart",u)}}},props:{handleDOMEvents:{drop:l=>(i=r===l.dom.parentElement,!1),paste:(l,u)=>(o=!!u.clipboardData?.getData("text/html")?.includes("data-pm-slice"),!1)}},appendTransaction:(l,u,c)=>{let m=l[0],d=m.getMeta("uiEvent")==="paste"&&!o,h=m.getMeta("uiEvent")==="drop"&&!i;if(!d&&!h)return;let v=u.doc.content.findDiffStart(c.doc.content),x=u.doc.content.findDiffEnd(c.doc.content);if(!_c(v)||!x||v===x.b)return;let C=c.tr,g=Qt({state:c,transaction:C});if(!(!oh({editor:t,state:g,from:Math.max(v-1,0),to:x.b-1,rule:a})||!C.steps.length))return C}}))}function Bc(e){let t=e.filter((n,r)=>e.indexOf(n)!==r);return[...new Set(t)]}var ir=class e{constructor(t,n){this.splittableMarks=[];this.editor=n,this.extensions=e.resolve(t),this.schema=ki(this.extensions,n),this.extensions.forEach(r=>{this.editor.extensionStorage[r.name]=r.storage;let o={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:Ti(r.name,this.schema)};r.type==="mark"&&(A(N(r,"keepOnSplit",o))??!0)&&this.splittableMarks.push(r.name);let i=N(r,"onBeforeCreate",o);i&&this.editor.on("beforeCreate",i);let s=N(r,"onCreate",o);s&&this.editor.on("create",s);let a=N(r,"onUpdate",o);a&&this.editor.on("update",a);let l=N(r,"onSelectionUpdate",o);l&&this.editor.on("selectionUpdate",l);let u=N(r,"onTransaction",o);u&&this.editor.on("transaction",u);let c=N(r,"onFocus",o);c&&this.editor.on("focus",c);let m=N(r,"onBlur",o);m&&this.editor.on("blur",m);let d=N(r,"onDestroy",o);d&&this.editor.on("destroy",d)})}static resolve(t){let n=e.sort(e.flatten(t)),r=Bc(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{let r={name:n.name,options:n.options,storage:n.storage},o=N(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(t){return t.sort((r,o)=>{let i=N(r,"priority")||100,s=N(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((t,n)=>{let r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Ti(n.name,this.schema)},o=N(n,"addCommands",r);return o?{...t,...o()}:t},{})}get plugins(){let{editor:t}=this,n=e.sort([...this.extensions].reverse()),r=[],o=[],i=n.map(s=>{let a={name:s.name,options:s.options,storage:s.storage,editor:t,type:Ti(s.name,this.schema)},l=[],u=N(s,"addKeyboardShortcuts",a),c={};if(s.type==="mark"&&s.config.exitable&&(c.ArrowRight=()=>Ri.handleExit({editor:t,mark:s})),u){let x=Object.fromEntries(Object.entries(u()).map(([C,g])=>[C,()=>g({editor:t})]));c={...c,...x}}let m=ih(c);l.push(m);let d=N(s,"addInputRules",a);Aa(s,t.options.enableInputRules)&&d&&r.push(...d());let h=N(s,"addPasteRules",a);Aa(s,t.options.enablePasteRules)&&h&&o.push(...h());let v=N(s,"addProseMirrorPlugins",a);if(v){let x=v();l.push(...x)}return l}).flat();return[jc({editor:t,rules:r}),...zc({editor:t,rules:o}),...i]}get attributes(){return Ei(this.extensions)}get nodeViews(){let{editor:t}=this,{nodeExtensions:n}=Gt(this.extensions);return Object.fromEntries(n.filter(r=>!!N(r,"addNodeView")).map(r=>{let o=this.attributes.filter(l=>l.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:t,type:b(r.name,this.schema)},s=N(r,"addNodeView",i);if(!s)return[];let a=(l,u,c,m)=>{let d=no(l,o);return s()({editor:t,node:l,getPos:c,decorations:m,HTMLAttributes:d,extension:r})};return[r.name,a]}))}};var _i={};Ac(_i,{ClipboardTextSerializer:()=>Vc,Commands:()=>cp,Editable:()=>pp,FocusEvents:()=>dp,Keymap:()=>fp,Tabindex:()=>mp});import{Plugin as ah,PluginKey as lh}from"@tiptap/pm/state";function sh(e){return Object.prototype.toString.call(e).slice(8,-1)}function Pi(e){return sh(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Pn(e,t){let n={...e};return Pi(e)&&Pi(t)&&Object.keys(t).forEach(r=>{Pi(t[r])?r in e?n[r]=Pn(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n}var Me=class e{constructor(t={}){this.type="extension";this.name="extension";this.parent=null;this.child=null;this.config={name:this.name,defaultOptions:{}};this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=A(N(this,"addOptions",{name:this.name}))),this.storage=A(N(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(t={}){let n=this.extend();return n.options=Pn(this.options,t),n.storage=A(N(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=A(N(n,"addOptions",{name:n.name})),n.storage=A(N(n,"addStorage",{name:n.name,options:n.options})),n}};function Ni(e,t,n){let{from:r,to:o}=t,{blockSeparator:i=` | |
`,textSerializers:s={}}=n||{},a="",l=!0;return e.nodesBetween(r,o,(u,c,m,d)=>{let h=s?.[u.type.name];h?(u.isBlock&&!l&&(a+=i,l=!0),m&&(a+=h({node:u,pos:c,parent:m,index:d,range:t}))):u.isText?(a+=u?.text?.slice(Math.max(r,c)-c,o-c),l=!1):u.isBlock&&!l&&(a+=i,l=!0)}),a}function sr(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}var Vc=Me.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new ah({key:new lh("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o,s=Math.min(...i.map(c=>c.$from.pos)),a=Math.max(...i.map(c=>c.$to.pos)),l=sr(n);return Ni(r,{from:s,to:a},{textSerializers:l})}}})]}});var Va={};Ac(Va,{blur:()=>uh,clearContent:()=>ch,clearNodes:()=>dh,command:()=>fh,createParagraphNear:()=>gh,cut:()=>yh,deleteCurrentNode:()=>vh,deleteNode:()=>xh,deleteRange:()=>wh,deleteSelection:()=>Eh,enter:()=>Ch,exitCode:()=>Th,extendMarkRange:()=>Nh,first:()=>Mh,focus:()=>Ah,forEach:()=>Lh,insertContent:()=>Dh,insertContentAt:()=>Bh,joinBackward:()=>qh,joinDown:()=>Kh,joinForward:()=>Qh,joinItemBackward:()=>Yh,joinItemForward:()=>Jh,joinUp:()=>Wh,keyboardShortcut:()=>ey,lift:()=>ny,liftEmptyBlock:()=>oy,liftListItem:()=>sy,newlineInCode:()=>ly,resetAttributes:()=>uy,scrollIntoView:()=>cy,selectAll:()=>py,selectNodeBackward:()=>fy,selectNodeForward:()=>gy,selectParentNode:()=>yy,selectTextblockEnd:()=>xy,selectTextblockStart:()=>Sy,setContent:()=>Ey,setMark:()=>Ly,setMeta:()=>Dy,setNode:()=>by,setNodeSelection:()=>Iy,setTextSelection:()=>jy,sinkListItem:()=>zy,splitBlock:()=>Hy,splitListItem:()=>Ky,toggleList:()=>qy,toggleMark:()=>Qy,toggleNode:()=>Gy,toggleWrap:()=>Yy,undoInputRule:()=>Xy,unsetAllMarks:()=>Jy,unsetMark:()=>Zy,updateAttributes:()=>ev,wrapIn:()=>nv,wrapInList:()=>ov});var uh=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{e.isDestroyed||(t.dom.blur(),window?.getSelection()?.removeAllRanges())}),!0);var ch=(e=!1)=>({commands:t})=>t.setContent("",e);import{liftTarget as ph}from"@tiptap/pm/transform";var dh=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:o}=r;return n&&o.forEach(({$from:i,$to:s})=>{e.doc.nodesBetween(i.pos,s.pos,(a,l)=>{if(a.type.isText)return;let{doc:u,mapping:c}=t,m=u.resolve(c.map(l)),d=u.resolve(c.map(l+a.nodeSize)),h=m.blockRange(d);if(!h)return;let v=ph(h);if(a.type.isTextblock){let{defaultType:x}=m.parent.contentMatchAt(m.index());t.setNodeMarkup(h.start,x)}(v||v===0)&&t.lift(h,v)})}),!0};var fh=e=>t=>e(t);import{createParagraphNear as mh}from"@tiptap/pm/commands";var gh=()=>({state:e,dispatch:t})=>mh(e,t);import{TextSelection as hh}from"@tiptap/pm/state";var yh=(e,t)=>({editor:n,tr:r})=>{let{state:o}=n,i=o.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let s=r.mapping.map(t);return r.insert(s,i.content),r.setSelection(new hh(r.doc.resolve(s-1))),!0};var vh=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let o=e.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(t){let a=o.before(i),l=o.after(i);e.delete(a,l).scrollIntoView()}return!0}return!1};var xh=e=>({tr:t,state:n,dispatch:r})=>{let o=b(e,n.schema),i=t.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){let l=i.before(s),u=i.after(s);t.delete(l,u).scrollIntoView()}return!0}return!1};var wh=e=>({tr:t,dispatch:n})=>{let{from:r,to:o}=e;return n&&t.delete(r,o),!0};import{deleteSelection as Sh}from"@tiptap/pm/commands";var Eh=()=>({state:e,dispatch:t})=>Sh(e,t);var Ch=()=>({commands:e})=>e.keyboardShortcut("Enter");import{exitCode as kh}from"@tiptap/pm/commands";var Th=()=>({state:e,dispatch:t})=>kh(e,t);import{TextSelection as Ph}from"@tiptap/pm/state";function Nn(e,t,n={strict:!0}){let r=Object.keys(t);return r.length?r.every(o=>n.strict?t[o]===e[o]:or(t[o])?t[o].test(e[o]):t[o]===e[o]):!0}function Da(e,t,n={}){return e.find(r=>r.type===t&&Nn(r.attrs,n))}function Rh(e,t,n={}){return!!Da(e,t,n)}function ar(e,t,n={}){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(e.parentOffset===r.offset&&r.offset!==0&&(r=e.parent.childBefore(e.parentOffset)),!r.node)return;let o=Da([...r.node.marks],t,n);if(!o)return;let i=r.index,s=e.start()+r.offset,a=i+1,l=s+r.node.nodeSize;for(Da([...r.node.marks],t,n);i>0&&o.isInSet(e.parent.child(i-1).marks);)i-=1,s-=e.parent.child(i).nodeSize;for(;a<e.parent.childCount&&Rh([...e.parent.child(a).marks],t,n);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function he(e,t){if(typeof e=="string"){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var Nh=(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=he(e,r.schema),{doc:s,selection:a}=n,{$from:l,from:u,to:c}=a;if(o){let m=ar(l,i,t);if(m&&m.from<=u&&m.to>=c){let d=Ph.create(s,m.from,m.to);n.setSelection(d)}}return!0};var Mh=e=>t=>{let n=typeof e=="function"?e(t):e;for(let r=0;r<n.length;r+=1)if(n[r](t))return!0;return!1};import{TextSelection as Oh}from"@tiptap/pm/state";function lr(e){return e instanceof Oh}import{Selection as Hc,TextSelection as $c}from"@tiptap/pm/state";function ze(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function Mi(e,t=null){if(!t)return null;let n=Hc.atStart(e),r=Hc.atEnd(e);if(t==="start"||t===!0)return n;if(t==="end")return r;let o=n.from,i=r.to;return t==="all"?$c.create(e,ze(0,o,i),ze(e.content.size,o,i)):$c.create(e,ze(t,o,i),ze(t,o,i))}function Xt(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var Ah=(e=null,t={})=>({editor:n,view:r,tr:o,dispatch:i})=>{t={scrollIntoView:!0,...t};let s=()=>{Xt()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(i&&e===null&&!lr(n.state.selection))return s(),!0;let a=Mi(o.doc,e)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||o.setSelection(a),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0};var Lh=(e,t)=>n=>e.every((r,o)=>t(r,{...n,index:o}));var Dh=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t);import{DOMParser as bh,Fragment as Fh}from"@tiptap/pm/model";function ro(e){let t=`<body>${e}</body>`;return new window.DOMParser().parseFromString(t,"text/html").body}function ur(e,t,n){if(n={slice:!0,parseOptions:{},...n},typeof e=="object"&&e!==null)try{return Array.isArray(e)&&e.length>0?Fh.fromArray(e.map(r=>t.nodeFromJSON(r))):t.nodeFromJSON(e)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",r),ur("",t,n)}if(typeof e=="string"){let r=bh.fromSchema(t);return n.slice?r.parseSlice(ro(e),n.parseOptions).content:r.parse(ro(e),n.parseOptions)}return ur("",t,n)}import{Selection as Ih}from"@tiptap/pm/state";import{ReplaceAroundStep as jh,ReplaceStep as _h}from"@tiptap/pm/transform";function Uc(e,t,n){let r=e.steps.length-1;if(r<t)return;let o=e.steps[r];if(!(o instanceof _h||o instanceof jh))return;let i=e.mapping.maps[r],s=0;i.forEach((a,l,u,c)=>{s===0&&(s=c)}),e.setSelection(Ih.near(e.doc.resolve(s),n))}var zh=e=>e.toString().startsWith("<"),Bh=(e,t,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};let s=ur(t,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(s.toString()==="<>")return!0;let{from:a,to:l}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},u=!0,c=!0;if((zh(s)?s:[s]).forEach(d=>{d.check(),u=u?d.isText&&d.marks.length===0:!1,c=c?d.isBlock:!1}),a===l&&c){let{parent:d}=r.doc.resolve(a);d.isTextblock&&!d.type.spec.code&&!d.childCount&&(a-=1,l+=1)}u?Array.isArray(t)?r.insertText(t.map(d=>d.text||"").join(""),a,l):typeof t=="object"&&t&&t.text?r.insertText(t.text,a,l):r.insertText(t,a,l):r.replaceWith(a,l,s),n.updateSelection&&Uc(r,r.steps.length-1,-1)}return!0};import{joinBackward as Vh,joinDown as Hh,joinForward as $h,joinUp as Uh}from"@tiptap/pm/commands";var Wh=()=>({state:e,dispatch:t})=>Uh(e,t),Kh=()=>({state:e,dispatch:t})=>Hh(e,t),qh=()=>({state:e,dispatch:t})=>Vh(e,t),Qh=()=>({state:e,dispatch:t})=>$h(e,t);import{joinPoint as Gh}from"@tiptap/pm/transform";var Yh=()=>({tr:e,state:t,dispatch:n})=>{try{let r=Gh(t.doc,t.selection.$from.pos,-1);return r==null?!1:(e.join(r,2),n&&n(e),!0)}catch{return!1}};import{joinPoint as Xh}from"@tiptap/pm/transform";var Jh=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Xh(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}};function Oi(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Zh(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==="Space"&&(n=" ");let r,o,i,s;for(let a=0;a<t.length-1;a+=1){let l=t[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))o=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Xt()||Oi()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}var ey=e=>({editor:t,view:n,tr:r,dispatch:o})=>{let i=Zh(e).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,a))})?.steps.forEach(u=>{let c=u.map(r.mapping);c&&o&&r.maybeStep(c)}),!0};import{lift as ty}from"@tiptap/pm/commands";function Oe(e,t,n={}){let{from:r,to:o,empty:i}=e.selection,s=t?b(t,e.schema):null,a=[];e.doc.nodesBetween(r,o,(m,d)=>{if(m.isText)return;let h=Math.max(r,d),v=Math.min(o,d+m.nodeSize);a.push({node:m,from:h,to:v})});let l=o-r,u=a.filter(m=>s?s.name===m.node.type.name:!0).filter(m=>Nn(m.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((m,d)=>m+d.to-d.from,0)>=l}var ny=(e,t={})=>({state:n,dispatch:r})=>{let o=b(e,n.schema);return Oe(n,o,t)?ty(n,r):!1};import{liftEmptyBlock as ry}from"@tiptap/pm/commands";var oy=()=>({state:e,dispatch:t})=>ry(e,t);import{liftListItem as iy}from"@tiptap/pm/schema-list";var sy=e=>({state:t,dispatch:n})=>{let r=b(e,t.schema);return iy(r)(t,n)};import{newlineInCode as ay}from"@tiptap/pm/commands";var ly=()=>({state:e,dispatch:t})=>ay(e,t);function Jt(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function ba(e,t){let n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,o)=>(n.includes(o)||(r[o]=e[o]),r),{})}var uy=(e,t)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null,a=Jt(typeof e=="string"?e:e.name,r.schema);return a?(a==="node"&&(i=b(e,r.schema)),a==="mark"&&(s=he(e,r.schema)),o&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{i&&i===u.type&&n.setNodeMarkup(c,void 0,ba(u.attrs,t)),s&&u.marks.length&&u.marks.forEach(m=>{s===m.type&&n.addMark(c,c+u.nodeSize,s.create(ba(m.attrs,t)))})})}),!0):!1};var cy=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0);var py=()=>({tr:e,commands:t})=>t.setTextSelection({from:0,to:e.doc.content.size});import{selectNodeBackward as dy}from"@tiptap/pm/commands";var fy=()=>({state:e,dispatch:t})=>dy(e,t);import{selectNodeForward as my}from"@tiptap/pm/commands";var gy=()=>({state:e,dispatch:t})=>my(e,t);import{selectParentNode as hy}from"@tiptap/pm/commands";var yy=()=>({state:e,dispatch:t})=>hy(e,t);import{selectTextblockEnd as vy}from"@tiptap/pm/commands";var xy=()=>({state:e,dispatch:t})=>vy(e,t);import{selectTextblockStart as wy}from"@tiptap/pm/commands";var Sy=()=>({state:e,dispatch:t})=>wy(e,t);function Ai(e,t,n={}){return ur(e,t,{slice:!1,parseOptions:n})}var Ey=(e,t=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{let{doc:s}=r,a=Ai(e,o.schema,n);return i&&r.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!t),!0};function Li(e,t){let n=he(t,e.schema),{from:r,to:o,empty:i}=e.selection,s=[];i?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,l=>{s.push(...l.marks)});let a=s.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}import{Transform as Cy}from"@tiptap/pm/transform";function v1(e,t){let n=new Cy(e);return t.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function Wc(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function S1(e,t){let n=[];return e.descendants((r,o)=>{t(r)&&n.push({node:r,pos:o})}),n}function C1(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function Kc(e,t){for(let n=e.depth;n>0;n-=1){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function cr(e){return t=>Kc(t.$from,e)}import{Node as Ty}from"@tiptap/pm/model";import{DOMSerializer as ky}from"@tiptap/pm/model";function Di(e,t){let n=ky.fromSchema(t).serializeFragment(e),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function pr(e,t){let n=ir.resolve(e);return ki(n,t)}function _1(e,t){let n=pr(t),r=Ty.fromJSON(n,e);return Di(r.content,n)}import{DOMParser as Ry}from"@tiptap/pm/model";function $1(e,t){let n=pr(t),r=ro(e);return Ry.fromSchema(n).parse(r).toJSON()}import{Node as Py}from"@tiptap/pm/model";function bi(e,t){let n={from:0,to:e.content.size};return Ni(e,n,t)}function X1(e,t,n){let{blockSeparator:r=` | |
`,textSerializers:o={}}=n||{},i=pr(t),s=Py.fromJSON(i,e);return bi(s,{blockSeparator:r,textSerializers:{...sr(i),...o}})}function qc(e,t){let n=b(t,e.schema),{from:r,to:o}=e.selection,i=[];e.doc.nodesBetween(r,o,a=>{i.push(a)});let s=i.reverse().find(a=>a.type.name===n.name);return s?{...s.attrs}:{}}function Qc(e,t){let n=Jt(typeof t=="string"?t:t.name,e.schema);return n==="node"?qc(e,t):n==="mark"?Li(e,t):{}}function Gc(e,t=JSON.stringify){let n={};return e.filter(r=>{let o=t(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function Ny(e){let t=Gc(e);return t.length===1?t:t.filter((n,r)=>!t.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function ak(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((o,i)=>{let s=[];if(o.ranges.length)o.forEach((a,l)=>{s.push({from:a,to:l})});else{let{from:a,to:l}=n[i];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{let u=t.slice(i).map(a,-1),c=t.slice(i).map(l),m=t.invert().map(u,-1),d=t.invert().map(c);r.push({oldRange:{from:m,to:d},newRange:{from:u,to:c}})})}),Ny(r)}function My(e,t=0){let r=e.type===e.type.schema.topNodeType?0:1,o=t,i=o+e.nodeSize,s=e.marks.map(u=>{let c={type:u.type.name};return Object.keys(u.attrs).length&&(c.attrs={...u.attrs}),c}),a={...e.attrs},l={type:e.type.name,from:o,to:i};return Object.keys(a).length&&(l.attrs=a),s.length&&(l.marks=s),e.content.childCount&&(l.content=[],e.forEach((u,c)=>{l.content?.push(My(u,t+c+r))})),e.text&&(l.text=e.text),l}function Fi(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(o=>{let i=n.resolve(e-1),s=ar(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(e,t,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}var Yc=(e,t,n,r=20)=>{let o=e.doc.resolve(n),i=r,s=null;for(;i>0&&s===null;){let a=o.node(i);a?.type.name===t?s=a:i-=1}return[s,i]};function dr(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{let o=e.find(i=>i.type===t&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function oo(e,t,n={}){let{empty:r,ranges:o}=e.selection,i=t?he(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(m=>i?i.name===m.type.name:!0).find(m=>Nn(m.attrs,n,{strict:!1}));let s=0,a=[];if(o.forEach(({$from:m,$to:d})=>{let h=m.pos,v=d.pos;e.doc.nodesBetween(h,v,(x,C)=>{if(!x.isText&&!x.marks.length)return;let g=Math.max(h,C),f=Math.min(v,C+x.nodeSize),y=f-g;s+=y,a.push(...x.marks.map(p=>({mark:p,from:g,to:f})))})}),s===0)return!1;let l=a.filter(m=>i?i.name===m.mark.type.name:!0).filter(m=>Nn(m.mark.attrs,n,{strict:!1})).reduce((m,d)=>m+d.to-d.from,0),u=a.filter(m=>i?m.mark.type!==i&&m.mark.type.excludes(i):!0).reduce((m,d)=>m+d.to-d.from,0);return(l>0?l+u:l)>=s}function Xc(e,t,n={}){if(!t)return Oe(e,null,n)||oo(e,null,n);let r=Jt(t,e.schema);return r==="node"?Oe(e,t,n):r==="mark"?oo(e,t,n):!1}var Jc=(e,t)=>{let{$from:n,$to:r,$anchor:o}=e.selection;if(t){let i=cr(a=>a.type.name===t)(e.selection);if(!i)return!1;let s=e.doc.resolve(i.pos+1);return o.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)};var Zc=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function Fa(e,t){let{nodeExtensions:n}=Gt(t),r=n.find(s=>s.name===e);if(!r)return!1;let o={name:r.name,options:r.options,storage:r.storage},i=A(N(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function ep(e){let t=e.type.createAndFill()?.toJSON(),n=e.toJSON();return JSON.stringify(t)===JSON.stringify(n)}import{NodeSelection as Oy}from"@tiptap/pm/state";function tp(e){return e instanceof Oy}var Zt=(e,t)=>{let{$from:n}=t.selection,r=b(e,t.schema),o=null,i=n.depth,s=n.pos,a=null;for(;i>0&&a===null;)o=n.node(i),o.type===r?a=i:(i-=1,s-=1);return a===null?null:{$pos:t.doc.resolve(s),depth:a}};var Ii=(e,t)=>{let n=Zt(e,t);if(!n)return!1;let[,r]=Yc(t,e,n.$pos.pos+4);return r};var np=(e,t,n)=>{let{$anchor:r}=e.selection,o=Math.max(0,r.pos-2),i=e.doc.resolve(o).node();return!(!i||!n.includes(i.type.name))};var rp=(e,t)=>{let{$anchor:n}=t.selection,r=t.doc.resolve(n.pos-2);return!(r.index()===0||r.nodeBefore?.type.name!==e)};var op=(e,t,n)=>{if(!n)return!1;let r=b(e,t.schema),o=!1;return n.descendants(i=>{i.type===r&&(o=!0)}),o};var Kk=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(!Oe(e.state,t)&&np(e.state,t,n)){let{$anchor:a}=e.state.selection,l=e.state.doc.resolve(a.before()-1),u=[];l.node().descendants((d,h)=>{d.type.name===t&&u.push({node:d,pos:h})});let c=u.at(-1);if(!c)return!1;let m=e.state.doc.resolve(l.start()+c.pos+1);return e.chain().cut({from:a.start()-1,to:a.end()+1},m.end()).joinForward().run()}if(!Oe(e.state,t)||!Zc(e.state))return!1;let r=Zt(t,e.state);if(!r)return!1;let i=e.state.doc.resolve(r.$pos.pos-2).node(r.depth),s=op(t,e.state,i);return rp(t,e.state)&&!s?e.commands.joinItemBackward():e.chain().liftListItem(t).run()};var ip=(e,t)=>{let n=Ii(e,t),r=Zt(e,t);return!r||!n?!1:n>r.depth};var sp=(e,t)=>{let n=Ii(e,t),r=Zt(e,t);return!r||!n?!1:n<r.depth};var oT=(e,t)=>!Oe(e.state,t)||!Jc(e.state,t)?!1:ip(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():sp(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward();var sT=(e,t)=>{let{$anchor:n}=t.selection,r=t.doc.resolve(n.pos-n.parentOffset-2);return!(r.index()===r.parent.childCount-1||r.nodeAfter?.type.name!==e)};function ji(e,t,n){let o=e.state.doc.content.size,i=ze(t,0,o),s=ze(n,0,o),a=e.coordsAtPos(i),l=e.coordsAtPos(s,-1),u=Math.min(a.top,l.top),c=Math.max(a.bottom,l.bottom),m=Math.min(a.left,l.left),d=Math.max(a.right,l.right),h=d-m,v=c-u,g={top:u,bottom:c,left:m,right:d,width:h,height:v,x:m,y:u};return{...g,toJSON:()=>g}}function Ay(e,t,n){let{selection:r}=t,o=null;if(lr(r)&&(o=r.$cursor),o){let s=e.storedMarks??o.marks();return!!n.isInSet(s)||!s.some(a=>a.type.excludes(n))}let{ranges:i}=r;return i.some(({$from:s,$to:a})=>{let l=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,a.pos,(u,c,m)=>{if(l)return!1;if(u.isInline){let d=!m||m.type.allowsMarkType(n),h=!!n.isInSet(u.marks)||!u.marks.some(v=>v.type.excludes(n));l=d&&h}return!l}),l})}var Ly=(e,t={})=>({tr:n,state:r,dispatch:o})=>{let{selection:i}=n,{empty:s,ranges:a}=i,l=he(e,r.schema);if(o)if(s){let u=Li(r,l);n.addStoredMark(l.create({...u,...t}))}else a.forEach(u=>{let c=u.$from.pos,m=u.$to.pos;r.doc.nodesBetween(c,m,(d,h)=>{let v=Math.max(h,c),x=Math.min(h+d.nodeSize,m);d.marks.find(g=>g.type===l)?d.marks.forEach(g=>{l===g.type&&n.addMark(v,x,l.create({...g.attrs,...t}))}):n.addMark(v,x,l.create(t))})});return Ay(r,n,l)};var Dy=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0);import{setBlockType as ap}from"@tiptap/pm/commands";var by=(e,t={})=>({state:n,dispatch:r,chain:o})=>{let i=b(e,n.schema);return i.isTextblock?o().command(({commands:s})=>ap(i,t)(n)?!0:s.clearNodes()).command(({state:s})=>ap(i,t)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)};import{NodeSelection as Fy}from"@tiptap/pm/state";var Iy=e=>({tr:t,dispatch:n})=>{if(n){let{doc:r}=t,o=ze(e,0,r.content.size),i=Fy.create(r,o);t.setSelection(i)}return!0};import{TextSelection as Ia}from"@tiptap/pm/state";var jy=e=>({tr:t,dispatch:n})=>{if(n){let{doc:r}=t,{from:o,to:i}=typeof e=="number"?{from:e,to:e}:e,s=Ia.atStart(r).from,a=Ia.atEnd(r).to,l=ze(o,s,a),u=ze(i,s,a),c=Ia.create(r,l,u);t.setSelection(c)}return!0};import{sinkListItem as _y}from"@tiptap/pm/schema-list";var zy=e=>({state:t,dispatch:n})=>{let r=b(e,t.schema);return _y(r)(t,n)};import{NodeSelection as By,TextSelection as Vy}from"@tiptap/pm/state";import{canSplit as ja}from"@tiptap/pm/transform";function lp(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(o=>t?.includes(o.type.name));e.tr.ensureMarks(r)}}var Hy=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:o})=>{let{selection:i,doc:s}=t,{$from:a,$to:l}=i,u=o.extensionManager.attributes,c=dr(u,a.node().type.name,a.node().attrs);if(i instanceof By&&i.node.isBlock)return!a.parentOffset||!ja(s,a.pos)?!1:(r&&(e&&lp(n,o.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(r){let m=l.parentOffset===l.parent.content.size;i instanceof Vy&&t.deleteSelection();let d=a.depth===0?void 0:Wc(a.node(-1).contentMatchAt(a.indexAfter(-1))),h=m&&d?[{type:d,attrs:c}]:void 0,v=ja(t.doc,t.mapping.map(a.pos),1,h);if(!h&&!v&&ja(t.doc,t.mapping.map(a.pos),1,d?[{type:d}]:void 0)&&(v=!0,h=d?[{type:d,attrs:c}]:void 0),v&&(t.split(t.mapping.map(a.pos),1,h),d&&!m&&!a.parentOffset&&a.parent.type!==d)){let x=t.mapping.map(a.before()),C=t.doc.resolve(x);a.node(-1).canReplaceWith(C.index(),C.index()+1,d)&&t.setNodeMarkup(t.mapping.map(a.before()),d)}e&&lp(n,o.extensionManager.splittableMarks),t.scrollIntoView()}return!0};import{Fragment as _a,Slice as $y}from"@tiptap/pm/model";import{TextSelection as Uy}from"@tiptap/pm/state";import{canSplit as Wy}from"@tiptap/pm/transform";var Ky=e=>({tr:t,state:n,dispatch:r,editor:o})=>{let i=b(e,n.schema),{$from:s,$to:a}=n.selection,l=n.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(a))return!1;let u=s.node(-1);if(u.type!==i)return!1;let c=o.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==i||s.index(-2)!==s.node(-2).childCount-1)return!1;if(r){let x=_a.empty,C=s.index(-1)?1:s.index(-2)?2:3;for(let w=s.depth-C;w>=s.depth-3;w-=1)x=_a.from(s.node(w).copy(x));let g=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,f=dr(c,s.node().type.name,s.node().attrs),y=i.contentMatch.defaultType?.createAndFill(f)||void 0;x=x.append(_a.from(i.createAndFill(null,y)||void 0));let p=s.before(s.depth-(C-1));t.replace(p,s.after(-g),new $y(x,4-C,0));let E=-1;t.doc.nodesBetween(p,t.doc.content.size,(w,T)=>{if(E>-1)return!1;w.isTextblock&&w.content.size===0&&(E=T+1)}),E>-1&&t.setSelection(Uy.near(t.doc.resolve(E))),t.scrollIntoView()}return!0}let m=a.pos===s.end()?u.contentMatchAt(0).defaultType:null,d=dr(c,u.type.name,u.attrs),h=dr(c,s.node().type.name,s.node().attrs);t.delete(s.pos,a.pos);let v=m?[{type:i,attrs:d},{type:m,attrs:h}]:[{type:i,attrs:d}];if(!Wy(t.doc,s.pos,2))return!1;if(r){let{selection:x,storedMarks:C}=n,{splittableMarks:g}=o.extensionManager,f=C||x.$to.parentOffset&&x.$from.marks();if(t.split(s.pos,2,v).scrollIntoView(),!f||!r)return!0;let y=f.filter(p=>g.includes(p.type.name));t.ensureMarks(y)}return!0};import{canJoin as up}from"@tiptap/pm/transform";var za=(e,t)=>{let n=cr(s=>s.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let o=e.doc.nodeAt(r);return n.node.type===o?.type&&up(e.doc,n.pos)&&e.join(n.pos),!0},Ba=(e,t)=>{let n=cr(s=>s.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let o=e.doc.nodeAt(r);return n.node.type===o?.type&&up(e.doc,r)&&e.join(r),!0},qy=(e,t,n,r={})=>({editor:o,tr:i,state:s,dispatch:a,chain:l,commands:u,can:c})=>{let{extensions:m,splittableMarks:d}=o.extensionManager,h=b(e,s.schema),v=b(t,s.schema),{selection:x,storedMarks:C}=s,{$from:g,$to:f}=x,y=g.blockRange(f),p=C||x.$to.parentOffset&&x.$from.marks();if(!y)return!1;let E=cr(w=>Fa(w.type.name,m))(x);if(y.depth>=1&&E&&y.depth-E.depth<=1){if(E.node.type===h)return u.liftListItem(v);if(Fa(E.node.type.name,m)&&h.validContent(E.node.content)&&a)return l().command(()=>(i.setNodeMarkup(E.pos,h),!0)).command(()=>za(i,h)).command(()=>Ba(i,h)).run()}return!n||!p||!a?l().command(()=>c().wrapInList(h,r)?!0:u.clearNodes()).wrapInList(h,r).command(()=>za(i,h)).command(()=>Ba(i,h)).run():l().command(()=>{let w=c().wrapInList(h,r),T=p.filter(R=>d.includes(R.type.name));return i.ensureMarks(T),w?!0:u.clearNodes()}).wrapInList(h,r).command(()=>za(i,h)).command(()=>Ba(i,h)).run()};var Qy=(e,t={},n={})=>({state:r,commands:o})=>{let{extendEmptyMarkRange:i=!1}=n,s=he(e,r.schema);return oo(r,s,t)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,t)};var Gy=(e,t,n={})=>({state:r,commands:o})=>{let i=b(e,r.schema),s=b(t,r.schema);return Oe(r,i,n)?o.setNode(s):o.setNode(i,n)};var Yy=(e,t={})=>({state:n,commands:r})=>{let o=b(e,n.schema);return Oe(n,o,t)?r.lift(o):r.wrapIn(o,t)};var Xy=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let o=n[r],i;if(o.spec.isInputRules&&(i=o.getState(e))){if(t){let s=e.tr,a=i.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(i.text){let l=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,e.schema.text(i.text,l))}else s.delete(i.from,i.to)}return!0}}return!1};var Jy=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:o}=n;return r||t&&o.forEach(i=>{e.removeMark(i.$from.pos,i.$to.pos)}),!0};var Zy=(e,t={})=>({tr:n,state:r,dispatch:o})=>{let{extendEmptyMarkRange:i=!1}=t,{selection:s}=n,a=he(e,r.schema),{$from:l,empty:u,ranges:c}=s;if(!o)return!0;if(u&&i){let{from:m,to:d}=s,h=l.marks().find(x=>x.type===a)?.attrs,v=ar(l,a,h);v&&(m=v.from,d=v.to),n.removeMark(m,d,a)}else c.forEach(m=>{n.removeMark(m.$from.pos,m.$to.pos,a)});return n.removeStoredMark(a),!0};var ev=(e,t={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null,a=Jt(typeof e=="string"?e:e.name,r.schema);return a?(a==="node"&&(i=b(e,r.schema)),a==="mark"&&(s=he(e,r.schema)),o&&n.selection.ranges.forEach(l=>{let u=l.$from.pos,c=l.$to.pos;r.doc.nodesBetween(u,c,(m,d)=>{i&&i===m.type&&n.setNodeMarkup(d,void 0,{...m.attrs,...t}),s&&m.marks.length&&m.marks.forEach(h=>{if(s===h.type){let v=Math.max(d,u),x=Math.min(d+m.nodeSize,c);n.addMark(v,x,s.create({...h.attrs,...t}))}})})}),!0):!1};import{wrapIn as tv}from"@tiptap/pm/commands";var nv=(e,t={})=>({state:n,dispatch:r})=>{let o=b(e,n.schema);return tv(o,t)(n,r)};import{wrapInList as rv}from"@tiptap/pm/schema-list";var ov=(e,t={})=>({state:n,dispatch:r})=>{let o=b(e,n.schema);return rv(o,t)(n,r)};var cp=Me.create({name:"commands",addCommands(){return{...Va}}});import{Plugin as iv,PluginKey as sv}from"@tiptap/pm/state";var pp=Me.create({name:"editable",addProseMirrorPlugins(){return[new iv({key:new sv("editable"),props:{editable:()=>this.editor.options.editable}})]}});import{Plugin as av,PluginKey as lv}from"@tiptap/pm/state";var dp=Me.create({name:"focusEvents",addProseMirrorPlugins(){let{editor:e}=this;return[new av({key:new lv("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}});import{Plugin as uv,PluginKey as cv,Selection as Ha}from"@tiptap/pm/state";var fp=Me.create({name:"keymap",addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{let{selection:l,doc:u}=a,{empty:c,$anchor:m}=l,{pos:d,parent:h}=m,v=m.parent.isTextblock?a.doc.resolve(d-1):m,x=v.parent.type.spec.isolating,C=m.pos-m.parentOffset,g=x&&v.parent.childCount===1?C===m.pos:Ha.atStart(u).from===d;return!c||!g||!h.type.isTextblock||h.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Xt()||Oi()?i:o},addProseMirrorPlugins(){return[new uv({key:new cv("clearDocument"),appendTransaction:(e,t,n)=>{if(!(e.some(v=>v.docChanged)&&!t.doc.eq(n.doc)))return;let{empty:o,from:i,to:s}=t.selection,a=Ha.atStart(t.doc).from,l=Ha.atEnd(t.doc).to;if(o||!(i===a&&s===l)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;let m=n.tr,d=Qt({state:n,transaction:m}),{commands:h}=new wt({editor:this.editor,state:d});if(h.clearNodes(),!!m.steps.length)return m}})]}});import{Plugin as pv,PluginKey as dv}from"@tiptap/pm/state";var mp=Me.create({name:"tabindex",addProseMirrorPlugins(){return[new pv({key:new dv("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var gp=`.ProseMirror { | |
position: relative; | |
} | |
.ProseMirror { | |
word-wrap: break-word; | |
white-space: pre-wrap; | |
white-space: break-spaces; | |
-webkit-font-variant-ligatures: none; | |
font-variant-ligatures: none; | |
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ | |
} | |
.ProseMirror [contenteditable="false"] { | |
white-space: normal; | |
} | |
.ProseMirror [contenteditable="false"] [contenteditable="true"] { | |
white-space: pre-wrap; | |
} | |
.ProseMirror pre { | |
white-space: pre-wrap; | |
} | |
img.ProseMirror-separator { | |
display: inline !important; | |
border: none !important; | |
margin: 0 !important; | |
width: 1px !important; | |
height: 1px !important; | |
} | |
.ProseMirror-gapcursor { | |
display: none; | |
pointer-events: none; | |
position: absolute; | |
margin: 0; | |
} | |
.ProseMirror-gapcursor:after { | |
content: ""; | |
display: block; | |
position: absolute; | |
top: -2px; | |
width: 20px; | |
border-top: 1px solid black; | |
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; | |
} | |
@keyframes ProseMirror-cursor-blink { | |
to { | |
visibility: hidden; | |
} | |
} | |
.ProseMirror-hideselection *::selection { | |
background: transparent; | |
} | |
.ProseMirror-hideselection *::-moz-selection { | |
background: transparent; | |
} | |
.ProseMirror-hideselection * { | |
caret-color: transparent; | |
} | |
.ProseMirror-focused .ProseMirror-gapcursor { | |
display: block; | |
} | |
.tippy-box[data-animation=fade][data-state=hidden] { | |
opacity: 0 | |
}`;function hp(e,t,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;let o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}var zi=class extends Si{constructor(n={}){super();this.isFocused=!1;this.extensionStorage={};this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null};this.isCapturingTransaction=!1;this.capturedTransaction=null;this.setOptions(n),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=hp(gp,this.options.injectNonce))}setOptions(n={}){this.options={...this.options,...n},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(n,r=!0){this.setOptions({editable:n}),r&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(n,r){let o=Ci(r)?r(n,[...this.state.plugins]):[...this.state.plugins,n],i=this.state.reconfigure({plugins:o});this.view.updateState(i)}unregisterPlugin(n){if(this.isDestroyed)return;let r=typeof n=="string"?`${n}$`:n.key,o=this.state.reconfigure({plugins:this.state.plugins.filter(i=>!i.key.startsWith(r))});this.view.updateState(o)}createExtensionManager(){let r=[...this.options.enableCoreExtensions?Object.values(_i):[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o?.type));this.extensionManager=new ir(r,this)}createCommandManager(){this.commandManager=new wt({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let n=Ai(this.options.content,this.schema,this.options.parseOptions),r=Mi(n,this.options.autofocus);this.view=new mv(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:fv.create({doc:n,selection:r||void 0})});let o=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(o),this.createNodeViews(),this.prependClass();let i=this.view.dom;i.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(n){this.isCapturingTransaction=!0,n(),this.isCapturingTransaction=!1;let r=this.capturedTransaction;return this.capturedTransaction=null,r}dispatchTransaction(n){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=n;return}n.steps.forEach(a=>this.capturedTransaction?.step(a));return}let r=this.state.apply(n),o=!this.state.selection.eq(r.selection);this.view.updateState(r),this.emit("transaction",{editor:this,transaction:n}),o&&this.emit("selectionUpdate",{editor:this,transaction:n});let i=n.getMeta("focus"),s=n.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:n}),s&&this.emit("blur",{editor:this,event:s.event,transaction:n}),!(!n.docChanged||n.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:n})}getAttributes(n){return Qc(this.state,n)}isActive(n,r){let o=typeof n=="string"?n:null,i=typeof n=="string"?r:n;return Xc(this.state,o,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Di(this.state.doc.content,this.schema)}getText(n){let{blockSeparator:r=` | |
`,textSerializers:o={}}=n||{};return bi(this.state.doc,{blockSeparator:r,textSerializers:{...sr(this.schema),...o}})}get isEmpty(){return ep(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){return!this.view?.docView}};function dN(e){return new qe({find:e.find,handler:({state:t,range:n,match:r})=>{let o=A(e.getAttributes,void 0,r);if(o===!1||o===null)return null;let{tr:i}=t,s=r[r.length-1],a=r[0];if(s){let l=a.search(/\S/),u=n.from+a.indexOf(s),c=u+s.length;if(Fi(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(x=>x===e.type&&x!==h.mark.type)).filter(h=>h.to>u).length)return null;c<n.to&&i.delete(c,n.to),u>n.from&&i.delete(n.from+l,u);let d=n.from+l+s.length;i.addMark(n.from+l,d,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function yN(e){return new qe({find:e.find,handler:({state:t,range:n,match:r})=>{let o=A(e.getAttributes,void 0,r)||{},{tr:i}=t,s=n.from,a=n.to;if(r[1]){let l=r[0].lastIndexOf(r[1]),u=s+l;u>a?u=a:a=u+r[1].length;let c=r[0][r[0].length-1];i.insertText(c,s+r[0].length-1),i.replaceWith(u,a,e.type.create(o))}else r[0]&&i.replaceWith(s,a,e.type.create(o))}})}function EN(e){return new qe({find:e.find,handler:({state:t,range:n,match:r})=>{let o=t.doc.resolve(n.from),i=A(e.getAttributes,void 0,r)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,i)}})}function RN(e){return new qe({find:e.find,handler:({state:t,range:n,match:r})=>{let o=e.replace,i=n.from,s=n.to;if(r[1]){let a=r[0].lastIndexOf(r[1]);o+=r[0].slice(a+r[1].length),i+=a;let l=i-s;l>0&&(o=r[0].slice(a-l,a)+o,i=s)}t.tr.insertText(o,i,s)}})}import{canJoin as gv,findWrapping as hv}from"@tiptap/pm/transform";function LN(e){return new qe({find:e.find,handler:({state:t,range:n,match:r,chain:o})=>{let i=A(e.getAttributes,void 0,r)||{},s=t.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),u=l&&hv(l,e.type,i);if(!u)return null;if(s.wrap(l,u),e.keepMarks&&e.editor){let{selection:m,storedMarks:d}=t,{splittableMarks:h}=e.editor.extensionManager,v=d||m.$to.parentOffset&&m.$from.marks();if(v){let x=v.filter(C=>h.includes(C.type.name));s.ensureMarks(x)}}if(e.keepAttributes){let m=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(m,i).run()}let c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&gv(s.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,c))&&s.join(n.from-1)}})}var Ri=class e{constructor(t={}){this.type="mark";this.name="mark";this.parent=null;this.child=null;this.config={name:this.name,defaultOptions:{}};this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=A(N(this,"addOptions",{name:this.name}))),this.storage=A(N(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(t={}){let n=this.extend();return n.options=Pn(this.options,t),n.storage=A(N(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=A(N(n,"addOptions",{name:n.name})),n.storage=A(N(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){let{tr:r}=t.state,o=t.state.selection.$from;if(o.pos===o.end()){let s=o.marks();if(!!!s.find(u=>u?.type.name===n.name))return!1;let l=s.find(u=>u?.type.name===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",o.pos),t.view.dispatch(r),!0}return!1}};var yp=class e{constructor(t={}){this.type="node";this.name="node";this.parent=null;this.child=null;this.config={name:this.name,defaultOptions:{}};this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=A(N(this,"addOptions",{name:this.name}))),this.storage=A(N(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(t={}){let n=this.extend();return n.options=Pn(this.options,t),n.storage=A(N(n,"addStorage",{name:n.name,options:n.options})),n}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=A(N(n,"addOptions",{name:n.name})),n.storage=A(N(n,"addStorage",{name:n.name,options:n.options})),n}};import{NodeSelection as xp}from"@tiptap/pm/state";function vp(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}var Bi=class{constructor(t,n,r){this.isDragging=!1;this.component=t,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){let{view:n}=this.editor,r=t.target,o=r.nodeType===3?r.parentElement?.closest("[data-drag-handle]"):r.closest("[data-drag-handle]");if(!this.dom||this.contentDOM?.contains(r)||!o)return;let i=0,s=0;if(this.dom!==o){let u=this.dom.getBoundingClientRect(),c=o.getBoundingClientRect(),m=t.offsetX??t.nativeEvent?.offsetX,d=t.offsetY??t.nativeEvent?.offsetY;i=c.x-u.x+m,s=c.y-u.y+d}t.dataTransfer?.setDragImage(this.dom,i,s);let a=xp.create(n.state.doc,this.getPos()),l=n.state.tr.setSelection(a);n.dispatch(l)}stopEvent(t){if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});let n=t.target;if(!(this.dom.contains(n)&&!this.contentDOM?.contains(n)))return!1;let o=t.type.startsWith("drag"),i=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!i&&!o)return!0;let{isEditable:a}=this.editor,{isDragging:l}=this,u=!!this.node.type.spec.draggable,c=xp.isSelectable(this.node),m=t.type==="copy",d=t.type==="paste",h=t.type==="cut",v=t.type==="mousedown";if(!u&&c&&o&&t.preventDefault(),u&&o&&!l)return t.preventDefault(),!1;if(u&&a&&!l&&v){let x=n.closest("[data-drag-handle]");x&&(this.dom===x||this.dom.contains(x))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||i||m||d||h||v&&c)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(Xt()||vp())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:n})=>{let r=this.getPos();return n.setNodeMarkup(r,void 0,{...this.node.attrs,...t}),!0})}deleteNode(){let t=this.getPos(),n=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:n})}};function XN(e){return new Yt({find:e.find,handler:({state:t,range:n,match:r})=>{let o=A(e.getAttributes,void 0,r);if(o===!1||o===null)return null;let{tr:i}=t,s=r[r.length-1],a=r[0],l=n.to;if(s){let u=a.search(/\S/),c=n.from+a.indexOf(s),m=c+s.length;if(Fi(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(x=>x===e.type&&x!==h.mark.type)).filter(h=>h.to>c).length)return null;m<n.to&&i.delete(m,n.to),c>n.from&&i.delete(n.from+u,c),l=n.from+u+s.length,i.addMark(n.from+u,l,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function ZN(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function tM(e){return typeof e=="string"}function sM(e){return new Yt({find:e.find,handler({match:t,chain:n,range:r}){let o=A(e.getAttributes,void 0,t);if(o===!1||o===null)return null;t.input&&n().deleteRange(r).insertContentAt(r.from,{type:e.type.name,attrs:o})}})}function cM(e){return new Yt({find:e.find,handler:({state:t,range:n,match:r})=>{let o=e.replace,i=n.from,s=n.to;if(r[1]){let a=r[0].lastIndexOf(r[1]);o+=r[0].slice(a+r[1].length),i+=a;let l=i-s;l>0&&(o=r[0].slice(a-l,a)+o,i=s)}t.tr.insertText(o,i,s)}})}var wp=class{constructor(t){this.transaction=t,this.currentStep=this.transaction.steps.length}map(t){let n=!1;return{position:this.transaction.steps.slice(this.currentStep).reduce((o,i)=>{let s=i.getMap().mapResult(o);return s.deleted&&(n=!0),s.pos},t),deleted:n}}};import{Plugin as wx,PluginKey as Sx}from"@tiptap/pm/state";var X="top",oe="bottom",te="right",Z="left",Vi="auto",en=[X,oe,te,Z],Dt="start",Mn="end",Sp="clippingParents",Hi="viewport",fr="popper",Ep="reference",$a=en.reduce(function(e,t){return e.concat([t+"-"+Dt,t+"-"+Mn])},[]),$i=[].concat(en,[Vi]).reduce(function(e,t){return e.concat([t,t+"-"+Dt,t+"-"+Mn])},[]),yv="beforeRead",vv="read",xv="afterRead",wv="beforeMain",Sv="main",Ev="afterMain",Cv="beforeWrite",kv="write",Tv="afterWrite",Cp=[yv,vv,xv,wv,Sv,Ev,Cv,kv,Tv];function ae(e){return e?(e.nodeName||"").toLowerCase():null}function K(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qe(e){var t=K(e).Element;return e instanceof t||e instanceof Element}function ie(e){var t=K(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mr(e){if(typeof ShadowRoot>"u")return!1;var t=K(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Rv(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!ie(i)||!ae(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Pv(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!ie(o)||!ae(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var io={name:"applyStyles",enabled:!0,phase:"write",fn:Rv,effect:Pv,requires:["computeStyles"]};function le(e){return e.split("-")[0]}var ut=Math.max,On=Math.min,bt=Math.round;function gr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function so(){return!/^((?!chrome|android).)*safari/i.test(gr())}function Ge(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&ie(e)&&(o=e.offsetWidth>0&&bt(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&bt(r.height)/e.offsetHeight||1);var s=Qe(e)?K(e):window,a=s.visualViewport,l=!so()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,m=r.width/o,d=r.height/i;return{width:m,height:d,top:c,right:u+m,bottom:c+d,left:u,x:u,y:c}}function An(e){var t=Ge(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ao(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mr(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ke(e){return K(e).getComputedStyle(e)}function Ua(e){return["table","td","th"].indexOf(ae(e))>=0}function pe(e){return((Qe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ft(e){return ae(e)==="html"?e:e.assignedSlot||e.parentNode||(mr(e)?e.host:null)||pe(e)}function kp(e){return!ie(e)||ke(e).position==="fixed"?null:e.offsetParent}function Nv(e){var t=/firefox/i.test(gr()),n=/Trident/i.test(gr());if(n&&ie(e)){var r=ke(e);if(r.position==="fixed")return null}var o=Ft(e);for(mr(o)&&(o=o.host);ie(o)&&["html","body"].indexOf(ae(o))<0;){var i=ke(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ct(e){for(var t=K(e),n=kp(e);n&&Ua(n)&&ke(n).position==="static";)n=kp(n);return n&&(ae(n)==="html"||ae(n)==="body"&&ke(n).position==="static")?t:n||Nv(e)||t}function Ln(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dn(e,t,n){return ut(e,On(t,n))}function Tp(e,t,n){var r=Dn(e,t,n);return r>n?n:r}function lo(){return{top:0,right:0,bottom:0,left:0}}function uo(e){return Object.assign({},lo(),e)}function co(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Mv=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uo(typeof t!="number"?t:co(t,en))};function Ov(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=le(n.placement),l=Ln(a),u=[Z,te].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var m=Mv(o.padding,n),d=An(i),h=l==="y"?X:Z,v=l==="y"?oe:te,x=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],C=s[l]-n.rects.reference[l],g=ct(i),f=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,y=x/2-C/2,p=m[h],E=f-d[c]-m[v],w=f/2-d[c]/2+y,T=Dn(p,w,E),R=l;n.modifiersData[r]=(t={},t[R]=T,t.centerOffset=T-w,t)}}function Av(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ao(t.elements.popper,o)&&(t.elements.arrow=o))}var Rp={name:"arrow",enabled:!0,phase:"main",fn:Ov,effect:Av,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ye(e){return e.split("-")[1]}var Lv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Dv(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:bt(n*o)/o||0,y:bt(r*o)/o||0}}function Pp(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,m=e.isFixed,d=s.x,h=d===void 0?0:d,v=s.y,x=v===void 0?0:v,C=typeof c=="function"?c({x:h,y:x}):{x:h,y:x};h=C.x,x=C.y;var g=s.hasOwnProperty("x"),f=s.hasOwnProperty("y"),y=Z,p=X,E=window;if(u){var w=ct(n),T="clientHeight",R="clientWidth";if(w===K(n)&&(w=pe(n),ke(w).position!=="static"&&a==="absolute"&&(T="scrollHeight",R="scrollWidth")),w=w,o===X||(o===Z||o===te)&&i===Mn){p=oe;var D=m&&w===E&&E.visualViewport?E.visualViewport.height:w[T];x-=D-r.height,x*=l?1:-1}if(o===Z||(o===X||o===oe)&&i===Mn){y=te;var O=m&&w===E&&E.visualViewport?E.visualViewport.width:w[R];h-=O-r.width,h*=l?1:-1}}var B=Object.assign({position:a},u&&Lv),W=c===!0?Dv({x:h,y:x},K(n)):{x:h,y:x};if(h=W.x,x=W.y,l){var Q;return Object.assign({},B,(Q={},Q[p]=f?"0":"",Q[y]=g?"0":"",Q.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+x+"px)":"translate3d("+h+"px, "+x+"px, 0)",Q))}return Object.assign({},B,(t={},t[p]=f?x+"px":"",t[y]=g?h+"px":"",t.transform="",t))}function bv(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:le(t.placement),variation:Ye(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Pp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Pp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Np={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bv,data:{}};var Ui={passive:!0};function Fv(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=K(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ui)}),a&&l.addEventListener("resize",n.update,Ui),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ui)}),a&&l.removeEventListener("resize",n.update,Ui)}}var Mp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fv,data:{}};var Iv={left:"right",right:"left",bottom:"top",top:"bottom"};function hr(e){return e.replace(/left|right|bottom|top/g,function(t){return Iv[t]})}var jv={start:"end",end:"start"};function Wi(e){return e.replace(/start|end/g,function(t){return jv[t]})}function bn(e){var t=K(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Fn(e){return Ge(pe(e)).left+bn(e).scrollLeft}function Wa(e,t){var n=K(e),r=pe(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=so();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Fn(e),y:l}}function Ka(e){var t,n=pe(e),r=bn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ut(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ut(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Fn(e),l=-r.scrollTop;return ke(o||n).direction==="rtl"&&(a+=ut(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function In(e){var t=ke(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ki(e){return["html","body","#document"].indexOf(ae(e))>=0?e.ownerDocument.body:ie(e)&&In(e)?e:Ki(Ft(e))}function tn(e,t){var n;t===void 0&&(t=[]);var r=Ki(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=K(r),s=o?[i].concat(i.visualViewport||[],In(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(tn(Ft(s)))}function yr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _v(e,t){var n=Ge(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Op(e,t,n){return t===Hi?yr(Wa(e,n)):Qe(t)?_v(t,n):yr(Ka(pe(e)))}function zv(e){var t=tn(Ft(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0,r=n&&ie(e)?ct(e):e;return Qe(r)?t.filter(function(o){return Qe(o)&&ao(o,r)&&ae(o)!=="body"}):[]}function qa(e,t,n,r){var o=t==="clippingParents"?zv(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Op(e,u,r);return l.top=ut(c.top,l.top),l.right=On(c.right,l.right),l.bottom=On(c.bottom,l.bottom),l.left=ut(c.left,l.left),l},Op(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function po(e){var t=e.reference,n=e.element,r=e.placement,o=r?le(r):null,i=r?Ye(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case X:l={x:s,y:t.y-n.height};break;case oe:l={x:s,y:t.y+t.height};break;case te:l={x:t.x+t.width,y:a};break;case Z:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Ln(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Dt:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Mn:l[u]=l[u]+(t[c]/2-n[c]/2);break;default:}}return l}function pt(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?Sp:a,u=n.rootBoundary,c=u===void 0?Hi:u,m=n.elementContext,d=m===void 0?fr:m,h=n.altBoundary,v=h===void 0?!1:h,x=n.padding,C=x===void 0?0:x,g=uo(typeof C!="number"?C:co(C,en)),f=d===fr?Ep:fr,y=e.rects.popper,p=e.elements[v?f:d],E=qa(Qe(p)?p:p.contextElement||pe(e.elements.popper),l,c,s),w=Ge(e.elements.reference),T=po({reference:w,element:y,strategy:"absolute",placement:o}),R=yr(Object.assign({},y,T)),D=d===fr?R:w,O={top:E.top-D.top+g.top,bottom:D.bottom-E.bottom+g.bottom,left:E.left-D.left+g.left,right:D.right-E.right+g.right},B=e.modifiersData.offset;if(d===fr&&B){var W=B[o];Object.keys(O).forEach(function(Q){var je=[te,oe].indexOf(Q)>=0?1:-1,_e=[X,oe].indexOf(Q)>=0?"y":"x";O[Q]+=W[_e]*je})}return O}function Qa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?$i:l,c=Ye(r),m=c?a?$a:$a.filter(function(v){return Ye(v)===c}):en,d=m.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=m);var h=d.reduce(function(v,x){return v[x]=pt(e,{placement:x,boundary:o,rootBoundary:i,padding:s})[le(x)],v},{});return Object.keys(h).sort(function(v,x){return h[v]-h[x]})}function Bv(e){if(le(e)===Vi)return[];var t=hr(e);return[Wi(e),t,Wi(t)]}function Vv(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,m=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,x=n.allowedAutoPlacements,C=t.options.placement,g=le(C),f=g===C,y=l||(f||!v?[hr(C)]:Bv(C)),p=[C].concat(y).reduce(function(Mt,at){return Mt.concat(le(at)===Vi?Qa(t,{placement:at,boundary:c,rootBoundary:m,padding:u,flipVariations:v,allowedAutoPlacements:x}):at)},[]),E=t.rects.reference,w=t.rects.popper,T=new Map,R=!0,D=p[0],O=0;O<p.length;O++){var B=p[O],W=le(B),Q=Ye(B)===Dt,je=[X,oe].indexOf(W)>=0,_e=je?"width":"height",me=pt(t,{placement:B,boundary:c,rootBoundary:m,altBoundary:d,padding:u}),ge=je?Q?te:Z:Q?oe:X;E[_e]>w[_e]&&(ge=hr(ge));var ce=hr(ge),yt=[];if(i&&yt.push(me[W]<=0),a&&yt.push(me[ge]<=0,me[ce]<=0),yt.every(function(Mt){return Mt})){D=B,R=!1;break}T.set(B,yt)}if(R)for(var vt=v?3:1,Cn=function(at){var Ot=p.find(function(Jn){var At=T.get(Jn);if(At)return At.slice(0,at).every(function(Zn){return Zn})});if(Ot)return D=Ot,"break"},xt=vt;xt>0;xt--){var kn=Cn(xt);if(kn==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}var Ap={name:"flip",enabled:!0,phase:"main",fn:Vv,requiresIfExists:["offset"],data:{_skip:!1}};function Lp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Dp(e){return[X,te,oe,Z].some(function(t){return e[t]>=0})}function Hv(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=pt(t,{elementContext:"reference"}),a=pt(t,{altBoundary:!0}),l=Lp(s,r),u=Lp(a,o,i),c=Dp(l),m=Dp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":m})}var bp={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Hv};function $v(e,t,n){var r=le(e),o=[Z,X].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Z,te].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Uv(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=$i.reduce(function(c,m){return c[m]=$v(m,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}var Fp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Uv};function Wv(e){var t=e.state,n=e.name;t.modifiersData[n]=po({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Ip={name:"popperOffsets",enabled:!0,phase:"read",fn:Wv,data:{}};function Ga(e){return e==="x"?"y":"x"}function Kv(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,m=n.padding,d=n.tether,h=d===void 0?!0:d,v=n.tetherOffset,x=v===void 0?0:v,C=pt(t,{boundary:l,rootBoundary:u,padding:m,altBoundary:c}),g=le(t.placement),f=Ye(t.placement),y=!f,p=Ln(g),E=Ga(p),w=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,D=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,O=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(w){if(i){var Q,je=p==="y"?X:Z,_e=p==="y"?oe:te,me=p==="y"?"height":"width",ge=w[p],ce=ge+C[je],yt=ge-C[_e],vt=h?-R[me]/2:0,Cn=f===Dt?T[me]:R[me],xt=f===Dt?-R[me]:-T[me],kn=t.elements.arrow,Mt=h&&kn?An(kn):{width:0,height:0},at=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:lo(),Ot=at[je],Jn=at[_e],At=Dn(0,T[me],Mt[me]),Zn=y?T[me]/2-vt-At-Ot-O.mainAxis:Cn-At-Ot-O.mainAxis,Kt=y?-T[me]/2+vt+At+Jn+O.mainAxis:xt+At+Jn+O.mainAxis,er=t.elements.arrow&&ct(t.elements.arrow),ci=er?p==="y"?er.clientTop||0:er.clientLeft||0:0,Xr=(Q=B?.[p])!=null?Q:0,pi=ge+Zn-Xr-ci,di=ge+Kt-Xr,Jr=Dn(h?On(ce,pi):ce,ge,h?ut(yt,di):yt);w[p]=Jr,W[p]=Jr-ge}if(a){var Zr,fi=p==="x"?X:Z,mi=p==="x"?oe:te,Lt=w[E],qt=E==="y"?"height":"width",eo=Lt+C[fi],Tn=Lt-C[mi],to=[X,Z].indexOf(g)!==-1,gi=(Zr=B?.[E])!=null?Zr:0,hi=to?eo:Lt-T[qt]-R[qt]-gi+O.altAxis,yi=to?Lt+T[qt]+R[qt]-gi-O.altAxis:Tn,vi=h&&to?Tp(hi,Lt,yi):Dn(h?hi:eo,Lt,h?yi:Tn);w[E]=vi,W[E]=vi-Lt}t.modifiersData[r]=W}}var jp={name:"preventOverflow",enabled:!0,phase:"main",fn:Kv,requiresIfExists:["offset"]};function Ya(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xa(e){return e===K(e)||!ie(e)?bn(e):Ya(e)}function qv(e){var t=e.getBoundingClientRect(),n=bt(t.width)/e.offsetWidth||1,r=bt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Ja(e,t,n){n===void 0&&(n=!1);var r=ie(t),o=ie(t)&&qv(t),i=pe(t),s=Ge(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ae(t)!=="body"||In(i))&&(a=Xa(t)),ie(t)?(l=Ge(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Fn(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Qv(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Za(e){var t=Qv(e);return Cp.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function el(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function tl(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _p={placement:"bottom",modifiers:[],strategy:"absolute"};function zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Bp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?_p:o;return function(a,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},m=[],d=!1,h={state:c,setOptions:function(g){var f=typeof g=="function"?g(c.options):g;x(),c.options=Object.assign({},i,c.options,f),c.scrollParents={reference:Qe(a)?tn(a):a.contextElement?tn(a.contextElement):[],popper:tn(l)};var y=Za(tl([].concat(r,c.options.modifiers)));return c.orderedModifiers=y.filter(function(p){return p.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var g=c.elements,f=g.reference,y=g.popper;if(zp(f,y)){c.rects={reference:Ja(f,ct(y),c.options.strategy==="fixed"),popper:An(y)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var p=0;p<c.orderedModifiers.length;p++){if(c.reset===!0){c.reset=!1,p=-1;continue}var E=c.orderedModifiers[p],w=E.fn,T=E.options,R=T===void 0?{}:T,D=E.name;typeof w=="function"&&(c=w({state:c,options:R,name:D,instance:h})||c)}}}},update:el(function(){return new Promise(function(C){h.forceUpdate(),C(c)})}),destroy:function(){x(),d=!0}};if(!zp(a,l))return h;h.setOptions(u).then(function(C){!d&&u.onFirstUpdate&&u.onFirstUpdate(C)});function v(){c.orderedModifiers.forEach(function(C){var g=C.name,f=C.options,y=f===void 0?{}:f,p=C.effect;if(typeof p=="function"){var E=p({state:c,name:g,instance:h,options:y}),w=function(){};m.push(E||w)}})}function x(){m.forEach(function(C){return C()}),m=[]}return h}}var Gv=[Mp,Ip,Np,io,Fp,Ap,jp,Rp,bp],nl=Bp({defaultModifiers:Gv});var Yv="tippy-box",Yp="tippy-content",Xv="tippy-backdrop",Xp="tippy-arrow",Jp="tippy-svg-arrow",jn={passive:!0,capture:!0},Zp=function(){return document.body};function rl(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function ul(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function ed(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Vp(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Jv(e){return e.split(/\s+/).filter(Boolean)}function vr(e){return[].concat(e)}function Hp(e,t){e.indexOf(t)===-1&&e.push(t)}function Zv(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function ex(e){return e.split("-")[0]}function Qi(e){return[].slice.call(e)}function $p(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function fo(){return document.createElement("div")}function Gi(e){return["Element","Fragment"].some(function(t){return ul(e,t)})}function tx(e){return ul(e,"NodeList")}function nx(e){return ul(e,"MouseEvent")}function rx(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ox(e){return Gi(e)?[e]:tx(e)?Qi(e):Array.isArray(e)?e:Qi(document.querySelectorAll(e))}function ol(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Up(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function ix(e){var t,n=vr(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function sx(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var i=o.popperRect,s=o.popperState,a=o.props,l=a.interactiveBorder,u=ex(s.placement),c=s.modifiersData.offset;if(!c)return!0;var m=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,v=u==="left"?c.right.x:0,x=i.top-r+m>l,C=r-i.bottom-d>l,g=i.left-n+h>l,f=n-i.right-v>l;return x||C||g||f})}function il(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Wp(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var St={isTouch:!1},Kp=0;function ax(){St.isTouch||(St.isTouch=!0,window.performance&&document.addEventListener("mousemove",td))}function td(){var e=performance.now();e-Kp<20&&(St.isTouch=!1,document.removeEventListener("mousemove",td)),Kp=e}function lx(){var e=document.activeElement;if(rx(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function ux(){document.addEventListener("touchstart",ax,jn),window.addEventListener("blur",lx)}var cx=typeof window<"u"&&typeof document<"u",px=cx?!!window.msCrypto:!1;var dx={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},fx={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},dt=Object.assign({appendTo:Zp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},dx,fx),mx=Object.keys(dt),gx=function(t){var n=Object.keys(t);n.forEach(function(r){dt[r]=t[r]})};function nd(e){var t=e.plugins||[],n=t.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var a;r[i]=e[i]!==void 0?e[i]:(a=dt[i])!=null?a:s}return r},{});return Object.assign({},e,n)}function hx(e,t){var n=t?Object.keys(nd(Object.assign({},dt,{plugins:t}))):mx,r=n.reduce(function(o,i){var s=(e.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function qp(e,t){var n=Object.assign({},t,{content:ed(t.content,[e])},t.ignoreAttributes?{}:hx(e,t.plugins));return n.aria=Object.assign({},dt.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var yx=function(){return"innerHTML"};function al(e,t){e[yx()]=t}function Qp(e){var t=fo();return e===!0?t.className=Xp:(t.className=Jp,Gi(e)?t.appendChild(e):al(t,e)),t}function Gp(e,t){Gi(t.content)?(al(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?al(e,t.content):e.textContent=t.content)}function ll(e){var t=e.firstElementChild,n=Qi(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Yp)}),arrow:n.find(function(r){return r.classList.contains(Xp)||r.classList.contains(Jp)}),backdrop:n.find(function(r){return r.classList.contains(Xv)})}}function rd(e){var t=fo(),n=fo();n.className=Yv,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=fo();r.className=Yp,r.setAttribute("data-state","hidden"),Gp(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(i,s){var a=ll(t),l=a.box,u=a.content,c=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Gp(u,e.props),s.arrow?c?i.arrow!==s.arrow&&(l.removeChild(c),l.appendChild(Qp(s.arrow))):l.appendChild(Qp(s.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:o}}rd.$$tippy=!0;var vx=1,qi=[],sl=[];function xx(e,t){var n=qp(e,Object.assign({},dt,nd($p(t)))),r,o,i,s=!1,a=!1,l=!1,u=!1,c,m,d,h=[],v=Vp(pi,n.interactiveDebounce),x,C=vx++,g=null,f=Zv(n.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},p={id:C,reference:e,popper:fo(),popperInstance:g,props:n,state:y,plugins:f,clearDelayTimeouts:hi,setProps:yi,setContent:vi,show:Vg,hide:Hg,hideWithInteractivity:$g,enable:to,disable:gi,unmount:Ug,destroy:Wg};if(!n.render)return p;var E=n.render(p),w=E.popper,T=E.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+p.id,p.popper=w,e._tippy=p,w._tippy=p;var R=f.map(function(S){return S.fn(p)}),D=e.hasAttribute("aria-expanded");return er(),vt(),ge(),ce("onCreate",[p]),n.showOnCreate&&eo(),w.addEventListener("mouseenter",function(){p.props.interactive&&p.state.isVisible&&p.clearDelayTimeouts()}),w.addEventListener("mouseleave",function(){p.props.interactive&&p.props.trigger.indexOf("mouseenter")>=0&&je().addEventListener("mousemove",v)}),p;function O(){var S=p.props.touch;return Array.isArray(S)?S:[S,0]}function B(){return O()[0]==="hold"}function W(){var S;return!!((S=p.props.render)!=null&&S.$$tippy)}function Q(){return x||e}function je(){var S=Q().parentNode;return S?ix(S):document}function _e(){return ll(w)}function me(S){return p.state.isMounted&&!p.state.isVisible||St.isTouch||c&&c.type==="focus"?0:rl(p.props.delay,S?0:1,dt.delay)}function ge(S){S===void 0&&(S=!1),w.style.pointerEvents=p.props.interactive&&!S?"":"none",w.style.zIndex=""+p.props.zIndex}function ce(S,M,L){if(L===void 0&&(L=!0),R.forEach(function(j){j[S]&&j[S].apply(j,M)}),L){var _;(_=p.props)[S].apply(_,M)}}function yt(){var S=p.props.aria;if(S.content){var M="aria-"+S.content,L=w.id,_=vr(p.props.triggerTarget||e);_.forEach(function(j){var Ce=j.getAttribute(M);if(p.state.isVisible)j.setAttribute(M,Ce?Ce+" "+L:L);else{var Ke=Ce&&Ce.replace(L,"").trim();Ke?j.setAttribute(M,Ke):j.removeAttribute(M)}})}}function vt(){if(!(D||!p.props.aria.expanded)){var S=vr(p.props.triggerTarget||e);S.forEach(function(M){p.props.interactive?M.setAttribute("aria-expanded",p.state.isVisible&&M===Q()?"true":"false"):M.removeAttribute("aria-expanded")})}}function Cn(){je().removeEventListener("mousemove",v),qi=qi.filter(function(S){return S!==v})}function xt(S){if(!(St.isTouch&&(l||S.type==="mousedown"))){var M=S.composedPath&&S.composedPath()[0]||S.target;if(!(p.props.interactive&&Wp(w,M))){if(vr(p.props.triggerTarget||e).some(function(L){return Wp(L,M)})){if(St.isTouch||p.state.isVisible&&p.props.trigger.indexOf("click")>=0)return}else ce("onClickOutside",[p,S]);p.props.hideOnClick===!0&&(p.clearDelayTimeouts(),p.hide(),a=!0,setTimeout(function(){a=!1}),p.state.isMounted||Ot())}}}function kn(){l=!0}function Mt(){l=!1}function at(){var S=je();S.addEventListener("mousedown",xt,!0),S.addEventListener("touchend",xt,jn),S.addEventListener("touchstart",Mt,jn),S.addEventListener("touchmove",kn,jn)}function Ot(){var S=je();S.removeEventListener("mousedown",xt,!0),S.removeEventListener("touchend",xt,jn),S.removeEventListener("touchstart",Mt,jn),S.removeEventListener("touchmove",kn,jn)}function Jn(S,M){Zn(S,function(){!p.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&M()})}function At(S,M){Zn(S,M)}function Zn(S,M){var L=_e().box;function _(j){j.target===L&&(il(L,"remove",_),M())}if(S===0)return M();il(L,"remove",m),il(L,"add",_),m=_}function Kt(S,M,L){L===void 0&&(L=!1);var _=vr(p.props.triggerTarget||e);_.forEach(function(j){j.addEventListener(S,M,L),h.push({node:j,eventType:S,handler:M,options:L})})}function er(){B()&&(Kt("touchstart",Xr,{passive:!0}),Kt("touchend",di,{passive:!0})),Jv(p.props.trigger).forEach(function(S){if(S!=="manual")switch(Kt(S,Xr),S){case"mouseenter":Kt("mouseleave",di);break;case"focus":Kt(px?"focusout":"blur",Jr);break;case"focusin":Kt("focusout",Jr);break}})}function ci(){h.forEach(function(S){var M=S.node,L=S.eventType,_=S.handler,j=S.options;M.removeEventListener(L,_,j)}),h=[]}function Xr(S){var M,L=!1;if(!(!p.state.isEnabled||Zr(S)||a)){var _=((M=c)==null?void 0:M.type)==="focus";c=S,x=S.currentTarget,vt(),!p.state.isVisible&&nx(S)&&qi.forEach(function(j){return j(S)}),S.type==="click"&&(p.props.trigger.indexOf("mouseenter")<0||s)&&p.props.hideOnClick!==!1&&p.state.isVisible?L=!0:eo(S),S.type==="click"&&(s=!L),L&&!_&&Tn(S)}}function pi(S){var M=S.target,L=Q().contains(M)||w.contains(M);if(!(S.type==="mousemove"&&L)){var _=qt().concat(w).map(function(j){var Ce,Ke=j._tippy,tr=(Ce=Ke.popperInstance)==null?void 0:Ce.state;return tr?{popperRect:j.getBoundingClientRect(),popperState:tr,props:n}:null}).filter(Boolean);sx(_,S)&&(Cn(),Tn(S))}}function di(S){var M=Zr(S)||p.props.trigger.indexOf("click")>=0&&s;if(!M){if(p.props.interactive){p.hideWithInteractivity(S);return}Tn(S)}}function Jr(S){p.props.trigger.indexOf("focusin")<0&&S.target!==Q()||p.props.interactive&&S.relatedTarget&&w.contains(S.relatedTarget)||Tn(S)}function Zr(S){return St.isTouch?B()!==S.type.indexOf("touch")>=0:!1}function fi(){mi();var S=p.props,M=S.popperOptions,L=S.placement,_=S.offset,j=S.getReferenceClientRect,Ce=S.moveTransition,Ke=W()?ll(w).arrow:null,tr=j?{getBoundingClientRect:j,contextElement:j.contextElement||Q()}:e,Oc={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(xi){var nr=xi.state;if(W()){var Kg=_e(),Na=Kg.box;["placement","reference-hidden","escaped"].forEach(function(wi){wi==="placement"?Na.setAttribute("data-placement",nr.placement):nr.attributes.popper["data-popper-"+wi]?Na.setAttribute("data-"+wi,""):Na.removeAttribute("data-"+wi)}),nr.attributes.popper={}}}},Rn=[{name:"offset",options:{offset:_}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ce}},Oc];W()&&Ke&&Rn.push({name:"arrow",options:{element:Ke,padding:3}}),Rn.push.apply(Rn,M?.modifiers||[]),p.popperInstance=nl(tr,w,Object.assign({},M,{placement:L,onFirstUpdate:d,modifiers:Rn}))}function mi(){p.popperInstance&&(p.popperInstance.destroy(),p.popperInstance=null)}function Lt(){var S=p.props.appendTo,M,L=Q();p.props.interactive&&S===Zp||S==="parent"?M=L.parentNode:M=ed(S,[L]),M.contains(w)||M.appendChild(w),p.state.isMounted=!0,fi()}function qt(){return Qi(w.querySelectorAll("[data-tippy-root]"))}function eo(S){p.clearDelayTimeouts(),S&&ce("onTrigger",[p,S]),at();var M=me(!0),L=O(),_=L[0],j=L[1];St.isTouch&&_==="hold"&&j&&(M=j),M?r=setTimeout(function(){p.show()},M):p.show()}function Tn(S){if(p.clearDelayTimeouts(),ce("onUntrigger",[p,S]),!p.state.isVisible){Ot();return}if(!(p.props.trigger.indexOf("mouseenter")>=0&&p.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(S.type)>=0&&s)){var M=me(!1);M?o=setTimeout(function(){p.state.isVisible&&p.hide()},M):i=requestAnimationFrame(function(){p.hide()})}}function to(){p.state.isEnabled=!0}function gi(){p.hide(),p.state.isEnabled=!1}function hi(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function yi(S){if(!p.state.isDestroyed){ce("onBeforeUpdate",[p,S]),ci();var M=p.props,L=qp(e,Object.assign({},M,$p(S),{ignoreAttributes:!0}));p.props=L,er(),M.interactiveDebounce!==L.interactiveDebounce&&(Cn(),v=Vp(pi,L.interactiveDebounce)),M.triggerTarget&&!L.triggerTarget?vr(M.triggerTarget).forEach(function(_){_.removeAttribute("aria-expanded")}):L.triggerTarget&&e.removeAttribute("aria-expanded"),vt(),ge(),T&&T(M,L),p.popperInstance&&(fi(),qt().forEach(function(_){requestAnimationFrame(_._tippy.popperInstance.forceUpdate)})),ce("onAfterUpdate",[p,S])}}function vi(S){p.setProps({content:S})}function Vg(){var S=p.state.isVisible,M=p.state.isDestroyed,L=!p.state.isEnabled,_=St.isTouch&&!p.props.touch,j=rl(p.props.duration,0,dt.duration);if(!(S||M||L||_)&&!Q().hasAttribute("disabled")&&(ce("onShow",[p],!1),p.props.onShow(p)!==!1)){if(p.state.isVisible=!0,W()&&(w.style.visibility="visible"),ge(),at(),p.state.isMounted||(w.style.transition="none"),W()){var Ce=_e(),Ke=Ce.box,tr=Ce.content;ol([Ke,tr],0)}d=function(){var Rn;if(!(!p.state.isVisible||u)){if(u=!0,w.offsetHeight,w.style.transition=p.props.moveTransition,W()&&p.props.animation){var Pa=_e(),xi=Pa.box,nr=Pa.content;ol([xi,nr],j),Up([xi,nr],"visible")}yt(),vt(),Hp(sl,p),(Rn=p.popperInstance)==null||Rn.forceUpdate(),ce("onMount",[p]),p.props.animation&&W()&&At(j,function(){p.state.isShown=!0,ce("onShown",[p])})}},Lt()}}function Hg(){var S=!p.state.isVisible,M=p.state.isDestroyed,L=!p.state.isEnabled,_=rl(p.props.duration,1,dt.duration);if(!(S||M||L)&&(ce("onHide",[p],!1),p.props.onHide(p)!==!1)){if(p.state.isVisible=!1,p.state.isShown=!1,u=!1,s=!1,W()&&(w.style.visibility="hidden"),Cn(),Ot(),ge(!0),W()){var j=_e(),Ce=j.box,Ke=j.content;p.props.animation&&(ol([Ce,Ke],_),Up([Ce,Ke],"hidden"))}yt(),vt(),p.props.animation?W()&&Jn(_,p.unmount):p.unmount()}}function $g(S){je().addEventListener("mousemove",v),Hp(qi,v),v(S)}function Ug(){p.state.isVisible&&p.hide(),p.state.isMounted&&(mi(),qt().forEach(function(S){S._tippy.unmount()}),w.parentNode&&w.parentNode.removeChild(w),sl=sl.filter(function(S){return S!==p}),p.state.isMounted=!1,ce("onHidden",[p]))}function Wg(){p.state.isDestroyed||(p.clearDelayTimeouts(),p.unmount(),ci(),delete e._tippy,p.state.isDestroyed=!0,ce("onDestroy",[p]))}}function mo(e,t){t===void 0&&(t={});var n=dt.plugins.concat(t.plugins||[]);ux();var r=Object.assign({},t,{plugins:n}),o=ox(e);if(!1)var i,s;var a=o.reduce(function(l,u){var c=u&&xx(u,r);return c&&l.push(c),l},[]);return Gi(e)?a[0]:a}mo.defaultProps=dt;mo.setDefaultProps=gx;mo.currentInput=St;var kD=Object.assign({},io,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});mo.setDefaultProps({render:rd});var Yi=mo;var cl=class{constructor({editor:t,element:n,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1;this.shouldShow=({view:t,state:n,from:r,to:o})=>{let{doc:i,selection:s}=n,{empty:a}=s,l=!i.textBetween(r,o).length&&lr(n.selection),u=this.element.contains(document.activeElement);return!(!(t.hasFocus()||u)||a||l||!this.editor.isEditable)};this.mousedownHandler=()=>{this.preventHide=!0};this.dragstartHandler=()=>{this.hide()};this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))};this.blurHandler=({event:t})=>{if(this.preventHide){this.preventHide=!1;return}t?.relatedTarget&&this.element.parentNode?.contains(t.relatedTarget)||this.hide()};this.tippyBlurHandler=t=>{this.blurHandler({event:t})};this.handleDebouncedUpdate=(t,n)=>{let r=!n?.selection.eq(t.state.selection),o=!n?.doc.eq(t.state.doc);!r&&!o||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(t,r,o,n)},this.updateDelay))};this.updateHandler=(t,n,r,o)=>{let{state:i,composing:s}=t,{selection:a}=i;if(s||!n&&!r)return;this.createTooltip();let{ranges:u}=a,c=Math.min(...u.map(h=>h.$from.pos)),m=Math.max(...u.map(h=>h.$to.pos));if(!this.shouldShow?.({editor:this.editor,view:t,state:i,oldState:o,from:c,to:m})){this.hide();return}this.tippy?.setProps({getReferenceClientRect:this.tippyOptions?.getReferenceClientRect||(()=>{if(tp(i.selection)){let h=t.nodeDOM(c),v=h.dataset.nodeViewWrapper?h:h.querySelector("[data-node-view-wrapper]");if(v&&(h=v.firstChild),h)return h.getBoundingClientRect()}return ji(t,c,m)})}),this.show()};this.editor=t,this.element=n,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){let{element:t}=this.editor.options,n=!!t.parentElement;this.tippy||!n||(this.tippy=Yi(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){let{state:r}=t,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(t,n);return}let i=!n?.selection.eq(t.state.selection),s=!n?.doc.eq(t.state.doc);this.updateHandler(t,i,s,n)}show(){this.tippy?.show()}hide(){this.tippy?.hide()}destroy(){this.tippy?.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),this.tippy?.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}},od=e=>new wx({key:typeof e.pluginKey=="string"?new Sx(e.pluginKey):e.pluginKey,view:t=>new cl({view:t,...e})});var Gr=lt(Xe(),1);var En=lt(Xe(),1);var st=lt(Xe(),1),Ea=lt(Fg(),1),_0=({renderers:e})=>st.default.createElement(st.default.Fragment,null,Object.entries(e).map(([t,n])=>Ea.default.createPortal(n.reactElement,n.element,t))),kc=class extends st.default.Component{constructor(n){super(n);this.editorContentRef=st.default.createRef(),this.initialized=!1,this.state={renderers:{}}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let{editor:n}=this.props;if(n&&n.options.element){if(n.contentComponent)return;let r=this.editorContentRef.current;r.append(...n.options.element.childNodes),n.setOptions({element:r}),n.contentComponent=this,n.createNodeViews(),this.initialized=!0}}maybeFlushSync(n){this.initialized?(0,Ea.flushSync)(n):n()}setRenderer(n,r){this.maybeFlushSync(()=>{this.setState(({renderers:o})=>({renderers:{...o,[n]:r}}))})}removeRenderer(n){this.maybeFlushSync(()=>{this.setState(({renderers:r})=>{let o={...r};return delete o[n],{renderers:o}})})}componentWillUnmount(){let{editor:n}=this.props;if(!n||(this.initialized=!1,n.isDestroyed||n.view.setProps({nodeViews:{}}),n.contentComponent=null,!n.options.element.firstChild))return;let r=document.createElement("div");r.append(...n.options.element.childNodes),n.setOptions({element:r})}render(){let{editor:n,...r}=this.props;return st.default.createElement(st.default.Fragment,null,st.default.createElement("div",{ref:this.editorContentRef,...r}),st.default.createElement(_0,{renderers:this.state.renderers}))}},z0=e=>{let t=st.default.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return st.default.createElement(kc,{key:t,...e})},Ig=st.default.memo(z0);var Ee=lt(Xe(),1);var li=class extends zi{constructor(){super(...arguments);this.contentComponent=null}};function B0(){let[,e]=(0,Ee.useState)(0);return()=>e(t=>t+1)}var jg=(e={},t=[])=>{let[n,r]=(0,Ee.useState)(null),o=B0(),{onBeforeCreate:i,onBlur:s,onCreate:a,onDestroy:l,onFocus:u,onSelectionUpdate:c,onTransaction:m,onUpdate:d}=e,h=(0,Ee.useRef)(i),v=(0,Ee.useRef)(s),x=(0,Ee.useRef)(a),C=(0,Ee.useRef)(l),g=(0,Ee.useRef)(u),f=(0,Ee.useRef)(c),y=(0,Ee.useRef)(m),p=(0,Ee.useRef)(d);return(0,Ee.useEffect)(()=>{n&&(i&&(n.off("beforeCreate",h.current),n.on("beforeCreate",i),h.current=i),s&&(n.off("blur",v.current),n.on("blur",s),v.current=s),a&&(n.off("create",x.current),n.on("create",a),x.current=a),l&&(n.off("destroy",C.current),n.on("destroy",l),C.current=l),u&&(n.off("focus",g.current),n.on("focus",u),g.current=u),c&&(n.off("selectionUpdate",f.current),n.on("selectionUpdate",c),f.current=c),m&&(n.off("transaction",y.current),n.on("transaction",m),y.current=m),d&&(n.off("update",p.current),n.on("update",d),p.current=d))},[i,s,a,l,u,c,m,d,n]),(0,Ee.useEffect)(()=>{let E=!0,w=new li(e);return r(w),w.on("transaction",()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{E&&o()})})}),()=>{E=!1}},t),(0,Ee.useEffect)(()=>()=>{n?.destroy()},[n]),n};var Tc=(0,En.createContext)({editor:null}),V0=Tc.Consumer,Ca=()=>(0,En.useContext)(Tc),YD=({children:e,slotAfter:t,slotBefore:n,...r})=>{let o=jg(r);return o?En.default.createElement(Tc.Provider,{value:{editor:o}},n,En.default.createElement(V0,null,({editor:i})=>En.default.createElement(Ig,{editor:i})),e,t):null};var t2=e=>{let[t,n]=(0,Gr.useState)(null),{editor:r}=Ca();return(0,Gr.useEffect)(()=>{if(!t||e.editor?.isDestroyed||r?.isDestroyed)return;let{pluginKey:o="bubbleMenu",editor:i,tippyOptions:s={},updateDelay:a,shouldShow:l=null}=e,u=i||r;if(!u){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}let c=od({updateDelay:a,editor:u,element:t,pluginKey:o,shouldShow:l,tippyOptions:s});return u.registerPlugin(c),()=>u.unregisterPlugin(o)},[e.editor,r,t]),Gr.default.createElement("div",{ref:n,className:e.className,style:{visibility:"hidden"}},e.children)};import{Plugin as H0,PluginKey as $0}from"@tiptap/pm/state";var Rc=class{constructor({editor:t,element:n,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1;this.shouldShow=({view:t,state:n})=>{let{selection:r}=n,{$anchor:o,empty:i}=r,s=o.depth===1,a=o.parent.isTextblock&&!o.parent.type.spec.code&&!o.parent.textContent;return!(!t.hasFocus()||!i||!s||!a||!this.editor.isEditable)};this.mousedownHandler=()=>{this.preventHide=!0};this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))};this.blurHandler=({event:t})=>{if(this.preventHide){this.preventHide=!1;return}t?.relatedTarget&&this.element.parentNode?.contains(t.relatedTarget)||this.hide()};this.tippyBlurHandler=t=>{this.blurHandler({event:t})};this.editor=t,this.element=n,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){let{element:t}=this.editor.options,n=!!t.parentElement;this.tippy||!n||(this.tippy=Yi(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){let{state:r}=t,{doc:o,selection:i}=r,{from:s,to:a}=i;if(n&&n.doc.eq(o)&&n.selection.eq(i))return;if(this.createTooltip(),!this.shouldShow?.({editor:this.editor,view:t,state:r,oldState:n})){this.hide();return}this.tippy?.setProps({getReferenceClientRect:this.tippyOptions?.getReferenceClientRect||(()=>ji(t,s,a))}),this.show()}show(){this.tippy?.show()}hide(){this.tippy?.hide()}destroy(){this.tippy?.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),this.tippy?.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}},_g=e=>new H0({key:typeof e.pluginKey=="string"?new $0(e.pluginKey):e.pluginKey,view:t=>new Rc({view:t,...e})});var Yr=lt(Xe(),1);var m2=e=>{let[t,n]=(0,Yr.useState)(null),{editor:r}=Ca();return(0,Yr.useEffect)(()=>{if(!t||e.editor?.isDestroyed||r?.isDestroyed)return;let{pluginKey:o="floatingMenu",editor:i,tippyOptions:s={},shouldShow:a=null}=e,l=i||r;if(!l){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}let u=_g({pluginKey:o,editor:l,element:t,tippyOptions:s,shouldShow:a});return l.registerPlugin(u),()=>l.unregisterPlugin(o)},[e.editor,r,t]),Yr.default.createElement("div",{ref:n,className:e.className,style:{visibility:"hidden"}},e.children)};var zg=lt(Xe(),1);var ka=lt(Xe(),1),Pc=(0,ka.createContext)({onDragStart:void 0}),Ta=()=>(0,ka.useContext)(Pc);var v2=e=>{let t=e.as||"div",{nodeViewContentRef:n}=Ta();return zg.default.createElement(t,{...e,ref:n,"data-node-view-content":"",style:{whiteSpace:"pre-wrap",...e.style}})};var Nc=lt(Xe(),1);var S2=Nc.default.forwardRef((e,t)=>{let{onDragStart:n}=Ta(),r=e.as||"div";return Nc.default.createElement(r,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});var ui=lt(Xe(),1);var Bg=lt(Xe(),1);function U0(e){return!!(typeof e=="function"&&e.prototype&&e.prototype.isReactComponent)}function W0(e){return typeof e=="object"&&e.$$typeof?.toString()==="Symbol(react.forward_ref)"}var Ra=class{constructor(t,{editor:n,props:r={},as:o="div",className:i="",attrs:s}){this.ref=null;this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=n,this.props=r,this.element=document.createElement(o),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),s&&Object.keys(s).forEach(a=>{this.element.setAttribute(a,s[a])}),this.render()}render(){let t=this.component,n=this.props;(U0(t)||W0(t))&&(n.ref=r=>{this.ref=r}),this.reactElement=Bg.default.createElement(t,{...n}),this.editor?.contentComponent?.setRenderer(this.id,this)}updateProps(t={}){this.props={...this.props,...t},this.render()}destroy(){this.editor?.contentComponent?.removeRenderer(this.id)}};var Mc=class extends Bi{mount(){let n={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(s={})=>this.updateAttributes(s),deleteNode:()=>this.deleteNode()};if(!this.component.displayName){let s=a=>a.charAt(0).toUpperCase()+a.substring(1);this.component.displayName=s(this.extension.name)}let r=s=>{let a=this.component,l=this.onDragStart.bind(this),u=c=>{c&&this.contentDOMElement&&c.firstChild!==this.contentDOMElement&&c.appendChild(this.contentDOMElement)};return ui.default.createElement(ui.default.Fragment,null,ui.default.createElement(Pc.Provider,{value:{onDragStart:l,nodeViewContentRef:u}},ui.default.createElement(a,{...s})))};r.displayName="ReactNodeView",this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit");let o=this.node.isInline?"span":"div";this.options.as&&(o=this.options.as);let{className:i=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new Ra(r,{editor:this.editor,props:n,as:o,className:`node-${this.node.type.name} ${i}`.trim(),attrs:this.options.attrs})}get dom(){if(this.renderer.element.firstElementChild&&!this.renderer.element.firstElementChild?.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){let{from:n,to:r}=this.editor.state.selection;n<=this.getPos()&&r>=this.getPos()+this.node.nodeSize?this.selectNode():this.deselectNode()}update(n,r){let o=i=>{this.renderer.updateProps(i)};if(n.type!==this.node.type)return!1;if(typeof this.options.update=="function"){let i=this.node,s=this.decorations;return this.node=n,this.decorations=r,this.options.update({oldNode:i,oldDecorations:s,newNode:n,newDecorations:r,updateProps:()=>o({node:n,decorations:r})})}return n===this.node&&this.decorations===r||(this.node=n,this.decorations=r,o({node:n,decorations:r})),!0}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}};function D2(e,t){return n=>n.editor.contentComponent?new Mc(e,n,t):{}}export{t2 as BubbleMenu,wt as CommandManager,li as Editor,V0 as EditorConsumer,Ig as EditorContent,Tc as EditorContext,YD as EditorProvider,Me as Extension,m2 as FloatingMenu,qe as InputRule,Ri as Mark,yp as Node,Bi as NodeView,v2 as NodeViewContent,S2 as NodeViewWrapper,Yt as PasteRule,kc as PureEditorContent,D2 as ReactNodeViewRenderer,Ra as ReactRenderer,wp as Tracker,A as callOrReturn,v1 as combineTransactionSteps,Qt as createChainableState,Ai as createDocument,ur as createNodeFromContent,hp as createStyleTag,Wc as defaultBlockAt,ba as deleteProps,ro as elementFromString,ZN as escapeForRegEx,_i as extensions,S1 as findChildren,C1 as findChildrenInRange,Bc as findDuplicates,Zt as findListItemPos,cr as findParentNode,Kc as findParentNodeClosestToPos,bc as fromString,_1 as generateHTML,$1 as generateJSON,X1 as generateText,Qc as getAttributes,Ei as getAttributesFromExtensions,ak as getChangedRanges,My as getDebugJSON,N as getExtensionField,Di as getHTMLFromFragment,Li as getMarkAttributes,ar as getMarkRange,he as getMarkType,Fi as getMarksBetween,Ii as getNextListDepth,Yc as getNodeAtPosition,qc as getNodeAttributes,b as getNodeType,no as getRenderedAttributes,pr as getSchema,ki as getSchemaByResolvedExtensions,Ti as getSchemaTypeByName,Jt as getSchemaTypeNameByName,dr as getSplittedAttributes,bi as getText,Ni as getTextBetween,Ic as getTextContentFromNodes,sr as getTextSerializersFromSchema,Kk as handleBackspace,oT as handleDelete,np as hasListBefore,sT as hasListItemAfter,rp as hasListItemBefore,Oa as injectExtensionAttributesToParseRule,jc as inputRulesPlugin,Xc as isActive,Jc as isAtEndOfNode,Zc as isAtStartOfNode,Dc as isEmptyObject,Aa as isExtensionRulesEnabled,Ci as isFunction,Fa as isList,Oi as isMacOS,oo as isMarkActive,Oe as isNodeActive,ep as isNodeEmpty,tp as isNodeSelection,_c as isNumber,Pi as isPlainObject,or as isRegExp,tM as isString,lr as isTextSelection,Xt as isiOS,op as listItemHasSubList,dN as markInputRule,XN as markPasteRule,Lc as mergeAttributes,Pn as mergeDeep,ze as minMax,ip as nextListIsDeeper,sp as nextListIsHigher,yN as nodeInputRule,sM as nodePasteRule,Nn as objectIncludes,zc as pasteRulesPlugin,ji as posToDOMRect,Gc as removeDuplicates,Mi as resolveFocusPosition,Uc as selectionToInsertionEnd,Gt as splitExtensions,RN as textInputRule,cM as textPasteRule,EN as textblockTypeInputRule,Ca as useCurrentEditor,jg as useEditor,LN as wrappingInputRule}; | |
/*! Bundled license information: | |
react/cjs/react.production.min.js: | |
(** | |
* @license React | |
* react.production.min.js | |
* | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*) | |
scheduler/cjs/scheduler.production.min.js: | |
(** | |
* @license React | |
* scheduler.production.min.js | |
* | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*) | |
react-dom/cjs/react-dom.production.min.js: | |
(** | |
* @license React | |
* react-dom.production.min.js | |
* | |
* Copyright (c) Facebook, Inc. and its affiliates. | |
* | |
* This source code is licensed under the MIT license found in the | |
* LICENSE file in the root directory of this source tree. | |
*) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment