@api-doc-tor/express 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/chat-proxy.d.ts +12 -0
  2. package/dist/chat-proxy.d.ts.map +1 -0
  3. package/dist/chat-proxy.js +44 -0
  4. package/dist/chat-proxy.js.map +1 -0
  5. package/dist/docs-access-express.d.ts +16 -0
  6. package/dist/docs-access-express.d.ts.map +1 -0
  7. package/dist/docs-access-express.js +187 -0
  8. package/dist/docs-access-express.js.map +1 -0
  9. package/dist/index.d.ts +64 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +134 -0
  12. package/dist/index.js.map +1 -0
  13. package/package.json +36 -0
  14. package/static/assets/index-2Nv3pxOm.css +1 -0
  15. package/static/assets/index-6tehJlKh.js +214 -0
  16. package/static/assets/index-B148KlKZ.js +247 -0
  17. package/static/assets/index-B7AxOqhh.js +247 -0
  18. package/static/assets/index-BAVM9zLs.css +1 -0
  19. package/static/assets/index-BD4qyClR.js +216 -0
  20. package/static/assets/index-BZaQe_xi.css +1 -0
  21. package/static/assets/index-BjWlpH_h.js +216 -0
  22. package/static/assets/index-BmiFV0rx.css +1 -0
  23. package/static/assets/index-BqIvYIJT.js +247 -0
  24. package/static/assets/index-BwOiuEB4.js +216 -0
  25. package/static/assets/index-C372jkHK.js +214 -0
  26. package/static/assets/index-C9S9wEor.js +217 -0
  27. package/static/assets/index-Cd9PPQz6.css +1 -0
  28. package/static/assets/index-Cf2mt1FM.css +1 -0
  29. package/static/assets/index-Cfn42GaL.css +1 -0
  30. package/static/assets/index-Ckm4kbAk.css +1 -0
  31. package/static/assets/index-CzGmm9SR.css +1 -0
  32. package/static/assets/index-D0jOSazL.js +187 -0
  33. package/static/assets/index-D3-lCeHu.js +214 -0
  34. package/static/assets/index-DDRNEd4n.js +247 -0
  35. package/static/assets/index-DOyViYzn.js +247 -0
  36. package/static/assets/index-DZsbTHIg.js +214 -0
  37. package/static/assets/index-DaYbWEw0.js +190 -0
  38. package/static/assets/index-Djqsib7P.css +1 -0
  39. package/static/assets/index-Ds4IYSZ4.css +1 -0
  40. package/static/assets/index-Dzo0Xwn5.css +1 -0
  41. package/static/assets/index-L47Yb4hH.js +187 -0
  42. package/static/assets/index-NKfaEJl0.css +1 -0
  43. package/static/assets/index-U9Pdo8dD.js +214 -0
  44. package/static/assets/index-UVEGH1D3.css +1 -0
  45. package/static/assets/index-mZYiGRwU.css +1 -0
  46. package/static/assets/index-pOjZ5m-I.js +247 -0
  47. package/static/assets/index-rCcLuTWw.js +216 -0
  48. package/static/index.html +21 -0
@@ -0,0 +1,187 @@
1
+ var Vf=Object.defineProperty;var qf=(I,A,P)=>A in I?Vf(I,A,{enumerable:!0,configurable:!0,writable:!0,value:P}):I[A]=P;var mu=(I,A,P)=>qf(I,typeof A!="symbol"?A+"":A,P);(function(){const A=document.createElement("link").relList;if(A&&A.supports&&A.supports("modulepreload"))return;for(const J of document.querySelectorAll('link[rel="modulepreload"]'))F(J);new MutationObserver(J=>{for(const W of J)if(W.type==="childList")for(const ee of W.addedNodes)ee.tagName==="LINK"&&ee.rel==="modulepreload"&&F(ee)}).observe(document,{childList:!0,subtree:!0});function P(J){const W={};return J.integrity&&(W.integrity=J.integrity),J.referrerPolicy&&(W.referrerPolicy=J.referrerPolicy),J.crossOrigin==="use-credentials"?W.credentials="include":J.crossOrigin==="anonymous"?W.credentials="omit":W.credentials="same-origin",W}function F(J){if(J.ep)return;J.ep=!0;const W=P(J);fetch(J.href,W)}})();var Hf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ts(I){return I&&I.__esModule&&Object.prototype.hasOwnProperty.call(I,"default")?I.default:I}var Qa={exports:{}},yu={},Ya={exports:{}},Te={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Bc;function Wf(){if(Bc)return Te;Bc=1;var I=Symbol.for("react.element"),A=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),J=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),ee=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Ve=Symbol.for("react.memo"),Ce=Symbol.for("react.lazy"),Ee=Symbol.iterator;function Oe(j){return j===null||typeof j!="object"?null:(j=Ee&&j[Ee]||j["@@iterator"],typeof j=="function"?j:null)}var _t={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xe=Object.assign,Pe={};function De(j,L,Se){this.props=j,this.context=L,this.refs=Pe,this.updater=Se||_t}De.prototype.isReactComponent={},De.prototype.setState=function(j,L){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,L,"setState")},De.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function Zt(){}Zt.prototype=De.prototype;function wt(j,L,Se){this.props=j,this.context=L,this.refs=Pe,this.updater=Se||_t}var zt=wt.prototype=new Zt;zt.constructor=wt,Xe(zt,De.prototype),zt.isPureReactComponent=!0;var nt=Array.isArray,$t=Object.prototype.hasOwnProperty,Ie={current:null},ze={key:!0,ref:!0,__self:!0,__source:!0};function jt(j,L,Se){var we,be={},Ne=null,Ae=null;if(L!=null)for(we in L.ref!==void 0&&(Ae=L.ref),L.key!==void 0&&(Ne=""+L.key),L)$t.call(L,we)&&!ze.hasOwnProperty(we)&&(be[we]=L[we]);var Le=arguments.length-2;if(Le===1)be.children=Se;else if(1<Le){for(var Je=Array(Le),oe=0;oe<Le;oe++)Je[oe]=arguments[oe+2];be.children=Je}if(j&&j.defaultProps)for(we in Le=j.defaultProps,Le)be[we]===void 0&&(be[we]=Le[we]);return{$$typeof:I,type:j,key:Ne,ref:Ae,props:be,_owner:Ie.current}}function vn(j,L){return{$$typeof:I,type:j.type,key:L,ref:j.ref,props:j.props,_owner:j._owner}}function en(j){return typeof j=="object"&&j!==null&&j.$$typeof===I}function tn(j){var L={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Se){return L[Se]})}var st=/\/+/g;function it(j,L){return typeof j=="object"&&j!==null&&j.key!=null?tn(""+j.key):L.toString(36)}function Gt(j,L,Se,we,be){var Ne=typeof j;(Ne==="undefined"||Ne==="boolean")&&(j=null);var Ae=!1;if(j===null)Ae=!0;else switch(Ne){case"string":case"number":Ae=!0;break;case"object":switch(j.$$typeof){case I:case A:Ae=!0}}if(Ae)return Ae=j,be=be(Ae),j=we===""?"."+it(Ae,0):we,nt(be)?(Se="",j!=null&&(Se=j.replace(st,"$&/")+"/"),Gt(be,L,Se,"",function(oe){return oe})):be!=null&&(en(be)&&(be=vn(be,Se+(!be.key||Ae&&Ae.key===be.key?"":(""+be.key).replace(st,"$&/")+"/")+j)),L.push(be)),1;if(Ae=0,we=we===""?".":we+":",nt(j))for(var Le=0;Le<j.length;Le++){Ne=j[Le];var Je=we+it(Ne,Le);Ae+=Gt(Ne,L,Se,Je,be)}else if(Je=Oe(j),typeof Je=="function")for(j=Je.call(j),Le=0;!(Ne=j.next()).done;)Ne=Ne.value,Je=we+it(Ne,Le++),Ae+=Gt(Ne,L,Se,Je,be);else if(Ne==="object")throw L=String(j),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.");return Ae}function Ot(j,L,Se){if(j==null)return j;var we=[],be=0;return Gt(j,we,"","",function(Ne){return L.call(Se,Ne,be++)}),we}function ct(j){if(j._status===-1){var L=j._result;L=L(),L.then(function(Se){(j._status===0||j._status===-1)&&(j._status=1,j._result=Se)},function(Se){(j._status===0||j._status===-1)&&(j._status=2,j._result=Se)}),j._status===-1&&(j._status=0,j._result=L)}if(j._status===1)return j._result.default;throw j._result}var rt={current:null},Z={transition:null},pe={ReactCurrentDispatcher:rt,ReactCurrentBatchConfig:Z,ReactCurrentOwner:Ie};function te(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:Ot,forEach:function(j,L,Se){Ot(j,function(){L.apply(this,arguments)},Se)},count:function(j){var L=0;return Ot(j,function(){L++}),L},toArray:function(j){return Ot(j,function(L){return L})||[]},only:function(j){if(!en(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Te.Component=De,Te.Fragment=P,Te.Profiler=J,Te.PureComponent=wt,Te.StrictMode=F,Te.Suspense=de,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pe,Te.act=te,Te.cloneElement=function(j,L,Se){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var we=Xe({},j.props),be=j.key,Ne=j.ref,Ae=j._owner;if(L!=null){if(L.ref!==void 0&&(Ne=L.ref,Ae=Ie.current),L.key!==void 0&&(be=""+L.key),j.type&&j.type.defaultProps)var Le=j.type.defaultProps;for(Je in L)$t.call(L,Je)&&!ze.hasOwnProperty(Je)&&(we[Je]=L[Je]===void 0&&Le!==void 0?Le[Je]:L[Je])}var Je=arguments.length-2;if(Je===1)we.children=Se;else if(1<Je){Le=Array(Je);for(var oe=0;oe<Je;oe++)Le[oe]=arguments[oe+2];we.children=Le}return{$$typeof:I,type:j.type,key:be,ref:Ne,props:we,_owner:Ae}},Te.createContext=function(j){return j={$$typeof:ee,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:W,_context:j},j.Consumer=j},Te.createElement=jt,Te.createFactory=function(j){var L=jt.bind(null,j);return L.type=j,L},Te.createRef=function(){return{current:null}},Te.forwardRef=function(j){return{$$typeof:he,render:j}},Te.isValidElement=en,Te.lazy=function(j){return{$$typeof:Ce,_payload:{_status:-1,_result:j},_init:ct}},Te.memo=function(j,L){return{$$typeof:Ve,type:j,compare:L===void 0?null:L}},Te.startTransition=function(j){var L=Z.transition;Z.transition={};try{j()}finally{Z.transition=L}},Te.unstable_act=te,Te.useCallback=function(j,L){return rt.current.useCallback(j,L)},Te.useContext=function(j){return rt.current.useContext(j)},Te.useDebugValue=function(){},Te.useDeferredValue=function(j){return rt.current.useDeferredValue(j)},Te.useEffect=function(j,L){return rt.current.useEffect(j,L)},Te.useId=function(){return rt.current.useId()},Te.useImperativeHandle=function(j,L,Se){return rt.current.useImperativeHandle(j,L,Se)},Te.useInsertionEffect=function(j,L){return rt.current.useInsertionEffect(j,L)},Te.useLayoutEffect=function(j,L){return rt.current.useLayoutEffect(j,L)},Te.useMemo=function(j,L){return rt.current.useMemo(j,L)},Te.useReducer=function(j,L,Se){return rt.current.useReducer(j,L,Se)},Te.useRef=function(j){return rt.current.useRef(j)},Te.useState=function(j){return rt.current.useState(j)},Te.useSyncExternalStore=function(j,L,Se){return rt.current.useSyncExternalStore(j,L,Se)},Te.useTransition=function(){return rt.current.useTransition()},Te.version="18.3.1",Te}var Uc;function ns(){return Uc||(Uc=1,Ya.exports=Wf()),Ya.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Vc;function Qf(){if(Vc)return yu;Vc=1;var I=ns(),A=Symbol.for("react.element"),P=Symbol.for("react.fragment"),F=Object.prototype.hasOwnProperty,J=I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,W={key:!0,ref:!0,__self:!0,__source:!0};function ee(he,de,Ve){var Ce,Ee={},Oe=null,_t=null;Ve!==void 0&&(Oe=""+Ve),de.key!==void 0&&(Oe=""+de.key),de.ref!==void 0&&(_t=de.ref);for(Ce in de)F.call(de,Ce)&&!W.hasOwnProperty(Ce)&&(Ee[Ce]=de[Ce]);if(he&&he.defaultProps)for(Ce in de=he.defaultProps,de)Ee[Ce]===void 0&&(Ee[Ce]=de[Ce]);return{$$typeof:A,type:he,key:Oe,ref:_t,props:Ee,_owner:J.current}}return yu.Fragment=P,yu.jsx=ee,yu.jsxs=ee,yu}var qc;function Yf(){return qc||(qc=1,Qa.exports=Qf()),Qa.exports}var X=Yf(),tt=ns();const Gf=ts(tt);var Cl={},Ga={exports:{}},fn={},Xa={exports:{}},Ja={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Hc;function Xf(){return Hc||(Hc=1,(function(I){function A(Z,pe){var te=Z.length;Z.push(pe);e:for(;0<te;){var j=te-1>>>1,L=Z[j];if(0<J(L,pe))Z[j]=pe,Z[te]=L,te=j;else break e}}function P(Z){return Z.length===0?null:Z[0]}function F(Z){if(Z.length===0)return null;var pe=Z[0],te=Z.pop();if(te!==pe){Z[0]=te;e:for(var j=0,L=Z.length,Se=L>>>1;j<Se;){var we=2*(j+1)-1,be=Z[we],Ne=we+1,Ae=Z[Ne];if(0>J(be,te))Ne<L&&0>J(Ae,be)?(Z[j]=Ae,Z[Ne]=te,j=Ne):(Z[j]=be,Z[we]=te,j=we);else if(Ne<L&&0>J(Ae,te))Z[j]=Ae,Z[Ne]=te,j=Ne;else break e}}return pe}function J(Z,pe){var te=Z.sortIndex-pe.sortIndex;return te!==0?te:Z.id-pe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var W=performance;I.unstable_now=function(){return W.now()}}else{var ee=Date,he=ee.now();I.unstable_now=function(){return ee.now()-he}}var de=[],Ve=[],Ce=1,Ee=null,Oe=3,_t=!1,Xe=!1,Pe=!1,De=typeof setTimeout=="function"?setTimeout:null,Zt=typeof clearTimeout=="function"?clearTimeout:null,wt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function zt(Z){for(var pe=P(Ve);pe!==null;){if(pe.callback===null)F(Ve);else if(pe.startTime<=Z)F(Ve),pe.sortIndex=pe.expirationTime,A(de,pe);else break;pe=P(Ve)}}function nt(Z){if(Pe=!1,zt(Z),!Xe)if(P(de)!==null)Xe=!0,ct($t);else{var pe=P(Ve);pe!==null&&rt(nt,pe.startTime-Z)}}function $t(Z,pe){Xe=!1,Pe&&(Pe=!1,Zt(jt),jt=-1),_t=!0;var te=Oe;try{for(zt(pe),Ee=P(de);Ee!==null&&(!(Ee.expirationTime>pe)||Z&&!tn());){var j=Ee.callback;if(typeof j=="function"){Ee.callback=null,Oe=Ee.priorityLevel;var L=j(Ee.expirationTime<=pe);pe=I.unstable_now(),typeof L=="function"?Ee.callback=L:Ee===P(de)&&F(de),zt(pe)}else F(de);Ee=P(de)}if(Ee!==null)var Se=!0;else{var we=P(Ve);we!==null&&rt(nt,we.startTime-pe),Se=!1}return Se}finally{Ee=null,Oe=te,_t=!1}}var Ie=!1,ze=null,jt=-1,vn=5,en=-1;function tn(){return!(I.unstable_now()-en<vn)}function st(){if(ze!==null){var Z=I.unstable_now();en=Z;var pe=!0;try{pe=ze(!0,Z)}finally{pe?it():(Ie=!1,ze=null)}}else Ie=!1}var it;if(typeof wt=="function")it=function(){wt(st)};else if(typeof MessageChannel<"u"){var Gt=new MessageChannel,Ot=Gt.port2;Gt.port1.onmessage=st,it=function(){Ot.postMessage(null)}}else it=function(){De(st,0)};function ct(Z){ze=Z,Ie||(Ie=!0,it())}function rt(Z,pe){jt=De(function(){Z(I.unstable_now())},pe)}I.unstable_IdlePriority=5,I.unstable_ImmediatePriority=1,I.unstable_LowPriority=4,I.unstable_NormalPriority=3,I.unstable_Profiling=null,I.unstable_UserBlockingPriority=2,I.unstable_cancelCallback=function(Z){Z.callback=null},I.unstable_continueExecution=function(){Xe||_t||(Xe=!0,ct($t))},I.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):vn=0<Z?Math.floor(1e3/Z):5},I.unstable_getCurrentPriorityLevel=function(){return Oe},I.unstable_getFirstCallbackNode=function(){return P(de)},I.unstable_next=function(Z){switch(Oe){case 1:case 2:case 3:var pe=3;break;default:pe=Oe}var te=Oe;Oe=pe;try{return Z()}finally{Oe=te}},I.unstable_pauseExecution=function(){},I.unstable_requestPaint=function(){},I.unstable_runWithPriority=function(Z,pe){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var te=Oe;Oe=Z;try{return pe()}finally{Oe=te}},I.unstable_scheduleCallback=function(Z,pe,te){var j=I.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?j+te:j):te=j,Z){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=te+L,Z={id:Ce++,callback:pe,priorityLevel:Z,startTime:te,expirationTime:L,sortIndex:-1},te>j?(Z.sortIndex=te,A(Ve,Z),P(de)===null&&Z===P(Ve)&&(Pe?(Zt(jt),jt=-1):Pe=!0,rt(nt,te-j))):(Z.sortIndex=L,A(de,Z),Xe||_t||(Xe=!0,ct($t))),Z},I.unstable_shouldYield=tn,I.unstable_wrapCallback=function(Z){var pe=Oe;return function(){var te=Oe;Oe=pe;try{return Z.apply(this,arguments)}finally{Oe=te}}}})(Ja)),Ja}var Wc;function Jf(){return Wc||(Wc=1,Xa.exports=Xf()),Xa.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Qc;function Zf(){if(Qc)return fn;Qc=1;var I=ns(),A=Jf();function P(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 F=new Set,J={};function W(e,t){ee(e,t),ee(e+"Capture",t)}function ee(e,t){for(J[e]=t,e=0;e<t.length;e++)F.add(t[e])}var he=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),de=Object.prototype.hasOwnProperty,Ve=/^[: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]*$/,Ce={},Ee={};function Oe(e){return de.call(Ee,e)?!0:de.call(Ce,e)?!1:Ve.test(e)?Ee[e]=!0:(Ce[e]=!0,!1)}function _t(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Xe(e,t,n,o){if(t===null||typeof t>"u"||_t(e,t,n,o))return!0;if(o)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 Pe(e,t,n,o,u,a,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=u,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=d}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Pe(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Pe(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Pe(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){De[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Pe(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){De[e]=new Pe(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){De[e]=new Pe(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){De[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zt=/[\-:]([a-z])/g;function wt(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(Zt,wt);De[t]=new Pe(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(Zt,wt);De[t]=new Pe(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(Zt,wt);De[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)}),De.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){De[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function zt(e,t,n,o){var u=De.hasOwnProperty(t)?De[t]:null;(u!==null?u.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Xe(t,n,u,o)&&(n=null),o||u===null?Oe(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):u.mustUseProperty?e[u.propertyName]=n===null?u.type===3?!1:"":n:(t=u.attributeName,o=u.attributeNamespace,n===null?e.removeAttribute(t):(u=u.type,n=u===3||u===4&&n===!0?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}var nt=I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$t=Symbol.for("react.element"),Ie=Symbol.for("react.portal"),ze=Symbol.for("react.fragment"),jt=Symbol.for("react.strict_mode"),vn=Symbol.for("react.profiler"),en=Symbol.for("react.provider"),tn=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),it=Symbol.for("react.suspense"),Gt=Symbol.for("react.suspense_list"),Ot=Symbol.for("react.memo"),ct=Symbol.for("react.lazy"),rt=Symbol.for("react.offscreen"),Z=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var te=Object.assign,j;function L(e){if(j===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return`
34
+ `+j+e}var Se=!1;function we(e,t){if(!e||Se)return"";Se=!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(D){var o=D}Reflect.construct(e,[],t)}else{try{t.call()}catch(D){o=D}e.call(t.prototype)}else{try{throw Error()}catch(D){o=D}e()}}catch(D){if(D&&o&&typeof D.stack=="string"){for(var u=D.stack.split(`
35
+ `),a=o.stack.split(`
36
+ `),d=u.length-1,m=a.length-1;1<=d&&0<=m&&u[d]!==a[m];)m--;for(;1<=d&&0<=m;d--,m--)if(u[d]!==a[m]){if(d!==1||m!==1)do if(d--,m--,0>m||u[d]!==a[m]){var y=`
37
+ `+u[d].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=d&&0<=m);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function be(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=we(e.type,!1),e;case 11:return e=we(e.type.render,!1),e;case 1:return e=we(e.type,!0),e;default:return""}}function Ne(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 ze:return"Fragment";case Ie:return"Portal";case vn:return"Profiler";case jt:return"StrictMode";case it:return"Suspense";case Gt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tn:return(e.displayName||"Context")+".Consumer";case en:return(e._context.displayName||"Context")+".Provider";case st:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ot:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case ct:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}function Ae(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 Ne(t);case 8:return t===jt?"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 Le(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Je(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oe(e){var t=Je(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(d){o=""+d,a.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rr(e){e._valueTracker||(e._valueTracker=oe(e))}function Ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=Je(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function gn(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 mo(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function M(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=Le(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Me(e,t){t=t.checked,t!=null&&zt(e,"checked",t,!1)}function qe(e,t){Me(e,t);var n=Le(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?et(e,t.type,n):t.hasOwnProperty("defaultValue")&&et(e,t.type,Le(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="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 et(e,t,n){(t!=="number"||gn(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qe=Array.isArray;function Ge(e,t,n,o){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Le(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Ir(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cn(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(Qe(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Le(n)}}function zr(e,t){var n=Le(t.value),o=Le(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),o!=null&&(e.defaultValue=""+o)}function Pn(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ct(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 Bt(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ct(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $n,Ar=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,o,u){MSApp.execUnsafeLocalFunction(function(){return e(t,n,o,u)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($n=$n||document.createElement("div"),$n.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$n.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bn={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},ir=["Webkit","ms","Moz","O"];Object.keys(Bn).forEach(function(e){ir.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bn[t]=Bn[e]})});function yo(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bn.hasOwnProperty(e)&&Bn[e]?(""+t).trim():t+"px"}function qo(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,u=yo(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,u):e[n]=u}}var Nn=te({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 se(e,t){if(t){if(Nn[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function ur(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 jn=null;function Lr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ne=null,Un=null,lr=null;function Ho(e){if(e=eu(e)){if(typeof ne!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Ku(t),ne(e.stateNode,e.type,t))}}function Ri(e){Un?lr?lr.push(e):lr=[e]:Un=e}function Wo(){if(Un){var e=Un,t=lr;if(lr=Un=null,Ho(e),t)for(e=0;e<t.length;e++)Ho(t[e])}}function vu(e,t){return e(t)}function gu(){}var Vn=!1;function ar(e,t,n){if(Vn)return e(t,n);Vn=!0;try{return vu(e,t,n)}finally{Vn=!1,(Un!==null||lr!==null)&&(gu(),Wo())}}function sr(e,t){var n=e.stateNode;if(n===null)return null;var o=Ku(n);if(o===null)return null;n=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var Mr=!1;if(he)try{var Ye={};Object.defineProperty(Ye,"passive",{get:function(){Mr=!0}}),window.addEventListener("test",Ye,Ye),window.removeEventListener("test",Ye,Ye)}catch{Mr=!1}function kt(e,t,n,o,u,a,d,m,y){var D=Array.prototype.slice.call(arguments,3);try{t.apply(n,D)}catch(V){this.onError(V)}}var vo=!1,cr=null,fr=!1,Fr=null,bl={onError:function(e){vo=!0,cr=e}};function qn(e,t,n,o,u,a,d,m,y){vo=!1,cr=null,kt.apply(bl,arguments)}function Kr(e,t,n,o,u,a,d,m,y){if(qn.apply(this,arguments),vo){if(vo){var D=cr;vo=!1,cr=null}else throw Error(P(198));fr||(fr=!0,Fr=D)}}function Ut(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function go(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 wu(e){if(Ut(e)!==e)throw Error(P(188))}function Hn(e){var t=e.alternate;if(!t){if(t=Ut(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,o=t;;){var u=n.return;if(u===null)break;var a=u.alternate;if(a===null){if(o=u.return,o!==null){n=o;continue}break}if(u.child===a.child){for(a=u.child;a;){if(a===n)return wu(u),e;if(a===o)return wu(u),t;a=a.sibling}throw Error(P(188))}if(n.return!==o.return)n=u,o=a;else{for(var d=!1,m=u.child;m;){if(m===n){d=!0,n=u,o=a;break}if(m===o){d=!0,o=u,n=a;break}m=m.sibling}if(!d){for(m=a.child;m;){if(m===n){d=!0,n=a,o=u;break}if(m===o){d=!0,o=a,n=u;break}m=m.sibling}if(!d)throw Error(P(189))}}if(n.alternate!==o)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function Di(e){return e=Hn(e),e!==null?Wn(e):null}function Wn(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Wn(e);if(t!==null)return t;e=e.sibling}return null}var Ii=A.unstable_scheduleCallback,Qo=A.unstable_cancelCallback,pt=A.unstable_shouldYield,dr=A.unstable_requestPaint,He=A.unstable_now,xu=A.unstable_getCurrentPriorityLevel,$r=A.unstable_ImmediatePriority,Yo=A.unstable_UserBlockingPriority,Br=A.unstable_NormalPriority,pr=A.unstable_LowPriority,zi=A.unstable_IdlePriority,hr=null,dn=null;function Re(e){if(dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(hr,e,void 0,(e.current.flags&128)===128)}catch{}}var nn=Math.clz32?Math.clz32:wo,_u=Math.log,Go=Math.LN2;function wo(e){return e>>>=0,e===0?32:31-(_u(e)/Go|0)|0}var xo=64,_o=4194304;function Ur(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 We(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,u=e.suspendedLanes,a=e.pingedLanes,d=n&268435455;if(d!==0){var m=d&~u;m!==0?o=Ur(m):(a&=d,a!==0&&(o=Ur(a)))}else d=n&~u,d!==0?o=Ur(d):a!==0&&(o=Ur(a));if(o===0)return 0;if(t!==0&&t!==o&&(t&u)===0&&(u=o&-o,a=t&-t,u>=a||u===16&&(a&4194240)!==0))return t;if((o&4)!==0&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)n=31-nn(t),u=1<<n,o|=e[n],t&=~u;return o}function ko(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 So(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,a=e.pendingLanes;0<a;){var d=31-nn(a),m=1<<d,y=u[d];y===-1?((m&n)===0||(m&o)!==0)&&(u[d]=ko(m,t)):y<=t&&(e.expiredLanes|=m),a&=~m}}function Qn(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Xo(){var e=xo;return xo<<=1,(xo&4194240)===0&&(xo=64),e}function Eo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Yn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function ku(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 o=e.eventTimes;for(e=e.expirationTimes;0<n;){var u=31-nn(n),a=1<<u;t[u]=0,o[u]=-1,e[u]=-1,n&=~a}}function Vr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-nn(n),u=1<<o;u&t|e[o]&t&&(e[o]|=t),n&=~u}}var Be=0;function Su(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Fe,Jo,Eu,Cu,Vt,Gn=!1,mr=[],At=null,On=null,Tn=null,ft=new Map,Lt=new Map,rn=[],Co="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 Zo(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":On=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":ft.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function on(e,t,n,o,u,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:a,targetContainers:[u]},t!==null&&(t=eu(t),t!==null&&Jo(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Rl(e,t,n,o,u){switch(t){case"focusin":return At=on(At,e,t,n,o,u),!0;case"dragenter":return On=on(On,e,t,n,o,u),!0;case"mouseover":return Tn=on(Tn,e,t,n,o,u),!0;case"pointerover":var a=u.pointerId;return ft.set(a,on(ft.get(a)||null,e,t,n,o,u)),!0;case"gotpointercapture":return a=u.pointerId,Lt.set(a,on(Lt.get(a)||null,e,t,n,o,u)),!0}return!1}function pn(e){var t=Do(e.target);if(t!==null){var n=Ut(t);if(n!==null){if(t=n.tag,t===13){if(t=go(n),t!==null){e.blockedOn=t,Vt(e.priority,function(){Eu(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 qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hr(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);jn=o,n.target.dispatchEvent(o),jn=null}else return t=eu(n),t!==null&&Jo(t),e.blockedOn=n,!1;t.shift()}return!0}function Ai(e,t,n){qr(e)&&n.delete(t)}function Li(){Gn=!1,At!==null&&qr(At)&&(At=null),On!==null&&qr(On)&&(On=null),Tn!==null&&qr(Tn)&&(Tn=null),ft.forEach(Ai),Lt.forEach(Ai)}function bn(e,t){e.blockedOn===t&&(e.blockedOn=null,Gn||(Gn=!0,A.unstable_scheduleCallback(A.unstable_NormalPriority,Li)))}function yr(e){function t(u){return bn(u,e)}if(0<mr.length){bn(mr[0],e);for(var n=1;n<mr.length;n++){var o=mr[n];o.blockedOn===e&&(o.blockedOn=null)}}for(At!==null&&bn(At,e),On!==null&&bn(On,e),Tn!==null&&bn(Tn,e),ft.forEach(t),Lt.forEach(t),n=0;n<rn.length;n++)o=rn[n],o.blockedOn===e&&(o.blockedOn=null);for(;0<rn.length&&(n=rn[0],n.blockedOn===null);)pn(n),n.blockedOn===null&&rn.shift()}var vr=nt.ReactCurrentBatchConfig,ei=!0;function Po(e,t,n,o){var u=Be,a=vr.transition;vr.transition=null;try{Be=1,Mi(e,t,n,o)}finally{Be=u,vr.transition=a}}function Dl(e,t,n,o){var u=Be,a=vr.transition;vr.transition=null;try{Be=4,Mi(e,t,n,o)}finally{Be=u,vr.transition=a}}function Mi(e,t,n,o){if(ei){var u=Hr(e,t,n,o);if(u===null)Ml(e,t,o,gr,n),Zo(e,o);else if(Rl(u,e,t,n,o))o.stopPropagation();else if(Zo(e,o),t&4&&-1<Co.indexOf(e)){for(;u!==null;){var a=eu(u);if(a!==null&&Fe(a),a=Hr(e,t,n,o),a===null&&Ml(e,t,o,gr,n),a===u)break;u=a}u!==null&&o.stopPropagation()}else Ml(e,t,o,null,n)}}var gr=null;function Hr(e,t,n,o){if(gr=null,e=Lr(o),e=Do(e),e!==null)if(t=Ut(e),t===null)e=null;else if(n=t.tag,n===13){if(e=go(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 gr=e,null}function ti(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(xu()){case $r:return 1;case Yo:return 4;case Br:case pr:return 16;case zi:return 536870912;default:return 16}default:return 16}}var Xn=null,Fi=null,ni=null;function ri(){if(ni)return ni;var e,t=Fi,n=t.length,o,u="value"in Xn?Xn.value:Xn.textContent,a=u.length;for(e=0;e<n&&t[e]===u[e];e++);var d=n-e;for(o=1;o<=d&&t[n-o]===u[a-o];o++);return ni=u.slice(e,1<o?1-o:void 0)}function Wr(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 No(){return!0}function jo(){return!1}function Tt(e){function t(n,o,u,a,d){this._reactName=n,this._targetInst=u,this.type=o,this.nativeEvent=a,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(n=e[m],this[m]=n?n(a):a[m]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?No:jo,this.isPropagationStopped=jo,this}return te(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=No)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},oi=Tt(Rn),Oo=te({},Rn,{view:0,detail:0}),Qr=Tt(Oo),wr,To,xr,Yr=te({},Oo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ci,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!==xr&&(xr&&e.type==="mousemove"?(wr=e.screenX-xr.screenX,To=e.screenY-xr.screenY):To=wr=0,xr=e),wr)},movementY:function(e){return"movementY"in e?e.movementY:To}}),ii=Tt(Yr),bt=te({},Yr,{dataTransfer:0}),bo=Tt(bt),Ro=te({},Oo,{relatedTarget:0}),ui=Tt(Ro),li=te({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Pu=Tt(li),Nu=te({},Rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ai=Tt(Nu),Ki=te({},Rn,{data:0}),Jn=Tt(Ki),$i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bi={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"},si={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ui(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=si[e])?!!t[e]:!1}function ci(){return Ui}var Il=te({},Oo,{key:function(e){if(e.key){var t=$i[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bi[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ci,charCode:function(e){return e.type==="keypress"?Wr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vi=Tt(Il),fi=te({},Yr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ju=Tt(fi),qi=te({},Oo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ci}),Hi=Tt(qi),zl=te({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ou=Tt(zl),Al=te({},Yr,{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}),Tu=Tt(Al),bu=[9,13,27,32],Wi=he&&"CompositionEvent"in window,Gr=null;he&&"documentMode"in document&&(Gr=document.documentMode);var Qi=he&&"TextEvent"in window&&!Gr,Yi=he&&(!Wi||Gr&&8<Gr&&11>=Gr),Gi=" ",Ru=!1;function Du(e,t){switch(e){case"keyup":return bu.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Iu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function In(e,t){switch(e){case"compositionend":return Iu(t);case"keypress":return t.which!==32?null:(Ru=!0,Gi);case"textInput":return e=t.data,e===Gi&&Ru?null:e;default:return null}}function ht(e,t){if(Dn)return e==="compositionend"||!Wi&&Du(e,t)?(e=ri(),ni=Fi=Xn=null,Dn=!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 Yi&&t.locale!=="ko"?null:t.data;default:return null}}var di={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 _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!di[e.type]:t==="textarea"}function zu(e,t,n,o){Ri(o),t=Lu(t,"onChange"),0<t.length&&(n=new oi("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var kr=null,Xr=null;function Sr(e){os(e,0)}function Jr(e){var t=yi(e);if(Ke(t))return e}function Zr(e,t){if(e==="change")return t}var zn=!1;if(he){var pi;if(he){var r="oninput"in document;if(!r){var i=document.createElement("div");i.setAttribute("oninput","return;"),r=typeof i.oninput=="function"}pi=r}else pi=!1;zn=pi&&(!document.documentMode||9<document.documentMode)}function l(){kr&&(kr.detachEvent("onpropertychange",s),Xr=kr=null)}function s(e){if(e.propertyName==="value"&&Jr(Xr)){var t=[];zu(t,Xr,e,Lr(e)),ar(Sr,t)}}function c(e,t,n){e==="focusin"?(l(),kr=t,Xr=n,kr.attachEvent("onpropertychange",s)):e==="focusout"&&l()}function f(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jr(Xr)}function p(e,t){if(e==="click")return Jr(t)}function h(e,t){if(e==="input"||e==="change")return Jr(t)}function g(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var N=typeof Object.is=="function"?Object.is:g;function x(e,t){if(N(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var u=n[o];if(!de.call(t,u)||!N(e[u],t[u]))return!1}return!0}function v(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function w(e,t){var n=v(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=v(n)}}function C(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S(){for(var e=window,t=gn();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gn(e.document)}return t}function k(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 E(e){var t=S(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&C(n.ownerDocument.documentElement,n)){if(o!==null&&k(n)){if(t=o.start,e=o.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 u=n.textContent.length,a=Math.min(o.start,u);o=o.end===void 0?a:Math.min(o.end,u),!e.extend&&a>o&&(u=o,o=a,a=u),u=w(n,a);var d=w(n,o);u&&d&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),a>o?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.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 R=he&&"documentMode"in document&&11>=document.documentMode,O=null,z=null,K=null,B=!1;function Y(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;B||O==null||O!==gn(o)||(o=O,"selectionStart"in o&&k(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),K&&x(K,o)||(K=o,o=Lu(z,"onSelect"),0<o.length&&(t=new oi("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=O)))}function q(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var re={animationend:q("Animation","AnimationEnd"),animationiteration:q("Animation","AnimationIteration"),animationstart:q("Animation","AnimationStart"),transitionend:q("Transition","TransitionEnd")},Q={},ue={};he&&(ue=document.createElement("div").style,"AnimationEvent"in window||(delete re.animationend.animation,delete re.animationiteration.animation,delete re.animationstart.animation),"TransitionEvent"in window||delete re.transitionend.transition);function $(e){if(Q[e])return Q[e];if(!re[e])return e;var t=re[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ue)return Q[e]=t[n];return e}var ve=$("animationend"),ge=$("animationiteration"),ke=$("animationstart"),je=$("transitionend"),qt=new Map,_e="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 ut(e,t){qt.set(e,t),W(t,[e])}for(var St=0;St<_e.length;St++){var eo=_e[St],Mt=eo.toLowerCase(),Er=eo[0].toUpperCase()+eo.slice(1);ut(Mt,"on"+Er)}ut(ve,"onAnimationEnd"),ut(ge,"onAnimationIteration"),ut(ke,"onAnimationStart"),ut("dblclick","onDoubleClick"),ut("focusin","onFocus"),ut("focusout","onBlur"),ut(je,"onTransitionEnd"),ee("onMouseEnter",["mouseout","mouseover"]),ee("onMouseLeave",["mouseout","mouseover"]),ee("onPointerEnter",["pointerout","pointerover"]),ee("onPointerLeave",["pointerout","pointerover"]),W("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),W("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),W("onBeforeInput",["compositionend","keypress","textInput","paste"]),W("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),W("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),W("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="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(" "),ef=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function rs(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,Kr(o,t,void 0,e),e.currentTarget=null}function os(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],u=o.event;o=o.listeners;e:{var a=void 0;if(t)for(var d=o.length-1;0<=d;d--){var m=o[d],y=m.instance,D=m.currentTarget;if(m=m.listener,y!==a&&u.isPropagationStopped())break e;rs(u,m,D),a=y}else for(d=0;d<o.length;d++){if(m=o[d],y=m.instance,D=m.currentTarget,m=m.listener,y!==a&&u.isPropagationStopped())break e;rs(u,m,D),a=y}}}if(fr)throw e=Fr,fr=!1,Fr=null,e}function lt(e,t){var n=t[Vl];n===void 0&&(n=t[Vl]=new Set);var o=e+"__bubble";n.has(o)||(is(t,e,2,!1),n.add(o))}function Ll(e,t,n){var o=0;t&&(o|=4),is(n,e,o,t)}var Au="_reactListening"+Math.random().toString(36).slice(2);function Xi(e){if(!e[Au]){e[Au]=!0,F.forEach(function(n){n!=="selectionchange"&&(ef.has(n)||Ll(n,!1,e),Ll(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Au]||(t[Au]=!0,Ll("selectionchange",!1,t))}}function is(e,t,n,o){switch(ti(t)){case 1:var u=Po;break;case 4:u=Dl;break;default:u=Mi}n=u.bind(null,t,n,e),u=void 0,!Mr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Ml(e,t,n,o,u){var a=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var m=o.stateNode.containerInfo;if(m===u||m.nodeType===8&&m.parentNode===u)break;if(d===4)for(d=o.return;d!==null;){var y=d.tag;if((y===3||y===4)&&(y=d.stateNode.containerInfo,y===u||y.nodeType===8&&y.parentNode===u))return;d=d.return}for(;m!==null;){if(d=Do(m),d===null)return;if(y=d.tag,y===5||y===6){o=a=d;continue e}m=m.parentNode}}o=o.return}ar(function(){var D=a,V=Lr(n),H=[];e:{var U=qt.get(e);if(U!==void 0){var ie=oi,ae=e;switch(e){case"keypress":if(Wr(n)===0)break e;case"keydown":case"keyup":ie=Vi;break;case"focusin":ae="focus",ie=ui;break;case"focusout":ae="blur",ie=ui;break;case"beforeblur":case"afterblur":ie=ui;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":ie=ii;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=bo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=Hi;break;case ve:case ge:case ke:ie=Pu;break;case je:ie=Ou;break;case"scroll":ie=Qr;break;case"wheel":ie=Tu;break;case"copy":case"cut":case"paste":ie=ai;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=ju}var ce=(t&4)!==0,xt=!ce&&e==="scroll",T=ce?U!==null?U+"Capture":null:U;ce=[];for(var _=D,b;_!==null;){b=_;var G=b.stateNode;if(b.tag===5&&G!==null&&(b=G,T!==null&&(G=sr(_,T),G!=null&&ce.push(Ji(_,G,b)))),xt)break;_=_.return}0<ce.length&&(U=new ie(U,ae,null,n,V),H.push({event:U,listeners:ce}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",ie=e==="mouseout"||e==="pointerout",U&&n!==jn&&(ae=n.relatedTarget||n.fromElement)&&(Do(ae)||ae[Pr]))break e;if((ie||U)&&(U=V.window===V?V:(U=V.ownerDocument)?U.defaultView||U.parentWindow:window,ie?(ae=n.relatedTarget||n.toElement,ie=D,ae=ae?Do(ae):null,ae!==null&&(xt=Ut(ae),ae!==xt||ae.tag!==5&&ae.tag!==6)&&(ae=null)):(ie=null,ae=D),ie!==ae)){if(ce=ii,G="onMouseLeave",T="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(ce=ju,G="onPointerLeave",T="onPointerEnter",_="pointer"),xt=ie==null?U:yi(ie),b=ae==null?U:yi(ae),U=new ce(G,_+"leave",ie,n,V),U.target=xt,U.relatedTarget=b,G=null,Do(V)===D&&(ce=new ce(T,_+"enter",ae,n,V),ce.target=b,ce.relatedTarget=xt,G=ce),xt=G,ie&&ae)t:{for(ce=ie,T=ae,_=0,b=ce;b;b=hi(b))_++;for(b=0,G=T;G;G=hi(G))b++;for(;0<_-b;)ce=hi(ce),_--;for(;0<b-_;)T=hi(T),b--;for(;_--;){if(ce===T||T!==null&&ce===T.alternate)break t;ce=hi(ce),T=hi(T)}ce=null}else ce=null;ie!==null&&us(H,U,ie,ce,!1),ae!==null&&xt!==null&&us(H,xt,ae,ce,!0)}}e:{if(U=D?yi(D):window,ie=U.nodeName&&U.nodeName.toLowerCase(),ie==="select"||ie==="input"&&U.type==="file")var fe=Zr;else if(_r(U))if(zn)fe=h;else{fe=f;var me=c}else(ie=U.nodeName)&&ie.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(fe=p);if(fe&&(fe=fe(e,D))){zu(H,fe,n,V);break e}me&&me(e,U,D),e==="focusout"&&(me=U._wrapperState)&&me.controlled&&U.type==="number"&&et(U,"number",U.value)}switch(me=D?yi(D):window,e){case"focusin":(_r(me)||me.contentEditable==="true")&&(O=me,z=D,K=null);break;case"focusout":K=z=O=null;break;case"mousedown":B=!0;break;case"contextmenu":case"mouseup":case"dragend":B=!1,Y(H,n,V);break;case"selectionchange":if(R)break;case"keydown":case"keyup":Y(H,n,V)}var ye;if(Wi)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Dn?Du(e,n)&&(xe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(xe="onCompositionStart");xe&&(Yi&&n.locale!=="ko"&&(Dn||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Dn&&(ye=ri()):(Xn=V,Fi="value"in Xn?Xn.value:Xn.textContent,Dn=!0)),me=Lu(D,xe),0<me.length&&(xe=new Jn(xe,e,null,n,V),H.push({event:xe,listeners:me}),ye?xe.data=ye:(ye=Iu(n),ye!==null&&(xe.data=ye)))),(ye=Qi?In(e,n):ht(e,n))&&(D=Lu(D,"onBeforeInput"),0<D.length&&(V=new Jn("onBeforeInput","beforeinput",null,n,V),H.push({event:V,listeners:D}),V.data=ye))}os(H,t)})}function Ji(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lu(e,t){for(var n=t+"Capture",o=[];e!==null;){var u=e,a=u.stateNode;u.tag===5&&a!==null&&(u=a,a=sr(e,n),a!=null&&o.unshift(Ji(e,a,u)),a=sr(e,t),a!=null&&o.push(Ji(e,a,u))),e=e.return}return o}function hi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function us(e,t,n,o,u){for(var a=t._reactName,d=[];n!==null&&n!==o;){var m=n,y=m.alternate,D=m.stateNode;if(y!==null&&y===o)break;m.tag===5&&D!==null&&(m=D,u?(y=sr(n,a),y!=null&&d.unshift(Ji(n,y,m))):u||(y=sr(n,a),y!=null&&d.push(Ji(n,y,m)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var tf=/\r\n?/g,nf=/\u0000|\uFFFD/g;function ls(e){return(typeof e=="string"?e:""+e).replace(tf,`
38
+ `).replace(nf,"")}function Mu(e,t,n){if(t=ls(t),ls(e)!==t&&n)throw Error(P(425))}function Fu(){}var Fl=null,Kl=null;function $l(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 Bl=typeof setTimeout=="function"?setTimeout:void 0,rf=typeof clearTimeout=="function"?clearTimeout:void 0,as=typeof Promise=="function"?Promise:void 0,of=typeof queueMicrotask=="function"?queueMicrotask:typeof as<"u"?function(e){return as.resolve(null).then(e).catch(uf)}:Bl;function uf(e){setTimeout(function(){throw e})}function Ul(e,t){var n=t,o=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(o===0){e.removeChild(u),yr(t);return}o--}else n!=="$"&&n!=="$?"&&n!=="$!"||o++;n=u}while(n);yr(t)}function to(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 ss(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 mi=Math.random().toString(36).slice(2),Zn="__reactFiber$"+mi,Zi="__reactProps$"+mi,Pr="__reactContainer$"+mi,Vl="__reactEvents$"+mi,lf="__reactListeners$"+mi,af="__reactHandles$"+mi;function Do(e){var t=e[Zn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pr]||n[Zn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ss(e);e!==null;){if(n=e[Zn])return n;e=ss(e)}return t}e=n,n=e.parentNode}return null}function eu(e){return e=e[Zn]||e[Pr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Ku(e){return e[Zi]||null}var ql=[],vi=-1;function no(e){return{current:e}}function at(e){0>vi||(e.current=ql[vi],ql[vi]=null,vi--)}function ot(e,t){vi++,ql[vi]=e.current,e.current=t}var ro={},Ht=no(ro),un=no(!1),Io=ro;function gi(e,t){var n=e.type.contextTypes;if(!n)return ro;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var u={},a;for(a in n)u[a]=t[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function ln(e){return e=e.childContextTypes,e!=null}function $u(){at(un),at(Ht)}function cs(e,t,n){if(Ht.current!==ro)throw Error(P(168));ot(Ht,t),ot(un,n)}function fs(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var u in o)if(!(u in t))throw Error(P(108,Ae(e)||"Unknown",u));return te({},n,o)}function Bu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ro,Io=Ht.current,ot(Ht,e),ot(un,un.current),!0}function ds(e,t,n){var o=e.stateNode;if(!o)throw Error(P(169));n?(e=fs(e,t,Io),o.__reactInternalMemoizedMergedChildContext=e,at(un),at(Ht),ot(Ht,e)):at(un),ot(un,n)}var Nr=null,Uu=!1,Hl=!1;function ps(e){Nr===null?Nr=[e]:Nr.push(e)}function sf(e){Uu=!0,ps(e)}function oo(){if(!Hl&&Nr!==null){Hl=!0;var e=0,t=Be;try{var n=Nr;for(Be=1;e<n.length;e++){var o=n[e];do o=o(!0);while(o!==null)}Nr=null,Uu=!1}catch(u){throw Nr!==null&&(Nr=Nr.slice(e+1)),Ii($r,oo),u}finally{Be=t,Hl=!1}}return null}var wi=[],xi=0,Vu=null,qu=0,wn=[],xn=0,zo=null,jr=1,Or="";function Ao(e,t){wi[xi++]=qu,wi[xi++]=Vu,Vu=e,qu=t}function hs(e,t,n){wn[xn++]=jr,wn[xn++]=Or,wn[xn++]=zo,zo=e;var o=jr;e=Or;var u=32-nn(o)-1;o&=~(1<<u),n+=1;var a=32-nn(t)+u;if(30<a){var d=u-u%5;a=(o&(1<<d)-1).toString(32),o>>=d,u-=d,jr=1<<32-nn(t)+u|n<<u|o,Or=a+e}else jr=1<<a|n<<u|o,Or=e}function Wl(e){e.return!==null&&(Ao(e,1),hs(e,1,0))}function Ql(e){for(;e===Vu;)Vu=wi[--xi],wi[xi]=null,qu=wi[--xi],wi[xi]=null;for(;e===zo;)zo=wn[--xn],wn[xn]=null,Or=wn[--xn],wn[xn]=null,jr=wn[--xn],wn[xn]=null}var hn=null,mn=null,dt=!1,An=null;function ms(e,t){var n=En(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 ys(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,hn=e,mn=to(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,hn=e,mn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zo!==null?{id:jr,overflow:Or}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=En(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,hn=e,mn=null,!0):!1;default:return!1}}function Yl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gl(e){if(dt){var t=mn;if(t){var n=t;if(!ys(e,t)){if(Yl(e))throw Error(P(418));t=to(n.nextSibling);var o=hn;t&&ys(e,t)?ms(o,n):(e.flags=e.flags&-4097|2,dt=!1,hn=e)}}else{if(Yl(e))throw Error(P(418));e.flags=e.flags&-4097|2,dt=!1,hn=e}}}function vs(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;hn=e}function Hu(e){if(e!==hn)return!1;if(!dt)return vs(e),dt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$l(e.type,e.memoizedProps)),t&&(t=mn)){if(Yl(e))throw gs(),Error(P(418));for(;t;)ms(e,t),t=to(t.nextSibling)}if(vs(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){mn=to(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}mn=null}}else mn=hn?to(e.stateNode.nextSibling):null;return!0}function gs(){for(var e=mn;e;)e=to(e.nextSibling)}function _i(){mn=hn=null,dt=!1}function Xl(e){An===null?An=[e]:An.push(e)}var cf=nt.ReactCurrentBatchConfig;function tu(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(P(309));var o=n.stateNode}if(!o)throw Error(P(147,e));var u=o,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(d){var m=u.refs;d===null?delete m[a]:m[a]=d},t._stringRef=a,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function Wu(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ws(e){var t=e._init;return t(e._payload)}function xs(e){function t(T,_){if(e){var b=T.deletions;b===null?(T.deletions=[_],T.flags|=16):b.push(_)}}function n(T,_){if(!e)return null;for(;_!==null;)t(T,_),_=_.sibling;return null}function o(T,_){for(T=new Map;_!==null;)_.key!==null?T.set(_.key,_):T.set(_.index,_),_=_.sibling;return T}function u(T,_){return T=po(T,_),T.index=0,T.sibling=null,T}function a(T,_,b){return T.index=b,e?(b=T.alternate,b!==null?(b=b.index,b<_?(T.flags|=2,_):b):(T.flags|=2,_)):(T.flags|=1048576,_)}function d(T){return e&&T.alternate===null&&(T.flags|=2),T}function m(T,_,b,G){return _===null||_.tag!==6?(_=Ba(b,T.mode,G),_.return=T,_):(_=u(_,b),_.return=T,_)}function y(T,_,b,G){var fe=b.type;return fe===ze?V(T,_,b.props.children,G,b.key):_!==null&&(_.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ct&&ws(fe)===_.type)?(G=u(_,b.props),G.ref=tu(T,_,b),G.return=T,G):(G=vl(b.type,b.key,b.props,null,T.mode,G),G.ref=tu(T,_,b),G.return=T,G)}function D(T,_,b,G){return _===null||_.tag!==4||_.stateNode.containerInfo!==b.containerInfo||_.stateNode.implementation!==b.implementation?(_=Ua(b,T.mode,G),_.return=T,_):(_=u(_,b.children||[]),_.return=T,_)}function V(T,_,b,G,fe){return _===null||_.tag!==7?(_=Vo(b,T.mode,G,fe),_.return=T,_):(_=u(_,b),_.return=T,_)}function H(T,_,b){if(typeof _=="string"&&_!==""||typeof _=="number")return _=Ba(""+_,T.mode,b),_.return=T,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case $t:return b=vl(_.type,_.key,_.props,null,T.mode,b),b.ref=tu(T,null,_),b.return=T,b;case Ie:return _=Ua(_,T.mode,b),_.return=T,_;case ct:var G=_._init;return H(T,G(_._payload),b)}if(Qe(_)||pe(_))return _=Vo(_,T.mode,b,null),_.return=T,_;Wu(T,_)}return null}function U(T,_,b,G){var fe=_!==null?_.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return fe!==null?null:m(T,_,""+b,G);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case $t:return b.key===fe?y(T,_,b,G):null;case Ie:return b.key===fe?D(T,_,b,G):null;case ct:return fe=b._init,U(T,_,fe(b._payload),G)}if(Qe(b)||pe(b))return fe!==null?null:V(T,_,b,G,null);Wu(T,b)}return null}function ie(T,_,b,G,fe){if(typeof G=="string"&&G!==""||typeof G=="number")return T=T.get(b)||null,m(_,T,""+G,fe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case $t:return T=T.get(G.key===null?b:G.key)||null,y(_,T,G,fe);case Ie:return T=T.get(G.key===null?b:G.key)||null,D(_,T,G,fe);case ct:var me=G._init;return ie(T,_,b,me(G._payload),fe)}if(Qe(G)||pe(G))return T=T.get(b)||null,V(_,T,G,fe,null);Wu(_,G)}return null}function ae(T,_,b,G){for(var fe=null,me=null,ye=_,xe=_=0,It=null;ye!==null&&xe<b.length;xe++){ye.index>xe?(It=ye,ye=null):It=ye.sibling;var Ue=U(T,ye,b[xe],G);if(Ue===null){ye===null&&(ye=It);break}e&&ye&&Ue.alternate===null&&t(T,ye),_=a(Ue,_,xe),me===null?fe=Ue:me.sibling=Ue,me=Ue,ye=It}if(xe===b.length)return n(T,ye),dt&&Ao(T,xe),fe;if(ye===null){for(;xe<b.length;xe++)ye=H(T,b[xe],G),ye!==null&&(_=a(ye,_,xe),me===null?fe=ye:me.sibling=ye,me=ye);return dt&&Ao(T,xe),fe}for(ye=o(T,ye);xe<b.length;xe++)It=ie(ye,T,xe,b[xe],G),It!==null&&(e&&It.alternate!==null&&ye.delete(It.key===null?xe:It.key),_=a(It,_,xe),me===null?fe=It:me.sibling=It,me=It);return e&&ye.forEach(function(ho){return t(T,ho)}),dt&&Ao(T,xe),fe}function ce(T,_,b,G){var fe=pe(b);if(typeof fe!="function")throw Error(P(150));if(b=fe.call(b),b==null)throw Error(P(151));for(var me=fe=null,ye=_,xe=_=0,It=null,Ue=b.next();ye!==null&&!Ue.done;xe++,Ue=b.next()){ye.index>xe?(It=ye,ye=null):It=ye.sibling;var ho=U(T,ye,Ue.value,G);if(ho===null){ye===null&&(ye=It);break}e&&ye&&ho.alternate===null&&t(T,ye),_=a(ho,_,xe),me===null?fe=ho:me.sibling=ho,me=ho,ye=It}if(Ue.done)return n(T,ye),dt&&Ao(T,xe),fe;if(ye===null){for(;!Ue.done;xe++,Ue=b.next())Ue=H(T,Ue.value,G),Ue!==null&&(_=a(Ue,_,xe),me===null?fe=Ue:me.sibling=Ue,me=Ue);return dt&&Ao(T,xe),fe}for(ye=o(T,ye);!Ue.done;xe++,Ue=b.next())Ue=ie(ye,T,xe,Ue.value,G),Ue!==null&&(e&&Ue.alternate!==null&&ye.delete(Ue.key===null?xe:Ue.key),_=a(Ue,_,xe),me===null?fe=Ue:me.sibling=Ue,me=Ue);return e&&ye.forEach(function(Uf){return t(T,Uf)}),dt&&Ao(T,xe),fe}function xt(T,_,b,G){if(typeof b=="object"&&b!==null&&b.type===ze&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case $t:e:{for(var fe=b.key,me=_;me!==null;){if(me.key===fe){if(fe=b.type,fe===ze){if(me.tag===7){n(T,me.sibling),_=u(me,b.props.children),_.return=T,T=_;break e}}else if(me.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ct&&ws(fe)===me.type){n(T,me.sibling),_=u(me,b.props),_.ref=tu(T,me,b),_.return=T,T=_;break e}n(T,me);break}else t(T,me);me=me.sibling}b.type===ze?(_=Vo(b.props.children,T.mode,G,b.key),_.return=T,T=_):(G=vl(b.type,b.key,b.props,null,T.mode,G),G.ref=tu(T,_,b),G.return=T,T=G)}return d(T);case Ie:e:{for(me=b.key;_!==null;){if(_.key===me)if(_.tag===4&&_.stateNode.containerInfo===b.containerInfo&&_.stateNode.implementation===b.implementation){n(T,_.sibling),_=u(_,b.children||[]),_.return=T,T=_;break e}else{n(T,_);break}else t(T,_);_=_.sibling}_=Ua(b,T.mode,G),_.return=T,T=_}return d(T);case ct:return me=b._init,xt(T,_,me(b._payload),G)}if(Qe(b))return ae(T,_,b,G);if(pe(b))return ce(T,_,b,G);Wu(T,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,_!==null&&_.tag===6?(n(T,_.sibling),_=u(_,b),_.return=T,T=_):(n(T,_),_=Ba(b,T.mode,G),_.return=T,T=_),d(T)):n(T,_)}return xt}var ki=xs(!0),_s=xs(!1),Qu=no(null),Yu=null,Si=null,Jl=null;function Zl(){Jl=Si=Yu=null}function ea(e){var t=Qu.current;at(Qu),e._currentValue=t}function ta(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){Yu=e,Jl=Si=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(an=!0),e.firstContext=null)}function _n(e){var t=e._currentValue;if(Jl!==e)if(e={context:e,memoizedValue:t,next:null},Si===null){if(Yu===null)throw Error(P(308));Si=e,Yu.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Lo=null;function na(e){Lo===null?Lo=[e]:Lo.push(e)}function ks(e,t,n,o){var u=t.interleaved;return u===null?(n.next=n,na(t)):(n.next=u.next,u.next=n),t.interleaved=n,Tr(e,o)}function Tr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var io=!1;function ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ss(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 br(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,($e&2)!==0){var u=o.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),o.pending=t,Tr(e,n)}return u=o.interleaved,u===null?(t.next=t,na(o)):(t.next=u.next,u.next=t),o.interleaved=t,Tr(e,n)}function Gu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Vr(e,n)}}function Es(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var u=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?u=a=d:a=a.next=d,n=n.next}while(n!==null);a===null?u=a=t:a=a.next=t}else u=a=t;n={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:a,shared:o.shared,effects:o.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xu(e,t,n,o){var u=e.updateQueue;io=!1;var a=u.firstBaseUpdate,d=u.lastBaseUpdate,m=u.shared.pending;if(m!==null){u.shared.pending=null;var y=m,D=y.next;y.next=null,d===null?a=D:d.next=D,d=y;var V=e.alternate;V!==null&&(V=V.updateQueue,m=V.lastBaseUpdate,m!==d&&(m===null?V.firstBaseUpdate=D:m.next=D,V.lastBaseUpdate=y))}if(a!==null){var H=u.baseState;d=0,V=D=y=null,m=a;do{var U=m.lane,ie=m.eventTime;if((o&U)===U){V!==null&&(V=V.next={eventTime:ie,lane:0,tag:m.tag,payload:m.payload,callback:m.callback,next:null});e:{var ae=e,ce=m;switch(U=t,ie=n,ce.tag){case 1:if(ae=ce.payload,typeof ae=="function"){H=ae.call(ie,H,U);break e}H=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=ce.payload,U=typeof ae=="function"?ae.call(ie,H,U):ae,U==null)break e;H=te({},H,U);break e;case 2:io=!0}}m.callback!==null&&m.lane!==0&&(e.flags|=64,U=u.effects,U===null?u.effects=[m]:U.push(m))}else ie={eventTime:ie,lane:U,tag:m.tag,payload:m.payload,callback:m.callback,next:null},V===null?(D=V=ie,y=H):V=V.next=ie,d|=U;if(m=m.next,m===null){if(m=u.shared.pending,m===null)break;U=m,m=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);if(V===null&&(y=H),u.baseState=y,u.firstBaseUpdate=D,u.lastBaseUpdate=V,t=u.shared.interleaved,t!==null){u=t;do d|=u.lane,u=u.next;while(u!==t)}else a===null&&(u.shared.lanes=0);Ko|=d,e.lanes=d,e.memoizedState=H}}function Cs(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],u=o.callback;if(u!==null){if(o.callback=null,o=n,typeof u!="function")throw Error(P(191,u));u.call(o)}}}var nu={},er=no(nu),ru=no(nu),ou=no(nu);function Mo(e){if(e===nu)throw Error(P(174));return e}function oa(e,t){switch(ot(ou,t),ot(ru,e),ot(er,nu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bt(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bt(t,e)}at(er),ot(er,t)}function Ci(){at(er),at(ru),at(ou)}function Ps(e){Mo(ou.current);var t=Mo(er.current),n=Bt(t,e.type);t!==n&&(ot(ru,e),ot(er,n))}function ia(e){ru.current===e&&(at(er),at(ru))}var mt=no(0);function Ju(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)!==0)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 ua=[];function la(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var Zu=nt.ReactCurrentDispatcher,aa=nt.ReactCurrentBatchConfig,Fo=0,yt=null,Pt=null,Rt=null,el=!1,iu=!1,uu=0,ff=0;function Wt(){throw Error(P(321))}function sa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!N(e[n],t[n]))return!1;return!0}function ca(e,t,n,o,u,a){if(Fo=a,yt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zu.current=e===null||e.memoizedState===null?mf:yf,e=n(o,u),iu){a=0;do{if(iu=!1,uu=0,25<=a)throw Error(P(301));a+=1,Rt=Pt=null,t.updateQueue=null,Zu.current=vf,e=n(o,u)}while(iu)}if(Zu.current=rl,t=Pt!==null&&Pt.next!==null,Fo=0,Rt=Pt=yt=null,el=!1,t)throw Error(P(300));return e}function fa(){var e=uu!==0;return uu=0,e}function tr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?yt.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function kn(){if(Pt===null){var e=yt.alternate;e=e!==null?e.memoizedState:null}else e=Pt.next;var t=Rt===null?yt.memoizedState:Rt.next;if(t!==null)Rt=t,Pt=e;else{if(e===null)throw Error(P(310));Pt=e,e={memoizedState:Pt.memoizedState,baseState:Pt.baseState,baseQueue:Pt.baseQueue,queue:Pt.queue,next:null},Rt===null?yt.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function lu(e,t){return typeof t=="function"?t(e):t}function da(e){var t=kn(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var o=Pt,u=o.baseQueue,a=n.pending;if(a!==null){if(u!==null){var d=u.next;u.next=a.next,a.next=d}o.baseQueue=u=a,n.pending=null}if(u!==null){a=u.next,o=o.baseState;var m=d=null,y=null,D=a;do{var V=D.lane;if((Fo&V)===V)y!==null&&(y=y.next={lane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),o=D.hasEagerState?D.eagerState:e(o,D.action);else{var H={lane:V,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null};y===null?(m=y=H,d=o):y=y.next=H,yt.lanes|=V,Ko|=V}D=D.next}while(D!==null&&D!==a);y===null?d=o:y.next=m,N(o,t.memoizedState)||(an=!0),t.memoizedState=o,t.baseState=d,t.baseQueue=y,n.lastRenderedState=o}if(e=n.interleaved,e!==null){u=e;do a=u.lane,yt.lanes|=a,Ko|=a,u=u.next;while(u!==e)}else u===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function pa(e){var t=kn(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var o=n.dispatch,u=n.pending,a=t.memoizedState;if(u!==null){n.pending=null;var d=u=u.next;do a=e(a,d.action),d=d.next;while(d!==u);N(a,t.memoizedState)||(an=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function Ns(){}function js(e,t){var n=yt,o=kn(),u=t(),a=!N(o.memoizedState,u);if(a&&(o.memoizedState=u,an=!0),o=o.queue,ha(bs.bind(null,n,o,e),[e]),o.getSnapshot!==t||a||Rt!==null&&Rt.memoizedState.tag&1){if(n.flags|=2048,au(9,Ts.bind(null,n,o,u,t),void 0,null),Dt===null)throw Error(P(349));(Fo&30)!==0||Os(n,t,u)}return u}function Os(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=yt.updateQueue,t===null?(t={lastEffect:null,stores:null},yt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ts(e,t,n,o){t.value=n,t.getSnapshot=o,Rs(t)&&Ds(e)}function bs(e,t,n){return n(function(){Rs(t)&&Ds(e)})}function Rs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!N(e,n)}catch{return!0}}function Ds(e){var t=Tr(e,1);t!==null&&Kn(t,e,1,-1)}function Is(e){var t=tr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:lu,lastRenderedState:e},t.queue=e,e=e.dispatch=hf.bind(null,yt,e),[t.memoizedState,e]}function au(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},t=yt.updateQueue,t===null?(t={lastEffect:null,stores:null},yt.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e)),e}function zs(){return kn().memoizedState}function tl(e,t,n,o){var u=tr();yt.flags|=e,u.memoizedState=au(1|t,n,void 0,o===void 0?null:o)}function nl(e,t,n,o){var u=kn();o=o===void 0?null:o;var a=void 0;if(Pt!==null){var d=Pt.memoizedState;if(a=d.destroy,o!==null&&sa(o,d.deps)){u.memoizedState=au(t,n,a,o);return}}yt.flags|=e,u.memoizedState=au(1|t,n,a,o)}function As(e,t){return tl(8390656,8,e,t)}function ha(e,t){return nl(2048,8,e,t)}function Ls(e,t){return nl(4,2,e,t)}function Ms(e,t){return nl(4,4,e,t)}function Fs(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 Ks(e,t,n){return n=n!=null?n.concat([e]):null,nl(4,4,Fs.bind(null,t,e),n)}function ma(){}function $s(e,t){var n=kn();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&sa(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Bs(e,t){var n=kn();t=t===void 0?null:t;var o=n.memoizedState;return o!==null&&t!==null&&sa(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Us(e,t,n){return(Fo&21)===0?(e.baseState&&(e.baseState=!1,an=!0),e.memoizedState=n):(N(n,t)||(n=Xo(),yt.lanes|=n,Ko|=n,e.baseState=!0),t)}function df(e,t){var n=Be;Be=n!==0&&4>n?n:4,e(!0);var o=aa.transition;aa.transition={};try{e(!1),t()}finally{Be=n,aa.transition=o}}function Vs(){return kn().memoizedState}function pf(e,t,n){var o=co(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},qs(e))Hs(t,n);else if(n=ks(e,t,n,o),n!==null){var u=Jt();Kn(n,e,o,u),Ws(n,t,o)}}function hf(e,t,n){var o=co(e),u={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(qs(e))Hs(t,u);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var d=t.lastRenderedState,m=a(d,n);if(u.hasEagerState=!0,u.eagerState=m,N(m,d)){var y=t.interleaved;y===null?(u.next=u,na(t)):(u.next=y.next,y.next=u),t.interleaved=u;return}}catch{}finally{}n=ks(e,t,u,o),n!==null&&(u=Jt(),Kn(n,e,o,u),Ws(n,t,o))}}function qs(e){var t=e.alternate;return e===yt||t!==null&&t===yt}function Hs(e,t){iu=el=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ws(e,t,n){if((n&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,Vr(e,n)}}var rl={readContext:_n,useCallback:Wt,useContext:Wt,useEffect:Wt,useImperativeHandle:Wt,useInsertionEffect:Wt,useLayoutEffect:Wt,useMemo:Wt,useReducer:Wt,useRef:Wt,useState:Wt,useDebugValue:Wt,useDeferredValue:Wt,useTransition:Wt,useMutableSource:Wt,useSyncExternalStore:Wt,useId:Wt,unstable_isNewReconciler:!1},mf={readContext:_n,useCallback:function(e,t){return tr().memoizedState=[e,t===void 0?null:t],e},useContext:_n,useEffect:As,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,tl(4194308,4,Fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tl(4194308,4,e,t)},useInsertionEffect:function(e,t){return tl(4,2,e,t)},useMemo:function(e,t){var n=tr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=tr();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=pf.bind(null,yt,e),[o.memoizedState,e]},useRef:function(e){var t=tr();return e={current:e},t.memoizedState=e},useState:Is,useDebugValue:ma,useDeferredValue:function(e){return tr().memoizedState=e},useTransition:function(){var e=Is(!1),t=e[0];return e=df.bind(null,e[1]),tr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=yt,u=tr();if(dt){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),Dt===null)throw Error(P(349));(Fo&30)!==0||Os(o,t,n)}u.memoizedState=n;var a={value:n,getSnapshot:t};return u.queue=a,As(bs.bind(null,o,a,e),[e]),o.flags|=2048,au(9,Ts.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=tr(),t=Dt.identifierPrefix;if(dt){var n=Or,o=jr;n=(o&~(1<<32-nn(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=uu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ff++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yf={readContext:_n,useCallback:$s,useContext:_n,useEffect:ha,useImperativeHandle:Ks,useInsertionEffect:Ls,useLayoutEffect:Ms,useMemo:Bs,useReducer:da,useRef:zs,useState:function(){return da(lu)},useDebugValue:ma,useDeferredValue:function(e){var t=kn();return Us(t,Pt.memoizedState,e)},useTransition:function(){var e=da(lu)[0],t=kn().memoizedState;return[e,t]},useMutableSource:Ns,useSyncExternalStore:js,useId:Vs,unstable_isNewReconciler:!1},vf={readContext:_n,useCallback:$s,useContext:_n,useEffect:ha,useImperativeHandle:Ks,useInsertionEffect:Ls,useLayoutEffect:Ms,useMemo:Bs,useReducer:pa,useRef:zs,useState:function(){return pa(lu)},useDebugValue:ma,useDeferredValue:function(e){var t=kn();return Pt===null?t.memoizedState=e:Us(t,Pt.memoizedState,e)},useTransition:function(){var e=pa(lu)[0],t=kn().memoizedState;return[e,t]},useMutableSource:Ns,useSyncExternalStore:js,useId:Vs,unstable_isNewReconciler:!1};function Ln(e,t){if(e&&e.defaultProps){t=te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ya(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return(e=e._reactInternals)?Ut(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=Jt(),u=co(e),a=br(o,u);a.payload=t,n!=null&&(a.callback=n),t=uo(e,a,u),t!==null&&(Kn(t,e,u,o),Gu(t,e,u))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=Jt(),u=co(e),a=br(o,u);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=uo(e,a,u),t!==null&&(Kn(t,e,u,o),Gu(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Jt(),o=co(e),u=br(n,o);u.tag=2,t!=null&&(u.callback=t),t=uo(e,u,o),t!==null&&(Kn(t,e,o,n),Gu(t,e,o))}};function Qs(e,t,n,o,u,a,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,a,d):t.prototype&&t.prototype.isPureReactComponent?!x(n,o)||!x(u,a):!0}function Ys(e,t,n){var o=!1,u=ro,a=t.contextType;return typeof a=="object"&&a!==null?a=_n(a):(u=ln(t)?Io:Ht.current,o=t.contextTypes,a=(o=o!=null)?gi(e,u):ro),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=a),t}function Gs(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function va(e,t,n,o){var u=e.stateNode;u.props=n,u.state=e.memoizedState,u.refs={},ra(e);var a=t.contextType;typeof a=="object"&&a!==null?u.context=_n(a):(a=ln(t)?Io:Ht.current,u.context=gi(e,a)),u.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(ya(e,t,a,n),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&ol.enqueueReplaceState(u,u.state,null),Xu(e,n,u,o),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function Pi(e,t){try{var n="",o=t;do n+=be(o),o=o.return;while(o);var u=n}catch(a){u=`
39
+ Error generating stack: `+a.message+`
40
+ `+a.stack}return{value:e,source:t,stack:u,digest:null}}function ga(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function wa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var gf=typeof WeakMap=="function"?WeakMap:Map;function Xs(e,t,n){n=br(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){fl||(fl=!0,Ia=o),wa(e,t)},n}function Js(e,t,n){n=br(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var u=t.value;n.payload=function(){return o(u)},n.callback=function(){wa(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){wa(e,t),typeof o!="function"&&(ao===null?ao=new Set([this]):ao.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),n}function Zs(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new gf;var u=new Set;o.set(t,u)}else u=o.get(t),u===void 0&&(u=new Set,o.set(t,u));u.has(n)||(u.add(n),e=Rf.bind(null,e,t,n),t.then(e,e))}function ec(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 tc(e,t,n,o,u){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=br(-1,1),t.tag=2,uo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var wf=nt.ReactCurrentOwner,an=!1;function Xt(e,t,n,o){t.child=e===null?_s(t,null,n,o):ki(t,e.child,n,o)}function nc(e,t,n,o,u){n=n.render;var a=t.ref;return Ei(t,u),o=ca(e,t,n,o,a,u),n=fa(),e!==null&&!an?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,Rr(e,t,u)):(dt&&n&&Wl(t),t.flags|=1,Xt(e,t,o,u),t.child)}function rc(e,t,n,o,u){if(e===null){var a=n.type;return typeof a=="function"&&!$a(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,oc(e,t,a,o,u)):(e=vl(n.type,null,o,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&u)===0){var d=a.memoizedProps;if(n=n.compare,n=n!==null?n:x,n(d,o)&&e.ref===t.ref)return Rr(e,t,u)}return t.flags|=1,e=po(a,o),e.ref=t.ref,e.return=t,t.child=e}function oc(e,t,n,o,u){if(e!==null){var a=e.memoizedProps;if(x(a,o)&&e.ref===t.ref)if(an=!1,t.pendingProps=o=a,(e.lanes&u)!==0)(e.flags&131072)!==0&&(an=!0);else return t.lanes=e.lanes,Rr(e,t,u)}return xa(e,t,n,o,u)}function ic(e,t,n){var o=t.pendingProps,u=o.children,a=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(ji,yn),yn|=n;else{if((n&1073741824)===0)return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ot(ji,yn),yn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=a!==null?a.baseLanes:n,ot(ji,yn),yn|=o}else a!==null?(o=a.baseLanes|n,t.memoizedState=null):o=n,ot(ji,yn),yn|=o;return Xt(e,t,u,n),t.child}function uc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xa(e,t,n,o,u){var a=ln(n)?Io:Ht.current;return a=gi(t,a),Ei(t,u),n=ca(e,t,n,o,a,u),o=fa(),e!==null&&!an?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,Rr(e,t,u)):(dt&&o&&Wl(t),t.flags|=1,Xt(e,t,n,u),t.child)}function lc(e,t,n,o,u){if(ln(n)){var a=!0;Bu(t)}else a=!1;if(Ei(t,u),t.stateNode===null)ul(e,t),Ys(t,n,o),va(t,n,o,u),o=!0;else if(e===null){var d=t.stateNode,m=t.memoizedProps;d.props=m;var y=d.context,D=n.contextType;typeof D=="object"&&D!==null?D=_n(D):(D=ln(n)?Io:Ht.current,D=gi(t,D));var V=n.getDerivedStateFromProps,H=typeof V=="function"||typeof d.getSnapshotBeforeUpdate=="function";H||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(m!==o||y!==D)&&Gs(t,d,o,D),io=!1;var U=t.memoizedState;d.state=U,Xu(t,o,d,u),y=t.memoizedState,m!==o||U!==y||un.current||io?(typeof V=="function"&&(ya(t,n,V,o),y=t.memoizedState),(m=io||Qs(t,n,m,o,U,y,D))?(H||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=y),d.props=o,d.state=y,d.context=D,o=m):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{d=t.stateNode,Ss(e,t),m=t.memoizedProps,D=t.type===t.elementType?m:Ln(t.type,m),d.props=D,H=t.pendingProps,U=d.context,y=n.contextType,typeof y=="object"&&y!==null?y=_n(y):(y=ln(n)?Io:Ht.current,y=gi(t,y));var ie=n.getDerivedStateFromProps;(V=typeof ie=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(m!==H||U!==y)&&Gs(t,d,o,y),io=!1,U=t.memoizedState,d.state=U,Xu(t,o,d,u);var ae=t.memoizedState;m!==H||U!==ae||un.current||io?(typeof ie=="function"&&(ya(t,n,ie,o),ae=t.memoizedState),(D=io||Qs(t,n,D,o,U,ae,y)||!1)?(V||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,ae,y),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,ae,y)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=ae),d.props=o,d.state=ae,d.context=y,o=D):(typeof d.componentDidUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),o=!1)}return _a(e,t,n,o,a,u)}function _a(e,t,n,o,u,a){uc(e,t);var d=(t.flags&128)!==0;if(!o&&!d)return u&&ds(t,n,!1),Rr(e,t,a);o=t.stateNode,wf.current=t;var m=d&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&d?(t.child=ki(t,e.child,null,a),t.child=ki(t,null,m,a)):Xt(e,t,m,a),t.memoizedState=o.state,u&&ds(t,n,!0),t.child}function ac(e){var t=e.stateNode;t.pendingContext?cs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&cs(e,t.context,!1),oa(e,t.containerInfo)}function sc(e,t,n,o,u){return _i(),Xl(u),t.flags|=256,Xt(e,t,n,o),t.child}var ka={dehydrated:null,treeContext:null,retryLane:0};function Sa(e){return{baseLanes:e,cachePool:null,transitions:null}}function cc(e,t,n){var o=t.pendingProps,u=mt.current,a=!1,d=(t.flags&128)!==0,m;if((m=d)||(m=e!==null&&e.memoizedState===null?!1:(u&2)!==0),m?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),ot(mt,u&1),e===null)return Gl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(d=o.children,e=o.fallback,a?(o=t.mode,a=t.child,d={mode:"hidden",children:d},(o&1)===0&&a!==null?(a.childLanes=0,a.pendingProps=d):a=gl(d,o,0,null),e=Vo(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Sa(n),t.memoizedState=ka,e):Ea(t,d));if(u=e.memoizedState,u!==null&&(m=u.dehydrated,m!==null))return xf(e,t,d,o,m,u,n);if(a){a=o.fallback,d=t.mode,u=e.child,m=u.sibling;var y={mode:"hidden",children:o.children};return(d&1)===0&&t.child!==u?(o=t.child,o.childLanes=0,o.pendingProps=y,t.deletions=null):(o=po(u,y),o.subtreeFlags=u.subtreeFlags&14680064),m!==null?a=po(m,a):(a=Vo(a,d,n,null),a.flags|=2),a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,d=e.child.memoizedState,d=d===null?Sa(n):{baseLanes:d.baseLanes|n,cachePool:null,transitions:d.transitions},a.memoizedState=d,a.childLanes=e.childLanes&~n,t.memoizedState=ka,o}return a=e.child,e=a.sibling,o=po(a,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ea(e,t){return t=gl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function il(e,t,n,o){return o!==null&&Xl(o),ki(t,e.child,null,n),e=Ea(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xf(e,t,n,o,u,a,d){if(n)return t.flags&256?(t.flags&=-257,o=ga(Error(P(422))),il(e,t,d,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=o.fallback,u=t.mode,o=gl({mode:"visible",children:o.children},u,0,null),a=Vo(a,u,d,null),a.flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,(t.mode&1)!==0&&ki(t,e.child,null,d),t.child.memoizedState=Sa(d),t.memoizedState=ka,a);if((t.mode&1)===0)return il(e,t,d,null);if(u.data==="$!"){if(o=u.nextSibling&&u.nextSibling.dataset,o)var m=o.dgst;return o=m,a=Error(P(419)),o=ga(a,o,void 0),il(e,t,d,o)}if(m=(d&e.childLanes)!==0,an||m){if(o=Dt,o!==null){switch(d&-d){case 4:u=2;break;case 16:u=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:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(o.suspendedLanes|d))!==0?0:u,u!==0&&u!==a.retryLane&&(a.retryLane=u,Tr(e,u),Kn(o,e,u,-1))}return Ka(),o=ga(Error(P(421))),il(e,t,d,o)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=Df.bind(null,e),u._reactRetry=t,null):(e=a.treeContext,mn=to(u.nextSibling),hn=t,dt=!0,An=null,e!==null&&(wn[xn++]=jr,wn[xn++]=Or,wn[xn++]=zo,jr=e.id,Or=e.overflow,zo=t),t=Ea(t,o.children),t.flags|=4096,t)}function fc(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),ta(e.return,t,n)}function Ca(e,t,n,o,u){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:u}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=o,a.tail=n,a.tailMode=u)}function dc(e,t,n){var o=t.pendingProps,u=o.revealOrder,a=o.tail;if(Xt(e,t,o.children,n),o=mt.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fc(e,n,t);else if(e.tag===19)fc(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}o&=1}if(ot(mt,o),(t.mode&1)===0)t.memoizedState=null;else switch(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&Ju(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Ca(t,!1,u,n,a);break;case"backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Ju(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Ca(t,!0,n,null,a);break;case"together":Ca(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ko|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=po(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=po(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _f(e,t,n){switch(t.tag){case 3:ac(t),_i();break;case 5:Ps(t);break;case 1:ln(t.type)&&Bu(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,u=t.memoizedProps.value;ot(Qu,o._currentValue),o._currentValue=u;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(ot(mt,mt.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?cc(e,t,n):(ot(mt,mt.current&1),e=Rr(e,t,n),e!==null?e.sibling:null);ot(mt,mt.current&1);break;case 19:if(o=(n&t.childLanes)!==0,(e.flags&128)!==0){if(o)return dc(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ot(mt,mt.current),o)break;return null;case 22:case 23:return t.lanes=0,ic(e,t,n)}return Rr(e,t,n)}var pc,Pa,hc,mc;pc=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}},Pa=function(){},hc=function(e,t,n,o){var u=e.memoizedProps;if(u!==o){e=t.stateNode,Mo(er.current);var a=null;switch(n){case"input":u=mo(e,u),o=mo(e,o),a=[];break;case"select":u=te({},u,{value:void 0}),o=te({},o,{value:void 0}),a=[];break;case"textarea":u=Ir(e,u),o=Ir(e,o),a=[];break;default:typeof u.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Fu)}se(n,o);var d;n=null;for(D in u)if(!o.hasOwnProperty(D)&&u.hasOwnProperty(D)&&u[D]!=null)if(D==="style"){var m=u[D];for(d in m)m.hasOwnProperty(d)&&(n||(n={}),n[d]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(J.hasOwnProperty(D)?a||(a=[]):(a=a||[]).push(D,null));for(D in o){var y=o[D];if(m=u!=null?u[D]:void 0,o.hasOwnProperty(D)&&y!==m&&(y!=null||m!=null))if(D==="style")if(m){for(d in m)!m.hasOwnProperty(d)||y&&y.hasOwnProperty(d)||(n||(n={}),n[d]="");for(d in y)y.hasOwnProperty(d)&&m[d]!==y[d]&&(n||(n={}),n[d]=y[d])}else n||(a||(a=[]),a.push(D,n)),n=y;else D==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,m=m?m.__html:void 0,y!=null&&m!==y&&(a=a||[]).push(D,y)):D==="children"?typeof y!="string"&&typeof y!="number"||(a=a||[]).push(D,""+y):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(J.hasOwnProperty(D)?(y!=null&&D==="onScroll"&&lt("scroll",e),a||m===y||(a=[])):(a=a||[]).push(D,y))}n&&(a=a||[]).push("style",n);var D=a;(t.updateQueue=D)&&(t.flags|=4)}},mc=function(e,t,n,o){n!==o&&(t.flags|=4)};function su(e,t){if(!dt)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 o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Qt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,o|=u.subtreeFlags&14680064,o|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function kf(e,t,n){var o=t.pendingProps;switch(Ql(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(t),null;case 1:return ln(t.type)&&$u(),Qt(t),null;case 3:return o=t.stateNode,Ci(),at(un),at(Ht),la(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Hu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,An!==null&&(La(An),An=null))),Pa(e,t),Qt(t),null;case 5:ia(t);var u=Mo(ou.current);if(n=t.type,e!==null&&t.stateNode!=null)hc(e,t,n,o,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(P(166));return Qt(t),null}if(e=Mo(er.current),Hu(t)){o=t.stateNode,n=t.type;var a=t.memoizedProps;switch(o[Zn]=t,o[Zi]=a,e=(t.mode&1)!==0,n){case"dialog":lt("cancel",o),lt("close",o);break;case"iframe":case"object":case"embed":lt("load",o);break;case"video":case"audio":for(u=0;u<Cr.length;u++)lt(Cr[u],o);break;case"source":lt("error",o);break;case"img":case"image":case"link":lt("error",o),lt("load",o);break;case"details":lt("toggle",o);break;case"input":M(o,a),lt("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!a.multiple},lt("invalid",o);break;case"textarea":Cn(o,a),lt("invalid",o)}se(n,a),u=null;for(var d in a)if(a.hasOwnProperty(d)){var m=a[d];d==="children"?typeof m=="string"?o.textContent!==m&&(a.suppressHydrationWarning!==!0&&Mu(o.textContent,m,e),u=["children",m]):typeof m=="number"&&o.textContent!==""+m&&(a.suppressHydrationWarning!==!0&&Mu(o.textContent,m,e),u=["children",""+m]):J.hasOwnProperty(d)&&m!=null&&d==="onScroll"&&lt("scroll",o)}switch(n){case"input":rr(o),vt(o,a,!0);break;case"textarea":rr(o),Pn(o);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(o.onclick=Fu)}o=u,t.updateQueue=o,o!==null&&(t.flags|=4)}else{d=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ct(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(n,{is:o.is}):(e=d.createElement(n),n==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,n),e[Zn]=t,e[Zi]=o,pc(e,t,!1,!1),t.stateNode=e;e:{switch(d=ur(n,o),n){case"dialog":lt("cancel",e),lt("close",e),u=o;break;case"iframe":case"object":case"embed":lt("load",e),u=o;break;case"video":case"audio":for(u=0;u<Cr.length;u++)lt(Cr[u],e);u=o;break;case"source":lt("error",e),u=o;break;case"img":case"image":case"link":lt("error",e),lt("load",e),u=o;break;case"details":lt("toggle",e),u=o;break;case"input":M(e,o),u=mo(e,o),lt("invalid",e);break;case"option":u=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},u=te({},o,{value:void 0}),lt("invalid",e);break;case"textarea":Cn(e,o),u=Ir(e,o),lt("invalid",e);break;default:u=o}se(n,u),m=u;for(a in m)if(m.hasOwnProperty(a)){var y=m[a];a==="style"?qo(e,y):a==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,y!=null&&Ar(e,y)):a==="children"?typeof y=="string"?(n!=="textarea"||y!=="")&&or(e,y):typeof y=="number"&&or(e,""+y):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(J.hasOwnProperty(a)?y!=null&&a==="onScroll"&&lt("scroll",e):y!=null&&zt(e,a,y,d))}switch(n){case"input":rr(e),vt(e,o,!1);break;case"textarea":rr(e),Pn(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Le(o.value));break;case"select":e.multiple=!!o.multiple,a=o.value,a!=null?Ge(e,!!o.multiple,a,!1):o.defaultValue!=null&&Ge(e,!!o.multiple,o.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=Fu)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Qt(t),null;case 6:if(e&&t.stateNode!=null)mc(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(P(166));if(n=Mo(ou.current),Mo(er.current),Hu(t)){if(o=t.stateNode,n=t.memoizedProps,o[Zn]=t,(a=o.nodeValue!==n)&&(e=hn,e!==null))switch(e.tag){case 3:Mu(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Mu(o.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[Zn]=t,t.stateNode=o}return Qt(t),null;case 13:if(at(mt),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dt&&mn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)gs(),_i(),t.flags|=98560,a=!1;else if(a=Hu(t),o!==null&&o.dehydrated!==null){if(e===null){if(!a)throw Error(P(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(P(317));a[Zn]=t}else _i(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qt(t),a=!1}else An!==null&&(La(An),An=null),a=!0;if(!a)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(mt.current&1)!==0?Nt===0&&(Nt=3):Ka())),t.updateQueue!==null&&(t.flags|=4),Qt(t),null);case 4:return Ci(),Pa(e,t),e===null&&Xi(t.stateNode.containerInfo),Qt(t),null;case 10:return ea(t.type._context),Qt(t),null;case 17:return ln(t.type)&&$u(),Qt(t),null;case 19:if(at(mt),a=t.memoizedState,a===null)return Qt(t),null;if(o=(t.flags&128)!==0,d=a.rendering,d===null)if(o)su(a,!1);else{if(Nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Ju(e),d!==null){for(t.flags|=128,su(a,!1),o=d.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)a=n,e=o,a.flags&=14680066,d=a.alternate,d===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=d.childLanes,a.lanes=d.lanes,a.child=d.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=d.memoizedProps,a.memoizedState=d.memoizedState,a.updateQueue=d.updateQueue,a.type=d.type,e=d.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ot(mt,mt.current&1|2),t.child}e=e.sibling}a.tail!==null&&He()>Oi&&(t.flags|=128,o=!0,su(a,!1),t.lanes=4194304)}else{if(!o)if(e=Ju(d),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),su(a,!0),a.tail===null&&a.tailMode==="hidden"&&!d.alternate&&!dt)return Qt(t),null}else 2*He()-a.renderingStartTime>Oi&&n!==1073741824&&(t.flags|=128,o=!0,su(a,!1),t.lanes=4194304);a.isBackwards?(d.sibling=t.child,t.child=d):(n=a.last,n!==null?n.sibling=d:t.child=d,a.last=d)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=He(),t.sibling=null,n=mt.current,ot(mt,o?n&1|2:n&1),t):(Qt(t),null);case 22:case 23:return Fa(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(yn&1073741824)!==0&&(Qt(t),t.subtreeFlags&6&&(t.flags|=8192)):Qt(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Sf(e,t){switch(Ql(t),t.tag){case 1:return ln(t.type)&&$u(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ci(),at(un),at(Ht),la(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ia(t),null;case 13:if(at(mt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));_i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return at(mt),null;case 4:return Ci(),null;case 10:return ea(t.type._context),null;case 22:case 23:return Fa(),null;case 24:return null;default:return null}}var ll=!1,Yt=!1,Ef=typeof WeakSet=="function"?WeakSet:Set,le=null;function Ni(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){gt(e,t,o)}else n.current=null}function Na(e,t,n){try{n()}catch(o){gt(e,t,o)}}var yc=!1;function Cf(e,t){if(Fl=ei,e=S(),k(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var u=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var d=0,m=-1,y=-1,D=0,V=0,H=e,U=null;t:for(;;){for(var ie;H!==n||u!==0&&H.nodeType!==3||(m=d+u),H!==a||o!==0&&H.nodeType!==3||(y=d+o),H.nodeType===3&&(d+=H.nodeValue.length),(ie=H.firstChild)!==null;)U=H,H=ie;for(;;){if(H===e)break t;if(U===n&&++D===u&&(m=d),U===a&&++V===o&&(y=d),(ie=H.nextSibling)!==null)break;H=U,U=H.parentNode}H=ie}n=m===-1||y===-1?null:{start:m,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kl={focusedElem:e,selectionRange:n},ei=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var ae=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ae!==null){var ce=ae.memoizedProps,xt=ae.memoizedState,T=t.stateNode,_=T.getSnapshotBeforeUpdate(t.elementType===t.type?ce:Ln(t.type,ce),xt);T.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(G){gt(t,t.return,G)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return ae=yc,yc=!1,ae}function cu(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var u=o=o.next;do{if((u.tag&e)===e){var a=u.destroy;u.destroy=void 0,a!==void 0&&Na(t,n,a)}u=u.next}while(u!==o)}}function al(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 o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function ja(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 vc(e){var t=e.alternate;t!==null&&(e.alternate=null,vc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zn],delete t[Zi],delete t[Vl],delete t[lf],delete t[af])),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 gc(e){return e.tag===5||e.tag===3||e.tag===4}function wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gc(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 Oa(e,t,n){var o=e.tag;if(o===5||o===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=Fu));else if(o!==4&&(e=e.child,e!==null))for(Oa(e,t,n),e=e.sibling;e!==null;)Oa(e,t,n),e=e.sibling}function Ta(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Ta(e,t,n),e=e.sibling;e!==null;)Ta(e,t,n),e=e.sibling}var Ft=null,Mn=!1;function lo(e,t,n){for(n=n.child;n!==null;)xc(e,t,n),n=n.sibling}function xc(e,t,n){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(hr,n)}catch{}switch(n.tag){case 5:Yt||Ni(n,t);case 6:var o=Ft,u=Mn;Ft=null,lo(e,t,n),Ft=o,Mn=u,Ft!==null&&(Mn?(e=Ft,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ft.removeChild(n.stateNode));break;case 18:Ft!==null&&(Mn?(e=Ft,n=n.stateNode,e.nodeType===8?Ul(e.parentNode,n):e.nodeType===1&&Ul(e,n),yr(e)):Ul(Ft,n.stateNode));break;case 4:o=Ft,u=Mn,Ft=n.stateNode.containerInfo,Mn=!0,lo(e,t,n),Ft=o,Mn=u;break;case 0:case 11:case 14:case 15:if(!Yt&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){u=o=o.next;do{var a=u,d=a.destroy;a=a.tag,d!==void 0&&((a&2)!==0||(a&4)!==0)&&Na(n,t,d),u=u.next}while(u!==o)}lo(e,t,n);break;case 1:if(!Yt&&(Ni(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(m){gt(n,t,m)}lo(e,t,n);break;case 21:lo(e,t,n);break;case 22:n.mode&1?(Yt=(o=Yt)||n.memoizedState!==null,lo(e,t,n),Yt=o):lo(e,t,n);break;default:lo(e,t,n)}}function _c(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ef),t.forEach(function(o){var u=If.bind(null,e,o);n.has(o)||(n.add(o),o.then(u,u))})}}function Fn(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var u=n[o];try{var a=e,d=t,m=d;e:for(;m!==null;){switch(m.tag){case 5:Ft=m.stateNode,Mn=!1;break e;case 3:Ft=m.stateNode.containerInfo,Mn=!0;break e;case 4:Ft=m.stateNode.containerInfo,Mn=!0;break e}m=m.return}if(Ft===null)throw Error(P(160));xc(a,d,u),Ft=null,Mn=!1;var y=u.alternate;y!==null&&(y.return=null),u.return=null}catch(D){gt(u,t,D)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kc(t,e),t=t.sibling}function kc(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Fn(t,e),nr(e),o&4){try{cu(3,e,e.return),al(3,e)}catch(ce){gt(e,e.return,ce)}try{cu(5,e,e.return)}catch(ce){gt(e,e.return,ce)}}break;case 1:Fn(t,e),nr(e),o&512&&n!==null&&Ni(n,n.return);break;case 5:if(Fn(t,e),nr(e),o&512&&n!==null&&Ni(n,n.return),e.flags&32){var u=e.stateNode;try{or(u,"")}catch(ce){gt(e,e.return,ce)}}if(o&4&&(u=e.stateNode,u!=null)){var a=e.memoizedProps,d=n!==null?n.memoizedProps:a,m=e.type,y=e.updateQueue;if(e.updateQueue=null,y!==null)try{m==="input"&&a.type==="radio"&&a.name!=null&&Me(u,a),ur(m,d);var D=ur(m,a);for(d=0;d<y.length;d+=2){var V=y[d],H=y[d+1];V==="style"?qo(u,H):V==="dangerouslySetInnerHTML"?Ar(u,H):V==="children"?or(u,H):zt(u,V,H,D)}switch(m){case"input":qe(u,a);break;case"textarea":zr(u,a);break;case"select":var U=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!a.multiple;var ie=a.value;ie!=null?Ge(u,!!a.multiple,ie,!1):U!==!!a.multiple&&(a.defaultValue!=null?Ge(u,!!a.multiple,a.defaultValue,!0):Ge(u,!!a.multiple,a.multiple?[]:"",!1))}u[Zi]=a}catch(ce){gt(e,e.return,ce)}}break;case 6:if(Fn(t,e),nr(e),o&4){if(e.stateNode===null)throw Error(P(162));u=e.stateNode,a=e.memoizedProps;try{u.nodeValue=a}catch(ce){gt(e,e.return,ce)}}break;case 3:if(Fn(t,e),nr(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{yr(t.containerInfo)}catch(ce){gt(e,e.return,ce)}break;case 4:Fn(t,e),nr(e);break;case 13:Fn(t,e),nr(e),u=e.child,u.flags&8192&&(a=u.memoizedState!==null,u.stateNode.isHidden=a,!a||u.alternate!==null&&u.alternate.memoizedState!==null||(Da=He())),o&4&&_c(e);break;case 22:if(V=n!==null&&n.memoizedState!==null,e.mode&1?(Yt=(D=Yt)||V,Fn(t,e),Yt=D):Fn(t,e),nr(e),o&8192){if(D=e.memoizedState!==null,(e.stateNode.isHidden=D)&&!V&&(e.mode&1)!==0)for(le=e,V=e.child;V!==null;){for(H=le=V;le!==null;){switch(U=le,ie=U.child,U.tag){case 0:case 11:case 14:case 15:cu(4,U,U.return);break;case 1:Ni(U,U.return);var ae=U.stateNode;if(typeof ae.componentWillUnmount=="function"){o=U,n=U.return;try{t=o,ae.props=t.memoizedProps,ae.state=t.memoizedState,ae.componentWillUnmount()}catch(ce){gt(o,n,ce)}}break;case 5:Ni(U,U.return);break;case 22:if(U.memoizedState!==null){Cc(H);continue}}ie!==null?(ie.return=U,le=ie):Cc(H)}V=V.sibling}e:for(V=null,H=e;;){if(H.tag===5){if(V===null){V=H;try{u=H.stateNode,D?(a=u.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(m=H.stateNode,y=H.memoizedProps.style,d=y!=null&&y.hasOwnProperty("display")?y.display:null,m.style.display=yo("display",d))}catch(ce){gt(e,e.return,ce)}}}else if(H.tag===6){if(V===null)try{H.stateNode.nodeValue=D?"":H.memoizedProps}catch(ce){gt(e,e.return,ce)}}else if((H.tag!==22&&H.tag!==23||H.memoizedState===null||H===e)&&H.child!==null){H.child.return=H,H=H.child;continue}if(H===e)break e;for(;H.sibling===null;){if(H.return===null||H.return===e)break e;V===H&&(V=null),H=H.return}V===H&&(V=null),H.sibling.return=H.return,H=H.sibling}}break;case 19:Fn(t,e),nr(e),o&4&&_c(e);break;case 21:break;default:Fn(t,e),nr(e)}}function nr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gc(n)){var o=n;break e}n=n.return}throw Error(P(160))}switch(o.tag){case 5:var u=o.stateNode;o.flags&32&&(or(u,""),o.flags&=-33);var a=wc(e);Ta(e,a,u);break;case 3:case 4:var d=o.stateNode.containerInfo,m=wc(e);Oa(e,m,d);break;default:throw Error(P(161))}}catch(y){gt(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pf(e,t,n){le=e,Sc(e)}function Sc(e,t,n){for(var o=(e.mode&1)!==0;le!==null;){var u=le,a=u.child;if(u.tag===22&&o){var d=u.memoizedState!==null||ll;if(!d){var m=u.alternate,y=m!==null&&m.memoizedState!==null||Yt;m=ll;var D=Yt;if(ll=d,(Yt=y)&&!D)for(le=u;le!==null;)d=le,y=d.child,d.tag===22&&d.memoizedState!==null?Pc(u):y!==null?(y.return=d,le=y):Pc(u);for(;a!==null;)le=a,Sc(a),a=a.sibling;le=u,ll=m,Yt=D}Ec(e)}else(u.subtreeFlags&8772)!==0&&a!==null?(a.return=u,le=a):Ec(e)}}function Ec(e){for(;le!==null;){var t=le;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Yt||al(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!Yt)if(n===null)o.componentDidMount();else{var u=t.elementType===t.type?n.memoizedProps:Ln(t.type,n.memoizedProps);o.componentDidUpdate(u,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Cs(t,a,o);break;case 3:var d=t.updateQueue;if(d!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Cs(t,d,n)}break;case 5:var m=t.stateNode;if(n===null&&t.flags&4){n=m;var y=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":y.autoFocus&&n.focus();break;case"img":y.src&&(n.src=y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var D=t.alternate;if(D!==null){var V=D.memoizedState;if(V!==null){var H=V.dehydrated;H!==null&&yr(H)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}Yt||t.flags&512&&ja(t)}catch(U){gt(t,t.return,U)}}if(t===e){le=null;break}if(n=t.sibling,n!==null){n.return=t.return,le=n;break}le=t.return}}function Cc(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var n=t.sibling;if(n!==null){n.return=t.return,le=n;break}le=t.return}}function Pc(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(y){gt(t,n,y)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var u=t.return;try{o.componentDidMount()}catch(y){gt(t,u,y)}}var a=t.return;try{ja(t)}catch(y){gt(t,a,y)}break;case 5:var d=t.return;try{ja(t)}catch(y){gt(t,d,y)}}}catch(y){gt(t,t.return,y)}if(t===e){le=null;break}var m=t.sibling;if(m!==null){m.return=t.return,le=m;break}le=t.return}}var Nf=Math.ceil,sl=nt.ReactCurrentDispatcher,ba=nt.ReactCurrentOwner,Sn=nt.ReactCurrentBatchConfig,$e=0,Dt=null,Et=null,Kt=0,yn=0,ji=no(0),Nt=0,fu=null,Ko=0,cl=0,Ra=0,du=null,sn=null,Da=0,Oi=1/0,Dr=null,fl=!1,Ia=null,ao=null,dl=!1,so=null,pl=0,pu=0,za=null,hl=-1,ml=0;function Jt(){return($e&6)!==0?He():hl!==-1?hl:hl=He()}function co(e){return(e.mode&1)===0?1:($e&2)!==0&&Kt!==0?Kt&-Kt:cf.transition!==null?(ml===0&&(ml=Xo()),ml):(e=Be,e!==0||(e=window.event,e=e===void 0?16:ti(e.type)),e)}function Kn(e,t,n,o){if(50<pu)throw pu=0,za=null,Error(P(185));Yn(e,n,o),(($e&2)===0||e!==Dt)&&(e===Dt&&(($e&2)===0&&(cl|=n),Nt===4&&fo(e,Kt)),cn(e,o),n===1&&$e===0&&(t.mode&1)===0&&(Oi=He()+500,Uu&&oo()))}function cn(e,t){var n=e.callbackNode;So(e,t);var o=We(e,e===Dt?Kt:0);if(o===0)n!==null&&Qo(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(n!=null&&Qo(n),t===1)e.tag===0?sf(jc.bind(null,e)):ps(jc.bind(null,e)),of(function(){($e&6)===0&&oo()}),n=null;else{switch(Su(o)){case 1:n=$r;break;case 4:n=Yo;break;case 16:n=Br;break;case 536870912:n=zi;break;default:n=Br}n=Ac(n,Nc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Nc(e,t){if(hl=-1,ml=0,($e&6)!==0)throw Error(P(327));var n=e.callbackNode;if(Ti()&&e.callbackNode!==n)return null;var o=We(e,e===Dt?Kt:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=yl(e,o);else{t=o;var u=$e;$e|=2;var a=Tc();(Dt!==e||Kt!==t)&&(Dr=null,Oi=He()+500,Bo(e,t));do try{Tf();break}catch(m){Oc(e,m)}while(!0);Zl(),sl.current=a,$e=u,Et!==null?t=0:(Dt=null,Kt=0,t=Nt)}if(t!==0){if(t===2&&(u=Qn(e),u!==0&&(o=u,t=Aa(e,u))),t===1)throw n=fu,Bo(e,0),fo(e,o),cn(e,He()),n;if(t===6)fo(e,o);else{if(u=e.current.alternate,(o&30)===0&&!jf(u)&&(t=yl(e,o),t===2&&(a=Qn(e),a!==0&&(o=a,t=Aa(e,a))),t===1))throw n=fu,Bo(e,0),fo(e,o),cn(e,He()),n;switch(e.finishedWork=u,e.finishedLanes=o,t){case 0:case 1:throw Error(P(345));case 2:Uo(e,sn,Dr);break;case 3:if(fo(e,o),(o&130023424)===o&&(t=Da+500-He(),10<t)){if(We(e,0)!==0)break;if(u=e.suspendedLanes,(u&o)!==o){Jt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=Bl(Uo.bind(null,e,sn,Dr),t);break}Uo(e,sn,Dr);break;case 4:if(fo(e,o),(o&4194240)===o)break;for(t=e.eventTimes,u=-1;0<o;){var d=31-nn(o);a=1<<d,d=t[d],d>u&&(u=d),o&=~a}if(o=u,o=He()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Nf(o/1960))-o,10<o){e.timeoutHandle=Bl(Uo.bind(null,e,sn,Dr),o);break}Uo(e,sn,Dr);break;case 5:Uo(e,sn,Dr);break;default:throw Error(P(329))}}}return cn(e,He()),e.callbackNode===n?Nc.bind(null,e):null}function Aa(e,t){var n=du;return e.current.memoizedState.isDehydrated&&(Bo(e,t).flags|=256),e=yl(e,t),e!==2&&(t=sn,sn=n,t!==null&&La(t)),e}function La(e){sn===null?sn=e:sn.push.apply(sn,e)}function jf(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var o=0;o<n.length;o++){var u=n[o],a=u.getSnapshot;u=u.value;try{if(!N(a(),u))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 fo(e,t){for(t&=~Ra,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-nn(t),o=1<<n;e[n]=-1,t&=~o}}function jc(e){if(($e&6)!==0)throw Error(P(327));Ti();var t=We(e,0);if((t&1)===0)return cn(e,He()),null;var n=yl(e,t);if(e.tag!==0&&n===2){var o=Qn(e);o!==0&&(t=o,n=Aa(e,o))}if(n===1)throw n=fu,Bo(e,0),fo(e,t),cn(e,He()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Uo(e,sn,Dr),cn(e,He()),null}function Ma(e,t){var n=$e;$e|=1;try{return e(t)}finally{$e=n,$e===0&&(Oi=He()+500,Uu&&oo())}}function $o(e){so!==null&&so.tag===0&&($e&6)===0&&Ti();var t=$e;$e|=1;var n=Sn.transition,o=Be;try{if(Sn.transition=null,Be=1,e)return e()}finally{Be=o,Sn.transition=n,$e=t,($e&6)===0&&oo()}}function Fa(){yn=ji.current,at(ji)}function Bo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,rf(n)),Et!==null)for(n=Et.return;n!==null;){var o=n;switch(Ql(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&$u();break;case 3:Ci(),at(un),at(Ht),la();break;case 5:ia(o);break;case 4:Ci();break;case 13:at(mt);break;case 19:at(mt);break;case 10:ea(o.type._context);break;case 22:case 23:Fa()}n=n.return}if(Dt=e,Et=e=po(e.current,null),Kt=yn=t,Nt=0,fu=null,Ra=cl=Ko=0,sn=du=null,Lo!==null){for(t=0;t<Lo.length;t++)if(n=Lo[t],o=n.interleaved,o!==null){n.interleaved=null;var u=o.next,a=n.pending;if(a!==null){var d=a.next;a.next=u,o.next=d}n.pending=o}Lo=null}return e}function Oc(e,t){do{var n=Et;try{if(Zl(),Zu.current=rl,el){for(var o=yt.memoizedState;o!==null;){var u=o.queue;u!==null&&(u.pending=null),o=o.next}el=!1}if(Fo=0,Rt=Pt=yt=null,iu=!1,uu=0,ba.current=null,n===null||n.return===null){Nt=1,fu=t,Et=null;break}e:{var a=e,d=n.return,m=n,y=t;if(t=Kt,m.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var D=y,V=m,H=V.tag;if((V.mode&1)===0&&(H===0||H===11||H===15)){var U=V.alternate;U?(V.updateQueue=U.updateQueue,V.memoizedState=U.memoizedState,V.lanes=U.lanes):(V.updateQueue=null,V.memoizedState=null)}var ie=ec(d);if(ie!==null){ie.flags&=-257,tc(ie,d,m,a,t),ie.mode&1&&Zs(a,D,t),t=ie,y=D;var ae=t.updateQueue;if(ae===null){var ce=new Set;ce.add(y),t.updateQueue=ce}else ae.add(y);break e}else{if((t&1)===0){Zs(a,D,t),Ka();break e}y=Error(P(426))}}else if(dt&&m.mode&1){var xt=ec(d);if(xt!==null){(xt.flags&65536)===0&&(xt.flags|=256),tc(xt,d,m,a,t),Xl(Pi(y,m));break e}}a=y=Pi(y,m),Nt!==4&&(Nt=2),du===null?du=[a]:du.push(a),a=d;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var T=Xs(a,y,t);Es(a,T);break e;case 1:m=y;var _=a.type,b=a.stateNode;if((a.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ao===null||!ao.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t;var G=Js(a,m,t);Es(a,G);break e}}a=a.return}while(a!==null)}Rc(n)}catch(fe){t=fe,Et===n&&n!==null&&(Et=n=n.return);continue}break}while(!0)}function Tc(){var e=sl.current;return sl.current=rl,e===null?rl:e}function Ka(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),Dt===null||(Ko&268435455)===0&&(cl&268435455)===0||fo(Dt,Kt)}function yl(e,t){var n=$e;$e|=2;var o=Tc();(Dt!==e||Kt!==t)&&(Dr=null,Bo(e,t));do try{Of();break}catch(u){Oc(e,u)}while(!0);if(Zl(),$e=n,sl.current=o,Et!==null)throw Error(P(261));return Dt=null,Kt=0,Nt}function Of(){for(;Et!==null;)bc(Et)}function Tf(){for(;Et!==null&&!pt();)bc(Et)}function bc(e){var t=zc(e.alternate,e,yn);e.memoizedProps=e.pendingProps,t===null?Rc(e):Et=t,ba.current=null}function Rc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=kf(n,t,yn),n!==null){Et=n;return}}else{if(n=Sf(n,t),n!==null){n.flags&=32767,Et=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Nt=6,Et=null;return}}if(t=t.sibling,t!==null){Et=t;return}Et=t=e}while(t!==null);Nt===0&&(Nt=5)}function Uo(e,t,n){var o=Be,u=Sn.transition;try{Sn.transition=null,Be=1,bf(e,t,n,o)}finally{Sn.transition=u,Be=o}return null}function bf(e,t,n,o){do Ti();while(so!==null);if(($e&6)!==0)throw Error(P(327));n=e.finishedWork;var u=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(ku(e,a),e===Dt&&(Et=Dt=null,Kt=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||dl||(dl=!0,Ac(Br,function(){return Ti(),null})),a=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||a){a=Sn.transition,Sn.transition=null;var d=Be;Be=1;var m=$e;$e|=4,ba.current=null,Cf(e,n),kc(n,e),E(Kl),ei=!!Fl,Kl=Fl=null,e.current=n,Pf(n),dr(),$e=m,Be=d,Sn.transition=a}else e.current=n;if(dl&&(dl=!1,so=e,pl=u),a=e.pendingLanes,a===0&&(ao=null),Re(n.stateNode),cn(e,He()),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)u=t[n],o(u.value,{componentStack:u.stack,digest:u.digest});if(fl)throw fl=!1,e=Ia,Ia=null,e;return(pl&1)!==0&&e.tag!==0&&Ti(),a=e.pendingLanes,(a&1)!==0?e===za?pu++:(pu=0,za=e):pu=0,oo(),null}function Ti(){if(so!==null){var e=Su(pl),t=Sn.transition,n=Be;try{if(Sn.transition=null,Be=16>e?16:e,so===null)var o=!1;else{if(e=so,so=null,pl=0,($e&6)!==0)throw Error(P(331));var u=$e;for($e|=4,le=e.current;le!==null;){var a=le,d=a.child;if((le.flags&16)!==0){var m=a.deletions;if(m!==null){for(var y=0;y<m.length;y++){var D=m[y];for(le=D;le!==null;){var V=le;switch(V.tag){case 0:case 11:case 15:cu(8,V,a)}var H=V.child;if(H!==null)H.return=V,le=H;else for(;le!==null;){V=le;var U=V.sibling,ie=V.return;if(vc(V),V===D){le=null;break}if(U!==null){U.return=ie,le=U;break}le=ie}}}var ae=a.alternate;if(ae!==null){var ce=ae.child;if(ce!==null){ae.child=null;do{var xt=ce.sibling;ce.sibling=null,ce=xt}while(ce!==null)}}le=a}}if((a.subtreeFlags&2064)!==0&&d!==null)d.return=a,le=d;else e:for(;le!==null;){if(a=le,(a.flags&2048)!==0)switch(a.tag){case 0:case 11:case 15:cu(9,a,a.return)}var T=a.sibling;if(T!==null){T.return=a.return,le=T;break e}le=a.return}}var _=e.current;for(le=_;le!==null;){d=le;var b=d.child;if((d.subtreeFlags&2064)!==0&&b!==null)b.return=d,le=b;else e:for(d=_;le!==null;){if(m=le,(m.flags&2048)!==0)try{switch(m.tag){case 0:case 11:case 15:al(9,m)}}catch(fe){gt(m,m.return,fe)}if(m===d){le=null;break e}var G=m.sibling;if(G!==null){G.return=m.return,le=G;break e}le=m.return}}if($e=u,oo(),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(hr,e)}catch{}o=!0}return o}finally{Be=n,Sn.transition=t}}return!1}function Dc(e,t,n){t=Pi(n,t),t=Xs(e,t,1),e=uo(e,t,1),t=Jt(),e!==null&&(Yn(e,1,t),cn(e,t))}function gt(e,t,n){if(e.tag===3)Dc(e,e,n);else for(;t!==null;){if(t.tag===3){Dc(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ao===null||!ao.has(o))){e=Pi(n,e),e=Js(t,e,1),t=uo(t,e,1),e=Jt(),t!==null&&(Yn(t,1,e),cn(t,e));break}}t=t.return}}function Rf(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),t=Jt(),e.pingedLanes|=e.suspendedLanes&n,Dt===e&&(Kt&n)===n&&(Nt===4||Nt===3&&(Kt&130023424)===Kt&&500>He()-Da?Bo(e,0):Ra|=n),cn(e,t)}function Ic(e,t){t===0&&((e.mode&1)===0?t=1:(t=_o,_o<<=1,(_o&130023424)===0&&(_o=4194304)));var n=Jt();e=Tr(e,t),e!==null&&(Yn(e,t,n),cn(e,n))}function Df(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ic(e,n)}function If(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(P(314))}o!==null&&o.delete(t),Ic(e,n)}var zc;zc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||un.current)an=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return an=!1,_f(e,t,n);an=(e.flags&131072)!==0}else an=!1,dt&&(t.flags&1048576)!==0&&hs(t,qu,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ul(e,t),e=t.pendingProps;var u=gi(t,Ht.current);Ei(t,n),u=ca(null,t,o,e,u,n);var a=fa();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ln(o)?(a=!0,Bu(t)):a=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,ra(t),u.updater=ol,t.stateNode=u,u._reactInternals=t,va(t,o,e,n),t=_a(null,t,o,!0,a,n)):(t.tag=0,dt&&a&&Wl(t),Xt(null,t,u,n),t=t.child),t;case 16:o=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,u=o._init,o=u(o._payload),t.type=o,u=t.tag=Af(o),e=Ln(o,e),u){case 0:t=xa(null,t,o,e,n);break e;case 1:t=lc(null,t,o,e,n);break e;case 11:t=nc(null,t,o,e,n);break e;case 14:t=rc(null,t,o,Ln(o.type,e),n);break e}throw Error(P(306,o,""))}return t;case 0:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:Ln(o,u),xa(e,t,o,u,n);case 1:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:Ln(o,u),lc(e,t,o,u,n);case 3:e:{if(ac(t),e===null)throw Error(P(387));o=t.pendingProps,a=t.memoizedState,u=a.element,Ss(e,t),Xu(t,o,null,n);var d=t.memoizedState;if(o=d.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){u=Pi(Error(P(423)),t),t=sc(e,t,o,n,u);break e}else if(o!==u){u=Pi(Error(P(424)),t),t=sc(e,t,o,n,u);break e}else for(mn=to(t.stateNode.containerInfo.firstChild),hn=t,dt=!0,An=null,n=_s(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_i(),o===u){t=Rr(e,t,n);break e}Xt(e,t,o,n)}t=t.child}return t;case 5:return Ps(t),e===null&&Gl(t),o=t.type,u=t.pendingProps,a=e!==null?e.memoizedProps:null,d=u.children,$l(o,u)?d=null:a!==null&&$l(o,a)&&(t.flags|=32),uc(e,t),Xt(e,t,d,n),t.child;case 6:return e===null&&Gl(t),null;case 13:return cc(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ki(t,null,o,n):Xt(e,t,o,n),t.child;case 11:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:Ln(o,u),nc(e,t,o,u,n);case 7:return Xt(e,t,t.pendingProps,n),t.child;case 8:return Xt(e,t,t.pendingProps.children,n),t.child;case 12:return Xt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,u=t.pendingProps,a=t.memoizedProps,d=u.value,ot(Qu,o._currentValue),o._currentValue=d,a!==null)if(N(a.value,d)){if(a.children===u.children&&!un.current){t=Rr(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var m=a.dependencies;if(m!==null){d=a.child;for(var y=m.firstContext;y!==null;){if(y.context===o){if(a.tag===1){y=br(-1,n&-n),y.tag=2;var D=a.updateQueue;if(D!==null){D=D.shared;var V=D.pending;V===null?y.next=y:(y.next=V.next,V.next=y),D.pending=y}}a.lanes|=n,y=a.alternate,y!==null&&(y.lanes|=n),ta(a.return,n,t),m.lanes|=n;break}y=y.next}}else if(a.tag===10)d=a.type===t.type?null:a.child;else if(a.tag===18){if(d=a.return,d===null)throw Error(P(341));d.lanes|=n,m=d.alternate,m!==null&&(m.lanes|=n),ta(d,n,t),d=a.sibling}else d=a.child;if(d!==null)d.return=a;else for(d=a;d!==null;){if(d===t){d=null;break}if(a=d.sibling,a!==null){a.return=d.return,d=a;break}d=d.return}a=d}Xt(e,t,u.children,n),t=t.child}return t;case 9:return u=t.type,o=t.pendingProps.children,Ei(t,n),u=_n(u),o=o(u),t.flags|=1,Xt(e,t,o,n),t.child;case 14:return o=t.type,u=Ln(o,t.pendingProps),u=Ln(o.type,u),rc(e,t,o,u,n);case 15:return oc(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,u=t.pendingProps,u=t.elementType===o?u:Ln(o,u),ul(e,t),t.tag=1,ln(o)?(e=!0,Bu(t)):e=!1,Ei(t,n),Ys(t,o,u),va(t,o,u,n),_a(null,t,o,!0,e,n);case 19:return dc(e,t,n);case 22:return ic(e,t,n)}throw Error(P(156,t.tag))};function Ac(e,t){return Ii(e,t)}function zf(e,t,n,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(e,t,n,o){return new zf(e,t,n,o)}function $a(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Af(e){if(typeof e=="function")return $a(e)?1:0;if(e!=null){if(e=e.$$typeof,e===st)return 11;if(e===Ot)return 14}return 2}function po(e,t){var n=e.alternate;return n===null?(n=En(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 vl(e,t,n,o,u,a){var d=2;if(o=e,typeof e=="function")$a(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ze:return Vo(n.children,u,a,t);case jt:d=8,u|=8;break;case vn:return e=En(12,n,t,u|2),e.elementType=vn,e.lanes=a,e;case it:return e=En(13,n,t,u),e.elementType=it,e.lanes=a,e;case Gt:return e=En(19,n,t,u),e.elementType=Gt,e.lanes=a,e;case rt:return gl(n,u,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case en:d=10;break e;case tn:d=9;break e;case st:d=11;break e;case Ot:d=14;break e;case ct:d=16,o=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=En(d,n,t,u),t.elementType=e,t.type=o,t.lanes=a,t}function Vo(e,t,n,o){return e=En(7,e,o,t),e.lanes=n,e}function gl(e,t,n,o){return e=En(22,e,o,t),e.elementType=rt,e.lanes=n,e.stateNode={isHidden:!1},e}function Ba(e,t,n){return e=En(6,e,null,t),e.lanes=n,e}function Ua(e,t,n){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lf(e,t,n,o,u){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=Eo(0),this.expirationTimes=Eo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eo(0),this.identifierPrefix=o,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function Va(e,t,n,o,u,a,d,m,y){return e=new Lf(e,t,n,m,y),t===1?(t=1,a===!0&&(t|=8)):t=0,a=En(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ra(a),e}function Mf(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ie,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}function Lc(e){if(!e)return ro;e=e._reactInternals;e:{if(Ut(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ln(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(ln(n))return fs(e,n,t)}return t}function Mc(e,t,n,o,u,a,d,m,y){return e=Va(n,o,!0,e,u,a,d,m,y),e.context=Lc(null),n=e.current,o=Jt(),u=co(n),a=br(o,u),a.callback=t??null,uo(n,a,u),e.current.lanes=u,Yn(e,u,o),cn(e,o),e}function wl(e,t,n,o){var u=t.current,a=Jt(),d=co(u);return n=Lc(n),t.context===null?t.context=n:t.pendingContext=n,t=br(a,d),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=uo(u,t,d),e!==null&&(Kn(e,u,d,a),Gu(e,u,d)),d}function xl(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 Fc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qa(e,t){Fc(e,t),(e=e.alternate)&&Fc(e,t)}function Ff(){return null}var Kc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ha(e){this._internalRoot=e}_l.prototype.render=Ha.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));wl(e,t,null,null)},_l.prototype.unmount=Ha.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$o(function(){wl(null,e,null,null)}),t[Pr]=null}};function _l(e){this._internalRoot=e}_l.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rn.length&&t!==0&&t<rn[n].priority;n++);rn.splice(n,0,e),n===0&&pn(e)}};function Wa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $c(){}function Kf(e,t,n,o,u){if(u){if(typeof o=="function"){var a=o;o=function(){var D=xl(d);a.call(D)}}var d=Mc(t,o,e,0,null,!1,!1,"",$c);return e._reactRootContainer=d,e[Pr]=d.current,Xi(e.nodeType===8?e.parentNode:e),$o(),d}for(;u=e.lastChild;)e.removeChild(u);if(typeof o=="function"){var m=o;o=function(){var D=xl(y);m.call(D)}}var y=Va(e,0,!1,null,null,!1,!1,"",$c);return e._reactRootContainer=y,e[Pr]=y.current,Xi(e.nodeType===8?e.parentNode:e),$o(function(){wl(t,y,n,o)}),y}function Sl(e,t,n,o,u){var a=n._reactRootContainer;if(a){var d=a;if(typeof u=="function"){var m=u;u=function(){var y=xl(d);m.call(y)}}wl(t,d,e,u)}else d=Kf(n,t,e,u,o);return xl(d)}Fe=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ur(t.pendingLanes);n!==0&&(Vr(t,n|1),cn(t,He()),($e&6)===0&&(Oi=He()+500,oo()))}break;case 13:$o(function(){var o=Tr(e,1);if(o!==null){var u=Jt();Kn(o,e,1,u)}}),qa(e,1)}},Jo=function(e){if(e.tag===13){var t=Tr(e,134217728);if(t!==null){var n=Jt();Kn(t,e,134217728,n)}qa(e,134217728)}},Eu=function(e){if(e.tag===13){var t=co(e),n=Tr(e,t);if(n!==null){var o=Jt();Kn(n,e,t,o)}qa(e,t)}},Cu=function(){return Be},Vt=function(e,t){var n=Be;try{return Be=e,t()}finally{Be=n}},ne=function(e,t,n){switch(t){case"input":if(qe(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 o=n[t];if(o!==e&&o.form===e.form){var u=Ku(o);if(!u)throw Error(P(90));Ke(o),qe(o,u)}}}break;case"textarea":zr(e,n);break;case"select":t=n.value,t!=null&&Ge(e,!!n.multiple,t,!1)}},vu=Ma,gu=$o;var $f={usingClientEntryPoint:!1,Events:[eu,yi,Ku,Ri,Wo,Ma]},hu={findFiberByHostInstance:Do,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bf={bundleType:hu.bundleType,version:hu.version,rendererPackageName:hu.rendererPackageName,rendererConfig:hu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Di(e),e===null?null:e.stateNode},findFiberByHostInstance:hu.findFiberByHostInstance||Ff,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var El=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!El.isDisabled&&El.supportsFiber)try{hr=El.inject(Bf),dn=El}catch{}}return fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$f,fn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wa(t))throw Error(P(200));return Mf(e,t,null,n)},fn.createRoot=function(e,t){if(!Wa(e))throw Error(P(299));var n=!1,o="",u=Kc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=Va(e,1,!1,null,null,n,!1,o,u),e[Pr]=t.current,Xi(e.nodeType===8?e.parentNode:e),new Ha(t)},fn.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(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=Di(t),e=e===null?null:e.stateNode,e},fn.flushSync=function(e){return $o(e)},fn.hydrate=function(e,t,n){if(!kl(t))throw Error(P(200));return Sl(null,e,t,!0,n)},fn.hydrateRoot=function(e,t,n){if(!Wa(e))throw Error(P(405));var o=n!=null&&n.hydratedSources||null,u=!1,a="",d=Kc;if(n!=null&&(n.unstable_strictMode===!0&&(u=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),t=Mc(t,null,e,1,n??null,u,!1,a,d),e[Pr]=t.current,Xi(e),o)for(e=0;e<o.length;e++)n=o[e],u=n._getVersion,u=u(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,u]:t.mutableSourceEagerHydrationData.push(n,u);return new _l(t)},fn.render=function(e,t,n){if(!kl(t))throw Error(P(200));return Sl(null,e,t,!1,n)},fn.unmountComponentAtNode=function(e){if(!kl(e))throw Error(P(40));return e._reactRootContainer?($o(function(){Sl(null,null,e,!1,function(){e._reactRootContainer=null,e[Pr]=null})}),!0):!1},fn.unstable_batchedUpdates=Ma,fn.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!kl(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return Sl(e,t,n,!1,o)},fn.version="18.3.1-next-f1338f8080-20240426",fn}var Yc;function ed(){if(Yc)return Ga.exports;Yc=1;function I(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I)}catch(A){console.error(A)}}return I(),Ga.exports=Zf(),Ga.exports}var Gc;function td(){if(Gc)return Cl;Gc=1;var I=ed();return Cl.createRoot=I.createRoot,Cl.hydrateRoot=I.hydrateRoot,Cl}var nd=td();const rd=ts(nd),od=["get","post","put","patch","delete","options","head","trace"];function Xc(I){return I.replace(/[^a-zA-Z0-9]+/g,"_").replace(/^_|_$/g,"").replace(/_+/g,"_")}function Ol(I,A,P,F){if(P)return Xc(P).replace(/^[0-9]/,"_$&")||`op_${F}`;const J=Xc(A.replace(/[{}]/g,""));return`${I}_${J}`||`op_${F}`}function Tl(I){return(I.split(/[^a-zA-Z0-9]+/).filter(Boolean).map(P=>P.charAt(0).toUpperCase()+P.slice(1).toLowerCase()).join("")||"Api")+"Service"}function bi(I){const A=[];if(!I.paths)return A;for(const[P,F]of Object.entries(I.paths)){if(!F||typeof F!="object"||"$ref"in F)continue;const J=F;for(const W of od){const ee=J[W];ee&&typeof ee=="object"&&A.push({method:W,path:P,operationId:ee.operationId,tags:ee.tags})}}return A}function id(I,A,P,F="baseUrl"){var W,ee;const J=A.toUpperCase();return`const ${F} = "${((ee=(W=I.servers)==null?void 0:W[0])==null?void 0:ee.url)??"http://localhost:3000"}";
41
+ /** @returns {Promise<unknown>} */
42
+ const res = await fetch(\`${F}${P}\`, {
43
+ method: "${J}",
44
+ headers: { "Content-Type": "application/json", Authorization: \`Bearer \${token}\` },
45
+ ${J==="GET"||J==="HEAD"?"":"body: JSON.stringify({}),"}
46
+ });
47
+ const data = await res.json();
48
+ `}function ud(I,A){const P=Tl(A),J=bi(I).filter(W=>{var ee;return(ee=W.tags)==null?void 0:ee.includes(A)}).map((W,ee)=>` /**
49
+ * @param {{ headers?: Record<string, string> }} [options]
50
+ * @returns {Promise<unknown>}
51
+ */
52
+ async ${Ol(W.method,W.path,W.operationId,ee)}(options) {
53
+ const res = await fetch(\`\${this.baseUrl}${W.path}\`, {
54
+ method: "${W.method.toUpperCase()}",
55
+ headers: { ...this.defaultHeaders, ...options?.headers },
56
+ });
57
+ return res.json();
58
+ }`);return`export class ${P} {
59
+ /**
60
+ * @param {string} baseUrl
61
+ * @param {Record<string, string>} [defaultHeaders]
62
+ */
63
+ constructor(baseUrl, defaultHeaders = {}) {
64
+ this.baseUrl = baseUrl;
65
+ this.defaultHeaders = defaultHeaders;
66
+ }
67
+
68
+ ${J.join(`
69
+
70
+ `)}
71
+ }
72
+ `}function ld(I,A,P){var W,ee;const F=((ee=(W=I.servers)==null?void 0:W[0])==null?void 0:ee.url)??"http://localhost:3000",J=A.toUpperCase();return`<?php
73
+ $baseUrl = '${F}';
74
+ $url = $baseUrl . '${P}';
75
+ $opts = [
76
+ 'http' => [
77
+ 'method' => '${J}',
78
+ 'header' => "Content-Type: application/json\\r\\nAuthorization: Bearer {$token}\\r\\n",
79
+ ${J==="GET"||J==="HEAD"?"":"'content' => json_encode([]),"}
80
+ ],
81
+ ];
82
+ $context = stream_context_create($opts);
83
+ $response = file_get_contents($url, false, $context);
84
+ $data = json_decode($response, true);
85
+ `}function ad(I,A){const P=Tl(A),J=bi(I).filter(W=>{var ee;return(ee=W.tags)==null?void 0:ee.includes(A)}).map((W,ee)=>` public function ${Ol(W.method,W.path,W.operationId,ee)}(array $extraHeaders = []): array
86
+ {
87
+ $url = $this->baseUrl . '${W.path}';
88
+ $headers = array_merge($this->defaultHeaders, $extraHeaders);
89
+ $opts = [
90
+ 'http' => [
91
+ 'method' => '${W.method.toUpperCase()}',
92
+ 'header' => $this->formatHeaders($headers),
93
+ ],
94
+ ];
95
+ $ctx = stream_context_create($opts);
96
+ $raw = file_get_contents($url, false, $ctx);
97
+ return json_decode($raw ?: '[]', true) ?: [];
98
+ }`);return`<?php
99
+
100
+ declare(strict_types=1);
101
+
102
+ final class ${P}
103
+ {
104
+ public function __construct(
105
+ private string $baseUrl,
106
+ /** @var array<string, string> */
107
+ private array $defaultHeaders = [],
108
+ ) {
109
+ $this->baseUrl = rtrim($baseUrl, '/');
110
+ }
111
+
112
+ /** @param array<string, string> $headers */
113
+ private function formatHeaders(array $headers): string
114
+ {
115
+ $lines = [];
116
+ foreach ($headers as $k => $v) {
117
+ $lines[] = $k . ': ' . $v;
118
+ }
119
+ return implode("\\r\\n", $lines) . "\\r\\n";
120
+ }
121
+
122
+ ${J.join(`
123
+
124
+ `)}
125
+ }
126
+ `}function sd(I,A,P){var ee,he;const F=((he=(ee=I.servers)==null?void 0:ee[0])==null?void 0:he.url)??"http://localhost:3000",J=A.toLowerCase();return`import httpx
127
+
128
+ base_url = "${F}"
129
+ url = f"{base_url}${P}"
130
+ headers = {"Authorization": f"Bearer {token}"}
131
+ with httpx.Client() as client:
132
+ response = client.${J}(url, headers=headers${J==="get"||J==="head"?"":", json={}"})
133
+ data = response.json()
134
+ `}function cd(I,A){const P=Tl(A),J=bi(I).filter(W=>{var ee;return(ee=W.tags)==null?void 0:ee.includes(A)}).map((W,ee)=>{const he=Ol(W.method,W.path,W.operationId,ee),de=W.method.toLowerCase(),Ve=de==="get"||de==="head"?"":", json={}";return` def ${he}(self, headers: dict | None = None) -> dict:
135
+ h = {**self.default_headers, **(headers or {})}
136
+ r = self._client.${de}(f"{self.base_url}${W.path}", headers=h${Ve})
137
+ return r.json()`});return`from __future__ import annotations
138
+ import httpx
139
+
140
+ class ${P}:
141
+ def __init__(self, base_url: str, default_headers: dict | None = None) -> None:
142
+ self.base_url = base_url.rstrip("/")
143
+ self.default_headers = default_headers or {}
144
+ self._client = httpx.Client()
145
+
146
+ def close(self) -> None:
147
+ self._client.close()
148
+
149
+ ${J.join(`
150
+
151
+ `)}
152
+ `}function fd(I){const A=I.split("/");return(A[A.length-1]??"Unknown").replace(/[^a-zA-Z0-9_]/g,"_")}function Za(I){if(!I)return"unknown";if("$ref"in I&&I.$ref)return fd(I.$ref);const A=I;return A.type==="string"?"string":A.type==="number"||A.type==="integer"?"number":A.type==="boolean"?"boolean":A.type==="array"&&A.items?`${Za(A.items)}[]`:A.type==="object"&&A.properties?`{
153
+ ${Object.entries(A.properties).map(([F,J])=>` ${JSON.stringify(F)}?: ${Za(J)};`).join(`
154
+ `)}
155
+ }`:"Record<string, unknown>"}function dd(I,A,P,F="baseUrl"){var Ve,Ce,Ee,Oe,_t,Xe;const J=(Ce=(Ve=I.paths)==null?void 0:Ve[P])==null?void 0:Ce[A],W=J==null?void 0:J.requestBody;let ee;if((Oe=(Ee=W==null?void 0:W.content)==null?void 0:Ee["application/json"])!=null&&Oe.schema){const Pe=W.content["application/json"].schema;Pe&&!("$ref"in Pe)&&(ee=Pe)}const he=ee?Za(ee):"Record<string, unknown>",de=A.toUpperCase();return`const ${F} = "${((Xe=(_t=I.servers)==null?void 0:_t[0])==null?void 0:Xe.url)??"http://localhost:3000"}";
156
+ const res = await fetch(\`${F}${P}\`, {
157
+ method: "${de}",
158
+ headers: { "Content-Type": "application/json", Authorization: \`Bearer \${token}\` },
159
+ ${de==="GET"||de==="HEAD"?"":`body: JSON.stringify({} as ${he}),`}
160
+ });
161
+ const data = await res.json() as unknown;
162
+ `}function pd(I,A){const P=Tl(A),J=bi(I).filter(W=>{var ee;return(ee=W.tags)==null?void 0:ee.includes(A)}).map((W,ee)=>` async ${Ol(W.method,W.path,W.operationId,ee)}(options?: { headers?: Record<string, string> }): Promise<unknown> {
163
+ const res = await fetch(\`\${this.baseUrl}${W.path}\`, {
164
+ method: "${W.method.toUpperCase()}",
165
+ headers: { ...this.defaultHeaders, ...options?.headers },
166
+ });
167
+ return res.json();
168
+ }`);return`export class ${P} {
169
+ constructor(
170
+ private baseUrl: string,
171
+ private defaultHeaders: Record<string, string> = {},
172
+ ) {}
173
+
174
+ ${J.join(`
175
+
176
+ `)}
177
+ }
178
+ `}function hd(I,A,P,F){switch(A){case"typescript":return dd(I,P,F);case"javascript":return id(I,P,F);case"python":return sd(I,P,F);case"php":return ld(I,P,F);default:{const J=A;throw new Error(`Unsupported language: ${J}`)}}}function md(I,A,P){switch(A){case"typescript":return pd(I,P);case"javascript":return ud(I,P);case"python":return cd(I,P);case"php":return ad(I,P);default:{const F=A;throw new Error(`Unsupported language: ${F}`)}}}function yd(I){const A=new Set;for(const P of bi(I))for(const F of P.tags??[])A.add(F);return A.size===0&&A.add("default"),[...A].sort()}function Pl(I,A){var P,F,J;return A!=null&&A.trim()?A.replace(/\/$/,""):((J=(F=(P=I.servers)==null?void 0:P[0])==null?void 0:F.url)==null?void 0:J.replace(/\/$/,""))??window.location.origin}function vd(I){var P;const A=(P=I.components)==null?void 0:P.securitySchemes;return A?Object.keys(A):[]}function gd(I,A){if(!A.startsWith("$"))return;let P=I;const F=A.slice(1);if(F.startsWith(".")){for(const J of F.slice(1).split("."))if(P&&typeof P=="object"&&J in P)P=P[J];else return;return P}return P}var Nl={exports:{}},wd=Nl.exports,Jc;function xd(){return Jc||(Jc=1,(function(I,A){((P,F)=>{I.exports=F()})(wd,function(){var P=function(r,i){return(P=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(l,s){l.__proto__=s}:function(l,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(l[c]=s[c])}))(r,i)},F=function(){return(F=Object.assign||function(r){for(var i,l=1,s=arguments.length;l<s;l++)for(var c in i=arguments[l])Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c]);return r}).apply(this,arguments)};function J(r,i,l){for(var s,c=0,f=i.length;c<f;c++)!s&&c in i||((s=s||Array.prototype.slice.call(i,0,c))[c]=i[c]);return r.concat(s||Array.prototype.slice.call(i))}var W=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Hf,ee=Object.keys,he=Array.isArray;function de(r,i){return typeof i=="object"&&ee(i).forEach(function(l){r[l]=i[l]}),r}typeof Promise>"u"||W.Promise||(W.Promise=Promise);var Ve=Object.getPrototypeOf,Ce={}.hasOwnProperty;function Ee(r,i){return Ce.call(r,i)}function Oe(r,i){typeof i=="function"&&(i=i(Ve(r))),(typeof Reflect>"u"?ee:Reflect.ownKeys)(i).forEach(function(l){Xe(r,l,i[l])})}var _t=Object.defineProperty;function Xe(r,i,l,s){_t(r,i,de(l&&Ee(l,"get")&&typeof l.get=="function"?{get:l.get,set:l.set,configurable:!0}:{value:l,configurable:!0,writable:!0},s))}function Pe(r){return{from:function(i){return r.prototype=Object.create(i.prototype),Xe(r.prototype,"constructor",r),{extend:Oe.bind(null,r.prototype)}}}}var De=Object.getOwnPropertyDescriptor,Zt=[].slice;function wt(r,i,l){return Zt.call(r,i,l)}function zt(r,i){return i(r)}function nt(r){if(!r)throw new Error("Assertion Failed")}function $t(r){W.setImmediate?setImmediate(r):setTimeout(r,0)}function Ie(r,i){if(typeof i=="string"&&Ee(r,i))return r[i];if(!i)return r;if(typeof i!="string"){for(var l=[],s=0,c=i.length;s<c;++s){var f=Ie(r,i[s]);l.push(f)}return l}var p,h=i.indexOf(".");return h===-1||(p=r[i.substr(0,h)])==null?void 0:Ie(p,i.substr(h+1))}function ze(r,i,l){if(r&&i!==void 0&&!("isFrozen"in Object&&Object.isFrozen(r)))if(typeof i!="string"&&"length"in i){nt(typeof l!="string"&&"length"in l);for(var s=0,c=i.length;s<c;++s)ze(r,i[s],l[s])}else{var f,p,h=i.indexOf(".");h!==-1?(f=i.substr(0,h),(h=i.substr(h+1))===""?l===void 0?he(r)&&!isNaN(parseInt(f))?r.splice(f,1):delete r[f]:r[f]=l:ze(p=(p=r[f])&&Ee(r,f)?p:r[f]={},h,l)):l===void 0?he(r)&&!isNaN(parseInt(i))?r.splice(i,1):delete r[i]:r[i]=l}}function jt(r){var i,l={};for(i in r)Ee(r,i)&&(l[i]=r[i]);return l}var vn=[].concat;function en(r){return vn.apply([],r)}var L="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(en([8,16,32,64].map(function(r){return["Int","Uint","Float"].map(function(i){return i+r+"Array"})}))).filter(function(r){return W[r]}),tn=new Set(L.map(function(r){return W[r]})),st=null;function it(r){return st=new WeakMap,r=(function i(l){if(!l||typeof l!="object")return l;var s=st.get(l);if(s)return s;if(he(l)){s=[],st.set(l,s);for(var c=0,f=l.length;c<f;++c)s.push(i(l[c]))}else if(tn.has(l.constructor))s=l;else{var p,h=Ve(l);for(p in s=h===Object.prototype?{}:Object.create(h),st.set(l,s),l)Ee(l,p)&&(s[p]=i(l[p]))}return s})(r),st=null,r}var Gt={}.toString;function Ot(r){return Gt.call(r).slice(8,-1)}var ct=typeof Symbol<"u"?Symbol.iterator:"@@iterator",rt=typeof ct=="symbol"?function(r){var i;return r!=null&&(i=r[ct])&&i.apply(r)}:function(){return null};function Z(r,i){i=r.indexOf(i),0<=i&&r.splice(i,1)}var pe={};function te(r){var i,l,s,c;if(arguments.length===1){if(he(r))return r.slice();if(this===pe&&typeof r=="string")return[r];if(c=rt(r))for(l=[];!(s=c.next()).done;)l.push(s.value);else{if(r==null)return[r];if(typeof(i=r.length)!="number")return[r];for(l=new Array(i);i--;)l[i]=r[i]}}else for(i=arguments.length,l=new Array(i);i--;)l[i]=arguments[i];return l}var j=typeof Symbol<"u"?function(r){return r[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},L=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Ct=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(L),Se={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function we(r,i){this.name=r,this.message=i}function be(r,i){return r+". Errors: "+Object.keys(i).map(function(l){return i[l].toString()}).filter(function(l,s,c){return c.indexOf(l)===s}).join(`
179
+ `)}function Ne(r,i,l,s){this.failures=i,this.failedKeys=s,this.successCount=l,this.message=be(r,i)}function Ae(r,i){this.name="BulkError",this.failures=Object.keys(i).map(function(l){return i[l]}),this.failuresByPos=i,this.message=be(r,this.failures)}Pe(we).from(Error).extend({toString:function(){return this.name+": "+this.message}}),Pe(Ne).from(we),Pe(Ae).from(we);var Le=Ct.reduce(function(r,i){return r[i]=i+"Error",r},{}),Je=we,oe=Ct.reduce(function(r,i){var l=i+"Error";function s(c,f){this.name=l,c?typeof c=="string"?(this.message="".concat(c).concat(f?`
180
+ `+f:""),this.inner=f||null):typeof c=="object"&&(this.message="".concat(c.name," ").concat(c.message),this.inner=c):(this.message=Se[i]||l,this.inner=null)}return Pe(s).from(Je),r[i]=s,r},{}),rr=(oe.Syntax=SyntaxError,oe.Type=TypeError,oe.Range=RangeError,L.reduce(function(r,i){return r[i+"Error"]=oe[i],r},{}));L=Ct.reduce(function(r,i){return["Syntax","Type","Range"].indexOf(i)===-1&&(r[i+"Error"]=oe[i]),r},{});function Ke(){}function gn(r){return r}function mo(r,i){return r==null||r===gn?i:function(l){return i(r(l))}}function M(r,i){return function(){r.apply(this,arguments),i.apply(this,arguments)}}function Me(r,i){return r===Ke?i:function(){var l=r.apply(this,arguments),s=(l!==void 0&&(arguments[0]=l),this.onsuccess),c=this.onerror,f=(this.onsuccess=null,this.onerror=null,i.apply(this,arguments));return s&&(this.onsuccess=this.onsuccess?M(s,this.onsuccess):s),c&&(this.onerror=this.onerror?M(c,this.onerror):c),f!==void 0?f:l}}function qe(r,i){return r===Ke?i:function(){r.apply(this,arguments);var l=this.onsuccess,s=this.onerror;this.onsuccess=this.onerror=null,i.apply(this,arguments),l&&(this.onsuccess=this.onsuccess?M(l,this.onsuccess):l),s&&(this.onerror=this.onerror?M(s,this.onerror):s)}}function vt(r,i){return r===Ke?i:function(c){var s=r.apply(this,arguments),c=(de(c,s),this.onsuccess),f=this.onerror,p=(this.onsuccess=null,this.onerror=null,i.apply(this,arguments));return c&&(this.onsuccess=this.onsuccess?M(c,this.onsuccess):c),f&&(this.onerror=this.onerror?M(f,this.onerror):f),s===void 0?p===void 0?void 0:p:de(s,p)}}function et(r,i){return r===Ke?i:function(){return i.apply(this,arguments)!==!1&&r.apply(this,arguments)}}function Qe(r,i){return r===Ke?i:function(){var l=r.apply(this,arguments);if(l&&typeof l.then=="function"){for(var s=this,c=arguments.length,f=new Array(c);c--;)f[c]=arguments[c];return l.then(function(){return i.apply(s,f)})}return i.apply(this,arguments)}}L.ModifyError=Ne,L.DexieError=we,L.BulkError=Ae;var Ge=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Ir(r){Ge=r}var Cn={},zr=100,Pn=typeof Promise>"u"?[]:(Ct=Promise.resolve(),typeof crypto<"u"&&crypto.subtle?[Pn=crypto.subtle.digest("SHA-512",new Uint8Array([0])),Ve(Pn),Ct]:[Ct,Ve(Ct),Ct]),Ct=Pn[0],_r=Pn[1],_r=_r&&_r.then,Bt=Ct&&Ct.constructor,$n=!!Pn[2],Ar=function(r,i){ur.push([r,i]),Bn&&(queueMicrotask(gu),Bn=!1)},or=!0,Bn=!0,ir=[],yo=[],qo=gn,Nn={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Ke,pgp:!1,env:{},finalize:Ke},se=Nn,ur=[],jn=0,Lr=[];function ne(r){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var i=this._PSD=se;if(typeof r!="function"){if(r!==Cn)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Ho(this,this._value)}else this._state=null,this._value=null,++i.ref,(function l(s,c){try{c(function(f){if(s._state===null){if(f===s)throw new TypeError("A promise cannot be resolved with itself.");var p=s._lib&&Vn();f&&typeof f.then=="function"?l(s,function(h,g){f instanceof ne?f._then(h,g):f.then(h,g)}):(s._state=!0,s._value=f,Ri(s)),p&&ar()}},Ho.bind(null,s))}catch(f){Ho(s,f)}})(this,r)}var Un={get:function(){var r=se,i=Fr;function l(s,c){var f=this,p=!r.global&&(r!==se||i!==Fr),h=p&&!Ut(),g=new ne(function(N,x){Wo(f,new lr(Ii(s,r,p,h),Ii(c,r,p,h),N,x,r))});return this._consoleTask&&(g._consoleTask=this._consoleTask),g}return l.prototype=Cn,l},set:function(r){Xe(this,"then",r&&r.prototype===Cn?Un:{get:function(){return r},set:Un.set})}};function lr(r,i,l,s,c){this.onFulfilled=typeof r=="function"?r:null,this.onRejected=typeof i=="function"?i:null,this.resolve=l,this.reject=s,this.psd=c}function Ho(r,i){var l,s;yo.push(i),r._state===null&&(l=r._lib&&Vn(),i=qo(i),r._state=!1,r._value=i,s=r,ir.some(function(c){return c._value===s._value})||ir.push(s),Ri(r),l)&&ar()}function Ri(r){var i=r._listeners;r._listeners=[];for(var l=0,s=i.length;l<s;++l)Wo(r,i[l]);var c=r._PSD;--c.ref||c.finalize(),jn===0&&(++jn,Ar(function(){--jn==0&&sr()},[]))}function Wo(r,i){if(r._state===null)r._listeners.push(i);else{var l=r._state?i.onFulfilled:i.onRejected;if(l===null)return(r._state?i.resolve:i.reject)(r._value);++i.psd.ref,++jn,Ar(vu,[l,r,i])}}function vu(r,i,l){try{var s,c=i._value;!i._state&&yo.length&&(yo=[]),s=Ge&&i._consoleTask?i._consoleTask.run(function(){return r(c)}):r(c),i._state||yo.indexOf(c)!==-1||(f=>{for(var p=ir.length;p;)if(ir[--p]._value===f._value)return ir.splice(p,1)})(i),l.resolve(s)}catch(f){l.reject(f)}finally{--jn==0&&sr(),--l.psd.ref||l.psd.finalize()}}function gu(){Wn(Nn,function(){Vn()&&ar()})}function Vn(){var r=or;return Bn=or=!1,r}function ar(){var r,i,l;do for(;0<ur.length;)for(r=ur,ur=[],l=r.length,i=0;i<l;++i){var s=r[i];s[0].apply(null,s[1])}while(0<ur.length);Bn=or=!0}function sr(){for(var r=ir,i=(ir=[],r.forEach(function(s){s._PSD.onunhandled.call(null,s._value,s)}),Lr.slice(0)),l=i.length;l;)i[--l]()}function Mr(r){return new ne(Cn,!1,r)}function Ye(r,i){var l=se;return function(){var s=Vn(),c=se;try{return Hn(l,!0),r.apply(this,arguments)}catch(f){i&&i(f)}finally{Hn(c,!1),s&&ar()}}}Oe(ne.prototype,{then:Un,_then:function(r,i){Wo(this,new lr(null,null,r,i,se))},catch:function(r){var i,l;return arguments.length===1?this.then(null,r):(i=r,l=arguments[1],typeof i=="function"?this.then(null,function(s){return(s instanceof i?l:Mr)(s)}):this.then(null,function(s){return(s&&s.name===i?l:Mr)(s)}))},finally:function(r){return this.then(function(i){return ne.resolve(r()).then(function(){return i})},function(i){return ne.resolve(r()).then(function(){return Mr(i)})})},timeout:function(r,i){var l=this;return r<1/0?new ne(function(s,c){var f=setTimeout(function(){return c(new oe.Timeout(i))},r);l.then(s,c).finally(clearTimeout.bind(null,f))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&Xe(ne.prototype,Symbol.toStringTag,"Dexie.Promise"),Nn.env=Di(),Oe(ne,{all:function(){var r=te.apply(null,arguments).map(go);return new ne(function(i,l){r.length===0&&i([]);var s=r.length;r.forEach(function(c,f){return ne.resolve(c).then(function(p){r[f]=p,--s||i(r)},l)})})},resolve:function(r){return r instanceof ne?r:r&&typeof r.then=="function"?new ne(function(i,l){r.then(i,l)}):new ne(Cn,!0,r)},reject:Mr,race:function(){var r=te.apply(null,arguments).map(go);return new ne(function(i,l){r.map(function(s){return ne.resolve(s).then(i,l)})})},PSD:{get:function(){return se},set:function(r){return se=r}},totalEchoes:{get:function(){return Fr}},newPSD:qn,usePSD:Wn,scheduler:{get:function(){return Ar},set:function(r){Ar=r}},rejectionMapper:{get:function(){return qo},set:function(r){qo=r}},follow:function(r,i){return new ne(function(l,s){return qn(function(c,f){var p=se;p.unhandleds=[],p.onunhandled=f,p.finalize=M(function(){var h,g=this;h=function(){g.unhandleds.length===0?c():f(g.unhandleds[0])},Lr.push(function N(){h(),Lr.splice(Lr.indexOf(N),1)}),++jn,Ar(function(){--jn==0&&sr()},[])},p.finalize),r()},i,l,s)})}}),Bt&&(Bt.allSettled&&Xe(ne,"allSettled",function(){var r=te.apply(null,arguments).map(go);return new ne(function(i){r.length===0&&i([]);var l=r.length,s=new Array(l);r.forEach(function(c,f){return ne.resolve(c).then(function(p){return s[f]={status:"fulfilled",value:p}},function(p){return s[f]={status:"rejected",reason:p}}).then(function(){return--l||i(s)})})})}),Bt.any&&typeof AggregateError<"u"&&Xe(ne,"any",function(){var r=te.apply(null,arguments).map(go);return new ne(function(i,l){r.length===0&&l(new AggregateError([]));var s=r.length,c=new Array(s);r.forEach(function(f,p){return ne.resolve(f).then(function(h){return i(h)},function(h){c[p]=h,--s||l(new AggregateError(c))})})})}),Bt.withResolvers)&&(ne.withResolvers=Bt.withResolvers);var kt={awaits:0,echoes:0,id:0},vo=0,cr=[],fr=0,Fr=0,bl=0;function qn(r,p,l,s){var c=se,f=Object.create(c),p=(f.parent=c,f.ref=0,f.global=!1,f.id=++bl,Nn.env,f.env=$n?{Promise:ne,PromiseProp:{value:ne,configurable:!0,writable:!0},all:ne.all,race:ne.race,allSettled:ne.allSettled,any:ne.any,resolve:ne.resolve,reject:ne.reject}:{},p&&de(f,p),++c.ref,f.finalize=function(){--this.parent.ref||this.parent.finalize()},Wn(f,r,l,s));return f.ref===0&&f.finalize(),p}function Kr(){return kt.id||(kt.id=++vo),++kt.awaits,kt.echoes+=zr,kt.id}function Ut(){return!!kt.awaits&&(--kt.awaits==0&&(kt.id=0),kt.echoes=kt.awaits*zr,!0)}function go(r){return kt.echoes&&r&&r.constructor===Bt?(Kr(),r.then(function(i){return Ut(),i},function(i){return Ut(),pt(i)})):r}function wu(){var r=cr[cr.length-1];cr.pop(),Hn(r,!1)}function Hn(r,i){var l,s,c=se;(i?!kt.echoes||fr++&&r===se:!fr||--fr&&r===se)||queueMicrotask(i?(function(f){++Fr,kt.echoes&&--kt.echoes!=0||(kt.echoes=kt.awaits=kt.id=0),cr.push(se),Hn(f,!0)}).bind(null,r):wu),r!==se&&(se=r,c===Nn&&(Nn.env=Di()),$n)&&(l=Nn.env.Promise,s=r.env,c.global||r.global)&&(Object.defineProperty(W,"Promise",s.PromiseProp),l.all=s.all,l.race=s.race,l.resolve=s.resolve,l.reject=s.reject,s.allSettled&&(l.allSettled=s.allSettled),s.any)&&(l.any=s.any)}function Di(){var r=W.Promise;return $n?{Promise:r,PromiseProp:Object.getOwnPropertyDescriptor(W,"Promise"),all:r.all,race:r.race,allSettled:r.allSettled,any:r.any,resolve:r.resolve,reject:r.reject}:{}}function Wn(r,i,l,s,c){var f=se;try{return Hn(r,!0),i(l,s,c)}finally{Hn(f,!1)}}function Ii(r,i,l,s){return typeof r!="function"?r:function(){var c=se;l&&Kr(),Hn(i,!0);try{return r.apply(this,arguments)}finally{Hn(c,!1),s&&queueMicrotask(Ut)}}}function Qo(r){Promise===Bt&&kt.echoes===0?fr===0?r():enqueueNativeMicroTask(r):setTimeout(r,0)}(""+_r).indexOf("[native code]")===-1&&(Kr=Ut=Ke);var pt=ne.reject,dr="￿",He="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",xu="String expected.",$r="__dbnames",Yo="readonly",Br="readwrite";function pr(r,i){return r?i?function(){return r.apply(this,arguments)&&i.apply(this,arguments)}:r:i}var zi={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function hr(r){return typeof r!="string"||/\./.test(r)?function(i){return i}:function(i){return i[r]===void 0&&r in i&&delete(i=it(i))[r],i}}function dn(){throw oe.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function Re(r,i){try{var l=nn(r),s=nn(i);if(l!==s)return l==="Array"?1:s==="Array"?-1:l==="binary"?1:s==="binary"?-1:l==="string"?1:s==="string"?-1:l==="Date"?1:s!=="Date"?NaN:-1;switch(l){case"number":case"Date":case"string":return i<r?1:r<i?-1:0;case"binary":for(var c=_u(r),f=_u(i),p=c.length,h=f.length,g=p<h?p:h,N=0;N<g;++N)if(c[N]!==f[N])return c[N]<f[N]?-1:1;return p===h?0:p<h?-1:1;case"Array":for(var x=r,v=i,w=x.length,C=v.length,S=w<C?w:C,k=0;k<S;++k){var E=Re(x[k],v[k]);if(E!==0)return E}return w===C?0:w<C?-1:1}}catch{}return NaN}function nn(r){var i=typeof r;return i=="object"&&(ArrayBuffer.isView(r)||(i=Ot(r))==="ArrayBuffer")?"binary":i}function _u(r){return r instanceof Uint8Array?r:ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r)}function Go(r,i,l){var s=r.schema.yProps;return s?(i&&0<l.numFailures&&(i=i.filter(function(c,f){return!l.failures[f]})),Promise.all(s.map(function(c){return c=c.updatesTable,i?r.db.table(c).where("k").anyOf(i).delete():r.db.table(c).clear()})).then(function(){return l})):l}xo.prototype.execute=function(r){var i=this["@@propmod"];if(i.add!==void 0){var l=i.add;if(he(l))return J(J([],he(r)?r:[],!0),l).sort();if(typeof l=="number")return(Number(r)||0)+l;if(typeof l=="bigint")try{return BigInt(r)+l}catch{return BigInt(0)+l}throw new TypeError("Invalid term ".concat(l))}if(i.remove!==void 0){var s=i.remove;if(he(s))return he(r)?r.filter(function(c){return!s.includes(c)}).sort():[];if(typeof s=="number")return Number(r)-s;if(typeof s=="bigint")try{return BigInt(r)-s}catch{return BigInt(0)-s}throw new TypeError("Invalid subtrahend ".concat(s))}return l=(l=i.replacePrefix)==null?void 0:l[0],l&&typeof r=="string"&&r.startsWith(l)?i.replacePrefix[1]+r.substring(l.length):r};var wo=xo;function xo(r){this["@@propmod"]=r}function _o(r,i){for(var l=ee(i),s=l.length,c=!1,f=0;f<s;++f){var p=l[f],h=i[p],g=Ie(r,p);h instanceof wo?(ze(r,p,h.execute(g)),c=!0):g!==h&&(ze(r,p,h),c=!0)}return c}We.prototype._trans=function(r,i,l){var s=this._tx||se.trans,c=this.name,f=Ge&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(r==="readonly"?"read":"write"," ").concat(this.name));function p(N,x,v){if(v.schema[c])return i(v.idbtrans,v);throw new oe.NotFound("Table "+c+" not part of transaction")}var h=Vn();try{var g=s&&s.db._novip===this.db._novip?s===se.trans?s._promise(r,p,l):qn(function(){return s._promise(r,p,l)},{trans:s,transless:se.transless||se}):(function N(x,v,w,C){if(x.idbdb&&(x._state.openComplete||se.letThrough||x._vip)){var S=x._createTransaction(v,w,x._dbSchema);try{S.create(),x._state.PR1398_maxLoop=3}catch(k){return k.name===Le.InvalidState&&x.isOpen()&&0<--x._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),x.close({disableAutoOpen:!1}),x.open().then(function(){return N(x,v,w,C)})):pt(k)}return S._promise(v,function(k,E){return qn(function(){return se.trans=S,C(k,E,S)})}).then(function(k){if(v==="readwrite")try{S.idbtrans.commit()}catch{}return v==="readonly"?k:S._completion.then(function(){return k})})}if(x._state.openComplete)return pt(new oe.DatabaseClosed(x._state.dbOpenError));if(!x._state.isBeingOpened){if(!x._state.autoOpen)return pt(new oe.DatabaseClosed);x.open().catch(Ke)}return x._state.dbReadyPromise.then(function(){return N(x,v,w,C)})})(this.db,r,[this.name],p);return f&&(g._consoleTask=f,g=g.catch(function(N){return console.trace(N),pt(N)})),g}finally{h&&ar()}},We.prototype.get=function(r,i){var l=this;return r&&r.constructor===Object?this.where(r).first(i):r==null?pt(new oe.Type("Invalid argument to Table.get()")):this._trans("readonly",function(s){return l.core.get({trans:s,key:r}).then(function(c){return l.hook.reading.fire(c)})}).then(i)},We.prototype.where=function(r){if(typeof r=="string")return new this.db.WhereClause(this,r);if(he(r))return new this.db.WhereClause(this,"[".concat(r.join("+"),"]"));var i=ee(r);if(i.length===1)return this.where(i[0]).equals(r[i[0]]);var l=this.schema.indexes.concat(this.schema.primKey).filter(function(h){if(h.compound&&i.every(function(N){return 0<=h.keyPath.indexOf(N)})){for(var g=0;g<i.length;++g)if(i.indexOf(h.keyPath[g])===-1)return!1;return!0}return!1}).sort(function(h,g){return h.keyPath.length-g.keyPath.length})[0];if(l&&this.db._maxKey!==dr)return p=l.keyPath.slice(0,i.length),this.where(p).equals(p.map(function(h){return r[h]}));!l&&Ge&&console.warn("The query ".concat(JSON.stringify(r)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(i.join("+"),"]"));var s=this.schema.idxByName;function c(h,g){return Re(h,g)===0}var p=i.reduce(function(x,g){var N=x[0],x=x[1],v=s[g],w=r[g];return[N||v,N||!v?pr(x,v&&v.multi?function(C){return C=Ie(C,g),he(C)&&C.some(function(S){return c(w,S)})}:function(C){return c(w,Ie(C,g))}):x]},[null,null]),f=p[0],p=p[1];return f?this.where(f.name).equals(r[f.keyPath]).filter(p):l?this.filter(p):this.where(i).equals("")},We.prototype.filter=function(r){return this.toCollection().and(r)},We.prototype.count=function(r){return this.toCollection().count(r)},We.prototype.offset=function(r){return this.toCollection().offset(r)},We.prototype.limit=function(r){return this.toCollection().limit(r)},We.prototype.each=function(r){return this.toCollection().each(r)},We.prototype.toArray=function(r){return this.toCollection().toArray(r)},We.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},We.prototype.orderBy=function(r){return new this.db.Collection(new this.db.WhereClause(this,he(r)?"[".concat(r.join("+"),"]"):r))},We.prototype.reverse=function(){return this.toCollection().reverse()},We.prototype.mapToClass=function(r){for(var i=this.db,l=this.name,s=((this.schema.mappedClass=r).prototype instanceof dn&&(r=(p=>{var h=x,g=p;if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function N(){this.constructor=h}function x(){return p!==null&&p.apply(this,arguments)||this}return P(h,g),h.prototype=g===null?Object.create(g):(N.prototype=g.prototype,new N),Object.defineProperty(x.prototype,"db",{get:function(){return i},enumerable:!1,configurable:!0}),x.prototype.table=function(){return l},x})(r)),new Set),c=r.prototype;c;c=Ve(c))Object.getOwnPropertyNames(c).forEach(function(p){return s.add(p)});function f(p){if(!p)return p;var h,g=Object.create(r.prototype);for(h in p)if(!s.has(h))try{g[h]=p[h]}catch{}return g}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=f,this.hook("reading",f),r},We.prototype.defineClass=function(){return this.mapToClass(function(r){de(this,r)})},We.prototype.add=function(r,i){var l=this,s=this.schema.primKey,c=s.auto,f=s.keyPath,p=r;return f&&c&&(p=hr(f)(r)),this._trans("readwrite",function(h){return l.core.mutate({trans:h,type:"add",keys:i!=null?[i]:null,values:[p]})}).then(function(h){return h.numFailures?ne.reject(h.failures[0]):h.lastResult}).then(function(h){if(f)try{ze(r,f,h)}catch{}return h})},We.prototype.upsert=function(r,i){var l=this,s=this.schema.primKey.keyPath;return this._trans("readwrite",function(c){return l.core.get({trans:c,key:r}).then(function(f){var p=f??{};return _o(p,i),s&&ze(p,s,r),l.core.mutate({trans:c,type:"put",values:[p],keys:[r],upsert:!0,updates:{keys:[r],changeSpecs:[i]}}).then(function(h){return h.numFailures?ne.reject(h.failures[0]):!!f})})})},We.prototype.update=function(r,i){return typeof r!="object"||he(r)?this.where(":id").equals(r).modify(i):(r=Ie(r,this.schema.primKey.keyPath))===void 0?pt(new oe.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(r).modify(i)},We.prototype.put=function(r,i){var l=this,s=this.schema.primKey,c=s.auto,f=s.keyPath,p=r;return f&&c&&(p=hr(f)(r)),this._trans("readwrite",function(h){return l.core.mutate({trans:h,type:"put",values:[p],keys:i!=null?[i]:null})}).then(function(h){return h.numFailures?ne.reject(h.failures[0]):h.lastResult}).then(function(h){if(f)try{ze(r,f,h)}catch{}return h})},We.prototype.delete=function(r){var i=this;return this._trans("readwrite",function(l){return i.core.mutate({trans:l,type:"delete",keys:[r]}).then(function(s){return Go(i,[r],s)}).then(function(s){return s.numFailures?ne.reject(s.failures[0]):void 0})})},We.prototype.clear=function(){var r=this;return this._trans("readwrite",function(i){return r.core.mutate({trans:i,type:"deleteRange",range:zi}).then(function(l){return Go(r,null,l)})}).then(function(i){return i.numFailures?ne.reject(i.failures[0]):void 0})},We.prototype.bulkGet=function(r){var i=this;return this._trans("readonly",function(l){return i.core.getMany({keys:r,trans:l}).then(function(s){return s.map(function(c){return i.hook.reading.fire(c)})})})},We.prototype.bulkAdd=function(r,i,l){var s=this,c=Array.isArray(i)?i:void 0,f=(l=l||(c?void 0:i))?l.allKeys:void 0;return this._trans("readwrite",function(p){var h=s.schema.primKey,N=h.auto,h=h.keyPath;if(h&&c)throw new oe.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(c&&c.length!==r.length)throw new oe.InvalidArgument("Arguments objects and keys must have the same length");var g=r.length,N=h&&N?r.map(hr(h)):r;return s.core.mutate({trans:p,type:"add",keys:c,values:N,wantResults:f}).then(function(x){var v=x.numFailures,w=x.failures;if(v===0)return f?x.results:x.lastResult;throw new Ae("".concat(s.name,".bulkAdd(): ").concat(v," of ").concat(g," operations failed"),w)})})},We.prototype.bulkPut=function(r,i,l){var s=this,c=Array.isArray(i)?i:void 0,f=(l=l||(c?void 0:i))?l.allKeys:void 0;return this._trans("readwrite",function(p){var h=s.schema.primKey,N=h.auto,h=h.keyPath;if(h&&c)throw new oe.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(c&&c.length!==r.length)throw new oe.InvalidArgument("Arguments objects and keys must have the same length");var g=r.length,N=h&&N?r.map(hr(h)):r;return s.core.mutate({trans:p,type:"put",keys:c,values:N,wantResults:f}).then(function(x){var v=x.numFailures,w=x.failures;if(v===0)return f?x.results:x.lastResult;throw new Ae("".concat(s.name,".bulkPut(): ").concat(v," of ").concat(g," operations failed"),w)})})},We.prototype.bulkUpdate=function(r){var i=this,l=this.core,s=r.map(function(p){return p.key}),c=r.map(function(p){return p.changes}),f=[];return this._trans("readwrite",function(p){return l.getMany({trans:p,keys:s,cache:"clone"}).then(function(h){var g=[],N=[],x=(r.forEach(function(v,w){var C=v.key,S=v.changes,k=h[w];if(k){for(var E=0,R=Object.keys(S);E<R.length;E++){var O=R[E],z=S[O];if(O===i.schema.primKey.keyPath){if(Re(z,C)!==0)throw new oe.Constraint("Cannot update primary key in bulkUpdate()")}else ze(k,O,z)}f.push(w),g.push(C),N.push(k)}}),g.length);return l.mutate({trans:p,type:"put",keys:g,values:N,updates:{keys:s,changeSpecs:c}}).then(function(v){var w=v.numFailures,C=v.failures;if(w===0)return x;for(var S=0,k=Object.keys(C);S<k.length;S++){var E,R=k[S],O=f[Number(R)];O!=null&&(E=C[R],delete C[R],C[O]=E)}throw new Ae("".concat(i.name,".bulkUpdate(): ").concat(w," of ").concat(x," operations failed"),C)})})})},We.prototype.bulkDelete=function(r){var i=this,l=r.length;return this._trans("readwrite",function(s){return i.core.mutate({trans:s,type:"delete",keys:r}).then(function(c){return Go(i,r,c)})}).then(function(s){var c=s.numFailures,f=s.failures;if(c===0)return s.lastResult;throw new Ae("".concat(i.name,".bulkDelete(): ").concat(c," of ").concat(l," operations failed"),f)})};var Ur=We;function We(){}function ko(r){function i(p,h){if(h){for(var g=arguments.length,N=new Array(g-1);--g;)N[g-1]=arguments[g];return l[p].subscribe.apply(null,N),r}if(typeof p=="string")return l[p]}var l={};i.addEventType=f;for(var s=1,c=arguments.length;s<c;++s)f(arguments[s]);return i;function f(p,h,g){var N,x;if(typeof p!="object")return h=h||et,x={subscribers:[],fire:g=g||Ke,subscribe:function(v){x.subscribers.indexOf(v)===-1&&(x.subscribers.push(v),x.fire=h(x.fire,v))},unsubscribe:function(v){x.subscribers=x.subscribers.filter(function(w){return w!==v}),x.fire=x.subscribers.reduce(h,g)}},l[p]=i[p]=x;ee(N=p).forEach(function(v){var w=N[v];if(he(w))f(v,N[v][0],N[v][1]);else{if(w!=="asap")throw new oe.InvalidArgument("Invalid event config");var C=f(v,gn,function(){for(var S=arguments.length,k=new Array(S);S--;)k[S]=arguments[S];C.subscribers.forEach(function(E){$t(function(){E.apply(null,k)})})})}})}}function So(r,i){return Pe(i).from({prototype:r}),i}function Qn(r,i){return!(r.filter||r.algorithm||r.or)&&(i?r.justLimit:!r.replayFilter)}function Xo(r,i){r.filter=pr(r.filter,i)}function Eo(r,i,l){var s=r.replayFilter;r.replayFilter=s?function(){return pr(s(),i())}:i,r.justLimit=l&&!s}function Yn(r,i){if(r.isPrimKey)return i.primaryKey;var l=i.getIndexByKeyPath(r.index);if(l)return l;throw new oe.Schema("KeyPath "+r.index+" on object store "+i.name+" is not indexed")}function ku(r,i,l){var s=Yn(r,i.schema);return i.openCursor({trans:l,values:!r.keysOnly,reverse:r.dir==="prev",unique:!!r.unique,query:{index:s,range:r.range}})}function Vr(r,i,l,s){var c,f,p=r.replayFilter?pr(r.filter,r.replayFilter()):r.filter;return r.or?(c={},f=function(h,g,N){var x,v;p&&!p(g,N,function(w){return g.stop(w)},function(w){return g.fail(w)})||((v=""+(x=g.primaryKey))=="[object ArrayBuffer]"&&(v=""+new Uint8Array(x)),Ee(c,v))||(c[v]=!0,i(h,g,N))},Promise.all([r.or._iterate(f,l),Be(ku(r,s,l),r.algorithm,f,!r.keysOnly&&r.valueMapper)])):Be(ku(r,s,l),pr(r.algorithm,p),i,!r.keysOnly&&r.valueMapper)}function Be(r,i,l,s){var c=Ye(s?function(f,p,h){return l(s(f),p,h)}:l);return r.then(function(f){if(f)return f.start(function(){var p=function(){return f.continue()};i&&!i(f,function(h){return p=h},function(h){f.stop(h),p=Ke},function(h){f.fail(h),p=Ke})||c(f.value,f,function(h){return p=h}),p()})})}Fe.prototype._read=function(r,i){var l=this._ctx;return l.error?l.table._trans(null,pt.bind(null,l.error)):l.table._trans("readonly",r).then(i)},Fe.prototype._write=function(r){var i=this._ctx;return i.error?i.table._trans(null,pt.bind(null,i.error)):i.table._trans("readwrite",r,"locked")},Fe.prototype._addAlgorithm=function(r){var i=this._ctx;i.algorithm=pr(i.algorithm,r)},Fe.prototype._iterate=function(r,i){return Vr(this._ctx,r,i,this._ctx.table.core)},Fe.prototype.clone=function(r){var i=Object.create(this.constructor.prototype),l=Object.create(this._ctx);return r&&de(l,r),i._ctx=l,i},Fe.prototype.raw=function(){return this._ctx.valueMapper=null,this},Fe.prototype.each=function(r){var i=this._ctx;return this._read(function(l){return Vr(i,r,l,i.table.core)})},Fe.prototype.count=function(r){var i=this;return this._read(function(l){var s,c=i._ctx,f=c.table.core;return Qn(c,!0)?f.count({trans:l,query:{index:Yn(c,f.schema),range:c.range}}).then(function(p){return Math.min(p,c.limit)}):(s=0,Vr(c,function(){return++s,!1},l,f).then(function(){return s}))}).then(r)},Fe.prototype.sortBy=function(r,i){var l=r.split(".").reverse(),s=l[0],c=l.length-1;function f(g,N){return N?f(g[l[N]],N-1):g[s]}var p=this._ctx.dir==="next"?1:-1;function h(g,N){return Re(f(g,c),f(N,c))*p}return this.toArray(function(g){return g.sort(h)}).then(i)},Fe.prototype.toArray=function(r){var i=this;return this._read(function(l){var s,c,f,p=i._ctx;return Qn(p,!0)&&0<p.limit?(s=p.valueMapper,c=Yn(p,p.table.core.schema),p.table.core.query({trans:l,limit:p.limit,values:!0,direction:p.dir==="prev"?"prev":void 0,query:{index:c,range:p.range}}).then(function(h){return h=h.result,s?h.map(s):h})):(f=[],Vr(p,function(h){return f.push(h)},l,p.table.core).then(function(){return f}))},r)},Fe.prototype.offset=function(r){var i=this._ctx;return r<=0||(i.offset+=r,Qn(i)?Eo(i,function(){var l=r;return function(s,c){return l===0||(l===1?--l:c(function(){s.advance(l),l=0}),!1)}}):Eo(i,function(){var l=r;return function(){return--l<0}})),this},Fe.prototype.limit=function(r){return this._ctx.limit=Math.min(this._ctx.limit,r),Eo(this._ctx,function(){var i=r;return function(l,s,c){return--i<=0&&s(c),0<=i}},!0),this},Fe.prototype.until=function(r,i){return Xo(this._ctx,function(l,s,c){return!r(l.value)||(s(c),i)}),this},Fe.prototype.first=function(r){return this.limit(1).toArray(function(i){return i[0]}).then(r)},Fe.prototype.last=function(r){return this.reverse().first(r)},Fe.prototype.filter=function(r){var i;return Xo(this._ctx,function(l){return r(l.value)}),(i=this._ctx).isMatch=pr(i.isMatch,r),this},Fe.prototype.and=function(r){return this.filter(r)},Fe.prototype.or=function(r){return new this.db.WhereClause(this._ctx.table,r,this)},Fe.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},Fe.prototype.desc=function(){return this.reverse()},Fe.prototype.eachKey=function(r){var i=this._ctx;return i.keysOnly=!i.isMatch,this.each(function(l,s){r(s.key,s)})},Fe.prototype.eachUniqueKey=function(r){return this._ctx.unique="unique",this.eachKey(r)},Fe.prototype.eachPrimaryKey=function(r){var i=this._ctx;return i.keysOnly=!i.isMatch,this.each(function(l,s){r(s.primaryKey,s)})},Fe.prototype.keys=function(r){var i=this._ctx,l=(i.keysOnly=!i.isMatch,[]);return this.each(function(s,c){l.push(c.key)}).then(function(){return l}).then(r)},Fe.prototype.primaryKeys=function(r){var i=this._ctx;if(Qn(i,!0)&&0<i.limit)return this._read(function(s){var c=Yn(i,i.table.core.schema);return i.table.core.query({trans:s,values:!1,limit:i.limit,direction:i.dir==="prev"?"prev":void 0,query:{index:c,range:i.range}})}).then(function(s){return s.result}).then(r);i.keysOnly=!i.isMatch;var l=[];return this.each(function(s,c){l.push(c.primaryKey)}).then(function(){return l}).then(r)},Fe.prototype.uniqueKeys=function(r){return this._ctx.unique="unique",this.keys(r)},Fe.prototype.firstKey=function(r){return this.limit(1).keys(function(i){return i[0]}).then(r)},Fe.prototype.lastKey=function(r){return this.reverse().firstKey(r)},Fe.prototype.distinct=function(){var r,i=this._ctx,i=i.index&&i.table.schema.idxByName[i.index];return i&&i.multi&&(r={},Xo(this._ctx,function(s){var s=s.primaryKey.toString(),c=Ee(r,s);return r[s]=!0,!c})),this},Fe.prototype.modify=function(r){var i=this,l=this._ctx;return this._write(function(s){function c(k,E){var R=E.failures;w+=k-E.numFailures;for(var O=0,z=ee(R);O<z.length;O++){var K=z[O];v.push(R[K])}}var f=typeof r=="function"?r:function(k){return _o(k,r)},p=l.table.core,x=p.schema.primaryKey,h=x.outbound,g=x.extractKey,N=200,x=i.db._options.modifyChunkSize,v=(x&&(N=typeof x=="object"?x[p.name]||x["*"]||200:x),[]),w=0,C=[],S=r===Jo;return i.clone().primaryKeys().then(function(k){function E(O){var z=Math.min(N,k.length-O),K=k.slice(O,O+z);return(S?Promise.resolve([]):p.getMany({trans:s,keys:K,cache:"immutable"})).then(function(B){var Y=[],q=[],re=h?[]:null,Q=S?K:[];if(!S)for(var ue=0;ue<z;++ue){var $=B[ue],ve={value:it($),primKey:k[O+ue]};f.call(ve,ve.value,ve)!==!1&&(ve.value==null?Q.push(k[O+ue]):h||Re(g($),g(ve.value))===0?(q.push(ve.value),h&&re.push(k[O+ue])):(Q.push(k[O+ue]),Y.push(ve.value)))}return Promise.resolve(0<Y.length&&p.mutate({trans:s,type:"add",values:Y}).then(function(ge){for(var ke in ge.failures)Q.splice(parseInt(ke),1);c(Y.length,ge)})).then(function(){return(0<q.length||R&&typeof r=="object")&&p.mutate({trans:s,type:"put",keys:re,values:q,criteria:R,changeSpec:typeof r!="function"&&r,isAdditionalChunk:0<O}).then(function(ge){return c(q.length,ge)})}).then(function(){return(0<Q.length||R&&S)&&p.mutate({trans:s,type:"delete",keys:Q,criteria:R,isAdditionalChunk:0<O}).then(function(ge){return Go(l.table,Q,ge)}).then(function(ge){return c(Q.length,ge)})}).then(function(){return k.length>O+z&&E(O+N)})})}var R=Qn(l)&&l.limit===1/0&&(typeof r!="function"||S)&&{index:l.index,range:l.range};return E(0).then(function(){if(0<v.length)throw new Ne("Error modifying one or more objects",v,w,C);return k.length})})})},Fe.prototype.delete=function(){var r=this._ctx,i=r.range;return!Qn(r)||r.table.schema.yProps||!r.isPrimKey&&i.type!==3?this.modify(Jo):this._write(function(l){var s=r.table.core.schema.primaryKey,c=i;return r.table.core.count({trans:l,query:{index:s,range:c}}).then(function(f){return r.table.core.mutate({trans:l,type:"deleteRange",range:c}).then(function(g){var h=g.failures,g=g.numFailures;if(g)throw new Ne("Could not delete some values",Object.keys(h).map(function(N){return h[N]}),f-g);return f-g})})})};var Su=Fe;function Fe(){}var Jo=function(r,i){return i.value=null};function Eu(r,i){return r<i?-1:r===i?0:1}function Cu(r,i){return i<r?-1:r===i?0:1}function Vt(r,i,l){return r=r instanceof Tn?new r.Collection(r):r,r._ctx.error=new(l||TypeError)(i),r}function Gn(r){return new r.Collection(r,function(){return On("")}).limit(0)}function mr(C,i,l,s){var c,f,p,h,g,N,x,v=l.length;if(!l.every(function(k){return typeof k=="string"}))return Vt(C,xu);function w(k){c=k==="next"?function(R){return R.toUpperCase()}:function(R){return R.toLowerCase()},f=k==="next"?function(R){return R.toLowerCase()}:function(R){return R.toUpperCase()},p=k==="next"?Eu:Cu;var E=l.map(function(R){return{lower:f(R),upper:c(R)}}).sort(function(R,O){return p(R.lower,O.lower)});h=E.map(function(R){return R.upper}),g=E.map(function(R){return R.lower}),x=(N=k)==="next"?"":s}w("next");var C=new C.Collection(C,function(){return At(h[0],g[v-1]+s)}),S=(C._ondirectionchange=function(k){w(k)},0);return C._addAlgorithm(function(k,E,R){var O=k.key;if(typeof O=="string"){var z=f(O);if(i(z,g,S))return!0;for(var K=null,B=S;B<v;++B){var Y=((q,re,Q,ue,$,ve)=>{for(var ge=Math.min(q.length,ue.length),ke=-1,je=0;je<ge;++je){var qt=re[je];if(qt!==ue[je])return $(q[je],Q[je])<0?q.substr(0,je)+Q[je]+Q.substr(je+1):$(q[je],ue[je])<0?q.substr(0,je)+ue[je]+Q.substr(je+1):0<=ke?q.substr(0,ke)+re[ke]+Q.substr(ke+1):null;$(q[je],qt)<0&&(ke=je)}return ge<ue.length&&ve==="next"?q+Q.substr(q.length):ge<q.length&&ve==="prev"?q.substr(0,Q.length):ke<0?null:q.substr(0,ke)+ue[ke]+Q.substr(ke+1)})(O,z,h[B],g[B],p,N);Y===null&&K===null?S=B+1:(K===null||0<p(K,Y))&&(K=Y)}E(K!==null?function(){k.continue(K+x)}:R)}return!1}),C}function At(r,i,l,s){return{type:2,lower:r,upper:i,lowerOpen:l,upperOpen:s}}function On(r){return{type:1,lower:r,upper:r}}Object.defineProperty(ft.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),ft.prototype.between=function(r,i,l,s){l=l!==!1,s=s===!0;try{return 0<this._cmp(r,i)||this._cmp(r,i)===0&&(l||s)&&(!l||!s)?Gn(this):new this.Collection(this,function(){return At(r,i,!l,!s)})}catch{return Vt(this,He)}},ft.prototype.equals=function(r){return r==null?Vt(this,He):new this.Collection(this,function(){return On(r)})},ft.prototype.above=function(r){return r==null?Vt(this,He):new this.Collection(this,function(){return At(r,void 0,!0)})},ft.prototype.aboveOrEqual=function(r){return r==null?Vt(this,He):new this.Collection(this,function(){return At(r,void 0,!1)})},ft.prototype.below=function(r){return r==null?Vt(this,He):new this.Collection(this,function(){return At(void 0,r,!1,!0)})},ft.prototype.belowOrEqual=function(r){return r==null?Vt(this,He):new this.Collection(this,function(){return At(void 0,r)})},ft.prototype.startsWith=function(r){return typeof r!="string"?Vt(this,xu):this.between(r,r+dr,!0,!0)},ft.prototype.startsWithIgnoreCase=function(r){return r===""?this.startsWith(r):mr(this,function(i,l){return i.indexOf(l[0])===0},[r],dr)},ft.prototype.equalsIgnoreCase=function(r){return mr(this,function(i,l){return i===l[0]},[r],"")},ft.prototype.anyOfIgnoreCase=function(){var r=te.apply(pe,arguments);return r.length===0?Gn(this):mr(this,function(i,l){return l.indexOf(i)!==-1},r,"")},ft.prototype.startsWithAnyOfIgnoreCase=function(){var r=te.apply(pe,arguments);return r.length===0?Gn(this):mr(this,function(i,l){return l.some(function(s){return i.indexOf(s)===0})},r,dr)},ft.prototype.anyOf=function(){var r,i,l=this,s=te.apply(pe,arguments),c=this._cmp;try{s.sort(c)}catch{return Vt(this,He)}return s.length===0?Gn(this):((r=new this.Collection(this,function(){return At(s[0],s[s.length-1])}))._ondirectionchange=function(f){c=f==="next"?l._ascending:l._descending,s.sort(c)},i=0,r._addAlgorithm(function(f,p,h){for(var g=f.key;0<c(g,s[i]);)if(++i===s.length)return p(h),!1;return c(g,s[i])===0||(p(function(){f.continue(s[i])}),!1)}),r)},ft.prototype.notEqual=function(r){return this.inAnyRange([[-1/0,r],[r,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},ft.prototype.noneOf=function(){var r=te.apply(pe,arguments);if(r.length===0)return new this.Collection(this);try{r.sort(this._ascending)}catch{return Vt(this,He)}var i=r.reduce(function(l,s){return l?l.concat([[l[l.length-1][1],s]]):[[-1/0,s]]},null);return i.push([r[r.length-1],this.db._maxKey]),this.inAnyRange(i,{includeLowers:!1,includeUppers:!1})},ft.prototype.inAnyRange=function(r,R){var l=this,s=this._cmp,c=this._ascending,f=this._descending,p=this._min,h=this._max;if(r.length===0)return Gn(this);if(!r.every(function(O){return O[0]!==void 0&&O[1]!==void 0&&c(O[0],O[1])<=0}))return Vt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",oe.InvalidArgument);var g=!R||R.includeLowers!==!1,N=R&&R.includeUppers===!0,x,v=c;function w(O,z){return v(O[0],z[0])}try{(x=r.reduce(function(O,z){for(var K=0,B=O.length;K<B;++K){var Y=O[K];if(s(z[0],Y[1])<0&&0<s(z[1],Y[0])){Y[0]=p(Y[0],z[0]),Y[1]=h(Y[1],z[1]);break}}return K===B&&O.push(z),O},[])).sort(w)}catch{return Vt(this,He)}var C=0,S=N?function(O){return 0<c(O,x[C][1])}:function(O){return 0<=c(O,x[C][1])},k=g?function(O){return 0<f(O,x[C][0])}:function(O){return 0<=f(O,x[C][0])},E=S,R=new this.Collection(this,function(){return At(x[0][0],x[x.length-1][1],!g,!N)});return R._ondirectionchange=function(O){v=O==="next"?(E=S,c):(E=k,f),x.sort(w)},R._addAlgorithm(function(O,z,K){for(var B,Y=O.key;E(Y);)if(++C===x.length)return z(K),!1;return!S(B=Y)&&!k(B)||(l._cmp(Y,x[C][1])===0||l._cmp(Y,x[C][0])===0||z(function(){v===c?O.continue(x[C][0]):O.continue(x[C][1])}),!1)}),R},ft.prototype.startsWithAnyOf=function(){var r=te.apply(pe,arguments);return r.every(function(i){return typeof i=="string"})?r.length===0?Gn(this):this.inAnyRange(r.map(function(i){return[i,i+dr]})):Vt(this,"startsWithAnyOf() only works with strings")};var Tn=ft;function ft(){}function Lt(r){return Ye(function(i){return rn(i),r(i.target.error),!1})}function rn(r){r.stopPropagation&&r.stopPropagation(),r.preventDefault&&r.preventDefault()}var Co="storagemutated",Zo="x-storagemutated-1",on=ko(null,Co),Rl=(pn.prototype._lock=function(){return nt(!se.global),++this._reculock,this._reculock!==1||se.global||(se.lockOwnerFor=this),this},pn.prototype._unlock=function(){if(nt(!se.global),--this._reculock==0)for(se.global||(se.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var r=this._blockedFuncs.shift();try{Wn(r[1],r[0])}catch{}}return this},pn.prototype._locked=function(){return this._reculock&&se.lockOwnerFor!==this},pn.prototype.create=function(r){var i=this;if(this.mode){var l=this.db.idbdb,s=this.db._state.dbOpenError;if(nt(!this.idbtrans),!r&&!l)switch(s&&s.name){case"DatabaseClosedError":throw new oe.DatabaseClosed(s);case"MissingAPIError":throw new oe.MissingAPI(s.message,s);default:throw new oe.OpenFailed(s)}if(!this.active)throw new oe.TransactionInactive;nt(this._completion._state===null),(r=this.idbtrans=r||(this.db.core||l).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Ye(function(c){rn(c),i._reject(r.error)}),r.onabort=Ye(function(c){rn(c),i.active&&i._reject(new oe.Abort(r.error)),i.active=!1,i.on("abort").fire(c)}),r.oncomplete=Ye(function(){i.active=!1,i._resolve(),"mutatedParts"in r&&on.storagemutated.fire(r.mutatedParts)})}return this},pn.prototype._promise=function(r,i,l){var s,c=this;return r==="readwrite"&&this.mode!=="readwrite"?pt(new oe.ReadOnly("Transaction is readonly")):this.active?this._locked()?new ne(function(f,p){c._blockedFuncs.push([function(){c._promise(r,i,l).then(f,p)},se])}):l?qn(function(){var f=new ne(function(p,h){c._lock();var g=i(p,h,c);g&&g.then&&g.then(p,h)});return f.finally(function(){return c._unlock()}),f._lib=!0,f}):((s=new ne(function(f,p){var h=i(f,p,c);h&&h.then&&h.then(f,p)}))._lib=!0,s):pt(new oe.TransactionInactive)},pn.prototype._root=function(){return this.parent?this.parent._root():this},pn.prototype.waitFor=function(r){var i,l=this._root(),s=ne.resolve(r),c=(l._waitingFor?l._waitingFor=l._waitingFor.then(function(){return s}):(l._waitingFor=s,l._waitingQueue=[],i=l.idbtrans.objectStore(l.storeNames[0]),(function f(){for(++l._spinCount;l._waitingQueue.length;)l._waitingQueue.shift()();l._waitingFor&&(i.get(-1/0).onsuccess=f)})()),l._waitingFor);return new ne(function(f,p){s.then(function(h){return l._waitingQueue.push(Ye(f.bind(null,h)))},function(h){return l._waitingQueue.push(Ye(p.bind(null,h)))}).finally(function(){l._waitingFor===c&&(l._waitingFor=null)})})},pn.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new oe.Abort))},pn.prototype.table=function(r){var i=this._memoizedTables||(this._memoizedTables={});if(Ee(i,r))return i[r];var l=this.schema[r];if(l)return(l=new this.db.Table(r,l,this)).core=this.db.core.table(r),i[r]=l;throw new oe.NotFound("Table "+r+" not part of transaction")},pn);function pn(){}function qr(r,i,l,s,c,f,p,h){return{name:r,keyPath:i,unique:l,multi:s,auto:c,compound:f,src:(l&&!p?"&":"")+(s?"*":"")+(c?"++":"")+Ai(i),type:h}}function Ai(r){return typeof r=="string"?r:r?"["+[].join.call(r,"+")+"]":""}function Li(r,i,l){return{name:r,primKey:i,indexes:l,mappedClass:null,idxByName:(s=function(c){return[c.name,c]},l.reduce(function(c,f,p){return f=s(f,p),f&&(c[f[0]]=f[1]),c},{}))};var s}var bn=function(r){try{return r.only([[]]),bn=function(){return[[]]},[[]]}catch{return bn=function(){return dr},dr}};function yr(r){return r==null?function(){}:typeof r=="string"?(i=r).split(".").length===1?function(l){return l[i]}:function(l){return Ie(l,i)}:function(l){return Ie(l,r)};var i}function vr(r){return[].slice.call(r)}var ei=0;function Po(r){return r==null?":id":typeof r=="string"?r:"[".concat(r.join("+"),"]")}function Dl(r,i,p){function s(E){if(E.type===3)return null;if(E.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var C=E.lower,S=E.upper,k=E.lowerOpen,E=E.upperOpen;return C===void 0?S===void 0?null:i.upperBound(S,!!E):S===void 0?i.lowerBound(C,!!k):i.bound(C,S,!!k,!!E)}function c(w){var C,S,k=w.name;return{name:k,schema:w,mutate:function(E){var R=E.trans,O=E.type,z=E.keys,K=E.values,B=E.range;return new Promise(function(Y,q){Y=Ye(Y);var re=R.objectStore(k),Q=re.keyPath==null,ue=O==="put"||O==="add";if(!ue&&O!=="delete"&&O!=="deleteRange")throw new Error("Invalid operation type: "+O);var $,ve=(z||K||{length:1}).length;if(z&&K&&z.length!==K.length)throw new Error("Given keys array must have same length as given values array.");if(ve===0)return Y({numFailures:0,failures:{},results:[],lastResult:void 0});function ge(Mt){++qt,rn(Mt)}var ke=[],je=[],qt=0;if(O==="deleteRange"){if(B.type===4)return Y({numFailures:qt,failures:je,results:[],lastResult:void 0});B.type===3?ke.push($=re.clear()):ke.push($=re.delete(s(B)))}else{var Q=ue?Q?[K,z]:[K,null]:[z,null],_e=Q[0],ut=Q[1];if(ue)for(var St=0;St<ve;++St)ke.push($=ut&&ut[St]!==void 0?re[O](_e[St],ut[St]):re[O](_e[St])),$.onerror=ge;else for(St=0;St<ve;++St)ke.push($=re[O](_e[St])),$.onerror=ge}function eo(Mt){Mt=Mt.target.result,ke.forEach(function(Er,Cr){return Er.error!=null&&(je[Cr]=Er.error)}),Y({numFailures:qt,failures:je,results:O==="delete"?z:ke.map(function(Er){return Er.result}),lastResult:Mt})}$.onerror=function(Mt){ge(Mt),eo(Mt)},$.onsuccess=eo})},getMany:function(E){var R=E.trans,O=E.keys;return new Promise(function(z,K){z=Ye(z);for(var B,Y=R.objectStore(k),q=O.length,re=new Array(q),Q=0,ue=0,$=function(ke){ke=ke.target,re[ke._pos]=ke.result,++ue===Q&&z(re)},ve=Lt(K),ge=0;ge<q;++ge)O[ge]!=null&&((B=Y.get(O[ge]))._pos=ge,B.onsuccess=$,B.onerror=ve,++Q);Q===0&&z(re)})},get:function(E){var R=E.trans,O=E.key;return new Promise(function(z,K){z=Ye(z);var B=R.objectStore(k).get(O);B.onsuccess=function(Y){return z(Y.target.result)},B.onerror=Lt(K)})},query:(C=g,S=N,function(E){return new Promise(function(R,O){R=Ye(R);var z,K,B,Y,ve=E.trans,q=E.values,re=E.limit,$=E.query,Q=(Q=E.direction)!=null?Q:"next",ue=re===1/0?void 0:re,ge=$.index,$=$.range,ve=ve.objectStore(k),ve=ge.isPrimaryKey?ve:ve.index(ge.name),ge=s($);if(re===0)return R({result:[]});S?($={query:ge,count:ue,direction:Q},(z=q?ve.getAll($):ve.getAllKeys($)).onsuccess=function(ke){return R({result:ke.target.result})},z.onerror=Lt(O)):C&&Q==="next"?((z=q?ve.getAll(ge,ue):ve.getAllKeys(ge,ue)).onsuccess=function(ke){return R({result:ke.target.result})},z.onerror=Lt(O)):(K=0,B=!q&&"openKeyCursor"in ve?ve.openKeyCursor(ge,Q):ve.openCursor(ge,Q),Y=[],B.onsuccess=function(){var ke=B.result;return!ke||(Y.push(q?ke.value:ke.primaryKey),++K===re)?R({result:Y}):void ke.continue()},B.onerror=Lt(O))})}),openCursor:function(E){var R=E.trans,O=E.values,z=E.query,K=E.reverse,B=E.unique;return new Promise(function(Y,q){Y=Ye(Y);var ue=z.index,re=z.range,Q=R.objectStore(k),Q=ue.isPrimaryKey?Q:Q.index(ue.name),ue=K?B?"prevunique":"prev":B?"nextunique":"next",$=!O&&"openKeyCursor"in Q?Q.openKeyCursor(s(re),ue):Q.openCursor(s(re),ue);$.onerror=Lt(q),$.onsuccess=Ye(function(ve){var ge,ke,je,qt,_e=$.result;_e?(_e.___id=++ei,_e.done=!1,ge=_e.continue.bind(_e),ke=(ke=_e.continuePrimaryKey)&&ke.bind(_e),je=_e.advance.bind(_e),qt=function(){throw new Error("Cursor not stopped")},_e.trans=R,_e.stop=_e.continue=_e.continuePrimaryKey=_e.advance=function(){throw new Error("Cursor not started")},_e.fail=Ye(q),_e.next=function(){var ut=this,St=1;return this.start(function(){return St--?ut.continue():ut.stop()}).then(function(){return ut})},_e.start=function(ut){function St(){if($.result)try{ut()}catch(Mt){_e.fail(Mt)}else _e.done=!0,_e.start=function(){throw new Error("Cursor behind last entry")},_e.stop()}var eo=new Promise(function(Mt,Er){Mt=Ye(Mt),$.onerror=Lt(Er),_e.fail=Er,_e.stop=function(Cr){_e.stop=_e.continue=_e.continuePrimaryKey=_e.advance=qt,Mt(Cr)}});return $.onsuccess=Ye(function(Mt){$.onsuccess=St,St()}),_e.continue=ge,_e.continuePrimaryKey=ke,_e.advance=je,St(),eo},Y(_e)):Y(null)},q)})},count:function(E){var R=E.query,O=E.trans,z=R.index,K=R.range;return new Promise(function(B,Y){var q=O.objectStore(k),q=z.isPrimaryKey?q:q.index(z.name),re=s(K),re=re?q.count(re):q.count();re.onsuccess=Ye(function(Q){return B(Q.target.result)}),re.onerror=Lt(Y)})}}}f=p,h=vr((p=r).objectStoreNames),x=0<h.length?f.objectStore(h[0]):{};var f,p={schema:{name:p.name,tables:h.map(function(w){return f.objectStore(w)}).map(function(w){var C=w.keyPath,S=w.autoIncrement,E=he(C),k={},E={name:w.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:C==null,compound:E,keyPath:C,autoIncrement:S,unique:!0,extractKey:yr(C)},indexes:vr(w.indexNames).map(function(R){return w.index(R)}).map(function(K){var B=K.name,O=K.unique,z=K.multiEntry,K=K.keyPath,B={name:B,compound:he(K),keyPath:K,unique:O,multiEntry:z,extractKey:yr(K)};return k[Po(K)]=B}),getIndexByKeyPath:function(R){return k[Po(R)]}};return k[":id"]=E.primaryKey,C!=null&&(k[Po(C)]=E.primaryKey),E})},hasGetAll:0<h.length&&"getAll"in x&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604),hasIdb3Features:"getAllRecords"in x},h=p.schema,g=p.hasGetAll,N=p.hasIdb3Features,x=h.tables.map(c),v={};return x.forEach(function(w){return v[w.name]=w}),{stack:"dbcore",transaction:r.transaction.bind(r),table:function(w){if(v[w])return v[w];throw new Error("Table '".concat(w,"' not found"))},MIN_KEY:-1/0,MAX_KEY:bn(i),schema:h}}function Mi(r,i,l,s){return l=l.IDBKeyRange,i=Dl(i,l,s),{dbcore:r.dbcore.reduce(function(c,f){return f=f.create,F(F({},c),f(c))},i)}}function gr(r,i){var l=i.db,l=Mi(r._middlewares,l,r._deps,i);r.core=l.dbcore,r.tables.forEach(function(s){var c=s.name;r.core.schema.tables.some(function(f){return f.name===c})&&(s.core=r.core.table(c),r[c]instanceof r.Table)&&(r[c].core=s.core)})}function Hr(r,i,l,s){l.forEach(function(c){var f=s[c];i.forEach(function(p){var h=(function g(N,x){return De(N,x)||(N=Ve(N))&&g(N,x)})(p,c);(!h||"value"in h&&h.value===void 0)&&(p===r.Transaction.prototype||p instanceof r.Transaction?Xe(p,c,{get:function(){return this.table(c)},set:function(g){_t(this,c,{value:g,writable:!0,configurable:!0,enumerable:!0})}}):p[c]=new r.Table(c,f))})})}function ti(r,i){i.forEach(function(l){for(var s in l)l[s]instanceof r.Table&&delete l[s]})}function Xn(r,i){return r._cfg.version-i._cfg.version}function Fi(r,i,l,s){var c=r._dbSchema,f=(l.objectStoreNames.contains("$meta")&&!c.$meta&&(c.$meta=Li("$meta",oi("")[0],[]),r._storeNames.push("$meta")),r._createTransaction("readwrite",r._storeNames,c)),p=(f.create(l),f._completion.catch(s),f._reject.bind(f)),h=se.transless||se;qn(function(){if(se.trans=f,se.transless=h,i!==0)return gr(r,l),N=i,((g=f).storeNames.includes("$meta")?g.table("$meta").get("version").then(function(x){return x??N}):ne.resolve(N)).then(function(E){var v=r,w=E,C=f,S=l,k=[],E=v._versions,R=v._dbSchema=Tt(0,v.idbdb,S);return(E=E.filter(function(O){return O._cfg.version>=w})).length===0?ne.resolve():(E.forEach(function(O){k.push(function(){var z,K,B,Y=R,q=O._cfg.dbschema,re=(Rn(v,Y,S),Rn(v,q,S),R=v._dbSchema=q,ri(Y,q)),Q=(re.add.forEach(function(ue){Wr(S,ue[0],ue[1].primKey,ue[1].indexes)}),re.change.forEach(function(ue){if(ue.recreate)throw new oe.Upgrade("Not yet support for changing primary key");var $=S.objectStore(ue.name);ue.add.forEach(function(ve){return jo($,ve)}),ue.change.forEach(function(ve){$.deleteIndex(ve.name),jo($,ve)}),ue.del.forEach(function(ve){return $.deleteIndex(ve)})}),O._cfg.contentUpgrade);if(Q&&O._cfg.version>w)return gr(v,S),C._memoizedTables={},z=jt(q),re.del.forEach(function(ue){z[ue]=Y[ue]}),ti(v,[v.Transaction.prototype]),Hr(v,[v.Transaction.prototype],ee(z),z),C.schema=z,(K=j(Q))&&Kr(),q=ne.follow(function(){var ue;(B=Q(C))&&K&&(ue=Ut.bind(null,null),B.then(ue,ue))}),B&&typeof B.then=="function"?ne.resolve(B):q.then(function(){return B})}),k.push(function(z){var K,B,Y=O._cfg.dbschema;K=Y,B=z,[].slice.call(B.db.objectStoreNames).forEach(function(q){return K[q]==null&&B.db.deleteObjectStore(q)}),ti(v,[v.Transaction.prototype]),Hr(v,[v.Transaction.prototype],v._storeNames,v._dbSchema),C.schema=v._dbSchema}),k.push(function(z){v.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(v.idbdb.version/10)===O._cfg.version?(v.idbdb.deleteObjectStore("$meta"),delete v._dbSchema.$meta,v._storeNames=v._storeNames.filter(function(K){return K!=="$meta"})):z.objectStore("$meta").put(O._cfg.version,"version"))})}),(function O(){return k.length?ne.resolve(k.shift()(C.idbtrans)).then(O):ne.resolve()})().then(function(){No(R,S)}))}).catch(p);var g,N;ee(c).forEach(function(x){Wr(l,x,c[x].primKey,c[x].indexes)}),gr(r,l),ne.follow(function(){return r.on.populate.fire(f)}).catch(p)})}function ni(r,i){No(r._dbSchema,i),i.db.version%10!=0||i.objectStoreNames.contains("$meta")||i.db.createObjectStore("$meta").add(Math.ceil(i.db.version/10-1),"version");var l=Tt(0,r.idbdb,i);Rn(r,r._dbSchema,i);for(var s=0,c=ri(l,r._dbSchema).change;s<c.length;s++){var f=(p=>{if(p.change.length||p.recreate)return console.warn("Unable to patch indexes of table ".concat(p.name," because it has changes on the type of index or primary key.")),{value:void 0};var h=i.objectStore(p.name);p.add.forEach(function(g){Ge&&console.debug("Dexie upgrade patch: Creating missing index ".concat(p.name,".").concat(g.src)),jo(h,g)})})(c[s]);if(typeof f=="object")return f.value}}function ri(r,i){var l,s={del:[],add:[],change:[]};for(l in r)i[l]||s.del.push(l);for(l in i){var c=r[l],f=i[l];if(c){var p={name:l,def:f,recreate:!1,del:[],add:[],change:[]};if(""+(c.primKey.keyPath||"")!=""+(f.primKey.keyPath||"")||c.primKey.auto!==f.primKey.auto)p.recreate=!0,s.change.push(p);else{var h=c.idxByName,g=f.idxByName,N=void 0;for(N in h)g[N]||p.del.push(N);for(N in g){var x=h[N],v=g[N];x?x.src!==v.src&&p.change.push(v):p.add.push(v)}(0<p.del.length||0<p.add.length||0<p.change.length)&&s.change.push(p)}}else s.add.push([l,f])}return s}function Wr(r,i,l,s){var c=r.db.createObjectStore(i,l.keyPath?{keyPath:l.keyPath,autoIncrement:l.auto}:{autoIncrement:l.auto});s.forEach(function(f){return jo(c,f)})}function No(r,i){ee(r).forEach(function(l){i.db.objectStoreNames.contains(l)||(Ge&&console.debug("Dexie: Creating missing table",l),Wr(i,l,r[l].primKey,r[l].indexes))})}function jo(r,i){r.createIndex(i.name,i.keyPath,{unique:i.unique,multiEntry:i.multi})}function Tt(r,i,l){var s={};return wt(i.objectStoreNames,0).forEach(function(c){for(var f=l.objectStore(c),p=qr(Ai(N=f.keyPath),N||"",!0,!1,!!f.autoIncrement,N&&typeof N!="string",!0),h=[],g=0;g<f.indexNames.length;++g){var x=f.index(f.indexNames[g]),N=x.keyPath,x=qr(x.name,N,!!x.unique,!!x.multiEntry,!1,N&&typeof N!="string",!1);h.push(x)}s[c]=Li(c,p,h)}),s}function Rn(r,i,l){for(var s=l.db.objectStoreNames,c=0;c<s.length;++c){var f=s[c],p=l.objectStore(f);r._hasGetAll="getAll"in p;for(var h=0;h<p.indexNames.length;++h){var g,N=p.indexNames[h],x=p.index(N).keyPath,x=typeof x=="string"?x:"["+wt(x).join("+")+"]";i[f]&&(g=i[f].idxByName[x])&&(g.name=N,delete i[f].idxByName[x],i[f].idxByName[N]=g)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&W.WorkerGlobalScope&&W instanceof W.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}function oi(r){return r.split(",").map(function(i,l){var c=i.split(":"),s=(s=c[1])==null?void 0:s.trim(),c=(i=c[0].trim()).replace(/([&*]|\+\+)/g,""),f=/^\[/.test(c)?c.match(/^\[(.*)\]$/)[1].split("+"):c;return qr(c,f||null,/\&/.test(i),/\*/.test(i),/\+\+/.test(i),he(f),l===0,s)})}Qr.prototype._createTableSchema=Li,Qr.prototype._parseIndexSyntax=oi,Qr.prototype._parseStoresSpec=function(r,i){var l=this;ee(r).forEach(function(s){if(r[s]!==null){var c=l._parseIndexSyntax(r[s]),f=c.shift();if(!f)throw new oe.Schema("Invalid schema for table "+s+": "+r[s]);if(f.unique=!0,f.multi)throw new oe.Schema("Primary key cannot be multiEntry*");c.forEach(function(p){if(p.auto)throw new oe.Schema("Only primary key can be marked as autoIncrement (++)");if(!p.keyPath)throw new oe.Schema("Index must have a name and cannot be an empty string")}),f=l._createTableSchema(s,f,c),i[s]=f}})},Qr.prototype.stores=function(l){var i=this.db,l=(this._cfg.storesSource=this._cfg.storesSource?de(this._cfg.storesSource,l):l,i._versions),s={},c={};return l.forEach(function(f){de(s,f._cfg.storesSource),c=f._cfg.dbschema={},f._parseStoresSpec(s,c)}),i._dbSchema=c,ti(i,[i._allTables,i,i.Transaction.prototype]),Hr(i,[i._allTables,i,i.Transaction.prototype,this._cfg.tables],ee(c),c),i._storeNames=ee(c),this},Qr.prototype.upgrade=function(r){return this._cfg.contentUpgrade=Qe(this._cfg.contentUpgrade||Ke,r),this};var Oo=Qr;function Qr(){}var wr=(()=>{var r,i,l;return typeof FinalizationRegistry<"u"&&typeof WeakRef<"u"?(r=new Set,i=new FinalizationRegistry(function(s){r.delete(s)}),{toArray:function(){return Array.from(r).map(function(s){return s.deref()}).filter(function(s){return s!==void 0})},add:function(s){var c=new WeakRef(s._novip);r.add(c),i.register(s._novip,c,c),r.size>s._options.maxConnections&&(c=r.values().next().value,r.delete(c),i.unregister(c))},remove:function(s){if(s)for(var c=r.values(),f=c.next();!f.done;){var p=f.value;if(p.deref()===s._novip)return r.delete(p),void i.unregister(p);f=c.next()}}}):(l=[],{toArray:function(){return l},add:function(s){l.push(s._novip)},remove:function(s){s&&(s=l.indexOf(s._novip))!==-1&&l.splice(s,1)}})})();function To(r,i){var l=r._dbNamesDB;return l||(l=r._dbNamesDB=new In($r,{addons:[],indexedDB:r,IDBKeyRange:i})).version(1).stores({dbnames:"name"}),l.table("dbnames")}function xr(r){return r&&typeof r.databases=="function"}function Yr(r){return qn(function(){return se.letThrough=!0,r()})}function ii(r){return!("from"in r)}var bt=function(r,i){var l;if(!this)return l=new bt,r&&"d"in r&&de(l,r),l;de(this,arguments.length?{d:1,from:r,to:1<arguments.length?i:r}:{d:0})};function bo(r,i,l){var s=Re(i,l);if(!isNaN(s)){if(0<s)throw RangeError();if(ii(r))return de(r,{from:i,to:l,d:1});var s=r.l,c=r.r;if(Re(l,r.from)<0)return s?bo(s,i,l):r.l={from:i,to:l,d:1,l:null,r:null},Pu(r);if(0<Re(i,r.to))return c?bo(c,i,l):r.r={from:i,to:l,d:1,l:null,r:null},Pu(r);Re(i,r.from)<0&&(r.from=i,r.l=null,r.d=c?c.d+1:1),0<Re(l,r.to)&&(r.to=l,r.r=null,r.d=r.l?r.l.d+1:1),i=!r.r,s&&!r.l&&Ro(r,s),c&&i&&Ro(r,c)}}function Ro(r,i){ii(i)||(function l(s,c){var f=c.from,p=c.l,h=c.r;bo(s,f,c.to),p&&l(s,p),h&&l(s,h)})(r,i)}function ui(r,i){var l=li(i),s=l.next();if(!s.done)for(var c=s.value,f=li(r),p=f.next(c.from),h=p.value;!s.done&&!p.done;){if(Re(h.from,c.to)<=0&&0<=Re(h.to,c.from))return!0;Re(c.from,h.from)<0?c=(s=l.next(h.from)).value:h=(p=f.next(c.from)).value}return!1}function li(r){var i=ii(r)?null:{s:0,n:r};return{next:function(l){for(var s=0<arguments.length;i;)switch(i.s){case 0:if(i.s=1,s)for(;i.n.l&&Re(l,i.n.from)<0;)i={up:i,n:i.n.l,s:1};else for(;i.n.l;)i={up:i,n:i.n.l,s:1};case 1:if(i.s=2,!s||Re(l,i.n.to)<=0)return{value:i.n,done:!1};case 2:if(i.n.r){i.s=3,i={up:i,n:i.n.r,s:0};continue}case 3:i=i.up}return{done:!0}}}}function Pu(r){var i,l,s,c=(((c=r.r)==null?void 0:c.d)||0)-(((c=r.l)==null?void 0:c.d)||0),c=1<c?"r":c<-1?"l":"";c&&(i=c=="r"?"l":"r",l=F({},r),s=r[c],r.from=s.from,r.to=s.to,r[c]=s[c],l[c]=s[i],(r[i]=l).d=Nu(l)),r.d=Nu(r)}function Nu(l){var i=l.r,l=l.l;return(i?l?Math.max(i.d,l.d):i.d:l?l.d:0)+1}function ai(r,i){return ee(i).forEach(function(l){r[l]?Ro(r[l],i[l]):r[l]=(function s(c){var f,p,h={};for(f in c)Ee(c,f)&&(p=c[f],h[f]=!p||typeof p!="object"||tn.has(p.constructor)?p:s(p));return h})(i[l])}),r}function Ki(r,i){return r.all||i.all||Object.keys(r).some(function(l){return i[l]&&ui(i[l],r[l])})}Oe(bt.prototype,((Ct={add:function(r){return Ro(this,r),this},addKey:function(r){return bo(this,r,r),this},addKeys:function(r){var i=this;return r.forEach(function(l){return bo(i,l,l)}),this},hasKey:function(r){var i=li(this).next(r).value;return i&&Re(i.from,r)<=0&&0<=Re(i.to,r)}})[ct]=function(){return li(this)},Ct));var Jn={},$i={},Bi=!1;function si(r){ai($i,r),Bi||(Bi=!0,setTimeout(function(){Bi=!1,Ui($i,!($i={}))},0))}function Ui(r,i){i===void 0&&(i=!1);var l=new Set;if(r.all)for(var s=0,c=Object.values(Jn);s<c.length;s++)ci(h=c[s],r,l,i);else for(var f in r){var p,h,f=/^idb\:\/\/(.*)\/(.*)\//.exec(f);f&&(p=f[1],f=f[2],h=Jn["idb://".concat(p,"/").concat(f)])&&ci(h,r,l,i)}l.forEach(function(g){return g()})}function ci(r,i,l,s){for(var c=[],f=0,p=Object.entries(r.queries.query);f<p.length;f++){for(var h=p[f],g=h[0],N=[],x=0,v=h[1];x<v.length;x++){var w=v[x];Ki(i,w.obsSet)?w.subscribers.forEach(function(E){return l.add(E)}):s&&N.push(w)}s&&c.push([g,N])}if(s)for(var C=0,S=c;C<S.length;C++){var k=S[C],g=k[0],N=k[1];r.queries.query[g]=N}}function Il(r){var i=r._state,l=r._deps.indexedDB;if(i.isBeingOpened||r.idbdb)return i.dbReadyPromise.then(function(){return i.dbOpenError?pt(i.dbOpenError):r});i.isBeingOpened=!0,i.dbOpenError=null,i.openComplete=!1;var s=i.openCanceller,c=Math.round(10*r.verno),f=!1;function p(){if(i.openCanceller!==s)throw new oe.DatabaseClosed("db.open() was cancelled")}function h(){return new ne(function(w,C){if(p(),!l)throw new oe.MissingAPI;var S=r.name,k=i.autoSchema||!c?l.open(S):l.open(S,c);if(!k)throw new oe.MissingAPI;k.onerror=Lt(C),k.onblocked=Ye(r._fireOnBlocked),k.onupgradeneeded=Ye(function(E){var R;x=k.transaction,i.autoSchema&&!r._options.allowEmptyDB?(k.onerror=rn,x.abort(),k.result.close(),(R=l.deleteDatabase(S)).onsuccess=R.onerror=Ye(function(){C(new oe.NoSuchDatabase("Database ".concat(S," doesnt exist")))})):(x.onerror=Lt(C),R=E.oldVersion>Math.pow(2,62)?0:E.oldVersion,v=R<1,r.idbdb=k.result,f&&ni(r,x),Fi(r,R/10,x,C))},C),k.onsuccess=Ye(function(){x=null;var E,R,O,z,K,B,Y=r.idbdb=k.result,q=wt(Y.objectStoreNames);if(0<q.length)try{var re=Y.transaction((K=q).length===1?K[0]:K,"readonly");if(i.autoSchema)B=Y,z=re,(O=r).verno=B.version/10,z=O._dbSchema=Tt(0,B,z),O._storeNames=wt(B.objectStoreNames,0),Hr(O,[O._allTables],ee(z),z);else if(Rn(r,r._dbSchema,re),R=re,((R=ri(Tt(0,(E=r).idbdb,R),E._dbSchema)).add.length||R.change.some(function(Q){return Q.add.length||Q.change.length}))&&!f)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),Y.close(),c=Y.version+1,f=!0,w(h());gr(r,re)}catch{}wr.add(r),Y.onversionchange=Ye(function(Q){i.vcFired=!0,r.on("versionchange").fire(Q)}),Y.onclose=Ye(function(){r.close({disableAutoOpen:!1})}),v&&(q=r._deps,K=S,xr(B=q.indexedDB)||K===$r||To(B,q.IDBKeyRange).put({name:K}).catch(Ke)),w()},C)}).catch(function(w){switch(w==null?void 0:w.name){case"UnknownError":if(0<i.PR1398_maxLoop)return i.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),h();break;case"VersionError":if(0<c)return c=0,h()}return ne.reject(w)})}var g,N=i.dbReadyResolve,x=null,v=!1;return ne.race([s,(typeof navigator>"u"?ne.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(w){function C(){return indexedDB.databases().finally(w)}g=setInterval(C,100),C()}).finally(function(){return clearInterval(g)}):Promise.resolve()).then(h)]).then(function(){return p(),i.onReadyBeingFired=[],ne.resolve(Yr(function(){return r.on.ready.fire(r.vip)})).then(function w(){var C;if(0<i.onReadyBeingFired.length)return C=i.onReadyBeingFired.reduce(Qe,Ke),i.onReadyBeingFired=[],ne.resolve(Yr(function(){return C(r.vip)})).then(w)})}).finally(function(){i.openCanceller===s&&(i.onReadyBeingFired=null,i.isBeingOpened=!1)}).catch(function(w){i.dbOpenError=w;try{x&&x.abort()}catch{}return s===i.openCanceller&&r._close(),pt(w)}).finally(function(){i.openComplete=!0,N()}).then(function(){var w;return v&&(w={},r.tables.forEach(function(C){C.schema.indexes.forEach(function(S){S.name&&(w["idb://".concat(r.name,"/").concat(C.name,"/").concat(S.name)]=new bt(-1/0,[[[]]]))}),w["idb://".concat(r.name,"/").concat(C.name,"/")]=w["idb://".concat(r.name,"/").concat(C.name,"/:dels")]=new bt(-1/0,[[[]]])}),on(Co).fire(w),Ui(w,!0)),r})}function Vi(r){function i(f){return r.next(f)}var l=c(i),s=c(function(f){return r.throw(f)});function c(f){return function(h){var h=f(h),g=h.value;return h.done?g:g&&typeof g.then=="function"?g.then(l,s):he(g)?Promise.all(g).then(l,s):l(g)}}return c(i)()}function fi(r,i,l){for(var s=he(r)?r.slice():[r],c=0;c<l;++c)s.push(i);return s}var ju={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(r){return F(F({},r),{table:function(s){var l=r.table(s),s=l.schema,c={},f=[];function p(w,C,S){var O=Po(w),k=c[O]=c[O]||[],E=w==null?0:typeof w=="string"?1:w.length,R=0<C,O=F(F({},S),{name:R?"".concat(O,"(virtual-from:").concat(S.name,")"):S.name,lowLevelIndex:S,isVirtual:R,keyTail:C,keyLength:E,extractKey:yr(w),unique:!R&&S.unique});return k.push(O),O.isPrimaryKey||f.push(O),1<E&&p(E===2?w[0]:w.slice(0,E-1),C+1,S),k.sort(function(z,K){return z.keyTail-K.keyTail}),O}var h=p(s.primaryKey.keyPath,0,s.primaryKey);c[":id"]=[h];for(var g=0,N=s.indexes;g<N.length;g++){var x=N[g];p(x.keyPath,0,x)}function v(w){var C,S=w.query.index;return S.isVirtual?F(F({},w),{query:{index:S.lowLevelIndex,range:(C=w.query.range,S=S.keyTail,{type:C.type===1?2:C.type,lower:fi(C.lower,C.lowerOpen?r.MAX_KEY:r.MIN_KEY,S),lowerOpen:!0,upper:fi(C.upper,C.upperOpen?r.MIN_KEY:r.MAX_KEY,S),upperOpen:!0})}}):w}return F(F({},l),{schema:F(F({},s),{primaryKey:h,indexes:f,getIndexByKeyPath:function(w){return(w=c[Po(w)])&&w[0]}}),count:function(w){return l.count(v(w))},query:function(w){return l.query(v(w))},openCursor:function(w){var C=w.query.index,S=C.keyTail,k=C.keyLength;return C.isVirtual?l.openCursor(v(w)).then(function(R){return R&&E(R)}):l.openCursor(w);function E(R){return Object.create(R,{continue:{value:function(O){O!=null?R.continue(fi(O,w.reverse?r.MAX_KEY:r.MIN_KEY,S)):w.unique?R.continue(R.key.slice(0,k).concat(w.reverse?r.MIN_KEY:r.MAX_KEY,S)):R.continue()}},continuePrimaryKey:{value:function(O,z){R.continuePrimaryKey(fi(O,r.MAX_KEY,S),z)}},primaryKey:{get:function(){return R.primaryKey}},key:{get:function(){var O=R.key;return k===1?O[0]:O.slice(0,k)}},value:{get:function(){return R.value}}})}}})}})}};function qi(r,i,l,s){return l=l||{},s=s||"",ee(r).forEach(function(c){var f,p,h;Ee(i,c)?(f=r[c],p=i[c],typeof f=="object"&&typeof p=="object"&&f&&p?(h=Ot(f))!==Ot(p)?l[s+c]=i[c]:h==="Object"?qi(f,p,l,s+c+"."):f!==p&&(l[s+c]=i[c]):f!==p&&(l[s+c]=i[c])):l[s+c]=void 0}),ee(i).forEach(function(c){Ee(r,c)||(l[s+c]=i[c])}),l}function Hi(r,i){return i.type==="delete"?i.keys:i.keys||i.values.map(r.extractKey)}var zl={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(r){return F(F({},r),{table:function(i){var l=r.table(i),s=l.schema.primaryKey;return F(F({},l),{mutate:function(c){var f=se.trans,p=f.table(i).hook,h=p.deleting,g=p.creating,N=p.updating;switch(c.type){case"add":if(g.fire===Ke)break;return f._promise("readwrite",function(){return x(c)},!0);case"put":if(g.fire===Ke&&N.fire===Ke)break;return f._promise("readwrite",function(){return x(c)},!0);case"delete":if(h.fire===Ke)break;return f._promise("readwrite",function(){return x(c)},!0);case"deleteRange":if(h.fire===Ke)break;return f._promise("readwrite",function(){return(function v(w,C,S){return l.query({trans:w,values:!1,query:{index:s,range:C},limit:S}).then(function(k){var E=k.result;return x({type:"delete",keys:E,trans:w}).then(function(R){return 0<R.numFailures?Promise.reject(R.failures[0]):E.length<S?{failures:[],numFailures:0,lastResult:void 0}:v(w,F(F({},C),{lower:E[E.length-1],lowerOpen:!0}),S)})})})(c.trans,c.range,1e4)},!0)}return l.mutate(c);function x(v){var w,C,S,k=se.trans,E=v.keys||Hi(s,v);if(E)return(v=v.type==="add"||v.type==="put"?F(F({},v),{keys:E}):F({},v)).type!=="delete"&&(v.values=J([],v.values)),v.keys&&(v.keys=J([],v.keys)),w=l,S=E,((C=v).type==="add"?Promise.resolve([]):w.getMany({trans:C.trans,keys:S,cache:"immutable"})).then(function(R){var O=E.map(function(z,K){var B,Y,q,re=R[K],Q={onerror:null,onsuccess:null};return v.type==="delete"?h.fire.call(Q,z,re,k):v.type==="add"||re===void 0?(B=g.fire.call(Q,z,v.values[K],k),z==null&&B!=null&&(v.keys[K]=z=B,s.outbound||ze(v.values[K],s.keyPath,z))):(B=qi(re,v.values[K]),(Y=N.fire.call(Q,B,z,re,k))&&(q=v.values[K],Object.keys(Y).forEach(function(ue){Ee(q,ue)?q[ue]=Y[ue]:ze(q,ue,Y[ue])}))),Q});return l.mutate(v).then(function(z){for(var K=z.failures,B=z.results,Y=z.numFailures,z=z.lastResult,q=0;q<E.length;++q){var re=(B||E)[q],Q=O[q];re==null?Q.onerror&&Q.onerror(K[q]):Q.onsuccess&&Q.onsuccess(v.type==="put"&&R[q]?v.values[q]:re)}return{failures:K,results:B,numFailures:Y,lastResult:z}}).catch(function(z){return O.forEach(function(K){return K.onerror&&K.onerror(z)}),Promise.reject(z)})});throw new Error("Keys missing")}}})}})}};function Ou(r,i,l){try{if(!i||i.keys.length<r.length)return null;for(var s=[],c=0,f=0;c<i.keys.length&&f<r.length;++c)Re(i.keys[c],r[f])===0&&(s.push(l?it(i.values[c]):i.values[c]),++f);return s.length===r.length?s:null}catch{return null}}var Al={stack:"dbcore",level:-1,create:function(r){return{table:function(i){var l=r.table(i);return F(F({},l),{getMany:function(s){var c;return s.cache?(c=Ou(s.keys,s.trans._cache,s.cache==="clone"))?ne.resolve(c):l.getMany(s).then(function(f){return s.trans._cache={keys:s.keys,values:s.cache==="clone"?it(f):f},f}):l.getMany(s)},mutate:function(s){return s.type!=="add"&&(s.trans._cache=null),l.mutate(s)}})}}}};function Tu(r,i){return r.trans.mode==="readonly"&&!!r.subscr&&!r.trans.explicit&&r.trans.db._options.cache!=="disabled"&&!i.schema.primaryKey.outbound}function bu(r,i){switch(r){case"query":return i.values&&!i.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var Wi={stack:"dbcore",level:0,name:"Observability",create:function(r){var i=r.schema.name,l=new bt(r.MIN_KEY,r.MAX_KEY);return F(F({},r),{transaction:function(s,c,f){if(se.subscr&&c!=="readonly")throw new oe.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(se.querier));return r.transaction(s,c,f)},table:function(s){function c(E){var k,E=E.query;return[k=E.index,new bt((k=(E=E.range).lower)!=null?k:r.MIN_KEY,(k=E.upper)!=null?k:r.MAX_KEY)]}var f=r.table(s),p=f.schema,h=p.primaryKey,g=p.indexes,N=h.extractKey,x=h.outbound,v=h.autoIncrement&&g.filter(function(S){return S.compound&&S.keyPath.includes(h.keyPath)}),w=F(F({},f),{mutate:function(S){function k($){return $="idb://".concat(i,"/").concat(s,"/").concat($),K[$]||(K[$]=new bt)}var E,R,O,z=S.trans,K=S.mutatedParts||(S.mutatedParts={}),B=k(""),Y=k(":dels"),q=S.type,Q=S.type==="deleteRange"?[S.range]:S.type==="delete"?[S.keys]:S.values.length<50?[Hi(h,S).filter(function($){return $}),S.values]:[],re=Q[0],Q=Q[1],ue=S.trans._cache;return he(re)?(B.addKeys(re),(q=q==="delete"||re.length===Q.length?Ou(re,ue):null)||Y.addKeys(re),(q||Q)&&(E=k,R=q,O=Q,p.indexes.forEach(function($){var ve=E($.name||"");function ge(je){return je!=null?$.extractKey(je):null}function ke(je){$.multiEntry&&he(je)?je.forEach(function(qt){return ve.addKey(qt)}):ve.addKey(je)}(R||O).forEach(function(je,ut){var _e=R&&ge(R[ut]),ut=O&&ge(O[ut]);Re(_e,ut)!==0&&(_e!=null&&ke(_e),ut!=null)&&ke(ut)})}))):re?(Q={from:(ue=re.lower)!=null?ue:r.MIN_KEY,to:(q=re.upper)!=null?q:r.MAX_KEY},Y.add(Q),B.add(Q)):(B.add(l),Y.add(l),p.indexes.forEach(function($){return k($.name).add(l)})),f.mutate(S).then(function($){return!re||S.type!=="add"&&S.type!=="put"||(B.addKeys($.results),v&&v.forEach(function(ve){for(var ge=S.values.map(function(_e){return ve.extractKey(_e)}),ke=ve.keyPath.findIndex(function(_e){return _e===h.keyPath}),je=0,qt=$.results.length;je<qt;++je)ge[je][ke]=$.results[je];k(ve.name).addKeys(ge)})),z.mutatedParts=ai(z.mutatedParts||{},K),$})}}),C={get:function(S){return[h,new bt(S.key)]},getMany:function(S){return[h,new bt().addKeys(S.keys)]},count:c,query:c,openCursor:c};return ee(C).forEach(function(S){w[S]=function(k){var E=se.subscr,R=!!E,O=Tu(se,f)&&bu(S,k)?k.obsSet={}:E;if(R){var z,E=function(Q){return Q="idb://".concat(i,"/").concat(s,"/").concat(Q),O[Q]||(O[Q]=new bt)},K=E(""),B=E(":dels"),R=C[S](k),Y=R[0],R=R[1];if((S==="query"&&Y.isPrimaryKey&&!k.values?B:E(Y.name||"")).add(R),!Y.isPrimaryKey){if(S!=="count")return z=S==="query"&&x&&k.values&&f.query(F(F({},k),{values:!1})),f[S].apply(this,arguments).then(function(Q){if(S==="query"){if(x&&k.values)return z.then(function(ge){return ge=ge.result,K.addKeys(ge),Q});var ue=k.values?Q.result.map(N):Q.result;(k.values?K:B).addKeys(ue)}else{var $,ve;if(S==="openCursor")return ve=k.values,($=Q)&&Object.create($,{key:{get:function(){return B.addKey($.primaryKey),$.key}},primaryKey:{get:function(){var ge=$.primaryKey;return B.addKey(ge),ge}},value:{get:function(){return ve&&K.addKey($.primaryKey),$.value}}})}return Q});B.add(l)}}return f[S].apply(this,arguments)}}),w}})}};function Gr(r,i,l){var s;return l.numFailures===0?i:i.type==="deleteRange"||(s=i.keys?i.keys.length:"values"in i&&i.values?i.values.length:1,l.numFailures===s)?null:(s=F({},i),he(s.keys)&&(s.keys=s.keys.filter(function(c,f){return!(f in l.failures)})),"values"in s&&he(s.values)&&(s.values=s.values.filter(function(c,f){return!(f in l.failures)})),s)}function Qi(r,i){return l=r,((s=i).lower===void 0||(s.lowerOpen?0<Re(l,s.lower):0<=Re(l,s.lower)))&&(l=r,(s=i).upper===void 0||(s.upperOpen?Re(l,s.upper)<0:Re(l,s.upper)<=0));var l,s}function Yi(r,i,l,s,c,f){var p,h,g,N,x,v,w;return!l||l.length===0||(p=i.query.index,h=p.multiEntry,g=i.query.range,N=s.schema.primaryKey.extractKey,x=p.extractKey,v=(p.lowLevelIndex||p).extractKey,(s=l.reduce(function(C,S){var k=C,E=[];if(S.type==="add"||S.type==="put")for(var R=new bt,O=S.values.length-1;0<=O;--O){var z,K=S.values[O],B=N(K);!R.hasKey(B)&&(z=x(K),h&&he(z)?z.some(function(ue){return Qi(ue,g)}):Qi(z,g))&&(R.addKey(B),E.push(K))}switch(S.type){case"add":var Y=new bt().addKeys(i.values?C.map(function($){return N($)}):C),k=C.concat(i.values?E.filter(function($){return $=N($),!Y.hasKey($)&&(Y.addKey($),!0)}):E.map(function($){return N($)}).filter(function($){return!Y.hasKey($)&&(Y.addKey($),!0)}));break;case"put":var q=new bt().addKeys(S.values.map(function($){return N($)}));k=C.filter(function($){return!q.hasKey(i.values?N($):$)}).concat(i.values?E:E.map(function($){return N($)}));break;case"delete":var re=new bt().addKeys(S.keys);k=C.filter(function($){return!re.hasKey(i.values?N($):$)});break;case"deleteRange":var Q=S.range;k=C.filter(function($){return!Qi(N($),Q)})}return k},r))===r)?r:(w=function(C,S){return Re(v(C),v(S))||Re(N(C),N(S))},s.sort(i.direction==="prev"||i.direction==="prevunique"?function(C,S){return w(S,C)}:w),i.limit&&i.limit<1/0&&(s.length>i.limit?s.length=i.limit:r.length===i.limit&&s.length<i.limit&&(c.dirty=!0)),f?Object.freeze(s):s)}function Gi(r,i){return Re(r.lower,i.lower)===0&&Re(r.upper,i.upper)===0&&!!r.lowerOpen==!!i.lowerOpen&&!!r.upperOpen==!!i.upperOpen}function Ru(r,i){return((l,s,c,f)=>{if(l===void 0)return s!==void 0?-1:0;if(s===void 0)return 1;if((l=Re(l,s))===0){if(c&&f)return 0;if(c)return 1;if(f)return-1}return l})(r.lower,i.lower,r.lowerOpen,i.lowerOpen)<=0&&0<=((l,s,c,f)=>{if(l===void 0)return s!==void 0?1:0;if(s===void 0)return-1;if((l=Re(l,s))===0){if(c&&f)return 0;if(c)return-1;if(f)return 1}return l})(r.upper,i.upper,r.upperOpen,i.upperOpen)}function Du(r,i,l,s){r.subscribers.add(l),s.addEventListener("abort",function(){var c,f;r.subscribers.delete(l),r.subscribers.size===0&&(c=r,f=i,setTimeout(function(){c.subscribers.size===0&&Z(f,c)},3e3))})}var Iu={stack:"dbcore",level:0,name:"Cache",create:function(r){var i=r.schema.name;return F(F({},r),{transaction:function(l,s,c){var f,p,h=r.transaction(l,s,c);return s==="readwrite"&&(c=(f=new AbortController).signal,h.addEventListener("abort",(p=function(g){return function(){if(f.abort(),s==="readwrite"){for(var N=new Set,x=0,v=l;x<v.length;x++){var w=v[x],C=Jn["idb://".concat(i,"/").concat(w)];if(C){var S=r.table(w),k=C.optimisticOps.filter(function($){return $.trans===h});if(h._explicit&&g&&h.mutatedParts)for(var E=0,R=Object.values(C.queries.query);E<R.length;E++)for(var O=0,z=(Y=R[E]).slice();O<z.length;O++)Ki((q=z[O]).obsSet,h.mutatedParts)&&(Z(Y,q),q.subscribers.forEach(function($){return N.add($)}));else if(0<k.length){C.optimisticOps=C.optimisticOps.filter(function($){return $.trans!==h});for(var K=0,B=Object.values(C.queries.query);K<B.length;K++)for(var Y,q,re,Q=0,ue=(Y=B[K]).slice();Q<ue.length;Q++)(q=ue[Q]).res!=null&&h.mutatedParts&&(g&&!q.dirty?(re=Object.isFrozen(q.res),re=Yi(q.res,q.req,k,S,q,re),q.dirty?(Z(Y,q),q.subscribers.forEach(function($){return N.add($)})):re!==q.res&&(q.res=re,q.promise=ne.resolve({result:re}))):(q.dirty&&Z(Y,q),q.subscribers.forEach(function($){return N.add($)})))}}}N.forEach(function($){return $()})}}})(!1),{signal:c}),h.addEventListener("error",p(!1),{signal:c}),h.addEventListener("complete",p(!0),{signal:c})),h},table:function(l){var s=r.table(l),c=s.schema.primaryKey;return F(F({},s),{mutate:function(f){var p,h=se.trans;return!c.outbound&&h.db._options.cache!=="disabled"&&!h.explicit&&h.idbtrans.mode==="readwrite"&&(p=Jn["idb://".concat(i,"/").concat(l)])?(h=s.mutate(f),f.type!=="add"&&f.type!=="put"||!(50<=f.values.length||Hi(c,f).some(function(g){return g==null}))?(p.optimisticOps.push(f),f.mutatedParts&&si(f.mutatedParts),h.then(function(g){0<g.numFailures&&(Z(p.optimisticOps,f),(g=Gr(0,f,g))&&p.optimisticOps.push(g),f.mutatedParts)&&si(f.mutatedParts)}),h.catch(function(){Z(p.optimisticOps,f),f.mutatedParts&&si(f.mutatedParts)})):h.then(function(g){var N=Gr(0,F(F({},f),{values:f.values.map(function(x,v){var w;return g.failures[v]?x:(ze(w=(w=c.keyPath)!=null&&w.includes(".")?it(x):F({},x),c.keyPath,g.results[v]),w)})}),g);p.optimisticOps.push(N),queueMicrotask(function(){return f.mutatedParts&&si(f.mutatedParts)})}),h):s.mutate(f)},query:function(f){var p,h,g,N,x,v,w;return Tu(se,s)&&bu("query",f)?(p=((g=se.trans)==null?void 0:g.db._options.cache)==="immutable",h=(g=se).requery,g=g.signal,v=((C,S,k,E)=>{var R=Jn["idb://".concat(C,"/").concat(S)];if(!R)return[];if(!(C=R.queries[k]))return[null,!1,R,null];var O=C[(E.query?E.query.index.name:null)||""];if(!O)return[null,!1,R,null];switch(k){case"query":var z=(K=E.direction)!=null?K:"next",K=O.find(function(B){var Y;return B.req.limit===E.limit&&B.req.values===E.values&&((Y=B.req.direction)!=null?Y:"next")===z&&Gi(B.req.query.range,E.query.range)});return K?[K,!0,R,O]:[O.find(function(B){var Y;return("limit"in B.req?B.req.limit:1/0)>=E.limit&&((Y=B.req.direction)!=null?Y:"next")===z&&(!E.values||B.req.values)&&Ru(B.req.query.range,E.query.range)}),!1,R,O];case"count":return K=O.find(function(B){return Gi(B.req.query.range,E.query.range)}),[K,!!K,R,O]}})(i,l,"query",f),w=v[0],N=v[2],x=v[3],w&&v[1]?w.obsSet=f.obsSet:(v=s.query(f).then(function(C){var S=C.result;if(w&&(w.res=S),p){for(var k=0,E=S.length;k<E;++k)Object.freeze(S[k]);Object.freeze(S)}else C.result=it(S);return C}).catch(function(C){return x&&w&&Z(x,w),Promise.reject(C)}),w={obsSet:f.obsSet,promise:v,subscribers:new Set,type:"query",req:f,dirty:!1},x?x.push(w):(x=[w],(N=N||(Jn["idb://".concat(i,"/").concat(l)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[f.query.index.name||""]=x)),Du(w,x,h,g),w.promise.then(function(C){return{result:Yi(C.result,f,N==null?void 0:N.optimisticOps,s,w,p)}})):s.query(f)}})}})}};function Dn(r,i){return new Proxy(r,{get:function(l,s,c){return s==="db"?i:Reflect.get(l,s,c)}})}ht.prototype.version=function(r){if(isNaN(r)||r<.1)throw new oe.Type("Given version is not a positive number");if(r=Math.round(10*r)/10,this.idbdb||this._state.isBeingOpened)throw new oe.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,r);var i=this._versions,l=i.filter(function(s){return s._cfg.version===r})[0];return l||(l=new this.Version(r),i.push(l),i.sort(Xn),l.stores({}),this._state.autoSchema=!1),l},ht.prototype._whenReady=function(r){var i=this;return this.idbdb&&(this._state.openComplete||se.letThrough||this._vip)?r():new ne(function(l,s){if(i._state.openComplete)return s(new oe.DatabaseClosed(i._state.dbOpenError));if(!i._state.isBeingOpened){if(!i._state.autoOpen)return void s(new oe.DatabaseClosed);i.open().catch(Ke)}i._state.dbReadyPromise.then(l,s)}).then(r)},ht.prototype.use=function(c){var i=c.stack,l=c.create,s=c.level,c=c.name,f=(c&&this.unuse({stack:i,name:c}),this._middlewares[i]||(this._middlewares[i]=[]));return f.push({stack:i,create:l,level:s??10,name:c}),f.sort(function(p,h){return p.level-h.level}),this},ht.prototype.unuse=function(r){var i=r.stack,l=r.name,s=r.create;return i&&this._middlewares[i]&&(this._middlewares[i]=this._middlewares[i].filter(function(c){return s?c.create!==s:!!l&&c.name!==l})),this},ht.prototype.open=function(){var r=this;return Wn(Nn,function(){return Il(r)})},ht.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var r=this._state;if(wr.remove(this),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}r.isBeingOpened||(r.dbReadyPromise=new ne(function(i){r.dbReadyResolve=i}),r.openCanceller=new ne(function(i,l){r.cancelOpen=l}))},ht.prototype.close=function(i){var i=(i===void 0?{disableAutoOpen:!0}:i).disableAutoOpen,l=this._state;i?(l.isBeingOpened&&l.cancelOpen(new oe.DatabaseClosed),this._close(),l.autoOpen=!1,l.dbOpenError=new oe.DatabaseClosed):(this._close(),l.autoOpen=this._options.autoOpen||l.isBeingOpened,l.openComplete=!1,l.dbOpenError=null)},ht.prototype.delete=function(r){var i=this,l=(r===void 0&&(r={disableAutoOpen:!0}),0<arguments.length&&typeof arguments[0]!="object"),s=this._state;return new ne(function(c,f){function p(){i.close(r);var h=i._deps.indexedDB.deleteDatabase(i.name);h.onsuccess=Ye(function(){var g,N,x;g=i._deps,N=i.name,xr(x=g.indexedDB)||N===$r||To(x,g.IDBKeyRange).delete(N).catch(Ke),c()}),h.onerror=Lt(f),h.onblocked=i._fireOnBlocked}if(l)throw new oe.InvalidArgument("Invalid closeOptions argument to db.delete()");s.isBeingOpened?s.dbReadyPromise.then(p):p()})},ht.prototype.backendDB=function(){return this.idbdb},ht.prototype.isOpen=function(){return this.idbdb!==null},ht.prototype.hasBeenClosed=function(){var r=this._state.dbOpenError;return r&&r.name==="DatabaseClosed"},ht.prototype.hasFailed=function(){return this._state.dbOpenError!==null},ht.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(ht.prototype,"tables",{get:function(){var r=this;return ee(this._allTables).map(function(i){return r._allTables[i]})},enumerable:!1,configurable:!0}),ht.prototype.transaction=function(){var r=(function(i,l,s){var c=arguments.length;if(c<2)throw new oe.InvalidArgument("Too few arguments");for(var f=new Array(c-1);--c;)f[c-1]=arguments[c];return s=f.pop(),[i,en(f),s]}).apply(this,arguments);return this._transaction.apply(this,r)},ht.prototype._transaction=function(r,i,l){var s,c,f=this,p=se.trans,h=(p&&p.db===this&&r.indexOf("!")===-1||(p=null),r.indexOf("?")!==-1);r=r.replace("!","").replace("?","");try{if(c=i.map(function(N){if(N=N instanceof f.Table?N.name:N,typeof N!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return N}),r=="r"||r===Yo)s=Yo;else{if(r!="rw"&&r!=Br)throw new oe.InvalidArgument("Invalid transaction mode: "+r);s=Br}if(p){if(p.mode===Yo&&s===Br){if(!h)throw new oe.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");p=null}p&&c.forEach(function(N){if(p&&p.storeNames.indexOf(N)===-1){if(!h)throw new oe.SubTransaction("Table "+N+" not included in parent transaction.");p=null}}),h&&p&&!p.active&&(p=null)}}catch(N){return p?p._promise(null,function(x,v){v(N)}):pt(N)}var g=(function N(x,v,w,C,S){return ne.resolve().then(function(){var O=se.transless||se,k=x._createTransaction(v,w,x._dbSchema,C),O=(k.explicit=!0,{trans:k,transless:O});if(C)k.idbtrans=C.idbtrans;else try{k.create(),k.idbtrans._explicit=!0,x._state.PR1398_maxLoop=3}catch(z){return z.name===Le.InvalidState&&x.isOpen()&&0<--x._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),x.close({disableAutoOpen:!1}),x.open().then(function(){return N(x,v,w,null,S)})):pt(z)}var E,R=j(S),O=(R&&Kr(),ne.follow(function(){var z;(E=S.call(k,k))&&(R?(z=Ut.bind(null,null),E.then(z,z)):typeof E.next=="function"&&typeof E.throw=="function"&&(E=Vi(E)))},O));return(E&&typeof E.then=="function"?ne.resolve(E).then(function(z){return k.active?z:pt(new oe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):O.then(function(){return E})).then(function(z){return C&&k._resolve(),k._completion.then(function(){return z})}).catch(function(z){return k._reject(z),pt(z)})})}).bind(null,this,s,c,p,l);return p?p._promise(s,g,"lock"):se.trans?Wn(se.transless,function(){return f._whenReady(g)}):this._whenReady(g)},ht.prototype.table=function(r){if(Ee(this._allTables,r))return this._allTables[r];throw new oe.InvalidTable("Table ".concat(r," does not exist"))};var In=ht;function ht(r,i){var l,s,c,f,p,h=this,g=(this._middlewares={},this.verno=0,ht.dependencies),g=(this._options=i=F({addons:ht.addons,autoOpen:!0,indexedDB:g.indexedDB,IDBKeyRange:g.IDBKeyRange,cache:"cloned",maxConnections:1e3},i),this._deps={indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},i.addons),N=(this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this,{dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ke,dbReadyPromise:null,cancelOpen:Ke,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:i.autoOpen}),x=(N.dbReadyPromise=new ne(function(v){N.dbReadyResolve=v}),N.openCanceller=new ne(function(v,w){N.cancelOpen=w}),this._state=N,this.name=r,this.on=ko(this,"populate","blocked","versionchange","close",{ready:[Qe,Ke]}),this.once=function(v,w){var C=function(){for(var S=[],k=0;k<arguments.length;k++)S[k]=arguments[k];h.on(v).unsubscribe(C),w.apply(h,S)};return h.on(v,C)},this.on.ready.subscribe=zt(this.on.ready.subscribe,function(v){return function(w,C){ht.vip(function(){var S,k=h._state;k.openComplete?(k.dbOpenError||ne.resolve().then(w),C&&v(w)):k.onReadyBeingFired?(k.onReadyBeingFired.push(w),C&&v(w)):(v(w),S=h,C||v(function E(){S.on.ready.unsubscribe(w),S.on.ready.unsubscribe(E)}))})}}),this.Collection=(l=this,So(Su.prototype,function(E,k){this.db=l;var C=zi,S=null;if(k)try{C=k()}catch(O){S=O}var k=E._ctx,E=k.table,R=E.hook.reading.fire;this._ctx={table:E,index:k.index,isPrimKey:!k.index||E.schema.primKey.keyPath&&k.index===E.schema.primKey.name,range:C,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:S,or:k.or,valueMapper:R!==gn?R:null}})),this.Table=(s=this,So(Ur.prototype,function(v,w,C){this.db=s,this._tx=C,this.name=v,this.schema=w,this.hook=s._allTables[v]?s._allTables[v].hook:ko(null,{creating:[Me,Ke],reading:[mo,gn],updating:[vt,Ke],deleting:[qe,Ke]})})),this.Transaction=(c=this,So(Rl.prototype,function(v,w,C,S,k){var E=this;v!=="readonly"&&w.forEach(function(R){R=(R=C[R])==null?void 0:R.yProps,R&&(w=w.concat(R.map(function(O){return O.updatesTable})))}),this.db=c,this.mode=v,this.storeNames=w,this.schema=C,this.chromeTransactionDurability=S,this.idbtrans=null,this.on=ko(this,"complete","error","abort"),this.parent=k||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new ne(function(R,O){E._resolve=R,E._reject=O}),this._completion.then(function(){E.active=!1,E.on.complete.fire()},function(R){var O=E.active;return E.active=!1,E.on.error.fire(R),E.parent?E.parent._reject(R):O&&E.idbtrans&&E.idbtrans.abort(),pt(R)})})),this.Version=(f=this,So(Oo.prototype,function(v){this.db=f,this._cfg={version:v,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(p=this,So(Tn.prototype,function(v,w,C){if(this.db=p,this._ctx={table:v,index:w===":id"?null:w,or:C},this._cmp=this._ascending=Re,this._descending=function(S,k){return Re(k,S)},this._max=function(S,k){return 0<Re(S,k)?S:k},this._min=function(S,k){return Re(S,k)<0?S:k},this._IDBKeyRange=p._deps.IDBKeyRange,!this._IDBKeyRange)throw new oe.MissingAPI})),this.on("versionchange",function(v){0<v.newVersion?console.warn("Another connection wants to upgrade database '".concat(h.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(h.name,"'. Closing db now to resume the delete request.")),h.close({disableAutoOpen:!1})}),this.on("blocked",function(v){!v.newVersion||v.newVersion<v.oldVersion?console.warn("Dexie.delete('".concat(h.name,"') was blocked")):console.warn("Upgrade '".concat(h.name,"' blocked by other connection holding version ").concat(v.oldVersion/10))}),this._maxKey=bn(i.IDBKeyRange),this._createTransaction=function(v,w,C,S){return new h.Transaction(v,w,C,h._options.chromeTransactionDurability,S)},this._fireOnBlocked=function(v){h.on("blocked").fire(v),wr.toArray().filter(function(w){return w.name===h.name&&w!==h&&!w._state.vcFired}).map(function(w){return w.on("versionchange").fire(v)})},this.use(Al),this.use(Iu),this.use(Wi),this.use(ju),this.use(zl),new Proxy(this,{get:function(v,w,C){var S;return w==="_vip"||(w==="table"?function(k){return Dn(h.table(k),x)}:(S=Reflect.get(v,w,C))instanceof Ur?Dn(S,x):w==="tables"?S.map(function(k){return Dn(k,x)}):w==="_createTransaction"?function(){return Dn(S.apply(this,arguments),x)}:S)}}));this.vip=x,g.forEach(function(v){return v(h)})}var di,_r=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",zu=(kr.prototype.subscribe=function(r,i,l){return this._subscribe(r&&typeof r!="function"?r:{next:r,error:i,complete:l})},kr.prototype[_r]=function(){return this},kr);function kr(r){this._subscribe=r}try{di={indexedDB:W.indexedDB||W.mozIndexedDB||W.webkitIndexedDB||W.msIndexedDB,IDBKeyRange:W.IDBKeyRange||W.webkitIDBKeyRange}}catch{di={indexedDB:null,IDBKeyRange:null}}function Xr(r){var i,l=!1,s=new zu(function(c){var f=j(r),p,h=!1,g={},N={},x={get closed(){return h},unsubscribe:function(){h||(h=!0,p&&p.abort(),v&&on.storagemutated.unsubscribe(S))}},v=(c.start&&c.start(x),!1),w=function(){return Qo(k)};function C(){return Ki(N,g)}var S=function(E){ai(g,E),C()&&w()},k=function(){var E,R,O;!h&&di.indexedDB&&(g={},E={},p&&p.abort(),p=new AbortController,O=(z=>{var K=Vn();try{f&&Kr();var B=qn(r,z);return B=f?B.finally(Ut):B}finally{K&&ar()}})(R={subscr:E,signal:p.signal,requery:w,querier:r,trans:null}),v||(on(Co,S),v=!0),Promise.resolve(O).then(function(z){l=!0,i=z,h||R.signal.aborted||(C()||(N=E,C())?w():(g={},Qo(function(){return!h&&c.next&&c.next(z)})))},function(z){l=!1,["DatabaseClosedError","AbortError"].includes(z==null?void 0:z.name)||h||Qo(function(){h||c.error&&c.error(z)})}))};return setTimeout(w,0),x});return s.hasValue=function(){return l},s.getValue=function(){return i},s}var Sr=In;function Jr(r){var i=zn;try{zn=!0,on.storagemutated.fire(r),Ui(r,!0)}finally{zn=i}}Oe(Sr,F(F({},L),{delete:function(r){return new Sr(r,{addons:[]}).delete()},exists:function(r){return new Sr(r,{addons:[]}).open().then(function(i){return i.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(r){try{return i=Sr.dependencies,l=i.indexedDB,i=i.IDBKeyRange,(xr(l)?Promise.resolve(l.databases()).then(function(s){return s.map(function(c){return c.name}).filter(function(c){return c!==$r})}):To(l,i).toCollection().primaryKeys()).then(r)}catch{return pt(new oe.MissingAPI)}var i,l},defineClass:function(){return function(r){de(this,r)}},ignoreTransaction:function(r){return se.trans?Wn(se.transless||Nn,r):r()},vip:Yr,async:function(r){return function(){try{var i=Vi(r.apply(this,arguments));return i&&typeof i.then=="function"?i:ne.resolve(i)}catch(l){return pt(l)}}},spawn:function(r,i,l){try{var s=Vi(r.apply(l,i||[]));return s&&typeof s.then=="function"?s:ne.resolve(s)}catch(c){return pt(c)}},currentTransaction:{get:function(){return se.trans||null}},waitFor:function(r,i){return r=ne.resolve(typeof r=="function"?Sr.ignoreTransaction(r):r).timeout(i||6e4),se.trans?se.trans.waitFor(r):r},Promise:ne,debug:{get:function(){return Ge},set:function(r){Ir(r)}},derive:Pe,extend:de,props:Oe,override:zt,Events:ko,on,liveQuery:Xr,extendObservabilitySet:ai,getByKeyPath:Ie,setByKeyPath:ze,delByKeyPath:function(r,i){typeof i=="string"?ze(r,i,void 0):"length"in i&&[].map.call(i,function(l){ze(r,l,void 0)})},shallowClone:jt,deepClone:it,getObjectDiff:qi,cmp:Re,asap:$t,minKey:-1/0,addons:[],connections:{get:wr.toArray},errnames:Le,dependencies:di,cache:Jn,semVer:"4.4.2",version:"4.4.2".split(".").map(function(r){return parseInt(r)}).reduce(function(r,i,l){return r+i/Math.pow(10,2*l)})})),Sr.maxKey=bn(Sr.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(on(Co,function(r){zn||(r=new CustomEvent(Zo,{detail:r}),zn=!0,dispatchEvent(r),zn=!1)}),addEventListener(Zo,function(r){r=r.detail,zn||Jr(r)}));var Zr,zn=!1,pi=function(){};return typeof BroadcastChannel<"u"&&((pi=function(){(Zr=new BroadcastChannel(Zo)).onmessage=function(r){return r.data&&Jr(r.data)}})(),typeof Zr.unref=="function"&&Zr.unref(),on(Co,function(r){zn||Zr.postMessage(r)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(r){if(!In.disableBfCache&&r.persisted){Ge&&console.debug("Dexie: handling persisted pagehide"),Zr!=null&&Zr.close();for(var i=0,l=wr.toArray();i<l.length;i++)l[i].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(r){!In.disableBfCache&&r.persisted&&(Ge&&console.debug("Dexie: handling persisted pageshow"),pi(),Jr({all:new bt(-1/0,[[]])}))})),ne.rejectionMapper=function(r,i){return!r||r instanceof we||r instanceof TypeError||r instanceof SyntaxError||!r.name||!rr[r.name]?r:(i=new rr[r.name](i||r.message,r),"stack"in r&&Xe(i,"stack",{get:function(){return this.inner.stack}}),i)},Ir(Ge),F(In,Object.freeze({__proto__:null,DEFAULT_MAX_CONNECTIONS:1e3,Dexie:In,Entity:dn,PropModification:wo,RangeSet:bt,add:function(r){return new wo({add:r})},cmp:Re,default:In,liveQuery:Xr,mergeRanges:Ro,rangesOverlap:ui,remove:function(r){return new wo({remove:r})},replacePrefix:function(r,i){return new wo({replacePrefix:[r,i]})}}),{default:In}),In})})(Nl)),Nl.exports}var _d=xd();const es=ts(_d),Zc=Symbol.for("Dexie"),jl=globalThis[Zc]||(globalThis[Zc]=es);if(es.semVer!==jl.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${es.semVer} and ${jl.semVer}`);const{liveQuery:Nd,mergeRanges:jd,rangesOverlap:Od,RangeSet:Td,cmp:bd,Entity:Rd,PropModification:Dd,replacePrefix:Id,add:zd,remove:Ad,DexieYProvider:Ld}=jl;class kd extends jl{constructor(){super("api-doc-tor");mu(this,"flows");mu(this,"testSuites");mu(this,"environments");mu(this,"kv");this.version(1).stores({flows:"++id, name",testSuites:"++id, name",environments:"++id, name",kv:"key"})}}const Ze=new kd;async function Sd(){const[I,A,P]=await Promise.all([Ze.flows.toArray(),Ze.testSuites.toArray(),Ze.environments.toArray()]),F=await Ze.kv.get("authTokens");let J;try{J=F!=null&&F.value?JSON.parse(F.value):void 0}catch{J=void 0}return{formatVersion:1,exportedAt:new Date().toISOString(),flows:I,testSuites:A,environments:P,authTokens:J}}async function Ed(I){await Ze.transaction("rw",Ze.flows,Ze.testSuites,Ze.environments,Ze.kv,async()=>{await Ze.flows.clear(),await Ze.testSuites.clear(),await Ze.environments.clear();for(const A of I.flows)await Ze.flows.add({name:A.name,steps:A.steps});for(const A of I.testSuites)await Ze.testSuites.add({name:A.name,cases:A.cases});for(const A of I.environments)await Ze.environments.add({name:A.name,baseUrl:A.baseUrl,vars:A.vars??{}});I.authTokens&&await Ze.kv.put({key:"authTokens",value:JSON.stringify(I.authTokens)})})}function Cd(){const[I,A]=tt.useState(null),[P,F]=tt.useState(null),[J,W]=tt.useState("explore"),[ee,he]=tt.useState(""),[de,Ve]=tt.useState(null),[Ce,Ee]=tt.useState(null),[Oe,_t]=tt.useState("{}"),[Xe,Pe]=tt.useState(""),[De,Zt]=tt.useState(""),[wt,zt]=tt.useState(""),[nt,$t]=tt.useState("X-Api-Key"),[Ie,ze]=tt.useState([]),[jt,vn]=tt.useState("Mi flujo"),[en,tn]=tt.useState([]),[st,it]=tt.useState({name:"Suite 1",cases:[]}),[Gt,Ot]=tt.useState([]),[ct,rt]=tt.useState("typescript"),[Z,pe]=tt.useState(""),te="/docs/openapi.json";tt.useEffect(()=>{fetch(te).then(M=>{if(!M.ok)throw new Error(`${M.status} ${M.statusText}`);return M.json()}).then(M=>{A(M),he(Pl(M)),F(null)}).catch(M=>F(M.message))},[te]),tt.useEffect(()=>{Ze.flows.toArray().then(tn),Ze.testSuites.toArray().then(Ot),Ze.kv.get("bearer").then(M=>M&&Zt(M.value)),Ze.kv.get("apiKey").then(M=>M&&zt(M.value))},[]);const j=tt.useMemo(()=>I?yd(I):[],[I]),L=tt.useMemo(()=>I?bi(I):[],[I]),Se=tt.useMemo(()=>de?L.filter(M=>(M.tags??["default"]).includes(de)):L,[L,de]),we=tt.useCallback(()=>{const M={"Content-Type":"application/json"};return De.trim()&&(M.Authorization=`Bearer ${De.trim()}`),wt.trim()&&(M[nt]=wt.trim()),M},[De,wt,nt]),be=async()=>{if(!I||!Ce)return;const M=`${Pl(I,ee)}${Ce.path}`,Me={method:Ce.method.toUpperCase(),headers:we()},qe=Ce.method.toLowerCase();if(qe!=="get"&&qe!=="head")try{Me.body=Oe.trim()?Oe:"{}"}catch{Me.body="{}"}const vt=await fetch(M,Me),et=await vt.text();Pe(`${vt.status} ${vt.statusText}
181
+
182
+ ${et}`)},Ne=async()=>{var vt;if(!I)return;const M={};let Me="";const qe=Pl(I,ee);for(let et=0;et<Ie.length;et++){const Qe=Ie[et];let Ge=Qe.path;for(const[Bt,$n]of Object.entries(M))Ge=Ge.replace(`{${Bt}}`,$n);const Ir=`${qe}${Ge}`,Cn={method:Qe.method.toUpperCase(),headers:we()},zr=Qe.method.toLowerCase();zr!=="get"&&zr!=="head"&&(Cn.body="{}");const Pn=await fetch(Ir,Cn),Ct=await Pn.json().catch(()=>({}));if(Me+=`Step ${et+1}: ${Pn.status}
183
+ ${JSON.stringify(Ct,null,2)}
184
+
185
+ `,(vt=Qe.extract)!=null&&vt.jsonPath){const Bt=gd(Ct,Qe.extract.jsonPath);Bt!==void 0&&(M[Qe.extract.varName]=String(Bt))}}Pe(Me)},Ae=async()=>{await Ze.flows.add({name:jt,steps:Ie}),tn(await Ze.flows.toArray())},Le=()=>{if(!Ce)return;const M={id:crypto.randomUUID(),method:Ce.method,path:Ce.path,expectStatus:200};it(Me=>({...Me,cases:[...Me.cases,M]}))},Je=async()=>{if(!I)return;const M=Pl(I,ee);let Me="";for(const qe of st.cases){const vt=`${M}${qe.path}`,et=await fetch(vt,{method:qe.method.toUpperCase(),headers:we()}),Qe=et.status===qe.expectStatus,Ge=await et.text();Me+=`${Qe?"PASS":"FAIL"} ${qe.method} ${qe.path} → ${et.status} (expected ${qe.expectStatus})
186
+ `,qe.contains&&!Ge.includes(qe.contains)&&(Me+=` (body missing "${qe.contains}")
187
+ `)}Pe(Me)},oe=async()=>{await Ze.testSuites.add({name:st.name,cases:st.cases}),Ot(await Ze.testSuites.toArray())},rr=async()=>{await Ze.kv.put({key:"bearer",value:De}),await Ze.kv.put({key:"apiKey",value:wt})},Ke=async()=>{const M=await Sd(),Me=new Blob([JSON.stringify(M,null,2)],{type:"application/json"}),qe=document.createElement("a");qe.href=URL.createObjectURL(Me),qe.download="api-doc-tor-export.json",qe.click()},gn=async M=>{var et;const Me=(et=M.target.files)==null?void 0:et[0];if(!Me)return;const qe=await Me.text(),vt=JSON.parse(qe);await Ed(vt),tn(await Ze.flows.toArray()),Ot(await Ze.testSuites.toArray())};tt.useEffect(()=>{if(!I||!Ce){pe("");return}pe(hd(I,ct,Ce.method,Ce.path))},[I,Ce,ct]);const mo=tt.useMemo(()=>!I||!de?"":md(I,ct,de),[I,de,ct]);return P?X.jsx("div",{className:"min-h-screen flex items-center justify-center p-8",children:X.jsxs("div",{className:"max-w-lg rounded-2xl border border-red-500/30 bg-surface-900 p-6 text-red-200",children:[X.jsx("h1",{className:"font-display text-xl font-bold mb-2",children:"No se pudo cargar OpenAPI"}),X.jsx("p",{className:"text-sm opacity-90",children:P}),X.jsxs("p",{className:"text-xs mt-4 text-slate-500",children:["URL intentada: ",te]})]})}):I?X.jsxs("div",{className:"min-h-screen flex flex-col md:flex-row",children:[X.jsxs("aside",{className:"w-full md:w-64 border-b md:border-b-0 md:border-r border-surface-700 bg-surface-900/80 shrink-0",children:[X.jsxs("div",{className:"p-4 border-b border-surface-700",children:[X.jsx("h1",{className:"font-display text-lg font-bold text-white tracking-tight",children:"api-doc-tor"}),X.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:[I.info.title," · v",I.info.version]})]}),X.jsx("nav",{className:"p-2 flex flex-row md:flex-col gap-1 overflow-x-auto",children:[["explore","Explorar"],["flows","Flujos"],["tests","Tests"],["auth","Auth"],["codegen","Código"]].map(([M,Me])=>X.jsx("button",{type:"button",onClick:()=>W(M),className:`text-left px-3 py-2 rounded-lg text-sm transition ${J===M?"bg-accent/20 text-accent":"text-slate-400 hover:bg-surface-800"}`,children:Me},M))}),X.jsxs("div",{className:"p-3 border-t border-surface-700 space-y-2",children:[X.jsx("button",{type:"button",onClick:Ke,className:"w-full text-xs py-2 rounded-lg bg-surface-800 hover:bg-surface-700",children:"Exportar estado"}),X.jsxs("label",{className:"block w-full text-xs py-2 rounded-lg bg-surface-800 hover:bg-surface-700 text-center cursor-pointer",children:["Importar JSON",X.jsx("input",{type:"file",accept:"application/json",className:"hidden",onChange:gn})]})]})]}),X.jsxs("main",{className:"flex-1 flex flex-col min-h-0",children:[X.jsx("header",{className:"border-b border-surface-700 px-4 py-3 flex flex-wrap gap-3 items-center bg-surface-900/50",children:X.jsxs("label",{className:"text-xs text-slate-500",children:["Base URL",X.jsx("input",{className:"ml-2 bg-surface-800 border border-surface-600 rounded px-2 py-1 text-sm w-64",value:ee,onChange:M=>he(M.target.value)})]})}),J==="explore"&&X.jsxs("div",{className:"flex-1 flex flex-col lg:flex-row min-h-0",children:[X.jsxs("div",{className:"lg:w-72 border-b lg:border-b-0 lg:border-r border-surface-700 overflow-auto max-h-64 lg:max-h-none",children:[X.jsxs("div",{className:"p-2",children:[X.jsx("p",{className:"text-xs uppercase tracking-wider text-slate-500 mb-2",children:"Tags"}),X.jsxs("div",{className:"flex flex-wrap gap-1",children:[X.jsx("button",{type:"button",onClick:()=>Ve(null),className:`text-xs px-2 py-1 rounded ${de===null?"bg-accent/30":"bg-surface-800"}`,children:"Todos"}),j.map(M=>X.jsx("button",{type:"button",onClick:()=>Ve(M),className:`text-xs px-2 py-1 rounded ${de===M?"bg-accent/30":"bg-surface-800"}`,children:M},M))]})]}),X.jsx("ul",{className:"text-sm",children:Se.map(M=>X.jsx("li",{children:X.jsxs("button",{type:"button",onClick:()=>Ee({method:M.method,path:M.path}),className:`w-full text-left px-3 py-2 hover:bg-surface-800 flex gap-2 ${(Ce==null?void 0:Ce.method)===M.method&&Ce.path===M.path?"bg-surface-800 border-l-2 border-accent":""}`,children:[X.jsx("span",{className:"uppercase text-accent text-xs w-12 shrink-0",children:M.method}),X.jsx("span",{className:"truncate text-slate-300",children:M.path})]})},`${M.method}:${M.path}`))})]}),X.jsx("div",{className:"flex-1 p-4 overflow-auto",children:Ce?X.jsxs("div",{className:"space-y-4",children:[X.jsxs("h2",{className:"font-display font-semibold text-white",children:[Ce.method.toUpperCase()," ",Ce.path]}),X.jsx("textarea",{className:"w-full h-32 bg-surface-900 border border-surface-600 rounded-lg p-3 font-mono text-xs",value:Oe,onChange:M=>_t(M.target.value),placeholder:"Body JSON"}),X.jsx("button",{type:"button",onClick:()=>void be(),className:"px-4 py-2 rounded-lg bg-accent text-surface-950 font-medium text-sm",children:"Ejecutar"}),X.jsx("pre",{className:"text-xs bg-surface-900 border border-surface-700 rounded-lg p-3 overflow-auto max-h-96 text-emerald-300/90 whitespace-pre-wrap",children:Xe||"—"})]}):X.jsx("p",{className:"text-slate-500",children:"Selecciona una operación."})})]}),J==="flows"&&X.jsxs("div",{className:"p-4 space-y-4 overflow-auto",children:[X.jsxs("p",{className:"text-sm text-slate-400",children:["Añade pasos (método + ruta). Opcional: extrae variable del JSON del body con path tipo"," ",X.jsx("code",{className:"text-accent",children:"$.access_token"}),"."]}),X.jsx("input",{className:"bg-surface-800 border border-surface-600 rounded px-3 py-2 text-sm w-full max-w-md",value:jt,onChange:M=>vn(M.target.value),placeholder:"Nombre del flujo"}),X.jsx("div",{className:"space-y-2",children:Ie.map((M,Me)=>{var qe,vt;return X.jsxs("div",{className:"flex flex-wrap gap-2 items-center bg-surface-900 p-2 rounded-lg border border-surface-700",children:[X.jsx("input",{className:"bg-surface-800 border border-surface-600 rounded px-2 py-1 text-xs w-20",value:M.method,onChange:et=>{const Qe=[...Ie];Qe[Me]={...M,method:et.target.value},ze(Qe)}}),X.jsx("input",{className:"bg-surface-800 border border-surface-600 rounded px-2 py-1 text-xs flex-1 min-w-[120px]",value:M.path,onChange:et=>{const Qe=[...Ie];Qe[Me]={...M,path:et.target.value},ze(Qe)}}),X.jsx("input",{className:"bg-surface-800 border border-surface-600 rounded px-2 py-1 text-xs w-24",placeholder:"var",value:((qe=M.extract)==null?void 0:qe.varName)??"",onChange:et=>{var Ge;const Qe=[...Ie];Qe[Me]={...M,extract:{varName:et.target.value,jsonPath:((Ge=M.extract)==null?void 0:Ge.jsonPath)??"$.x"}},ze(Qe)}}),X.jsx("input",{className:"bg-surface-800 border border-surface-600 rounded px-2 py-1 text-xs flex-1",placeholder:"$.path.json",value:((vt=M.extract)==null?void 0:vt.jsonPath)??"",onChange:et=>{var Ge;const Qe=[...Ie];Qe[Me]={...M,extract:{varName:((Ge=M.extract)==null?void 0:Ge.varName)??"token",jsonPath:et.target.value}},ze(Qe)}})]},Me)})}),X.jsxs("div",{className:"flex gap-2",children:[X.jsx("button",{type:"button",className:"px-3 py-2 rounded-lg bg-surface-800 text-sm",onClick:()=>ze([...Ie,{method:"get",path:"/"}]),children:"+ Paso"}),X.jsx("button",{type:"button",className:"px-3 py-2 rounded-lg bg-accent text-surface-950 text-sm font-medium",onClick:()=>void Ne(),children:"Ejecutar cadena"}),X.jsx("button",{type:"button",className:"px-3 py-2 rounded-lg bg-surface-700 text-sm",onClick:()=>void Ae(),children:"Guardar flujo"})]}),X.jsx("pre",{className:"text-xs bg-surface-900 border border-surface-700 rounded-lg p-3 max-h-64 overflow-auto",children:Xe}),X.jsxs("p",{className:"text-xs text-slate-500",children:["Guardados: ",en.map(M=>M.name).join(", ")||"—"]})]}),J==="tests"&&X.jsxs("div",{className:"p-4 space-y-4 overflow-auto",children:[X.jsx("input",{className:"bg-surface-800 border border-surface-600 rounded px-3 py-2 text-sm",value:st.name,onChange:M=>it(Me=>({...Me,name:M.target.value}))}),X.jsx("button",{type:"button",className:"ml-2 px-3 py-2 rounded-lg bg-surface-800 text-sm",onClick:Le,children:"Añadir caso desde operación seleccionada"}),X.jsx("ul",{className:"text-sm space-y-1",children:st.cases.map(M=>X.jsxs("li",{className:"flex gap-2 items-center",children:[X.jsxs("span",{children:[M.method," ",M.path]}),X.jsx("input",{type:"number",className:"w-16 bg-surface-800 border rounded px-1",value:M.expectStatus,onChange:Me=>{const qe=st.cases.map(vt=>vt.id===M.id?{...vt,expectStatus:Number(Me.target.value)}:vt);it({...st,cases:qe})}})]},M.id))}),X.jsx("button",{type:"button",className:"px-4 py-2 rounded-lg bg-accent text-surface-950 text-sm font-medium",onClick:()=>void Je(),children:"Correr suite"}),X.jsx("button",{type:"button",className:"ml-2 px-4 py-2 rounded-lg bg-surface-700 text-sm",onClick:()=>void oe(),children:"Guardar suite"}),X.jsx("pre",{className:"text-xs mt-4 bg-surface-900 p-3 rounded-lg border border-surface-700",children:Xe}),X.jsxs("p",{className:"text-xs text-slate-500",children:["Suites guardadas: ",Gt.map(M=>M.name).join(", ")||"—"]})]}),J==="auth"&&X.jsxs("div",{className:"p-4 space-y-4 max-w-lg",children:[X.jsxs("p",{className:"text-sm text-slate-400",children:["Esquemas en el spec: ",vd(I).join(", ")||"ninguno"]}),X.jsxs("label",{className:"block text-sm",children:["Bearer token",X.jsx("input",{className:"mt-1 w-full bg-surface-800 border border-surface-600 rounded px-3 py-2",value:De,onChange:M=>Zt(M.target.value),placeholder:"eyJ..."})]}),X.jsxs("label",{className:"block text-sm",children:["API key header",X.jsx("input",{className:"mt-1 w-full bg-surface-800 border border-surface-600 rounded px-3 py-2",value:nt,onChange:M=>$t(M.target.value)})]}),X.jsxs("label",{className:"block text-sm",children:["API key",X.jsx("input",{className:"mt-1 w-full bg-surface-800 border border-surface-600 rounded px-3 py-2",value:wt,onChange:M=>zt(M.target.value),type:"password",autoComplete:"off"})]}),X.jsx("button",{type:"button",className:"px-4 py-2 rounded-lg bg-surface-700 text-sm",onClick:()=>void rr(),children:"Recordar en este navegador"})]}),J==="codegen"&&X.jsxs("div",{className:"p-4 space-y-4 overflow-auto flex flex-col flex-1 min-h-0",children:[X.jsx("div",{className:"flex gap-2 flex-wrap",children:["typescript","javascript","python","php"].map(M=>X.jsx("button",{type:"button",onClick:()=>rt(M),className:`px-3 py-1 rounded-lg text-sm capitalize ${ct===M?"bg-accent/30 text-accent":"bg-surface-800"}`,children:M},M))}),X.jsx("p",{className:"text-sm text-slate-400",children:"Snippet — operación seleccionada en Explorar"}),X.jsx("pre",{className:"text-xs bg-surface-900 border border-surface-700 rounded-lg p-3 overflow-auto flex-1",children:Z||"Selecciona una operación en Explorar."}),X.jsx("p",{className:"text-sm text-slate-400",children:"Servicio completo por tag"}),X.jsxs("select",{className:"bg-surface-800 border border-surface-600 rounded px-3 py-2 text-sm max-w-xs",value:de??"",onChange:M=>Ve(M.target.value||null),children:[X.jsx("option",{value:"",children:"Elige tag"}),j.map(M=>X.jsx("option",{value:M,children:M},M))]}),X.jsx("pre",{className:"text-xs bg-surface-900 border border-surface-700 rounded-lg p-3 overflow-auto max-h-96",children:mo||"—"})]})]})]}):X.jsx("div",{className:"min-h-screen flex items-center justify-center",children:X.jsx("p",{className:"text-slate-400 animate-pulse",children:"Cargando especificación…"})})}rd.createRoot(document.getElementById("root")).render(X.jsx(Gf.StrictMode,{children:X.jsx(Cd,{})}));