@vendure/graphiql-plugin 3.4.3-master-202509260228 → 3.5.0-minor-202510012036
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.
- package/dist/graphiql/assets/Range-CZNrBk8u.js.map +1 -1
- package/dist/graphiql/assets/{SchemaReference-CvpLgB2d.js → SchemaReference-DxjLeZ59.js} +2 -2
- package/dist/graphiql/assets/{SchemaReference-CvpLgB2d.js.map → SchemaReference-DxjLeZ59.js.map} +1 -1
- package/dist/graphiql/assets/{brace-fold-CbvXwIyh.js → brace-fold-C5NBigGY.js} +2 -2
- package/dist/graphiql/assets/{brace-fold-CbvXwIyh.js.map → brace-fold-C5NBigGY.js.map} +1 -1
- package/dist/graphiql/assets/{closebrackets-D9IC1c35.js → closebrackets-CVCrAWV7.js} +2 -2
- package/dist/graphiql/assets/{closebrackets-D9IC1c35.js.map → closebrackets-CVCrAWV7.js.map} +1 -1
- package/dist/graphiql/assets/{codemirror-HbUmq4EM.js → codemirror-BJo8frku.js} +3 -3
- package/dist/graphiql/assets/codemirror-BJo8frku.js.map +1 -0
- package/dist/graphiql/assets/{codemirror-s7RqOvtc.js → codemirror-TTILi5Ok.js} +2 -2
- package/dist/graphiql/assets/codemirror-TTILi5Ok.js.map +1 -0
- package/dist/graphiql/assets/{comment-hYnnSLkz.js → comment-CvLlMsd_.js} +2 -2
- package/dist/graphiql/assets/{comment-hYnnSLkz.js.map → comment-CvLlMsd_.js.map} +1 -1
- package/dist/graphiql/assets/{dialog-BwC5n760.js → dialog-Bw_kCHcZ.js} +2 -2
- package/dist/graphiql/assets/{dialog-BwC5n760.js.map → dialog-Bw_kCHcZ.js.map} +1 -1
- package/dist/graphiql/assets/{dialog-74yvRjdg.js → dialog-DRbboQHi.js} +2 -2
- package/dist/graphiql/assets/dialog-DRbboQHi.js.map +1 -0
- package/dist/graphiql/assets/{foldgutter-CNvWBdVI.js → foldgutter-xM98xUAG.js} +2 -2
- package/dist/graphiql/assets/{foldgutter-CNvWBdVI.js.map → foldgutter-xM98xUAG.js.map} +1 -1
- package/dist/graphiql/assets/forEachState-C8esYVuF.js.map +1 -1
- package/dist/graphiql/assets/{hint-D4-TGuu2.js → hint-5FUhY45V.js} +2 -2
- package/dist/graphiql/assets/{hint-D4-TGuu2.js.map → hint-5FUhY45V.js.map} +1 -1
- package/dist/graphiql/assets/{hint-tBpO-B8y.js → hint-CE5L8QSM.js} +2 -2
- package/dist/graphiql/assets/{hint-tBpO-B8y.js.map → hint-CE5L8QSM.js.map} +1 -1
- package/dist/graphiql/assets/index-BHryLb7e.js +375 -0
- package/dist/graphiql/assets/index-BHryLb7e.js.map +1 -0
- package/dist/graphiql/assets/index-CVlvTGMf.js.map +1 -1
- package/dist/graphiql/assets/{index-DDpY1Cbm.css → index-DssUSu3K.css} +1 -1
- package/dist/graphiql/assets/{info-D0V7Zrnm.js → info-Eys77UxT.js} +2 -2
- package/dist/graphiql/assets/{info-D0V7Zrnm.js.map → info-Eys77UxT.js.map} +1 -1
- package/dist/graphiql/assets/info-addon-DqEXsUQA.js +2 -0
- package/dist/graphiql/assets/info-addon-DqEXsUQA.js.map +1 -0
- package/dist/graphiql/assets/{javascript-C1fmnkCb.js → javascript-CIef8F0n.js} +2 -2
- package/dist/graphiql/assets/{javascript-C1fmnkCb.js.map → javascript-CIef8F0n.js.map} +1 -1
- package/dist/graphiql/assets/{jump-CMl3nz-1.js → jump-CTE51hYz.js} +2 -2
- package/dist/graphiql/assets/{jump-CMl3nz-1.js.map → jump-CTE51hYz.js.map} +1 -1
- package/dist/graphiql/assets/{jump-to-line-Hq5vq2W4.js → jump-to-line-BvpEaCtd.js} +2 -2
- package/dist/graphiql/assets/{jump-to-line-Hq5vq2W4.js.map → jump-to-line-BvpEaCtd.js.map} +1 -1
- package/dist/graphiql/assets/{lint-C6rDu9yg.js → lint-BIG9wcrT.js} +2 -2
- package/dist/graphiql/assets/{lint-C6rDu9yg.js.map → lint-BIG9wcrT.js.map} +1 -1
- package/dist/graphiql/assets/{lint-B6DlOY4R.js → lint-CEbnMjdF.js} +2 -2
- package/dist/graphiql/assets/{lint-B6DlOY4R.js.map → lint-CEbnMjdF.js.map} +1 -1
- package/dist/graphiql/assets/{lint-B2CUTgTB.js → lint-F_nW9Zrt.js} +2 -2
- package/dist/graphiql/assets/{lint-B2CUTgTB.js.map → lint-F_nW9Zrt.js.map} +1 -1
- package/dist/graphiql/assets/{matchbrackets-DcI6Xjhe.js → matchbrackets-D0OH_t55.js} +2 -2
- package/dist/graphiql/assets/matchbrackets-D0OH_t55.js.map +1 -0
- package/dist/graphiql/assets/{matchbrackets-D7CjVzEn.js → matchbrackets-zOPNoWNW.js} +2 -2
- package/dist/graphiql/assets/{matchbrackets-D7CjVzEn.js.map → matchbrackets-zOPNoWNW.js.map} +1 -1
- package/dist/graphiql/assets/{mode-DtlwYZcH.js → mode-Bgsek-oa.js} +2 -2
- package/dist/graphiql/assets/{mode-DtlwYZcH.js.map → mode-Bgsek-oa.js.map} +1 -1
- package/dist/graphiql/assets/{mode-CJXCb3SU.js → mode-CdWNzEF9.js} +2 -2
- package/dist/graphiql/assets/{mode-CJXCb3SU.js.map → mode-CdWNzEF9.js.map} +1 -1
- package/dist/graphiql/assets/{mode-C2URUmUb.js → mode-u5eBXn1b.js} +2 -2
- package/dist/graphiql/assets/{mode-C2URUmUb.js.map → mode-u5eBXn1b.js.map} +1 -1
- package/dist/graphiql/assets/{search-BzUGWzlS.js → search-BwFO2EYo.js} +2 -2
- package/dist/graphiql/assets/{search-BzUGWzlS.js.map → search-BwFO2EYo.js.map} +1 -1
- package/dist/graphiql/assets/{searchcursor-CHMRisY0.js → searchcursor-C8teH98l.js} +2 -2
- package/dist/graphiql/assets/searchcursor-C8teH98l.js.map +1 -0
- package/dist/graphiql/assets/{searchcursor-DThQw5sX.js → searchcursor-Do0yqmiZ.js} +2 -2
- package/dist/graphiql/assets/{searchcursor-DThQw5sX.js.map → searchcursor-Do0yqmiZ.js.map} +1 -1
- package/dist/graphiql/assets/{show-hint-CD13Xkku.js → show-hint-C-WEDAS_.js} +2 -2
- package/dist/graphiql/assets/{show-hint-CD13Xkku.js.map → show-hint-C-WEDAS_.js.map} +1 -1
- package/dist/graphiql/assets/{sublime-2ochNaKe.js → sublime-Cj8gH-vM.js} +2 -2
- package/dist/graphiql/assets/{sublime-2ochNaKe.js.map → sublime-Cj8gH-vM.js.map} +1 -1
- package/dist/graphiql/index.html +2 -2
- package/package.json +4 -4
- package/dist/graphiql/assets/codemirror-HbUmq4EM.js.map +0 -1
- package/dist/graphiql/assets/codemirror-s7RqOvtc.js.map +0 -1
- package/dist/graphiql/assets/dialog-74yvRjdg.js.map +0 -1
- package/dist/graphiql/assets/index-IiLbhMF9.js +0 -375
- package/dist/graphiql/assets/index-IiLbhMF9.js.map +0 -1
- package/dist/graphiql/assets/info-addon-BjO9oTYK.js +0 -2
- package/dist/graphiql/assets/info-addon-BjO9oTYK.js.map +0 -1
- package/dist/graphiql/assets/matchbrackets-DcI6Xjhe.js.map +0 -1
- package/dist/graphiql/assets/searchcursor-CHMRisY0.js.map +0 -1
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codemirror-TTILi5Ok.js","assets/codemirror-BJo8frku.js","assets/show-hint-C-WEDAS_.js","assets/matchbrackets-D0OH_t55.js","assets/matchbrackets-zOPNoWNW.js","assets/closebrackets-CVCrAWV7.js","assets/brace-fold-C5NBigGY.js","assets/foldgutter-xM98xUAG.js","assets/lint-F_nW9Zrt.js","assets/searchcursor-C8teH98l.js","assets/searchcursor-Do0yqmiZ.js","assets/jump-to-line-BvpEaCtd.js","assets/dialog-Bw_kCHcZ.js","assets/dialog-DRbboQHi.js","assets/sublime-Cj8gH-vM.js","assets/javascript-CIef8F0n.js","assets/comment-CvLlMsd_.js","assets/search-BwFO2EYo.js","assets/hint-CE5L8QSM.js","assets/Range-CZNrBk8u.js","assets/lint-BIG9wcrT.js","assets/info-Eys77UxT.js","assets/SchemaReference-DxjLeZ59.js","assets/forEachState-C8esYVuF.js","assets/info-addon-DqEXsUQA.js","assets/jump-CTE51hYz.js","assets/mode-u5eBXn1b.js","assets/mode-indent-Dvf_-b54.js","assets/hint-5FUhY45V.js","assets/lint-CEbnMjdF.js","assets/mode-Bgsek-oa.js","assets/mode-CdWNzEF9.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function Aw(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d1={exports:{}},$l={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var cx;function ww(){if(cx)return $l;cx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,r,s){var a=null;if(s!==void 0&&(a=""+s),r.key!==void 0&&(a=""+r.key),"key"in r){s={};for(var c in r)c!=="key"&&(s[c]=r[c])}else s=r;return r=s.ref,{$$typeof:e,type:i,key:a,ref:r!==void 0?r:null,props:s}}return $l.Fragment=t,$l.jsx=n,$l.jsxs=n,$l}var fx;function Dw(){return fx||(fx=1,d1.exports=ww()),d1.exports}var C=Dw(),h1={exports:{}},Fe={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var dx;function Nw(){if(dx)return Fe;dx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function _(k,H,oe){this.props=k,this.context=H,this.refs=T,this.updater=oe||y}_.prototype.isReactComponent={},_.prototype.setState=function(k,H){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,H,"setState")},_.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function S(){}S.prototype=_.prototype;function D(k,H,oe){this.props=k,this.context=H,this.refs=T,this.updater=oe||y}var A=D.prototype=new S;A.constructor=D,E(A,_.prototype),A.isPureReactComponent=!0;var N=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function j(k,H,oe,ie,G,pe){return oe=pe.ref,{$$typeof:e,type:k,key:H,ref:oe!==void 0?oe:null,props:pe}}function $(k,H){return j(k.type,H,void 0,void 0,void 0,k.props)}function L(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function U(k){var H={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(oe){return H[oe]})}var Y=/\/+/g;function K(k,H){return typeof k=="object"&&k!==null&&k.key!=null?U(""+k.key):H.toString(36)}function se(){}function ne(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(se,se):(k.status="pending",k.then(function(H){k.status==="pending"&&(k.status="fulfilled",k.value=H)},function(H){k.status==="pending"&&(k.status="rejected",k.reason=H)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function te(k,H,oe,ie,G){var pe=typeof k;(pe==="undefined"||pe==="boolean")&&(k=null);var de=!1;if(k===null)de=!0;else switch(pe){case"bigint":case"string":case"number":de=!0;break;case"object":switch(k.$$typeof){case e:case t:de=!0;break;case p:return de=k._init,te(de(k._payload),H,oe,ie,G)}}if(de)return G=G(k),de=ie===""?"."+K(k,0):ie,N(G)?(oe="",de!=null&&(oe=de.replace(Y,"$&/")+"/"),te(G,H,oe,"",function(me){return me})):G!=null&&(L(G)&&(G=$(G,oe+(G.key==null||k&&k.key===G.key?"":(""+G.key).replace(Y,"$&/")+"/")+de)),H.push(G)),1;de=0;var fe=ie===""?".":ie+":";if(N(k))for(var re=0;re<k.length;re++)ie=k[re],pe=fe+K(ie,re),de+=te(ie,H,oe,pe,G);else if(re=v(k),typeof re=="function")for(k=re.call(k),re=0;!(ie=k.next()).done;)ie=ie.value,pe=fe+K(ie,re++),de+=te(ie,H,oe,pe,G);else if(pe==="object"){if(typeof k.then=="function")return te(ne(k),H,oe,ie,G);throw H=String(k),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return de}function I(k,H,oe){if(k==null)return k;var ie=[],G=0;return te(k,ie,"","",function(pe){return H.call(oe,pe,G++)}),ie}function z(k){if(k._status===-1){var H=k._result;H=H(),H.then(function(oe){(k._status===0||k._status===-1)&&(k._status=1,k._result=oe)},function(oe){(k._status===0||k._status===-1)&&(k._status=2,k._result=oe)}),k._status===-1&&(k._status=0,k._result=H)}if(k._status===1)return k._result.default;throw k._result}var P=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function V(){}return Fe.Children={map:I,forEach:function(k,H,oe){I(k,function(){H.apply(this,arguments)},oe)},count:function(k){var H=0;return I(k,function(){H++}),H},toArray:function(k){return I(k,function(H){return H})||[]},only:function(k){if(!L(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Fe.Component=_,Fe.Fragment=n,Fe.Profiler=r,Fe.PureComponent=D,Fe.StrictMode=i,Fe.Suspense=f,Fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Fe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return R.H.useMemoCache(k)}},Fe.cache=function(k){return function(){return k.apply(null,arguments)}},Fe.cloneElement=function(k,H,oe){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var ie=E({},k.props),G=k.key,pe=void 0;if(H!=null)for(de in H.ref!==void 0&&(pe=void 0),H.key!==void 0&&(G=""+H.key),H)!M.call(H,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&H.ref===void 0||(ie[de]=H[de]);var de=arguments.length-2;if(de===1)ie.children=oe;else if(1<de){for(var fe=Array(de),re=0;re<de;re++)fe[re]=arguments[re+2];ie.children=fe}return j(k.type,G,void 0,void 0,pe,ie)},Fe.createContext=function(k){return k={$$typeof:a,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},Fe.createElement=function(k,H,oe){var ie,G={},pe=null;if(H!=null)for(ie in H.key!==void 0&&(pe=""+H.key),H)M.call(H,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(G[ie]=H[ie]);var de=arguments.length-2;if(de===1)G.children=oe;else if(1<de){for(var fe=Array(de),re=0;re<de;re++)fe[re]=arguments[re+2];G.children=fe}if(k&&k.defaultProps)for(ie in de=k.defaultProps,de)G[ie]===void 0&&(G[ie]=de[ie]);return j(k,pe,void 0,void 0,null,G)},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(k){return{$$typeof:c,render:k}},Fe.isValidElement=L,Fe.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:z}},Fe.memo=function(k,H){return{$$typeof:h,type:k,compare:H===void 0?null:H}},Fe.startTransition=function(k){var H=R.T,oe={};R.T=oe;try{var ie=k(),G=R.S;G!==null&&G(oe,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(V,P)}catch(pe){P(pe)}finally{R.T=H}},Fe.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Fe.use=function(k){return R.H.use(k)},Fe.useActionState=function(k,H,oe){return R.H.useActionState(k,H,oe)},Fe.useCallback=function(k,H){return R.H.useCallback(k,H)},Fe.useContext=function(k){return R.H.useContext(k)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(k,H){return R.H.useDeferredValue(k,H)},Fe.useEffect=function(k,H,oe){var ie=R.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ie.useEffect(k,H)},Fe.useId=function(){return R.H.useId()},Fe.useImperativeHandle=function(k,H,oe){return R.H.useImperativeHandle(k,H,oe)},Fe.useInsertionEffect=function(k,H){return R.H.useInsertionEffect(k,H)},Fe.useLayoutEffect=function(k,H){return R.H.useLayoutEffect(k,H)},Fe.useMemo=function(k,H){return R.H.useMemo(k,H)},Fe.useOptimistic=function(k,H){return R.H.useOptimistic(k,H)},Fe.useReducer=function(k,H,oe){return R.H.useReducer(k,H,oe)},Fe.useRef=function(k){return R.H.useRef(k)},Fe.useState=function(k){return R.H.useState(k)},Fe.useSyncExternalStore=function(k,H,oe){return R.H.useSyncExternalStore(k,H,oe)},Fe.useTransition=function(){return R.H.useTransition()},Fe.version="19.1.1",Fe}var hx;function jc(){return hx||(hx=1,h1.exports=Nw()),h1.exports}var x=jc();const Re=ls(x),Jg=Aw({__proto__:null,default:Re},[x]);var p1={exports:{}},Bl={},m1={exports:{}},g1={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var px;function Ow(){return px||(px=1,function(e){function t(I,z){var P=I.length;I.push(z);e:for(;0<P;){var V=P-1>>>1,k=I[V];if(0<r(k,z))I[V]=z,I[P]=k,P=V;else break e}}function n(I){return I.length===0?null:I[0]}function i(I){if(I.length===0)return null;var z=I[0],P=I.pop();if(P!==z){I[0]=P;e:for(var V=0,k=I.length,H=k>>>1;V<H;){var oe=2*(V+1)-1,ie=I[oe],G=oe+1,pe=I[G];if(0>r(ie,P))G<k&&0>r(pe,ie)?(I[V]=pe,I[G]=P,V=G):(I[V]=ie,I[oe]=P,V=oe);else if(G<k&&0>r(pe,P))I[V]=pe,I[G]=P,V=G;else break e}}return z}function r(I,z){var P=I.sortIndex-z.sortIndex;return P!==0?P:I.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();e.unstable_now=function(){return a.now()-c}}var f=[],h=[],p=1,g=null,v=3,y=!1,E=!1,T=!1,_=!1,S=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function N(I){for(var z=n(h);z!==null;){if(z.callback===null)i(h);else if(z.startTime<=I)i(h),z.sortIndex=z.expirationTime,t(f,z);else break;z=n(h)}}function R(I){if(T=!1,N(I),!E)if(n(f)!==null)E=!0,M||(M=!0,K());else{var z=n(h);z!==null&&te(R,z.startTime-I)}}var M=!1,j=-1,$=5,L=-1;function U(){return _?!0:!(e.unstable_now()-L<$)}function Y(){if(_=!1,M){var I=e.unstable_now();L=I;var z=!0;try{e:{E=!1,T&&(T=!1,D(j),j=-1),y=!0;var P=v;try{t:{for(N(I),g=n(f);g!==null&&!(g.expirationTime>I&&U());){var V=g.callback;if(typeof V=="function"){g.callback=null,v=g.priorityLevel;var k=V(g.expirationTime<=I);if(I=e.unstable_now(),typeof k=="function"){g.callback=k,N(I),z=!0;break t}g===n(f)&&i(f),N(I)}else i(f);g=n(f)}if(g!==null)z=!0;else{var H=n(h);H!==null&&te(R,H.startTime-I),z=!1}}break e}finally{g=null,v=P,y=!1}z=void 0}}finally{z?K():M=!1}}}var K;if(typeof A=="function")K=function(){A(Y)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ne=se.port2;se.port1.onmessage=Y,K=function(){ne.postMessage(null)}}else K=function(){S(Y,0)};function te(I,z){j=S(function(){I(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(I){switch(v){case 1:case 2:case 3:var z=3;break;default:z=v}var P=v;v=z;try{return I()}finally{v=P}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(I,z){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var P=v;v=I;try{return z()}finally{v=P}},e.unstable_scheduleCallback=function(I,z,P){var V=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?V+P:V):P=V,I){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=P+k,I={id:p++,callback:z,priorityLevel:I,startTime:P,expirationTime:k,sortIndex:-1},P>V?(I.sortIndex=P,t(h,I),n(f)===null&&I===n(h)&&(T?(D(j),j=-1):T=!0,te(R,P-V))):(I.sortIndex=k,t(f,I),E||y||(E=!0,M||(M=!0,K()))),I},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(I){var z=v;return function(){var P=v;v=z;try{return I.apply(this,arguments)}finally{v=P}}}}(g1)),g1}var mx;function Rw(){return mx||(mx=1,m1.exports=Ow()),m1.exports}var v1={exports:{}},En={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var gx;function kw(){if(gx)return En;gx=1;var e=jc();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},r=Symbol.for("react.portal");function s(f,h,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:g==null?null:""+g,children:f,containerInfo:h,implementation:p}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return En.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,En.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(f,h,null,p)},En.flushSync=function(f){var h=a.T,p=i.p;try{if(a.T=null,i.p=2,f)return f()}finally{a.T=h,i.p=p,i.d.f()}},En.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},En.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},En.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,g=c(p,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,y=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:y}):p==="script"&&i.d.X(f,{crossOrigin:g,integrity:v,fetchPriority:y,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},En.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=c(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},En.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,g=c(p,h.crossOrigin);i.d.L(f,p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},En.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=c(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},En.requestFormReset=function(f){i.d.r(f)},En.unstable_batchedUpdates=function(f,h){return f(h)},En.useFormState=function(f,h,p){return a.H.useFormState(f,h,p)},En.useFormStatus=function(){return a.H.useHostTransitionStatus()},En.version="19.1.1",En}var vx;function $5(){if(vx)return v1.exports;vx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),v1.exports=kw(),v1.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var yx;function Mw(){if(yx)return Bl;yx=1;var e=Rw(),t=jc(),n=$5();function i(u){var o="https://react.dev/errors/"+u;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)o+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+u+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function s(u){var o=u,l=u;if(u.alternate)for(;o.return;)o=o.return;else{u=o;do o=u,(o.flags&4098)!==0&&(l=o.return),u=o.return;while(u)}return o.tag===3?l:null}function a(u){if(u.tag===13){var o=u.memoizedState;if(o===null&&(u=u.alternate,u!==null&&(o=u.memoizedState)),o!==null)return o.dehydrated}return null}function c(u){if(s(u)!==u)throw Error(i(188))}function f(u){var o=u.alternate;if(!o){if(o=s(u),o===null)throw Error(i(188));return o!==u?null:u}for(var l=u,d=o;;){var m=l.return;if(m===null)break;var b=m.alternate;if(b===null){if(d=m.return,d!==null){l=d;continue}break}if(m.child===b.child){for(b=m.child;b;){if(b===l)return c(m),u;if(b===d)return c(m),o;b=b.sibling}throw Error(i(188))}if(l.return!==d.return)l=m,d=b;else{for(var w=!1,O=m.child;O;){if(O===l){w=!0,l=m,d=b;break}if(O===d){w=!0,d=m,l=b;break}O=O.sibling}if(!w){for(O=b.child;O;){if(O===l){w=!0,l=b,d=m;break}if(O===d){w=!0,d=b,l=m;break}O=O.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==d)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?u:o}function h(u){var o=u.tag;if(o===5||o===26||o===27||o===6)return u;for(u=u.child;u!==null;){if(o=h(u),o!==null)return o;u=u.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),D=Symbol.for("react.consumer"),A=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),Y=Symbol.iterator;function K(u){return u===null||typeof u!="object"?null:(u=Y&&u[Y]||u["@@iterator"],typeof u=="function"?u:null)}var se=Symbol.for("react.client.reference");function ne(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===se?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case E:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case R:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case y:return"Portal";case A:return(u.displayName||"Context")+".Provider";case D:return(u._context.displayName||"Context")+".Consumer";case N:var o=u.render;return u=u.displayName,u||(u=o.displayName||o.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case j:return o=u.displayName||null,o!==null?o:ne(u.type)||"Memo";case $:o=u._payload,u=u._init;try{return ne(u(o))}catch{}}return null}var te=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},V=[],k=-1;function H(u){return{current:u}}function oe(u){0>k||(u.current=V[k],V[k]=null,k--)}function ie(u,o){k++,V[k]=u.current,u.current=o}var G=H(null),pe=H(null),de=H(null),fe=H(null);function re(u,o){switch(ie(de,o),ie(pe,u),ie(G,null),o.nodeType){case 9:case 11:u=(u=o.documentElement)&&(u=u.namespaceURI)?P3(u):0;break;default:if(u=o.tagName,o=o.namespaceURI)o=P3(o),u=V3(o,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}oe(G),ie(G,u)}function me(){oe(G),oe(pe),oe(de)}function xe(u){u.memoizedState!==null&&ie(fe,u);var o=G.current,l=V3(o,u.type);o!==l&&(ie(pe,u),ie(G,l))}function Te(u){pe.current===u&&(oe(G),oe(pe)),fe.current===u&&(oe(fe),Il._currentValue=P)}var st=Object.prototype.hasOwnProperty,_e=e.unstable_scheduleCallback,gt=e.unstable_cancelCallback,an=e.unstable_shouldYield,ln=e.unstable_requestPaint,at=e.unstable_now,Se=e.unstable_getCurrentPriorityLevel,Le=e.unstable_ImmediatePriority,De=e.unstable_UserBlockingPriority,ke=e.unstable_NormalPriority,xt=e.unstable_LowPriority,He=e.unstable_IdlePriority,_n=e.log,Ri=e.unstable_setDisableYieldValue,Ki=null,cn=null;function zn(u){if(typeof _n=="function"&&Ri(u),cn&&typeof cn.setStrictMode=="function")try{cn.setStrictMode(Ki,u)}catch{}}var Cn=Math.clz32?Math.clz32:bs,ys=Math.log,hh=Math.LN2;function bs(u){return u>>>=0,u===0?32:31-(ys(u)/hh|0)|0}var jr=256,Ji=4194304;function ai(u){var o=u&42;if(o!==0)return o;switch(u&-u){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:return 64;case 128:return 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 u&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function er(u,o,l){var d=u.pendingLanes;if(d===0)return 0;var m=0,b=u.suspendedLanes,w=u.pingedLanes;u=u.warmLanes;var O=d&134217727;return O!==0?(d=O&~b,d!==0?m=ai(d):(w&=O,w!==0?m=ai(w):l||(l=O&~u,l!==0&&(m=ai(l))))):(O=d&~b,O!==0?m=ai(O):w!==0?m=ai(w):l||(l=d&~u,l!==0&&(m=ai(l)))),m===0?0:o!==0&&o!==m&&(o&b)===0&&(b=m&-m,l=o&-o,b>=l||b===32&&(l&4194048)!==0)?o:m}function li(u,o){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&o)===0}function xu(u,o){switch(u){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yo(){var u=jr;return jr<<=1,(jr&4194048)===0&&(jr=256),u}function xs(){var u=Ji;return Ji<<=1,(Ji&62914560)===0&&(Ji=4194304),u}function tr(u){for(var o=[],l=0;31>l;l++)o.push(u);return o}function ci(u,o){u.pendingLanes|=o,o!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Eu(u,o,l,d,m,b){var w=u.pendingLanes;u.pendingLanes=l,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=l,u.entangledLanes&=l,u.errorRecoveryDisabledLanes&=l,u.shellSuspendCounter=0;var O=u.entanglements,F=u.expirationTimes,X=u.hiddenUpdates;for(l=w&~l;0<l;){var ue=31-Cn(l),ce=1<<ue;O[ue]=0,F[ue]=-1;var J=X[ue];if(J!==null)for(X[ue]=null,ue=0;ue<J.length;ue++){var ee=J[ue];ee!==null&&(ee.lane&=-536870913)}l&=~ce}d!==0&&bo(u,d,0),b!==0&&m===0&&u.tag!==0&&(u.suspendedLanes|=b&~(w&~o))}function bo(u,o,l){u.pendingLanes|=o,u.suspendedLanes&=~o;var d=31-Cn(o);u.entangledLanes|=o,u.entanglements[d]=u.entanglements[d]|1073741824|l&4194090}function xo(u,o){var l=u.entangledLanes|=o;for(u=u.entanglements;l;){var d=31-Cn(l),m=1<<d;m&o|u[d]&o&&(u[d]|=o),l&=~m}}function nr(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;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:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function Tu(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function Pr(){var u=z.p;return u!==0?u:(u=window.event,u===void 0?32:rx(u.type))}function Su(u,o){var l=z.p;try{return z.p=u,o()}finally{z.p=l}}var An=Math.random().toString(36).slice(2),Wt="__reactFiber$"+An,Ot="__reactProps$"+An,qn="__reactContainer$"+An,_u="__reactEvents$"+An,Cu="__reactListeners$"+An,Au="__reactHandles$"+An,Es="__reactResources$"+An,Eo="__reactMarker$"+An;function ir(u){delete u[Wt],delete u[Ot],delete u[_u],delete u[Cu],delete u[Au]}function ki(u){var o=u[Wt];if(o)return o;for(var l=u.parentNode;l;){if(o=l[qn]||l[Wt]){if(l=o.alternate,o.child!==null||l!==null&&l.child!==null)for(u=z3(u);u!==null;){if(l=u[Wt])return l;u=z3(u)}return o}u=l,l=u.parentNode}return null}function Hn(u){if(u=u[Wt]||u[qn]){var o=u.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return u}return null}function fi(u){var o=u.tag;if(o===5||o===26||o===27||o===6)return u.stateNode;throw Error(i(33))}function wu(u){var o=u[Es];return o||(o=u[Es]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Ct(u){u[Eo]=!0}var Vr=new Set,$r={};function Ln(u,o){rr(u,o),rr(u+"Capture",o)}function rr(u,o){for($r[u]=o,u=0;u<o.length;u++)Vr.add(o[u])}var Ya=RegExp("^[: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]*$"),Br={},Ur={};function Du(u){return st.call(Ur,u)?!0:st.call(Br,u)?!1:Ya.test(u)?Ur[u]=!0:(Br[u]=!0,!1)}function Mi(u,o,l){if(Du(o))if(l===null)u.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":u.removeAttribute(o);return;case"boolean":var d=o.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){u.removeAttribute(o);return}}u.setAttribute(o,""+l)}}function Nu(u,o,l){if(l===null)u.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(o);return}u.setAttribute(o,""+l)}}function Gn(u,o,l,d){if(d===null)u.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(l);return}u.setAttributeNS(o,l,""+d)}}var ur,zr;function Yn(u){if(ur===void 0)try{throw Error()}catch(l){var o=l.stack.trim().match(/\n( *(at )?)/);ur=o&&o[1]||"",zr=-1<l.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+ur+u+zr}var or=!1;function sr(u,o){if(!u||or)return"";or=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(o){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ee){var J=ee}Reflect.construct(u,[],ce)}else{try{ce.call()}catch(ee){J=ee}u.call(ce.prototype)}}else{try{throw Error()}catch(ee){J=ee}(ce=u())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=d.DetermineComponentFrameRoot(),w=b[0],O=b[1];if(w&&O){var F=w.split(`
|
|
45
|
+
`),X=O.split(`
|
|
46
|
+
`);for(m=d=0;d<F.length&&!F[d].includes("DetermineComponentFrameRoot");)d++;for(;m<X.length&&!X[m].includes("DetermineComponentFrameRoot");)m++;if(d===F.length||m===X.length)for(d=F.length-1,m=X.length-1;1<=d&&0<=m&&F[d]!==X[m];)m--;for(;1<=d&&0<=m;d--,m--)if(F[d]!==X[m]){if(d!==1||m!==1)do if(d--,m--,0>m||F[d]!==X[m]){var ue=`
|
|
47
|
+
`+F[d].replace(" at new "," at ");return u.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",u.displayName)),ue}while(1<=d&&0<=m);break}}}finally{or=!1,Error.prepareStackTrace=l}return(l=u?u.displayName||u.name:"")?Yn(l):""}function Ou(u){switch(u.tag){case 26:case 27:case 5:return Yn(u.type);case 16:return Yn("Lazy");case 13:return Yn("Suspense");case 19:return Yn("SuspenseList");case 0:case 15:return sr(u.type,!1);case 11:return sr(u.type.render,!1);case 1:return sr(u.type,!0);case 31:return Yn("Activity");default:return""}}function qr(u){try{var o="";do o+=Ou(u),u=u.return;while(u);return o}catch(l){return`
|
|
48
|
+
Error generating stack: `+l.message+`
|
|
49
|
+
`+l.stack}}function qt(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Hr(u){var o=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ru(u){var o=Hr(u)?"checked":"value",l=Object.getOwnPropertyDescriptor(u.constructor.prototype,o),d=""+u[o];if(!u.hasOwnProperty(o)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var m=l.get,b=l.set;return Object.defineProperty(u,o,{configurable:!0,get:function(){return m.call(this)},set:function(w){d=""+w,b.call(this,w)}}),Object.defineProperty(u,o,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(w){d=""+w},stopTracking:function(){u._valueTracker=null,delete u[o]}}}}function Li(u){u._valueTracker||(u._valueTracker=Ru(u))}function Ts(u){if(!u)return!1;var o=u._valueTracker;if(!o)return!0;var l=o.getValue(),d="";return u&&(d=Hr(u)?u.checked?"true":"false":u.value),u=d,u!==l?(o.setValue(u),!0):!1}function Gr(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var ku=/[\n"\\]/g;function Ht(u){return u.replace(ku,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function To(u,o,l,d,m,b,w,O){u.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?u.type=w:u.removeAttribute("type"),o!=null?w==="number"?(o===0&&u.value===""||u.value!=o)&&(u.value=""+qt(o)):u.value!==""+qt(o)&&(u.value=""+qt(o)):w!=="submit"&&w!=="reset"||u.removeAttribute("value"),o!=null?ar(u,w,qt(o)):l!=null?ar(u,w,qt(l)):d!=null&&u.removeAttribute("value"),m==null&&b!=null&&(u.defaultChecked=!!b),m!=null&&(u.checked=m&&typeof m!="function"&&typeof m!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?u.name=""+qt(O):u.removeAttribute("name")}function So(u,o,l,d,m,b,w,O){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(u.type=b),o!=null||l!=null){if(!(b!=="submit"&&b!=="reset"||o!=null))return;l=l!=null?""+qt(l):"",o=o!=null?""+qt(o):l,O||o===u.value||(u.value=o),u.defaultValue=o}d=d??m,d=typeof d!="function"&&typeof d!="symbol"&&!!d,u.checked=O?u.checked:!!d,u.defaultChecked=!!d,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(u.name=w)}function ar(u,o,l){o==="number"&&Gr(u.ownerDocument)===u||u.defaultValue===""+l||(u.defaultValue=""+l)}function Qn(u,o,l,d){if(u=u.options,o){o={};for(var m=0;m<l.length;m++)o["$"+l[m]]=!0;for(l=0;l<u.length;l++)m=o.hasOwnProperty("$"+u[l].value),u[l].selected!==m&&(u[l].selected=m),m&&d&&(u[l].defaultSelected=!0)}else{for(l=""+qt(l),o=null,m=0;m<u.length;m++){if(u[m].value===l){u[m].selected=!0,d&&(u[m].defaultSelected=!0);return}o!==null||u[m].disabled||(o=u[m])}o!==null&&(o.selected=!0)}}function _o(u,o,l){if(o!=null&&(o=""+qt(o),o!==u.value&&(u.value=o),l==null)){u.defaultValue!==o&&(u.defaultValue=o);return}u.defaultValue=l!=null?""+qt(l):""}function Ss(u,o,l,d){if(o==null){if(d!=null){if(l!=null)throw Error(i(92));if(te(d)){if(1<d.length)throw Error(i(93));d=d[0]}l=d}l==null&&(l=""),o=l}l=qt(o),u.defaultValue=l,d=u.textContent,d===l&&d!==""&&d!==null&&(u.value=d)}function lr(u,o){if(o){var l=u.firstChild;if(l&&l===u.lastChild&&l.nodeType===3){l.nodeValue=o;return}}u.textContent=o}var Mu=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yr(u,o,l){var d=o.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?d?u.setProperty(o,""):o==="float"?u.cssFloat="":u[o]="":d?u.setProperty(o,l):typeof l!="number"||l===0||Mu.has(o)?o==="float"?u.cssFloat=l:u[o]=(""+l).trim():u[o]=l+"px"}function Qr(u,o,l){if(o!=null&&typeof o!="object")throw Error(i(62));if(u=u.style,l!=null){for(var d in l)!l.hasOwnProperty(d)||o!=null&&o.hasOwnProperty(d)||(d.indexOf("--")===0?u.setProperty(d,""):d==="float"?u.cssFloat="":u[d]="");for(var m in o)d=o[m],o.hasOwnProperty(m)&&l[m]!==d&&Yr(u,m,d)}else for(var b in o)o.hasOwnProperty(b)&&Yr(u,b,o[b])}function cr(u){if(u.indexOf("-")===-1)return!1;switch(u){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 _s=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ue=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lt(u){return Ue.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var Pt=null;function yn(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var bn=null,Lu=null;function $v(u){var o=Hn(u);if(o&&(u=o.stateNode)){var l=u[Ot]||null;e:switch(u=o.stateNode,o.type){case"input":if(To(u,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),o=l.name,l.type==="radio"&&o!=null){for(l=u;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ht(""+o)+'"][type="radio"]'),o=0;o<l.length;o++){var d=l[o];if(d!==u&&d.form===u.form){var m=d[Ot]||null;if(!m)throw Error(i(90));To(d,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(o=0;o<l.length;o++)d=l[o],d.form===u.form&&Ts(d)}break e;case"textarea":_o(u,l.value,l.defaultValue);break e;case"select":o=l.value,o!=null&&Qn(u,!!l.multiple,o,!1)}}}var ph=!1;function Bv(u,o,l){if(ph)return u(o,l);ph=!0;try{var d=u(o);return d}finally{if(ph=!1,(bn!==null||Lu!==null)&&(Gf(),bn&&(o=bn,u=Lu,Lu=bn=null,$v(o),u)))for(o=0;o<u.length;o++)$v(u[o])}}function Qa(u,o){var l=u.stateNode;if(l===null)return null;var d=l[Ot]||null;if(d===null)return null;l=d[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(u=u.type,d=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!d;break e;default:u=!1}if(u)return null;if(l&&typeof l!="function")throw Error(i(231,o,typeof l));return l}var Xr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mh=!1;if(Xr)try{var Xa={};Object.defineProperty(Xa,"passive",{get:function(){mh=!0}}),window.addEventListener("test",Xa,Xa),window.removeEventListener("test",Xa,Xa)}catch{mh=!1}var Iu=null,gh=null,af=null;function Uv(){if(af)return af;var u,o=gh,l=o.length,d,m="value"in Iu?Iu.value:Iu.textContent,b=m.length;for(u=0;u<l&&o[u]===m[u];u++);var w=l-u;for(d=1;d<=w&&o[l-d]===m[b-d];d++);return af=m.slice(u,1<d?1-d:void 0)}function lf(u){var o=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&o===13&&(u=13)):u=o,u===10&&(u=13),32<=u||u===13?u:0}function cf(){return!0}function zv(){return!1}function In(u){function o(l,d,m,b,w){this._reactName=l,this._targetInst=m,this.type=d,this.nativeEvent=b,this.target=w,this.currentTarget=null;for(var O in u)u.hasOwnProperty(O)&&(l=u[O],this[O]=l?l(b):b[O]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?cf:zv,this.isPropagationStopped=zv,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=cf)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=cf)},persist:function(){},isPersistent:cf}),o}var Co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ff=In(Co),Za=p({},Co,{view:0,detail:0}),AA=In(Za),vh,yh,Wa,df=p({},Za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xh,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Wa&&(Wa&&u.type==="mousemove"?(vh=u.screenX-Wa.screenX,yh=u.screenY-Wa.screenY):yh=vh=0,Wa=u),vh)},movementY:function(u){return"movementY"in u?u.movementY:yh}}),qv=In(df),wA=p({},df,{dataTransfer:0}),DA=In(wA),NA=p({},Za,{relatedTarget:0}),bh=In(NA),OA=p({},Co,{animationName:0,elapsedTime:0,pseudoElement:0}),RA=In(OA),kA=p({},Co,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),MA=In(kA),LA=p({},Co,{data:0}),Hv=In(LA),IA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FA={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"},jA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PA(u){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(u):(u=jA[u])?!!o[u]:!1}function xh(){return PA}var VA=p({},Za,{key:function(u){if(u.key){var o=IA[u.key]||u.key;if(o!=="Unidentified")return o}return u.type==="keypress"?(u=lf(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?FA[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xh,charCode:function(u){return u.type==="keypress"?lf(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?lf(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),$A=In(VA),BA=p({},df,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gv=In(BA),UA=p({},Za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xh}),zA=In(UA),qA=p({},Co,{propertyName:0,elapsedTime:0,pseudoElement:0}),HA=In(qA),GA=p({},df,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),YA=In(GA),QA=p({},Co,{newState:0,oldState:0}),XA=In(QA),ZA=[9,13,27,32],Eh=Xr&&"CompositionEvent"in window,Ka=null;Xr&&"documentMode"in document&&(Ka=document.documentMode);var WA=Xr&&"TextEvent"in window&&!Ka,Yv=Xr&&(!Eh||Ka&&8<Ka&&11>=Ka),Qv=" ",Xv=!1;function Zv(u,o){switch(u){case"keyup":return ZA.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wv(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Cs=!1;function KA(u,o){switch(u){case"compositionend":return Wv(o);case"keypress":return o.which!==32?null:(Xv=!0,Qv);case"textInput":return u=o.data,u===Qv&&Xv?null:u;default:return null}}function JA(u,o){if(Cs)return u==="compositionend"||!Eh&&Zv(u,o)?(u=Uv(),af=gh=Iu=null,Cs=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Yv&&o.locale!=="ko"?null:o.data;default:return null}}var e7={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 Kv(u){var o=u&&u.nodeName&&u.nodeName.toLowerCase();return o==="input"?!!e7[u.type]:o==="textarea"}function Jv(u,o,l,d){bn?Lu?Lu.push(d):Lu=[d]:bn=d,o=Kf(o,"onChange"),0<o.length&&(l=new ff("onChange","change",null,l,d),u.push({event:l,listeners:o}))}var Ja=null,el=null;function t7(u){M3(u,0)}function hf(u){var o=fi(u);if(Ts(o))return u}function ey(u,o){if(u==="change")return o}var ty=!1;if(Xr){var Th;if(Xr){var Sh="oninput"in document;if(!Sh){var ny=document.createElement("div");ny.setAttribute("oninput","return;"),Sh=typeof ny.oninput=="function"}Th=Sh}else Th=!1;ty=Th&&(!document.documentMode||9<document.documentMode)}function iy(){Ja&&(Ja.detachEvent("onpropertychange",ry),el=Ja=null)}function ry(u){if(u.propertyName==="value"&&hf(el)){var o=[];Jv(o,el,u,yn(u)),Bv(t7,o)}}function n7(u,o,l){u==="focusin"?(iy(),Ja=o,el=l,Ja.attachEvent("onpropertychange",ry)):u==="focusout"&&iy()}function i7(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return hf(el)}function r7(u,o){if(u==="click")return hf(o)}function u7(u,o){if(u==="input"||u==="change")return hf(o)}function o7(u,o){return u===o&&(u!==0||1/u===1/o)||u!==u&&o!==o}var Xn=typeof Object.is=="function"?Object.is:o7;function tl(u,o){if(Xn(u,o))return!0;if(typeof u!="object"||u===null||typeof o!="object"||o===null)return!1;var l=Object.keys(u),d=Object.keys(o);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var m=l[d];if(!st.call(o,m)||!Xn(u[m],o[m]))return!1}return!0}function uy(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function oy(u,o){var l=uy(u);u=0;for(var d;l;){if(l.nodeType===3){if(d=u+l.textContent.length,u<=o&&d>=o)return{node:l,offset:o-u};u=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=uy(l)}}function sy(u,o){return u&&o?u===o?!0:u&&u.nodeType===3?!1:o&&o.nodeType===3?sy(u,o.parentNode):"contains"in u?u.contains(o):u.compareDocumentPosition?!!(u.compareDocumentPosition(o)&16):!1:!1}function ay(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var o=Gr(u.document);o instanceof u.HTMLIFrameElement;){try{var l=typeof o.contentWindow.location.href=="string"}catch{l=!1}if(l)u=o.contentWindow;else break;o=Gr(u.document)}return o}function _h(u){var o=u&&u.nodeName&&u.nodeName.toLowerCase();return o&&(o==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||o==="textarea"||u.contentEditable==="true")}var s7=Xr&&"documentMode"in document&&11>=document.documentMode,As=null,Ch=null,nl=null,Ah=!1;function ly(u,o,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ah||As==null||As!==Gr(d)||(d=As,"selectionStart"in d&&_h(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),nl&&tl(nl,d)||(nl=d,d=Kf(Ch,"onSelect"),0<d.length&&(o=new ff("onSelect","select",null,o,l),u.push({event:o,listeners:d}),o.target=As)))}function Ao(u,o){var l={};return l[u.toLowerCase()]=o.toLowerCase(),l["Webkit"+u]="webkit"+o,l["Moz"+u]="moz"+o,l}var ws={animationend:Ao("Animation","AnimationEnd"),animationiteration:Ao("Animation","AnimationIteration"),animationstart:Ao("Animation","AnimationStart"),transitionrun:Ao("Transition","TransitionRun"),transitionstart:Ao("Transition","TransitionStart"),transitioncancel:Ao("Transition","TransitionCancel"),transitionend:Ao("Transition","TransitionEnd")},wh={},cy={};Xr&&(cy=document.createElement("div").style,"AnimationEvent"in window||(delete ws.animationend.animation,delete ws.animationiteration.animation,delete ws.animationstart.animation),"TransitionEvent"in window||delete ws.transitionend.transition);function wo(u){if(wh[u])return wh[u];if(!ws[u])return u;var o=ws[u],l;for(l in o)if(o.hasOwnProperty(l)&&l in cy)return wh[u]=o[l];return u}var fy=wo("animationend"),dy=wo("animationiteration"),hy=wo("animationstart"),a7=wo("transitionrun"),l7=wo("transitionstart"),c7=wo("transitioncancel"),py=wo("transitionend"),my=new Map,Dh="abort auxClick beforeToggle 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(" ");Dh.push("scrollEnd");function Ii(u,o){my.set(u,o),Ln(o,[u])}var gy=new WeakMap;function di(u,o){if(typeof u=="object"&&u!==null){var l=gy.get(u);return l!==void 0?l:(o={value:u,source:o,stack:qr(o)},gy.set(u,o),o)}return{value:u,source:o,stack:qr(o)}}var hi=[],Ds=0,Nh=0;function pf(){for(var u=Ds,o=Nh=Ds=0;o<u;){var l=hi[o];hi[o++]=null;var d=hi[o];hi[o++]=null;var m=hi[o];hi[o++]=null;var b=hi[o];if(hi[o++]=null,d!==null&&m!==null){var w=d.pending;w===null?m.next=m:(m.next=w.next,w.next=m),d.pending=m}b!==0&&vy(l,m,b)}}function mf(u,o,l,d){hi[Ds++]=u,hi[Ds++]=o,hi[Ds++]=l,hi[Ds++]=d,Nh|=d,u.lanes|=d,u=u.alternate,u!==null&&(u.lanes|=d)}function Oh(u,o,l,d){return mf(u,o,l,d),gf(u)}function Ns(u,o){return mf(u,null,null,o),gf(u)}function vy(u,o,l){u.lanes|=l;var d=u.alternate;d!==null&&(d.lanes|=l);for(var m=!1,b=u.return;b!==null;)b.childLanes|=l,d=b.alternate,d!==null&&(d.childLanes|=l),b.tag===22&&(u=b.stateNode,u===null||u._visibility&1||(m=!0)),u=b,b=b.return;return u.tag===3?(b=u.stateNode,m&&o!==null&&(m=31-Cn(l),u=b.hiddenUpdates,d=u[m],d===null?u[m]=[o]:d.push(o),o.lane=l|536870912),b):null}function gf(u){if(50<wl)throw wl=0,Fp=null,Error(i(185));for(var o=u.return;o!==null;)u=o,o=u.return;return u.tag===3?u.stateNode:null}var Os={};function f7(u,o,l,d){this.tag=u,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(u,o,l,d){return new f7(u,o,l,d)}function Rh(u){return u=u.prototype,!(!u||!u.isReactComponent)}function Zr(u,o){var l=u.alternate;return l===null?(l=Zn(u.tag,o,u.key,u.mode),l.elementType=u.elementType,l.type=u.type,l.stateNode=u.stateNode,l.alternate=u,u.alternate=l):(l.pendingProps=o,l.type=u.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=u.flags&65011712,l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,o=u.dependencies,l.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},l.sibling=u.sibling,l.index=u.index,l.ref=u.ref,l.refCleanup=u.refCleanup,l}function yy(u,o){u.flags&=65011714;var l=u.alternate;return l===null?(u.childLanes=0,u.lanes=o,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=l.childLanes,u.lanes=l.lanes,u.child=l.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=l.memoizedProps,u.memoizedState=l.memoizedState,u.updateQueue=l.updateQueue,u.type=l.type,o=l.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),u}function vf(u,o,l,d,m,b){var w=0;if(d=u,typeof u=="function")Rh(u)&&(w=1);else if(typeof u=="string")w=hw(u,l,G.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case L:return u=Zn(31,l,o,m),u.elementType=L,u.lanes=b,u;case E:return Do(l.children,m,b,o);case T:w=8,m|=24;break;case _:return u=Zn(12,l,o,m|2),u.elementType=_,u.lanes=b,u;case R:return u=Zn(13,l,o,m),u.elementType=R,u.lanes=b,u;case M:return u=Zn(19,l,o,m),u.elementType=M,u.lanes=b,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case S:case A:w=10;break e;case D:w=9;break e;case N:w=11;break e;case j:w=14;break e;case $:w=16,d=null;break e}w=29,l=Error(i(130,u===null?"null":typeof u,"")),d=null}return o=Zn(w,l,o,m),o.elementType=u,o.type=d,o.lanes=b,o}function Do(u,o,l,d){return u=Zn(7,u,d,o),u.lanes=l,u}function kh(u,o,l){return u=Zn(6,u,null,o),u.lanes=l,u}function Mh(u,o,l){return o=Zn(4,u.children!==null?u.children:[],u.key,o),o.lanes=l,o.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},o}var Rs=[],ks=0,yf=null,bf=0,pi=[],mi=0,No=null,Wr=1,Kr="";function Oo(u,o){Rs[ks++]=bf,Rs[ks++]=yf,yf=u,bf=o}function by(u,o,l){pi[mi++]=Wr,pi[mi++]=Kr,pi[mi++]=No,No=u;var d=Wr;u=Kr;var m=32-Cn(d)-1;d&=~(1<<m),l+=1;var b=32-Cn(o)+m;if(30<b){var w=m-m%5;b=(d&(1<<w)-1).toString(32),d>>=w,m-=w,Wr=1<<32-Cn(o)+m|l<<m|d,Kr=b+u}else Wr=1<<b|l<<m|d,Kr=u}function Lh(u){u.return!==null&&(Oo(u,1),by(u,1,0))}function Ih(u){for(;u===yf;)yf=Rs[--ks],Rs[ks]=null,bf=Rs[--ks],Rs[ks]=null;for(;u===No;)No=pi[--mi],pi[mi]=null,Kr=pi[--mi],pi[mi]=null,Wr=pi[--mi],pi[mi]=null}var wn=null,At=null,Ke=!1,Ro=null,fr=!1,Fh=Error(i(519));function ko(u){var o=Error(i(418,""));throw ul(di(o,u)),Fh}function xy(u){var o=u.stateNode,l=u.type,d=u.memoizedProps;switch(o[Wt]=u,o[Ot]=d,l){case"dialog":$e("cancel",o),$e("close",o);break;case"iframe":case"object":case"embed":$e("load",o);break;case"video":case"audio":for(l=0;l<Nl.length;l++)$e(Nl[l],o);break;case"source":$e("error",o);break;case"img":case"image":case"link":$e("error",o),$e("load",o);break;case"details":$e("toggle",o);break;case"input":$e("invalid",o),So(o,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0),Li(o);break;case"select":$e("invalid",o);break;case"textarea":$e("invalid",o),Ss(o,d.value,d.defaultValue,d.children),Li(o)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||o.textContent===""+l||d.suppressHydrationWarning===!0||j3(o.textContent,l)?(d.popover!=null&&($e("beforetoggle",o),$e("toggle",o)),d.onScroll!=null&&$e("scroll",o),d.onScrollEnd!=null&&$e("scrollend",o),d.onClick!=null&&(o.onclick=Jf),o=!0):o=!1,o||ko(u)}function Ey(u){for(wn=u.return;wn;)switch(wn.tag){case 5:case 13:fr=!1;return;case 27:case 3:fr=!0;return;default:wn=wn.return}}function il(u){if(u!==wn)return!1;if(!Ke)return Ey(u),Ke=!0,!1;var o=u.tag,l;if((l=o!==3&&o!==27)&&((l=o===5)&&(l=u.type,l=!(l!=="form"&&l!=="button")||Kp(u.type,u.memoizedProps)),l=!l),l&&At&&ko(u),Ey(u),o===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));e:{for(u=u.nextSibling,o=0;u;){if(u.nodeType===8)if(l=u.data,l==="/$"){if(o===0){At=ji(u.nextSibling);break e}o--}else l!=="$"&&l!=="$!"&&l!=="$?"||o++;u=u.nextSibling}At=null}}else o===27?(o=At,Wu(u.type)?(u=n1,n1=null,At=u):At=o):At=wn?ji(u.stateNode.nextSibling):null;return!0}function rl(){At=wn=null,Ke=!1}function Ty(){var u=Ro;return u!==null&&(Pn===null?Pn=u:Pn.push.apply(Pn,u),Ro=null),u}function ul(u){Ro===null?Ro=[u]:Ro.push(u)}var jh=H(null),Mo=null,Jr=null;function Fu(u,o,l){ie(jh,o._currentValue),o._currentValue=l}function eu(u){u._currentValue=jh.current,oe(jh)}function Ph(u,o,l){for(;u!==null;){var d=u.alternate;if((u.childLanes&o)!==o?(u.childLanes|=o,d!==null&&(d.childLanes|=o)):d!==null&&(d.childLanes&o)!==o&&(d.childLanes|=o),u===l)break;u=u.return}}function Vh(u,o,l,d){var m=u.child;for(m!==null&&(m.return=u);m!==null;){var b=m.dependencies;if(b!==null){var w=m.child;b=b.firstContext;e:for(;b!==null;){var O=b;b=m;for(var F=0;F<o.length;F++)if(O.context===o[F]){b.lanes|=l,O=b.alternate,O!==null&&(O.lanes|=l),Ph(b.return,l,u),d||(w=null);break e}b=O.next}}else if(m.tag===18){if(w=m.return,w===null)throw Error(i(341));w.lanes|=l,b=w.alternate,b!==null&&(b.lanes|=l),Ph(w,l,u),w=null}else w=m.child;if(w!==null)w.return=m;else for(w=m;w!==null;){if(w===u){w=null;break}if(m=w.sibling,m!==null){m.return=w.return,w=m;break}w=w.return}m=w}}function ol(u,o,l,d){u=null;for(var m=o,b=!1;m!==null;){if(!b){if((m.flags&524288)!==0)b=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var w=m.alternate;if(w===null)throw Error(i(387));if(w=w.memoizedProps,w!==null){var O=m.type;Xn(m.pendingProps.value,w.value)||(u!==null?u.push(O):u=[O])}}else if(m===fe.current){if(w=m.alternate,w===null)throw Error(i(387));w.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(u!==null?u.push(Il):u=[Il])}m=m.return}u!==null&&Vh(o,u,l,d),o.flags|=262144}function xf(u){for(u=u.firstContext;u!==null;){if(!Xn(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function Lo(u){Mo=u,Jr=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function xn(u){return Sy(Mo,u)}function Ef(u,o){return Mo===null&&Lo(u),Sy(u,o)}function Sy(u,o){var l=o._currentValue;if(o={context:o,memoizedValue:l,next:null},Jr===null){if(u===null)throw Error(i(308));Jr=o,u.dependencies={lanes:0,firstContext:o},u.flags|=524288}else Jr=Jr.next=o;return l}var d7=typeof AbortController<"u"?AbortController:function(){var u=[],o=this.signal={aborted:!1,addEventListener:function(l,d){u.push(d)}};this.abort=function(){o.aborted=!0,u.forEach(function(l){return l()})}},h7=e.unstable_scheduleCallback,p7=e.unstable_NormalPriority,Gt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $h(){return{controller:new d7,data:new Map,refCount:0}}function sl(u){u.refCount--,u.refCount===0&&h7(p7,function(){u.controller.abort()})}var al=null,Bh=0,Ms=0,Ls=null;function m7(u,o){if(al===null){var l=al=[];Bh=0,Ms=zp(),Ls={status:"pending",value:void 0,then:function(d){l.push(d)}}}return Bh++,o.then(_y,_y),o}function _y(){if(--Bh===0&&al!==null){Ls!==null&&(Ls.status="fulfilled");var u=al;al=null,Ms=0,Ls=null;for(var o=0;o<u.length;o++)(0,u[o])()}}function g7(u,o){var l=[],d={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return u.then(function(){d.status="fulfilled",d.value=o;for(var m=0;m<l.length;m++)(0,l[m])(o)},function(m){for(d.status="rejected",d.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),d}var Cy=I.S;I.S=function(u,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&m7(u,o),Cy!==null&&Cy(u,o)};var Io=H(null);function Uh(){var u=Io.current;return u!==null?u:ht.pooledCache}function Tf(u,o){o===null?ie(Io,Io.current):ie(Io,o.pool)}function Ay(){var u=Uh();return u===null?null:{parent:Gt._currentValue,pool:u}}var ll=Error(i(460)),wy=Error(i(474)),Sf=Error(i(542)),zh={then:function(){}};function Dy(u){return u=u.status,u==="fulfilled"||u==="rejected"}function _f(){}function Ny(u,o,l){switch(l=u[l],l===void 0?u.push(o):l!==o&&(o.then(_f,_f),o=l),o.status){case"fulfilled":return o.value;case"rejected":throw u=o.reason,Ry(u),u;default:if(typeof o.status=="string")o.then(_f,_f);else{if(u=ht,u!==null&&100<u.shellSuspendCounter)throw Error(i(482));u=o,u.status="pending",u.then(function(d){if(o.status==="pending"){var m=o;m.status="fulfilled",m.value=d}},function(d){if(o.status==="pending"){var m=o;m.status="rejected",m.reason=d}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw u=o.reason,Ry(u),u}throw cl=o,ll}}var cl=null;function Oy(){if(cl===null)throw Error(i(459));var u=cl;return cl=null,u}function Ry(u){if(u===ll||u===Sf)throw Error(i(483))}var ju=!1;function qh(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hh(u,o){u=u.updateQueue,o.updateQueue===u&&(o.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function Pu(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function Vu(u,o,l){var d=u.updateQueue;if(d===null)return null;if(d=d.shared,(nt&2)!==0){var m=d.pending;return m===null?o.next=o:(o.next=m.next,m.next=o),d.pending=o,o=gf(u),vy(u,null,l),o}return mf(u,d,o,l),gf(u)}function fl(u,o,l){if(o=o.updateQueue,o!==null&&(o=o.shared,(l&4194048)!==0)){var d=o.lanes;d&=u.pendingLanes,l|=d,o.lanes=l,xo(u,l)}}function Gh(u,o){var l=u.updateQueue,d=u.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var m=null,b=null;if(l=l.firstBaseUpdate,l!==null){do{var w={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};b===null?m=b=w:b=b.next=w,l=l.next}while(l!==null);b===null?m=b=o:b=b.next=o}else m=b=o;l={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:b,shared:d.shared,callbacks:d.callbacks},u.updateQueue=l;return}u=l.lastBaseUpdate,u===null?l.firstBaseUpdate=o:u.next=o,l.lastBaseUpdate=o}var Yh=!1;function dl(){if(Yh){var u=Ls;if(u!==null)throw u}}function hl(u,o,l,d){Yh=!1;var m=u.updateQueue;ju=!1;var b=m.firstBaseUpdate,w=m.lastBaseUpdate,O=m.shared.pending;if(O!==null){m.shared.pending=null;var F=O,X=F.next;F.next=null,w===null?b=X:w.next=X,w=F;var ue=u.alternate;ue!==null&&(ue=ue.updateQueue,O=ue.lastBaseUpdate,O!==w&&(O===null?ue.firstBaseUpdate=X:O.next=X,ue.lastBaseUpdate=F))}if(b!==null){var ce=m.baseState;w=0,ue=X=F=null,O=b;do{var J=O.lane&-536870913,ee=J!==O.lane;if(ee?(Ye&J)===J:(d&J)===J){J!==0&&J===Ms&&(Yh=!0),ue!==null&&(ue=ue.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var Ne=u,Ae=O;J=o;var ot=l;switch(Ae.tag){case 1:if(Ne=Ae.payload,typeof Ne=="function"){ce=Ne.call(ot,ce,J);break e}ce=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Ae.payload,J=typeof Ne=="function"?Ne.call(ot,ce,J):Ne,J==null)break e;ce=p({},ce,J);break e;case 2:ju=!0}}J=O.callback,J!==null&&(u.flags|=64,ee&&(u.flags|=8192),ee=m.callbacks,ee===null?m.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ue===null?(X=ue=ee,F=ce):ue=ue.next=ee,w|=J;if(O=O.next,O===null){if(O=m.shared.pending,O===null)break;ee=O,O=ee.next,ee.next=null,m.lastBaseUpdate=ee,m.shared.pending=null}}while(!0);ue===null&&(F=ce),m.baseState=F,m.firstBaseUpdate=X,m.lastBaseUpdate=ue,b===null&&(m.shared.lanes=0),Yu|=w,u.lanes=w,u.memoizedState=ce}}function ky(u,o){if(typeof u!="function")throw Error(i(191,u));u.call(o)}function My(u,o){var l=u.callbacks;if(l!==null)for(u.callbacks=null,u=0;u<l.length;u++)ky(l[u],o)}var Is=H(null),Cf=H(0);function Ly(u,o){u=su,ie(Cf,u),ie(Is,o),su=u|o.baseLanes}function Qh(){ie(Cf,su),ie(Is,Is.current)}function Xh(){su=Cf.current,oe(Is),oe(Cf)}var $u=0,je=null,rt=null,Vt=null,Af=!1,Fs=!1,Fo=!1,wf=0,pl=0,js=null,v7=0;function Rt(){throw Error(i(321))}function Zh(u,o){if(o===null)return!1;for(var l=0;l<o.length&&l<u.length;l++)if(!Xn(u[l],o[l]))return!1;return!0}function Wh(u,o,l,d,m,b){return $u=b,je=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,I.H=u===null||u.memoizedState===null?vb:yb,Fo=!1,b=l(d,m),Fo=!1,Fs&&(b=Fy(o,l,d,m)),Iy(u),b}function Iy(u){I.H=Mf;var o=rt!==null&&rt.next!==null;if($u=0,Vt=rt=je=null,Af=!1,pl=0,js=null,o)throw Error(i(300));u===null||Kt||(u=u.dependencies,u!==null&&xf(u)&&(Kt=!0))}function Fy(u,o,l,d){je=u;var m=0;do{if(Fs&&(js=null),pl=0,Fs=!1,25<=m)throw Error(i(301));if(m+=1,Vt=rt=null,u.updateQueue!=null){var b=u.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}I.H=_7,b=o(l,d)}while(Fs);return b}function y7(){var u=I.H,o=u.useState()[0];return o=typeof o.then=="function"?ml(o):o,u=u.useState()[0],(rt!==null?rt.memoizedState:null)!==u&&(je.flags|=1024),o}function Kh(){var u=wf!==0;return wf=0,u}function Jh(u,o,l){o.updateQueue=u.updateQueue,o.flags&=-2053,u.lanes&=~l}function ep(u){if(Af){for(u=u.memoizedState;u!==null;){var o=u.queue;o!==null&&(o.pending=null),u=u.next}Af=!1}$u=0,Vt=rt=je=null,Fs=!1,pl=wf=0,js=null}function Fn(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?je.memoizedState=Vt=u:Vt=Vt.next=u,Vt}function $t(){if(rt===null){var u=je.alternate;u=u!==null?u.memoizedState:null}else u=rt.next;var o=Vt===null?je.memoizedState:Vt.next;if(o!==null)Vt=o,rt=u;else{if(u===null)throw je.alternate===null?Error(i(467)):Error(i(310));rt=u,u={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Vt===null?je.memoizedState=Vt=u:Vt=Vt.next=u}return Vt}function tp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ml(u){var o=pl;return pl+=1,js===null&&(js=[]),u=Ny(js,u,o),o=je,(Vt===null?o.memoizedState:Vt.next)===null&&(o=o.alternate,I.H=o===null||o.memoizedState===null?vb:yb),u}function Df(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return ml(u);if(u.$$typeof===A)return xn(u)}throw Error(i(438,String(u)))}function np(u){var o=null,l=je.updateQueue;if(l!==null&&(o=l.memoCache),o==null){var d=je.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(o={data:d.data.map(function(m){return m.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),l===null&&(l=tp(),je.updateQueue=l),l.memoCache=o,l=o.data[o.index],l===void 0)for(l=o.data[o.index]=Array(u),d=0;d<u;d++)l[d]=U;return o.index++,l}function tu(u,o){return typeof o=="function"?o(u):o}function Nf(u){var o=$t();return ip(o,rt,u)}function ip(u,o,l){var d=u.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=l;var m=u.baseQueue,b=d.pending;if(b!==null){if(m!==null){var w=m.next;m.next=b.next,b.next=w}o.baseQueue=m=b,d.pending=null}if(b=u.baseState,m===null)u.memoizedState=b;else{o=m.next;var O=w=null,F=null,X=o,ue=!1;do{var ce=X.lane&-536870913;if(ce!==X.lane?(Ye&ce)===ce:($u&ce)===ce){var J=X.revertLane;if(J===0)F!==null&&(F=F.next={lane:0,revertLane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),ce===Ms&&(ue=!0);else if(($u&J)===J){X=X.next,J===Ms&&(ue=!0);continue}else ce={lane:0,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},F===null?(O=F=ce,w=b):F=F.next=ce,je.lanes|=J,Yu|=J;ce=X.action,Fo&&l(b,ce),b=X.hasEagerState?X.eagerState:l(b,ce)}else J={lane:ce,revertLane:X.revertLane,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null},F===null?(O=F=J,w=b):F=F.next=J,je.lanes|=ce,Yu|=ce;X=X.next}while(X!==null&&X!==o);if(F===null?w=b:F.next=O,!Xn(b,u.memoizedState)&&(Kt=!0,ue&&(l=Ls,l!==null)))throw l;u.memoizedState=b,u.baseState=w,u.baseQueue=F,d.lastRenderedState=b}return m===null&&(d.lanes=0),[u.memoizedState,d.dispatch]}function rp(u){var o=$t(),l=o.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=u;var d=l.dispatch,m=l.pending,b=o.memoizedState;if(m!==null){l.pending=null;var w=m=m.next;do b=u(b,w.action),w=w.next;while(w!==m);Xn(b,o.memoizedState)||(Kt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),l.lastRenderedState=b}return[b,d]}function jy(u,o,l){var d=je,m=$t(),b=Ke;if(b){if(l===void 0)throw Error(i(407));l=l()}else l=o();var w=!Xn((rt||m).memoizedState,l);w&&(m.memoizedState=l,Kt=!0),m=m.queue;var O=$y.bind(null,d,m,u);if(gl(2048,8,O,[u]),m.getSnapshot!==o||w||Vt!==null&&Vt.memoizedState.tag&1){if(d.flags|=2048,Ps(9,Of(),Vy.bind(null,d,m,l,o),null),ht===null)throw Error(i(349));b||($u&124)!==0||Py(d,o,l)}return l}function Py(u,o,l){u.flags|=16384,u={getSnapshot:o,value:l},o=je.updateQueue,o===null?(o=tp(),je.updateQueue=o,o.stores=[u]):(l=o.stores,l===null?o.stores=[u]:l.push(u))}function Vy(u,o,l,d){o.value=l,o.getSnapshot=d,By(o)&&Uy(u)}function $y(u,o,l){return l(function(){By(o)&&Uy(u)})}function By(u){var o=u.getSnapshot;u=u.value;try{var l=o();return!Xn(u,l)}catch{return!0}}function Uy(u){var o=Ns(u,2);o!==null&&ti(o,u,2)}function up(u){var o=Fn();if(typeof u=="function"){var l=u;if(u=l(),Fo){zn(!0);try{l()}finally{zn(!1)}}}return o.memoizedState=o.baseState=u,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tu,lastRenderedState:u},o}function zy(u,o,l,d){return u.baseState=l,ip(u,rt,typeof d=="function"?d:tu)}function b7(u,o,l,d,m){if(kf(u))throw Error(i(485));if(u=o.action,u!==null){var b={payload:m,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){b.listeners.push(w)}};I.T!==null?l(!0):b.isTransition=!1,d(b),l=o.pending,l===null?(b.next=o.pending=b,qy(o,b)):(b.next=l.next,o.pending=l.next=b)}}function qy(u,o){var l=o.action,d=o.payload,m=u.state;if(o.isTransition){var b=I.T,w={};I.T=w;try{var O=l(m,d),F=I.S;F!==null&&F(w,O),Hy(u,o,O)}catch(X){op(u,o,X)}finally{I.T=b}}else try{b=l(m,d),Hy(u,o,b)}catch(X){op(u,o,X)}}function Hy(u,o,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(d){Gy(u,o,d)},function(d){return op(u,o,d)}):Gy(u,o,l)}function Gy(u,o,l){o.status="fulfilled",o.value=l,Yy(o),u.state=l,o=u.pending,o!==null&&(l=o.next,l===o?u.pending=null:(l=l.next,o.next=l,qy(u,l)))}function op(u,o,l){var d=u.pending;if(u.pending=null,d!==null){d=d.next;do o.status="rejected",o.reason=l,Yy(o),o=o.next;while(o!==d)}u.action=null}function Yy(u){u=u.listeners;for(var o=0;o<u.length;o++)(0,u[o])()}function Qy(u,o){return o}function Xy(u,o){if(Ke){var l=ht.formState;if(l!==null){e:{var d=je;if(Ke){if(At){t:{for(var m=At,b=fr;m.nodeType!==8;){if(!b){m=null;break t}if(m=ji(m.nextSibling),m===null){m=null;break t}}b=m.data,m=b==="F!"||b==="F"?m:null}if(m){At=ji(m.nextSibling),d=m.data==="F!";break e}}ko(d)}d=!1}d&&(o=l[0])}}return l=Fn(),l.memoizedState=l.baseState=o,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qy,lastRenderedState:o},l.queue=d,l=pb.bind(null,je,d),d.dispatch=l,d=up(!1),b=fp.bind(null,je,!1,d.queue),d=Fn(),m={state:o,dispatch:null,action:u,pending:null},d.queue=m,l=b7.bind(null,je,m,b,l),m.dispatch=l,d.memoizedState=u,[o,l,!1]}function Zy(u){var o=$t();return Wy(o,rt,u)}function Wy(u,o,l){if(o=ip(u,o,Qy)[0],u=Nf(tu)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var d=ml(o)}catch(w){throw w===ll?Sf:w}else d=o;o=$t();var m=o.queue,b=m.dispatch;return l!==o.memoizedState&&(je.flags|=2048,Ps(9,Of(),x7.bind(null,m,l),null)),[d,b,u]}function x7(u,o){u.action=o}function Ky(u){var o=$t(),l=rt;if(l!==null)return Wy(o,l,u);$t(),o=o.memoizedState,l=$t();var d=l.queue.dispatch;return l.memoizedState=u,[o,d,!1]}function Ps(u,o,l,d){return u={tag:u,create:l,deps:d,inst:o,next:null},o=je.updateQueue,o===null&&(o=tp(),je.updateQueue=o),l=o.lastEffect,l===null?o.lastEffect=u.next=u:(d=l.next,l.next=u,u.next=d,o.lastEffect=u),u}function Of(){return{destroy:void 0,resource:void 0}}function Jy(){return $t().memoizedState}function Rf(u,o,l,d){var m=Fn();d=d===void 0?null:d,je.flags|=u,m.memoizedState=Ps(1|o,Of(),l,d)}function gl(u,o,l,d){var m=$t();d=d===void 0?null:d;var b=m.memoizedState.inst;rt!==null&&d!==null&&Zh(d,rt.memoizedState.deps)?m.memoizedState=Ps(o,b,l,d):(je.flags|=u,m.memoizedState=Ps(1|o,b,l,d))}function eb(u,o){Rf(8390656,8,u,o)}function tb(u,o){gl(2048,8,u,o)}function nb(u,o){return gl(4,2,u,o)}function ib(u,o){return gl(4,4,u,o)}function rb(u,o){if(typeof o=="function"){u=u();var l=o(u);return function(){typeof l=="function"?l():o(null)}}if(o!=null)return u=u(),o.current=u,function(){o.current=null}}function ub(u,o,l){l=l!=null?l.concat([u]):null,gl(4,4,rb.bind(null,o,u),l)}function sp(){}function ob(u,o){var l=$t();o=o===void 0?null:o;var d=l.memoizedState;return o!==null&&Zh(o,d[1])?d[0]:(l.memoizedState=[u,o],u)}function sb(u,o){var l=$t();o=o===void 0?null:o;var d=l.memoizedState;if(o!==null&&Zh(o,d[1]))return d[0];if(d=u(),Fo){zn(!0);try{u()}finally{zn(!1)}}return l.memoizedState=[d,o],d}function ap(u,o,l){return l===void 0||($u&1073741824)!==0?u.memoizedState=o:(u.memoizedState=l,u=c3(),je.lanes|=u,Yu|=u,l)}function ab(u,o,l,d){return Xn(l,o)?l:Is.current!==null?(u=ap(u,l,d),Xn(u,o)||(Kt=!0),u):($u&42)===0?(Kt=!0,u.memoizedState=l):(u=c3(),je.lanes|=u,Yu|=u,o)}function lb(u,o,l,d,m){var b=z.p;z.p=b!==0&&8>b?b:8;var w=I.T,O={};I.T=O,fp(u,!1,o,l);try{var F=m(),X=I.S;if(X!==null&&X(O,F),F!==null&&typeof F=="object"&&typeof F.then=="function"){var ue=g7(F,d);vl(u,o,ue,ei(u))}else vl(u,o,d,ei(u))}catch(ce){vl(u,o,{then:function(){},status:"rejected",reason:ce},ei())}finally{z.p=b,I.T=w}}function E7(){}function lp(u,o,l,d){if(u.tag!==5)throw Error(i(476));var m=cb(u).queue;lb(u,m,o,P,l===null?E7:function(){return fb(u),l(d)})}function cb(u){var o=u.memoizedState;if(o!==null)return o;o={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tu,lastRenderedState:P},next:null};var l={};return o.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tu,lastRenderedState:l},next:null},u.memoizedState=o,u=u.alternate,u!==null&&(u.memoizedState=o),o}function fb(u){var o=cb(u).next.queue;vl(u,o,{},ei())}function cp(){return xn(Il)}function db(){return $t().memoizedState}function hb(){return $t().memoizedState}function T7(u){for(var o=u.return;o!==null;){switch(o.tag){case 24:case 3:var l=ei();u=Pu(l);var d=Vu(o,u,l);d!==null&&(ti(d,o,l),fl(d,o,l)),o={cache:$h()},u.payload=o;return}o=o.return}}function S7(u,o,l){var d=ei();l={lane:d,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},kf(u)?mb(o,l):(l=Oh(u,o,l,d),l!==null&&(ti(l,u,d),gb(l,o,d)))}function pb(u,o,l){var d=ei();vl(u,o,l,d)}function vl(u,o,l,d){var m={lane:d,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(kf(u))mb(o,m);else{var b=u.alternate;if(u.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var w=o.lastRenderedState,O=b(w,l);if(m.hasEagerState=!0,m.eagerState=O,Xn(O,w))return mf(u,o,m,0),ht===null&&pf(),!1}catch{}finally{}if(l=Oh(u,o,m,d),l!==null)return ti(l,u,d),gb(l,o,d),!0}return!1}function fp(u,o,l,d){if(d={lane:2,revertLane:zp(),action:d,hasEagerState:!1,eagerState:null,next:null},kf(u)){if(o)throw Error(i(479))}else o=Oh(u,l,d,2),o!==null&&ti(o,u,2)}function kf(u){var o=u.alternate;return u===je||o!==null&&o===je}function mb(u,o){Fs=Af=!0;var l=u.pending;l===null?o.next=o:(o.next=l.next,l.next=o),u.pending=o}function gb(u,o,l){if((l&4194048)!==0){var d=o.lanes;d&=u.pendingLanes,l|=d,o.lanes=l,xo(u,l)}}var Mf={readContext:xn,use:Df,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt},vb={readContext:xn,use:Df,useCallback:function(u,o){return Fn().memoizedState=[u,o===void 0?null:o],u},useContext:xn,useEffect:eb,useImperativeHandle:function(u,o,l){l=l!=null?l.concat([u]):null,Rf(4194308,4,rb.bind(null,o,u),l)},useLayoutEffect:function(u,o){return Rf(4194308,4,u,o)},useInsertionEffect:function(u,o){Rf(4,2,u,o)},useMemo:function(u,o){var l=Fn();o=o===void 0?null:o;var d=u();if(Fo){zn(!0);try{u()}finally{zn(!1)}}return l.memoizedState=[d,o],d},useReducer:function(u,o,l){var d=Fn();if(l!==void 0){var m=l(o);if(Fo){zn(!0);try{l(o)}finally{zn(!1)}}}else m=o;return d.memoizedState=d.baseState=m,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:m},d.queue=u,u=u.dispatch=S7.bind(null,je,u),[d.memoizedState,u]},useRef:function(u){var o=Fn();return u={current:u},o.memoizedState=u},useState:function(u){u=up(u);var o=u.queue,l=pb.bind(null,je,o);return o.dispatch=l,[u.memoizedState,l]},useDebugValue:sp,useDeferredValue:function(u,o){var l=Fn();return ap(l,u,o)},useTransition:function(){var u=up(!1);return u=lb.bind(null,je,u.queue,!0,!1),Fn().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,o,l){var d=je,m=Fn();if(Ke){if(l===void 0)throw Error(i(407));l=l()}else{if(l=o(),ht===null)throw Error(i(349));(Ye&124)!==0||Py(d,o,l)}m.memoizedState=l;var b={value:l,getSnapshot:o};return m.queue=b,eb($y.bind(null,d,b,u),[u]),d.flags|=2048,Ps(9,Of(),Vy.bind(null,d,b,l,o),null),l},useId:function(){var u=Fn(),o=ht.identifierPrefix;if(Ke){var l=Kr,d=Wr;l=(d&~(1<<32-Cn(d)-1)).toString(32)+l,o="«"+o+"R"+l,l=wf++,0<l&&(o+="H"+l.toString(32)),o+="»"}else l=v7++,o="«"+o+"r"+l.toString(32)+"»";return u.memoizedState=o},useHostTransitionStatus:cp,useFormState:Xy,useActionState:Xy,useOptimistic:function(u){var o=Fn();o.memoizedState=o.baseState=u;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=l,o=fp.bind(null,je,!0,l),l.dispatch=o,[u,o]},useMemoCache:np,useCacheRefresh:function(){return Fn().memoizedState=T7.bind(null,je)}},yb={readContext:xn,use:Df,useCallback:ob,useContext:xn,useEffect:tb,useImperativeHandle:ub,useInsertionEffect:nb,useLayoutEffect:ib,useMemo:sb,useReducer:Nf,useRef:Jy,useState:function(){return Nf(tu)},useDebugValue:sp,useDeferredValue:function(u,o){var l=$t();return ab(l,rt.memoizedState,u,o)},useTransition:function(){var u=Nf(tu)[0],o=$t().memoizedState;return[typeof u=="boolean"?u:ml(u),o]},useSyncExternalStore:jy,useId:db,useHostTransitionStatus:cp,useFormState:Zy,useActionState:Zy,useOptimistic:function(u,o){var l=$t();return zy(l,rt,u,o)},useMemoCache:np,useCacheRefresh:hb},_7={readContext:xn,use:Df,useCallback:ob,useContext:xn,useEffect:tb,useImperativeHandle:ub,useInsertionEffect:nb,useLayoutEffect:ib,useMemo:sb,useReducer:rp,useRef:Jy,useState:function(){return rp(tu)},useDebugValue:sp,useDeferredValue:function(u,o){var l=$t();return rt===null?ap(l,u,o):ab(l,rt.memoizedState,u,o)},useTransition:function(){var u=rp(tu)[0],o=$t().memoizedState;return[typeof u=="boolean"?u:ml(u),o]},useSyncExternalStore:jy,useId:db,useHostTransitionStatus:cp,useFormState:Ky,useActionState:Ky,useOptimistic:function(u,o){var l=$t();return rt!==null?zy(l,rt,u,o):(l.baseState=u,[u,l.queue.dispatch])},useMemoCache:np,useCacheRefresh:hb},Vs=null,yl=0;function Lf(u){var o=yl;return yl+=1,Vs===null&&(Vs=[]),Ny(Vs,u,o)}function bl(u,o){o=o.props.ref,u.ref=o!==void 0?o:null}function If(u,o){throw o.$$typeof===g?Error(i(525)):(u=Object.prototype.toString.call(o),Error(i(31,u==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":u)))}function bb(u){var o=u._init;return o(u._payload)}function xb(u){function o(q,B){if(u){var Q=q.deletions;Q===null?(q.deletions=[B],q.flags|=16):Q.push(B)}}function l(q,B){if(!u)return null;for(;B!==null;)o(q,B),B=B.sibling;return null}function d(q){for(var B=new Map;q!==null;)q.key!==null?B.set(q.key,q):B.set(q.index,q),q=q.sibling;return B}function m(q,B){return q=Zr(q,B),q.index=0,q.sibling=null,q}function b(q,B,Q){return q.index=Q,u?(Q=q.alternate,Q!==null?(Q=Q.index,Q<B?(q.flags|=67108866,B):Q):(q.flags|=67108866,B)):(q.flags|=1048576,B)}function w(q){return u&&q.alternate===null&&(q.flags|=67108866),q}function O(q,B,Q,ae){return B===null||B.tag!==6?(B=kh(Q,q.mode,ae),B.return=q,B):(B=m(B,Q),B.return=q,B)}function F(q,B,Q,ae){var ve=Q.type;return ve===E?ue(q,B,Q.props.children,ae,Q.key):B!==null&&(B.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===$&&bb(ve)===B.type)?(B=m(B,Q.props),bl(B,Q),B.return=q,B):(B=vf(Q.type,Q.key,Q.props,null,q.mode,ae),bl(B,Q),B.return=q,B)}function X(q,B,Q,ae){return B===null||B.tag!==4||B.stateNode.containerInfo!==Q.containerInfo||B.stateNode.implementation!==Q.implementation?(B=Mh(Q,q.mode,ae),B.return=q,B):(B=m(B,Q.children||[]),B.return=q,B)}function ue(q,B,Q,ae,ve){return B===null||B.tag!==7?(B=Do(Q,q.mode,ae,ve),B.return=q,B):(B=m(B,Q),B.return=q,B)}function ce(q,B,Q){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=kh(""+B,q.mode,Q),B.return=q,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case v:return Q=vf(B.type,B.key,B.props,null,q.mode,Q),bl(Q,B),Q.return=q,Q;case y:return B=Mh(B,q.mode,Q),B.return=q,B;case $:var ae=B._init;return B=ae(B._payload),ce(q,B,Q)}if(te(B)||K(B))return B=Do(B,q.mode,Q,null),B.return=q,B;if(typeof B.then=="function")return ce(q,Lf(B),Q);if(B.$$typeof===A)return ce(q,Ef(q,B),Q);If(q,B)}return null}function J(q,B,Q,ae){var ve=B!==null?B.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return ve!==null?null:O(q,B,""+Q,ae);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case v:return Q.key===ve?F(q,B,Q,ae):null;case y:return Q.key===ve?X(q,B,Q,ae):null;case $:return ve=Q._init,Q=ve(Q._payload),J(q,B,Q,ae)}if(te(Q)||K(Q))return ve!==null?null:ue(q,B,Q,ae,null);if(typeof Q.then=="function")return J(q,B,Lf(Q),ae);if(Q.$$typeof===A)return J(q,B,Ef(q,Q),ae);If(q,Q)}return null}function ee(q,B,Q,ae,ve){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return q=q.get(Q)||null,O(B,q,""+ae,ve);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case v:return q=q.get(ae.key===null?Q:ae.key)||null,F(B,q,ae,ve);case y:return q=q.get(ae.key===null?Q:ae.key)||null,X(B,q,ae,ve);case $:var Pe=ae._init;return ae=Pe(ae._payload),ee(q,B,Q,ae,ve)}if(te(ae)||K(ae))return q=q.get(Q)||null,ue(B,q,ae,ve,null);if(typeof ae.then=="function")return ee(q,B,Q,Lf(ae),ve);if(ae.$$typeof===A)return ee(q,B,Q,Ef(B,ae),ve);If(B,ae)}return null}function Ne(q,B,Q,ae){for(var ve=null,Pe=null,Ee=B,we=B=0,en=null;Ee!==null&&we<Q.length;we++){Ee.index>we?(en=Ee,Ee=null):en=Ee.sibling;var Ze=J(q,Ee,Q[we],ae);if(Ze===null){Ee===null&&(Ee=en);break}u&&Ee&&Ze.alternate===null&&o(q,Ee),B=b(Ze,B,we),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze,Ee=en}if(we===Q.length)return l(q,Ee),Ke&&Oo(q,we),ve;if(Ee===null){for(;we<Q.length;we++)Ee=ce(q,Q[we],ae),Ee!==null&&(B=b(Ee,B,we),Pe===null?ve=Ee:Pe.sibling=Ee,Pe=Ee);return Ke&&Oo(q,we),ve}for(Ee=d(Ee);we<Q.length;we++)en=ee(Ee,q,we,Q[we],ae),en!==null&&(u&&en.alternate!==null&&Ee.delete(en.key===null?we:en.key),B=b(en,B,we),Pe===null?ve=en:Pe.sibling=en,Pe=en);return u&&Ee.forEach(function(no){return o(q,no)}),Ke&&Oo(q,we),ve}function Ae(q,B,Q,ae){if(Q==null)throw Error(i(151));for(var ve=null,Pe=null,Ee=B,we=B=0,en=null,Ze=Q.next();Ee!==null&&!Ze.done;we++,Ze=Q.next()){Ee.index>we?(en=Ee,Ee=null):en=Ee.sibling;var no=J(q,Ee,Ze.value,ae);if(no===null){Ee===null&&(Ee=en);break}u&&Ee&&no.alternate===null&&o(q,Ee),B=b(no,B,we),Pe===null?ve=no:Pe.sibling=no,Pe=no,Ee=en}if(Ze.done)return l(q,Ee),Ke&&Oo(q,we),ve;if(Ee===null){for(;!Ze.done;we++,Ze=Q.next())Ze=ce(q,Ze.value,ae),Ze!==null&&(B=b(Ze,B,we),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze);return Ke&&Oo(q,we),ve}for(Ee=d(Ee);!Ze.done;we++,Ze=Q.next())Ze=ee(Ee,q,we,Ze.value,ae),Ze!==null&&(u&&Ze.alternate!==null&&Ee.delete(Ze.key===null?we:Ze.key),B=b(Ze,B,we),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze);return u&&Ee.forEach(function(Cw){return o(q,Cw)}),Ke&&Oo(q,we),ve}function ot(q,B,Q,ae){if(typeof Q=="object"&&Q!==null&&Q.type===E&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case v:e:{for(var ve=Q.key;B!==null;){if(B.key===ve){if(ve=Q.type,ve===E){if(B.tag===7){l(q,B.sibling),ae=m(B,Q.props.children),ae.return=q,q=ae;break e}}else if(B.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===$&&bb(ve)===B.type){l(q,B.sibling),ae=m(B,Q.props),bl(ae,Q),ae.return=q,q=ae;break e}l(q,B);break}else o(q,B);B=B.sibling}Q.type===E?(ae=Do(Q.props.children,q.mode,ae,Q.key),ae.return=q,q=ae):(ae=vf(Q.type,Q.key,Q.props,null,q.mode,ae),bl(ae,Q),ae.return=q,q=ae)}return w(q);case y:e:{for(ve=Q.key;B!==null;){if(B.key===ve)if(B.tag===4&&B.stateNode.containerInfo===Q.containerInfo&&B.stateNode.implementation===Q.implementation){l(q,B.sibling),ae=m(B,Q.children||[]),ae.return=q,q=ae;break e}else{l(q,B);break}else o(q,B);B=B.sibling}ae=Mh(Q,q.mode,ae),ae.return=q,q=ae}return w(q);case $:return ve=Q._init,Q=ve(Q._payload),ot(q,B,Q,ae)}if(te(Q))return Ne(q,B,Q,ae);if(K(Q)){if(ve=K(Q),typeof ve!="function")throw Error(i(150));return Q=ve.call(Q),Ae(q,B,Q,ae)}if(typeof Q.then=="function")return ot(q,B,Lf(Q),ae);if(Q.$$typeof===A)return ot(q,B,Ef(q,Q),ae);If(q,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,B!==null&&B.tag===6?(l(q,B.sibling),ae=m(B,Q),ae.return=q,q=ae):(l(q,B),ae=kh(Q,q.mode,ae),ae.return=q,q=ae),w(q)):l(q,B)}return function(q,B,Q,ae){try{yl=0;var ve=ot(q,B,Q,ae);return Vs=null,ve}catch(Ee){if(Ee===ll||Ee===Sf)throw Ee;var Pe=Zn(29,Ee,null,q.mode);return Pe.lanes=ae,Pe.return=q,Pe}finally{}}}var $s=xb(!0),Eb=xb(!1),gi=H(null),dr=null;function Bu(u){var o=u.alternate;ie(Yt,Yt.current&1),ie(gi,u),dr===null&&(o===null||Is.current!==null||o.memoizedState!==null)&&(dr=u)}function Tb(u){if(u.tag===22){if(ie(Yt,Yt.current),ie(gi,u),dr===null){var o=u.alternate;o!==null&&o.memoizedState!==null&&(dr=u)}}else Uu()}function Uu(){ie(Yt,Yt.current),ie(gi,gi.current)}function nu(u){oe(gi),dr===u&&(dr=null),oe(Yt)}var Yt=H(0);function Ff(u){for(var o=u;o!==null;){if(o.tag===13){var l=o.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||t1(l)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===u)break;for(;o.sibling===null;){if(o.return===null||o.return===u)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function dp(u,o,l,d){o=u.memoizedState,l=l(d,o),l=l==null?o:p({},o,l),u.memoizedState=l,u.lanes===0&&(u.updateQueue.baseState=l)}var hp={enqueueSetState:function(u,o,l){u=u._reactInternals;var d=ei(),m=Pu(d);m.payload=o,l!=null&&(m.callback=l),o=Vu(u,m,d),o!==null&&(ti(o,u,d),fl(o,u,d))},enqueueReplaceState:function(u,o,l){u=u._reactInternals;var d=ei(),m=Pu(d);m.tag=1,m.payload=o,l!=null&&(m.callback=l),o=Vu(u,m,d),o!==null&&(ti(o,u,d),fl(o,u,d))},enqueueForceUpdate:function(u,o){u=u._reactInternals;var l=ei(),d=Pu(l);d.tag=2,o!=null&&(d.callback=o),o=Vu(u,d,l),o!==null&&(ti(o,u,l),fl(o,u,l))}};function Sb(u,o,l,d,m,b,w){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(d,b,w):o.prototype&&o.prototype.isPureReactComponent?!tl(l,d)||!tl(m,b):!0}function _b(u,o,l,d){u=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(l,d),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(l,d),o.state!==u&&hp.enqueueReplaceState(o,o.state,null)}function jo(u,o){var l=o;if("ref"in o){l={};for(var d in o)d!=="ref"&&(l[d]=o[d])}if(u=u.defaultProps){l===o&&(l=p({},l));for(var m in u)l[m]===void 0&&(l[m]=u[m])}return l}var jf=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function Cb(u){jf(u)}function Ab(u){console.error(u)}function wb(u){jf(u)}function Pf(u,o){try{var l=u.onUncaughtError;l(o.value,{componentStack:o.stack})}catch(d){setTimeout(function(){throw d})}}function Db(u,o,l){try{var d=u.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function pp(u,o,l){return l=Pu(l),l.tag=3,l.payload={element:null},l.callback=function(){Pf(u,o)},l}function Nb(u){return u=Pu(u),u.tag=3,u}function Ob(u,o,l,d){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var b=d.value;u.payload=function(){return m(b)},u.callback=function(){Db(o,l,d)}}var w=l.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(u.callback=function(){Db(o,l,d),typeof m!="function"&&(Qu===null?Qu=new Set([this]):Qu.add(this));var O=d.stack;this.componentDidCatch(d.value,{componentStack:O!==null?O:""})})}function C7(u,o,l,d,m){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(o=l.alternate,o!==null&&ol(o,l,m,!0),l=gi.current,l!==null){switch(l.tag){case 13:return dr===null?Pp():l.alternate===null&&wt===0&&(wt=3),l.flags&=-257,l.flags|=65536,l.lanes=m,d===zh?l.flags|=16384:(o=l.updateQueue,o===null?l.updateQueue=new Set([d]):o.add(d),$p(u,d,m)),!1;case 22:return l.flags|=65536,d===zh?l.flags|=16384:(o=l.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=o):(l=o.retryQueue,l===null?o.retryQueue=new Set([d]):l.add(d)),$p(u,d,m)),!1}throw Error(i(435,l.tag))}return $p(u,d,m),Pp(),!1}if(Ke)return o=gi.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=m,d!==Fh&&(u=Error(i(422),{cause:d}),ul(di(u,l)))):(d!==Fh&&(o=Error(i(423),{cause:d}),ul(di(o,l))),u=u.current.alternate,u.flags|=65536,m&=-m,u.lanes|=m,d=di(d,l),m=pp(u.stateNode,d,m),Gh(u,m),wt!==4&&(wt=2)),!1;var b=Error(i(520),{cause:d});if(b=di(b,l),Al===null?Al=[b]:Al.push(b),wt!==4&&(wt=2),o===null)return!0;d=di(d,l),l=o;do{switch(l.tag){case 3:return l.flags|=65536,u=m&-m,l.lanes|=u,u=pp(l.stateNode,d,u),Gh(l,u),!1;case 1:if(o=l.type,b=l.stateNode,(l.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Qu===null||!Qu.has(b))))return l.flags|=65536,m&=-m,l.lanes|=m,m=Nb(m),Ob(m,u,l,d),Gh(l,m),!1}l=l.return}while(l!==null);return!1}var Rb=Error(i(461)),Kt=!1;function fn(u,o,l,d){o.child=u===null?Eb(o,null,l,d):$s(o,u.child,l,d)}function kb(u,o,l,d,m){l=l.render;var b=o.ref;if("ref"in d){var w={};for(var O in d)O!=="ref"&&(w[O]=d[O])}else w=d;return Lo(o),d=Wh(u,o,l,w,b,m),O=Kh(),u!==null&&!Kt?(Jh(u,o,m),iu(u,o,m)):(Ke&&O&&Lh(o),o.flags|=1,fn(u,o,d,m),o.child)}function Mb(u,o,l,d,m){if(u===null){var b=l.type;return typeof b=="function"&&!Rh(b)&&b.defaultProps===void 0&&l.compare===null?(o.tag=15,o.type=b,Lb(u,o,b,d,m)):(u=vf(l.type,null,d,o,o.mode,m),u.ref=o.ref,u.return=o,o.child=u)}if(b=u.child,!Tp(u,m)){var w=b.memoizedProps;if(l=l.compare,l=l!==null?l:tl,l(w,d)&&u.ref===o.ref)return iu(u,o,m)}return o.flags|=1,u=Zr(b,d),u.ref=o.ref,u.return=o,o.child=u}function Lb(u,o,l,d,m){if(u!==null){var b=u.memoizedProps;if(tl(b,d)&&u.ref===o.ref)if(Kt=!1,o.pendingProps=d=b,Tp(u,m))(u.flags&131072)!==0&&(Kt=!0);else return o.lanes=u.lanes,iu(u,o,m)}return mp(u,o,l,d,m)}function Ib(u,o,l){var d=o.pendingProps,m=d.children,b=u!==null?u.memoizedState:null;if(d.mode==="hidden"){if((o.flags&128)!==0){if(d=b!==null?b.baseLanes|l:l,u!==null){for(m=o.child=u.child,b=0;m!==null;)b=b|m.lanes|m.childLanes,m=m.sibling;o.childLanes=b&~d}else o.childLanes=0,o.child=null;return Fb(u,o,d,l)}if((l&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},u!==null&&Tf(o,b!==null?b.cachePool:null),b!==null?Ly(o,b):Qh(),Tb(o);else return o.lanes=o.childLanes=536870912,Fb(u,o,b!==null?b.baseLanes|l:l,l)}else b!==null?(Tf(o,b.cachePool),Ly(o,b),Uu(),o.memoizedState=null):(u!==null&&Tf(o,null),Qh(),Uu());return fn(u,o,m,l),o.child}function Fb(u,o,l,d){var m=Uh();return m=m===null?null:{parent:Gt._currentValue,pool:m},o.memoizedState={baseLanes:l,cachePool:m},u!==null&&Tf(o,null),Qh(),Tb(o),u!==null&&ol(u,o,d,!0),null}function Vf(u,o){var l=o.ref;if(l===null)u!==null&&u.ref!==null&&(o.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(u===null||u.ref!==l)&&(o.flags|=4194816)}}function mp(u,o,l,d,m){return Lo(o),l=Wh(u,o,l,d,void 0,m),d=Kh(),u!==null&&!Kt?(Jh(u,o,m),iu(u,o,m)):(Ke&&d&&Lh(o),o.flags|=1,fn(u,o,l,m),o.child)}function jb(u,o,l,d,m,b){return Lo(o),o.updateQueue=null,l=Fy(o,d,l,m),Iy(u),d=Kh(),u!==null&&!Kt?(Jh(u,o,b),iu(u,o,b)):(Ke&&d&&Lh(o),o.flags|=1,fn(u,o,l,b),o.child)}function Pb(u,o,l,d,m){if(Lo(o),o.stateNode===null){var b=Os,w=l.contextType;typeof w=="object"&&w!==null&&(b=xn(w)),b=new l(d,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=hp,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=d,b.state=o.memoizedState,b.refs={},qh(o),w=l.contextType,b.context=typeof w=="object"&&w!==null?xn(w):Os,b.state=o.memoizedState,w=l.getDerivedStateFromProps,typeof w=="function"&&(dp(o,l,w,d),b.state=o.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(w=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),w!==b.state&&hp.enqueueReplaceState(b,b.state,null),hl(o,d,b,m),dl(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),d=!0}else if(u===null){b=o.stateNode;var O=o.memoizedProps,F=jo(l,O);b.props=F;var X=b.context,ue=l.contextType;w=Os,typeof ue=="object"&&ue!==null&&(w=xn(ue));var ce=l.getDerivedStateFromProps;ue=typeof ce=="function"||typeof b.getSnapshotBeforeUpdate=="function",O=o.pendingProps!==O,ue||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O||X!==w)&&_b(o,b,d,w),ju=!1;var J=o.memoizedState;b.state=J,hl(o,d,b,m),dl(),X=o.memoizedState,O||J!==X||ju?(typeof ce=="function"&&(dp(o,l,ce,d),X=o.memoizedState),(F=ju||Sb(o,l,F,d,J,X,w))?(ue||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=d,o.memoizedState=X),b.props=d,b.state=X,b.context=w,d=F):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),d=!1)}else{b=o.stateNode,Hh(u,o),w=o.memoizedProps,ue=jo(l,w),b.props=ue,ce=o.pendingProps,J=b.context,X=l.contextType,F=Os,typeof X=="object"&&X!==null&&(F=xn(X)),O=l.getDerivedStateFromProps,(X=typeof O=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(w!==ce||J!==F)&&_b(o,b,d,F),ju=!1,J=o.memoizedState,b.state=J,hl(o,d,b,m),dl();var ee=o.memoizedState;w!==ce||J!==ee||ju||u!==null&&u.dependencies!==null&&xf(u.dependencies)?(typeof O=="function"&&(dp(o,l,O,d),ee=o.memoizedState),(ue=ju||Sb(o,l,ue,d,J,ee,F)||u!==null&&u.dependencies!==null&&xf(u.dependencies))?(X||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,ee,F),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,ee,F)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||w===u.memoizedProps&&J===u.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||w===u.memoizedProps&&J===u.memoizedState||(o.flags|=1024),o.memoizedProps=d,o.memoizedState=ee),b.props=d,b.state=ee,b.context=F,d=ue):(typeof b.componentDidUpdate!="function"||w===u.memoizedProps&&J===u.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||w===u.memoizedProps&&J===u.memoizedState||(o.flags|=1024),d=!1)}return b=d,Vf(u,o),d=(o.flags&128)!==0,b||d?(b=o.stateNode,l=d&&typeof l.getDerivedStateFromError!="function"?null:b.render(),o.flags|=1,u!==null&&d?(o.child=$s(o,u.child,null,m),o.child=$s(o,null,l,m)):fn(u,o,l,m),o.memoizedState=b.state,u=o.child):u=iu(u,o,m),u}function Vb(u,o,l,d){return rl(),o.flags|=256,fn(u,o,l,d),o.child}var gp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vp(u){return{baseLanes:u,cachePool:Ay()}}function yp(u,o,l){return u=u!==null?u.childLanes&~l:0,o&&(u|=vi),u}function $b(u,o,l){var d=o.pendingProps,m=!1,b=(o.flags&128)!==0,w;if((w=b)||(w=u!==null&&u.memoizedState===null?!1:(Yt.current&2)!==0),w&&(m=!0,o.flags&=-129),w=(o.flags&32)!==0,o.flags&=-33,u===null){if(Ke){if(m?Bu(o):Uu(),Ke){var O=At,F;if(F=O){e:{for(F=O,O=fr;F.nodeType!==8;){if(!O){O=null;break e}if(F=ji(F.nextSibling),F===null){O=null;break e}}O=F}O!==null?(o.memoizedState={dehydrated:O,treeContext:No!==null?{id:Wr,overflow:Kr}:null,retryLane:536870912,hydrationErrors:null},F=Zn(18,null,null,0),F.stateNode=O,F.return=o,o.child=F,wn=o,At=null,F=!0):F=!1}F||ko(o)}if(O=o.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return t1(O)?o.lanes=32:o.lanes=536870912,null;nu(o)}return O=d.children,d=d.fallback,m?(Uu(),m=o.mode,O=$f({mode:"hidden",children:O},m),d=Do(d,m,l,null),O.return=o,d.return=o,O.sibling=d,o.child=O,m=o.child,m.memoizedState=vp(l),m.childLanes=yp(u,w,l),o.memoizedState=gp,d):(Bu(o),bp(o,O))}if(F=u.memoizedState,F!==null&&(O=F.dehydrated,O!==null)){if(b)o.flags&256?(Bu(o),o.flags&=-257,o=xp(u,o,l)):o.memoizedState!==null?(Uu(),o.child=u.child,o.flags|=128,o=null):(Uu(),m=d.fallback,O=o.mode,d=$f({mode:"visible",children:d.children},O),m=Do(m,O,l,null),m.flags|=2,d.return=o,m.return=o,d.sibling=m,o.child=d,$s(o,u.child,null,l),d=o.child,d.memoizedState=vp(l),d.childLanes=yp(u,w,l),o.memoizedState=gp,o=m);else if(Bu(o),t1(O)){if(w=O.nextSibling&&O.nextSibling.dataset,w)var X=w.dgst;w=X,d=Error(i(419)),d.stack="",d.digest=w,ul({value:d,source:null,stack:null}),o=xp(u,o,l)}else if(Kt||ol(u,o,l,!1),w=(l&u.childLanes)!==0,Kt||w){if(w=ht,w!==null&&(d=l&-l,d=(d&42)!==0?1:nr(d),d=(d&(w.suspendedLanes|l))!==0?0:d,d!==0&&d!==F.retryLane))throw F.retryLane=d,Ns(u,d),ti(w,u,d),Rb;O.data==="$?"||Pp(),o=xp(u,o,l)}else O.data==="$?"?(o.flags|=192,o.child=u.child,o=null):(u=F.treeContext,At=ji(O.nextSibling),wn=o,Ke=!0,Ro=null,fr=!1,u!==null&&(pi[mi++]=Wr,pi[mi++]=Kr,pi[mi++]=No,Wr=u.id,Kr=u.overflow,No=o),o=bp(o,d.children),o.flags|=4096);return o}return m?(Uu(),m=d.fallback,O=o.mode,F=u.child,X=F.sibling,d=Zr(F,{mode:"hidden",children:d.children}),d.subtreeFlags=F.subtreeFlags&65011712,X!==null?m=Zr(X,m):(m=Do(m,O,l,null),m.flags|=2),m.return=o,d.return=o,d.sibling=m,o.child=d,d=m,m=o.child,O=u.child.memoizedState,O===null?O=vp(l):(F=O.cachePool,F!==null?(X=Gt._currentValue,F=F.parent!==X?{parent:X,pool:X}:F):F=Ay(),O={baseLanes:O.baseLanes|l,cachePool:F}),m.memoizedState=O,m.childLanes=yp(u,w,l),o.memoizedState=gp,d):(Bu(o),l=u.child,u=l.sibling,l=Zr(l,{mode:"visible",children:d.children}),l.return=o,l.sibling=null,u!==null&&(w=o.deletions,w===null?(o.deletions=[u],o.flags|=16):w.push(u)),o.child=l,o.memoizedState=null,l)}function bp(u,o){return o=$f({mode:"visible",children:o},u.mode),o.return=u,u.child=o}function $f(u,o){return u=Zn(22,u,null,o),u.lanes=0,u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},u}function xp(u,o,l){return $s(o,u.child,null,l),u=bp(o,o.pendingProps.children),u.flags|=2,o.memoizedState=null,u}function Bb(u,o,l){u.lanes|=o;var d=u.alternate;d!==null&&(d.lanes|=o),Ph(u.return,o,l)}function Ep(u,o,l,d,m){var b=u.memoizedState;b===null?u.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:m}:(b.isBackwards=o,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=l,b.tailMode=m)}function Ub(u,o,l){var d=o.pendingProps,m=d.revealOrder,b=d.tail;if(fn(u,o,d.children,l),d=Yt.current,(d&2)!==0)d=d&1|2,o.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=o.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&Bb(u,l,o);else if(u.tag===19)Bb(u,l,o);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===o)break e;for(;u.sibling===null;){if(u.return===null||u.return===o)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}d&=1}switch(ie(Yt,d),m){case"forwards":for(l=o.child,m=null;l!==null;)u=l.alternate,u!==null&&Ff(u)===null&&(m=l),l=l.sibling;l=m,l===null?(m=o.child,o.child=null):(m=l.sibling,l.sibling=null),Ep(o,!1,m,l,b);break;case"backwards":for(l=null,m=o.child,o.child=null;m!==null;){if(u=m.alternate,u!==null&&Ff(u)===null){o.child=m;break}u=m.sibling,m.sibling=l,l=m,m=u}Ep(o,!0,l,null,b);break;case"together":Ep(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function iu(u,o,l){if(u!==null&&(o.dependencies=u.dependencies),Yu|=o.lanes,(l&o.childLanes)===0)if(u!==null){if(ol(u,o,l,!1),(l&o.childLanes)===0)return null}else return null;if(u!==null&&o.child!==u.child)throw Error(i(153));if(o.child!==null){for(u=o.child,l=Zr(u,u.pendingProps),o.child=l,l.return=o;u.sibling!==null;)u=u.sibling,l=l.sibling=Zr(u,u.pendingProps),l.return=o;l.sibling=null}return o.child}function Tp(u,o){return(u.lanes&o)!==0?!0:(u=u.dependencies,!!(u!==null&&xf(u)))}function A7(u,o,l){switch(o.tag){case 3:re(o,o.stateNode.containerInfo),Fu(o,Gt,u.memoizedState.cache),rl();break;case 27:case 5:xe(o);break;case 4:re(o,o.stateNode.containerInfo);break;case 10:Fu(o,o.type,o.memoizedProps.value);break;case 13:var d=o.memoizedState;if(d!==null)return d.dehydrated!==null?(Bu(o),o.flags|=128,null):(l&o.child.childLanes)!==0?$b(u,o,l):(Bu(o),u=iu(u,o,l),u!==null?u.sibling:null);Bu(o);break;case 19:var m=(u.flags&128)!==0;if(d=(l&o.childLanes)!==0,d||(ol(u,o,l,!1),d=(l&o.childLanes)!==0),m){if(d)return Ub(u,o,l);o.flags|=128}if(m=o.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ie(Yt,Yt.current),d)break;return null;case 22:case 23:return o.lanes=0,Ib(u,o,l);case 24:Fu(o,Gt,u.memoizedState.cache)}return iu(u,o,l)}function zb(u,o,l){if(u!==null)if(u.memoizedProps!==o.pendingProps)Kt=!0;else{if(!Tp(u,l)&&(o.flags&128)===0)return Kt=!1,A7(u,o,l);Kt=(u.flags&131072)!==0}else Kt=!1,Ke&&(o.flags&1048576)!==0&&by(o,bf,o.index);switch(o.lanes=0,o.tag){case 16:e:{u=o.pendingProps;var d=o.elementType,m=d._init;if(d=m(d._payload),o.type=d,typeof d=="function")Rh(d)?(u=jo(d,u),o.tag=1,o=Pb(null,o,d,u,l)):(o.tag=0,o=mp(null,o,d,u,l));else{if(d!=null){if(m=d.$$typeof,m===N){o.tag=11,o=kb(null,o,d,u,l);break e}else if(m===j){o.tag=14,o=Mb(null,o,d,u,l);break e}}throw o=ne(d)||d,Error(i(306,o,""))}}return o;case 0:return mp(u,o,o.type,o.pendingProps,l);case 1:return d=o.type,m=jo(d,o.pendingProps),Pb(u,o,d,m,l);case 3:e:{if(re(o,o.stateNode.containerInfo),u===null)throw Error(i(387));d=o.pendingProps;var b=o.memoizedState;m=b.element,Hh(u,o),hl(o,d,null,l);var w=o.memoizedState;if(d=w.cache,Fu(o,Gt,d),d!==b.cache&&Vh(o,[Gt],l,!0),dl(),d=w.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:w.cache},o.updateQueue.baseState=b,o.memoizedState=b,o.flags&256){o=Vb(u,o,d,l);break e}else if(d!==m){m=di(Error(i(424)),o),ul(m),o=Vb(u,o,d,l);break e}else{switch(u=o.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(At=ji(u.firstChild),wn=o,Ke=!0,Ro=null,fr=!0,l=Eb(o,null,d,l),o.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(rl(),d===m){o=iu(u,o,l);break e}fn(u,o,d,l)}o=o.child}return o;case 26:return Vf(u,o),u===null?(l=Y3(o.type,null,o.pendingProps,null))?o.memoizedState=l:Ke||(l=o.type,u=o.pendingProps,d=ed(de.current).createElement(l),d[Wt]=o,d[Ot]=u,hn(d,l,u),Ct(d),o.stateNode=d):o.memoizedState=Y3(o.type,u.memoizedProps,o.pendingProps,u.memoizedState),null;case 27:return xe(o),u===null&&Ke&&(d=o.stateNode=q3(o.type,o.pendingProps,de.current),wn=o,fr=!0,m=At,Wu(o.type)?(n1=m,At=ji(d.firstChild)):At=m),fn(u,o,o.pendingProps.children,l),Vf(u,o),u===null&&(o.flags|=4194304),o.child;case 5:return u===null&&Ke&&((m=d=At)&&(d=ew(d,o.type,o.pendingProps,fr),d!==null?(o.stateNode=d,wn=o,At=ji(d.firstChild),fr=!1,m=!0):m=!1),m||ko(o)),xe(o),m=o.type,b=o.pendingProps,w=u!==null?u.memoizedProps:null,d=b.children,Kp(m,b)?d=null:w!==null&&Kp(m,w)&&(o.flags|=32),o.memoizedState!==null&&(m=Wh(u,o,y7,null,null,l),Il._currentValue=m),Vf(u,o),fn(u,o,d,l),o.child;case 6:return u===null&&Ke&&((u=l=At)&&(l=tw(l,o.pendingProps,fr),l!==null?(o.stateNode=l,wn=o,At=null,u=!0):u=!1),u||ko(o)),null;case 13:return $b(u,o,l);case 4:return re(o,o.stateNode.containerInfo),d=o.pendingProps,u===null?o.child=$s(o,null,d,l):fn(u,o,d,l),o.child;case 11:return kb(u,o,o.type,o.pendingProps,l);case 7:return fn(u,o,o.pendingProps,l),o.child;case 8:return fn(u,o,o.pendingProps.children,l),o.child;case 12:return fn(u,o,o.pendingProps.children,l),o.child;case 10:return d=o.pendingProps,Fu(o,o.type,d.value),fn(u,o,d.children,l),o.child;case 9:return m=o.type._context,d=o.pendingProps.children,Lo(o),m=xn(m),d=d(m),o.flags|=1,fn(u,o,d,l),o.child;case 14:return Mb(u,o,o.type,o.pendingProps,l);case 15:return Lb(u,o,o.type,o.pendingProps,l);case 19:return Ub(u,o,l);case 31:return d=o.pendingProps,l=o.mode,d={mode:d.mode,children:d.children},u===null?(l=$f(d,l),l.ref=o.ref,o.child=l,l.return=o,o=l):(l=Zr(u.child,d),l.ref=o.ref,o.child=l,l.return=o,o=l),o;case 22:return Ib(u,o,l);case 24:return Lo(o),d=xn(Gt),u===null?(m=Uh(),m===null&&(m=ht,b=$h(),m.pooledCache=b,b.refCount++,b!==null&&(m.pooledCacheLanes|=l),m=b),o.memoizedState={parent:d,cache:m},qh(o),Fu(o,Gt,m)):((u.lanes&l)!==0&&(Hh(u,o),hl(o,null,null,l),dl()),m=u.memoizedState,b=o.memoizedState,m.parent!==d?(m={parent:d,cache:d},o.memoizedState=m,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=m),Fu(o,Gt,d)):(d=b.cache,Fu(o,Gt,d),d!==m.cache&&Vh(o,[Gt],l,!0))),fn(u,o,o.pendingProps.children,l),o.child;case 29:throw o.pendingProps}throw Error(i(156,o.tag))}function ru(u){u.flags|=4}function qb(u,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!K3(o)){if(o=gi.current,o!==null&&((Ye&4194048)===Ye?dr!==null:(Ye&62914560)!==Ye&&(Ye&536870912)===0||o!==dr))throw cl=zh,wy;u.flags|=8192}}function Bf(u,o){o!==null&&(u.flags|=4),u.flags&16384&&(o=u.tag!==22?xs():536870912,u.lanes|=o,qs|=o)}function xl(u,o){if(!Ke)switch(u.tailMode){case"hidden":o=u.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?u.tail=null:l.sibling=null;break;case"collapsed":l=u.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o||u.tail===null?u.tail=null:u.tail.sibling=null:d.sibling=null}}function _t(u){var o=u.alternate!==null&&u.alternate.child===u.child,l=0,d=0;if(o)for(var m=u.child;m!==null;)l|=m.lanes|m.childLanes,d|=m.subtreeFlags&65011712,d|=m.flags&65011712,m.return=u,m=m.sibling;else for(m=u.child;m!==null;)l|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=u,m=m.sibling;return u.subtreeFlags|=d,u.childLanes=l,o}function w7(u,o,l){var d=o.pendingProps;switch(Ih(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(o),null;case 1:return _t(o),null;case 3:return l=o.stateNode,d=null,u!==null&&(d=u.memoizedState.cache),o.memoizedState.cache!==d&&(o.flags|=2048),eu(Gt),me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(u===null||u.child===null)&&(il(o)?ru(o):u===null||u.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Ty())),_t(o),null;case 26:return l=o.memoizedState,u===null?(ru(o),l!==null?(_t(o),qb(o,l)):(_t(o),o.flags&=-16777217)):l?l!==u.memoizedState?(ru(o),_t(o),qb(o,l)):(_t(o),o.flags&=-16777217):(u.memoizedProps!==d&&ru(o),_t(o),o.flags&=-16777217),null;case 27:Te(o),l=de.current;var m=o.type;if(u!==null&&o.stateNode!=null)u.memoizedProps!==d&&ru(o);else{if(!d){if(o.stateNode===null)throw Error(i(166));return _t(o),null}u=G.current,il(o)?xy(o):(u=q3(m,d,l),o.stateNode=u,ru(o))}return _t(o),null;case 5:if(Te(o),l=o.type,u!==null&&o.stateNode!=null)u.memoizedProps!==d&&ru(o);else{if(!d){if(o.stateNode===null)throw Error(i(166));return _t(o),null}if(u=G.current,il(o))xy(o);else{switch(m=ed(de.current),u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof d.is=="string"?m.createElement("select",{is:d.is}):m.createElement("select"),d.multiple?u.multiple=!0:d.size&&(u.size=d.size);break;default:u=typeof d.is=="string"?m.createElement(l,{is:d.is}):m.createElement(l)}}u[Wt]=o,u[Ot]=d;e:for(m=o.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===o)break e;for(;m.sibling===null;){if(m.return===null||m.return===o)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}o.stateNode=u;e:switch(hn(u,l,d),l){case"button":case"input":case"select":case"textarea":u=!!d.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ru(o)}}return _t(o),o.flags&=-16777217,null;case 6:if(u&&o.stateNode!=null)u.memoizedProps!==d&&ru(o);else{if(typeof d!="string"&&o.stateNode===null)throw Error(i(166));if(u=de.current,il(o)){if(u=o.stateNode,l=o.memoizedProps,d=null,m=wn,m!==null)switch(m.tag){case 27:case 5:d=m.memoizedProps}u[Wt]=o,u=!!(u.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||j3(u.nodeValue,l)),u||ko(o)}else u=ed(u).createTextNode(d),u[Wt]=o,o.stateNode=u}return _t(o),null;case 13:if(d=o.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(m=il(o),d!==null&&d.dehydrated!==null){if(u===null){if(!m)throw Error(i(318));if(m=o.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[Wt]=o}else rl(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;_t(o),m=!1}else m=Ty(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=m),m=!0;if(!m)return o.flags&256?(nu(o),o):(nu(o),null)}if(nu(o),(o.flags&128)!==0)return o.lanes=l,o;if(l=d!==null,u=u!==null&&u.memoizedState!==null,l){d=o.child,m=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(m=d.alternate.memoizedState.cachePool.pool);var b=null;d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),b!==m&&(d.flags|=2048)}return l!==u&&l&&(o.child.flags|=8192),Bf(o,o.updateQueue),_t(o),null;case 4:return me(),u===null&&Yp(o.stateNode.containerInfo),_t(o),null;case 10:return eu(o.type),_t(o),null;case 19:if(oe(Yt),m=o.memoizedState,m===null)return _t(o),null;if(d=(o.flags&128)!==0,b=m.rendering,b===null)if(d)xl(m,!1);else{if(wt!==0||u!==null&&(u.flags&128)!==0)for(u=o.child;u!==null;){if(b=Ff(u),b!==null){for(o.flags|=128,xl(m,!1),u=b.updateQueue,o.updateQueue=u,Bf(o,u),o.subtreeFlags=0,u=l,l=o.child;l!==null;)yy(l,u),l=l.sibling;return ie(Yt,Yt.current&1|2),o.child}u=u.sibling}m.tail!==null&&at()>qf&&(o.flags|=128,d=!0,xl(m,!1),o.lanes=4194304)}else{if(!d)if(u=Ff(b),u!==null){if(o.flags|=128,d=!0,u=u.updateQueue,o.updateQueue=u,Bf(o,u),xl(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!Ke)return _t(o),null}else 2*at()-m.renderingStartTime>qf&&l!==536870912&&(o.flags|=128,d=!0,xl(m,!1),o.lanes=4194304);m.isBackwards?(b.sibling=o.child,o.child=b):(u=m.last,u!==null?u.sibling=b:o.child=b,m.last=b)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=at(),o.sibling=null,u=Yt.current,ie(Yt,d?u&1|2:u&1),o):(_t(o),null);case 22:case 23:return nu(o),Xh(),d=o.memoizedState!==null,u!==null?u.memoizedState!==null!==d&&(o.flags|=8192):d&&(o.flags|=8192),d?(l&536870912)!==0&&(o.flags&128)===0&&(_t(o),o.subtreeFlags&6&&(o.flags|=8192)):_t(o),l=o.updateQueue,l!==null&&Bf(o,l.retryQueue),l=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(l=u.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==l&&(o.flags|=2048),u!==null&&oe(Io),null;case 24:return l=null,u!==null&&(l=u.memoizedState.cache),o.memoizedState.cache!==l&&(o.flags|=2048),eu(Gt),_t(o),null;case 25:return null;case 30:return null}throw Error(i(156,o.tag))}function D7(u,o){switch(Ih(o),o.tag){case 1:return u=o.flags,u&65536?(o.flags=u&-65537|128,o):null;case 3:return eu(Gt),me(),u=o.flags,(u&65536)!==0&&(u&128)===0?(o.flags=u&-65537|128,o):null;case 26:case 27:case 5:return Te(o),null;case 13:if(nu(o),u=o.memoizedState,u!==null&&u.dehydrated!==null){if(o.alternate===null)throw Error(i(340));rl()}return u=o.flags,u&65536?(o.flags=u&-65537|128,o):null;case 19:return oe(Yt),null;case 4:return me(),null;case 10:return eu(o.type),null;case 22:case 23:return nu(o),Xh(),u!==null&&oe(Io),u=o.flags,u&65536?(o.flags=u&-65537|128,o):null;case 24:return eu(Gt),null;case 25:return null;default:return null}}function Hb(u,o){switch(Ih(o),o.tag){case 3:eu(Gt),me();break;case 26:case 27:case 5:Te(o);break;case 4:me();break;case 13:nu(o);break;case 19:oe(Yt);break;case 10:eu(o.type);break;case 22:case 23:nu(o),Xh(),u!==null&&oe(Io);break;case 24:eu(Gt)}}function El(u,o){try{var l=o.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var m=d.next;l=m;do{if((l.tag&u)===u){d=void 0;var b=l.create,w=l.inst;d=b(),w.destroy=d}l=l.next}while(l!==m)}}catch(O){ct(o,o.return,O)}}function zu(u,o,l){try{var d=o.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var b=m.next;d=b;do{if((d.tag&u)===u){var w=d.inst,O=w.destroy;if(O!==void 0){w.destroy=void 0,m=o;var F=l,X=O;try{X()}catch(ue){ct(m,F,ue)}}}d=d.next}while(d!==b)}}catch(ue){ct(o,o.return,ue)}}function Gb(u){var o=u.updateQueue;if(o!==null){var l=u.stateNode;try{My(o,l)}catch(d){ct(u,u.return,d)}}}function Yb(u,o,l){l.props=jo(u.type,u.memoizedProps),l.state=u.memoizedState;try{l.componentWillUnmount()}catch(d){ct(u,o,d)}}function Tl(u,o){try{var l=u.ref;if(l!==null){switch(u.tag){case 26:case 27:case 5:var d=u.stateNode;break;case 30:d=u.stateNode;break;default:d=u.stateNode}typeof l=="function"?u.refCleanup=l(d):l.current=d}}catch(m){ct(u,o,m)}}function hr(u,o){var l=u.ref,d=u.refCleanup;if(l!==null)if(typeof d=="function")try{d()}catch(m){ct(u,o,m)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){ct(u,o,m)}else l.current=null}function Qb(u){var o=u.type,l=u.memoizedProps,d=u.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":l.autoFocus&&d.focus();break e;case"img":l.src?d.src=l.src:l.srcSet&&(d.srcset=l.srcSet)}}catch(m){ct(u,u.return,m)}}function Sp(u,o,l){try{var d=u.stateNode;X7(d,u.type,l,o),d[Ot]=o}catch(m){ct(u,u.return,m)}}function Xb(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&Wu(u.type)||u.tag===4}function _p(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||Xb(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&Wu(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function Cp(u,o,l){var d=u.tag;if(d===5||d===6)u=u.stateNode,o?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(u,o):(o=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,o.appendChild(u),l=l._reactRootContainer,l!=null||o.onclick!==null||(o.onclick=Jf));else if(d!==4&&(d===27&&Wu(u.type)&&(l=u.stateNode,o=null),u=u.child,u!==null))for(Cp(u,o,l),u=u.sibling;u!==null;)Cp(u,o,l),u=u.sibling}function Uf(u,o,l){var d=u.tag;if(d===5||d===6)u=u.stateNode,o?l.insertBefore(u,o):l.appendChild(u);else if(d!==4&&(d===27&&Wu(u.type)&&(l=u.stateNode),u=u.child,u!==null))for(Uf(u,o,l),u=u.sibling;u!==null;)Uf(u,o,l),u=u.sibling}function Zb(u){var o=u.stateNode,l=u.memoizedProps;try{for(var d=u.type,m=o.attributes;m.length;)o.removeAttributeNode(m[0]);hn(o,d,l),o[Wt]=u,o[Ot]=l}catch(b){ct(u,u.return,b)}}var uu=!1,kt=!1,Ap=!1,Wb=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function N7(u,o){if(u=u.containerInfo,Zp=od,u=ay(u),_h(u)){if("selectionStart"in u)var l={start:u.selectionStart,end:u.selectionEnd};else e:{l=(l=u.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var m=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{l.nodeType,b.nodeType}catch{l=null;break e}var w=0,O=-1,F=-1,X=0,ue=0,ce=u,J=null;t:for(;;){for(var ee;ce!==l||m!==0&&ce.nodeType!==3||(O=w+m),ce!==b||d!==0&&ce.nodeType!==3||(F=w+d),ce.nodeType===3&&(w+=ce.nodeValue.length),(ee=ce.firstChild)!==null;)J=ce,ce=ee;for(;;){if(ce===u)break t;if(J===l&&++X===m&&(O=w),J===b&&++ue===d&&(F=w),(ee=ce.nextSibling)!==null)break;ce=J,J=ce.parentNode}ce=ee}l=O===-1||F===-1?null:{start:O,end:F}}else l=null}l=l||{start:0,end:0}}else l=null;for(Wp={focusedElem:u,selectionRange:l},od=!1,Jt=o;Jt!==null;)if(o=Jt,u=o.child,(o.subtreeFlags&1024)!==0&&u!==null)u.return=o,Jt=u;else for(;Jt!==null;){switch(o=Jt,b=o.alternate,u=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((u&1024)!==0&&b!==null){u=void 0,l=o,m=b.memoizedProps,b=b.memoizedState,d=l.stateNode;try{var Ne=jo(l.type,m,l.elementType===l.type);u=d.getSnapshotBeforeUpdate(Ne,b),d.__reactInternalSnapshotBeforeUpdate=u}catch(Ae){ct(l,l.return,Ae)}}break;case 3:if((u&1024)!==0){if(u=o.stateNode.containerInfo,l=u.nodeType,l===9)e1(u);else if(l===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":e1(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(i(163))}if(u=o.sibling,u!==null){u.return=o.return,Jt=u;break}Jt=o.return}}function Kb(u,o,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:qu(u,l),d&4&&El(5,l);break;case 1:if(qu(u,l),d&4)if(u=l.stateNode,o===null)try{u.componentDidMount()}catch(w){ct(l,l.return,w)}else{var m=jo(l.type,o.memoizedProps);o=o.memoizedState;try{u.componentDidUpdate(m,o,u.__reactInternalSnapshotBeforeUpdate)}catch(w){ct(l,l.return,w)}}d&64&&Gb(l),d&512&&Tl(l,l.return);break;case 3:if(qu(u,l),d&64&&(u=l.updateQueue,u!==null)){if(o=null,l.child!==null)switch(l.child.tag){case 27:case 5:o=l.child.stateNode;break;case 1:o=l.child.stateNode}try{My(u,o)}catch(w){ct(l,l.return,w)}}break;case 27:o===null&&d&4&&Zb(l);case 26:case 5:qu(u,l),o===null&&d&4&&Qb(l),d&512&&Tl(l,l.return);break;case 12:qu(u,l);break;case 13:qu(u,l),d&4&&t3(u,l),d&64&&(u=l.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(l=P7.bind(null,l),nw(u,l))));break;case 22:if(d=l.memoizedState!==null||uu,!d){o=o!==null&&o.memoizedState!==null||kt,m=uu;var b=kt;uu=d,(kt=o)&&!b?Hu(u,l,(l.subtreeFlags&8772)!==0):qu(u,l),uu=m,kt=b}break;case 30:break;default:qu(u,l)}}function Jb(u){var o=u.alternate;o!==null&&(u.alternate=null,Jb(o)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(o=u.stateNode,o!==null&&ir(o)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var Et=null,jn=!1;function ou(u,o,l){for(l=l.child;l!==null;)e3(u,o,l),l=l.sibling}function e3(u,o,l){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.onCommitFiberUnmount(Ki,l)}catch{}switch(l.tag){case 26:kt||hr(l,o),ou(u,o,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:kt||hr(l,o);var d=Et,m=jn;Wu(l.type)&&(Et=l.stateNode,jn=!1),ou(u,o,l),Rl(l.stateNode),Et=d,jn=m;break;case 5:kt||hr(l,o);case 6:if(d=Et,m=jn,Et=null,ou(u,o,l),Et=d,jn=m,Et!==null)if(jn)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(l.stateNode)}catch(b){ct(l,o,b)}else try{Et.removeChild(l.stateNode)}catch(b){ct(l,o,b)}break;case 18:Et!==null&&(jn?(u=Et,U3(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,l.stateNode),Vl(u)):U3(Et,l.stateNode));break;case 4:d=Et,m=jn,Et=l.stateNode.containerInfo,jn=!0,ou(u,o,l),Et=d,jn=m;break;case 0:case 11:case 14:case 15:kt||zu(2,l,o),kt||zu(4,l,o),ou(u,o,l);break;case 1:kt||(hr(l,o),d=l.stateNode,typeof d.componentWillUnmount=="function"&&Yb(l,o,d)),ou(u,o,l);break;case 21:ou(u,o,l);break;case 22:kt=(d=kt)||l.memoizedState!==null,ou(u,o,l),kt=d;break;default:ou(u,o,l)}}function t3(u,o){if(o.memoizedState===null&&(u=o.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Vl(u)}catch(l){ct(o,o.return,l)}}function O7(u){switch(u.tag){case 13:case 19:var o=u.stateNode;return o===null&&(o=u.stateNode=new Wb),o;case 22:return u=u.stateNode,o=u._retryCache,o===null&&(o=u._retryCache=new Wb),o;default:throw Error(i(435,u.tag))}}function wp(u,o){var l=O7(u);o.forEach(function(d){var m=V7.bind(null,u,d);l.has(d)||(l.add(d),d.then(m,m))})}function Wn(u,o){var l=o.deletions;if(l!==null)for(var d=0;d<l.length;d++){var m=l[d],b=u,w=o,O=w;e:for(;O!==null;){switch(O.tag){case 27:if(Wu(O.type)){Et=O.stateNode,jn=!1;break e}break;case 5:Et=O.stateNode,jn=!1;break e;case 3:case 4:Et=O.stateNode.containerInfo,jn=!0;break e}O=O.return}if(Et===null)throw Error(i(160));e3(b,w,m),Et=null,jn=!1,b=m.alternate,b!==null&&(b.return=null),m.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)n3(o,u),o=o.sibling}var Fi=null;function n3(u,o){var l=u.alternate,d=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:Wn(o,u),Kn(u),d&4&&(zu(3,u,u.return),El(3,u),zu(5,u,u.return));break;case 1:Wn(o,u),Kn(u),d&512&&(kt||l===null||hr(l,l.return)),d&64&&uu&&(u=u.updateQueue,u!==null&&(d=u.callbacks,d!==null&&(l=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var m=Fi;if(Wn(o,u),Kn(u),d&512&&(kt||l===null||hr(l,l.return)),d&4){var b=l!==null?l.memoizedState:null;if(d=u.memoizedState,l===null)if(d===null)if(u.stateNode===null){e:{d=u.type,l=u.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":b=m.getElementsByTagName("title")[0],(!b||b[Eo]||b[Wt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=m.createElement(d),m.head.insertBefore(b,m.querySelector("head > title"))),hn(b,d,l),b[Wt]=u,Ct(b),d=b;break e;case"link":var w=Z3("link","href",m).get(d+(l.href||""));if(w){for(var O=0;O<w.length;O++)if(b=w[O],b.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&b.getAttribute("rel")===(l.rel==null?null:l.rel)&&b.getAttribute("title")===(l.title==null?null:l.title)&&b.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){w.splice(O,1);break t}}b=m.createElement(d),hn(b,d,l),m.head.appendChild(b);break;case"meta":if(w=Z3("meta","content",m).get(d+(l.content||""))){for(O=0;O<w.length;O++)if(b=w[O],b.getAttribute("content")===(l.content==null?null:""+l.content)&&b.getAttribute("name")===(l.name==null?null:l.name)&&b.getAttribute("property")===(l.property==null?null:l.property)&&b.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&b.getAttribute("charset")===(l.charSet==null?null:l.charSet)){w.splice(O,1);break t}}b=m.createElement(d),hn(b,d,l),m.head.appendChild(b);break;default:throw Error(i(468,d))}b[Wt]=u,Ct(b),d=b}u.stateNode=d}else W3(m,u.type,u.stateNode);else u.stateNode=X3(m,d,u.memoizedProps);else b!==d?(b===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):b.count--,d===null?W3(m,u.type,u.stateNode):X3(m,d,u.memoizedProps)):d===null&&u.stateNode!==null&&Sp(u,u.memoizedProps,l.memoizedProps)}break;case 27:Wn(o,u),Kn(u),d&512&&(kt||l===null||hr(l,l.return)),l!==null&&d&4&&Sp(u,u.memoizedProps,l.memoizedProps);break;case 5:if(Wn(o,u),Kn(u),d&512&&(kt||l===null||hr(l,l.return)),u.flags&32){m=u.stateNode;try{lr(m,"")}catch(ee){ct(u,u.return,ee)}}d&4&&u.stateNode!=null&&(m=u.memoizedProps,Sp(u,m,l!==null?l.memoizedProps:m)),d&1024&&(Ap=!0);break;case 6:if(Wn(o,u),Kn(u),d&4){if(u.stateNode===null)throw Error(i(162));d=u.memoizedProps,l=u.stateNode;try{l.nodeValue=d}catch(ee){ct(u,u.return,ee)}}break;case 3:if(id=null,m=Fi,Fi=td(o.containerInfo),Wn(o,u),Fi=m,Kn(u),d&4&&l!==null&&l.memoizedState.isDehydrated)try{Vl(o.containerInfo)}catch(ee){ct(u,u.return,ee)}Ap&&(Ap=!1,i3(u));break;case 4:d=Fi,Fi=td(u.stateNode.containerInfo),Wn(o,u),Kn(u),Fi=d;break;case 12:Wn(o,u),Kn(u);break;case 13:Wn(o,u),Kn(u),u.child.flags&8192&&u.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Mp=at()),d&4&&(d=u.updateQueue,d!==null&&(u.updateQueue=null,wp(u,d)));break;case 22:m=u.memoizedState!==null;var F=l!==null&&l.memoizedState!==null,X=uu,ue=kt;if(uu=X||m,kt=ue||F,Wn(o,u),kt=ue,uu=X,Kn(u),d&8192)e:for(o=u.stateNode,o._visibility=m?o._visibility&-2:o._visibility|1,m&&(l===null||F||uu||kt||Po(u)),l=null,o=u;;){if(o.tag===5||o.tag===26){if(l===null){F=l=o;try{if(b=F.stateNode,m)w=b.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{O=F.stateNode;var ce=F.memoizedProps.style,J=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;O.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(ee){ct(F,F.return,ee)}}}else if(o.tag===6){if(l===null){F=o;try{F.stateNode.nodeValue=m?"":F.memoizedProps}catch(ee){ct(F,F.return,ee)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===u)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===u)break e;for(;o.sibling===null;){if(o.return===null||o.return===u)break e;l===o&&(l=null),o=o.return}l===o&&(l=null),o.sibling.return=o.return,o=o.sibling}d&4&&(d=u.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,wp(u,l))));break;case 19:Wn(o,u),Kn(u),d&4&&(d=u.updateQueue,d!==null&&(u.updateQueue=null,wp(u,d)));break;case 30:break;case 21:break;default:Wn(o,u),Kn(u)}}function Kn(u){var o=u.flags;if(o&2){try{for(var l,d=u.return;d!==null;){if(Xb(d)){l=d;break}d=d.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,b=_p(u);Uf(u,b,m);break;case 5:var w=l.stateNode;l.flags&32&&(lr(w,""),l.flags&=-33);var O=_p(u);Uf(u,O,w);break;case 3:case 4:var F=l.stateNode.containerInfo,X=_p(u);Cp(u,X,F);break;default:throw Error(i(161))}}catch(ue){ct(u,u.return,ue)}u.flags&=-3}o&4096&&(u.flags&=-4097)}function i3(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var o=u;i3(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),u=u.sibling}}function qu(u,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)Kb(u,o.alternate,o),o=o.sibling}function Po(u){for(u=u.child;u!==null;){var o=u;switch(o.tag){case 0:case 11:case 14:case 15:zu(4,o,o.return),Po(o);break;case 1:hr(o,o.return);var l=o.stateNode;typeof l.componentWillUnmount=="function"&&Yb(o,o.return,l),Po(o);break;case 27:Rl(o.stateNode);case 26:case 5:hr(o,o.return),Po(o);break;case 22:o.memoizedState===null&&Po(o);break;case 30:Po(o);break;default:Po(o)}u=u.sibling}}function Hu(u,o,l){for(l=l&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var d=o.alternate,m=u,b=o,w=b.flags;switch(b.tag){case 0:case 11:case 15:Hu(m,b,l),El(4,b);break;case 1:if(Hu(m,b,l),d=b,m=d.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(X){ct(d,d.return,X)}if(d=b,m=d.updateQueue,m!==null){var O=d.stateNode;try{var F=m.shared.hiddenCallbacks;if(F!==null)for(m.shared.hiddenCallbacks=null,m=0;m<F.length;m++)ky(F[m],O)}catch(X){ct(d,d.return,X)}}l&&w&64&&Gb(b),Tl(b,b.return);break;case 27:Zb(b);case 26:case 5:Hu(m,b,l),l&&d===null&&w&4&&Qb(b),Tl(b,b.return);break;case 12:Hu(m,b,l);break;case 13:Hu(m,b,l),l&&w&4&&t3(m,b);break;case 22:b.memoizedState===null&&Hu(m,b,l),Tl(b,b.return);break;case 30:break;default:Hu(m,b,l)}o=o.sibling}}function Dp(u,o){var l=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(l=u.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==l&&(u!=null&&u.refCount++,l!=null&&sl(l))}function Np(u,o){u=null,o.alternate!==null&&(u=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==u&&(o.refCount++,u!=null&&sl(u))}function pr(u,o,l,d){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)r3(u,o,l,d),o=o.sibling}function r3(u,o,l,d){var m=o.flags;switch(o.tag){case 0:case 11:case 15:pr(u,o,l,d),m&2048&&El(9,o);break;case 1:pr(u,o,l,d);break;case 3:pr(u,o,l,d),m&2048&&(u=null,o.alternate!==null&&(u=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==u&&(o.refCount++,u!=null&&sl(u)));break;case 12:if(m&2048){pr(u,o,l,d),u=o.stateNode;try{var b=o.memoizedProps,w=b.id,O=b.onPostCommit;typeof O=="function"&&O(w,o.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(F){ct(o,o.return,F)}}else pr(u,o,l,d);break;case 13:pr(u,o,l,d);break;case 23:break;case 22:b=o.stateNode,w=o.alternate,o.memoizedState!==null?b._visibility&2?pr(u,o,l,d):Sl(u,o):b._visibility&2?pr(u,o,l,d):(b._visibility|=2,Bs(u,o,l,d,(o.subtreeFlags&10256)!==0)),m&2048&&Dp(w,o);break;case 24:pr(u,o,l,d),m&2048&&Np(o.alternate,o);break;default:pr(u,o,l,d)}}function Bs(u,o,l,d,m){for(m=m&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var b=u,w=o,O=l,F=d,X=w.flags;switch(w.tag){case 0:case 11:case 15:Bs(b,w,O,F,m),El(8,w);break;case 23:break;case 22:var ue=w.stateNode;w.memoizedState!==null?ue._visibility&2?Bs(b,w,O,F,m):Sl(b,w):(ue._visibility|=2,Bs(b,w,O,F,m)),m&&X&2048&&Dp(w.alternate,w);break;case 24:Bs(b,w,O,F,m),m&&X&2048&&Np(w.alternate,w);break;default:Bs(b,w,O,F,m)}o=o.sibling}}function Sl(u,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var l=u,d=o,m=d.flags;switch(d.tag){case 22:Sl(l,d),m&2048&&Dp(d.alternate,d);break;case 24:Sl(l,d),m&2048&&Np(d.alternate,d);break;default:Sl(l,d)}o=o.sibling}}var _l=8192;function Us(u){if(u.subtreeFlags&_l)for(u=u.child;u!==null;)u3(u),u=u.sibling}function u3(u){switch(u.tag){case 26:Us(u),u.flags&_l&&u.memoizedState!==null&&mw(Fi,u.memoizedState,u.memoizedProps);break;case 5:Us(u);break;case 3:case 4:var o=Fi;Fi=td(u.stateNode.containerInfo),Us(u),Fi=o;break;case 22:u.memoizedState===null&&(o=u.alternate,o!==null&&o.memoizedState!==null?(o=_l,_l=16777216,Us(u),_l=o):Us(u));break;default:Us(u)}}function o3(u){var o=u.alternate;if(o!==null&&(u=o.child,u!==null)){o.child=null;do o=u.sibling,u.sibling=null,u=o;while(u!==null)}}function Cl(u){var o=u.deletions;if((u.flags&16)!==0){if(o!==null)for(var l=0;l<o.length;l++){var d=o[l];Jt=d,a3(d,u)}o3(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)s3(u),u=u.sibling}function s3(u){switch(u.tag){case 0:case 11:case 15:Cl(u),u.flags&2048&&zu(9,u,u.return);break;case 3:Cl(u);break;case 12:Cl(u);break;case 22:var o=u.stateNode;u.memoizedState!==null&&o._visibility&2&&(u.return===null||u.return.tag!==13)?(o._visibility&=-3,zf(u)):Cl(u);break;default:Cl(u)}}function zf(u){var o=u.deletions;if((u.flags&16)!==0){if(o!==null)for(var l=0;l<o.length;l++){var d=o[l];Jt=d,a3(d,u)}o3(u)}for(u=u.child;u!==null;){switch(o=u,o.tag){case 0:case 11:case 15:zu(8,o,o.return),zf(o);break;case 22:l=o.stateNode,l._visibility&2&&(l._visibility&=-3,zf(o));break;default:zf(o)}u=u.sibling}}function a3(u,o){for(;Jt!==null;){var l=Jt;switch(l.tag){case 0:case 11:case 15:zu(8,l,o);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var d=l.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:sl(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,Jt=d;else e:for(l=u;Jt!==null;){d=Jt;var m=d.sibling,b=d.return;if(Jb(d),d===l){Jt=null;break e}if(m!==null){m.return=b,Jt=m;break e}Jt=b}}}var R7={getCacheForType:function(u){var o=xn(Gt),l=o.data.get(u);return l===void 0&&(l=u(),o.data.set(u,l)),l}},k7=typeof WeakMap=="function"?WeakMap:Map,nt=0,ht=null,Ve=null,Ye=0,it=0,Jn=null,Gu=!1,zs=!1,Op=!1,su=0,wt=0,Yu=0,Vo=0,Rp=0,vi=0,qs=0,Al=null,Pn=null,kp=!1,Mp=0,qf=1/0,Hf=null,Qu=null,dn=0,Xu=null,Hs=null,Gs=0,Lp=0,Ip=null,l3=null,wl=0,Fp=null;function ei(){if((nt&2)!==0&&Ye!==0)return Ye&-Ye;if(I.T!==null){var u=Ms;return u!==0?u:zp()}return Pr()}function c3(){vi===0&&(vi=(Ye&536870912)===0||Ke?yo():536870912);var u=gi.current;return u!==null&&(u.flags|=32),vi}function ti(u,o,l){(u===ht&&(it===2||it===9)||u.cancelPendingCommit!==null)&&(Ys(u,0),Zu(u,Ye,vi,!1)),ci(u,l),((nt&2)===0||u!==ht)&&(u===ht&&((nt&2)===0&&(Vo|=l),wt===4&&Zu(u,Ye,vi,!1)),mr(u))}function f3(u,o,l){if((nt&6)!==0)throw Error(i(327));var d=!l&&(o&124)===0&&(o&u.expiredLanes)===0||li(u,o),m=d?I7(u,o):Vp(u,o,!0),b=d;do{if(m===0){zs&&!d&&Zu(u,o,0,!1);break}else{if(l=u.current.alternate,b&&!M7(l)){m=Vp(u,o,!1),b=!1;continue}if(m===2){if(b=o,u.errorRecoveryDisabledLanes&b)var w=0;else w=u.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){o=w;e:{var O=u;m=Al;var F=O.current.memoizedState.isDehydrated;if(F&&(Ys(O,w).flags|=256),w=Vp(O,w,!1),w!==2){if(Op&&!F){O.errorRecoveryDisabledLanes|=b,Vo|=b,m=4;break e}b=Pn,Pn=m,b!==null&&(Pn===null?Pn=b:Pn.push.apply(Pn,b))}m=w}if(b=!1,m!==2)continue}}if(m===1){Ys(u,0),Zu(u,o,0,!0);break}e:{switch(d=u,b=m,b){case 0:case 1:throw Error(i(345));case 4:if((o&4194048)!==o)break;case 6:Zu(d,o,vi,!Gu);break e;case 2:Pn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((o&62914560)===o&&(m=Mp+300-at(),10<m)){if(Zu(d,o,vi,!Gu),er(d,0,!0)!==0)break e;d.timeoutHandle=$3(d3.bind(null,d,l,Pn,Hf,kp,o,vi,Vo,qs,Gu,b,2,-0,0),m);break e}d3(d,l,Pn,Hf,kp,o,vi,Vo,qs,Gu,b,0,-0,0)}}break}while(!0);mr(u)}function d3(u,o,l,d,m,b,w,O,F,X,ue,ce,J,ee){if(u.timeoutHandle=-1,ce=o.subtreeFlags,(ce&8192||(ce&16785408)===16785408)&&(Ll={stylesheets:null,count:0,unsuspend:pw},u3(o),ce=gw(),ce!==null)){u.cancelPendingCommit=ce(b3.bind(null,u,o,b,l,d,m,w,O,F,ue,1,J,ee)),Zu(u,b,w,!X);return}b3(u,o,b,l,d,m,w,O,F)}function M7(u){for(var o=u;;){var l=o.tag;if((l===0||l===11||l===15)&&o.flags&16384&&(l=o.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var m=l[d],b=m.getSnapshot;m=m.value;try{if(!Xn(b(),m))return!1}catch{return!1}}if(l=o.child,o.subtreeFlags&16384&&l!==null)l.return=o,o=l;else{if(o===u)break;for(;o.sibling===null;){if(o.return===null||o.return===u)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Zu(u,o,l,d){o&=~Rp,o&=~Vo,u.suspendedLanes|=o,u.pingedLanes&=~o,d&&(u.warmLanes|=o),d=u.expirationTimes;for(var m=o;0<m;){var b=31-Cn(m),w=1<<b;d[b]=-1,m&=~w}l!==0&&bo(u,l,o)}function Gf(){return(nt&6)===0?(Dl(0),!1):!0}function jp(){if(Ve!==null){if(it===0)var u=Ve.return;else u=Ve,Jr=Mo=null,ep(u),Vs=null,yl=0,u=Ve;for(;u!==null;)Hb(u.alternate,u),u=u.return;Ve=null}}function Ys(u,o){var l=u.timeoutHandle;l!==-1&&(u.timeoutHandle=-1,W7(l)),l=u.cancelPendingCommit,l!==null&&(u.cancelPendingCommit=null,l()),jp(),ht=u,Ve=l=Zr(u.current,null),Ye=o,it=0,Jn=null,Gu=!1,zs=li(u,o),Op=!1,qs=vi=Rp=Vo=Yu=wt=0,Pn=Al=null,kp=!1,(o&8)!==0&&(o|=o&32);var d=u.entangledLanes;if(d!==0)for(u=u.entanglements,d&=o;0<d;){var m=31-Cn(d),b=1<<m;o|=u[m],d&=~b}return su=o,pf(),l}function h3(u,o){je=null,I.H=Mf,o===ll||o===Sf?(o=Oy(),it=3):o===wy?(o=Oy(),it=4):it=o===Rb?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Jn=o,Ve===null&&(wt=1,Pf(u,di(o,u.current)))}function p3(){var u=I.H;return I.H=Mf,u===null?Mf:u}function m3(){var u=I.A;return I.A=R7,u}function Pp(){wt=4,Gu||(Ye&4194048)!==Ye&&gi.current!==null||(zs=!0),(Yu&134217727)===0&&(Vo&134217727)===0||ht===null||Zu(ht,Ye,vi,!1)}function Vp(u,o,l){var d=nt;nt|=2;var m=p3(),b=m3();(ht!==u||Ye!==o)&&(Hf=null,Ys(u,o)),o=!1;var w=wt;e:do try{if(it!==0&&Ve!==null){var O=Ve,F=Jn;switch(it){case 8:jp(),w=6;break e;case 3:case 2:case 9:case 6:gi.current===null&&(o=!0);var X=it;if(it=0,Jn=null,Qs(u,O,F,X),l&&zs){w=0;break e}break;default:X=it,it=0,Jn=null,Qs(u,O,F,X)}}L7(),w=wt;break}catch(ue){h3(u,ue)}while(!0);return o&&u.shellSuspendCounter++,Jr=Mo=null,nt=d,I.H=m,I.A=b,Ve===null&&(ht=null,Ye=0,pf()),w}function L7(){for(;Ve!==null;)g3(Ve)}function I7(u,o){var l=nt;nt|=2;var d=p3(),m=m3();ht!==u||Ye!==o?(Hf=null,qf=at()+500,Ys(u,o)):zs=li(u,o);e:do try{if(it!==0&&Ve!==null){o=Ve;var b=Jn;t:switch(it){case 1:it=0,Jn=null,Qs(u,o,b,1);break;case 2:case 9:if(Dy(b)){it=0,Jn=null,v3(o);break}o=function(){it!==2&&it!==9||ht!==u||(it=7),mr(u)},b.then(o,o);break e;case 3:it=7;break e;case 4:it=5;break e;case 7:Dy(b)?(it=0,Jn=null,v3(o)):(it=0,Jn=null,Qs(u,o,b,7));break;case 5:var w=null;switch(Ve.tag){case 26:w=Ve.memoizedState;case 5:case 27:var O=Ve;if(!w||K3(w)){it=0,Jn=null;var F=O.sibling;if(F!==null)Ve=F;else{var X=O.return;X!==null?(Ve=X,Yf(X)):Ve=null}break t}}it=0,Jn=null,Qs(u,o,b,5);break;case 6:it=0,Jn=null,Qs(u,o,b,6);break;case 8:jp(),wt=6;break e;default:throw Error(i(462))}}F7();break}catch(ue){h3(u,ue)}while(!0);return Jr=Mo=null,I.H=d,I.A=m,nt=l,Ve!==null?0:(ht=null,Ye=0,pf(),wt)}function F7(){for(;Ve!==null&&!an();)g3(Ve)}function g3(u){var o=zb(u.alternate,u,su);u.memoizedProps=u.pendingProps,o===null?Yf(u):Ve=o}function v3(u){var o=u,l=o.alternate;switch(o.tag){case 15:case 0:o=jb(l,o,o.pendingProps,o.type,void 0,Ye);break;case 11:o=jb(l,o,o.pendingProps,o.type.render,o.ref,Ye);break;case 5:ep(o);default:Hb(l,o),o=Ve=yy(o,su),o=zb(l,o,su)}u.memoizedProps=u.pendingProps,o===null?Yf(u):Ve=o}function Qs(u,o,l,d){Jr=Mo=null,ep(o),Vs=null,yl=0;var m=o.return;try{if(C7(u,m,o,l,Ye)){wt=1,Pf(u,di(l,u.current)),Ve=null;return}}catch(b){if(m!==null)throw Ve=m,b;wt=1,Pf(u,di(l,u.current)),Ve=null;return}o.flags&32768?(Ke||d===1?u=!0:zs||(Ye&536870912)!==0?u=!1:(Gu=u=!0,(d===2||d===9||d===3||d===6)&&(d=gi.current,d!==null&&d.tag===13&&(d.flags|=16384))),y3(o,u)):Yf(o)}function Yf(u){var o=u;do{if((o.flags&32768)!==0){y3(o,Gu);return}u=o.return;var l=w7(o.alternate,o,su);if(l!==null){Ve=l;return}if(o=o.sibling,o!==null){Ve=o;return}Ve=o=u}while(o!==null);wt===0&&(wt=5)}function y3(u,o){do{var l=D7(u.alternate,u);if(l!==null){l.flags&=32767,Ve=l;return}if(l=u.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!o&&(u=u.sibling,u!==null)){Ve=u;return}Ve=u=l}while(u!==null);wt=6,Ve=null}function b3(u,o,l,d,m,b,w,O,F){u.cancelPendingCommit=null;do Qf();while(dn!==0);if((nt&6)!==0)throw Error(i(327));if(o!==null){if(o===u.current)throw Error(i(177));if(b=o.lanes|o.childLanes,b|=Nh,Eu(u,l,b,w,O,F),u===ht&&(Ve=ht=null,Ye=0),Hs=o,Xu=u,Gs=l,Lp=b,Ip=m,l3=d,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,$7(ke,function(){return _3(),null})):(u.callbackNode=null,u.callbackPriority=0),d=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||d){d=I.T,I.T=null,m=z.p,z.p=2,w=nt,nt|=4;try{N7(u,o,l)}finally{nt=w,z.p=m,I.T=d}}dn=1,x3(),E3(),T3()}}function x3(){if(dn===1){dn=0;var u=Xu,o=Hs,l=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||l){l=I.T,I.T=null;var d=z.p;z.p=2;var m=nt;nt|=4;try{n3(o,u);var b=Wp,w=ay(u.containerInfo),O=b.focusedElem,F=b.selectionRange;if(w!==O&&O&&O.ownerDocument&&sy(O.ownerDocument.documentElement,O)){if(F!==null&&_h(O)){var X=F.start,ue=F.end;if(ue===void 0&&(ue=X),"selectionStart"in O)O.selectionStart=X,O.selectionEnd=Math.min(ue,O.value.length);else{var ce=O.ownerDocument||document,J=ce&&ce.defaultView||window;if(J.getSelection){var ee=J.getSelection(),Ne=O.textContent.length,Ae=Math.min(F.start,Ne),ot=F.end===void 0?Ae:Math.min(F.end,Ne);!ee.extend&&Ae>ot&&(w=ot,ot=Ae,Ae=w);var q=oy(O,Ae),B=oy(O,ot);if(q&&B&&(ee.rangeCount!==1||ee.anchorNode!==q.node||ee.anchorOffset!==q.offset||ee.focusNode!==B.node||ee.focusOffset!==B.offset)){var Q=ce.createRange();Q.setStart(q.node,q.offset),ee.removeAllRanges(),Ae>ot?(ee.addRange(Q),ee.extend(B.node,B.offset)):(Q.setEnd(B.node,B.offset),ee.addRange(Q))}}}}for(ce=[],ee=O;ee=ee.parentNode;)ee.nodeType===1&&ce.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<ce.length;O++){var ae=ce[O];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}od=!!Zp,Wp=Zp=null}finally{nt=m,z.p=d,I.T=l}}u.current=o,dn=2}}function E3(){if(dn===2){dn=0;var u=Xu,o=Hs,l=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||l){l=I.T,I.T=null;var d=z.p;z.p=2;var m=nt;nt|=4;try{Kb(u,o.alternate,o)}finally{nt=m,z.p=d,I.T=l}}dn=3}}function T3(){if(dn===4||dn===3){dn=0,ln();var u=Xu,o=Hs,l=Gs,d=l3;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?dn=5:(dn=0,Hs=Xu=null,S3(u,u.pendingLanes));var m=u.pendingLanes;if(m===0&&(Qu=null),Tu(l),o=o.stateNode,cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(Ki,o,void 0,(o.current.flags&128)===128)}catch{}if(d!==null){o=I.T,m=z.p,z.p=2,I.T=null;try{for(var b=u.onRecoverableError,w=0;w<d.length;w++){var O=d[w];b(O.value,{componentStack:O.stack})}}finally{I.T=o,z.p=m}}(Gs&3)!==0&&Qf(),mr(u),m=u.pendingLanes,(l&4194090)!==0&&(m&42)!==0?u===Fp?wl++:(wl=0,Fp=u):wl=0,Dl(0)}}function S3(u,o){(u.pooledCacheLanes&=o)===0&&(o=u.pooledCache,o!=null&&(u.pooledCache=null,sl(o)))}function Qf(u){return x3(),E3(),T3(),_3()}function _3(){if(dn!==5)return!1;var u=Xu,o=Lp;Lp=0;var l=Tu(Gs),d=I.T,m=z.p;try{z.p=32>l?32:l,I.T=null,l=Ip,Ip=null;var b=Xu,w=Gs;if(dn=0,Hs=Xu=null,Gs=0,(nt&6)!==0)throw Error(i(331));var O=nt;if(nt|=4,s3(b.current),r3(b,b.current,w,l),nt=O,Dl(0,!1),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(Ki,b)}catch{}return!0}finally{z.p=m,I.T=d,S3(u,o)}}function C3(u,o,l){o=di(l,o),o=pp(u.stateNode,o,2),u=Vu(u,o,2),u!==null&&(ci(u,2),mr(u))}function ct(u,o,l){if(u.tag===3)C3(u,u,l);else for(;o!==null;){if(o.tag===3){C3(o,u,l);break}else if(o.tag===1){var d=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Qu===null||!Qu.has(d))){u=di(l,u),l=Nb(2),d=Vu(o,l,2),d!==null&&(Ob(l,d,o,u),ci(d,2),mr(d));break}}o=o.return}}function $p(u,o,l){var d=u.pingCache;if(d===null){d=u.pingCache=new k7;var m=new Set;d.set(o,m)}else m=d.get(o),m===void 0&&(m=new Set,d.set(o,m));m.has(l)||(Op=!0,m.add(l),u=j7.bind(null,u,o,l),o.then(u,u))}function j7(u,o,l){var d=u.pingCache;d!==null&&d.delete(o),u.pingedLanes|=u.suspendedLanes&l,u.warmLanes&=~l,ht===u&&(Ye&l)===l&&(wt===4||wt===3&&(Ye&62914560)===Ye&&300>at()-Mp?(nt&2)===0&&Ys(u,0):Rp|=l,qs===Ye&&(qs=0)),mr(u)}function A3(u,o){o===0&&(o=xs()),u=Ns(u,o),u!==null&&(ci(u,o),mr(u))}function P7(u){var o=u.memoizedState,l=0;o!==null&&(l=o.retryLane),A3(u,l)}function V7(u,o){var l=0;switch(u.tag){case 13:var d=u.stateNode,m=u.memoizedState;m!==null&&(l=m.retryLane);break;case 19:d=u.stateNode;break;case 22:d=u.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(o),A3(u,l)}function $7(u,o){return _e(u,o)}var Xf=null,Xs=null,Bp=!1,Zf=!1,Up=!1,$o=0;function mr(u){u!==Xs&&u.next===null&&(Xs===null?Xf=Xs=u:Xs=Xs.next=u),Zf=!0,Bp||(Bp=!0,U7())}function Dl(u,o){if(!Up&&Zf){Up=!0;do for(var l=!1,d=Xf;d!==null;){if(u!==0){var m=d.pendingLanes;if(m===0)var b=0;else{var w=d.suspendedLanes,O=d.pingedLanes;b=(1<<31-Cn(42|u)+1)-1,b&=m&~(w&~O),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(l=!0,O3(d,b))}else b=Ye,b=er(d,d===ht?b:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(b&3)===0||li(d,b)||(l=!0,O3(d,b));d=d.next}while(l);Up=!1}}function B7(){w3()}function w3(){Zf=Bp=!1;var u=0;$o!==0&&(Z7()&&(u=$o),$o=0);for(var o=at(),l=null,d=Xf;d!==null;){var m=d.next,b=D3(d,o);b===0?(d.next=null,l===null?Xf=m:l.next=m,m===null&&(Xs=l)):(l=d,(u!==0||(b&3)!==0)&&(Zf=!0)),d=m}Dl(u)}function D3(u,o){for(var l=u.suspendedLanes,d=u.pingedLanes,m=u.expirationTimes,b=u.pendingLanes&-62914561;0<b;){var w=31-Cn(b),O=1<<w,F=m[w];F===-1?((O&l)===0||(O&d)!==0)&&(m[w]=xu(O,o)):F<=o&&(u.expiredLanes|=O),b&=~O}if(o=ht,l=Ye,l=er(u,u===o?l:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),d=u.callbackNode,l===0||u===o&&(it===2||it===9)||u.cancelPendingCommit!==null)return d!==null&&d!==null&>(d),u.callbackNode=null,u.callbackPriority=0;if((l&3)===0||li(u,l)){if(o=l&-l,o===u.callbackPriority)return o;switch(d!==null&>(d),Tu(l)){case 2:case 8:l=De;break;case 32:l=ke;break;case 268435456:l=He;break;default:l=ke}return d=N3.bind(null,u),l=_e(l,d),u.callbackPriority=o,u.callbackNode=l,o}return d!==null&&d!==null&>(d),u.callbackPriority=2,u.callbackNode=null,2}function N3(u,o){if(dn!==0&&dn!==5)return u.callbackNode=null,u.callbackPriority=0,null;var l=u.callbackNode;if(Qf()&&u.callbackNode!==l)return null;var d=Ye;return d=er(u,u===ht?d:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),d===0?null:(f3(u,d,o),D3(u,at()),u.callbackNode!=null&&u.callbackNode===l?N3.bind(null,u):null)}function O3(u,o){if(Qf())return null;f3(u,o,!0)}function U7(){K7(function(){(nt&6)!==0?_e(Le,B7):w3()})}function zp(){return $o===0&&($o=yo()),$o}function R3(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:lt(""+u)}function k3(u,o){var l=o.ownerDocument.createElement("input");return l.name=o.name,l.value=o.value,u.id&&l.setAttribute("form",u.id),o.parentNode.insertBefore(l,o),u=new FormData(u),l.parentNode.removeChild(l),u}function z7(u,o,l,d,m){if(o==="submit"&&l&&l.stateNode===m){var b=R3((m[Ot]||null).action),w=d.submitter;w&&(o=(o=w[Ot]||null)?R3(o.formAction):w.getAttribute("formAction"),o!==null&&(b=o,w=null));var O=new ff("action","action",null,d,m);u.push({event:O,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if($o!==0){var F=w?k3(m,w):new FormData(m);lp(l,{pending:!0,data:F,method:m.method,action:b},null,F)}}else typeof b=="function"&&(O.preventDefault(),F=w?k3(m,w):new FormData(m),lp(l,{pending:!0,data:F,method:m.method,action:b},b,F))},currentTarget:m}]})}}for(var qp=0;qp<Dh.length;qp++){var Hp=Dh[qp],q7=Hp.toLowerCase(),H7=Hp[0].toUpperCase()+Hp.slice(1);Ii(q7,"on"+H7)}Ii(fy,"onAnimationEnd"),Ii(dy,"onAnimationIteration"),Ii(hy,"onAnimationStart"),Ii("dblclick","onDoubleClick"),Ii("focusin","onFocus"),Ii("focusout","onBlur"),Ii(a7,"onTransitionRun"),Ii(l7,"onTransitionStart"),Ii(c7,"onTransitionCancel"),Ii(py,"onTransitionEnd"),rr("onMouseEnter",["mouseout","mouseover"]),rr("onMouseLeave",["mouseout","mouseover"]),rr("onPointerEnter",["pointerout","pointerover"]),rr("onPointerLeave",["pointerout","pointerover"]),Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nl="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(" "),G7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nl));function M3(u,o){o=(o&4)!==0;for(var l=0;l<u.length;l++){var d=u[l],m=d.event;d=d.listeners;e:{var b=void 0;if(o)for(var w=d.length-1;0<=w;w--){var O=d[w],F=O.instance,X=O.currentTarget;if(O=O.listener,F!==b&&m.isPropagationStopped())break e;b=O,m.currentTarget=X;try{b(m)}catch(ue){jf(ue)}m.currentTarget=null,b=F}else for(w=0;w<d.length;w++){if(O=d[w],F=O.instance,X=O.currentTarget,O=O.listener,F!==b&&m.isPropagationStopped())break e;b=O,m.currentTarget=X;try{b(m)}catch(ue){jf(ue)}m.currentTarget=null,b=F}}}}function $e(u,o){var l=o[_u];l===void 0&&(l=o[_u]=new Set);var d=u+"__bubble";l.has(d)||(L3(o,u,2,!1),l.add(d))}function Gp(u,o,l){var d=0;o&&(d|=4),L3(l,u,d,o)}var Wf="_reactListening"+Math.random().toString(36).slice(2);function Yp(u){if(!u[Wf]){u[Wf]=!0,Vr.forEach(function(l){l!=="selectionchange"&&(G7.has(l)||Gp(l,!1,u),Gp(l,!0,u))});var o=u.nodeType===9?u:u.ownerDocument;o===null||o[Wf]||(o[Wf]=!0,Gp("selectionchange",!1,o))}}function L3(u,o,l,d){switch(rx(o)){case 2:var m=bw;break;case 8:m=xw;break;default:m=s1}l=m.bind(null,o,l,u),m=void 0,!mh||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(m=!0),d?m!==void 0?u.addEventListener(o,l,{capture:!0,passive:m}):u.addEventListener(o,l,!0):m!==void 0?u.addEventListener(o,l,{passive:m}):u.addEventListener(o,l,!1)}function Qp(u,o,l,d,m){var b=d;if((o&1)===0&&(o&2)===0&&d!==null)e:for(;;){if(d===null)return;var w=d.tag;if(w===3||w===4){var O=d.stateNode.containerInfo;if(O===m)break;if(w===4)for(w=d.return;w!==null;){var F=w.tag;if((F===3||F===4)&&w.stateNode.containerInfo===m)return;w=w.return}for(;O!==null;){if(w=ki(O),w===null)return;if(F=w.tag,F===5||F===6||F===26||F===27){d=b=w;continue e}O=O.parentNode}}d=d.return}Bv(function(){var X=b,ue=yn(l),ce=[];e:{var J=my.get(u);if(J!==void 0){var ee=ff,Ne=u;switch(u){case"keypress":if(lf(l)===0)break e;case"keydown":case"keyup":ee=$A;break;case"focusin":Ne="focus",ee=bh;break;case"focusout":Ne="blur",ee=bh;break;case"beforeblur":case"afterblur":ee=bh;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=qv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=DA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=zA;break;case fy:case dy:case hy:ee=RA;break;case py:ee=HA;break;case"scroll":case"scrollend":ee=AA;break;case"wheel":ee=YA;break;case"copy":case"cut":case"paste":ee=MA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=Gv;break;case"toggle":case"beforetoggle":ee=XA}var Ae=(o&4)!==0,ot=!Ae&&(u==="scroll"||u==="scrollend"),q=Ae?J!==null?J+"Capture":null:J;Ae=[];for(var B=X,Q;B!==null;){var ae=B;if(Q=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||Q===null||q===null||(ae=Qa(B,q),ae!=null&&Ae.push(Ol(B,ae,Q))),ot)break;B=B.return}0<Ae.length&&(J=new ee(J,Ne,null,l,ue),ce.push({event:J,listeners:Ae}))}}if((o&7)===0){e:{if(J=u==="mouseover"||u==="pointerover",ee=u==="mouseout"||u==="pointerout",J&&l!==Pt&&(Ne=l.relatedTarget||l.fromElement)&&(ki(Ne)||Ne[qn]))break e;if((ee||J)&&(J=ue.window===ue?ue:(J=ue.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(Ne=l.relatedTarget||l.toElement,ee=X,Ne=Ne?ki(Ne):null,Ne!==null&&(ot=s(Ne),Ae=Ne.tag,Ne!==ot||Ae!==5&&Ae!==27&&Ae!==6)&&(Ne=null)):(ee=null,Ne=X),ee!==Ne)){if(Ae=qv,ae="onMouseLeave",q="onMouseEnter",B="mouse",(u==="pointerout"||u==="pointerover")&&(Ae=Gv,ae="onPointerLeave",q="onPointerEnter",B="pointer"),ot=ee==null?J:fi(ee),Q=Ne==null?J:fi(Ne),J=new Ae(ae,B+"leave",ee,l,ue),J.target=ot,J.relatedTarget=Q,ae=null,ki(ue)===X&&(Ae=new Ae(q,B+"enter",Ne,l,ue),Ae.target=Q,Ae.relatedTarget=ot,ae=Ae),ot=ae,ee&&Ne)t:{for(Ae=ee,q=Ne,B=0,Q=Ae;Q;Q=Zs(Q))B++;for(Q=0,ae=q;ae;ae=Zs(ae))Q++;for(;0<B-Q;)Ae=Zs(Ae),B--;for(;0<Q-B;)q=Zs(q),Q--;for(;B--;){if(Ae===q||q!==null&&Ae===q.alternate)break t;Ae=Zs(Ae),q=Zs(q)}Ae=null}else Ae=null;ee!==null&&I3(ce,J,ee,Ae,!1),Ne!==null&&ot!==null&&I3(ce,ot,Ne,Ae,!0)}}e:{if(J=X?fi(X):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var ve=ey;else if(Kv(J))if(ty)ve=u7;else{ve=i7;var Pe=n7}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?X&&cr(X.elementType)&&(ve=ey):ve=r7;if(ve&&(ve=ve(u,X))){Jv(ce,ve,l,ue);break e}Pe&&Pe(u,J,X),u==="focusout"&&X&&J.type==="number"&&X.memoizedProps.value!=null&&ar(J,"number",J.value)}switch(Pe=X?fi(X):window,u){case"focusin":(Kv(Pe)||Pe.contentEditable==="true")&&(As=Pe,Ch=X,nl=null);break;case"focusout":nl=Ch=As=null;break;case"mousedown":Ah=!0;break;case"contextmenu":case"mouseup":case"dragend":Ah=!1,ly(ce,l,ue);break;case"selectionchange":if(s7)break;case"keydown":case"keyup":ly(ce,l,ue)}var Ee;if(Eh)e:{switch(u){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Cs?Zv(u,l)&&(we="onCompositionEnd"):u==="keydown"&&l.keyCode===229&&(we="onCompositionStart");we&&(Yv&&l.locale!=="ko"&&(Cs||we!=="onCompositionStart"?we==="onCompositionEnd"&&Cs&&(Ee=Uv()):(Iu=ue,gh="value"in Iu?Iu.value:Iu.textContent,Cs=!0)),Pe=Kf(X,we),0<Pe.length&&(we=new Hv(we,u,null,l,ue),ce.push({event:we,listeners:Pe}),Ee?we.data=Ee:(Ee=Wv(l),Ee!==null&&(we.data=Ee)))),(Ee=WA?KA(u,l):JA(u,l))&&(we=Kf(X,"onBeforeInput"),0<we.length&&(Pe=new Hv("onBeforeInput","beforeinput",null,l,ue),ce.push({event:Pe,listeners:we}),Pe.data=Ee)),z7(ce,u,X,l,ue)}M3(ce,o)})}function Ol(u,o,l){return{instance:u,listener:o,currentTarget:l}}function Kf(u,o){for(var l=o+"Capture",d=[];u!==null;){var m=u,b=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||b===null||(m=Qa(u,l),m!=null&&d.unshift(Ol(u,m,b)),m=Qa(u,o),m!=null&&d.push(Ol(u,m,b))),u.tag===3)return d;u=u.return}return[]}function Zs(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function I3(u,o,l,d,m){for(var b=o._reactName,w=[];l!==null&&l!==d;){var O=l,F=O.alternate,X=O.stateNode;if(O=O.tag,F!==null&&F===d)break;O!==5&&O!==26&&O!==27||X===null||(F=X,m?(X=Qa(l,b),X!=null&&w.unshift(Ol(l,X,F))):m||(X=Qa(l,b),X!=null&&w.push(Ol(l,X,F)))),l=l.return}w.length!==0&&u.push({event:o,listeners:w})}var Y7=/\r\n?/g,Q7=/\u0000|\uFFFD/g;function F3(u){return(typeof u=="string"?u:""+u).replace(Y7,`
|
|
50
|
+
`).replace(Q7,"")}function j3(u,o){return o=F3(o),F3(u)===o}function Jf(){}function ut(u,o,l,d,m,b){switch(l){case"children":typeof d=="string"?o==="body"||o==="textarea"&&d===""||lr(u,d):(typeof d=="number"||typeof d=="bigint")&&o!=="body"&&lr(u,""+d);break;case"className":Nu(u,"class",d);break;case"tabIndex":Nu(u,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Nu(u,l,d);break;case"style":Qr(u,d,b);break;case"data":if(o!=="object"){Nu(u,"data",d);break}case"src":case"href":if(d===""&&(o!=="a"||l!=="href")){u.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){u.removeAttribute(l);break}d=lt(""+d),u.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){u.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(l==="formAction"?(o!=="input"&&ut(u,o,"name",m.name,m,null),ut(u,o,"formEncType",m.formEncType,m,null),ut(u,o,"formMethod",m.formMethod,m,null),ut(u,o,"formTarget",m.formTarget,m,null)):(ut(u,o,"encType",m.encType,m,null),ut(u,o,"method",m.method,m,null),ut(u,o,"target",m.target,m,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){u.removeAttribute(l);break}d=lt(""+d),u.setAttribute(l,d);break;case"onClick":d!=null&&(u.onclick=Jf);break;case"onScroll":d!=null&&$e("scroll",u);break;case"onScrollEnd":d!=null&&$e("scrollend",u);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(l=d.__html,l!=null){if(m.children!=null)throw Error(i(60));u.innerHTML=l}}break;case"multiple":u.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":u.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){u.removeAttribute("xlink:href");break}l=lt(""+d),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?u.setAttribute(l,""+d):u.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?u.setAttribute(l,""):u.removeAttribute(l);break;case"capture":case"download":d===!0?u.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?u.setAttribute(l,d):u.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?u.setAttribute(l,d):u.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?u.removeAttribute(l):u.setAttribute(l,d);break;case"popover":$e("beforetoggle",u),$e("toggle",u),Mi(u,"popover",d);break;case"xlinkActuate":Gn(u,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Gn(u,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Gn(u,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Gn(u,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Gn(u,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Gn(u,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Gn(u,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Gn(u,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Gn(u,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Mi(u,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=_s.get(l)||l,Mi(u,l,d))}}function Xp(u,o,l,d,m,b){switch(l){case"style":Qr(u,d,b);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(l=d.__html,l!=null){if(m.children!=null)throw Error(i(60));u.innerHTML=l}}break;case"children":typeof d=="string"?lr(u,d):(typeof d=="number"||typeof d=="bigint")&&lr(u,""+d);break;case"onScroll":d!=null&&$e("scroll",u);break;case"onScrollEnd":d!=null&&$e("scrollend",u);break;case"onClick":d!=null&&(u.onclick=Jf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$r.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),o=l.slice(2,m?l.length-7:void 0),b=u[Ot]||null,b=b!=null?b[l]:null,typeof b=="function"&&u.removeEventListener(o,b,m),typeof d=="function")){typeof b!="function"&&b!==null&&(l in u?u[l]=null:u.hasAttribute(l)&&u.removeAttribute(l)),u.addEventListener(o,d,m);break e}l in u?u[l]=d:d===!0?u.setAttribute(l,""):Mi(u,l,d)}}}function hn(u,o,l){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",u),$e("load",u);var d=!1,m=!1,b;for(b in l)if(l.hasOwnProperty(b)){var w=l[b];if(w!=null)switch(b){case"src":d=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:ut(u,o,b,w,l,null)}}m&&ut(u,o,"srcSet",l.srcSet,l,null),d&&ut(u,o,"src",l.src,l,null);return;case"input":$e("invalid",u);var O=b=w=m=null,F=null,X=null;for(d in l)if(l.hasOwnProperty(d)){var ue=l[d];if(ue!=null)switch(d){case"name":m=ue;break;case"type":w=ue;break;case"checked":F=ue;break;case"defaultChecked":X=ue;break;case"value":b=ue;break;case"defaultValue":O=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,o));break;default:ut(u,o,d,ue,l,null)}}So(u,b,O,F,X,w,m,!1),Li(u);return;case"select":$e("invalid",u),d=w=b=null;for(m in l)if(l.hasOwnProperty(m)&&(O=l[m],O!=null))switch(m){case"value":b=O;break;case"defaultValue":w=O;break;case"multiple":d=O;default:ut(u,o,m,O,l,null)}o=b,l=w,u.multiple=!!d,o!=null?Qn(u,!!d,o,!1):l!=null&&Qn(u,!!d,l,!0);return;case"textarea":$e("invalid",u),b=m=d=null;for(w in l)if(l.hasOwnProperty(w)&&(O=l[w],O!=null))switch(w){case"value":d=O;break;case"defaultValue":m=O;break;case"children":b=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:ut(u,o,w,O,l,null)}Ss(u,d,m,b),Li(u);return;case"option":for(F in l)if(l.hasOwnProperty(F)&&(d=l[F],d!=null))switch(F){case"selected":u.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ut(u,o,F,d,l,null)}return;case"dialog":$e("beforetoggle",u),$e("toggle",u),$e("cancel",u),$e("close",u);break;case"iframe":case"object":$e("load",u);break;case"video":case"audio":for(d=0;d<Nl.length;d++)$e(Nl[d],u);break;case"image":$e("error",u),$e("load",u);break;case"details":$e("toggle",u);break;case"embed":case"source":case"link":$e("error",u),$e("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(X in l)if(l.hasOwnProperty(X)&&(d=l[X],d!=null))switch(X){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:ut(u,o,X,d,l,null)}return;default:if(cr(o)){for(ue in l)l.hasOwnProperty(ue)&&(d=l[ue],d!==void 0&&Xp(u,o,ue,d,l,void 0));return}}for(O in l)l.hasOwnProperty(O)&&(d=l[O],d!=null&&ut(u,o,O,d,l,null))}function X7(u,o,l,d){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,b=null,w=null,O=null,F=null,X=null,ue=null;for(ee in l){var ce=l[ee];if(l.hasOwnProperty(ee)&&ce!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":F=ce;default:d.hasOwnProperty(ee)||ut(u,o,ee,null,d,ce)}}for(var J in d){var ee=d[J];if(ce=l[J],d.hasOwnProperty(J)&&(ee!=null||ce!=null))switch(J){case"type":b=ee;break;case"name":m=ee;break;case"checked":X=ee;break;case"defaultChecked":ue=ee;break;case"value":w=ee;break;case"defaultValue":O=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,o));break;default:ee!==ce&&ut(u,o,J,ee,d,ce)}}To(u,w,O,F,X,ue,b,m);return;case"select":ee=w=O=J=null;for(b in l)if(F=l[b],l.hasOwnProperty(b)&&F!=null)switch(b){case"value":break;case"multiple":ee=F;default:d.hasOwnProperty(b)||ut(u,o,b,null,d,F)}for(m in d)if(b=d[m],F=l[m],d.hasOwnProperty(m)&&(b!=null||F!=null))switch(m){case"value":J=b;break;case"defaultValue":O=b;break;case"multiple":w=b;default:b!==F&&ut(u,o,m,b,d,F)}o=O,l=w,d=ee,J!=null?Qn(u,!!l,J,!1):!!d!=!!l&&(o!=null?Qn(u,!!l,o,!0):Qn(u,!!l,l?[]:"",!1));return;case"textarea":ee=J=null;for(O in l)if(m=l[O],l.hasOwnProperty(O)&&m!=null&&!d.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:ut(u,o,O,null,d,m)}for(w in d)if(m=d[w],b=l[w],d.hasOwnProperty(w)&&(m!=null||b!=null))switch(w){case"value":J=m;break;case"defaultValue":ee=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==b&&ut(u,o,w,m,d,b)}_o(u,J,ee);return;case"option":for(var Ne in l)if(J=l[Ne],l.hasOwnProperty(Ne)&&J!=null&&!d.hasOwnProperty(Ne))switch(Ne){case"selected":u.selected=!1;break;default:ut(u,o,Ne,null,d,J)}for(F in d)if(J=d[F],ee=l[F],d.hasOwnProperty(F)&&J!==ee&&(J!=null||ee!=null))switch(F){case"selected":u.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:ut(u,o,F,J,d,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in l)J=l[Ae],l.hasOwnProperty(Ae)&&J!=null&&!d.hasOwnProperty(Ae)&&ut(u,o,Ae,null,d,J);for(X in d)if(J=d[X],ee=l[X],d.hasOwnProperty(X)&&J!==ee&&(J!=null||ee!=null))switch(X){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,o));break;default:ut(u,o,X,J,d,ee)}return;default:if(cr(o)){for(var ot in l)J=l[ot],l.hasOwnProperty(ot)&&J!==void 0&&!d.hasOwnProperty(ot)&&Xp(u,o,ot,void 0,d,J);for(ue in d)J=d[ue],ee=l[ue],!d.hasOwnProperty(ue)||J===ee||J===void 0&&ee===void 0||Xp(u,o,ue,J,d,ee);return}}for(var q in l)J=l[q],l.hasOwnProperty(q)&&J!=null&&!d.hasOwnProperty(q)&&ut(u,o,q,null,d,J);for(ce in d)J=d[ce],ee=l[ce],!d.hasOwnProperty(ce)||J===ee||J==null&&ee==null||ut(u,o,ce,J,d,ee)}var Zp=null,Wp=null;function ed(u){return u.nodeType===9?u:u.ownerDocument}function P3(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function V3(u,o){if(u===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&o==="foreignObject"?0:u}function Kp(u,o){return u==="textarea"||u==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Jp=null;function Z7(){var u=window.event;return u&&u.type==="popstate"?u===Jp?!1:(Jp=u,!0):(Jp=null,!1)}var $3=typeof setTimeout=="function"?setTimeout:void 0,W7=typeof clearTimeout=="function"?clearTimeout:void 0,B3=typeof Promise=="function"?Promise:void 0,K7=typeof queueMicrotask=="function"?queueMicrotask:typeof B3<"u"?function(u){return B3.resolve(null).then(u).catch(J7)}:$3;function J7(u){setTimeout(function(){throw u})}function Wu(u){return u==="head"}function U3(u,o){var l=o,d=0,m=0;do{var b=l.nextSibling;if(u.removeChild(l),b&&b.nodeType===8)if(l=b.data,l==="/$"){if(0<d&&8>d){l=d;var w=u.ownerDocument;if(l&1&&Rl(w.documentElement),l&2&&Rl(w.body),l&4)for(l=w.head,Rl(l),w=l.firstChild;w;){var O=w.nextSibling,F=w.nodeName;w[Eo]||F==="SCRIPT"||F==="STYLE"||F==="LINK"&&w.rel.toLowerCase()==="stylesheet"||l.removeChild(w),w=O}}if(m===0){u.removeChild(b),Vl(o);return}m--}else l==="$"||l==="$?"||l==="$!"?m++:d=l.charCodeAt(0)-48;else d=0;l=b}while(l);Vl(o)}function e1(u){var o=u.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var l=o;switch(o=o.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":e1(l),ir(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}u.removeChild(l)}}function ew(u,o,l,d){for(;u.nodeType===1;){var m=l;if(u.nodeName.toLowerCase()!==o.toLowerCase()){if(!d&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(d){if(!u[Eo])switch(o){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(b=u.getAttribute("rel"),b==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(b!==m.rel||u.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||u.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||u.getAttribute("title")!==(m.title==null?null:m.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(b=u.getAttribute("src"),(b!==(m.src==null?null:m.src)||u.getAttribute("type")!==(m.type==null?null:m.type)||u.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&b&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(o==="input"&&u.type==="hidden"){var b=m.name==null?null:""+m.name;if(m.type==="hidden"&&u.getAttribute("name")===b)return u}else return u;if(u=ji(u.nextSibling),u===null)break}return null}function tw(u,o,l){if(o==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!l||(u=ji(u.nextSibling),u===null))return null;return u}function t1(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState==="complete"}function nw(u,o){var l=u.ownerDocument;if(u.data!=="$?"||l.readyState==="complete")o();else{var d=function(){o(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),u._reactRetry=d}}function ji(u){for(;u!=null;u=u.nextSibling){var o=u.nodeType;if(o===1||o===3)break;if(o===8){if(o=u.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return u}var n1=null;function z3(u){u=u.previousSibling;for(var o=0;u;){if(u.nodeType===8){var l=u.data;if(l==="$"||l==="$!"||l==="$?"){if(o===0)return u;o--}else l==="/$"&&o++}u=u.previousSibling}return null}function q3(u,o,l){switch(o=ed(l),u){case"html":if(u=o.documentElement,!u)throw Error(i(452));return u;case"head":if(u=o.head,!u)throw Error(i(453));return u;case"body":if(u=o.body,!u)throw Error(i(454));return u;default:throw Error(i(451))}}function Rl(u){for(var o=u.attributes;o.length;)u.removeAttributeNode(o[0]);ir(u)}var yi=new Map,H3=new Set;function td(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var au=z.d;z.d={f:iw,r:rw,D:uw,C:ow,L:sw,m:aw,X:cw,S:lw,M:fw};function iw(){var u=au.f(),o=Gf();return u||o}function rw(u){var o=Hn(u);o!==null&&o.tag===5&&o.type==="form"?fb(o):au.r(u)}var Ws=typeof document>"u"?null:document;function G3(u,o,l){var d=Ws;if(d&&typeof o=="string"&&o){var m=Ht(o);m='link[rel="'+u+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),H3.has(m)||(H3.add(m),u={rel:u,crossOrigin:l,href:o},d.querySelector(m)===null&&(o=d.createElement("link"),hn(o,"link",u),Ct(o),d.head.appendChild(o)))}}function uw(u){au.D(u),G3("dns-prefetch",u,null)}function ow(u,o){au.C(u,o),G3("preconnect",u,o)}function sw(u,o,l){au.L(u,o,l);var d=Ws;if(d&&u&&o){var m='link[rel="preload"][as="'+Ht(o)+'"]';o==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+Ht(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+Ht(l.imageSizes)+'"]')):m+='[href="'+Ht(u)+'"]';var b=m;switch(o){case"style":b=Ks(u);break;case"script":b=Js(u)}yi.has(b)||(u=p({rel:"preload",href:o==="image"&&l&&l.imageSrcSet?void 0:u,as:o},l),yi.set(b,u),d.querySelector(m)!==null||o==="style"&&d.querySelector(kl(b))||o==="script"&&d.querySelector(Ml(b))||(o=d.createElement("link"),hn(o,"link",u),Ct(o),d.head.appendChild(o)))}}function aw(u,o){au.m(u,o);var l=Ws;if(l&&u){var d=o&&typeof o.as=="string"?o.as:"script",m='link[rel="modulepreload"][as="'+Ht(d)+'"][href="'+Ht(u)+'"]',b=m;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Js(u)}if(!yi.has(b)&&(u=p({rel:"modulepreload",href:u},o),yi.set(b,u),l.querySelector(m)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ml(b)))return}d=l.createElement("link"),hn(d,"link",u),Ct(d),l.head.appendChild(d)}}}function lw(u,o,l){au.S(u,o,l);var d=Ws;if(d&&u){var m=wu(d).hoistableStyles,b=Ks(u);o=o||"default";var w=m.get(b);if(!w){var O={loading:0,preload:null};if(w=d.querySelector(kl(b)))O.loading=5;else{u=p({rel:"stylesheet",href:u,"data-precedence":o},l),(l=yi.get(b))&&i1(u,l);var F=w=d.createElement("link");Ct(F),hn(F,"link",u),F._p=new Promise(function(X,ue){F.onload=X,F.onerror=ue}),F.addEventListener("load",function(){O.loading|=1}),F.addEventListener("error",function(){O.loading|=2}),O.loading|=4,nd(w,o,d)}w={type:"stylesheet",instance:w,count:1,state:O},m.set(b,w)}}}function cw(u,o){au.X(u,o);var l=Ws;if(l&&u){var d=wu(l).hoistableScripts,m=Js(u),b=d.get(m);b||(b=l.querySelector(Ml(m)),b||(u=p({src:u,async:!0},o),(o=yi.get(m))&&r1(u,o),b=l.createElement("script"),Ct(b),hn(b,"link",u),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(m,b))}}function fw(u,o){au.M(u,o);var l=Ws;if(l&&u){var d=wu(l).hoistableScripts,m=Js(u),b=d.get(m);b||(b=l.querySelector(Ml(m)),b||(u=p({src:u,async:!0,type:"module"},o),(o=yi.get(m))&&r1(u,o),b=l.createElement("script"),Ct(b),hn(b,"link",u),l.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(m,b))}}function Y3(u,o,l,d){var m=(m=de.current)?td(m):null;if(!m)throw Error(i(446));switch(u){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(o=Ks(l.href),l=wu(m).hoistableStyles,d=l.get(o),d||(d={type:"style",instance:null,count:0,state:null},l.set(o,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){u=Ks(l.href);var b=wu(m).hoistableStyles,w=b.get(u);if(w||(m=m.ownerDocument||m,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(u,w),(b=m.querySelector(kl(u)))&&!b._p&&(w.instance=b,w.state.loading=5),yi.has(u)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},yi.set(u,l),b||dw(m,u,l,w.state))),o&&d===null)throw Error(i(528,""));return w}if(o&&d!==null)throw Error(i(529,""));return null;case"script":return o=l.async,l=l.src,typeof l=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Js(l),l=wu(m).hoistableScripts,d=l.get(o),d||(d={type:"script",instance:null,count:0,state:null},l.set(o,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,u))}}function Ks(u){return'href="'+Ht(u)+'"'}function kl(u){return'link[rel="stylesheet"]['+u+"]"}function Q3(u){return p({},u,{"data-precedence":u.precedence,precedence:null})}function dw(u,o,l,d){u.querySelector('link[rel="preload"][as="style"]['+o+"]")?d.loading=1:(o=u.createElement("link"),d.preload=o,o.addEventListener("load",function(){return d.loading|=1}),o.addEventListener("error",function(){return d.loading|=2}),hn(o,"link",l),Ct(o),u.head.appendChild(o))}function Js(u){return'[src="'+Ht(u)+'"]'}function Ml(u){return"script[async]"+u}function X3(u,o,l){if(o.count++,o.instance===null)switch(o.type){case"style":var d=u.querySelector('style[data-href~="'+Ht(l.href)+'"]');if(d)return o.instance=d,Ct(d),d;var m=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(u.ownerDocument||u).createElement("style"),Ct(d),hn(d,"style",m),nd(d,l.precedence,u),o.instance=d;case"stylesheet":m=Ks(l.href);var b=u.querySelector(kl(m));if(b)return o.state.loading|=4,o.instance=b,Ct(b),b;d=Q3(l),(m=yi.get(m))&&i1(d,m),b=(u.ownerDocument||u).createElement("link"),Ct(b);var w=b;return w._p=new Promise(function(O,F){w.onload=O,w.onerror=F}),hn(b,"link",d),o.state.loading|=4,nd(b,l.precedence,u),o.instance=b;case"script":return b=Js(l.src),(m=u.querySelector(Ml(b)))?(o.instance=m,Ct(m),m):(d=l,(m=yi.get(b))&&(d=p({},l),r1(d,m)),u=u.ownerDocument||u,m=u.createElement("script"),Ct(m),hn(m,"link",d),u.head.appendChild(m),o.instance=m);case"void":return null;default:throw Error(i(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(d=o.instance,o.state.loading|=4,nd(d,l.precedence,u));return o.instance}function nd(u,o,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=d.length?d[d.length-1]:null,b=m,w=0;w<d.length;w++){var O=d[w];if(O.dataset.precedence===o)b=O;else if(b!==m)break}b?b.parentNode.insertBefore(u,b.nextSibling):(o=l.nodeType===9?l.head:l,o.insertBefore(u,o.firstChild))}function i1(u,o){u.crossOrigin==null&&(u.crossOrigin=o.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=o.referrerPolicy),u.title==null&&(u.title=o.title)}function r1(u,o){u.crossOrigin==null&&(u.crossOrigin=o.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=o.referrerPolicy),u.integrity==null&&(u.integrity=o.integrity)}var id=null;function Z3(u,o,l){if(id===null){var d=new Map,m=id=new Map;m.set(l,d)}else m=id,d=m.get(l),d||(d=new Map,m.set(l,d));if(d.has(u))return d;for(d.set(u,null),l=l.getElementsByTagName(u),m=0;m<l.length;m++){var b=l[m];if(!(b[Eo]||b[Wt]||u==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var w=b.getAttribute(o)||"";w=u+w;var O=d.get(w);O?O.push(b):d.set(w,[b])}}return d}function W3(u,o,l){u=u.ownerDocument||u,u.head.insertBefore(l,o==="title"?u.querySelector("head > title"):null)}function hw(u,o,l){if(l===1||o.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return u=o.disabled,typeof o.precedence=="string"&&u==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function K3(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}var Ll=null;function pw(){}function mw(u,o,l){if(Ll===null)throw Error(i(475));var d=Ll;if(o.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=Ks(l.href),b=u.querySelector(kl(m));if(b){u=b._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(d.count++,d=rd.bind(d),u.then(d,d)),o.state.loading|=4,o.instance=b,Ct(b);return}b=u.ownerDocument||u,l=Q3(l),(m=yi.get(m))&&i1(l,m),b=b.createElement("link"),Ct(b);var w=b;w._p=new Promise(function(O,F){w.onload=O,w.onerror=F}),hn(b,"link",l),o.instance=b}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(o,u),(u=o.state.preload)&&(o.state.loading&3)===0&&(d.count++,o=rd.bind(d),u.addEventListener("load",o),u.addEventListener("error",o))}}function gw(){if(Ll===null)throw Error(i(475));var u=Ll;return u.stylesheets&&u.count===0&&u1(u,u.stylesheets),0<u.count?function(o){var l=setTimeout(function(){if(u.stylesheets&&u1(u,u.stylesheets),u.unsuspend){var d=u.unsuspend;u.unsuspend=null,d()}},6e4);return u.unsuspend=o,function(){u.unsuspend=null,clearTimeout(l)}}:null}function rd(){if(this.count--,this.count===0){if(this.stylesheets)u1(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var ud=null;function u1(u,o){u.stylesheets=null,u.unsuspend!==null&&(u.count++,ud=new Map,o.forEach(vw,u),ud=null,rd.call(u))}function vw(u,o){if(!(o.state.loading&4)){var l=ud.get(u);if(l)var d=l.get(null);else{l=new Map,ud.set(u,l);for(var m=u.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<m.length;b++){var w=m[b];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(l.set(w.dataset.precedence,w),d=w)}d&&l.set(null,d)}m=o.instance,w=m.getAttribute("data-precedence"),b=l.get(w)||d,b===d&&l.set(null,m),l.set(w,m),this.count++,d=rd.bind(this),m.addEventListener("load",d),m.addEventListener("error",d),b?b.parentNode.insertBefore(m,b.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(m,u.firstChild)),o.state.loading|=4}}var Il={$$typeof:A,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function yw(u,o,l,d,m,b,w,O){this.tag=1,this.containerInfo=u,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tr(0),this.hiddenUpdates=tr(null),this.identifierPrefix=d,this.onUncaughtError=m,this.onCaughtError=b,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function J3(u,o,l,d,m,b,w,O,F,X,ue,ce){return u=new yw(u,o,l,w,O,F,X,ce),o=1,b===!0&&(o|=24),b=Zn(3,null,null,o),u.current=b,b.stateNode=u,o=$h(),o.refCount++,u.pooledCache=o,o.refCount++,b.memoizedState={element:d,isDehydrated:l,cache:o},qh(b),u}function ex(u){return u?(u=Os,u):Os}function tx(u,o,l,d,m,b){m=ex(m),d.context===null?d.context=m:d.pendingContext=m,d=Pu(o),d.payload={element:l},b=b===void 0?null:b,b!==null&&(d.callback=b),l=Vu(u,d,o),l!==null&&(ti(l,u,o),fl(l,u,o))}function nx(u,o){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var l=u.retryLane;u.retryLane=l!==0&&l<o?l:o}}function o1(u,o){nx(u,o),(u=u.alternate)&&nx(u,o)}function ix(u){if(u.tag===13){var o=Ns(u,67108864);o!==null&&ti(o,u,67108864),o1(u,67108864)}}var od=!0;function bw(u,o,l,d){var m=I.T;I.T=null;var b=z.p;try{z.p=2,s1(u,o,l,d)}finally{z.p=b,I.T=m}}function xw(u,o,l,d){var m=I.T;I.T=null;var b=z.p;try{z.p=8,s1(u,o,l,d)}finally{z.p=b,I.T=m}}function s1(u,o,l,d){if(od){var m=a1(d);if(m===null)Qp(u,o,d,sd,l),ux(u,d);else if(Tw(m,u,o,l,d))d.stopPropagation();else if(ux(u,d),o&4&&-1<Ew.indexOf(u)){for(;m!==null;){var b=Hn(m);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var w=ai(b.pendingLanes);if(w!==0){var O=b;for(O.pendingLanes|=2,O.entangledLanes|=2;w;){var F=1<<31-Cn(w);O.entanglements[1]|=F,w&=~F}mr(b),(nt&6)===0&&(qf=at()+500,Dl(0))}}break;case 13:O=Ns(b,2),O!==null&&ti(O,b,2),Gf(),o1(b,2)}if(b=a1(d),b===null&&Qp(u,o,d,sd,l),b===m)break;m=b}m!==null&&d.stopPropagation()}else Qp(u,o,d,null,l)}}function a1(u){return u=yn(u),l1(u)}var sd=null;function l1(u){if(sd=null,u=ki(u),u!==null){var o=s(u);if(o===null)u=null;else{var l=o.tag;if(l===13){if(u=a(o),u!==null)return u;u=null}else if(l===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;u=null}else o!==u&&(u=null)}}return sd=u,null}function rx(u){switch(u){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Se()){case Le:return 2;case De:return 8;case ke:case xt:return 32;case He:return 268435456;default:return 32}default:return 32}}var c1=!1,Ku=null,Ju=null,eo=null,Fl=new Map,jl=new Map,to=[],Ew="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".split(" ");function ux(u,o){switch(u){case"focusin":case"focusout":Ku=null;break;case"dragenter":case"dragleave":Ju=null;break;case"mouseover":case"mouseout":eo=null;break;case"pointerover":case"pointerout":Fl.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":jl.delete(o.pointerId)}}function Pl(u,o,l,d,m,b){return u===null||u.nativeEvent!==b?(u={blockedOn:o,domEventName:l,eventSystemFlags:d,nativeEvent:b,targetContainers:[m]},o!==null&&(o=Hn(o),o!==null&&ix(o)),u):(u.eventSystemFlags|=d,o=u.targetContainers,m!==null&&o.indexOf(m)===-1&&o.push(m),u)}function Tw(u,o,l,d,m){switch(o){case"focusin":return Ku=Pl(Ku,u,o,l,d,m),!0;case"dragenter":return Ju=Pl(Ju,u,o,l,d,m),!0;case"mouseover":return eo=Pl(eo,u,o,l,d,m),!0;case"pointerover":var b=m.pointerId;return Fl.set(b,Pl(Fl.get(b)||null,u,o,l,d,m)),!0;case"gotpointercapture":return b=m.pointerId,jl.set(b,Pl(jl.get(b)||null,u,o,l,d,m)),!0}return!1}function ox(u){var o=ki(u.target);if(o!==null){var l=s(o);if(l!==null){if(o=l.tag,o===13){if(o=a(l),o!==null){u.blockedOn=o,Su(u.priority,function(){if(l.tag===13){var d=ei();d=nr(d);var m=Ns(l,d);m!==null&&ti(m,l,d),o1(l,d)}});return}}else if(o===3&&l.stateNode.current.memoizedState.isDehydrated){u.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}u.blockedOn=null}function ad(u){if(u.blockedOn!==null)return!1;for(var o=u.targetContainers;0<o.length;){var l=a1(u.nativeEvent);if(l===null){l=u.nativeEvent;var d=new l.constructor(l.type,l);Pt=d,l.target.dispatchEvent(d),Pt=null}else return o=Hn(l),o!==null&&ix(o),u.blockedOn=l,!1;o.shift()}return!0}function sx(u,o,l){ad(u)&&l.delete(o)}function Sw(){c1=!1,Ku!==null&&ad(Ku)&&(Ku=null),Ju!==null&&ad(Ju)&&(Ju=null),eo!==null&&ad(eo)&&(eo=null),Fl.forEach(sx),jl.forEach(sx)}function ld(u,o){u.blockedOn===o&&(u.blockedOn=null,c1||(c1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Sw)))}var cd=null;function ax(u){cd!==u&&(cd=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){cd===u&&(cd=null);for(var o=0;o<u.length;o+=3){var l=u[o],d=u[o+1],m=u[o+2];if(typeof d!="function"){if(l1(d||l)===null)continue;break}var b=Hn(l);b!==null&&(u.splice(o,3),o-=3,lp(b,{pending:!0,data:m,method:l.method,action:d},d,m))}}))}function Vl(u){function o(F){return ld(F,u)}Ku!==null&&ld(Ku,u),Ju!==null&&ld(Ju,u),eo!==null&&ld(eo,u),Fl.forEach(o),jl.forEach(o);for(var l=0;l<to.length;l++){var d=to[l];d.blockedOn===u&&(d.blockedOn=null)}for(;0<to.length&&(l=to[0],l.blockedOn===null);)ox(l),l.blockedOn===null&&to.shift();if(l=(u.ownerDocument||u).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var m=l[d],b=l[d+1],w=m[Ot]||null;if(typeof b=="function")w||ax(l);else if(w){var O=null;if(b&&b.hasAttribute("formAction")){if(m=b,w=b[Ot]||null)O=w.formAction;else if(l1(m)!==null)continue}else O=w.action;typeof O=="function"?l[d+1]=O:(l.splice(d,3),d-=3),ax(l)}}}function f1(u){this._internalRoot=u}fd.prototype.render=f1.prototype.render=function(u){var o=this._internalRoot;if(o===null)throw Error(i(409));var l=o.current,d=ei();tx(l,d,u,o,null,null)},fd.prototype.unmount=f1.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var o=u.containerInfo;tx(u.current,2,null,u,null,null),Gf(),o[qn]=null}};function fd(u){this._internalRoot=u}fd.prototype.unstable_scheduleHydration=function(u){if(u){var o=Pr();u={blockedOn:null,target:u,priority:o};for(var l=0;l<to.length&&o!==0&&o<to[l].priority;l++);to.splice(l,0,u),l===0&&ox(u)}};var lx=t.version;if(lx!=="19.1.1")throw Error(i(527,lx,"19.1.1"));z.findDOMNode=function(u){var o=u._reactInternals;if(o===void 0)throw typeof u.render=="function"?Error(i(188)):(u=Object.keys(u).join(","),Error(i(268,u)));return u=f(o),u=u!==null?h(u):null,u=u===null?null:u.stateNode,u};var _w={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dd.isDisabled&&dd.supportsFiber)try{Ki=dd.inject(_w),cn=dd}catch{}}return Bl.createRoot=function(u,o){if(!r(u))throw Error(i(299));var l=!1,d="",m=Cb,b=Ab,w=wb,O=null;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(w=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(O=o.unstable_transitionCallbacks)),o=J3(u,1,!1,null,null,l,d,m,b,w,O,null),u[qn]=o.current,Yp(u),new f1(o)},Bl.hydrateRoot=function(u,o,l){if(!r(u))throw Error(i(299));var d=!1,m="",b=Cb,w=Ab,O=wb,F=null,X=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(w=l.onCaughtError),l.onRecoverableError!==void 0&&(O=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(F=l.unstable_transitionCallbacks),l.formState!==void 0&&(X=l.formState)),o=J3(u,1,!0,o,l??null,d,m,b,w,O,F,X),o.context=ex(null),l=o.current,d=ei(),d=nr(d),m=Pu(d),m.callback=null,Vu(l,m,d),l=d,o.current.lanes=l,ci(o,l),mr(o),u[qn]=o.current,Yp(u),new fd(o)},Bl.version="19.1.1",Bl}var bx;function Lw(){if(bx)return p1.exports;bx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),p1.exports=Mw(),p1.exports}var B5=Lw();const Iw=ls(B5);var Fw=Object.defineProperty,jw=Object.defineProperties,Pw=Object.getOwnPropertyDescriptors,xx=Object.getOwnPropertySymbols,Vw=Object.prototype.hasOwnProperty,$w=Object.prototype.propertyIsEnumerable,Om=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ex=(e,t,n)=>t in e?Fw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ri=(e,t)=>{for(var n in t||(t={}))Vw.call(t,n)&&Ex(e,n,t[n]);if(xx)for(var n of xx(t))$w.call(t,n)&&Ex(e,n,t[n]);return e},fc=(e,t)=>jw(e,Pw(t)),Vd=function(e,t){this[0]=e,this[1]=t},Bw=(e,t,n)=>{var i=(a,c,f,h)=>{try{var p=n[a](c),g=(c=p.value)instanceof Vd,v=p.done;Promise.resolve(g?c[0]:c).then(y=>g?i(a==="return"?a:"next",c[1]?{done:y.done,value:y.value}:y,f,h):f({value:y,done:v})).catch(y=>i("throw",y,f,h))}catch(y){h(y)}},r=a=>s[a]=c=>new Promise((f,h)=>i(a,c,f,h)),s={};return n=n.apply(e,t),s[Om("asyncIterator")]=()=>s,r("next"),r("throw"),r("return"),s},Uw=(e,t,n)=>(t=e[Om("asyncIterator")])?t.call(e):(e=e[Om("iterator")](),t={},n=(i,r)=>(r=e[i])&&(t[i]=s=>new Promise((a,c,f)=>(s=r.call(e,s),f=s.done,Promise.resolve(s.value).then(h=>a({value:h,done:f}),c)))),n("next"),n("return"),t);function Tx(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function zw(e){return new Promise((t,n)=>{const i=e.subscribe({next(r){t(r),i.unsubscribe()},error:n,complete(){n(new Error("no value resolved"))}})})}function U5(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function z5(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}async function qw(e){var t;const n=(t=("return"in e?e:e[Symbol.asyncIterator]()).return)==null?void 0:t.bind(e),i=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return n==null||n(),i.value}async function Sx(e){const t=await e;return z5(t)?qw(t):U5(t)?zw(t):t}const Hw="modulepreload",Gw=function(e){return"/graphiql/"+e},_x={},We=function(t,n,i){let r=Promise.resolve();if(n&&n.length>0){let a=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));r=a(n.map(h=>{if(h=Gw(h),h in _x)return;_x[h]=!0;const p=h.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const v=document.createElement("link");if(v.rel=p?"stylesheet":Hw,p||(v.as="script"),v.crossOrigin="",v.href=h,f&&v.setAttribute("nonce",f),document.head.appendChild(v),p)return new Promise((y,E)=>{v.addEventListener("load",y),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(a){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=a,window.dispatchEvent(c),!c.defaultPrevented)throw a}return r.then(a=>{for(const c of a||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};function et(e,t){if(!!!e)throw new Error(t)}function du(e){return typeof e=="object"&&e!==null}function w0(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const Yw=/\r\n|[\n\r]/g;function Rm(e,t){let n=0,i=1;for(const r of e.body.matchAll(Yw)){if(typeof r.index=="number"||w0(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function Qw(e){return q5(e.source,Rm(e.source,e.start))}function q5(e,t){const n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,c=t.line===1?n:0,f=t.column+c,h=`${e.name}:${a}:${f}
|
|
51
|
+
`,p=i.split(/\r\n|[\n\r]/g),g=p[r];if(g.length>120){const v=Math.floor(f/80),y=f%80,E=[];for(let T=0;T<g.length;T+=80)E.push(g.slice(T,T+80));return h+Cx([[`${a} |`,E[0]],...E.slice(1,v+1).map(T=>["|",T]),["|","^".padStart(y)],["|",E[v+1]]])}return h+Cx([[`${a-1} |`,p[r-1]],[`${a} |`,g],["|","^".padStart(f)],[`${a+1} |`,p[r+1]]])}function Cx(e){const t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
|
|
52
|
+
`)}function Xw(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class Je extends Error{constructor(t,...n){var i,r,s;const{nodes:a,source:c,positions:f,path:h,originalError:p,extensions:g}=Xw(n);super(t),this.name="GraphQLError",this.path=h??void 0,this.originalError=p??void 0,this.nodes=Ax(Array.isArray(a)?a:a?[a]:void 0);const v=Ax((i=this.nodes)===null||i===void 0?void 0:i.map(E=>E.loc).filter(E=>E!=null));this.source=c??(v==null||(r=v[0])===null||r===void 0?void 0:r.source),this.positions=f??(v==null?void 0:v.map(E=>E.start)),this.locations=f&&c?f.map(E=>Rm(c,E)):v==null?void 0:v.map(E=>Rm(E.source,E.start));const y=du(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(s=g??y)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Je):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
|
|
53
|
+
|
|
54
|
+
`+Qw(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
|
|
55
|
+
|
|
56
|
+
`+q5(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function Ax(e){return e===void 0||e.length===0?void 0:e}function rn(e,t,n){return new Je(`Syntax Error: ${n}`,{source:e,positions:[t]})}let Zw=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},H5=class{constructor(t,n,i,r,s,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};const G5={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Ww=new Set(Object.keys(G5));function km(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&Ww.has(t)}var Si;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Si||(Si={}));var Ce;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Ce||(Ce={}));var Z;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Z||(Z={}));function Mm(e){return e===9||e===32}function dc(e){return e>=48&&e<=57}function Y5(e){return e>=97&&e<=122||e>=65&&e<=90}function e2(e){return Y5(e)||e===95}function Q5(e){return Y5(e)||dc(e)||e===95}function Kw(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;a<e.length;++a){var s;const c=e[a],f=Jw(c);f!==c.length&&(i=(s=i)!==null&&s!==void 0?s:a,r=a,a!==0&&f<n&&(n=f))}return e.map((a,c)=>c===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function Jw(e){let t=0;for(;t<e.length&&Mm(e.charCodeAt(t));)++t;return t}function eD(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=i.length===1,s=i.length>1&&i.slice(1).every(y=>y.length===0||Mm(y.charCodeAt(0))),a=n.endsWith('\\"""'),c=e.endsWith('"')&&!a,f=e.endsWith("\\"),h=c||f,p=!r||e.length>70||h||s||a;let g="";const v=r&&Mm(e.charCodeAt(0));return(p&&!v||s)&&(g+=`
|
|
57
|
+
`),g+=n,(p||h)&&(g+=`
|
|
58
|
+
`),'"""'+g+'"""'}var le;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(le||(le={}));class tD{constructor(t){const n=new H5(le.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==le.EOF)do if(t.next)t=t.next;else{const n=iD(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===le.COMMENT);return t}}function nD(e){return e===le.BANG||e===le.DOLLAR||e===le.AMP||e===le.PAREN_L||e===le.PAREN_R||e===le.SPREAD||e===le.COLON||e===le.EQUALS||e===le.AT||e===le.BRACKET_L||e===le.BRACKET_R||e===le.BRACE_L||e===le.PIPE||e===le.BRACE_R}function La(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function D0(e,t){return X5(e.charCodeAt(t))&&Z5(e.charCodeAt(t+1))}function X5(e){return e>=55296&&e<=56319}function Z5(e){return e>=56320&&e<=57343}function ns(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return le.EOF;if(n>=32&&n<=126){const i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Bt(e,t,n,i,r){const s=e.line,a=1+n-e.lineStart;return new H5(t,n,i,s,a,r)}function iD(e,t){const n=e.source.body,i=n.length;let r=t;for(;r<i;){const s=n.charCodeAt(r);switch(s){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return rD(e,r);case 33:return Bt(e,le.BANG,r,r+1);case 36:return Bt(e,le.DOLLAR,r,r+1);case 38:return Bt(e,le.AMP,r,r+1);case 40:return Bt(e,le.PAREN_L,r,r+1);case 41:return Bt(e,le.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n.charCodeAt(r+2)===46)return Bt(e,le.SPREAD,r,r+3);break;case 58:return Bt(e,le.COLON,r,r+1);case 61:return Bt(e,le.EQUALS,r,r+1);case 64:return Bt(e,le.AT,r,r+1);case 91:return Bt(e,le.BRACKET_L,r,r+1);case 93:return Bt(e,le.BRACKET_R,r,r+1);case 123:return Bt(e,le.BRACE_L,r,r+1);case 124:return Bt(e,le.PIPE,r,r+1);case 125:return Bt(e,le.BRACE_R,r,r+1);case 34:return n.charCodeAt(r+1)===34&&n.charCodeAt(r+2)===34?cD(e,r):oD(e,r)}if(dc(s)||s===45)return uD(e,r,s);if(e2(s))return fD(e,r);throw rn(e.source,r,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:La(s)||D0(n,r)?`Unexpected character: ${ns(e,r)}.`:`Invalid character: ${ns(e,r)}.`)}return Bt(e,le.EOF,i,i)}function rD(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const s=n.charCodeAt(r);if(s===10||s===13)break;if(La(s))++r;else if(D0(n,r))r+=2;else break}return Bt(e,le.COMMENT,t,r,n.slice(t+1,r))}function uD(e,t,n){const i=e.source.body;let r=t,s=n,a=!1;if(s===45&&(s=i.charCodeAt(++r)),s===48){if(s=i.charCodeAt(++r),dc(s))throw rn(e.source,r,`Invalid number, unexpected digit after 0: ${ns(e,r)}.`)}else r=y1(e,r,s),s=i.charCodeAt(r);if(s===46&&(a=!0,s=i.charCodeAt(++r),r=y1(e,r,s),s=i.charCodeAt(r)),(s===69||s===101)&&(a=!0,s=i.charCodeAt(++r),(s===43||s===45)&&(s=i.charCodeAt(++r)),r=y1(e,r,s),s=i.charCodeAt(r)),s===46||e2(s))throw rn(e.source,r,`Invalid number, expected digit but got: ${ns(e,r)}.`);return Bt(e,a?le.FLOAT:le.INT,t,r,i.slice(t,r))}function y1(e,t,n){if(!dc(n))throw rn(e.source,t,`Invalid number, expected digit but got: ${ns(e,t)}.`);const i=e.source.body;let r=t+1;for(;dc(i.charCodeAt(r));)++r;return r}function oD(e,t){const n=e.source.body,i=n.length;let r=t+1,s=r,a="";for(;r<i;){const c=n.charCodeAt(r);if(c===34)return a+=n.slice(s,r),Bt(e,le.STRING,t,r+1,a);if(c===92){a+=n.slice(s,r);const f=n.charCodeAt(r+1)===117?n.charCodeAt(r+2)===123?sD(e,r):aD(e,r):lD(e,r);a+=f.value,r+=f.size,s=r;continue}if(c===10||c===13)break;if(La(c))++r;else if(D0(n,r))r+=2;else throw rn(e.source,r,`Invalid character within String: ${ns(e,r)}.`)}throw rn(e.source,r,"Unterminated string.")}function sD(e,t){const n=e.source.body;let i=0,r=3;for(;r<12;){const s=n.charCodeAt(t+r++);if(s===125){if(r<5||!La(i))break;return{value:String.fromCodePoint(i),size:r}}if(i=i<<4|Yl(s),i<0)break}throw rn(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+r)}".`)}function aD(e,t){const n=e.source.body,i=wx(n,t+2);if(La(i))return{value:String.fromCodePoint(i),size:6};if(X5(i)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const r=wx(n,t+8);if(Z5(r))return{value:String.fromCodePoint(i,r),size:12}}throw rn(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function wx(e,t){return Yl(e.charCodeAt(t))<<12|Yl(e.charCodeAt(t+1))<<8|Yl(e.charCodeAt(t+2))<<4|Yl(e.charCodeAt(t+3))}function Yl(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function lD(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
59
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw rn(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function cD(e,t){const n=e.source.body,i=n.length;let r=e.lineStart,s=t+3,a=s,c="";const f=[];for(;s<i;){const h=n.charCodeAt(s);if(h===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){c+=n.slice(a,s),f.push(c);const p=Bt(e,le.BLOCK_STRING,t,s+3,Kw(f).join(`
|
|
60
|
+
`));return e.line+=f.length-1,e.lineStart=r,p}if(h===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){c+=n.slice(a,s),a=s+1,s+=4;continue}if(h===10||h===13){c+=n.slice(a,s),f.push(c),h===13&&n.charCodeAt(s+1)===10?s+=2:++s,c="",a=s,r=s;continue}if(La(h))++s;else if(D0(n,s))s+=2;else throw rn(e.source,s,`Invalid character within String: ${ns(e,s)}.`)}throw rn(e.source,s,"Unterminated string.")}function fD(e,t){const n=e.source.body,i=n.length;let r=t+1;for(;r<i;){const s=n.charCodeAt(r);if(Q5(s))++r;else break}return Bt(e,le.NAME,t,r,n.slice(t,r))}const dD=10,W5=2;function ye(e){return N0(e,[])}function N0(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return hD(e,t);default:return String(e)}}function hD(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(pD(e)){const i=e.toJSON();if(i!==e)return typeof i=="string"?i:N0(i,n)}else if(Array.isArray(e))return gD(e,n);return mD(e,n)}function pD(e){return typeof e.toJSON=="function"}function mD(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>W5?"["+vD(e)+"]":"{ "+n.map(([r,s])=>r+": "+N0(s,t)).join(", ")+" }"}function gD(e,t){if(e.length===0)return"[]";if(t.length>W5)return"[Array]";const n=Math.min(dD,e.length),i=e.length-n,r=[];for(let s=0;s<n;++s)r.push(N0(e[s],t));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function vD(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const yD=globalThis.process&&!0,Gi=yD?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;const r=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===s){const a=ye(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm.
|
|
61
|
+
|
|
62
|
+
Ensure that there is only one instance of "graphql" in the node_modules
|
|
63
|
+
directory. If different versions of "graphql" are the dependencies of other
|
|
64
|
+
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
65
|
+
|
|
66
|
+
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
67
|
+
|
|
68
|
+
Duplicate "graphql" modules cannot be used at the same time since different
|
|
69
|
+
versions may have different capabilities and behavior. The data from one
|
|
70
|
+
version used in the function from another could produce confusing and
|
|
71
|
+
spurious results.`)}}return!1};class K5{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||et(!1,`Body must be a string. Received: ${ye(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||et(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||et(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function bD(e){return Gi(e,K5)}function cs(e,t){const n=new J5(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}function xD(e,t){const n=new J5(e,t);n.expectToken(le.SOF);const i=n.parseValueLiteral(!1);return n.expectToken(le.EOF),i}class J5{constructor(t,n={}){const i=bD(t)?t:new K5(t);this._lexer=new tD(i),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(le.NAME);return this.node(t,{kind:Z.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Z.DOCUMENT,definitions:this.many(le.SOF,this.parseDefinition,le.EOF)})}parseDefinition(){if(this.peek(le.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===le.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw rn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(le.BRACE_L))return this.node(t,{kind:Z.OPERATION_DEFINITION,operation:Si.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let i;return this.peek(le.NAME)&&(i=this.parseName()),this.node(t,{kind:Z.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(le.NAME);switch(t.value){case"query":return Si.QUERY;case"mutation":return Si.MUTATION;case"subscription":return Si.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(le.PAREN_L,this.parseVariableDefinition,le.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Z.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(le.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(le.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(le.DOLLAR),this.node(t,{kind:Z.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Z.SELECTION_SET,selections:this.many(le.BRACE_L,this.parseSelection,le.BRACE_R)})}parseSelection(){return this.peek(le.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let i,r;return this.expectOptionalToken(le.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:Z.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(le.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(le.PAREN_L,n,le.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,i=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:Z.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(le.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(le.NAME)?this.node(t,{kind:Z.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Z.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Z.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Z.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case le.BRACKET_L:return this.parseList(t);case le.BRACE_L:return this.parseObject(t);case le.INT:return this.advanceLexer(),this.node(n,{kind:Z.INT,value:n.value});case le.FLOAT:return this.advanceLexer(),this.node(n,{kind:Z.FLOAT,value:n.value});case le.STRING:case le.BLOCK_STRING:return this.parseStringLiteral();case le.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Z.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Z.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Z.NULL});default:return this.node(n,{kind:Z.ENUM,value:n.value})}case le.DOLLAR:if(t)if(this.expectToken(le.DOLLAR),this._lexer.token.kind===le.NAME){const i=this._lexer.token.value;throw rn(this._lexer.source,n.start,`Unexpected variable "$${i}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Z.STRING,value:t.value,block:t.kind===le.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Z.LIST,values:this.any(le.BRACKET_L,n,le.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Z.OBJECT,fields:this.any(le.BRACE_L,n,le.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,i=this.parseName();return this.expectToken(le.COLON),this.node(n,{kind:Z.OBJECT_FIELD,name:i,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(le.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(le.AT),this.node(n,{kind:Z.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(le.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(le.BRACKET_R),n=this.node(t,{kind:Z.LIST_TYPE,type:i})}else n=this.parseNamedType();return this.expectOptionalToken(le.BANG)?this.node(t,{kind:Z.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Z.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(le.STRING)||this.peek(le.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),r=this.many(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);return this.node(t,{kind:Z.SCHEMA_DEFINITION,description:n,directives:i,operationTypes:r})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(le.COLON);const i=this.parseNamedType();return this.node(t,{kind:Z.OPERATION_TYPE_DEFINITION,operation:n,type:i})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),r=this.parseConstDirectives();return this.node(t,{kind:Z.SCALAR_TYPE_DEFINITION,description:n,name:i,directives:r})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Z.OBJECT_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(le.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseFieldDefinition,le.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(le.COLON);const s=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:Z.FIELD_DEFINITION,description:n,name:i,arguments:r,type:s,directives:a})}parseArgumentDefs(){return this.optionalMany(le.PAREN_L,this.parseInputValueDef,le.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(le.COLON);const r=this.parseTypeReference();let s;this.expectOptionalToken(le.EQUALS)&&(s=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:Z.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:s,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),r=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Z.INTERFACE_TYPE_DEFINITION,description:n,name:i,interfaces:r,directives:s,fields:a})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:Z.UNION_TYPE_DEFINITION,description:n,name:i,directives:r,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(le.EQUALS)?this.delimitedMany(le.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:Z.ENUM_TYPE_DEFINITION,description:n,name:i,directives:r,values:s})}parseEnumValuesDefinition(){return this.optionalMany(le.BRACE_L,this.parseEnumValueDefinition,le.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(t,{kind:Z.ENUM_VALUE_DEFINITION,description:n,name:i,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw rn(this._lexer.source,this._lexer.token.start,`${hd(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),r=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:Z.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:i,directives:r,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(le.BRACE_L,this.parseInputValueDef,le.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===le.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.optionalMany(le.BRACE_L,this.parseOperationTypeDefinition,le.BRACE_R);if(n.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Z.SCHEMA_EXTENSION,directives:n,operationTypes:i})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(t,{kind:Z.SCALAR_TYPE_EXTENSION,name:n,directives:i})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:Z.OBJECT_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(i.length===0&&r.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:Z.INTERFACE_TYPE_EXTENSION,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Z.UNION_TYPE_EXTENSION,name:n,directives:i,types:r})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Z.ENUM_TYPE_EXTENSION,name:n,directives:i,values:r})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(i.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Z.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:i,fields:r})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(le.AT);const i=this.parseName(),r=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:Z.DIRECTIVE_DEFINITION,description:n,name:i,arguments:r,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(le.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Ce,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Zw(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw rn(this._lexer.source,n.start,`Expected ${eT(t)}, found ${hd(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===le.NAME&&n.value===t)this.advanceLexer();else throw rn(this._lexer.source,n.start,`Expected "${t}", found ${hd(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===le.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return rn(this._lexer.source,n.start,`Unexpected ${hd(n)}.`)}any(t,n,i){this.expectToken(t);const r=[];for(;!this.expectOptionalToken(i);)r.push(n.call(this));return r}optionalMany(t,n,i){if(this.expectOptionalToken(t)){const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}return[]}many(t,n,i){this.expectToken(t);const r=[];do r.push(n.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(t,n){this.expectOptionalToken(t);const i=[];do i.push(n.call(this));while(this.expectOptionalToken(t));return i}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==le.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw rn(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function hd(e){const t=e.value;return eT(e.kind)+(t!=null?` "${t}"`:"")}function eT(e){return nD(e)?`"${e}"`:e}const ED=5;function TD(e,t){const[n,i]=t?[e,t]:[void 0,e];let r=" Did you mean ";n&&(r+=n+" ");const s=i.map(f=>`"${f}"`);switch(s.length){case 0:return"";case 1:return r+s[0]+"?";case 2:return r+s[0]+" or "+s[1]+"?"}const a=s.slice(0,ED),c=a.pop();return r+a.join(", ")+", or "+c+"?"}function Dx(e){return e}function tT(e,t){const n=Object.create(null);for(const i of e)n[t(i)]=i;return n}function Ho(e,t,n){const i=Object.create(null);for(const r of e)i[t(r)]=n(r);return i}function O0(e,t){const n=Object.create(null);for(const i of Object.keys(e))n[i]=t(e[i],i);return n}function SD(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let r=e.charCodeAt(n),s=t.charCodeAt(i);if(pd(r)&&pd(s)){let a=0;do++n,a=a*10+r-Lm,r=e.charCodeAt(n);while(pd(r)&&a>0);let c=0;do++i,c=c*10+s-Lm,s=t.charCodeAt(i);while(pd(s)&&c>0);if(a<c)return-1;if(a>c)return 1}else{if(r<s)return-1;if(r>s)return 1;++n,++i}}return e.length-t.length}const Lm=48,_D=57;function pd(e){return!isNaN(e)&&Lm<=e&&e<=_D}function CD(e,t){const n=Object.create(null),i=new AD(e),r=Math.floor(e.length*.4)+1;for(const s of t){const a=i.measure(s,r);a!==void 0&&(n[s]=a)}return Object.keys(n).sort((s,a)=>{const c=n[s]-n[a];return c!==0?c:SD(s,a)})}class AD{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Nx(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;const i=t.toLowerCase();if(this._inputLowerCase===i)return 1;let r=Nx(i),s=this._inputArray;if(r.length<s.length){const p=r;r=s,s=p}const a=r.length,c=s.length;if(a-c>n)return;const f=this._rows;for(let p=0;p<=c;p++)f[0][p]=p;for(let p=1;p<=a;p++){const g=f[(p-1)%3],v=f[p%3];let y=v[0]=p;for(let E=1;E<=c;E++){const T=r[p-1]===s[E-1]?0:1;let _=Math.min(g[E]+1,v[E-1]+1,g[E-1]+T);if(p>1&&E>1&&r[p-1]===s[E-2]&&r[p-2]===s[E-1]){const S=f[(p-2)%3][E-2];_=Math.min(_,S+1)}_<y&&(y=_),v[E]=_}if(y>n)return}const h=f[a%3][c];return h<=n?h:void 0}}function Nx(e){const t=e.length,n=new Array(t);for(let i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}function Ni(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[n,i]of Object.entries(e))t[n]=i;return t}function wD(e){return`"${e.replace(DD,ND)}"`}const DD=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ND(e){return OD[e.charCodeAt(0)]}const OD=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],sa=Object.freeze({});function qi(e,t,n=G5){const i=new Map;for(const S of Object.values(Z))i.set(S,Kd(t,S));let r,s=Array.isArray(e),a=[e],c=-1,f=[],h=e,p,g;const v=[],y=[];do{c++;const S=c===a.length,D=S&&f.length!==0;if(S){if(p=y.length===0?void 0:v[v.length-1],h=g,g=y.pop(),D)if(s){h=h.slice();let N=0;for(const[R,M]of f){const j=R-N;M===null?(h.splice(j,1),N++):h[j]=M}}else{h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h));for(const[N,R]of f)h[N]=R}c=r.index,a=r.keys,f=r.edits,s=r.inArray,r=r.prev}else if(g){if(p=s?c:a[c],h=g[p],h==null)continue;v.push(p)}let A;if(!Array.isArray(h)){var E,T;km(h)||et(!1,`Invalid AST Node: ${ye(h)}.`);const N=S?(E=i.get(h.kind))===null||E===void 0?void 0:E.leave:(T=i.get(h.kind))===null||T===void 0?void 0:T.enter;if(A=N==null?void 0:N.call(t,h,p,g,v,y),A===sa)break;if(A===!1){if(!S){v.pop();continue}}else if(A!==void 0&&(f.push([p,A]),!S))if(km(A))h=A;else{v.pop();continue}}if(A===void 0&&D&&f.push([p,h]),S)v.pop();else{var _;r={inArray:s,index:c,keys:a,edits:f,prev:r},s=Array.isArray(h),a=s?h:(_=n[h.kind])!==null&&_!==void 0?_:[],c=-1,f=[],g&&y.push(g),g=h}}while(r!==void 0);return f.length!==0?f[f.length-1][1]:e}function YX(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const i of Object.values(Z)){let r=!1;const s=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let f=0;f<e.length;++f){const{enter:h,leave:p}=Kd(e[f],i);r||(r=h!=null||p!=null),s[f]=h,a[f]=p}if(!r)continue;const c={enter(...f){const h=f[0];for(let g=0;g<e.length;g++)if(t[g]===null){var p;const v=(p=s[g])===null||p===void 0?void 0:p.apply(e[g],f);if(v===!1)t[g]=h;else if(v===sa)t[g]=sa;else if(v!==void 0)return v}},leave(...f){const h=f[0];for(let g=0;g<e.length;g++)if(t[g]===null){var p;const v=(p=a[g])===null||p===void 0?void 0:p.apply(e[g],f);if(v===sa)t[g]=sa;else if(v!==void 0&&v!==!1)return v}else t[g]===h&&(t[g]=null)}};n[i]=c}return n}function Kd(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function ui(e){return qi(e,kD)}const RD=80,kD={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>be(e.definitions,`
|
|
72
|
+
|
|
73
|
+
`)},OperationDefinition:{leave(e){const t=ze("(",be(e.variableDefinitions,", "),")"),n=be([e.operation,be([e.name,t]),be(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+ze(" = ",n)+ze(" ",be(i," "))},SelectionSet:{leave:({selections:e})=>Pi(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){const s=ze("",e,": ")+t;let a=s+ze("(",be(n,", "),")");return a.length>RD&&(a=s+ze(`(
|
|
74
|
+
`,$d(be(n,`
|
|
75
|
+
`)),`
|
|
76
|
+
)`)),be([a,be(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+ze(" ",be(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>be(["...",ze("on ",e),be(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${ze("(",be(n,", "),")")} on ${t} ${ze("",be(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?eD(e):wD(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+be(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+be(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+ze("(",be(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>ze("",e,`
|
|
77
|
+
`)+be(["schema",be(t," "),Pi(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>ze("",e,`
|
|
78
|
+
`)+be(["scalar",t,be(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>ze("",e,`
|
|
79
|
+
`)+be(["type",t,ze("implements ",be(n," & ")),be(i," "),Pi(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>ze("",e,`
|
|
80
|
+
`)+t+(Ox(n)?ze(`(
|
|
81
|
+
`,$d(be(n,`
|
|
82
|
+
`)),`
|
|
83
|
+
)`):ze("(",be(n,", "),")"))+": "+i+ze(" ",be(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>ze("",e,`
|
|
84
|
+
`)+be([t+": "+n,ze("= ",i),be(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>ze("",e,`
|
|
85
|
+
`)+be(["interface",t,ze("implements ",be(n," & ")),be(i," "),Pi(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>ze("",e,`
|
|
86
|
+
`)+be(["union",t,be(n," "),ze("= ",be(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>ze("",e,`
|
|
87
|
+
`)+be(["enum",t,be(n," "),Pi(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>ze("",e,`
|
|
88
|
+
`)+be([t,be(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>ze("",e,`
|
|
89
|
+
`)+be(["input",t,be(n," "),Pi(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>ze("",e,`
|
|
90
|
+
`)+"directive @"+t+(Ox(n)?ze(`(
|
|
91
|
+
`,$d(be(n,`
|
|
92
|
+
`)),`
|
|
93
|
+
)`):ze("(",be(n,", "),")"))+(i?" repeatable":"")+" on "+be(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>be(["extend schema",be(e," "),Pi(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>be(["extend scalar",e,be(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>be(["extend type",e,ze("implements ",be(t," & ")),be(n," "),Pi(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>be(["extend interface",e,ze("implements ",be(t," & ")),be(n," "),Pi(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>be(["extend union",e,be(t," "),ze("= ",be(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>be(["extend enum",e,be(t," "),Pi(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>be(["extend input",e,be(t," "),Pi(n)]," ")}};function be(e,t=""){var n;return(n=e==null?void 0:e.filter(i=>i).join(t))!==null&&n!==void 0?n:""}function Pi(e){return ze(`{
|
|
94
|
+
`,$d(be(e,`
|
|
95
|
+
`)),`
|
|
96
|
+
}`)}function ze(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function $d(e){return ze(" ",e.replace(/\n/g,`
|
|
97
|
+
`))}function Ox(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
|
|
98
|
+
`)))!==null&&t!==void 0?t:!1}function Im(e,t){switch(e.kind){case Z.NULL:return null;case Z.INT:return parseInt(e.value,10);case Z.FLOAT:return parseFloat(e.value);case Z.STRING:case Z.ENUM:case Z.BOOLEAN:return e.value;case Z.LIST:return e.values.map(n=>Im(n,t));case Z.OBJECT:return Ho(e.fields,n=>n.name.value,n=>Im(n.value,t));case Z.VARIABLE:return t==null?void 0:t[e.name.value]}}function Yi(e){if(e!=null||et(!1,"Must provide name."),typeof e=="string"||et(!1,"Expected name to be a string."),e.length===0)throw new Je("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!Q5(e.charCodeAt(t)))throw new Je(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!e2(e.charCodeAt(0)))throw new Je(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function MD(e){if(e==="true"||e==="false"||e==="null")throw new Je(`Enum values cannot be named: ${e}`);return Yi(e)}function t2(e){return po(e)||bt(e)||St(e)||Ai(e)||oi(e)||sn(e)||kn(e)||It(e)}function po(e){return Gi(e,fs)}function bt(e){return Gi(e,Rr)}function LD(e){if(!bt(e))throw new Error(`Expected ${ye(e)} to be a GraphQL Object type.`);return e}function St(e){return Gi(e,ga)}function ID(e){if(!St(e))throw new Error(`Expected ${ye(e)} to be a GraphQL Interface type.`);return e}function Ai(e){return Gi(e,fT)}function oi(e){return Gi(e,Ia)}function sn(e){return Gi(e,u2)}function kn(e){return Gi(e,$n)}function It(e){return Gi(e,qe)}function Ti(e){return po(e)||oi(e)||sn(e)||n2(e)&&Ti(e.ofType)}function Ko(e){return po(e)||bt(e)||St(e)||Ai(e)||oi(e)||n2(e)&&Ko(e.ofType)}function R0(e){return po(e)||oi(e)}function ao(e){return bt(e)||St(e)||Ai(e)}function cu(e){return St(e)||Ai(e)}function FD(e){if(!cu(e))throw new Error(`Expected ${ye(e)} to be a GraphQL abstract type.`);return e}class $n{constructor(t){t2(t)||et(!1,`Expected ${ye(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class qe{constructor(t){nT(t)||et(!1,`Expected ${ye(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function n2(e){return kn(e)||It(e)}function nT(e){return t2(e)&&!It(e)}function jD(e){if(!nT(e))throw new Error(`Expected ${ye(e)} to be a GraphQL nullable type.`);return e}function iT(e){if(e)return It(e)?e.ofType:e}function i2(e){return po(e)||bt(e)||St(e)||Ai(e)||oi(e)||sn(e)}function Nn(e){if(e){let t=e;for(;n2(t);)t=t.ofType;return t}}function rT(e){return typeof e=="function"?e():e}function uT(e){return typeof e=="function"?e():e}class fs{constructor(t){var n,i,r,s;const a=(n=t.parseValue)!==null&&n!==void 0?n:Dx;this.name=Yi(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:Dx,this.parseValue=a,this.parseLiteral=(r=t.parseLiteral)!==null&&r!==void 0?r:(c,f)=>a(Im(c,f)),this.extensions=Ni(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(s=t.extensionASTNodes)!==null&&s!==void 0?s:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||et(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ye(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||et(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||et(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class Rr{constructor(t){var n;this.name=Yi(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=Ni(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>sT(t),this._interfaces=()=>oT(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||et(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ye(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:lT(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function oT(e){var t;const n=rT((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||et(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function sT(e){const t=uT(e.fields);return ma(t)||et(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),O0(t,(n,i)=>{var r;ma(n)||et(!1,`${e.name}.${i} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||et(!1,`${e.name}.${i} field resolver must be a function if provided, but got: ${ye(n.resolve)}.`);const s=(r=n.args)!==null&&r!==void 0?r:{};return ma(s)||et(!1,`${e.name}.${i} args must be an object with argument names as keys.`),{name:Yi(i),description:n.description,type:n.type,args:aT(s),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:Ni(n.extensions),astNode:n.astNode}})}function aT(e){return Object.entries(e).map(([t,n])=>({name:Yi(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ni(n.extensions),astNode:n.astNode}))}function ma(e){return du(e)&&!Array.isArray(e)}function lT(e){return O0(e,t=>({description:t.description,type:t.type,args:cT(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function cT(e){return Ho(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function r2(e){return It(e.type)&&e.defaultValue===void 0}class ga{constructor(t){var n;this.name=Yi(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ni(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=sT.bind(void 0,t),this._interfaces=oT.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||et(!1,`${this.name} must provide "resolveType" as a function, but got: ${ye(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:lT(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class fT{constructor(t){var n;this.name=Yi(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=Ni(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=PD.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||et(!1,`${this.name} must provide "resolveType" as a function, but got: ${ye(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function PD(e){const t=rT(e.types);return Array.isArray(t)||et(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Ia{constructor(t){var n;this.name=Yi(t.name),this.description=t.description,this.extensions=Ni(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:Rx(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=Rx(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=tT(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(i=>[i.value,i])));const n=this._valueLookup.get(t);if(n===void 0)throw new Je(`Enum "${this.name}" cannot represent value: ${ye(t)}`);return n.name}parseValue(t){if(typeof t!="string"){const i=ye(t);throw new Je(`Enum "${this.name}" cannot represent non-string value: ${i}.`+md(this,i))}const n=this.getValue(t);if(n==null)throw new Je(`Value "${t}" does not exist in "${this.name}" enum.`+md(this,t));return n.value}parseLiteral(t,n){if(t.kind!==Z.ENUM){const r=ui(t);throw new Je(`Enum "${this.name}" cannot represent non-enum value: ${r}.`+md(this,r),{nodes:t})}const i=this.getValue(t.value);if(i==null){const r=ui(t);throw new Je(`Value "${r}" does not exist in "${this.name}" enum.`+md(this,r),{nodes:t})}return i.value}toConfig(){const t=Ho(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function md(e,t){const n=e.getValues().map(r=>r.name),i=CD(t,n);return TD("the enum value",i)}function Rx(e,t){return ma(t)||et(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,i])=>(ma(i)||et(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${ye(i)}.`),{name:MD(n),description:i.description,value:i.value!==void 0?i.value:n,deprecationReason:i.deprecationReason,extensions:Ni(i.extensions),astNode:i.astNode}))}class u2{constructor(t){var n,i;this.name=Yi(t.name),this.description=t.description,this.extensions=Ni(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(i=t.isOneOf)!==null&&i!==void 0?i:!1,this._fields=VD.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=O0(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function VD(e){const t=uT(e.fields);return ma(t)||et(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),O0(t,(n,i)=>(!("resolve"in n)||et(!1,`${e.name}.${i} field has a resolve property, but Input Types cannot define resolvers.`),{name:Yi(i),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:Ni(n.extensions),astNode:n.astNode}))}function $D(e){return It(e.type)&&e.defaultValue===void 0}function Fm(e,t){return e===t?!0:It(e)&&It(t)||kn(e)&&kn(t)?Fm(e.ofType,t.ofType):!1}function Bd(e,t,n){return t===n?!0:It(n)?It(t)?Bd(e,t.ofType,n.ofType):!1:It(t)?Bd(e,t.ofType,n):kn(n)?kn(t)?Bd(e,t.ofType,n.ofType):!1:kn(t)?!1:cu(n)&&(St(t)||bt(t))&&e.isSubType(n,t)}function BD(e,t,n){return t===n?!0:cu(t)?cu(n)?e.getPossibleTypes(t).some(i=>e.isSubType(n,i)):e.isSubType(t,n):cu(n)?e.isSubType(n,t):!1}const b1=2147483647,x1=-2147483648,UD=new fs({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=Pc(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new Je(`Int cannot represent non-integer value: ${ye(t)}`);if(n>b1||n<x1)throw new Je("Int cannot represent non 32-bit signed integer value: "+ye(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new Je(`Int cannot represent non-integer value: ${ye(e)}`);if(e>b1||e<x1)throw new Je(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==Z.INT)throw new Je(`Int cannot represent non-integer value: ${ui(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>b1||t<x1)throw new Je(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),dT=new fs({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=Pc(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isFinite(n))throw new Je(`Float cannot represent non numeric value: ${ye(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new Je(`Float cannot represent non numeric value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==Z.FLOAT&&e.kind!==Z.INT)throw new Je(`Float cannot represent non numeric value: ${ui(e)}`,e);return parseFloat(e.value)}}),Ft=new fs({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=Pc(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number"&&Number.isFinite(t))return t.toString();throw new Je(`String cannot represent value: ${ye(e)}`)},parseValue(e){if(typeof e!="string")throw new Je(`String cannot represent a non string value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==Z.STRING)throw new Je(`String cannot represent a non string value: ${ui(e)}`,{nodes:e});return e.value}}),un=new fs({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Pc(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new Je(`Boolean cannot represent a non boolean value: ${ye(t)}`)},parseValue(e){if(typeof e!="boolean")throw new Je(`Boolean cannot represent a non boolean value: ${ye(e)}`);return e},parseLiteral(e){if(e.kind!==Z.BOOLEAN)throw new Je(`Boolean cannot represent a non boolean value: ${ui(e)}`,{nodes:e});return e.value}}),hT=new fs({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=Pc(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new Je(`ID cannot represent value: ${ye(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new Je(`ID cannot represent value: ${ye(e)}`)},parseLiteral(e){if(e.kind!==Z.STRING&&e.kind!==Z.INT)throw new Je("ID cannot represent a non-string and non-integer value: "+ui(e),{nodes:e});return e.value}}),zD=Object.freeze([Ft,UD,dT,un,hT]);function Pc(e){if(du(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!du(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function pT(e){return Gi(e,ds)}class ds{constructor(t){var n,i;this.name=Yi(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=Ni(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||et(!1,`@${t.name} locations must be an Array.`);const r=(i=t.args)!==null&&i!==void 0?i:{};du(r)&&!Array.isArray(r)||et(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=aT(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:cT(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const qD=new ds({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ce.FIELD,Ce.FRAGMENT_SPREAD,Ce.INLINE_FRAGMENT],args:{if:{type:new qe(un),description:"Included when true."}}}),HD=new ds({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ce.FIELD,Ce.FRAGMENT_SPREAD,Ce.INLINE_FRAGMENT],args:{if:{type:new qe(un),description:"Skipped when true."}}}),GD="No longer supported",mT=new ds({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ce.FIELD_DEFINITION,Ce.ARGUMENT_DEFINITION,Ce.INPUT_FIELD_DEFINITION,Ce.ENUM_VALUE],args:{reason:{type:Ft,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:GD}}}),YD=new ds({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ce.SCALAR],args:{url:{type:new qe(Ft),description:"The URL that specifies the behavior of this scalar."}}}),QD=new ds({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ce.INPUT_OBJECT],args:{}}),XD=Object.freeze([qD,HD,mT,YD,QD]);function ZD(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}function aa(e,t){if(It(t)){const n=aa(e,t.ofType);return(n==null?void 0:n.kind)===Z.NULL?null:n}if(e===null)return{kind:Z.NULL};if(e===void 0)return null;if(kn(t)){const n=t.ofType;if(ZD(e)){const i=[];for(const r of e){const s=aa(r,n);s!=null&&i.push(s)}return{kind:Z.LIST,values:i}}return aa(e,n)}if(sn(t)){if(!du(e))return null;const n=[];for(const i of Object.values(t.getFields())){const r=aa(e[i.name],i.type);r&&n.push({kind:Z.OBJECT_FIELD,name:{kind:Z.NAME,value:i.name},value:r})}return{kind:Z.OBJECT,fields:n}}if(R0(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Z.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const i=String(n);return kx.test(i)?{kind:Z.INT,value:i}:{kind:Z.FLOAT,value:i}}if(typeof n=="string")return oi(t)?{kind:Z.ENUM,value:n}:t===hT&&kx.test(n)?{kind:Z.INT,value:n}:{kind:Z.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${ye(n)}.`)}w0(!1,"Unexpected input type: "+ye(t))}const kx=/^-?(?:0|[1-9][0-9]*)$/,o2=new Rr({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Ft,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new qe(new $n(new qe(zi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new qe(zi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:zi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:zi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new qe(new $n(new qe(gT))),resolve:e=>e.getDirectives()}})}),gT=new Rr({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
99
|
+
|
|
100
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new qe(Ft),resolve:e=>e.name},description:{type:Ft,resolve:e=>e.description},isRepeatable:{type:new qe(un),resolve:e=>e.isRepeatable},locations:{type:new qe(new $n(new qe(vT))),resolve:e=>e.locations},args:{type:new qe(new $n(new qe(k0))),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),vT=new Ia({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:Ce.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ce.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ce.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ce.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ce.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ce.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ce.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ce.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ce.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ce.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ce.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ce.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ce.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ce.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ce.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ce.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ce.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ce.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ce.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),zi=new Rr({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new qe(xT),resolve(e){if(po(e))return dt.SCALAR;if(bt(e))return dt.OBJECT;if(St(e))return dt.INTERFACE;if(Ai(e))return dt.UNION;if(oi(e))return dt.ENUM;if(sn(e))return dt.INPUT_OBJECT;if(kn(e))return dt.LIST;if(It(e))return dt.NON_NULL;w0(!1,`Unexpected type: "${ye(e)}".`)}},name:{type:Ft,resolve:e=>"name"in e?e.name:void 0},description:{type:Ft,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ft,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new $n(new qe(yT)),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(bt(e)||St(e)){const n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},interfaces:{type:new $n(new qe(zi)),resolve(e){if(bt(e)||St(e))return e.getInterfaces()}},possibleTypes:{type:new $n(new qe(zi)),resolve(e,t,n,{schema:i}){if(cu(e))return i.getPossibleTypes(e)}},enumValues:{type:new $n(new qe(bT)),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(oi(e)){const n=e.getValues();return t?n:n.filter(i=>i.deprecationReason==null)}}},inputFields:{type:new $n(new qe(k0)),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(sn(e)){const n=Object.values(e.getFields());return t?n:n.filter(i=>i.deprecationReason==null)}}},ofType:{type:zi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:un,resolve:e=>{if(sn(e))return e.isOneOf}}})}),yT=new Rr({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new qe(Ft),resolve:e=>e.name},description:{type:Ft,resolve:e=>e.description},args:{type:new qe(new $n(new qe(k0))),args:{includeDeprecated:{type:un,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new qe(zi),resolve:e=>e.type},isDeprecated:{type:new qe(un),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ft,resolve:e=>e.deprecationReason}})}),k0=new Rr({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new qe(Ft),resolve:e=>e.name},description:{type:Ft,resolve:e=>e.description},type:{type:new qe(zi),resolve:e=>e.type},defaultValue:{type:Ft,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,i=aa(n,t);return i?ui(i):null}},isDeprecated:{type:new qe(un),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ft,resolve:e=>e.deprecationReason}})}),bT=new Rr({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new qe(Ft),resolve:e=>e.name},description:{type:Ft,resolve:e=>e.description},isDeprecated:{type:new qe(un),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ft,resolve:e=>e.deprecationReason}})});var dt;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(dt||(dt={}));const xT=new Ia({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:dt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:dt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:dt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:dt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:dt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:dt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:dt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:dt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),hc={name:"__schema",type:new qe(o2),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},pc={name:"__type",type:zi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new qe(Ft),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},mc={name:"__typename",type:new qe(Ft),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ET=Object.freeze([o2,gT,vT,zi,yT,k0,bT,xT]);function WD(e){return ET.some(({name:t})=>e.name===t)}function jm(e){return Gi(e,TT)}function KD(e){if(!jm(e))throw new Error(`Expected ${ye(e)} to be a GraphQL schema.`);return e}class TT{constructor(t){var n,i;this.__validationErrors=t.assumeValid===!0?[]:void 0,du(t)||et(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||et(!1,`"types" must be Array if provided but got: ${ye(t.types)}.`),!t.directives||Array.isArray(t.directives)||et(!1,`"directives" must be Array if provided but got: ${ye(t.directives)}.`),this.description=t.description,this.extensions=Ni(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(i=t.directives)!==null&&i!==void 0?i:XD;const r=new Set(t.types);if(t.types!=null)for(const s of t.types)r.delete(s),$i(s,r);this._queryType!=null&&$i(this._queryType,r),this._mutationType!=null&&$i(this._mutationType,r),this._subscriptionType!=null&&$i(this._subscriptionType,r);for(const s of this._directives)if(pT(s))for(const a of s.args)$i(a.type,r);$i(o2,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const s of r){if(s==null)continue;const a=s.name;if(a||et(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=s,St(s)){for(const c of s.getInterfaces())if(St(c)){let f=this._implementationsMap[c.name];f===void 0&&(f=this._implementationsMap[c.name]={objects:[],interfaces:[]}),f.interfaces.push(s)}}else if(bt(s)){for(const c of s.getInterfaces())if(St(c)){let f=this._implementationsMap[c.name];f===void 0&&(f=this._implementationsMap[c.name]={objects:[],interfaces:[]}),f.objects.push(s)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Si.QUERY:return this.getQueryType();case Si.MUTATION:return this.getMutationType();case Si.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return Ai(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let i=this._subTypeMap[t.name];if(i===void 0){if(i=Object.create(null),Ai(t))for(const r of t.getTypes())i[r.name]=!0;else{const r=this.getImplementations(t);for(const s of r.objects)i[s.name]=!0;for(const s of r.interfaces)i[s.name]=!0}this._subTypeMap[t.name]=i}return i[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}function $i(e,t){const n=Nn(e);if(!t.has(n)){if(t.add(n),Ai(n))for(const i of n.getTypes())$i(i,t);else if(bt(n)||St(n)){for(const i of n.getInterfaces())$i(i,t);for(const i of Object.values(n.getFields())){$i(i.type,t);for(const r of i.args)$i(r.type,t)}}else if(sn(n))for(const i of Object.values(n.getFields()))$i(i.type,t)}return t}function ST(e){if(KD(e),e.__validationErrors)return e.__validationErrors;const t=new JD(e);eN(t),tN(t),nN(t);const n=t.getErrors();return e.__validationErrors=n,n}function QX(e){const t=ST(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
|
|
101
|
+
|
|
102
|
+
`))}class JD{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const i=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Je(t,{nodes:i}))}getErrors(){return this._errors}}function eN(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!bt(n)){var i;e.reportError(`Query root type must be Object type, it cannot be ${ye(n)}.`,(i=E1(t,Si.QUERY))!==null&&i!==void 0?i:n.astNode)}const r=t.getMutationType();if(r&&!bt(r)){var s;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${ye(r)}.`,(s=E1(t,Si.MUTATION))!==null&&s!==void 0?s:r.astNode)}const a=t.getSubscriptionType();if(a&&!bt(a)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${ye(a)}.`,(c=E1(t,Si.SUBSCRIPTION))!==null&&c!==void 0?c:a.astNode)}}function E1(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(i=>{var r;return(r=i==null?void 0:i.operationTypes)!==null&&r!==void 0?r:[]}).find(i=>i.operation===t))===null||n===void 0?void 0:n.type}function tN(e){for(const n of e.schema.getDirectives()){if(!pT(n)){e.reportError(`Expected directive but got: ${ye(n)}.`,n==null?void 0:n.astNode);continue}is(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const i of n.args)if(is(e,i),Ti(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${ye(i.type)}.`,i.astNode),r2(i)&&i.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[s2(i.astNode),(t=i.astNode)===null||t===void 0?void 0:t.type])}}}function is(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function nN(e){const t=lN(e),n=e.schema.getTypeMap();for(const i of Object.values(n)){if(!i2(i)){e.reportError(`Expected GraphQL named type but got: ${ye(i)}.`,i.astNode);continue}WD(i)||is(e,i),bt(i)||St(i)?(Mx(e,i),Lx(e,i)):Ai(i)?uN(e,i):oi(i)?oN(e,i):sn(i)&&(sN(e,i),t(i))}}function Mx(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){if(is(e,a),!Ko(a.type)){var i;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${ye(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}for(const c of a.args){const f=c.name;if(is(e,c),!Ti(c.type)){var r;e.reportError(`The type of ${t.name}.${a.name}(${f}:) must be Input Type but got: ${ye(c.type)}.`,(r=c.astNode)===null||r===void 0?void 0:r.type)}if(r2(c)&&c.deprecationReason!=null){var s;e.reportError(`Required argument ${t.name}.${a.name}(${f}:) cannot be deprecated.`,[s2(c.astNode),(s=c.astNode)===null||s===void 0?void 0:s.type])}}}}function Lx(e,t){const n=Object.create(null);for(const i of t.getInterfaces()){if(!St(i)){e.reportError(`Type ${ye(t)} must only implement Interface types, it cannot implement ${ye(i)}.`,tc(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tc(t,i));continue}if(n[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,tc(t,i));continue}n[i.name]=!0,rN(e,t,i),iN(e,t,i)}}function iN(e,t,n){const i=t.getFields();for(const f of Object.values(n.getFields())){const h=f.name,p=i[h];if(!p){e.reportError(`Interface field ${n.name}.${h} expected but ${t.name} does not provide it.`,[f.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Bd(e.schema,p.type,f.type)){var r,s;e.reportError(`Interface field ${n.name}.${h} expects type ${ye(f.type)} but ${t.name}.${h} is type ${ye(p.type)}.`,[(r=f.astNode)===null||r===void 0?void 0:r.type,(s=p.astNode)===null||s===void 0?void 0:s.type])}for(const g of f.args){const v=g.name,y=p.args.find(E=>E.name===v);if(!y){e.reportError(`Interface field argument ${n.name}.${h}(${v}:) expected but ${t.name}.${h} does not provide it.`,[g.astNode,p.astNode]);continue}if(!Fm(g.type,y.type)){var a,c;e.reportError(`Interface field argument ${n.name}.${h}(${v}:) expects type ${ye(g.type)} but ${t.name}.${h}(${v}:) is type ${ye(y.type)}.`,[(a=g.astNode)===null||a===void 0?void 0:a.type,(c=y.astNode)===null||c===void 0?void 0:c.type])}}for(const g of p.args){const v=g.name;!f.args.find(E=>E.name===v)&&r2(g)&&e.reportError(`Object field ${t.name}.${h} includes required argument ${v} that is missing from the Interface field ${n.name}.${h}.`,[g.astNode,f.astNode])}}}function rN(e,t,n){const i=t.getInterfaces();for(const r of n.getInterfaces())i.includes(r)||e.reportError(r===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${r.name} because it is implemented by ${n.name}.`,[...tc(n,r),...tc(t,n)])}function uN(e,t){const n=t.getTypes();n.length===0&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const i=Object.create(null);for(const r of n){if(i[r.name]){e.reportError(`Union type ${t.name} can only include type ${r.name} once.`,Ix(t,r.name));continue}i[r.name]=!0,bt(r)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ye(r)}.`,Ix(t,String(r)))}}function oN(e,t){const n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const i of n)is(e,i)}function sN(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){if(is(e,s),!Ti(s.type)){var i;e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${ye(s.type)}.`,(i=s.astNode)===null||i===void 0?void 0:i.type)}if($D(s)&&s.deprecationReason!=null){var r;e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[s2(s.astNode),(r=s.astNode)===null||r===void 0?void 0:r.type])}t.isOneOf&&aN(t,s,e)}}function aN(e,t,n){if(It(t.type)){var i;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(i=t.astNode)===null||i===void 0?void 0:i.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function lN(e){const t=Object.create(null),n=[],i=Object.create(null);return r;function r(s){if(t[s.name])return;t[s.name]=!0,i[s.name]=n.length;const a=Object.values(s.getFields());for(const c of a)if(It(c.type)&&sn(c.type.ofType)){const f=c.type.ofType,h=i[f.name];if(n.push(c),h===void 0)r(f);else{const p=n.slice(h),g=p.map(v=>v.name).join(".");e.reportError(`Cannot reference Input Object "${f.name}" within itself through a series of non-null fields: "${g}".`,p.map(v=>v.astNode))}n.pop()}i[s.name]=void 0}}function tc(e,t){const{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(s=>{var a;return(a=s.interfaces)!==null&&a!==void 0?a:[]}).filter(s=>s.name.value===t.name)}function Ix(e,t){const{astNode:n,extensionASTNodes:i}=e;return(n!=null?[n,...i]:i).flatMap(s=>{var a;return(a=s.types)!==null&&a!==void 0?a:[]}).filter(s=>s.name.value===t)}function s2(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===mT.name)}function gc(e,t){switch(t.kind){case Z.LIST_TYPE:{const n=gc(e,t.type);return n&&new $n(n)}case Z.NON_NULL_TYPE:{const n=gc(e,t.type);return n&&new qe(n)}case Z.NAMED_TYPE:return e.getType(t.name.value)}}class _T{constructor(t,n,i){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=i??cN,n&&(Ti(n)&&this._inputTypeStack.push(n),ao(n)&&this._parentTypeStack.push(n),Ko(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const n=this._schema;switch(t.kind){case Z.SELECTION_SET:{const r=Nn(this.getType());this._parentTypeStack.push(ao(r)?r:void 0);break}case Z.FIELD:{const r=this.getParentType();let s,a;r&&(s=this._getFieldDef(n,r,t),s&&(a=s.type)),this._fieldDefStack.push(s),this._typeStack.push(Ko(a)?a:void 0);break}case Z.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Z.OPERATION_DEFINITION:{const r=n.getRootType(t.operation);this._typeStack.push(bt(r)?r:void 0);break}case Z.INLINE_FRAGMENT:case Z.FRAGMENT_DEFINITION:{const r=t.typeCondition,s=r?gc(n,r):Nn(this.getType());this._typeStack.push(Ko(s)?s:void 0);break}case Z.VARIABLE_DEFINITION:{const r=gc(n,t.type);this._inputTypeStack.push(Ti(r)?r:void 0);break}case Z.ARGUMENT:{var i;let r,s;const a=(i=this.getDirective())!==null&&i!==void 0?i:this.getFieldDef();a&&(r=a.args.find(c=>c.name===t.name.value),r&&(s=r.type)),this._argument=r,this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(Ti(s)?s:void 0);break}case Z.LIST:{const r=iT(this.getInputType()),s=kn(r)?r.ofType:r;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Ti(s)?s:void 0);break}case Z.OBJECT_FIELD:{const r=Nn(this.getInputType());let s,a;sn(r)&&(a=r.getFields()[t.name.value],a&&(s=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push(Ti(s)?s:void 0);break}case Z.ENUM:{const r=Nn(this.getInputType());let s;oi(r)&&(s=r.getValue(t.value)),this._enumValue=s;break}}}leave(t){switch(t.kind){case Z.SELECTION_SET:this._parentTypeStack.pop();break;case Z.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Z.DIRECTIVE:this._directive=null;break;case Z.OPERATION_DEFINITION:case Z.INLINE_FRAGMENT:case Z.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Z.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Z.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Z.LIST:case Z.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Z.ENUM:this._enumValue=null;break}}}function cN(e,t,n){const i=n.name.value;if(i===hc.name&&e.getQueryType()===t)return hc;if(i===pc.name&&e.getQueryType()===t)return pc;if(i===mc.name&&ao(t))return mc;if(bt(t)||St(t))return t.getFields()[i]}function fN(e,t){return{enter(...n){const i=n[0];e.enter(i);const r=Kd(t,i.kind).enter;if(r){const s=r.apply(t,n);return s!==void 0&&(e.leave(i),km(s)&&e.enter(s)),s}},leave(...n){const i=n[0],r=Kd(t,i.kind).leave;let s;return r&&(s=r.apply(t,n)),e.leave(i),s}}}function Ql(e,t,n){if(e){if(e.kind===Z.VARIABLE){const i=e.name.value;if(n==null||n[i]===void 0)return;const r=n[i];return r===null&&It(t)?void 0:r}if(It(t))return e.kind===Z.NULL?void 0:Ql(e,t.ofType,n);if(e.kind===Z.NULL)return null;if(kn(t)){const i=t.ofType;if(e.kind===Z.LIST){const s=[];for(const a of e.values)if(Fx(a,n)){if(It(i))return;s.push(null)}else{const c=Ql(a,i,n);if(c===void 0)return;s.push(c)}return s}const r=Ql(e,i,n);return r===void 0?void 0:[r]}if(sn(t)){if(e.kind!==Z.OBJECT)return;const i=Object.create(null),r=tT(e.fields,s=>s.name.value);for(const s of Object.values(t.getFields())){const a=r[s.name];if(!a||Fx(a.value,n)){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if(It(s.type))return;continue}const c=Ql(a.value,s.type,n);if(c===void 0)return;i[s.name]=c}if(t.isOneOf){const s=Object.keys(i);if(s.length!==1||i[s[0]]===null)return}return i}if(R0(t)){let i;try{i=t.parseLiteral(e,n)}catch{return}return i===void 0?void 0:i}w0(!1,"Unexpected input type: "+ye(t))}}function Fx(e,t){return e.kind===Z.VARIABLE&&(t==null||t[e.name.value]===void 0)}function dN(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",i=t.specifiedByUrl?"specifiedByURL":"",r=t.directiveIsRepeatable?"isRepeatable":"",s=t.schemaDescription?n:"";function a(f){return t.inputValueDeprecation?f:""}const c=t.oneOf?"isOneOf":"";return`
|
|
103
|
+
query IntrospectionQuery {
|
|
104
|
+
__schema {
|
|
105
|
+
${s}
|
|
106
|
+
queryType { name kind }
|
|
107
|
+
mutationType { name kind }
|
|
108
|
+
subscriptionType { name kind }
|
|
109
|
+
types {
|
|
110
|
+
...FullType
|
|
111
|
+
}
|
|
112
|
+
directives {
|
|
113
|
+
name
|
|
114
|
+
${n}
|
|
115
|
+
${r}
|
|
116
|
+
locations
|
|
117
|
+
args${a("(includeDeprecated: true)")} {
|
|
118
|
+
...InputValue
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
fragment FullType on __Type {
|
|
125
|
+
kind
|
|
126
|
+
name
|
|
127
|
+
${n}
|
|
128
|
+
${i}
|
|
129
|
+
${c}
|
|
130
|
+
fields(includeDeprecated: true) {
|
|
131
|
+
name
|
|
132
|
+
${n}
|
|
133
|
+
args${a("(includeDeprecated: true)")} {
|
|
134
|
+
...InputValue
|
|
135
|
+
}
|
|
136
|
+
type {
|
|
137
|
+
...TypeRef
|
|
138
|
+
}
|
|
139
|
+
isDeprecated
|
|
140
|
+
deprecationReason
|
|
141
|
+
}
|
|
142
|
+
inputFields${a("(includeDeprecated: true)")} {
|
|
143
|
+
...InputValue
|
|
144
|
+
}
|
|
145
|
+
interfaces {
|
|
146
|
+
...TypeRef
|
|
147
|
+
}
|
|
148
|
+
enumValues(includeDeprecated: true) {
|
|
149
|
+
name
|
|
150
|
+
${n}
|
|
151
|
+
isDeprecated
|
|
152
|
+
deprecationReason
|
|
153
|
+
}
|
|
154
|
+
possibleTypes {
|
|
155
|
+
...TypeRef
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
fragment InputValue on __InputValue {
|
|
160
|
+
name
|
|
161
|
+
${n}
|
|
162
|
+
type { ...TypeRef }
|
|
163
|
+
defaultValue
|
|
164
|
+
${a("isDeprecated")}
|
|
165
|
+
${a("deprecationReason")}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
fragment TypeRef on __Type {
|
|
169
|
+
kind
|
|
170
|
+
name
|
|
171
|
+
ofType {
|
|
172
|
+
kind
|
|
173
|
+
name
|
|
174
|
+
ofType {
|
|
175
|
+
kind
|
|
176
|
+
name
|
|
177
|
+
ofType {
|
|
178
|
+
kind
|
|
179
|
+
name
|
|
180
|
+
ofType {
|
|
181
|
+
kind
|
|
182
|
+
name
|
|
183
|
+
ofType {
|
|
184
|
+
kind
|
|
185
|
+
name
|
|
186
|
+
ofType {
|
|
187
|
+
kind
|
|
188
|
+
name
|
|
189
|
+
ofType {
|
|
190
|
+
kind
|
|
191
|
+
name
|
|
192
|
+
ofType {
|
|
193
|
+
kind
|
|
194
|
+
name
|
|
195
|
+
ofType {
|
|
196
|
+
kind
|
|
197
|
+
name
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
`}function hN(e,t){du(e)&&du(e.__schema)||et(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ye(e)}.`);const n=e.__schema,i=Ho(n.types,L=>L.name,L=>v(L));for(const L of[...zD,...ET])i[L.name]&&(i[L.name]=L);const r=n.queryType?p(n.queryType):null,s=n.mutationType?p(n.mutationType):null,a=n.subscriptionType?p(n.subscriptionType):null,c=n.directives?n.directives.map($):[];return new TT({description:n.description,query:r,mutation:s,subscription:a,types:Object.values(i),directives:c,assumeValid:void 0});function f(L){if(L.kind===dt.LIST){const U=L.ofType;if(!U)throw new Error("Decorated type deeper than introspection query.");return new $n(f(U))}if(L.kind===dt.NON_NULL){const U=L.ofType;if(!U)throw new Error("Decorated type deeper than introspection query.");const Y=f(U);return new qe(jD(Y))}return h(L)}function h(L){const U=L.name;if(!U)throw new Error(`Unknown type reference: ${ye(L)}.`);const Y=i[U];if(!Y)throw new Error(`Invalid or incomplete schema, unknown type: ${U}. Ensure that a full introspection query is used in order to build a client schema.`);return Y}function p(L){return LD(h(L))}function g(L){return ID(h(L))}function v(L){if(L!=null&&L.name!=null&&L.kind!=null)switch(L.kind){case dt.SCALAR:return y(L);case dt.OBJECT:return T(L);case dt.INTERFACE:return _(L);case dt.UNION:return S(L);case dt.ENUM:return D(L);case dt.INPUT_OBJECT:return A(L)}const U=ye(L);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${U}.`)}function y(L){return new fs({name:L.name,description:L.description,specifiedByURL:L.specifiedByURL})}function E(L){if(L.interfaces===null&&L.kind===dt.INTERFACE)return[];if(!L.interfaces){const U=ye(L);throw new Error(`Introspection result missing interfaces: ${U}.`)}return L.interfaces.map(g)}function T(L){return new Rr({name:L.name,description:L.description,interfaces:()=>E(L),fields:()=>N(L)})}function _(L){return new ga({name:L.name,description:L.description,interfaces:()=>E(L),fields:()=>N(L)})}function S(L){if(!L.possibleTypes){const U=ye(L);throw new Error(`Introspection result missing possibleTypes: ${U}.`)}return new fT({name:L.name,description:L.description,types:()=>L.possibleTypes.map(p)})}function D(L){if(!L.enumValues){const U=ye(L);throw new Error(`Introspection result missing enumValues: ${U}.`)}return new Ia({name:L.name,description:L.description,values:Ho(L.enumValues,U=>U.name,U=>({description:U.description,deprecationReason:U.deprecationReason}))})}function A(L){if(!L.inputFields){const U=ye(L);throw new Error(`Introspection result missing inputFields: ${U}.`)}return new u2({name:L.name,description:L.description,fields:()=>M(L.inputFields),isOneOf:L.isOneOf})}function N(L){if(!L.fields)throw new Error(`Introspection result missing fields: ${ye(L)}.`);return Ho(L.fields,U=>U.name,R)}function R(L){const U=f(L.type);if(!Ko(U)){const Y=ye(U);throw new Error(`Introspection must provide output type for fields, but received: ${Y}.`)}if(!L.args){const Y=ye(L);throw new Error(`Introspection result missing field args: ${Y}.`)}return{description:L.description,deprecationReason:L.deprecationReason,type:U,args:M(L.args)}}function M(L){return Ho(L,U=>U.name,j)}function j(L){const U=f(L.type);if(!Ti(U)){const K=ye(U);throw new Error(`Introspection must provide input type for arguments, but received: ${K}.`)}const Y=L.defaultValue!=null?Ql(xD(L.defaultValue),U):void 0;return{description:L.description,type:U,defaultValue:Y,deprecationReason:L.deprecationReason}}function $(L){if(!L.args){const U=ye(L);throw new Error(`Introspection result missing directive args: ${U}.`)}if(!L.locations){const U=ye(L);throw new Error(`Introspection result missing directive locations: ${U}.`)}return new ds({name:L.name,description:L.description,isRepeatable:L.isRepeatable,locations:L.locations.slice(),args:M(L.args)})}}async function pN(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/"))return e;let i=n.indexOf("boundary="),r="-";if(~i){let s=i+9,a=n.indexOf(";",s);r=n.slice(s,a>-1?a:void 0).trim().replace(/"/g,"")}return async function*(s,a,c){let f,h,p,g=new TextDecoder("utf8"),v=s.getReader(),y=!c||!1,E=a.length,T="",_=[];try{let S;e:for(;!(S=await v.read()).done;){let D=g.decode(S.value,{stream:!0});f=T.length,T+=D;let A=D.indexOf(a);for(~A?f+=A:f=T.indexOf(a),_=[];~f;){let N=T.slice(0,f),R=T.slice(f+E);if(h){let M=N.indexOf(`\r
|
|
209
|
+
\r
|
|
210
|
+
`)+4,j=N.lastIndexOf(`\r
|
|
211
|
+
`,M),$=!1,L=N.slice(M,j>-1?void 0:j),U=String(N.slice(0,M)).trim().split(`\r
|
|
212
|
+
`),Y={},K=U.length;for(;p=U[--K];p=p.split(": "),Y[p.shift().toLowerCase()]=p.join(": "));if(p=Y["content-type"],p&&~p.indexOf("application/json"))try{L=JSON.parse(L),$=!0}catch{}if(p={headers:Y,body:L,json:$},y?yield p:_.push(p),R.slice(0,2)==="--")break e}else a=`\r
|
|
213
|
+
`+a,h=E+=2;T=R,f=T.indexOf(a)}_.length&&(yield _)}}finally{_.length&&(yield _),await v.cancel()}}(e.body,`--${r}`,t)}function mN(e,t,n){const i=async function*(){yield*e}(),r=i.return.bind(i);if(t&&(i.return=(...s)=>(t(),r(...s))),n){const s=i.throw.bind(i);i.throw=a=>(n(a),s(a))}return i}function jx(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function gN(){let e={type:"running"},t=jx();const n=[];function i(a){e.type==="running"&&(n.push(a),t.resolve(),t=jx())}const r=async function*(){for(;;)if(n.length>0)yield n.shift();else{if(e.type==="error")throw e.error;if(e.type==="finished")return;await t.promise}}(),s=mN(r,()=>{e.type==="running"&&(e={type:"finished"},t.resolve())},a=>{e.type==="running"&&(e={type:"error",error:a},t.resolve())});return{pushValue:i,asyncIterableIterator:s}}const CT=e=>{const{pushValue:t,asyncIterableIterator:n}=gN(),i=e({next:a=>{t(a)},complete:()=>{n.return()},error:a=>{n.throw(a)}}),r=n.return;let s;return n.return=()=>(s===void 0&&(i(),s=r()),s),n};function vN(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator&&Symbol.asyncIterator in e)}const yN=e=>typeof e=="object"&&e!==null&&"code"in e,bN=(e,t)=>{let n=!1;return qi(e,{OperationDefinition(i){var r;t===((r=i.name)==null?void 0:r.value)&&i.operation==="subscription"&&(n=!0)}}),n},xN=(e,t)=>async(n,i)=>(await t(e.url,{method:"POST",body:JSON.stringify(n),headers:ri(ri({"content-type":"application/json"},e.headers),i==null?void 0:i.headers)})).json();async function EN(e,t){let n;try{const{createClient:i}=await We(async()=>{const{createClient:r}=await import("./index-CVlvTGMf.js");return{createClient:r}},[]);return n=i({url:e,connectionParams:t}),AT(n)}catch(i){if(yN(i)&&i.code==="MODULE_NOT_FOUND")throw new Error("You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'");console.error(`Error creating websocket client for ${e}`,i)}}const AT=e=>t=>CT(n=>e.subscribe(t,fc(ri({},n),{error(i){i instanceof CloseEvent?n.error(new Error(`Socket closed with event ${i.code} ${i.reason||""}`.trim())):n.error(i)}}))),TN=e=>t=>{const n=e.request(t);return CT(i=>n.subscribe(i).unsubscribe)},SN=(e,t)=>function(n,i){return Bw(this,null,function*(){const r=yield new Vd(t(e.url,{method:"POST",body:JSON.stringify(n),headers:ri(ri({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),i==null?void 0:i.headers)}).then(h=>pN(h,{})));if(!vN(r))return yield r.json();try{for(var s=Uw(r),a,c,f;a=!(c=yield new Vd(s.next())).done;a=!1){const h=c.value;if(h.some(p=>!p.json)){const p=h.map(g=>`Headers::
|
|
214
|
+
${g.headers}
|
|
215
|
+
|
|
216
|
+
Body::
|
|
217
|
+
${g.body}`);throw new Error(`Expected multipart chunks to be of json type. got:
|
|
218
|
+
${p}`)}yield h.map(p=>p.body)}}catch(h){f=[h]}finally{try{a&&(c=s.return)&&(yield new Vd(c.call(s)))}finally{if(f)throw f[0]}}})};async function _N(e,t){if(e.wsClient)return AT(e.wsClient);if(e.subscriptionUrl)return EN(e.subscriptionUrl,ri(ri({},e.wsConnectionParams),t==null?void 0:t.headers));const n=e.legacyClient||e.legacyWsClient;if(n)return TN(n)}function CN(e){const t=e.fetch||typeof window<"u"&&window.fetch;if(!t)throw new Error("No valid fetcher implementation available");e.enableIncrementalDelivery=e.enableIncrementalDelivery!==!1;const n=xN(e,t),i=e.enableIncrementalDelivery?SN(e,t):n;return async(r,s)=>{if(r.operationName==="IntrospectionQuery")return(e.schemaFetcher||n)(r,s);if(s!=null&&s.documentAST&&bN(s.documentAST,r.operationName||void 0)){const a=await _N(e,s);if(!a)throw new Error(`Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. ${e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."}`);return a(r)}return i(r,s)}}function Pm(e){return JSON.stringify(e,null,2)}function AN(e){return fc(ri({},e),{message:e.message,stack:e.stack})}function Px(e){return e instanceof Error?AN(e):e}function Jd(e){return Array.isArray(e)?Pm({errors:e.map(t=>Px(t))}):Pm({errors:[Px(e)]})}function Vm(e){return Pm(e)}function wN(e,t,n){const i=[];if(!e||!t)return{insertions:i,result:t};let r;try{r=cs(t)}catch{return{insertions:i,result:t}}const s=n||DN,a=new _T(e);return qi(r,{leave(c){a.leave(c)},enter(c){if(a.enter(c),c.kind==="Field"&&!c.selectionSet){const f=a.getType(),h=wT(RN(f),s);if(h&&c.loc){const p=ON(t,c.loc.start);i.push({index:c.loc.end,string:" "+ui(h).replaceAll(`
|
|
219
|
+
`,`
|
|
220
|
+
`+p)})}}}}),{insertions:i,result:NN(t,i)}}function DN(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const i of Object.keys(t))R0(t[i].type)&&n.push(i);return n}function wT(e,t){const n=Nn(e);if(!e||R0(e))return;const i=t(n);if(!(!Array.isArray(i)||i.length===0||!("getFields"in n)))return{kind:Z.SELECTION_SET,selections:i.map(r=>{const s=n.getFields()[r],a=s?s.type:null;return{kind:Z.FIELD,name:{kind:Z.NAME,value:r},selectionSet:wT(a,t)}})}}function NN(e,t){if(t.length===0)return e;let n="",i=0;for(const{index:r,string:s}of t)n+=e.slice(i,r)+s,i=r;return n+=e.slice(i),n}function ON(e,t){let n=t,i=t;for(;n;){const r=e.charCodeAt(n-1);if(r===10||r===13||r===8232||r===8233)break;n--,r!==9&&r!==11&&r!==12&&r!==32&&r!==160&&(i=n)}return e.slice(n,i)}function RN(e){if(e)return e}function kN(e,t){var n;const i=new Map,r=[];for(const s of e)if(s.kind==="Field"){const a=t(s),c=i.get(a);if((n=s.directives)!=null&&n.length){const f=ri({},s);r.push(f)}else if(c!=null&&c.selectionSet&&s.selectionSet)c.selectionSet.selections=[...c.selectionSet.selections,...s.selectionSet.selections];else if(!c){const f=ri({},s);i.set(a,f),r.push(f)}}else r.push(s);return r}function DT(e,t,n){var i;const r=n?Nn(n).name:null,s=[],a=[];for(let c of t){if(c.kind==="FragmentSpread"){const f=c.name.value;if(!c.directives||c.directives.length===0){if(a.includes(f))continue;a.push(f)}const h=e[c.name.value];if(h){const{typeCondition:p,directives:g,selectionSet:v}=h;c={kind:Z.INLINE_FRAGMENT,typeCondition:p,directives:g,selectionSet:v}}}if(c.kind===Z.INLINE_FRAGMENT&&(!c.directives||((i=c.directives)==null?void 0:i.length)===0)){const f=c.typeCondition?c.typeCondition.name.value:null;if(!f||f===r){s.push(...DT(e,c.selectionSet.selections,n));continue}}s.push(c)}return s}function MN(e,t){const n=t?new _T(t):null,i=Object.create(null);for(const a of e.definitions)a.kind===Z.FRAGMENT_DEFINITION&&(i[a.name.value]=a);const r={SelectionSet(a){const c=n?n.getParentType():null;let{selections:f}=a;return f=DT(i,f,c),fc(ri({},a),{selections:f})},FragmentDefinition(){return null}},s=qi(e,n?fN(n,r):r);return qi(s,{SelectionSet(a){let{selections:c}=a;return c=kN(c,f=>f.alias?f.alias.value:f.name.value),fc(ri({},a),{selections:c})},FragmentDefinition(){return null}})}function LN(e,t,n){if(!n||n.length<1)return;const i=n.map(r=>{var s;return(s=r.name)==null?void 0:s.value});if(t&&i.includes(t))return t;if(t&&e){const r=e.map(s=>{var a;return(a=s.name)==null?void 0:a.value}).indexOf(t);if(r!==-1&&r<i.length)return i[r]}return i[0]}function IN(e,t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e.length!==0}class FN{constructor(t){t?this.storage=t:t===null?this.storage=null:typeof window>"u"?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let n=0;for(const i in localStorage)i.indexOf(`${gd}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${gd}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${gd}:${t}`,i=this.storage.getItem(n);return i==="null"||i==="undefined"?(this.storage.removeItem(n),null):i||null}set(t,n){let i=!1,r=null;if(this.storage){const s=`${gd}:${t}`;if(n)try{this.storage.setItem(s,n)}catch(a){r=a instanceof Error?a:new Error(`${a}`),i=IN(this.storage,a)}else this.storage.removeItem(s)}return{isQuotaError:i,error:r}}clear(){this.storage&&this.storage.clear()}}const gd="graphiql";class Vx{constructor(t,n,i=null){this.key=t,this.storage=n,this.maxSize=i,this.items=this.fetchAll()}get length(){return this.items.length}contains(t){return this.items.some(n=>n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName)}edit(t,n){if(typeof n=="number"&&this.items[n]){const r=this.items[n];if(r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName){this.items.splice(n,1,t),this.save();return}}const i=this.items.findIndex(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName);i!==-1&&(this.items.splice(i,1,t),this.save())}delete(t){const n=this.items.findIndex(i=>i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]}push(t){const n=[...this.items,t];this.maxSize&&n.length>this.maxSize&&n.shift();for(let i=0;i<5;i++){const r=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!(r!=null&&r.error))this.items=n;else if(r.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}const jN=1e5;class PN{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=({query:i,variables:r,headers:s,operationName:a})=>{if(!this.shouldSaveQuery(i,r,s,this.history.fetchRecent()))return;this.history.push({query:i,variables:r,headers:s,operationName:a});const c=this.history.items,f=this.favorite.items;this.queries=c.concat(f)},this.deleteHistory=({query:i,variables:r,headers:s,operationName:a,favorite:c},f=!1)=>{function h(p){const g=p.items.find(v=>v.query===i&&v.variables===r&&v.headers===s&&v.operationName===a);g&&p.delete(g)}(c||f)&&h(this.favorite),(!c||f)&&h(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new Vx("queries",this.storage,this.maxHistoryLength),this.favorite=new Vx("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,i,r){if(!t)return!1;try{cs(t)}catch{return!1}return t.length>jN?!1:r?!(JSON.stringify(t)===JSON.stringify(r.query)&&(JSON.stringify(n)===JSON.stringify(r.variables)&&(JSON.stringify(i)===JSON.stringify(r.headers)||i&&!r.headers)||n&&!r.variables)):!0}toggleFavorite({query:t,variables:n,headers:i,operationName:r,label:s,favorite:a}){const c={query:t,variables:n,headers:i,operationName:r,label:s};a?(c.favorite=!1,this.favorite.delete(c),this.history.push(c)):(c.favorite=!0,this.favorite.push(c),this.history.delete(c)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:t,variables:n,headers:i,operationName:r,label:s,favorite:a},c){const f={query:t,variables:n,headers:i,operationName:r,label:s};a?this.favorite.edit(fc(ri({},f),{favorite:a}),c):this.history.edit(f,c),this.queries=[...this.history.items,...this.favorite.items]}}/**
|
|
221
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the MIT license found in the
|
|
224
|
+
* LICENSE file in the root directory of this source tree.
|
|
225
|
+
*
|
|
226
|
+
* @lightSyntaxTransform
|
|
227
|
+
* @noflow
|
|
228
|
+
* @nolint
|
|
229
|
+
* @preventMunge
|
|
230
|
+
* @preserve-invariant-messages
|
|
231
|
+
*/var T1,$x;function VN(){if($x)return T1;$x=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,r=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,a=(P,V)=>{for(var k in V)t(P,k,{get:V[k],enumerable:!0})},c=(P,V,k,H)=>{if(V&&typeof V=="object"||typeof V=="function")for(let oe of i(V))!s.call(P,oe)&&oe!==k&&t(P,oe,{get:()=>V[oe],enumerable:!(H=n(V,oe))||H.enumerable});return P},f=(P,V,k)=>(k=P!=null?e(r(P)):{},c(!P||!P.__esModule?t(k,"default",{value:P,enumerable:!0}):k,P)),h=P=>c(t({},"__esModule",{value:!0}),P),p={};a(p,{$dispatcherGuard:()=>$,$makeReadOnly:()=>U,$reset:()=>L,$structuralCheck:()=>z,c:()=>A,clearRenderCounterRegistry:()=>K,renderCounterRegistry:()=>Y,useRenderCounter:()=>te}),T1=h(p);var g=f(jc()),{useRef:v,useEffect:y,isValidElement:E}=g,T,_=(T=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?T:g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=Symbol.for("react.memo_cache_sentinel"),D,A=typeof((D=g.__COMPILER_RUNTIME)==null?void 0:D.c)=="function"?g.__COMPILER_RUNTIME.c:function(V){return g.useMemo(()=>{const k=new Array(V);for(let H=0;H<V;H++)k[H]=S;return k[S]=!0,k},[])},N={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(P=>{N[P]=()=>{throw new Error(`[React] Unexpected React hook call (${P}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var R=null;N.useMemoCache=P=>{if(R==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return R.useMemoCache(P)};function M(P){return _.ReactCurrentDispatcher.current=P,_.ReactCurrentDispatcher.current}var j=[];function $(P){const V=_.ReactCurrentDispatcher.current;if(P===0){if(j.push(V),j.length===1&&(R=V),V===N)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");M(N)}else if(P===1){const k=j.pop();if(k==null)throw new Error("React Compiler internal error: unexpected null in guard stack");j.length===0&&(R=null),M(k)}else if(P===2)j.push(V),M(R);else if(P===3){const k=j.pop();if(k==null)throw new Error("React Compiler internal error: unexpected null in guard stack");M(k)}else throw new Error("React Compiler internal error: unreachable block"+P)}function L(P){for(let V=0;V<P.length;V++)P[V]=S}function U(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var Y=new Map;function K(){for(const P of Y.values())P.forEach(V=>{V.count=0})}function se(P,V){let k=Y.get(P);k==null&&(k=new Set,Y.set(P,k)),k.add(V)}function ne(P,V){const k=Y.get(P);k!=null&&k.delete(V)}function te(P){const V=v(null);V.current!=null&&(V.current.count+=1),y(()=>{if(V.current==null){const k={count:0};se(P,k),V.current=k}return()=>{V.current!==null&&ne(P,V.current)}})}var I=new Set;function z(P,V,k,H,oe,ie){function G(fe,re,me,xe){const Te=`${H}:${ie} [${oe}] ${k}${me} changed from ${fe} to ${re} at depth ${xe}`;I.has(Te)||(I.add(Te),console.error(Te))}const pe=2;function de(fe,re,me,xe){if(!(xe>pe)){if(fe===re)return;if(typeof fe!=typeof re)G(`type ${typeof fe}`,`type ${typeof re}`,me,xe);else if(typeof fe=="object"){const Te=Array.isArray(fe),st=Array.isArray(re);if(fe===null&&re!==null)G("null",`type ${typeof re}`,me,xe);else if(re===null)G(`type ${typeof fe}`,"null",me,xe);else if(fe instanceof Map)if(!(re instanceof Map))G("Map instance","other value",me,xe);else if(fe.size!==re.size)G(`Map instance with size ${fe.size}`,`Map instance with size ${re.size}`,me,xe);else for(const[_e,gt]of fe)re.has(_e)?de(gt,re.get(_e),`${me}.get(${_e})`,xe+1):G(`Map instance with key ${_e}`,`Map instance without key ${_e}`,me,xe);else if(re instanceof Map)G("other value","Map instance",me,xe);else if(fe instanceof Set)if(!(re instanceof Set))G("Set instance","other value",me,xe);else if(fe.size!==re.size)G(`Set instance with size ${fe.size}`,`Set instance with size ${re.size}`,me,xe);else for(const _e of re)fe.has(_e)||G(`Set instance without element ${_e}`,`Set instance with element ${_e}`,me,xe);else if(re instanceof Set)G("other value","Set instance",me,xe);else if(Te||st)if(Te!==st)G(`type ${Te?"array":"object"}`,`type ${st?"array":"object"}`,me,xe);else if(fe.length!==re.length)G(`array with length ${fe.length}`,`array with length ${re.length}`,me,xe);else for(let _e=0;_e<fe.length;_e++)de(fe[_e],re[_e],`${me}[${_e}]`,xe+1);else if(E(fe)||E(re))E(fe)!==E(re)?G(`type ${E(fe)?"React element":"object"}`,`type ${E(re)?"React element":"object"}`,me,xe):fe.type!==re.type?G(`React element of type ${fe.type}`,`React element of type ${re.type}`,me,xe):de(fe.props,re.props,`[props of ${me}]`,xe+1);else{for(const _e in re)_e in fe||G(`object without key ${_e}`,`object with key ${_e}`,me,xe);for(const _e in fe)_e in re?de(fe[_e],re[_e],`${me}.${_e}`,xe+1):G(`object with key ${_e}`,`object without key ${_e}`,me,xe)}}else{if(typeof fe=="function")return;isNaN(fe)||isNaN(re)?isNaN(fe)!==isNaN(re)&&G(`${isNaN(fe)?"NaN":"non-NaN value"}`,`${isNaN(re)?"NaN":"non-NaN value"}`,me,xe):fe!==re&&G(fe,re,me,xe)}}}de(P,V,"",0)}return T1}var ge=VN();function rs(e){const t=Object.keys(e),n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=e[t[r]];return i}function vt(e,t){return $N(t,NT(e.string))}function $N(e,t){if(!t||t.trim()===""||t.trim()===":"||t.trim()==="{")return S1(e,i=>!i.isDeprecated);const n=e.map(i=>({proximity:BN(NT(i.label),t),entry:i}));return S1(S1(n,i=>i.proximity<=2),i=>!i.entry.isDeprecated).sort((i,r)=>(i.entry.isDeprecated?1:0)-(r.entry.isDeprecated?1:0)||i.proximity-r.proximity||i.entry.label.length-r.entry.label.length).map(i=>i.entry)}function S1(e,t){const n=e.filter(t);return n.length===0?e:n}function NT(e){return e.toLowerCase().replaceAll(/\W/g,"")}function BN(e,t){let n=UN(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function UN(e,t){let n,i;const r=[],s=e.length,a=t.length;for(n=0;n<=s;n++)r[n]=[n];for(i=1;i<=a;i++)r[0][i]=i;for(n=1;n<=s;n++)for(i=1;i<=a;i++){const c=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+c),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+c))}return r[s][a]}const zN=e=>` {
|
|
232
|
+
$1
|
|
233
|
+
}`,e0=(e,t,n)=>{if(!t)return n??e;const i=Nn(t);return bt(i)||sn(i)||kn(i)||cu(i)?e+zN():n??e},Bx=(e,t,n)=>{if(kn(t)){const i=Nn(t.ofType);return e+`[${e0("",i,"$1")}]`}return e0(e,t,n)},qN=e=>{const t=e.args.filter(n=>n.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((n,i)=>`${n.name}: $${i+1}`)}) ${e0("",e.type,`
|
|
234
|
+
`)}`};var Ux;(function(e){function t(n){return typeof n=="string"}e.is=t})(Ux||(Ux={}));var $m;(function(e){function t(n){return typeof n=="string"}e.is=t})($m||($m={}));var zx;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(zx||(zx={}));var t0;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(t0||(t0={}));var Bi;(function(e){function t(i,r){return i===Number.MAX_VALUE&&(i=t0.MAX_VALUE),r===Number.MAX_VALUE&&(r=t0.MAX_VALUE),{line:i,character:r}}e.create=t;function n(i){let r=i;return W.objectLiteral(r)&&W.uinteger(r.line)&&W.uinteger(r.character)}e.is=n})(Bi||(Bi={}));var jt;(function(e){function t(i,r,s,a){if(W.uinteger(i)&&W.uinteger(r)&&W.uinteger(s)&&W.uinteger(a))return{start:Bi.create(i,r),end:Bi.create(s,a)};if(Bi.is(i)&&Bi.is(r))return{start:i,end:r};throw new Error(`Range#create called with invalid arguments[${i}, ${r}, ${s}, ${a}]`)}e.create=t;function n(i){let r=i;return W.objectLiteral(r)&&Bi.is(r.start)&&Bi.is(r.end)}e.is=n})(jt||(jt={}));var n0;(function(e){function t(i,r){return{uri:i,range:r}}e.create=t;function n(i){let r=i;return W.objectLiteral(r)&&jt.is(r.range)&&(W.string(r.uri)||W.undefined(r.uri))}e.is=n})(n0||(n0={}));var qx;(function(e){function t(i,r,s,a){return{targetUri:i,targetRange:r,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(i){let r=i;return W.objectLiteral(r)&&jt.is(r.targetRange)&&W.string(r.targetUri)&&jt.is(r.targetSelectionRange)&&(jt.is(r.originSelectionRange)||W.undefined(r.originSelectionRange))}e.is=n})(qx||(qx={}));var Bm;(function(e){function t(i,r,s,a){return{red:i,green:r,blue:s,alpha:a}}e.create=t;function n(i){const r=i;return W.objectLiteral(r)&&W.numberRange(r.red,0,1)&&W.numberRange(r.green,0,1)&&W.numberRange(r.blue,0,1)&&W.numberRange(r.alpha,0,1)}e.is=n})(Bm||(Bm={}));var Hx;(function(e){function t(i,r){return{range:i,color:r}}e.create=t;function n(i){const r=i;return W.objectLiteral(r)&&jt.is(r.range)&&Bm.is(r.color)}e.is=n})(Hx||(Hx={}));var Gx;(function(e){function t(i,r,s){return{label:i,textEdit:r,additionalTextEdits:s}}e.create=t;function n(i){const r=i;return W.objectLiteral(r)&&W.string(r.label)&&(W.undefined(r.textEdit)||Ca.is(r))&&(W.undefined(r.additionalTextEdits)||W.typedArray(r.additionalTextEdits,Ca.is))}e.is=n})(Gx||(Gx={}));var Yx;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Yx||(Yx={}));var Qx;(function(e){function t(i,r,s,a,c,f){const h={startLine:i,endLine:r};return W.defined(s)&&(h.startCharacter=s),W.defined(a)&&(h.endCharacter=a),W.defined(c)&&(h.kind=c),W.defined(f)&&(h.collapsedText=f),h}e.create=t;function n(i){const r=i;return W.objectLiteral(r)&&W.uinteger(r.startLine)&&W.uinteger(r.startLine)&&(W.undefined(r.startCharacter)||W.uinteger(r.startCharacter))&&(W.undefined(r.endCharacter)||W.uinteger(r.endCharacter))&&(W.undefined(r.kind)||W.string(r.kind))}e.is=n})(Qx||(Qx={}));var Um;(function(e){function t(i,r){return{location:i,message:r}}e.create=t;function n(i){let r=i;return W.defined(r)&&n0.is(r.location)&&W.string(r.message)}e.is=n})(Um||(Um={}));var Xx;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Xx||(Xx={}));var Zx;(function(e){e.Unnecessary=1,e.Deprecated=2})(Zx||(Zx={}));var Wx;(function(e){function t(n){const i=n;return W.objectLiteral(i)&&W.string(i.href)}e.is=t})(Wx||(Wx={}));var i0;(function(e){function t(i,r,s,a,c,f){let h={range:i,message:r};return W.defined(s)&&(h.severity=s),W.defined(a)&&(h.code=a),W.defined(c)&&(h.source=c),W.defined(f)&&(h.relatedInformation=f),h}e.create=t;function n(i){var r;let s=i;return W.defined(s)&&jt.is(s.range)&&W.string(s.message)&&(W.number(s.severity)||W.undefined(s.severity))&&(W.integer(s.code)||W.string(s.code)||W.undefined(s.code))&&(W.undefined(s.codeDescription)||W.string((r=s.codeDescription)===null||r===void 0?void 0:r.href))&&(W.string(s.source)||W.undefined(s.source))&&(W.undefined(s.relatedInformation)||W.typedArray(s.relatedInformation,Um.is))}e.is=n})(i0||(i0={}));var _a;(function(e){function t(i,r,...s){let a={title:i,command:r};return W.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function n(i){let r=i;return W.defined(r)&&W.string(r.title)&&W.string(r.command)}e.is=n})(_a||(_a={}));var Ca;(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function n(s,a){return{range:{start:s,end:s},newText:a}}e.insert=n;function i(s){return{range:s,newText:""}}e.del=i;function r(s){const a=s;return W.objectLiteral(a)&&W.string(a.newText)&&jt.is(a.range)}e.is=r})(Ca||(Ca={}));var zm;(function(e){function t(i,r,s){const a={label:i};return r!==void 0&&(a.needsConfirmation=r),s!==void 0&&(a.description=s),a}e.create=t;function n(i){const r=i;return W.objectLiteral(r)&&W.string(r.label)&&(W.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(W.string(r.description)||r.description===void 0)}e.is=n})(zm||(zm={}));var Aa;(function(e){function t(n){const i=n;return W.string(i)}e.is=t})(Aa||(Aa={}));var Kx;(function(e){function t(s,a,c){return{range:s,newText:a,annotationId:c}}e.replace=t;function n(s,a,c){return{range:{start:s,end:s},newText:a,annotationId:c}}e.insert=n;function i(s,a){return{range:s,newText:"",annotationId:a}}e.del=i;function r(s){const a=s;return Ca.is(a)&&(zm.is(a.annotationId)||Aa.is(a.annotationId))}e.is=r})(Kx||(Kx={}));var qm;(function(e){function t(i,r){return{textDocument:i,edits:r}}e.create=t;function n(i){let r=i;return W.defined(r)&&Xm.is(r.textDocument)&&Array.isArray(r.edits)}e.is=n})(qm||(qm={}));var Hm;(function(e){function t(i,r,s){let a={kind:"create",uri:i};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(i){let r=i;return r&&r.kind==="create"&&W.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||W.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||W.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Aa.is(r.annotationId))}e.is=n})(Hm||(Hm={}));var Gm;(function(e){function t(i,r,s,a){let c={kind:"rename",oldUri:i,newUri:r};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(c.options=s),a!==void 0&&(c.annotationId=a),c}e.create=t;function n(i){let r=i;return r&&r.kind==="rename"&&W.string(r.oldUri)&&W.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||W.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||W.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||Aa.is(r.annotationId))}e.is=n})(Gm||(Gm={}));var Ym;(function(e){function t(i,r,s){let a={kind:"delete",uri:i};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(a.options=r),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(i){let r=i;return r&&r.kind==="delete"&&W.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||W.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||W.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||Aa.is(r.annotationId))}e.is=n})(Ym||(Ym={}));var Qm;(function(e){function t(n){let i=n;return i&&(i.changes!==void 0||i.documentChanges!==void 0)&&(i.documentChanges===void 0||i.documentChanges.every(r=>W.string(r.kind)?Hm.is(r)||Gm.is(r)||Ym.is(r):qm.is(r)))}e.is=t})(Qm||(Qm={}));var Jx;(function(e){function t(i){return{uri:i}}e.create=t;function n(i){let r=i;return W.defined(r)&&W.string(r.uri)}e.is=n})(Jx||(Jx={}));var eE;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return W.defined(r)&&W.string(r.uri)&&W.integer(r.version)}e.is=n})(eE||(eE={}));var Xm;(function(e){function t(i,r){return{uri:i,version:r}}e.create=t;function n(i){let r=i;return W.defined(r)&&W.string(r.uri)&&(r.version===null||W.integer(r.version))}e.is=n})(Xm||(Xm={}));var tE;(function(e){function t(i,r,s,a){return{uri:i,languageId:r,version:s,text:a}}e.create=t;function n(i){let r=i;return W.defined(r)&&W.string(r.uri)&&W.string(r.languageId)&&W.integer(r.version)&&W.string(r.text)}e.is=n})(tE||(tE={}));var Zm;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const i=n;return i===e.PlainText||i===e.Markdown}e.is=t})(Zm||(Zm={}));var vc;(function(e){function t(n){const i=n;return W.objectLiteral(n)&&Zm.is(i.kind)&&W.string(i.value)}e.is=t})(vc||(vc={}));var nE;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(nE||(nE={}));var va;(function(e){e.PlainText=1,e.Snippet=2})(va||(va={}));var iE;(function(e){e.Deprecated=1})(iE||(iE={}));var rE;(function(e){function t(i,r,s){return{newText:i,insert:r,replace:s}}e.create=t;function n(i){const r=i;return r&&W.string(r.newText)&&jt.is(r.insert)&&jt.is(r.replace)}e.is=n})(rE||(rE={}));var Go;(function(e){e.asIs=1,e.adjustIndentation=2})(Go||(Go={}));var uE;(function(e){function t(n){const i=n;return i&&(W.string(i.detail)||i.detail===void 0)&&(W.string(i.description)||i.description===void 0)}e.is=t})(uE||(uE={}));var oE;(function(e){function t(n){return{label:n}}e.create=t})(oE||(oE={}));var sE;(function(e){function t(n,i){return{items:n||[],isIncomplete:!!i}}e.create=t})(sE||(sE={}));var r0;(function(e){function t(i){return i.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(i){const r=i;return W.string(r)||W.objectLiteral(r)&&W.string(r.language)&&W.string(r.value)}e.is=n})(r0||(r0={}));var aE;(function(e){function t(n){let i=n;return!!i&&W.objectLiteral(i)&&(vc.is(i.contents)||r0.is(i.contents)||W.typedArray(i.contents,r0.is))&&(n.range===void 0||jt.is(n.range))}e.is=t})(aE||(aE={}));var lE;(function(e){function t(n,i){return i?{label:n,documentation:i}:{label:n}}e.create=t})(lE||(lE={}));var cE;(function(e){function t(n,i,...r){let s={label:n};return W.defined(i)&&(s.documentation=i),W.defined(r)?s.parameters=r:s.parameters=[],s}e.create=t})(cE||(cE={}));var fE;(function(e){e.Text=1,e.Read=2,e.Write=3})(fE||(fE={}));var dE;(function(e){function t(n,i){let r={range:n};return W.number(i)&&(r.kind=i),r}e.create=t})(dE||(dE={}));var hE;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(hE||(hE={}));var pE;(function(e){e.Deprecated=1})(pE||(pE={}));var mE;(function(e){function t(n,i,r,s,a){let c={name:n,kind:i,location:{uri:s,range:r}};return a&&(c.containerName=a),c}e.create=t})(mE||(mE={}));var gE;(function(e){function t(n,i,r,s){return s!==void 0?{name:n,kind:i,location:{uri:r,range:s}}:{name:n,kind:i,location:{uri:r}}}e.create=t})(gE||(gE={}));var vE;(function(e){function t(i,r,s,a,c,f){let h={name:i,detail:r,kind:s,range:a,selectionRange:c};return f!==void 0&&(h.children=f),h}e.create=t;function n(i){let r=i;return r&&W.string(r.name)&&W.number(r.kind)&&jt.is(r.range)&&jt.is(r.selectionRange)&&(r.detail===void 0||W.string(r.detail))&&(r.deprecated===void 0||W.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=n})(vE||(vE={}));var yE;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(yE||(yE={}));var u0;(function(e){e.Invoked=1,e.Automatic=2})(u0||(u0={}));var bE;(function(e){function t(i,r,s){let a={diagnostics:i};return r!=null&&(a.only=r),s!=null&&(a.triggerKind=s),a}e.create=t;function n(i){let r=i;return W.defined(r)&&W.typedArray(r.diagnostics,i0.is)&&(r.only===void 0||W.typedArray(r.only,W.string))&&(r.triggerKind===void 0||r.triggerKind===u0.Invoked||r.triggerKind===u0.Automatic)}e.is=n})(bE||(bE={}));var xE;(function(e){function t(i,r,s){let a={title:i},c=!0;return typeof r=="string"?(c=!1,a.kind=r):_a.is(r)?a.command=r:a.edit=r,c&&s!==void 0&&(a.kind=s),a}e.create=t;function n(i){let r=i;return r&&W.string(r.title)&&(r.diagnostics===void 0||W.typedArray(r.diagnostics,i0.is))&&(r.kind===void 0||W.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||_a.is(r.command))&&(r.isPreferred===void 0||W.boolean(r.isPreferred))&&(r.edit===void 0||Qm.is(r.edit))}e.is=n})(xE||(xE={}));var EE;(function(e){function t(i,r){let s={range:i};return W.defined(r)&&(s.data=r),s}e.create=t;function n(i){let r=i;return W.defined(r)&&jt.is(r.range)&&(W.undefined(r.command)||_a.is(r.command))}e.is=n})(EE||(EE={}));var TE;(function(e){function t(i,r){return{tabSize:i,insertSpaces:r}}e.create=t;function n(i){let r=i;return W.defined(r)&&W.uinteger(r.tabSize)&&W.boolean(r.insertSpaces)}e.is=n})(TE||(TE={}));var SE;(function(e){function t(i,r,s){return{range:i,target:r,data:s}}e.create=t;function n(i){let r=i;return W.defined(r)&&jt.is(r.range)&&(W.undefined(r.target)||W.string(r.target))}e.is=n})(SE||(SE={}));var _E;(function(e){function t(i,r){return{range:i,parent:r}}e.create=t;function n(i){let r=i;return W.objectLiteral(r)&&jt.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=n})(_E||(_E={}));var CE;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(CE||(CE={}));var AE;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(AE||(AE={}));var wE;(function(e){function t(n){const i=n;return W.objectLiteral(i)&&(i.resultId===void 0||typeof i.resultId=="string")&&Array.isArray(i.data)&&(i.data.length===0||typeof i.data[0]=="number")}e.is=t})(wE||(wE={}));var DE;(function(e){function t(i,r){return{range:i,text:r}}e.create=t;function n(i){const r=i;return r!=null&&jt.is(r.range)&&W.string(r.text)}e.is=n})(DE||(DE={}));var NE;(function(e){function t(i,r,s){return{range:i,variableName:r,caseSensitiveLookup:s}}e.create=t;function n(i){const r=i;return r!=null&&jt.is(r.range)&&W.boolean(r.caseSensitiveLookup)&&(W.string(r.variableName)||r.variableName===void 0)}e.is=n})(NE||(NE={}));var OE;(function(e){function t(i,r){return{range:i,expression:r}}e.create=t;function n(i){const r=i;return r!=null&&jt.is(r.range)&&(W.string(r.expression)||r.expression===void 0)}e.is=n})(OE||(OE={}));var RE;(function(e){function t(i,r){return{frameId:i,stoppedLocation:r}}e.create=t;function n(i){const r=i;return W.defined(r)&&jt.is(i.stoppedLocation)}e.is=n})(RE||(RE={}));var Wm;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Wm||(Wm={}));var Km;(function(e){function t(i){return{value:i}}e.create=t;function n(i){const r=i;return W.objectLiteral(r)&&(r.tooltip===void 0||W.string(r.tooltip)||vc.is(r.tooltip))&&(r.location===void 0||n0.is(r.location))&&(r.command===void 0||_a.is(r.command))}e.is=n})(Km||(Km={}));var kE;(function(e){function t(i,r,s){const a={position:i,label:r};return s!==void 0&&(a.kind=s),a}e.create=t;function n(i){const r=i;return W.objectLiteral(r)&&Bi.is(r.position)&&(W.string(r.label)||W.typedArray(r.label,Km.is))&&(r.kind===void 0||Wm.is(r.kind))&&r.textEdits===void 0||W.typedArray(r.textEdits,Ca.is)&&(r.tooltip===void 0||W.string(r.tooltip)||vc.is(r.tooltip))&&(r.paddingLeft===void 0||W.boolean(r.paddingLeft))&&(r.paddingRight===void 0||W.boolean(r.paddingRight))}e.is=n})(kE||(kE={}));var ME;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(ME||(ME={}));var LE;(function(e){function t(n,i,r,s){return{insertText:n,filterText:i,range:r,command:s}}e.create=t})(LE||(LE={}));var IE;(function(e){function t(n){return{items:n}}e.create=t})(IE||(IE={}));var FE;(function(e){e.Invoked=0,e.Automatic=1})(FE||(FE={}));var jE;(function(e){function t(n,i){return{range:n,text:i}}e.create=t})(jE||(jE={}));var PE;(function(e){function t(n,i){return{triggerKind:n,selectedCompletionInfo:i}}e.create=t})(PE||(PE={}));var VE;(function(e){function t(n){const i=n;return W.objectLiteral(i)&&$m.is(i.uri)&&W.string(i.name)}e.is=t})(VE||(VE={}));var $E;(function(e){function t(s,a,c,f){return new HN(s,a,c,f)}e.create=t;function n(s){let a=s;return!!(W.defined(a)&&W.string(a.uri)&&(W.undefined(a.languageId)||W.string(a.languageId))&&W.uinteger(a.lineCount)&&W.func(a.getText)&&W.func(a.positionAt)&&W.func(a.offsetAt))}e.is=n;function i(s,a){let c=s.getText(),f=r(a,(p,g)=>{let v=p.range.start.line-g.range.start.line;return v===0?p.range.start.character-g.range.start.character:v}),h=c.length;for(let p=f.length-1;p>=0;p--){let g=f[p],v=s.offsetAt(g.range.start),y=s.offsetAt(g.range.end);if(y<=h)c=c.substring(0,v)+g.newText+c.substring(y,c.length);else throw new Error("Overlapping edit");h=v}return c}e.applyEdits=i;function r(s,a){if(s.length<=1)return s;const c=s.length/2|0,f=s.slice(0,c),h=s.slice(c);r(f,a),r(h,a);let p=0,g=0,v=0;for(;p<f.length&&g<h.length;)a(f[p],h[g])<=0?s[v++]=f[p++]:s[v++]=h[g++];for(;p<f.length;)s[v++]=f[p++];for(;g<h.length;)s[v++]=h[g++];return s}})($E||($E={}));class HN{constructor(t,n,i,r){this._uri=t,this._languageId=n,this._version=i,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),i=this.offsetAt(t.end);return this._content.substring(n,i)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,i=!0;for(let r=0;r<n.length;r++){i&&(t.push(r),i=!1);let s=n.charAt(r);i=s==="\r"||s===`
|
|
235
|
+
`,s==="\r"&&r+1<n.length&&n.charAt(r+1)===`
|
|
236
|
+
`&&r++}i&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),i=0,r=n.length;if(r===0)return Bi.create(0,t);for(;i<r;){let a=Math.floor((i+r)/2);n[a]>t?r=a:i=a+1}let s=i-1;return Bi.create(s,t-n[s])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let i=n[t.line],r=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(i+t.character,r),i)}get lineCount(){return this.getLineOffsets().length}}var W;(function(e){const t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function i(y){return typeof y>"u"}e.undefined=i;function r(y){return y===!0||y===!1}e.boolean=r;function s(y){return t.call(y)==="[object String]"}e.string=s;function a(y){return t.call(y)==="[object Number]"}e.number=a;function c(y,E,T){return t.call(y)==="[object Number]"&&E<=y&&y<=T}e.numberRange=c;function f(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=f;function h(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=h;function p(y){return t.call(y)==="[object Function]"}e.func=p;function g(y){return y!==null&&typeof y=="object"}e.objectLiteral=g;function v(y,E){return Array.isArray(y)&&y.every(E)}e.typedArray=v})(W||(W={}));class BE{constructor(t){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let i=this._testNextCharacter(n),r=!1;for(i&&(r=i,this._start=this._pos);i;)this._pos++,i=this._testNextCharacter(n),r=!0;return r},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,i=!0,r=!1)=>{let s=null,a=null;return typeof n=="string"?(a=new RegExp(n,r?"i":"g").test(this._sourceText.slice(this._pos,this._pos+n.length)),s=n):n instanceof RegExp&&(a=this._sourceText.slice(this._pos).match(n),s=a==null?void 0:a[0]),a!=null&&(typeof n=="string"||a instanceof Array&&this._sourceText.startsWith(a[0],this._pos))?(i&&(this._start=this._pos,s&&s.length&&(this._pos+=s.length)),a):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{const n=this._sourceText.match(/\s*/);let i=0;if(n&&n.length!==0){const r=n[0];let s=0;for(;r.length>s;)r.charCodeAt(s)===9?i+=2:i++,s++}return i},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t}_testNextCharacter(t){const n=this._sourceText.charAt(this._pos);let i=!1;return typeof t=="string"?i=n===t:i=t instanceof RegExp?t.test(n):t(n),i}}function Mt(e){return{ofRule:e}}function Xe(e,t){return{ofRule:e,isList:!0,separator:t}}function GN(e,t){const n=e.match;return e.match=i=>{let r=!1;return n&&(r=n(i)),r&&t.every(s=>s.match&&!s.match(i))},e}function _1(e,t){return{style:t,match:n=>n.kind===e}}function Ie(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}const YN=e=>e===" "||e===" "||e===","||e===`
|
|
237
|
+
`||e==="\r"||e==="\uFEFF"||e===" ",QN={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},XN={Document:[Xe("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Z.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[pn("query"),Mt(pt("def")),Mt("VariableDefinitions"),Xe("Directive"),"SelectionSet"],Mutation:[pn("mutation"),Mt(pt("def")),Mt("VariableDefinitions"),Xe("Directive"),"SelectionSet"],Subscription:[pn("subscription"),Mt(pt("def")),Mt("VariableDefinitions"),Xe("Directive"),"SelectionSet"],VariableDefinitions:[Ie("("),Xe("VariableDefinition"),Ie(")")],VariableDefinition:["Variable",Ie(":"),"Type",Mt("DefaultValue")],Variable:[Ie("$","variable"),pt("variable")],DefaultValue:[Ie("="),"Value"],SelectionSet:[Ie("{"),Xe("Selection"),Ie("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[pt("property"),Ie(":"),pt("qualifier"),Mt("Arguments"),Xe("Directive"),Mt("SelectionSet")],Field:[pt("property"),Mt("Arguments"),Xe("Directive"),Mt("SelectionSet")],Arguments:[Ie("("),Xe("Argument"),Ie(")")],Argument:[pt("attribute"),Ie(":"),"Value"],FragmentSpread:[Ie("..."),pt("def"),Xe("Directive")],InlineFragment:[Ie("..."),Mt("TypeCondition"),Xe("Directive"),"SelectionSet"],FragmentDefinition:[pn("fragment"),Mt(GN(pt("def"),[pn("on")])),"TypeCondition",Xe("Directive"),"SelectionSet"],TypeCondition:[pn("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[_1("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[_1("Name","builtin")],NullValue:[_1("Name","keyword")],EnumValue:[pt("string-2")],ListValue:[Ie("["),Xe("Value"),Ie("]")],ObjectValue:[Ie("{"),Xe("ObjectField"),Ie("}")],ObjectField:[pt("attribute"),Ie(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[Ie("["),"Type",Ie("]"),Mt(Ie("!"))],NonNullType:["NamedType",Mt(Ie("!"))],NamedType:[ZN("atom")],Directive:[Ie("@","meta"),pt("meta"),Mt("Arguments")],DirectiveDef:[pn("directive"),Ie("@","meta"),pt("meta"),Mt("ArgumentsDef"),pn("on"),Xe("DirectiveLocation",Ie("|"))],InterfaceDef:[pn("interface"),pt("atom"),Mt("Implements"),Xe("Directive"),Ie("{"),Xe("FieldDef"),Ie("}")],Implements:[pn("implements"),Xe("NamedType",Ie("&"))],DirectiveLocation:[pt("string-2")],SchemaDef:[pn("schema"),Xe("Directive"),Ie("{"),Xe("OperationTypeDef"),Ie("}")],OperationTypeDef:[pt("keyword"),Ie(":"),pt("atom")],ScalarDef:[pn("scalar"),pt("atom"),Xe("Directive")],ObjectTypeDef:[pn("type"),pt("atom"),Mt("Implements"),Xe("Directive"),Ie("{"),Xe("FieldDef"),Ie("}")],FieldDef:[pt("property"),Mt("ArgumentsDef"),Ie(":"),"Type",Xe("Directive")],ArgumentsDef:[Ie("("),Xe("InputValueDef"),Ie(")")],InputValueDef:[pt("attribute"),Ie(":"),"Type",Mt("DefaultValue"),Xe("Directive")],UnionDef:[pn("union"),pt("atom"),Xe("Directive"),Ie("="),Xe("UnionMember",Ie("|"))],UnionMember:["NamedType"],EnumDef:[pn("enum"),pt("atom"),Xe("Directive"),Ie("{"),Xe("EnumValueDef"),Ie("}")],EnumValueDef:[pt("string-2"),Xe("Directive")],InputDef:[pn("input"),pt("atom"),Xe("Directive"),Ie("{"),Xe("InputValueDef"),Ie("}")],ExtendDef:[pn("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return Z.SCHEMA_EXTENSION;case"scalar":return Z.SCALAR_TYPE_EXTENSION;case"type":return Z.OBJECT_TYPE_EXTENSION;case"interface":return Z.INTERFACE_TYPE_EXTENSION;case"union":return Z.UNION_TYPE_EXTENSION;case"enum":return Z.ENUM_TYPE_EXTENSION;case"input":return Z.INPUT_OBJECT_TYPE_EXTENSION}},[Z.SCHEMA_EXTENSION]:["SchemaDef"],[Z.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[Z.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[Z.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[Z.UNION_TYPE_EXTENSION]:["UnionDef"],[Z.ENUM_TYPE_EXTENSION]:["EnumDef"],[Z.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function pn(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function pt(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function ZN(e){return{style:e,match:t=>t.kind==="Name",update(t,n){var i;!((i=t.prevState)===null||i===void 0)&&i.prevState&&(t.name=n.value,t.prevState.prevState.type=n.value)}}}function WN(e={eatWhitespace:t=>t.eatWhile(YN),lexRules:QN,parseRules:XN,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Xl(e.parseRules,t,Z.DOCUMENT),t},token(t,n){return KN(t,n,e)}}}function KN(e,t,n){var i;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:r,parseRules:s,eatWhitespace:a,editorConfig:c}=n;if(t.rule&&t.rule.length===0?a2(t):t.needsAdvance&&(t.needsAdvance=!1,Jm(t,!0)),e.sol()){const p=(c==null?void 0:c.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/p)}if(a(e))return"ws";const f=eO(r,e);if(!f)return e.match(/\S+/)||e.match(/\s/),Xl(C1,t,"Invalid"),"invalidchar";if(f.kind==="Comment")return Xl(C1,t,"Comment"),"comment";const h=UE({},t);if(f.kind==="Punctuation"){if(/^[{([]/.test(f.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(f.value)){const p=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&p.length>0&&p.at(-1)<t.indentLevel&&(t.indentLevel=p.at(-1))}}for(;t.rule;){let p=typeof t.rule=="function"?t.step===0?t.rule(f,e):null:t.rule[t.step];if(t.needsSeparator&&(p=p==null?void 0:p.separator),p){if(p.ofRule&&(p=p.ofRule),typeof p=="string"){Xl(s,t,p);continue}if(!((i=p.match)===null||i===void 0)&&i.call(p,f))return p.update&&p.update(t,f),f.kind==="Punctuation"?Jm(t,!0):t.needsAdvance=!0,p.style}JN(t)}return UE(t,h),Xl(C1,t,"Invalid"),"invalidchar"}function UE(e,t){const n=Object.keys(t);for(let i=0;i<n.length;i++)e[n[i]]=t[n[i]];return e}const C1={Invalid:[],Comment:[]};function Xl(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function a2(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function Jm(e,t){var n;if(zE(e)&&e.rule){const i=e.rule[e.step];if(i.separator){const{separator:r}=i;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&r.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)a2(e),e.rule&&(zE(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function zE(e){const t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function JN(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)a2(e);e.rule&&Jm(e,!1)}function eO(e,t){const n=Object.keys(e);for(let i=0;i<n.length;i++){const r=t.match(e[n[i]]);if(r&&r instanceof Array)return{kind:n[i],value:r[0]}}}function M0(e,t){const n=e.split(`
|
|
238
|
+
`),i=WN();let r=i.startState(),s="",a=new BE("");for(let c=0;c<n.length;c++){for(a=new BE(n[c]);!a.eol()&&(s=i.token(a,r),t(a,r,s,c)!=="BREAK"););t(a,r,s,c),r.kind||(r=i.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:r,style:s}}var fu;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"})(fu||(fu={}));const tO=[Z.SCHEMA_DEFINITION,Z.OPERATION_TYPE_DEFINITION,Z.SCALAR_TYPE_DEFINITION,Z.OBJECT_TYPE_DEFINITION,Z.INTERFACE_TYPE_DEFINITION,Z.UNION_TYPE_DEFINITION,Z.ENUM_TYPE_DEFINITION,Z.INPUT_OBJECT_TYPE_DEFINITION,Z.DIRECTIVE_DEFINITION,Z.SCHEMA_EXTENSION,Z.SCALAR_TYPE_EXTENSION,Z.OBJECT_TYPE_EXTENSION,Z.INTERFACE_TYPE_EXTENSION,Z.UNION_TYPE_EXTENSION,Z.ENUM_TYPE_EXTENSION,Z.INPUT_OBJECT_TYPE_EXTENSION],nO=e=>{let t=fu.UNKNOWN;if(e)try{qi(cs(e),{enter(n){if(n.kind==="Document"){t=fu.EXECUTABLE;return}return tO.includes(n.kind)?(t=fu.TYPE_SYSTEM,sa):!1}})}catch{return t}return t};function iO(e,t){return t!=null&&t.endsWith(".graphqls")?fu.TYPE_SYSTEM:nO(e)}function rO(e,t,n=0){let i=null,r=null,s=null;const a=M0(e,(c,f,h,p)=>{if(!(p!==t.line||c.getCurrentPosition()+n<t.character+1))return i=h,r=Object.assign({},f),s=c.current(),"BREAK"});return{start:a.start,end:a.end,string:s||a.string,state:r||a.state,style:i||a.style}}function uO(e,t,n,i,r){const s=i||rO(e,t,1);if(!s)return null;const a=s.state.kind==="Invalid"?s.state.prevState:s.state;if(!a)return null;const c=sO(n,s.state),f=(r==null?void 0:r.mode)||iO(e,r==null?void 0:r.uri);return{token:s,state:a,typeInfo:c,mode:f}}function qE(e,t,n){return n===hc.name&&e.getQueryType()===t?hc:n===pc.name&&e.getQueryType()===t?pc:n===mc.name&&ao(t)?mc:"getFields"in t?t.getFields()[n]:null}function OT(e,t){const n=[];let i=e;for(;i!=null&&i.kind;)n.push(i),i=i.prevState;for(let r=n.length-1;r>=0;r--)t(n[r])}function oO(e){let t;return OT(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function sO(e,t){let n,i,r,s,a,c,f,h,p,g,v;return OT(t,y=>{var E;switch(y.kind){case he.QUERY:case"ShortQuery":g=e.getQueryType();break;case he.MUTATION:g=e.getMutationType();break;case he.SUBSCRIPTION:g=e.getSubscriptionType();break;case he.INLINE_FRAGMENT:case he.FRAGMENT_DEFINITION:y.type&&(g=e.getType(y.type));break;case he.FIELD:case he.ALIASED_FIELD:{!g||!y.name?a=null:(a=p?qE(e,p,y.name):null,g=a?a.type:null);break}case he.SELECTION_SET:p=Nn(g);break;case he.DIRECTIVE:r=y.name?e.getDirective(y.name):null;break;case he.INTERFACE_DEF:y.name&&(f=null,v=new ga({name:y.name,interfaces:[],fields:{}}));break;case he.OBJECT_TYPE_DEF:y.name&&(v=null,f=new Rr({name:y.name,interfaces:[],fields:{}}));break;case he.ARGUMENTS:{if(y.prevState)switch(y.prevState.kind){case he.FIELD:i=a&&a.args;break;case he.DIRECTIVE:i=r&&r.args;break;case he.ALIASED_FIELD:{const A=(E=y.prevState)===null||E===void 0?void 0:E.name;if(!A){i=null;break}const N=p?qE(e,p,A):null;if(!N){i=null;break}i=N.args;break}default:i=null;break}else i=null;break}case he.ARGUMENT:if(i){for(let A=0;A<i.length;A++)if(i[A].name===y.name){n=i[A];break}}c=n==null?void 0:n.type;break;case he.VARIABLE_DEFINITION:case he.VARIABLE:g=c;break;case he.ENUM_VALUE:const T=Nn(c);s=T instanceof Ia?T.getValues().find(A=>A.value===y.name):null;break;case he.LIST_VALUE:const _=iT(c);c=_ instanceof $n?_.ofType:null;break;case he.OBJECT_VALUE:const S=Nn(c);h=S instanceof u2?S.getFields():null;break;case he.OBJECT_FIELD:const D=y.name&&h?h[y.name]:null;c=D==null?void 0:D.type,a=D,g=a?a.type:null;break;case he.NAMED_TYPE:y.name&&(g=e.getType(y.name));break}}),{argDef:n,argDefs:i,directiveDef:r,enumValue:s,fieldDef:a,inputType:c,objectFieldDefs:h,parentType:p,type:g,interfaceDef:v,objectTypeDef:f}}const aO={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},he=Object.assign(Object.assign({},Z),aO);var Be;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Be||(Be={}));const eg={command:"editor.action.triggerSuggest",title:"Suggestions"},lO=e=>{const t=[];if(e)try{qi(cs(e),{FragmentDefinition(n){t.push(n)}})}catch{return[]}return t};function XX(e,t,n,i,r,s){var a;const c=Object.assign(Object.assign({},s),{schema:e}),f=uO(t,n,e,i,s);if(!f)return[];const{state:h,typeInfo:p,mode:g,token:v}=f,{kind:y,step:E,prevState:T}=h;if(y===he.DOCUMENT)return g===fu.TYPE_SYSTEM?cO(v):g===fu.EXECUTABLE?fO(v):dO(v);if(y===he.EXTEND_DEF)return hO(v);if(((a=T==null?void 0:T.prevState)===null||a===void 0?void 0:a.kind)===he.EXTENSION_DEFINITION&&h.name)return vt(v,[]);if((T==null?void 0:T.kind)===Z.SCALAR_TYPE_EXTENSION)return vt(v,Object.values(e.getTypeMap()).filter(po).map(S=>({label:S.name,kind:Be.Function})));if((T==null?void 0:T.kind)===Z.OBJECT_TYPE_EXTENSION)return vt(v,Object.values(e.getTypeMap()).filter(S=>bt(S)&&!S.name.startsWith("__")).map(S=>({label:S.name,kind:Be.Function})));if((T==null?void 0:T.kind)===Z.INTERFACE_TYPE_EXTENSION)return vt(v,Object.values(e.getTypeMap()).filter(St).map(S=>({label:S.name,kind:Be.Function})));if((T==null?void 0:T.kind)===Z.UNION_TYPE_EXTENSION)return vt(v,Object.values(e.getTypeMap()).filter(Ai).map(S=>({label:S.name,kind:Be.Function})));if((T==null?void 0:T.kind)===Z.ENUM_TYPE_EXTENSION)return vt(v,Object.values(e.getTypeMap()).filter(S=>oi(S)&&!S.name.startsWith("__")).map(S=>({label:S.name,kind:Be.Function})));if((T==null?void 0:T.kind)===Z.INPUT_OBJECT_TYPE_EXTENSION)return vt(v,Object.values(e.getTypeMap()).filter(sn).map(S=>({label:S.name,kind:Be.Function})));if(y===he.IMPLEMENTS||y===he.NAMED_TYPE&&(T==null?void 0:T.kind)===he.IMPLEMENTS)return gO(v,h,e,t,p);if(y===he.SELECTION_SET||y===he.FIELD||y===he.ALIASED_FIELD)return pO(v,p,c);if(y===he.ARGUMENTS||y===he.ARGUMENT&&E===0){const{argDefs:S}=p;if(S)return vt(v,S.map(D=>{var A;return{label:D.name,insertText:Bx(D.name+": ",D.type),insertTextMode:Go.adjustIndentation,insertTextFormat:va.Snippet,command:eg,labelDetails:{detail:" "+String(D.type)},documentation:(A=D.description)!==null&&A!==void 0?A:void 0,kind:Be.Variable,type:D.type}}))}if((y===he.OBJECT_VALUE||y===he.OBJECT_FIELD&&E===0)&&p.objectFieldDefs){const S=rs(p.objectFieldDefs),D=y===he.OBJECT_VALUE?Be.Value:Be.Field;return vt(v,S.map(A=>{var N;return{label:A.name,detail:String(A.type),documentation:(N=A==null?void 0:A.description)!==null&&N!==void 0?N:void 0,kind:D,type:A.type,insertText:Bx(A.name+": ",A.type),insertTextMode:Go.adjustIndentation,insertTextFormat:va.Snippet,command:eg}}))}if(y===he.ENUM_VALUE||y===he.LIST_VALUE&&E===1||y===he.OBJECT_FIELD&&E===2||y===he.ARGUMENT&&E===2)return mO(v,p,t,e);if(y===he.VARIABLE&&E===1){const S=Nn(p.inputType),D=kT(t,e,v);return vt(v,D.filter(A=>A.detail===(S==null?void 0:S.name)))}if(y===he.TYPE_CONDITION&&E===1||y===he.NAMED_TYPE&&T!=null&&T.kind===he.TYPE_CONDITION)return vO(v,p,e);if(y===he.FRAGMENT_SPREAD&&E===1)return yO(v,p,e,t,Array.isArray(r)?r:lO(r));const _=MT(h);return _.kind===he.FIELD_DEF?vt(v,Object.values(e.getTypeMap()).filter(S=>Ko(S)&&!S.name.startsWith("__")).map(S=>({label:S.name,kind:Be.Function,insertText:s!=null&&s.fillLeafsOnComplete?S.name+`
|
|
239
|
+
`:S.name,insertTextMode:Go.adjustIndentation}))):_.kind===he.INPUT_VALUE_DEF&&E===2?vt(v,Object.values(e.getTypeMap()).filter(S=>Ti(S)&&!S.name.startsWith("__")).map(S=>({label:S.name,kind:Be.Function,insertText:s!=null&&s.fillLeafsOnComplete?S.name+`
|
|
240
|
+
$1`:S.name,insertTextMode:Go.adjustIndentation,insertTextFormat:va.Snippet}))):y===he.VARIABLE_DEFINITION&&E===2||y===he.LIST_TYPE&&E===1||y===he.NAMED_TYPE&&T&&(T.kind===he.VARIABLE_DEFINITION||T.kind===he.LIST_TYPE||T.kind===he.NON_NULL_TYPE)?EO(v,e):y===he.DIRECTIVE?TO(v,h,e):y===he.DIRECTIVE_DEF?SO(v,h,e):[]}const l2=[{label:"type",kind:Be.Function},{label:"interface",kind:Be.Function},{label:"union",kind:Be.Function},{label:"input",kind:Be.Function},{label:"scalar",kind:Be.Function},{label:"schema",kind:Be.Function}],RT=[{label:"query",kind:Be.Function},{label:"mutation",kind:Be.Function},{label:"subscription",kind:Be.Function},{label:"fragment",kind:Be.Function},{label:"{",kind:Be.Constructor}];function cO(e){return vt(e,[{label:"extend",kind:Be.Function},...l2])}function fO(e){return vt(e,RT)}function dO(e){return vt(e,[{label:"extend",kind:Be.Function},...RT,...l2])}function hO(e){return vt(e,l2)}function pO(e,t,n){var i;if(t.parentType){const{parentType:r}=t;let s=[];return"getFields"in r&&(s=rs(r.getFields())),ao(r)&&s.push(mc),r===((i=n==null?void 0:n.schema)===null||i===void 0?void 0:i.getQueryType())&&s.push(hc,pc),vt(e,s.map((a,c)=>{var f;const h={sortText:String(c)+a.name,label:a.name,detail:String(a.type),documentation:(f=a.description)!==null&&f!==void 0?f:void 0,deprecated:!!a.deprecationReason,isDeprecated:!!a.deprecationReason,deprecationReason:a.deprecationReason,kind:Be.Field,labelDetails:{detail:" "+a.type.toString()},type:a.type};return n!=null&&n.fillLeafsOnComplete&&(h.insertText=qN(a),h.insertText||(h.insertText=e0(a.name,a.type,a.name+(e.state.needsAdvance?"":`
|
|
241
|
+
`))),h.insertText&&(h.insertTextFormat=va.Snippet,h.insertTextMode=Go.adjustIndentation,h.command=eg)),h}))}return[]}function mO(e,t,n,i){const r=Nn(t.inputType),s=kT(n,i,e).filter(a=>a.detail===(r==null?void 0:r.name));if(r instanceof Ia){const a=r.getValues();return vt(e,a.map(c=>{var f;return{label:c.name,detail:String(r),documentation:(f=c.description)!==null&&f!==void 0?f:void 0,deprecated:!!c.deprecationReason,isDeprecated:!!c.deprecationReason,deprecationReason:c.deprecationReason,kind:Be.EnumMember,type:r}}).concat(s))}return r===un?vt(e,s.concat([{label:"true",detail:String(un),documentation:"Not false.",kind:Be.Variable,type:un},{label:"false",detail:String(un),documentation:"Not true.",kind:Be.Variable,type:un}])):s}function gO(e,t,n,i,r){if(t.needsSeparator)return[];const s=n.getTypeMap(),a=rs(s).filter(St),c=a.map(({name:y})=>y),f=new Set;M0(i,(y,E)=>{var T,_,S,D,A;if(E.name&&(E.kind===he.INTERFACE_DEF&&!c.includes(E.name)&&f.add(E.name),E.kind===he.NAMED_TYPE&&((T=E.prevState)===null||T===void 0?void 0:T.kind)===he.IMPLEMENTS)){if(r.interfaceDef){if((_=r.interfaceDef)===null||_===void 0?void 0:_.getInterfaces().find(({name:j})=>j===E.name))return;const R=n.getType(E.name),M=(S=r.interfaceDef)===null||S===void 0?void 0:S.toConfig();r.interfaceDef=new ga(Object.assign(Object.assign({},M),{interfaces:[...M.interfaces,R||new ga({name:E.name,fields:{}})]}))}else if(r.objectTypeDef){if((D=r.objectTypeDef)===null||D===void 0?void 0:D.getInterfaces().find(({name:j})=>j===E.name))return;const R=n.getType(E.name),M=(A=r.objectTypeDef)===null||A===void 0?void 0:A.toConfig();r.objectTypeDef=new Rr(Object.assign(Object.assign({},M),{interfaces:[...M.interfaces,R||new ga({name:E.name,fields:{}})]}))}}});const h=r.interfaceDef||r.objectTypeDef,g=((h==null?void 0:h.getInterfaces())||[]).map(({name:y})=>y),v=a.concat([...f].map(y=>({name:y}))).filter(({name:y})=>y!==(h==null?void 0:h.name)&&!g.includes(y));return vt(e,v.map(y=>{const E={label:y.name,kind:Be.Interface,type:y};return y!=null&&y.description&&(E.documentation=y.description),E}))}function vO(e,t,n,i){let r;if(t.parentType)if(cu(t.parentType)){const s=FD(t.parentType),a=n.getPossibleTypes(s),c=Object.create(null);for(const f of a)for(const h of f.getInterfaces())c[h.name]=h;r=a.concat(rs(c))}else r=[t.parentType];else{const s=n.getTypeMap();r=rs(s).filter(a=>ao(a)&&!a.name.startsWith("__"))}return vt(e,r.map(s=>{const a=Nn(s);return{label:String(s),documentation:(a==null?void 0:a.description)||"",kind:Be.Field}}))}function yO(e,t,n,i,r){if(!i)return[];const s=n.getTypeMap(),a=oO(e.state),c=xO(i);r&&r.length>0&&c.push(...r);const f=c.filter(h=>s[h.typeCondition.name.value]&&!(a&&a.kind===he.FRAGMENT_DEFINITION&&a.name===h.name.value)&&ao(t.parentType)&&ao(s[h.typeCondition.name.value])&&BD(n,t.parentType,s[h.typeCondition.name.value]));return vt(e,f.map(h=>({label:h.name.value,detail:String(s[h.typeCondition.name.value]),documentation:`fragment ${h.name.value} on ${h.typeCondition.name.value}`,labelDetails:{detail:`fragment ${h.name.value} on ${h.typeCondition.name.value}`},kind:Be.Field,type:s[h.typeCondition.name.value]})))}const bO=(e,t)=>{var n,i,r,s,a,c,f,h,p,g;if(((n=e.prevState)===null||n===void 0?void 0:n.kind)===t)return e.prevState;if(((r=(i=e.prevState)===null||i===void 0?void 0:i.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState.prevState;if(((c=(a=(s=e.prevState)===null||s===void 0?void 0:s.prevState)===null||a===void 0?void 0:a.prevState)===null||c===void 0?void 0:c.kind)===t)return e.prevState.prevState.prevState;if(((g=(p=(h=(f=e.prevState)===null||f===void 0?void 0:f.prevState)===null||h===void 0?void 0:h.prevState)===null||p===void 0?void 0:p.prevState)===null||g===void 0?void 0:g.kind)===t)return e.prevState.prevState.prevState.prevState};function kT(e,t,n){let i=null,r;const s=Object.create({});return M0(e,(a,c)=>{var f;if((c==null?void 0:c.kind)===he.VARIABLE&&c.name&&(i=c.name),(c==null?void 0:c.kind)===he.NAMED_TYPE&&i){const h=bO(c,he.TYPE);h!=null&&h.type&&(r=t.getType(h==null?void 0:h.type))}if(i&&r&&!s[i]){const h=n.string==="$"||((f=n==null?void 0:n.state)===null||f===void 0?void 0:f.kind)==="Variable"?i:"$"+i;s[i]={detail:r.toString(),insertText:h,label:"$"+i,rawInsert:h,type:r,kind:Be.Variable},i=null,r=null}}),rs(s)}function xO(e){const t=[];return M0(e,(n,i)=>{i.kind===he.FRAGMENT_DEFINITION&&i.name&&i.type&&t.push({kind:he.FRAGMENT_DEFINITION,name:{kind:Z.NAME,value:i.name},selectionSet:{kind:he.SELECTION_SET,selections:[]},typeCondition:{kind:he.NAMED_TYPE,name:{kind:Z.NAME,value:i.type}}})}),t}function EO(e,t,n){const i=t.getTypeMap(),r=rs(i).filter(Ti);return vt(e,r.map(s=>({label:s.name,documentation:(s==null?void 0:s.description)||"",kind:Be.Variable})))}function TO(e,t,n,i){var r;if(!((r=t.prevState)===null||r===void 0)&&r.kind){const s=n.getDirectives().filter(a=>_O(t.prevState,a));return vt(e,s.map(a=>({label:a.name,documentation:(a==null?void 0:a.description)||"",kind:Be.Function})))}return[]}function SO(e,t,n,i){const r=n.getDirectives().find(s=>s.name===t.name);return vt(e,(r==null?void 0:r.args.map(s=>({label:s.name,documentation:s.description||"",kind:Be.Field})))||[])}function _O(e,t){if(!(e!=null&&e.kind))return!1;const{kind:n,prevState:i}=e,{locations:r}=t;switch(n){case he.QUERY:return r.includes(Ce.QUERY);case he.MUTATION:return r.includes(Ce.MUTATION);case he.SUBSCRIPTION:return r.includes(Ce.SUBSCRIPTION);case he.FIELD:case he.ALIASED_FIELD:return r.includes(Ce.FIELD);case he.FRAGMENT_DEFINITION:return r.includes(Ce.FRAGMENT_DEFINITION);case he.FRAGMENT_SPREAD:return r.includes(Ce.FRAGMENT_SPREAD);case he.INLINE_FRAGMENT:return r.includes(Ce.INLINE_FRAGMENT);case he.SCHEMA_DEF:return r.includes(Ce.SCHEMA);case he.SCALAR_DEF:return r.includes(Ce.SCALAR);case he.OBJECT_TYPE_DEF:return r.includes(Ce.OBJECT);case he.FIELD_DEF:return r.includes(Ce.FIELD_DEFINITION);case he.INTERFACE_DEF:return r.includes(Ce.INTERFACE);case he.UNION_DEF:return r.includes(Ce.UNION);case he.ENUM_DEF:return r.includes(Ce.ENUM);case he.ENUM_VALUE:return r.includes(Ce.ENUM_VALUE);case he.INPUT_DEF:return r.includes(Ce.INPUT_OBJECT);case he.INPUT_VALUE_DEF:switch(i==null?void 0:i.kind){case he.ARGUMENTS_DEF:return r.includes(Ce.ARGUMENT_DEFINITION);case he.INPUT_DEF:return r.includes(Ce.INPUT_FIELD_DEFINITION)}}return!1}function MT(e){return e.prevState&&e.kind&&[he.NAMED_TYPE,he.LIST_TYPE,he.TYPE,he.NON_NULL_TYPE].includes(e.kind)?MT(e.prevState):e}var Ul={exports:{}},HE;function CO(){if(HE)return Ul.exports;HE=1;function e(t,n){if(t!=null)return t;var i=new Error(n!==void 0?n:"Got unexpected "+t);throw i.framesToPop=1,i}return Ul.exports=e,Ul.exports.default=e,Object.defineProperty(Ul.exports,"__esModule",{value:!0}),Ul.exports}var AO=CO();const GE=ls(AO),wO=(e,t)=>{if(!t)return[];const n=new Map,i=new Set;qi(e,{FragmentDefinition(a){n.set(a.name.value,!0)},FragmentSpread(a){i.has(a.name.value)||i.add(a.name.value)}});const r=new Set;for(const a of i)!n.has(a)&&t.has(a)&&r.add(GE(t.get(a)));const s=[];for(const a of r)qi(a,{FragmentSpread(c){!i.has(c.name.value)&&t.get(c.name.value)&&(r.add(GE(t.get(c.name.value))),i.add(c.name.value))}}),n.has(a.name.value)||s.push(a);return s};function DO(e,t){const n=Object.create(null);for(const i of t.definitions)if(i.kind==="OperationDefinition"){const{variableDefinitions:r}=i;if(r)for(const{variable:s,type:a}of r){const c=gc(e,a);c?n[s.name.value]=c:a.kind===Z.NAMED_TYPE&&a.name.value==="Float"&&(n[s.name.value]=dT)}}return n}function NO(e,t){const n=t?DO(t,e):void 0,i=[];return qi(e,{OperationDefinition(r){i.push(r)}}),{variableToType:n,operations:i}}function OO(e,t){if(t)try{const n=cs(t);return Object.assign(Object.assign({},NO(n,e)),{documentAST:n})}catch{}}/*!
|
|
242
|
+
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
243
|
+
*
|
|
244
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
245
|
+
* Released under the MIT License.
|
|
246
|
+
*/var A1,YE;function RO(){return YE||(YE=1,A1=function(t){return typeof t=="object"?t===null:typeof t!="function"}),A1}/*!
|
|
247
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
248
|
+
*
|
|
249
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
250
|
+
* Released under the MIT License.
|
|
251
|
+
*/var w1,QE;function LT(){return QE||(QE=1,w1=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}),w1}/*!
|
|
252
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
253
|
+
*
|
|
254
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
255
|
+
* Released under the MIT License.
|
|
256
|
+
*/var D1,XE;function kO(){if(XE)return D1;XE=1;var e=LT();function t(n){return e(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}return D1=function(i){var r,s;return!(t(i)===!1||(r=i.constructor,typeof r!="function")||(s=r.prototype,t(s)===!1)||s.hasOwnProperty("isPrototypeOf")===!1)},D1}/*!
|
|
257
|
+
* set-value <https://github.com/jonschlinkert/set-value>
|
|
258
|
+
*
|
|
259
|
+
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
260
|
+
* Released under the MIT License.
|
|
261
|
+
*/var N1,ZE;function MO(){if(ZE)return N1;ZE=1;const{deleteProperty:e}=Reflect,t=RO(),n=kO(),i=y=>typeof y=="object"&&y!==null||typeof y=="function",r=y=>y==="__proto__"||y==="constructor"||y==="prototype",s=y=>{if(!t(y))throw new TypeError("Object keys must be strings or symbols");if(r(y))throw new Error(`Cannot set unsafe key: "${y}"`)},a=y=>Array.isArray(y)?y.flat().map(String).join(","):y,c=(y,E)=>{if(typeof y!="string"||!E)return y;let T=y+";";return E.arrays!==void 0&&(T+=`arrays=${E.arrays};`),E.separator!==void 0&&(T+=`separator=${E.separator};`),E.split!==void 0&&(T+=`split=${E.split};`),E.merge!==void 0&&(T+=`merge=${E.merge};`),E.preservePaths!==void 0&&(T+=`preservePaths=${E.preservePaths};`),T},f=(y,E,T)=>{const _=a(E?c(y,E):y);s(_);const S=v.cache.get(_)||T();return v.cache.set(_,S),S},h=(y,E={})=>{const T=E.separator||".",_=T==="/"?!1:E.preservePaths;if(typeof y=="string"&&_!==!1&&/\//.test(y))return[y];const S=[];let D="";const A=N=>{let R;N.trim()!==""&&Number.isInteger(R=Number(N))?S.push(R):S.push(N)};for(let N=0;N<y.length;N++){const R=y[N];if(R==="\\"){D+=y[++N];continue}if(R===T){A(D),D="";continue}D+=R}return D&&A(D),S},p=(y,E)=>E&&typeof E.split=="function"?E.split(y):typeof y=="symbol"?[y]:Array.isArray(y)?y:f(y,E,()=>h(y,E)),g=(y,E,T,_)=>{if(s(E),T===void 0)e(y,E);else if(_&&_.merge){const S=_.merge==="function"?_.merge:Object.assign;S&&n(y[E])&&n(T)?y[E]=S(y[E],T):y[E]=T}else y[E]=T;return y},v=(y,E,T,_)=>{if(!E||!i(y))return y;const S=p(E,_);let D=y;for(let A=0;A<S.length;A++){const N=S[A],R=S[A+1];if(s(N),R===void 0){g(D,N,T,_);break}if(typeof R=="number"&&!Array.isArray(D[N])){D=D[N]=[];continue}i(D[N])||(D[N]={}),D=D[N]}return y};return v.split=p,v.cache=new Map,v.clear=()=>{v.cache=new Map},N1=v,N1}var LO=MO();const O1=ls(LO);/*!
|
|
262
|
+
* get-value <https://github.com/jonschlinkert/get-value>
|
|
263
|
+
*
|
|
264
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
265
|
+
* Released under the MIT License.
|
|
266
|
+
*/var R1,WE;function IO(){if(WE)return R1;WE=1;const e=LT();R1=function(s,a,c){if(e(c)||(c={default:c}),!r(s))return typeof c.default<"u"?c.default:s;typeof a=="number"&&(a=String(a));const f=Array.isArray(a),h=typeof a=="string",p=c.separator||".",g=c.joinChar||(typeof p=="string"?p:".");if(!h&&!f)return s;if(h&&a in s)return i(a,s,c)?s[a]:c.default;let v=f?a:n(a,p,c),y=v.length,E=0;do{let T=v[E];for(typeof T=="number"&&(T=String(T));T&&T.slice(-1)==="\\";)T=t([T.slice(0,-1),v[++E]||""],g,c);if(T in s){if(!i(T,s,c))return c.default;s=s[T]}else{let _=!1,S=E+1;for(;S<y;)if(T=t([T,v[S++]],g,c),_=T in s){if(!i(T,s,c))return c.default;s=s[T],E=S-1;break}if(!_)return c.default}}while(++E<y&&r(s));return E===y?s:c.default};function t(s,a,c){return typeof c.join=="function"?c.join(s):s[0]+a+s[1]}function n(s,a,c){return typeof c.split=="function"?c.split(s):s.split(a)}function i(s,a,c){return typeof c.isValid=="function"?c.isValid(s,a):!0}function r(s){return e(s)||Array.isArray(s)||typeof s=="function"}return R1}var FO=IO();const jO=ls(FO);function IT(e){const t=x.createContext(null);return t.displayName=e,t}function FT(e){function t(n){var i;const r=x.useContext(e);if(r===null&&(n!=null&&n.nonNull))throw new Error(`Tried to use \`${((i=n.caller)==null?void 0:i.name)||"a component"}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return r}return Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}const KE=e=>{let t;const n=new Set,i=(h,p)=>{const g=typeof h=="function"?h(t):h;if(!Object.is(g,t)){const v=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(y=>y(t,v))}},r=()=>t,c={setState:i,getState:r,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(i,r,c);return c},Vc=e=>e?KE(e):KE,PO=e=>e;function VO(e,t=PO){const n=Re.useSyncExternalStore(e.subscribe,Re.useCallback(()=>t(e.getState()),[e,t]),Re.useCallback(()=>t(e.getInitialState()),[e,t]));return Re.useDebugValue(n),n}const $c=e=>t=>VO(e,t),Fa=Vc(()=>({storage:null})),$O=e=>{const t=ge.c(3),{storage:n,children:i}=e,r=jT(BO);let s,a;return t[0]!==n?(s=()=>{Fa.setState({storage:new FN(n)})},a=[n],t[0]=n,t[1]=s,t[2]=a):(s=t[1],a=t[2]),x.useEffect(s,a),r?i:null},jT=$c(Fa),ja=()=>jT(UO);function BO(e){return!!e.storage}function UO(e){return e.storage}const c2=typeof navigator<"u"&&navigator.userAgent.includes("Mac"),L0="graphiql",I0="sublime",F0={[c2?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function Bc(e,t){const n=await We(()=>import("./codemirror-TTILi5Ok.js").then(i=>i.c),__vite__mapDeps([0,1])).then(i=>typeof i=="function"?i:i.default);return await Promise.all((t==null?void 0:t.useCommonAddons)===!1?e:[We(()=>import("./show-hint-C-WEDAS_.js").then(i=>i.s),__vite__mapDeps([2,1])),We(()=>import("./matchbrackets-D0OH_t55.js").then(i=>i.m),__vite__mapDeps([3,4,1])),We(()=>import("./closebrackets-CVCrAWV7.js").then(i=>i.c),__vite__mapDeps([5,1])),We(()=>import("./brace-fold-C5NBigGY.js").then(i=>i.b),__vite__mapDeps([6,1])),We(()=>import("./foldgutter-xM98xUAG.js").then(i=>i.f),__vite__mapDeps([7,1])),We(()=>import("./lint-F_nW9Zrt.js").then(i=>i.l),__vite__mapDeps([8,1])),We(()=>import("./searchcursor-C8teH98l.js").then(i=>i.s),__vite__mapDeps([9,10,1])),We(()=>import("./jump-to-line-BvpEaCtd.js").then(i=>i.j),__vite__mapDeps([11,1,12])),We(()=>import("./dialog-DRbboQHi.js").then(i=>i.d),__vite__mapDeps([13,12,1])),We(()=>import("./sublime-Cj8gH-vM.js").then(i=>i.s),__vite__mapDeps([14,1,10,4])),...e]),n}var k1,JE;function zO(){return JE||(JE=1,k1=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],i=0;i<e.rangeCount;i++)n.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(r){e.addRange(r)}),t&&t.focus()}}),k1}var M1,e6;function qO(){if(e6)return M1;e6=1;var e=zO(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function i(s){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,a)}function r(s,a){var c,f,h,p,g,v,y=!1;a||(a={}),c=a.debug||!1;try{h=e(),p=document.createRange(),g=document.getSelection(),v=document.createElement("span"),v.textContent=s,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(T){if(T.stopPropagation(),a.format)if(T.preventDefault(),typeof T.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=t[a.format]||t.default;window.clipboardData.setData(_,s)}else T.clipboardData.clearData(),T.clipboardData.setData(a.format,s);a.onCopy&&(T.preventDefault(),a.onCopy(T.clipboardData))}),document.body.appendChild(v),p.selectNodeContents(v),g.addRange(p);var E=document.execCommand("copy");if(!E)throw new Error("copy command was unsuccessful");y=!0}catch(T){c&&console.error("unable to copy using execCommand: ",T),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",s),a.onCopy&&a.onCopy(window.clipboardData),y=!0}catch(_){c&&console.error("unable to copy using clipboardData: ",_),c&&console.error("falling back to prompt"),f=i("message"in a?a.message:n),window.prompt(f,s)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(p):g.removeAllRanges()),v&&document.body.removeChild(v),h()}return y}return M1=r,M1}var HO=qO();const GO=ls(HO),tg=Vc((e,t)=>({plugins:[],visiblePlugin:null,referencePlugin:void 0,setVisiblePlugin(n){const{plugins:i,onTogglePluginVisibility:r}=t(),s=typeof n=="string",a=n&&i.find(c=>(s?c.title:c)===n)||null;e(({visiblePlugin:c})=>a===c?{visiblePlugin:c}:(r==null||r(a),{visiblePlugin:a}))}})),YO=e=>{const t=ge.c(8),{onTogglePluginVisibility:n,children:i,visiblePlugin:r,plugins:s,referencePlugin:a}=e;let c;t[0]!==s?(c=s===void 0?[]:s,t[0]=s,t[1]=c):c=t[1];const f=c;let h,p;return t[2]!==n||t[3]!==f||t[4]!==a||t[5]!==r?(h=()=>{const g=new Set;for(const{title:v}of f){if(typeof v!="string"||!v)throw new Error("All GraphiQL plugins must have a unique title");if(g.has(v))throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${v}'`);g.add(v)}tg.setState({plugins:f,onTogglePluginVisibility:n,referencePlugin:a}),tg.getState().setVisiblePlugin(r??null)},p=[f,n,a,r],t[2]=n,t[3]=f,t[4]=a,t[5]=r,t[6]=h,t[7]=p):(h=t[6],p=t[7]),x.useEffect(h,p),i},j0=$c(tg),nc=Vc((e,t)=>({inputValueDeprecation:null,introspectionQueryName:null,schemaDescription:null,fetcher:null,onSchemaChange:void 0,fetchError:null,isFetching:!1,schema:null,validationErrors:[],schemaReference:null,setSchemaReference(n){e({schemaReference:n})},requestCounter:0,shouldIntrospect:!0,async introspect(){const{requestCounter:n,fetcher:i,onSchemaChange:r,shouldIntrospect:s,headerEditor:a,...c}=t();if(!s)return;const f=n+1;e({requestCounter:f});try{const h=a==null?void 0:a.getValue(),p=XO(h);if(!p.isValidJSON){e({fetchError:"Introspection failed as headers are invalid."});return}const g=p.headers?{headers:p.headers}:{},{introspectionQuery:v,introspectionQueryName:y,introspectionQuerySansSubscriptions:E}=QO(c),T=Sx(i({query:v,operationName:y},g));if(!Tx(T)){e({fetchError:"Fetcher did not return a Promise for introspection."});return}e({isFetching:!0,fetchError:null});let _=await T;if(typeof _!="object"||_===null||!("data"in _)){const A=Sx(i({query:E,operationName:y},g));if(!Tx(A))throw new Error("Fetcher did not return a Promise for introspection.");_=await A}e({isFetching:!1});let S;if(_!=null&&_.data&&"__schema"in _.data)S=_.data;else{const A=typeof _=="string"?_:Vm(_);e({fetchError:A})}if(f!==t().requestCounter||!S)return;const D=hN(S);e({schema:D}),r==null||r(D)}catch(h){if(f!==t().requestCounter)return;e({fetchError:Jd(h),isFetching:!1})}}})),PT=e=>{const t=ge.c(14),{fetcher:n,onSchemaChange:i,dangerouslyAssumeSchemaIsValid:r,children:s,schema:a,inputValueDeprecation:c,introspectionQueryName:f,schemaDescription:h}=e,p=r===void 0?!1:r,g=c===void 0?!1:c,v=f===void 0?"IntrospectionQuery":f,y=h===void 0?!1:h;if(!n)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");let E;t[0]===Symbol.for("react.memo_cache_sentinel")?(E={nonNull:!0,caller:PT},t[0]=E):E=t[0];const{headerEditor:T}=vn(E);let _,S;t[1]!==T?(_=()=>{T&&nc.setState({headerEditor:T})},S=[T],t[1]=T,t[2]=_,t[3]=S):(_=t[2],S=t[3]),x.useEffect(_,S);let D,A;t[4]!==p||t[5]!==n||t[6]!==g||t[7]!==v||t[8]!==i||t[9]!==a||t[10]!==y?(D=()=>{const R=jm(a)||a==null?a:void 0,M=!R||p?[]:ST(R);nc.setState(j=>{const{requestCounter:$}=j;return{fetcher:n,onSchemaChange:i,schema:R,shouldIntrospect:!jm(a)&&a!==null,inputValueDeprecation:g,introspectionQueryName:v,schemaDescription:y,validationErrors:M,requestCounter:$+1}}),nc.getState().introspect()},A=[a,p,i,n,g,v,y],t[4]=p,t[5]=n,t[6]=g,t[7]=v,t[8]=i,t[9]=a,t[10]=y,t[11]=D,t[12]=A):(D=t[11],A=t[12]),x.useEffect(D,A);let N;return t[13]===Symbol.for("react.memo_cache_sentinel")?(N=[],t[13]=N):N=t[13],x.useEffect(ZO,N),s},kr=$c(nc);function QO({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const i=dN({inputValueDeprecation:e,schemaDescription:n}),r=t==="IntrospectionQuery"?i:i.replace("query IntrospectionQuery",`query ${t}`),s=i.replace("subscriptionType { name }","");return{introspectionQueryName:t,introspectionQuery:r,introspectionQuerySansSubscriptions:s}}function XO(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}function ZO(){const e=function(n){n.ctrlKey&&n.key==="R"&&nc.getState().introspect()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}const t6={};function WO(e){let t=t6[e];if(t)return t;t=t6[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);t.push(i)}for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return t}function wa(e,t){typeof t!="string"&&(t=wa.defaultChars);const n=WO(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(i){let r="";for(let s=0,a=i.length;s<a;s+=3){const c=parseInt(i.slice(s+1,s+3),16);if(c<128){r+=n[c];continue}if((c&224)===192&&s+3<a){const f=parseInt(i.slice(s+4,s+6),16);if((f&192)===128){const h=c<<6&1984|f&63;h<128?r+="��":r+=String.fromCharCode(h),s+=3;continue}}if((c&240)===224&&s+6<a){const f=parseInt(i.slice(s+4,s+6),16),h=parseInt(i.slice(s+7,s+9),16);if((f&192)===128&&(h&192)===128){const p=c<<12&61440|f<<6&4032|h&63;p<2048||p>=55296&&p<=57343?r+="���":r+=String.fromCharCode(p),s+=6;continue}}if((c&248)===240&&s+9<a){const f=parseInt(i.slice(s+4,s+6),16),h=parseInt(i.slice(s+7,s+9),16),p=parseInt(i.slice(s+10,s+12),16);if((f&192)===128&&(h&192)===128&&(p&192)===128){let g=c<<18&1835008|f<<12&258048|h<<6&4032|p&63;g<65536||g>1114111?r+="����":(g-=65536,r+=String.fromCharCode(55296+(g>>10),56320+(g&1023))),s+=9;continue}}r+="�"}return r})}wa.defaultChars=";/?:@&=+$,#";wa.componentChars="";const n6={};function KO(e){let t=n6[e];if(t)return t;t=n6[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Uc(e,t,n){typeof t!="string"&&(n=t,t=Uc.defaultChars),typeof n>"u"&&(n=!0);const i=KO(t);let r="";for(let s=0,a=e.length;s<a;s++){const c=e.charCodeAt(s);if(n&&c===37&&s+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(s+1,s+3))){r+=e.slice(s,s+3),s+=2;continue}if(c<128){r+=i[c];continue}if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&s+1<a){const f=e.charCodeAt(s+1);if(f>=56320&&f<=57343){r+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[s])}return r}Uc.defaultChars=";/?:@&=+$,-_.!~*'()#";Uc.componentChars="-_.!~*'()";function f2(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function o0(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const JO=/^([a-z0-9.+-]+:)/i,eR=/:[0-9]*$/,tR=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,nR=["<",">",'"',"`"," ","\r",`
|
|
267
|
+
`," "],iR=["{","}","|","\\","^","`"].concat(nR),rR=["'"].concat(iR),i6=["%","/","?",";","#"].concat(rR),r6=["/","?","#"],uR=255,u6=/^[+a-z0-9A-Z_-]{0,63}$/,oR=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,o6={javascript:!0,"javascript:":!0},s6={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function d2(e,t){if(e&&e instanceof o0)return e;const n=new o0;return n.parse(e,t),n}o0.prototype.parse=function(e,t){let n,i,r,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const h=tR.exec(s);if(h)return this.pathname=h[1],h[2]&&(this.search=h[2]),this}let a=JO.exec(s);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,s=s.substr(a.length)),(t||a||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=s.substr(0,2)==="//",r&&!(a&&o6[a])&&(s=s.substr(2),this.slashes=!0)),!o6[a]&&(r||a&&!s6[a])){let h=-1;for(let E=0;E<r6.length;E++)i=s.indexOf(r6[E]),i!==-1&&(h===-1||i<h)&&(h=i);let p,g;h===-1?g=s.lastIndexOf("@"):g=s.lastIndexOf("@",h),g!==-1&&(p=s.slice(0,g),s=s.slice(g+1),this.auth=p),h=-1;for(let E=0;E<i6.length;E++)i=s.indexOf(i6[E]),i!==-1&&(h===-1||i<h)&&(h=i);h===-1&&(h=s.length),s[h-1]===":"&&h--;const v=s.slice(0,h);s=s.slice(h),this.parseHost(v),this.hostname=this.hostname||"";const y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){const E=this.hostname.split(/\./);for(let T=0,_=E.length;T<_;T++){const S=E[T];if(S&&!S.match(u6)){let D="";for(let A=0,N=S.length;A<N;A++)S.charCodeAt(A)>127?D+="x":D+=S[A];if(!D.match(u6)){const A=E.slice(0,T),N=E.slice(T+1),R=S.match(oR);R&&(A.push(R[1]),N.unshift(R[2])),N.length&&(s=N.join(".")+s),this.hostname=A.join(".");break}}}}this.hostname.length>uR&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const c=s.indexOf("#");c!==-1&&(this.hash=s.substr(c),s=s.slice(0,c));const f=s.indexOf("?");return f!==-1&&(this.search=s.substr(f),s=s.slice(0,f)),s&&(this.pathname=s),s6[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};o0.prototype.parseHost=function(e){let t=eR.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const sR=Object.freeze(Object.defineProperty({__proto__:null,decode:wa,encode:Uc,format:f2,parse:d2},Symbol.toStringTag,{value:"Module"})),VT=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$T=/[\0-\x1F\x7F-\x9F]/,aR=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,h2=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,BT=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,UT=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,lR=Object.freeze(Object.defineProperty({__proto__:null,Any:VT,Cc:$T,Cf:aR,P:h2,S:BT,Z:UT},Symbol.toStringTag,{value:"Module"})),cR=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),fR=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var L1;const dR=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),hR=(L1=String.fromCodePoint)!==null&&L1!==void 0?L1:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function pR(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=dR.get(e))!==null&&t!==void 0?t:e}var on;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(on||(on={}));const mR=32;var so;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(so||(so={}));function ng(e){return e>=on.ZERO&&e<=on.NINE}function gR(e){return e>=on.UPPER_A&&e<=on.UPPER_F||e>=on.LOWER_A&&e<=on.LOWER_F}function vR(e){return e>=on.UPPER_A&&e<=on.UPPER_Z||e>=on.LOWER_A&&e<=on.LOWER_Z||ng(e)}function yR(e){return e===on.EQUALS||vR(e)}var tn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(tn||(tn={}));var oo;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(oo||(oo={}));class bR{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=tn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=oo.Strict}startEntity(t){this.decodeMode=t,this.state=tn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case tn.EntityStart:return t.charCodeAt(n)===on.NUM?(this.state=tn.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=tn.NamedEntity,this.stateNamedEntity(t,n));case tn.NumericStart:return this.stateNumericStart(t,n);case tn.NumericDecimal:return this.stateNumericDecimal(t,n);case tn.NumericHex:return this.stateNumericHex(t,n);case tn.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|mR)===on.LOWER_X?(this.state=tn.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=tn.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,r){if(n!==i){const s=i-n;this.result=this.result*Math.pow(r,s)+parseInt(t.substr(n,s),r),this.consumed+=s}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const r=t.charCodeAt(n);if(ng(r)||gR(r))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const r=t.charCodeAt(n);if(ng(r))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===on.SEMI)this.consumed+=1;else if(this.decodeMode===oo.Strict)return 0;return this.emitCodePoint(pR(this.result),this.consumed),this.errors&&(t!==on.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let r=i[this.treeIndex],s=(r&so.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=xR(i,r,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===oo.Attribute&&(s===0||yR(a))?0:this.emitNotTerminatedNamedEntity();if(r=i[this.treeIndex],s=(r&so.VALUE_LENGTH)>>14,s!==0){if(a===on.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==oo.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,r=(i[n]&so.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~so.VALUE_LENGTH:r[t+1],i),n===3&&this.emitCodePoint(r[t+2],i),i}end(){var t;switch(this.state){case tn.NamedEntity:return this.result!==0&&(this.decodeMode!==oo.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tn.NumericDecimal:return this.emitNumericEntity(0,2);case tn.NumericHex:return this.emitNumericEntity(0,3);case tn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tn.EntityStart:return 0}}}function zT(e){let t="";const n=new bR(e,i=>t+=hR(i));return function(r,s){let a=0,c=0;for(;(c=r.indexOf("&",c))>=0;){t+=r.slice(a,c),n.startEntity(s);const h=n.write(r,c+1);if(h<0){a=c+n.end();break}a=c+h,c=h===0?a+1:a}const f=t+r.slice(a);return t="",f}}function xR(e,t,n,i){const r=(t&so.BRANCH_LENGTH)>>7,s=t&so.JUMP_TABLE;if(r===0)return s!==0&&i===s?n:-1;if(s){const f=i-s;return f<0||f>=r?-1:e[n+f]-1}let a=n,c=a+r-1;for(;a<=c;){const f=a+c>>>1,h=e[f];if(h<i)a=f+1;else if(h>i)c=f-1;else return e[f+r]}return-1}const ER=zT(cR);zT(fR);function qT(e,t=oo.Legacy){return ER(e,t)}function TR(e){return Object.prototype.toString.call(e)}function p2(e){return TR(e)==="[object String]"}const SR=Object.prototype.hasOwnProperty;function _R(e,t){return SR.call(e,t)}function P0(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(i){e[i]=n[i]})}}),e}function HT(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function m2(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function s0(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const GT=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,CR=/&([a-z#][a-z0-9]{1,31});/gi,AR=new RegExp(GT.source+"|"+CR.source,"gi"),wR=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function DR(e,t){if(t.charCodeAt(0)===35&&wR.test(t)){const i=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return m2(i)?s0(i):e}const n=qT(e);return n!==e?n:e}function NR(e){return e.indexOf("\\")<0?e:e.replace(GT,"$1")}function Da(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(AR,function(t,n,i){return n||DR(t,i)})}const OR=/[&<>"]/,RR=/[&<>"]/g,kR={"&":"&","<":"<",">":">",'"':"""};function MR(e){return kR[e]}function lo(e){return OR.test(e)?e.replace(RR,MR):e}const LR=/[.?*+^$[\]\\(){}|-]/g;function IR(e){return e.replace(LR,"\\$&")}function mt(e){switch(e){case 9:case 32:return!0}return!1}function yc(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function bc(e){return h2.test(e)||BT.test(e)}function xc(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function V0(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const FR={mdurl:sR,ucmicro:lR},jR=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:HT,assign:P0,escapeHtml:lo,escapeRE:IR,fromCodePoint:s0,has:_R,isMdAsciiPunct:xc,isPunctChar:bc,isSpace:mt,isString:p2,isValidEntityCode:m2,isWhiteSpace:yc,lib:FR,normalizeReference:V0,unescapeAll:Da,unescapeMd:NR},Symbol.toStringTag,{value:"Module"}));function PR(e,t,n){let i,r,s,a;const c=e.posMax,f=e.pos;for(e.pos=t+1,i=1;e.pos<c;){if(s=e.src.charCodeAt(e.pos),s===93&&(i--,i===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),s===91){if(a===e.pos-1)i++;else if(n)return e.pos=f,-1}}let h=-1;return r&&(h=e.pos),e.pos=f,h}function VR(e,t,n){let i,r=t;const s={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(i=e.charCodeAt(r),i===10||i===60)return s;if(i===62)return s.pos=r+1,s.str=Da(e.slice(t+1,r)),s.ok=!0,s;if(i===92&&r+1<n){r+=2;continue}r++}return s}let a=0;for(;r<n&&(i=e.charCodeAt(r),!(i===32||i<32||i===127));){if(i===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(i===40&&(a++,a>32))return s;if(i===41){if(a===0)break;a--}r++}return t===r||a!==0||(s.str=Da(e.slice(t,r)),s.pos=r,s.ok=!0),s}function $R(e,t,n,i){let r,s=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)a.str=i.str,a.marker=i.marker;else{if(s>=n)return a;let c=e.charCodeAt(s);if(c!==34&&c!==39&&c!==40)return a;t++,s++,c===40&&(c=41),a.marker=c}for(;s<n;){if(r=e.charCodeAt(s),r===a.marker)return a.pos=s+1,a.str+=Da(e.slice(t,s)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&s+1<n&&s++,s++}return a.can_continue=!0,a.str+=Da(e.slice(t,s)),a}const BR=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:VR,parseLinkLabel:PR,parseLinkTitle:$R},Symbol.toStringTag,{value:"Module"})),Mr={};Mr.code_inline=function(e,t,n,i,r){const s=e[t];return"<code"+r.renderAttrs(s)+">"+lo(s.content)+"</code>"};Mr.code_block=function(e,t,n,i,r){const s=e[t];return"<pre"+r.renderAttrs(s)+"><code>"+lo(e[t].content)+`</code></pre>
|
|
268
|
+
`};Mr.fence=function(e,t,n,i,r){const s=e[t],a=s.info?Da(s.info).trim():"";let c="",f="";if(a){const p=a.split(/(\s+)/g);c=p[0],f=p.slice(2).join("")}let h;if(n.highlight?h=n.highlight(s.content,c,f)||lo(s.content):h=lo(s.content),h.indexOf("<pre")===0)return h+`
|
|
269
|
+
`;if(a){const p=s.attrIndex("class"),g=s.attrs?s.attrs.slice():[];p<0?g.push(["class",n.langPrefix+c]):(g[p]=g[p].slice(),g[p][1]+=" "+n.langPrefix+c);const v={attrs:g};return`<pre><code${r.renderAttrs(v)}>${h}</code></pre>
|
|
270
|
+
`}return`<pre><code${r.renderAttrs(s)}>${h}</code></pre>
|
|
271
|
+
`};Mr.image=function(e,t,n,i,r){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,i),r.renderToken(e,t,n)};Mr.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
272
|
+
`:`<br>
|
|
273
|
+
`};Mr.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
274
|
+
`:`<br>
|
|
275
|
+
`:`
|
|
276
|
+
`};Mr.text=function(e,t){return lo(e[t].content)};Mr.html_block=function(e,t){return e[t].content};Mr.html_inline=function(e,t){return e[t].content};function Pa(){this.rules=P0({},Mr)}Pa.prototype.renderAttrs=function(t){let n,i,r;if(!t.attrs)return"";for(r="",n=0,i=t.attrs.length;n<i;n++)r+=" "+lo(t.attrs[n][0])+'="'+lo(t.attrs[n][1])+'"';return r};Pa.prototype.renderToken=function(t,n,i){const r=t[n];let s="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(s+=`
|
|
277
|
+
`),s+=(r.nesting===-1?"</":"<")+r.tag,s+=this.renderAttrs(r),r.nesting===0&&i.xhtmlOut&&(s+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&n+1<t.length)){const c=t[n+1];(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===r.tag)&&(a=!1)}return s+=a?`>
|
|
278
|
+
`:">",s};Pa.prototype.renderInline=function(e,t,n){let i="";const r=this.rules;for(let s=0,a=e.length;s<a;s++){const c=e[s].type;typeof r[c]<"u"?i+=r[c](e,s,t,n,this):i+=this.renderToken(e,s,t)}return i};Pa.prototype.renderInlineAsText=function(e,t,n){let i="";for(let r=0,s=e.length;r<s;r++)switch(e[r].type){case"text":i+=e[r].content;break;case"image":i+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":i+=e[r].content;break;case"softbreak":case"hardbreak":i+=`
|
|
279
|
+
`;break}return i};Pa.prototype.render=function(e,t,n){let i="";const r=this.rules;for(let s=0,a=e.length;s<a;s++){const c=e[s].type;c==="inline"?i+=this.renderInline(e[s].children,t,n):typeof r[c]<"u"?i+=r[c](e,s,t,n,this):i+=this.renderToken(e,s,t,n)}return i};function Un(){this.__rules__=[],this.__cache__=null}Un.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Un.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(i){t.indexOf(i)<0&&t.push(i)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(i){i.enabled&&(n&&i.alt.indexOf(n)<0||e.__cache__[n].push(i.fn))})})};Un.prototype.at=function(e,t,n){const i=this.__find__(e),r=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=r.alt||[],this.__cache__=null};Un.prototype.before=function(e,t,n,i){const r=this.__find__(e),s=i||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};Un.prototype.after=function(e,t,n,i){const r=this.__find__(e),s=i||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};Un.prototype.push=function(e,t,n){const i=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null};Un.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const r=this.__find__(i);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!0,n.push(i)},this),this.__cache__=null,n};Un.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Un.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(i){const r=this.__find__(i);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!1,n.push(i)},this),this.__cache__=null,n};Un.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Qi(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Qi.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let i=0,r=n.length;i<r;i++)if(n[i][0]===t)return i;return-1};Qi.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Qi.prototype.attrSet=function(t,n){const i=this.attrIndex(t),r=[t,n];i<0?this.attrPush(r):this.attrs[i]=r};Qi.prototype.attrGet=function(t){const n=this.attrIndex(t);let i=null;return n>=0&&(i=this.attrs[n][1]),i};Qi.prototype.attrJoin=function(t,n){const i=this.attrIndex(t);i<0?this.attrPush([t,n]):this.attrs[i][1]=this.attrs[i][1]+" "+n};function YT(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}YT.prototype.Token=Qi;const UR=/\r\n?|\n/g,zR=/\0/g;function qR(e){let t;t=e.src.replace(UR,`
|
|
280
|
+
`),t=t.replace(zR,"�"),e.src=t}function HR(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function GR(e){const t=e.tokens;for(let n=0,i=t.length;n<i;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function YR(e){return/^<a[>\s]/i.test(e)}function QR(e){return/^<\/a\s*>/i.test(e)}function XR(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,i=t.length;n<i;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,s=0;for(let a=r.length-1;a>=0;a--){const c=r[a];if(c.type==="link_close"){for(a--;r[a].level!==c.level&&r[a].type!=="link_open";)a--;continue}if(c.type==="html_inline"&&(YR(c.content)&&s>0&&s--,QR(c.content)&&s++),!(s>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const f=c.content;let h=e.md.linkify.match(f);const p=[];let g=c.level,v=0;h.length>0&&h[0].index===0&&a>0&&r[a-1].type==="text_special"&&(h=h.slice(1));for(let y=0;y<h.length;y++){const E=h[y].url,T=e.md.normalizeLink(E);if(!e.md.validateLink(T))continue;let _=h[y].text;h[y].schema?h[y].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,"");const S=h[y].index;if(S>v){const R=new e.Token("text","",0);R.content=f.slice(v,S),R.level=g,p.push(R)}const D=new e.Token("link_open","a",1);D.attrs=[["href",T]],D.level=g++,D.markup="linkify",D.info="auto",p.push(D);const A=new e.Token("text","",0);A.content=_,A.level=g,p.push(A);const N=new e.Token("link_close","a",-1);N.level=--g,N.markup="linkify",N.info="auto",p.push(N),v=h[y].lastIndex}if(v<f.length){const y=new e.Token("text","",0);y.content=f.slice(v),y.level=g,p.push(y)}t[n].children=r=HT(r,a,p)}}}}const QT=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ZR=/\((c|tm|r)\)/i,WR=/\((c|tm|r)\)/ig,KR={c:"©",r:"®",tm:"™"};function JR(e,t){return KR[t.toLowerCase()]}function ek(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&(i.content=i.content.replace(WR,JR)),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function tk(e){let t=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!t&&QT.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),i.type==="link_open"&&i.info==="auto"&&t--,i.type==="link_close"&&i.info==="auto"&&t++}}function nk(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(ZR.test(e.tokens[t].content)&&ek(e.tokens[t].children),QT.test(e.tokens[t].content)&&tk(e.tokens[t].children))}const ik=/['"]/,a6=/['"]/g,l6="’";function vd(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function rk(e,t){let n;const i=[];for(let r=0;r<e.length;r++){const s=e[r],a=e[r].level;for(n=i.length-1;n>=0&&!(i[n].level<=a);n--);if(i.length=n+1,s.type!=="text")continue;let c=s.content,f=0,h=c.length;e:for(;f<h;){a6.lastIndex=f;const p=a6.exec(c);if(!p)break;let g=!0,v=!0;f=p.index+1;const y=p[0]==="'";let E=32;if(p.index-1>=0)E=c.charCodeAt(p.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){E=e[n].content.charCodeAt(e[n].content.length-1);break}let T=32;if(f<h)T=c.charCodeAt(f);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){T=e[n].content.charCodeAt(0);break}const _=xc(E)||bc(String.fromCharCode(E)),S=xc(T)||bc(String.fromCharCode(T)),D=yc(E),A=yc(T);if(A?g=!1:S&&(D||_||(g=!1)),D?v=!1:_&&(A||S||(v=!1)),T===34&&p[0]==='"'&&E>=48&&E<=57&&(v=g=!1),g&&v&&(g=_,v=S),!g&&!v){y&&(s.content=vd(s.content,p.index,l6));continue}if(v)for(n=i.length-1;n>=0;n--){let N=i[n];if(i[n].level<a)break;if(N.single===y&&i[n].level===a){N=i[n];let R,M;y?(R=t.md.options.quotes[2],M=t.md.options.quotes[3]):(R=t.md.options.quotes[0],M=t.md.options.quotes[1]),s.content=vd(s.content,p.index,M),e[N.token].content=vd(e[N.token].content,N.pos,R),f+=M.length-1,N.token===r&&(f+=R.length-1),c=s.content,h=c.length,i.length=n;continue e}}g?i.push({token:r,pos:p.index,single:y,level:a}):v&&y&&(s.content=vd(s.content,p.index,l6))}}}function uk(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!ik.test(e.tokens[t].content)||rk(e.tokens[t].children,e)}function ok(e){let t,n;const i=e.tokens,r=i.length;for(let s=0;s<r;s++){if(i[s].type!=="inline")continue;const a=i[s].children,c=a.length;for(t=0;t<c;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<c;t++)a[t].type==="text"&&t+1<c&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const I1=[["normalize",qR],["block",HR],["inline",GR],["linkify",XR],["replacements",nk],["smartquotes",uk],["text_join",ok]];function g2(){this.ruler=new Un;for(let e=0;e<I1.length;e++)this.ruler.push(I1[e][0],I1[e][1])}g2.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,i=t.length;n<i;n++)t[n](e)};g2.prototype.State=YT;function Lr(e,t,n,i){this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let s=0,a=0,c=0,f=0,h=r.length,p=!1;a<h;a++){const g=r.charCodeAt(a);if(!p)if(mt(g)){c++,g===9?f+=4-f%4:f++;continue}else p=!0;(g===10||a===h-1)&&(g!==10&&a++,this.bMarks.push(s),this.eMarks.push(a),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),p=!1,c=0,f=0,s=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Lr.prototype.push=function(e,t,n){const i=new Qi(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i};Lr.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Lr.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Lr.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const i=this.src.charCodeAt(t);if(!mt(i))break}return t};Lr.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!mt(this.src.charCodeAt(--t)))return t+1;return t};Lr.prototype.skipChars=function(t,n){for(let i=this.src.length;t<i&&this.src.charCodeAt(t)===n;t++);return t};Lr.prototype.skipCharsBack=function(t,n,i){if(t<=i)return t;for(;t>i;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Lr.prototype.getLines=function(t,n,i,r){if(t>=n)return"";const s=new Array(n-t);for(let a=0,c=t;c<n;c++,a++){let f=0;const h=this.bMarks[c];let p=h,g;for(c+1<n||r?g=this.eMarks[c]+1:g=this.eMarks[c];p<g&&f<i;){const v=this.src.charCodeAt(p);if(mt(v))v===9?f+=4-(f+this.bsCount[c])%4:f++;else if(p-h<this.tShift[c])f++;else break;p++}f>i?s[a]=new Array(f-i+1).join(" ")+this.src.slice(p,g):s[a]=this.src.slice(p,g)}return s.join("")};Lr.prototype.Token=Qi;const sk=65536;function F1(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(n,i)}function c6(e){const t=[],n=e.length;let i=0,r=e.charCodeAt(i),s=!1,a=0,c="";for(;i<n;)r===124&&(s?(c+=e.substring(a,i-1),a=i):(t.push(c+e.substring(a,i)),c="",a=i+1)),s=r===92,i++,r=e.charCodeAt(i);return t.push(c+e.substring(a)),t}function ak(e,t,n,i){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let s=e.bMarks[r]+e.tShift[r];if(s>=e.eMarks[r])return!1;const a=e.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58||s>=e.eMarks[r])return!1;const c=e.src.charCodeAt(s++);if(c!==124&&c!==45&&c!==58&&!mt(c)||a===45&&mt(c))return!1;for(;s<e.eMarks[r];){const N=e.src.charCodeAt(s);if(N!==124&&N!==45&&N!==58&&!mt(N))return!1;s++}let f=F1(e,t+1),h=f.split("|");const p=[];for(let N=0;N<h.length;N++){const R=h[N].trim();if(!R){if(N===0||N===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(R))return!1;R.charCodeAt(R.length-1)===58?p.push(R.charCodeAt(0)===58?"center":"right"):R.charCodeAt(0)===58?p.push("left"):p.push("")}if(f=F1(e,t).trim(),f.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;h=c6(f),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop();const g=h.length;if(g===0||g!==p.length)return!1;if(i)return!0;const v=e.parentType;e.parentType="table";const y=e.md.block.ruler.getRules("blockquote"),E=e.push("table_open","table",1),T=[t,0];E.map=T;const _=e.push("thead_open","thead",1);_.map=[t,t+1];const S=e.push("tr_open","tr",1);S.map=[t,t+1];for(let N=0;N<h.length;N++){const R=e.push("th_open","th",1);p[N]&&(R.attrs=[["style","text-align:"+p[N]]]);const M=e.push("inline","",0);M.content=h[N].trim(),M.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let D,A=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let N=!1;for(let M=0,j=y.length;M<j;M++)if(y[M](e,r,n,!0)){N=!0;break}if(N||(f=F1(e,r).trim(),!f)||e.sCount[r]-e.blkIndent>=4||(h=c6(f),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),A+=g-h.length,A>sk))break;if(r===t+2){const M=e.push("tbody_open","tbody",1);M.map=D=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[r,r+1];for(let M=0;M<g;M++){const j=e.push("td_open","td",1);p[M]&&(j.attrs=[["style","text-align:"+p[M]]]);const $=e.push("inline","",0);$.content=h[M]?h[M].trim():"",$.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return D&&(e.push("tbody_close","tbody",-1),D[1]=r),e.push("table_close","table",-1),T[1]=r,e.parentType=v,e.line=r,!0}function lk(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let i=t+1,r=i;for(;i<n;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,r=i;continue}break}e.line=r;const s=e.push("code_block","code",0);return s.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
|
281
|
+
`,s.map=[t,e.line],!0}function ck(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>s)return!1;const a=e.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let c=r;r=e.skipChars(r,a);let f=r-c;if(f<3)return!1;const h=e.src.slice(c,r),p=e.src.slice(r,s);if(a===96&&p.indexOf(String.fromCharCode(a))>=0)return!1;if(i)return!0;let g=t,v=!1;for(;g++,!(g>=n||(r=c=e.bMarks[g]+e.tShift[g],s=e.eMarks[g],r<s&&e.sCount[g]<e.blkIndent));)if(e.src.charCodeAt(r)===a&&!(e.sCount[g]-e.blkIndent>=4)&&(r=e.skipChars(r,a),!(r-c<f)&&(r=e.skipSpaces(r),!(r<s)))){v=!0;break}f=e.sCount[t],e.line=g+(v?1:0);const y=e.push("fence","code",0);return y.info=p,y.content=e.getLines(t+1,g,f,!0),y.markup=h,y.map=[t,e.line],!0}function fk(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(i)return!0;const c=[],f=[],h=[],p=[],g=e.md.block.ruler.getRules("blockquote"),v=e.parentType;e.parentType="blockquote";let y=!1,E;for(E=t;E<n;E++){const A=e.sCount[E]<e.blkIndent;if(r=e.bMarks[E]+e.tShift[E],s=e.eMarks[E],r>=s)break;if(e.src.charCodeAt(r++)===62&&!A){let R=e.sCount[E]+1,M,j;e.src.charCodeAt(r)===32?(r++,R++,j=!1,M=!0):e.src.charCodeAt(r)===9?(M=!0,(e.bsCount[E]+R)%4===3?(r++,R++,j=!1):j=!0):M=!1;let $=R;for(c.push(e.bMarks[E]),e.bMarks[E]=r;r<s;){const L=e.src.charCodeAt(r);if(mt(L))L===9?$+=4-($+e.bsCount[E]+(j?1:0))%4:$++;else break;r++}y=r>=s,f.push(e.bsCount[E]),e.bsCount[E]=e.sCount[E]+1+(M?1:0),h.push(e.sCount[E]),e.sCount[E]=$-R,p.push(e.tShift[E]),e.tShift[E]=r-e.bMarks[E];continue}if(y)break;let N=!1;for(let R=0,M=g.length;R<M;R++)if(g[R](e,E,n,!0)){N=!0;break}if(N){e.lineMax=E,e.blkIndent!==0&&(c.push(e.bMarks[E]),f.push(e.bsCount[E]),p.push(e.tShift[E]),h.push(e.sCount[E]),e.sCount[E]-=e.blkIndent);break}c.push(e.bMarks[E]),f.push(e.bsCount[E]),p.push(e.tShift[E]),h.push(e.sCount[E]),e.sCount[E]=-1}const T=e.blkIndent;e.blkIndent=0;const _=e.push("blockquote_open","blockquote",1);_.markup=">";const S=[t,0];_.map=S,e.md.block.tokenize(e,t,E);const D=e.push("blockquote_close","blockquote",-1);D.markup=">",e.lineMax=a,e.parentType=v,S[1]=e.line;for(let A=0;A<p.length;A++)e.bMarks[A+t]=c[A],e.tShift[A+t]=p[A],e.sCount[A+t]=h[A],e.bsCount[A+t]=f[A];return e.blkIndent=T,!0}function dk(e,t,n,i){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(s++);if(a!==42&&a!==45&&a!==95)return!1;let c=1;for(;s<r;){const h=e.src.charCodeAt(s++);if(h!==a&&!mt(h))return!1;h===a&&c++}if(c<3)return!1;if(i)return!0;e.line=t+1;const f=e.push("hr","hr",0);return f.map=[t,e.line],f.markup=Array(c+1).join(String.fromCharCode(a)),!0}function f6(e,t){const n=e.eMarks[t];let i=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(i++);if(r!==42&&r!==45&&r!==43)return-1;if(i<n){const s=e.src.charCodeAt(i);if(!mt(s))return-1}return i}function d6(e,t){const n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];let r=n;if(r+1>=i)return-1;let s=e.src.charCodeAt(r++);if(s<48||s>57)return-1;for(;;){if(r>=i)return-1;if(s=e.src.charCodeAt(r++),s>=48&&s<=57){if(r-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return r<i&&(s=e.src.charCodeAt(r),!mt(s))?-1:r}function hk(e,t){const n=e.level+2;for(let i=t+2,r=e.tokens.length-2;i<r;i++)e.tokens[i].level===n&&e.tokens[i].type==="paragraph_open"&&(e.tokens[i+2].hidden=!0,e.tokens[i].hidden=!0,i+=2)}function pk(e,t,n,i){let r,s,a,c,f=t,h=!0;if(e.sCount[f]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[f]-e.listIndent>=4&&e.sCount[f]<e.blkIndent)return!1;let p=!1;i&&e.parentType==="paragraph"&&e.sCount[f]>=e.blkIndent&&(p=!0);let g,v,y;if((y=d6(e,f))>=0){if(g=!0,a=e.bMarks[f]+e.tShift[f],v=Number(e.src.slice(a,y-1)),p&&v!==1)return!1}else if((y=f6(e,f))>=0)g=!1;else return!1;if(p&&e.skipSpaces(y)>=e.eMarks[f])return!1;if(i)return!0;const E=e.src.charCodeAt(y-1),T=e.tokens.length;g?(c=e.push("ordered_list_open","ol",1),v!==1&&(c.attrs=[["start",v]])):c=e.push("bullet_list_open","ul",1);const _=[f,0];c.map=_,c.markup=String.fromCharCode(E);let S=!1;const D=e.md.block.ruler.getRules("list"),A=e.parentType;for(e.parentType="list";f<n;){s=y,r=e.eMarks[f];const N=e.sCount[f]+y-(e.bMarks[f]+e.tShift[f]);let R=N;for(;s<r;){const te=e.src.charCodeAt(s);if(te===9)R+=4-(R+e.bsCount[f])%4;else if(te===32)R++;else break;s++}const M=s;let j;M>=r?j=1:j=R-N,j>4&&(j=1);const $=N+j;c=e.push("list_item_open","li",1),c.markup=String.fromCharCode(E);const L=[f,0];c.map=L,g&&(c.info=e.src.slice(a,y-1));const U=e.tight,Y=e.tShift[f],K=e.sCount[f],se=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=$,e.tight=!0,e.tShift[f]=M-e.bMarks[f],e.sCount[f]=R,M>=r&&e.isEmpty(f+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,f,n,!0),(!e.tight||S)&&(h=!1),S=e.line-f>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=se,e.tShift[f]=Y,e.sCount[f]=K,e.tight=U,c=e.push("list_item_close","li",-1),c.markup=String.fromCharCode(E),f=e.line,L[1]=f,f>=n||e.sCount[f]<e.blkIndent||e.sCount[f]-e.blkIndent>=4)break;let ne=!1;for(let te=0,I=D.length;te<I;te++)if(D[te](e,f,n,!0)){ne=!0;break}if(ne)break;if(g){if(y=d6(e,f),y<0)break;a=e.bMarks[f]+e.tShift[f]}else if(y=f6(e,f),y<0)break;if(E!==e.src.charCodeAt(y-1))break}return g?c=e.push("ordered_list_close","ol",-1):c=e.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(E),_[1]=f,e.line=f,e.parentType=A,h&&hk(e,T),!0}function mk(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function c(D){const A=e.lineMax;if(D>=A||e.isEmpty(D))return null;let N=!1;if(e.sCount[D]-e.blkIndent>3&&(N=!0),e.sCount[D]<0&&(N=!0),!N){const j=e.md.block.ruler.getRules("reference"),$=e.parentType;e.parentType="reference";let L=!1;for(let U=0,Y=j.length;U<Y;U++)if(j[U](e,D,A,!0)){L=!0;break}if(e.parentType=$,L)return null}const R=e.bMarks[D]+e.tShift[D],M=e.eMarks[D];return e.src.slice(R,M+1)}let f=e.src.slice(r,s+1);s=f.length;let h=-1;for(r=1;r<s;r++){const D=f.charCodeAt(r);if(D===91)return!1;if(D===93){h=r;break}else if(D===10){const A=c(a);A!==null&&(f+=A,s=f.length,a++)}else if(D===92&&(r++,r<s&&f.charCodeAt(r)===10)){const A=c(a);A!==null&&(f+=A,s=f.length,a++)}}if(h<0||f.charCodeAt(h+1)!==58)return!1;for(r=h+2;r<s;r++){const D=f.charCodeAt(r);if(D===10){const A=c(a);A!==null&&(f+=A,s=f.length,a++)}else if(!mt(D))break}const p=e.md.helpers.parseLinkDestination(f,r,s);if(!p.ok)return!1;const g=e.md.normalizeLink(p.str);if(!e.md.validateLink(g))return!1;r=p.pos;const v=r,y=a,E=r;for(;r<s;r++){const D=f.charCodeAt(r);if(D===10){const A=c(a);A!==null&&(f+=A,s=f.length,a++)}else if(!mt(D))break}let T=e.md.helpers.parseLinkTitle(f,r,s);for(;T.can_continue;){const D=c(a);if(D===null)break;f+=D,r=s,s=f.length,a++,T=e.md.helpers.parseLinkTitle(f,r,s,T)}let _;for(r<s&&E!==r&&T.ok?(_=T.str,r=T.pos):(_="",r=v,a=y);r<s;){const D=f.charCodeAt(r);if(!mt(D))break;r++}if(r<s&&f.charCodeAt(r)!==10&&_)for(_="",r=v,a=y;r<s;){const D=f.charCodeAt(r);if(!mt(D))break;r++}if(r<s&&f.charCodeAt(r)!==10)return!1;const S=V0(f.slice(1,h));return S?(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[S]>"u"&&(e.env.references[S]={title:_,href:g}),e.line=a),!0):!1}const gk=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],vk="[a-zA-Z_:][a-zA-Z0-9:._-]*",yk="[^\"'=<>`\\x00-\\x20]+",bk="'[^']*'",xk='"[^"]*"',Ek="(?:"+yk+"|"+bk+"|"+xk+")",Tk="(?:\\s+"+vk+"(?:\\s*=\\s*"+Ek+")?)",XT="<[A-Za-z][A-Za-z0-9\\-]*"+Tk+"*\\s*\\/?>",ZT="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Sk="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",_k="<[?][\\s\\S]*?[?]>",Ck="<![A-Za-z][^>]*>",Ak="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",wk=new RegExp("^(?:"+XT+"|"+ZT+"|"+Sk+"|"+_k+"|"+Ck+"|"+Ak+")"),Dk=new RegExp("^(?:"+XT+"|"+ZT+")"),ea=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+gk.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Dk.source+"\\s*$"),/^$/,!1]];function Nk(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let a=e.src.slice(r,s),c=0;for(;c<ea.length&&!ea[c][0].test(a);c++);if(c===ea.length)return!1;if(i)return ea[c][2];let f=t+1;if(!ea[c][1].test(a)){for(;f<n&&!(e.sCount[f]<e.blkIndent);f++)if(r=e.bMarks[f]+e.tShift[f],s=e.eMarks[f],a=e.src.slice(r,s),ea[c][1].test(a)){a.length!==0&&f++;break}}e.line=f;const h=e.push("html_block","",0);return h.map=[t,f],h.content=e.getLines(t,f,e.blkIndent,!0),!0}function Ok(e,t,n,i){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(r);if(a!==35||r>=s)return!1;let c=1;for(a=e.src.charCodeAt(++r);a===35&&r<s&&c<=6;)c++,a=e.src.charCodeAt(++r);if(c>6||r<s&&!mt(a))return!1;if(i)return!0;s=e.skipSpacesBack(s,r);const f=e.skipCharsBack(s,35,r);f>r&&mt(e.src.charCodeAt(f-1))&&(s=f),e.line=t+1;const h=e.push("heading_open","h"+String(c),1);h.markup="########".slice(0,c),h.map=[t,e.line];const p=e.push("inline","",0);p.content=e.src.slice(r,s).trim(),p.map=[t,e.line],p.children=[];const g=e.push("heading_close","h"+String(c),-1);return g.markup="########".slice(0,c),!0}function Rk(e,t,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let s=0,a,c=t+1;for(;c<n&&!e.isEmpty(c);c++){if(e.sCount[c]-e.blkIndent>3)continue;if(e.sCount[c]>=e.blkIndent){let y=e.bMarks[c]+e.tShift[c];const E=e.eMarks[c];if(y<E&&(a=e.src.charCodeAt(y),(a===45||a===61)&&(y=e.skipChars(y,a),y=e.skipSpaces(y),y>=E))){s=a===61?1:2;break}}if(e.sCount[c]<0)continue;let v=!1;for(let y=0,E=i.length;y<E;y++)if(i[y](e,c,n,!0)){v=!0;break}if(v)break}if(!s)return!1;const f=e.getLines(t,c,e.blkIndent,!1).trim();e.line=c+1;const h=e.push("heading_open","h"+String(s),1);h.markup=String.fromCharCode(a),h.map=[t,e.line];const p=e.push("inline","",0);p.content=f,p.map=[t,e.line-1],p.children=[];const g=e.push("heading_close","h"+String(s),-1);return g.markup=String.fromCharCode(a),e.parentType=r,!0}function kk(e,t,n){const i=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let h=!1;for(let p=0,g=i.length;p<g;p++)if(i[p](e,s,n,!0)){h=!0;break}if(h)break}const a=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s;const c=e.push("paragraph_open","p",1);c.map=[t,e.line];const f=e.push("inline","",0);return f.content=a,f.map=[t,e.line],f.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const yd=[["table",ak,["paragraph","reference"]],["code",lk],["fence",ck,["paragraph","reference","blockquote","list"]],["blockquote",fk,["paragraph","reference","blockquote","list"]],["hr",dk,["paragraph","reference","blockquote","list"]],["list",pk,["paragraph","reference","blockquote"]],["reference",mk],["html_block",Nk,["paragraph","reference","blockquote"]],["heading",Ok,["paragraph","reference","blockquote"]],["lheading",Rk],["paragraph",kk]];function $0(){this.ruler=new Un;for(let e=0;e<yd.length;e++)this.ruler.push(yd[e][0],yd[e][1],{alt:(yd[e][2]||[]).slice()})}$0.prototype.tokenize=function(e,t,n){const i=this.ruler.getRules(""),r=i.length,s=e.md.options.maxNesting;let a=t,c=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=s){e.line=n;break}const f=e.line;let h=!1;for(let p=0;p<r;p++)if(h=i[p](e,a,n,!1),h){if(f>=e.line)throw new Error("block rule didn't increment state.line");break}if(!h)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),a=e.line,a<n&&e.isEmpty(a)&&(c=!0,a++,e.line=a)}};$0.prototype.parse=function(e,t,n,i){if(!e)return;const r=new this.State(e,t,n,i);this.tokenize(r,r.line,r.lineMax)};$0.prototype.State=Lr;function zc(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}zc.prototype.pushPending=function(){const e=new Qi("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};zc.prototype.push=function(e,t,n){this.pending&&this.pushPending();const i=new Qi(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i};zc.prototype.scanDelims=function(e,t){const n=this.posMax,i=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===i;)s++;const a=s-e,c=s<n?this.src.charCodeAt(s):32,f=xc(r)||bc(String.fromCharCode(r)),h=xc(c)||bc(String.fromCharCode(c)),p=yc(r),g=yc(c),v=!g&&(!h||p||f),y=!p&&(!f||g||h);return{can_open:v&&(t||!y||f),can_close:y&&(t||!v||h),length:a}};zc.prototype.Token=Qi;function Mk(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Lk(e,t){let n=e.pos;for(;n<e.posMax&&!Mk(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const Ik=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Fk(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(Ik);if(!r)return!1;const s=r[1],a=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!a)return!1;let c=a.url;if(c.length<=s.length)return!1;c=c.replace(/\*+$/,"");const f=e.md.normalizeLink(c);if(!e.md.validateLink(f))return!1;if(!t){e.pending=e.pending.slice(0,-s.length);const h=e.push("link_open","a",1);h.attrs=[["href",f]],h.markup="linkify",h.info="auto";const p=e.push("text","",0);p.content=e.md.normalizeLinkText(c);const g=e.push("link_close","a",-1);g.markup="linkify",g.info="auto"}return e.pos+=c.length-s.length,!0}function jk(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,r=e.posMax;if(!t)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let s=i-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&mt(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const v2=[];for(let e=0;e<256;e++)v2.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){v2[e.charCodeAt(0)]=1});function Pk(e,t){let n=e.pos;const i=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<i&&(r=e.src.charCodeAt(n),!!mt(r));)n++;return e.pos=n,!0}let s=e.src[n];if(r>=55296&&r<=56319&&n+1<i){const c=e.src.charCodeAt(n+1);c>=56320&&c<=57343&&(s+=e.src[n+1],n++)}const a="\\"+s;if(!t){const c=e.push("text_special","",0);r<256&&v2[r]!==0?c.content=s:c.content=a,c.markup=a,c.info="escape"}return e.pos=n+1,!0}function Vk(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const s=e.posMax;for(;n<s&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(r,n),c=a.length;if(e.backticksScanned&&(e.backticks[c]||0)<=r)return t||(e.pending+=a),e.pos+=c,!0;let f=n,h;for(;(h=e.src.indexOf("`",f))!==-1;){for(f=h+1;f<s&&e.src.charCodeAt(f)===96;)f++;const p=f-h;if(p===c){if(!t){const g=e.push("code_inline","code",0);g.markup=a,g.content=e.src.slice(n,h).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=f,!0}e.backticks[p]=h}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=c,!0}function $k(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==126)return!1;const r=e.scanDelims(e.pos,!0);let s=r.length;const a=String.fromCharCode(i);if(s<2)return!1;let c;s%2&&(c=e.push("text","",0),c.content=a,s--);for(let f=0;f<s;f+=2)c=e.push("text","",0),c.content=a+a,e.delimiters.push({marker:i,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function h6(e,t){let n;const i=[],r=t.length;for(let s=0;s<r;s++){const a=t[s];if(a.marker!==126||a.end===-1)continue;const c=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[c.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[c.token-1].type==="text"&&e.tokens[c.token-1].content==="~"&&i.push(c.token-1)}for(;i.length;){const s=i.pop();let a=s+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,s!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[s],e.tokens[s]=n)}}function Bk(e){const t=e.tokens_meta,n=e.tokens_meta.length;h6(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&h6(e,t[i].delimiters)}const WT={tokenize:$k,postProcess:Bk};function Uk(e,t){const n=e.pos,i=e.src.charCodeAt(n);if(t||i!==95&&i!==42)return!1;const r=e.scanDelims(e.pos,i===42);for(let s=0;s<r.length;s++){const a=e.push("text","",0);a.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function p6(e,t){const n=t.length;for(let i=n-1;i>=0;i--){const r=t[i];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const s=t[r.end],a=i>0&&t[i-1].end===r.end+1&&t[i-1].marker===r.marker&&t[i-1].token===r.token-1&&t[r.end+1].token===s.token+1,c=String.fromCharCode(r.marker),f=e.tokens[r.token];f.type=a?"strong_open":"em_open",f.tag=a?"strong":"em",f.nesting=1,f.markup=a?c+c:c,f.content="";const h=e.tokens[s.token];h.type=a?"strong_close":"em_close",h.tag=a?"strong":"em",h.nesting=-1,h.markup=a?c+c:c,h.content="",a&&(e.tokens[t[i-1].token].content="",e.tokens[t[r.end+1].token].content="",i--)}}function zk(e){const t=e.tokens_meta,n=e.tokens_meta.length;p6(e,e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&p6(e,t[i].delimiters)}const KT={tokenize:Uk,postProcess:zk};function qk(e,t){let n,i,r,s,a="",c="",f=e.pos,h=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const p=e.pos,g=e.posMax,v=e.pos+1,y=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(y<0)return!1;let E=y+1;if(E<g&&e.src.charCodeAt(E)===40){for(h=!1,E++;E<g&&(n=e.src.charCodeAt(E),!(!mt(n)&&n!==10));E++);if(E>=g)return!1;if(f=E,r=e.md.helpers.parseLinkDestination(e.src,E,e.posMax),r.ok){for(a=e.md.normalizeLink(r.str),e.md.validateLink(a)?E=r.pos:a="",f=E;E<g&&(n=e.src.charCodeAt(E),!(!mt(n)&&n!==10));E++);if(r=e.md.helpers.parseLinkTitle(e.src,E,e.posMax),E<g&&f!==E&&r.ok)for(c=r.str,E=r.pos;E<g&&(n=e.src.charCodeAt(E),!(!mt(n)&&n!==10));E++);}(E>=g||e.src.charCodeAt(E)!==41)&&(h=!0),E++}if(h){if(typeof e.env.references>"u")return!1;if(E<g&&e.src.charCodeAt(E)===91?(f=E+1,E=e.md.helpers.parseLinkLabel(e,E),E>=0?i=e.src.slice(f,E++):E=y+1):E=y+1,i||(i=e.src.slice(v,y)),s=e.env.references[V0(i)],!s)return e.pos=p,!1;a=s.href,c=s.title}if(!t){e.pos=v,e.posMax=y;const T=e.push("link_open","a",1),_=[["href",a]];T.attrs=_,c&&_.push(["title",c]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=E,e.posMax=g,!0}function Hk(e,t){let n,i,r,s,a,c,f,h,p="";const g=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const y=e.pos+2,E=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(E<0)return!1;if(s=E+1,s<v&&e.src.charCodeAt(s)===40){for(s++;s<v&&(n=e.src.charCodeAt(s),!(!mt(n)&&n!==10));s++);if(s>=v)return!1;for(h=s,c=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),c.ok&&(p=e.md.normalizeLink(c.str),e.md.validateLink(p)?s=c.pos:p=""),h=s;s<v&&(n=e.src.charCodeAt(s),!(!mt(n)&&n!==10));s++);if(c=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<v&&h!==s&&c.ok)for(f=c.str,s=c.pos;s<v&&(n=e.src.charCodeAt(s),!(!mt(n)&&n!==10));s++);else f="";if(s>=v||e.src.charCodeAt(s)!==41)return e.pos=g,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s<v&&e.src.charCodeAt(s)===91?(h=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?r=e.src.slice(h,s++):s=E+1):s=E+1,r||(r=e.src.slice(y,E)),a=e.env.references[V0(r)],!a)return e.pos=g,!1;p=a.href,f=a.title}if(!t){i=e.src.slice(y,E);const T=[];e.md.inline.parse(i,e.md,e.env,T);const _=e.push("image","img",0),S=[["src",p],["alt",""]];_.attrs=S,_.children=T,_.content=i,f&&S.push(["title",f])}return e.pos=s,e.posMax=v,!0}const Gk=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Yk=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Qk(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const i=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const s=e.src.slice(i+1,n);if(Yk.test(s)){const a=e.md.normalizeLink(s);if(!e.md.validateLink(a))return!1;if(!t){const c=e.push("link_open","a",1);c.attrs=[["href",a]],c.markup="autolink",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);const h=e.push("link_close","a",-1);h.markup="autolink",h.info="auto"}return e.pos+=s.length+2,!0}if(Gk.test(s)){const a=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(a))return!1;if(!t){const c=e.push("link_open","a",1);c.attrs=[["href",a]],c.markup="autolink",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);const h=e.push("link_close","a",-1);h.markup="autolink",h.info="auto"}return e.pos+=s.length+2,!0}return!1}function Xk(e){return/^<a[>\s]/i.test(e)}function Zk(e){return/^<\/a\s*>/i.test(e)}function Wk(e){const t=e|32;return t>=97&&t<=122}function Kk(e,t){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==60||i+2>=n)return!1;const r=e.src.charCodeAt(i+1);if(r!==33&&r!==63&&r!==47&&!Wk(r))return!1;const s=e.src.slice(i).match(wk);if(!s)return!1;if(!t){const a=e.push("html_inline","",0);a.content=s[0],Xk(a.content)&&e.linkLevel++,Zk(a.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}const Jk=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,eM=/^&([a-z][a-z0-9]{1,31});/i;function tM(e,t){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const s=e.src.slice(n).match(Jk);if(s){if(!t){const a=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),c=e.push("text_special","",0);c.content=m2(a)?s0(a):s0(65533),c.markup=s[0],c.info="entity"}return e.pos+=s[0].length,!0}}else{const s=e.src.slice(n).match(eM);if(s){const a=qT(s[0]);if(a!==s[0]){if(!t){const c=e.push("text_special","",0);c.content=a,c.markup=s[0],c.info="entity"}return e.pos+=s[0].length,!0}}}return!1}function m6(e){const t={},n=e.length;if(!n)return;let i=0,r=-2;const s=[];for(let a=0;a<n;a++){const c=e[a];if(s.push(0),(e[i].marker!==c.marker||r!==c.token-1)&&(i=a),r=c.token,c.length=c.length||0,!c.close)continue;t.hasOwnProperty(c.marker)||(t[c.marker]=[-1,-1,-1,-1,-1,-1]);const f=t[c.marker][(c.open?3:0)+c.length%3];let h=i-s[i]-1,p=h;for(;h>f;h-=s[h]+1){const g=e[h];if(g.marker===c.marker&&g.open&&g.end<0){let v=!1;if((g.close||c.open)&&(g.length+c.length)%3===0&&(g.length%3!==0||c.length%3!==0)&&(v=!0),!v){const y=h>0&&!e[h-1].open?s[h-1]+1:0;s[a]=a-h+y,s[h]=y,c.open=!1,g.end=a,g.close=!1,p=-1,r=-2;break}}}p!==-1&&(t[c.marker][(c.open?3:0)+(c.length||0)%3]=p)}}function nM(e){const t=e.tokens_meta,n=e.tokens_meta.length;m6(e.delimiters);for(let i=0;i<n;i++)t[i]&&t[i].delimiters&&m6(t[i].delimiters)}function iM(e){let t,n,i=0;const r=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)r[t].nesting<0&&i--,r[t].level=i,r[t].nesting>0&&i++,r[t].type==="text"&&t+1<s&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const j1=[["text",Lk],["linkify",Fk],["newline",jk],["escape",Pk],["backticks",Vk],["strikethrough",WT.tokenize],["emphasis",KT.tokenize],["link",qk],["image",Hk],["autolink",Qk],["html_inline",Kk],["entity",tM]],P1=[["balance_pairs",nM],["strikethrough",WT.postProcess],["emphasis",KT.postProcess],["fragments_join",iM]];function qc(){this.ruler=new Un;for(let e=0;e<j1.length;e++)this.ruler.push(j1[e][0],j1[e][1]);this.ruler2=new Un;for(let e=0;e<P1.length;e++)this.ruler2.push(P1[e][0],P1[e][1])}qc.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),i=n.length,r=e.md.options.maxNesting,s=e.cache;if(typeof s[t]<"u"){e.pos=s[t];return}let a=!1;if(e.level<r){for(let c=0;c<i;c++)if(e.level++,a=n[c](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,s[t]=e.pos};qc.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,i=e.posMax,r=e.md.options.maxNesting;for(;e.pos<i;){const s=e.pos;let a=!1;if(e.level<r){for(let c=0;c<n;c++)if(a=t[c](e,!1),a){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};qc.prototype.parse=function(e,t,n,i){const r=new this.State(e,t,n,i);this.tokenize(r);const s=this.ruler2.getRules(""),a=s.length;for(let c=0;c<a;c++)s[c](r)};qc.prototype.State=zc;function rM(e){const t={};e=e||{},t.src_Any=VT.source,t.src_Cc=$T.source,t.src_Z=UT.source,t.src_P=h2.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function ig(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(i){e[i]=n[i]})}),e}function B0(e){return Object.prototype.toString.call(e)}function uM(e){return B0(e)==="[object String]"}function oM(e){return B0(e)==="[object Object]"}function sM(e){return B0(e)==="[object RegExp]"}function g6(e){return B0(e)==="[object Function]"}function aM(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const JT={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function lM(e){return Object.keys(e||{}).reduce(function(t,n){return t||JT.hasOwnProperty(n)},!1)}const cM={"http:":{validate:function(e,t,n){const i=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const i=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const i=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},fM="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",dM="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function hM(e){e.__index__=-1,e.__text_cache__=""}function pM(e){return function(t,n){const i=t.slice(n);return e.test(i)?i.match(e)[0].length:0}}function v6(){return function(e,t){t.normalize(e)}}function a0(e){const t=e.re=rM(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(fM),n.push(t.src_xn),t.src_tlds=n.join("|");function i(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function s(c,f){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+f)}Object.keys(e.__schemas__).forEach(function(c){const f=e.__schemas__[c];if(f===null)return;const h={validate:null,link:null};if(e.__compiled__[c]=h,oM(f)){sM(f.validate)?h.validate=pM(f.validate):g6(f.validate)?h.validate=f.validate:s(c,f),g6(f.normalize)?h.normalize=f.normalize:f.normalize?s(c,f):h.normalize=v6();return}if(uM(f)){r.push(c);return}s(c,f)}),r.forEach(function(c){e.__compiled__[e.__schemas__[c]]&&(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:v6()};const a=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(aM).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),hM(e)}function mM(e,t){const n=e.__index__,i=e.__last_index__,r=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=r,this.text=r,this.url=r}function rg(e,t){const n=new mM(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function si(e,t){if(!(this instanceof si))return new si(e,t);t||lM(e)&&(t=e,e={}),this.__opts__=ig({},JT,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ig({},cM,e),this.__compiled__={},this.__tlds__=dM,this.__tlds_replaced__=!1,this.re={},a0(this)}si.prototype.add=function(t,n){return this.__schemas__[t]=n,a0(this),this};si.prototype.set=function(t){return this.__opts__=ig(this.__opts__,t),this};si.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,i,r,s,a,c,f,h,p;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(n=f.exec(t))!==null;)if(s=this.testSchemaAt(t,n[2],f.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=t.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(i=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=i.index+i[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(p=t.indexOf("@"),p>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,c=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=c))),this.__index__>=0};si.prototype.pretest=function(t){return this.re.pretest.test(t)};si.prototype.testSchemaAt=function(t,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,i,this):0};si.prototype.match=function(t){const n=[];let i=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(rg(this,i)),i=this.__last_index__);let r=i?t.slice(i):t;for(;this.test(r);)n.push(rg(this,i)),r=r.slice(this.__last_index__),i+=this.__last_index__;return n.length?n:null};si.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const i=this.testSchemaAt(t,n[2],n[0].length);return i?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i,rg(this,0)):null};si.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(i,r,s){return i!==s[r-1]}).reverse(),a0(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,a0(this),this)};si.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};si.prototype.onCompile=function(){};const ya=2147483647,yr=36,y2=1,Ec=26,gM=38,vM=700,eS=72,tS=128,nS="-",yM=/^xn--/,bM=/[^\0-\x7F]/,xM=/[\x2E\u3002\uFF0E\uFF61]/g,EM={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V1=yr-y2,br=Math.floor,$1=String.fromCharCode;function uo(e){throw new RangeError(EM[e])}function TM(e,t){const n=[];let i=e.length;for(;i--;)n[i]=t(e[i]);return n}function iS(e,t){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(xM,".");const r=e.split("."),s=TM(r,t).join(".");return i+s}function rS(e){const t=[];let n=0;const i=e.length;for(;n<i;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const s=e.charCodeAt(n++);(s&64512)==56320?t.push(((r&1023)<<10)+(s&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const SM=e=>String.fromCodePoint(...e),_M=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:yr},y6=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},uS=function(e,t,n){let i=0;for(e=n?br(e/vM):e>>1,e+=br(e/t);e>V1*Ec>>1;i+=yr)e=br(e/V1);return br(i+(V1+1)*e/(e+gM))},oS=function(e){const t=[],n=e.length;let i=0,r=tS,s=eS,a=e.lastIndexOf(nS);a<0&&(a=0);for(let c=0;c<a;++c)e.charCodeAt(c)>=128&&uo("not-basic"),t.push(e.charCodeAt(c));for(let c=a>0?a+1:0;c<n;){const f=i;for(let p=1,g=yr;;g+=yr){c>=n&&uo("invalid-input");const v=_M(e.charCodeAt(c++));v>=yr&&uo("invalid-input"),v>br((ya-i)/p)&&uo("overflow"),i+=v*p;const y=g<=s?y2:g>=s+Ec?Ec:g-s;if(v<y)break;const E=yr-y;p>br(ya/E)&&uo("overflow"),p*=E}const h=t.length+1;s=uS(i-f,h,f==0),br(i/h)>ya-r&&uo("overflow"),r+=br(i/h),i%=h,t.splice(i++,0,r)}return String.fromCodePoint(...t)},sS=function(e){const t=[];e=rS(e);const n=e.length;let i=tS,r=0,s=eS;for(const f of e)f<128&&t.push($1(f));const a=t.length;let c=a;for(a&&t.push(nS);c<n;){let f=ya;for(const p of e)p>=i&&p<f&&(f=p);const h=c+1;f-i>br((ya-r)/h)&&uo("overflow"),r+=(f-i)*h,i=f;for(const p of e)if(p<i&&++r>ya&&uo("overflow"),p===i){let g=r;for(let v=yr;;v+=yr){const y=v<=s?y2:v>=s+Ec?Ec:v-s;if(g<y)break;const E=g-y,T=yr-y;t.push($1(y6(y+E%T,0))),g=br(E/T)}t.push($1(y6(g,0))),s=uS(r,h,c===a),r=0,++c}++r,++i}return t.join("")},CM=function(e){return iS(e,function(t){return yM.test(t)?oS(t.slice(4).toLowerCase()):t})},AM=function(e){return iS(e,function(t){return bM.test(t)?"xn--"+sS(t):t})},aS={version:"2.3.1",ucs2:{decode:rS,encode:SM},decode:oS,encode:sS,toASCII:AM,toUnicode:CM},wM={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},DM={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},NM={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},OM={default:wM,zero:DM,commonmark:NM},RM=/^(vbscript|javascript|file|data):/,kM=/^data:image\/(gif|png|jpeg|webp);/;function MM(e){const t=e.trim().toLowerCase();return RM.test(t)?kM.test(t):!0}const lS=["http:","https:","mailto:"];function LM(e){const t=d2(e,!0);if(t.hostname&&(!t.protocol||lS.indexOf(t.protocol)>=0))try{t.hostname=aS.toASCII(t.hostname)}catch{}return Uc(f2(t))}function IM(e){const t=d2(e,!0);if(t.hostname&&(!t.protocol||lS.indexOf(t.protocol)>=0))try{t.hostname=aS.toUnicode(t.hostname)}catch{}return wa(f2(t),wa.defaultChars+"%")}function wi(e,t){if(!(this instanceof wi))return new wi(e,t);t||p2(e)||(t=e||{},e="default"),this.inline=new qc,this.block=new $0,this.core=new g2,this.renderer=new Pa,this.linkify=new si,this.validateLink=MM,this.normalizeLink=LM,this.normalizeLinkText=IM,this.utils=jR,this.helpers=P0({},BR),this.options={},this.configure(e),t&&this.set(t)}wi.prototype.set=function(e){return P0(this.options,e),this};wi.prototype.configure=function(e){const t=this;if(p2(e)){const n=e;if(e=OM[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};wi.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(r){return n.indexOf(r)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this};wi.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(r){return n.indexOf(r)<0});if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this};wi.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};wi.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};wi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};wi.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};wi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const l0=new wi({breaks:!1,linkify:!0});function FM(e,t,{schema:n,setSchemaReference:i},r,s){Bc([],{useCommonAddons:!1}).then(c=>{let f,h,p,g,v,y,E,T,_;c.on(t,"select",(S,D)=>{if(!f){const A=D.parentNode;f=document.createElement("div"),f.className="CodeMirror-hint-information",A.append(f);const N=document.createElement("header");N.className="CodeMirror-hint-information-header",f.append(N),h=document.createElement("span"),h.className="CodeMirror-hint-information-field-name",N.append(h),p=document.createElement("span"),p.className="CodeMirror-hint-information-type-name-pill",N.append(p),g=document.createElement("span"),p.append(g),v=document.createElement("a"),v.className="CodeMirror-hint-information-type-name",v.href="javascript:void 0",v.addEventListener("click",a),p.append(v),y=document.createElement("span"),p.append(y),E=document.createElement("div"),E.className="CodeMirror-hint-information-description",f.append(E),T=document.createElement("div"),T.className="CodeMirror-hint-information-deprecation",f.append(T);const R=document.createElement("span");R.className="CodeMirror-hint-information-deprecation-label",R.textContent="Deprecated",T.append(R),_=document.createElement("div"),_.className="CodeMirror-hint-information-deprecation-reason",T.append(_);const M=parseInt(window.getComputedStyle(f).paddingBottom.replace(/px$/,""),10)||0,j=parseInt(window.getComputedStyle(f).maxHeight.replace(/px$/,""),10)||0,$=()=>{f&&(f.style.paddingTop=A.scrollTop+M+"px",f.style.maxHeight=A.scrollTop+j+"px")};A.addEventListener("scroll",$);let L;A.addEventListener("DOMNodeRemoved",L=U=>{U.target===A&&(A.removeEventListener("scroll",$),A.removeEventListener("DOMNodeRemoved",L),f==null||f.removeEventListener("click",a),f=null,h=null,p=null,g=null,v=null,y=null,E=null,T=null,_=null,L=null)})}if(h&&(h.textContent=S.text),p&&g&&v&&y)if(S.type){p.style.display="inline";const A=N=>{It(N)?(y.textContent="!"+y.textContent,A(N.ofType)):kn(N)?(g.textContent+="[",y.textContent="]"+y.textContent,A(N.ofType)):v.textContent=N.name};g.textContent="",y.textContent="",A(S.type)}else g.textContent="",v.textContent="",y.textContent="",p.style.display="none";E&&(S.description?(E.style.display="block",E.innerHTML=l0.render(S.description)):(E.style.display="none",E.innerHTML="")),T&&_&&(S.deprecationReason?(T.style.display="block",_.innerHTML=l0.render(S.deprecationReason)):(T.style.display="none",_.innerHTML=""))})});function a(c){const f=r==null?void 0:r.referencePlugin;if(!n||!f||!(c.currentTarget instanceof HTMLElement))return;const h=c.currentTarget.textContent||"",p=n.getType(h);p&&(r.setVisiblePlugin(f),i({kind:"Type",type:p}),s==null||s(p))}}function Na(e,t){let n;return function(...i){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...i)},e)}}function bd(e,t){const n=ge.c(4);let i,r;n[0]!==e||n[1]!==t?(i=()=>{e&&typeof t=="string"&&t!==e.getValue()&&e.setValue(t)},r=[e,t],n[0]=e,n[1]=t,n[2]=i,n[3]=r):(i=n[2],r=n[3]),x.useEffect(i,r)}function U0(e,t,n){const i=ge.c(5);let r,s;i[0]!==e||i[1]!==t||i[2]!==n?(r=()=>{e==null||e.setOption(t,n)},s=[e,t,n],i[0]=e,i[1]=t,i[2]=n,i[3]=r,i[4]=s):(r=i[3],s=i[4]),x.useEffect(r,s)}function cS(e,t,n,i,r){const s=ge.c(9);let a;s[0]!==r?(a={nonNull:!0,caller:r},s[0]=r,s[1]=a):a=s[1];const{updateActiveTabValues:c}=vn(a);let f,h;s[2]!==t||s[3]!==e||s[4]!==n||s[5]!==i||s[6]!==c?(f=()=>{if(!e)return;const{storage:p}=Fa.getState(),g=Na(500,E=>{n!==null&&p.set(n,E)}),v=Na(100,E=>{c({[i]:E})}),y=(E,T)=>{if(!T)return;const _=E.getValue();g(_),v(_),t==null||t(_)};return e.on("change",y),()=>e.off("change",y)},h=[t,e,n,i,c],s[2]=t,s[3]=e,s[4]=n,s[5]=i,s[6]=c,s[7]=f,s[8]=h):(f=s[7],h=s[8]),x.useEffect(f,h)}function fS(e,t){const n=ge.c(7),{schema:i,setSchemaReference:r}=kr(),s=j0();let a,c;n[0]!==t||n[1]!==e||n[2]!==s||n[3]!==i||n[4]!==r?(a=()=>{if(!e)return;const f=(h,p)=>{FM(h,p,{schema:i,setSchemaReference:r},s,v=>{t==null||t({kind:"Type",type:v,schema:i||void 0})})};return e.on("hasCompletion",f),()=>e.off("hasCompletion",f)},c=[t,e,s,i,r],n[0]=t,n[1]=e,n[2]=s,n[3]=i,n[4]=r,n[5]=a,n[6]=c):(a=n[5],c=n[6]),x.useEffect(a,c)}function xr(e,t,n){const i=ge.c(5);let r,s;i[0]!==n||i[1]!==e||i[2]!==t?(r=()=>{if(e){for(const a of t)e.removeKeyMap(a);if(n){const a={};for(const c of t)a[c]=()=>n();e.addKeyMap(a)}}},s=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=r,i[4]=s):(r=i[3],s=i[4]),x.useEffect(r,s)}const jM=b2,PM=Hc,VM=Gc,$M=dS;function b2(e){const t=ge.c(7);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:i,onCopyQuery:r}=n,s=i||jM;let a;t[2]!==s?(a={nonNull:!0,caller:s},t[2]=s,t[3]=a):a=t[3];const{queryEditor:c}=vn(a);let f;return t[4]!==r||t[5]!==c?(f=()=>{if(!c)return;const h=c.getValue();GO(h),r==null||r(h)},t[4]=r,t[5]=c,t[6]=f):f=t[6],f}function Hc(e){const t=ge.c(7);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:i}=n,r=i||PM;let s;t[2]!==r?(s={nonNull:!0,caller:r},t[2]=r,t[3]=s):s=t[3];const{queryEditor:a}=vn(s),{schema:c}=kr();let f;return t[4]!==a||t[5]!==c?(f=()=>{const h=a==null?void 0:a.documentAST,p=a==null?void 0:a.getValue();!h||!p||a.setValue(ui(MN(h,c)))},t[4]=a,t[5]=c,t[6]=f):f=t[6],f}function BM(e){return ui(cs(e))}function Gc(e){const t=ge.c(9);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:i,onPrettifyQuery:r}=n,s=r===void 0?BM:r,a=i||VM;let c;t[2]!==a?(c={nonNull:!0,caller:a},t[2]=a,t[3]=c):c=t[3];const{queryEditor:f,headerEditor:h,variableEditor:p}=vn(c);let g;return t[4]!==h||t[5]!==s||t[6]!==f||t[7]!==p?(g=async()=>{if(p){const v=p.getValue();try{const y=JSON.stringify(JSON.parse(v),null,2);y!==v&&p.setValue(y)}catch{}}if(h){const v=h.getValue();try{const y=JSON.stringify(JSON.parse(v),null,2);y!==v&&h.setValue(y)}catch{}}if(f){const v=f.getValue();try{const y=await s(v);y!==v&&f.setValue(y)}catch{}}},t[4]=h,t[5]=s,t[6]=f,t[7]=p,t[8]=g):g=t[8],g}function dS(e){const t=ge.c(8);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{getDefaultFieldNames:i,caller:r}=n,{schema:s}=kr(),a=r||$M;let c;t[2]!==a?(c={nonNull:!0,caller:a},t[2]=a,t[3]=c):c=t[3];const{queryEditor:f}=vn(c);let h;return t[4]!==i||t[5]!==f||t[6]!==s?(h=()=>{if(!f)return;const p=f.getValue(),{insertions:g,result:v}=wN(s,p,i);return g&&g.length>0&&f.operation(()=>{const y=f.getCursor(),E=f.indexFromPos(y);f.setValue(v||"");let T;T=0;const _=g.map(D=>{const{index:A,string:N}=D;return T=T+N.length,f.markText(f.posFromIndex(A+T),f.posFromIndex(A+T),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(const D of _)D.clear()},7e3);let S=E;for(const{index:D,string:A}of g)D<E&&(S=S+A.length);f.setCursor(f.posFromIndex(S))}),v},t[4]=i,t[5]=f,t[6]=s,t[7]=h):h=t[7],h}function UM(){return Bc([We(()=>import("./javascript-CIef8F0n.js").then(e=>e.j),__vite__mapDeps([15,1]))])}const xd=hS;function hS(e,t){const n=ge.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:r,keyMap:s,onEdit:a,readOnly:c}=i,f=r===void 0?L0:r,h=s===void 0?I0:s,p=c===void 0?!1:c,g=t||xd;let v;n[2]!==g?(v={nonNull:!0,caller:g},n[2]=g,n[3]=v):v=n[3];const{initialHeaders:y,headerEditor:E,setHeaderEditor:T,shouldPersistHeaders:_}=vn(v),S=Va(),D=t||xd;let A;n[4]!==D?(A={caller:D},n[4]=D,n[5]=A):A=n[5];const N=Hc(A),R=t||xd;let M;n[6]!==R?(M={caller:R},n[6]=R,n[7]=M):M=n[7];const j=Gc(M),$=x.useRef(null);let L,U;n[8]!==f||n[9]!==y||n[10]!==p||n[11]!==T?(L=()=>{let ne;return ne=!0,UM().then(te=>{if(!ne)return;const I=$.current;if(!I)return;const z=te(I,{value:y,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:f,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:F0});z.addKeyMap({"Cmd-Space"(){z.showHint({completeSingle:!1,container:I})},"Ctrl-Space"(){z.showHint({completeSingle:!1,container:I})},"Alt-Space"(){z.showHint({completeSingle:!1,container:I})},"Shift-Space"(){z.showHint({completeSingle:!1,container:I})}}),z.on("keyup",zM),T(z)}),()=>{ne=!1}},U=[f,y,p,T],n[8]=f,n[9]=y,n[10]=p,n[11]=T,n[12]=L,n[13]=U):(L=n[12],U=n[13]),x.useEffect(L,U),U0(E,"keyMap",h),cS(E,a,_?Ud:null,"headers",xd);let Y;n[14]===Symbol.for("react.memo_cache_sentinel")?(Y=["Cmd-Enter","Ctrl-Enter"],n[14]=Y):Y=n[14],xr(E,Y,S==null?void 0:S.run);let K;n[15]===Symbol.for("react.memo_cache_sentinel")?(K=["Shift-Ctrl-P"],n[15]=K):K=n[15],xr(E,K,j);let se;return n[16]===Symbol.for("react.memo_cache_sentinel")?(se=["Shift-Ctrl-M"],n[16]=se):se=n[16],xr(E,se,N),$}function zM(e,t){const{code:n,key:i,shiftKey:r}=t,s=n.startsWith("Key"),a=!r&&n.startsWith("Digit");(s||a||i==="_"||i==='"')&&e.execCommand("autocomplete")}const Ud="headers",qM=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),HM=new RegExp("["+qM.join("")+"]","g");function GM(e){return e.replace(HM," ")}function YM(){return Bc([We(()=>import("./comment-CvLlMsd_.js").then(e=>e.c),__vite__mapDeps([16,1])),We(()=>import("./search-BwFO2EYo.js").then(e=>e.s),__vite__mapDeps([17,1,10,12])),We(()=>import("./hint-CE5L8QSM.js"),__vite__mapDeps([18,0,1,2,19])),We(()=>import("./lint-BIG9wcrT.js"),__vite__mapDeps([20,0,1,19])),We(()=>import("./info-Eys77UxT.js"),__vite__mapDeps([21,0,1,22,23,24])),We(()=>import("./jump-CTE51hYz.js"),__vite__mapDeps([25,0,1,22,23])),We(()=>import("./mode-u5eBXn1b.js"),__vite__mapDeps([26,0,1,27]))])}const Ed=pS;function QM(e,t){e.state.lint.linterOptions.variableToType=t==null?void 0:t.variableToType,e.options.lint.variableToType=t==null?void 0:t.variableToType,e.options.hintOptions.variableToType=t==null?void 0:t.variableToType}function XM(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function ZM(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function WM(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function pS(e,t){const n=ge.c(40);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:r,keyMap:s,onClickReference:a,onCopyQuery:c,onEdit:f,onPrettifyQuery:h,readOnly:p}=i,g=r===void 0?L0:r,v=s===void 0?I0:s,y=p===void 0?!1:p,{schema:E,setSchemaReference:T}=kr(),_=t||Ed;let S;n[2]!==_?(S={nonNull:!0,caller:_},n[2]=_,n[3]=S):S=n[3];const{externalFragments:D,initialQuery:A,queryEditor:N,setOperationName:R,setQueryEditor:M,validationRules:j,variableEditor:$,updateActiveTabValues:L}=vn(S),U=Va(),Y=ja(),K=j0(),se=t||Ed;let ne;n[4]!==c||n[5]!==se?(ne={caller:se,onCopyQuery:c},n[4]=c,n[5]=se,n[6]=ne):ne=n[6];const te=b2(ne),I=t||Ed;let z;n[7]!==I?(z={caller:I},n[7]=I,n[8]=z):z=n[8];const P=Hc(z),V=t||Ed;let k;n[9]!==h||n[10]!==V?(k={caller:V,onPrettifyQuery:h},n[9]=h,n[10]=V,n[11]=k):k=n[11];const H=Gc(k),oe=x.useRef(null),ie=x.useRef(void 0),G=x.useRef(tL);let pe,de;n[12]!==a||n[13]!==K||n[14]!==T?(pe=()=>{G.current=Se=>{const Le=K==null?void 0:K.referencePlugin;Le&&(K.setVisiblePlugin(Le),T(Se),a==null||a(Se))}},de=[a,K,T],n[12]=a,n[13]=K,n[14]=T,n[15]=pe,n[16]=de):(pe=n[15],de=n[16]),x.useEffect(pe,de);let fe,re;n[17]!==g||n[18]!==A||n[19]!==y||n[20]!==M?(fe=()=>{let Se;return Se=!0,YM().then(Le=>{if(!Se)return;ie.current=Le;const De=oe.current;if(!De)return;const ke=Le(De,{value:A,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:g,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:y?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:De,externalFragments:void 0,autocompleteOptions:{mode:fu.EXECUTABLE}},info:{schema:void 0,renderDescription:eL,onClick(_n){G.current(_n)}},jump:{schema:void 0,onClick(_n){G.current(_n)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...F0,"Cmd-S"(){},"Ctrl-S"(){}}}),xt=function(){ke.showHint({completeSingle:!0,container:De})};ke.addKeyMap({"Cmd-Space":xt,"Ctrl-Space":xt,"Alt-Space":xt,"Shift-Space":xt,"Shift-Alt-Space":xt}),ke.on("keyup",JM);let He;He=!1,ke.on("startCompletion",()=>{He=!0}),ke.on("endCompletion",()=>{He=!1}),ke.on("keydown",(_n,Ri)=>{Ri.key==="Escape"&&He&&Ri.stopPropagation()}),ke.on("beforeChange",KM),ke.documentAST=null,ke.operationName=null,ke.operations=null,ke.variableToType=null,M(ke)}),()=>{Se=!1}},re=[g,A,y,M],n[17]=g,n[18]=A,n[19]=y,n[20]=M,n[21]=fe,n[22]=re):(fe=n[21],re=n[22]),x.useEffect(fe,re),U0(N,"keyMap",v);let me,xe;n[23]!==f||n[24]!==N||n[25]!==E||n[26]!==R||n[27]!==Y||n[28]!==L||n[29]!==$?(me=()=>{if(!N)return;const Se=function(ke){var xt;const He=OO(E,ke.getValue()),_n=LN(ke.operations??void 0,ke.operationName??void 0,He==null?void 0:He.operations);return ke.documentAST=(He==null?void 0:He.documentAST)??null,ke.operationName=_n??null,ke.operations=(He==null?void 0:He.operations)??null,$&&(QM($,He),(xt=ie.current)==null||xt.signal($,"change",$)),He?{...He,operationName:_n}:null},Le=Na(100,De=>{const ke=De.getValue();Y.set(mS,ke);const xt=De.operationName,He=Se(De);(He==null?void 0:He.operationName)!==void 0&&Y.set(oL,He.operationName),f==null||f(ke,He==null?void 0:He.documentAST),He!=null&&He.operationName&&xt!==He.operationName&&R(He.operationName),L({query:ke,operationName:(He==null?void 0:He.operationName)??null})});return Se(N),N.on("change",Le),()=>N.off("change",Le)},xe=[f,N,E,R,Y,$,L],n[23]=f,n[24]=N,n[25]=E,n[26]=R,n[27]=Y,n[28]=L,n[29]=$,n[30]=me,n[31]=xe):(me=n[30],xe=n[31]),x.useEffect(me,xe),nL(N,E??null,ie),iL(N,j??null,ie),rL(N,D,ie),fS(N,a);const Te=U==null?void 0:U.run;let st;n[32]!==N||n[33]!==Te||n[34]!==R?(st=()=>{var Se;if(!Te||!N||!N.operations||!N.hasFocus()){Te==null||Te();return}const Le=N.indexFromPos(N.getCursor());let De;for(const ke of N.operations)ke.loc&&ke.loc.start<=Le&&ke.loc.end>=Le&&(De=(Se=ke.name)==null?void 0:Se.value);De&&De!==N.operationName&&R(De),Te()},n[32]=N,n[33]=Te,n[34]=R,n[35]=st):st=n[35];const _e=st;let gt;n[36]===Symbol.for("react.memo_cache_sentinel")?(gt=["Cmd-Enter","Ctrl-Enter"],n[36]=gt):gt=n[36],xr(N,gt,_e);let an;n[37]===Symbol.for("react.memo_cache_sentinel")?(an=["Shift-Ctrl-C"],n[37]=an):an=n[37],xr(N,an,te);let ln;n[38]===Symbol.for("react.memo_cache_sentinel")?(ln=["Shift-Ctrl-P","Shift-Ctrl-F"],n[38]=ln):ln=n[38],xr(N,ln,H);let at;return n[39]===Symbol.for("react.memo_cache_sentinel")?(at=["Shift-Ctrl-M"],n[39]=at):at=n[39],xr(N,at,P),oe}function KM(e,t){var n;if(t.origin==="paste"){const i=t.text.map(GM);(n=t.update)==null||n.call(t,t.from,t.to,i)}}function JM(e,t){uL.test(t.key)&&e.execCommand("autocomplete")}function eL(e){return l0.render(e)}function tL(){}function nL(e,t,n){const i=ge.c(5);let r,s;i[0]!==n||i[1]!==e||i[2]!==t?(r=()=>{if(!e)return;const a=e.options.lint.schema!==t;XM(e,t),a&&n.current&&n.current.signal(e,"change",e)},s=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=r,i[4]=s):(r=i[3],s=i[4]),x.useEffect(r,s)}function iL(e,t,n){const i=ge.c(5);let r,s;i[0]!==n||i[1]!==e||i[2]!==t?(r=()=>{if(!e)return;const a=e.options.lint.validationRules!==t;ZM(e,t),a&&n.current&&n.current.signal(e,"change",e)},s=[e,t,n],i[0]=n,i[1]=e,i[2]=t,i[3]=r,i[4]=s):(r=i[3],s=i[4]),x.useEffect(r,s)}function rL(e,t,n){const i=ge.c(7);let r;i[0]!==t?(r=[...t.values()],i[0]=t,i[1]=r):r=i[1];const s=r;let a,c;i[2]!==n||i[3]!==e||i[4]!==s?(a=()=>{if(!e)return;const f=e.options.lint.externalFragments!==s;WM(e,s),f&&n.current&&n.current.signal(e,"change",e)},c=[e,s,n],i[2]=n,i[3]=e,i[4]=s,i[5]=a,i[6]=c):(a=i[5],c=i[6]),x.useEffect(a,c)}const uL=/^[a-zA-Z0-9_@(]$/,mS="query",oL="operationName";function sL({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:i,query:r,variables:s,shouldPersistHeaders:a}){const{storage:c}=Fa.getState(),f=c.get(Tc);try{if(!f)throw new Error("Storage for tabs is empty");const h=JSON.parse(f),p=a?n:void 0;if(aL(h)){const g=c0({query:r,variables:s,headers:p});let v=-1;for(let y=0;y<h.tabs.length;y++){const E=h.tabs[y];E.hash=c0({query:E.query,variables:E.variables,headers:E.headers}),E.hash===g&&(v=y)}if(v>=0)h.activeTabIndex=v;else{const y=r?x2(r):null;h.tabs.push({id:bS(),hash:g,title:y||E2,query:r,variables:s,headers:n,operationName:y,response:null}),h.activeTabIndex=h.tabs.length-1}return h}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(i||[{query:r??e,variables:s,headers:n??t}]).map(vS)}}}function aL(e){return e&&typeof e=="object"&&!Array.isArray(e)&&cL(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(lL)}function lL(e){return e&&typeof e=="object"&&!Array.isArray(e)&&b6(e,"id")&&b6(e,"title")&&zl(e,"query")&&zl(e,"variables")&&zl(e,"headers")&&zl(e,"operationName")&&zl(e,"response")}function cL(e,t){return t in e&&typeof e[t]=="number"}function b6(e,t){return t in e&&typeof e[t]=="string"}function zl(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}function fL({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:i}){return x.useCallback(r=>{const s=(e==null?void 0:e.getValue())??null,a=(t==null?void 0:t.getValue())??null,c=(n==null?void 0:n.getValue())??null,f=(e==null?void 0:e.operationName)??null,h=(i==null?void 0:i.getValue())??null;return yS(r,{query:s,variables:a,headers:c,response:h,operationName:f})},[e,t,n,i])}function gS(e,t=!1){return JSON.stringify(e,(n,i)=>n==="hash"||n==="response"||!t&&n==="headers"?null:i)}function dL({shouldPersistHeaders:e}){return x.useCallback(t=>{const{storage:n}=Fa.getState();Na(500,r=>{n.set(Tc,r)})(gS(t,e))},[e])}function hL({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:i,defaultHeaders:r}){return x.useCallback(({query:s,variables:a,headers:c,response:f})=>{e==null||e.setValue(s??""),t==null||t.setValue(a??""),n==null||n.setValue(c??r??""),i==null||i.setValue(f??"")},[n,e,i,t,r])}function vS({query:e=null,variables:t=null,headers:n=null}={}){const i=e?x2(e):null;return{id:bS(),hash:c0({query:e,variables:t,headers:n}),title:i||E2,query:e,variables:t,headers:n,operationName:i,response:null}}function yS(e,t){return{...e,tabs:e.tabs.map((n,i)=>{if(i!==e.activeTabIndex)return n;const r={...n,...t};return{...r,hash:c0(r),title:r.operationName||(r.query?x2(r.query):void 0)||E2}})}}function bS(){const e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function c0(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function x2(e){const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(n==null?void 0:n[2])??null}function pL(){const{storage:e}=Fa.getState(),t=e.get(Tc);if(t){const n=JSON.parse(t);e.set(Tc,JSON.stringify(n,(i,r)=>i==="headers"?null:r))}}const E2="<untitled>",Tc="tabState";function mL(){return Bc([We(()=>import("./hint-5FUhY45V.js"),__vite__mapDeps([28,0,1,23])),We(()=>import("./lint-CEbnMjdF.js"),__vite__mapDeps([29,0,1])),We(()=>import("./mode-Bgsek-oa.js"),__vite__mapDeps([30,0,1,27]))])}const Td=xS;function xS(e,t){const n=ge.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{editorTheme:r,keyMap:s,onClickReference:a,onEdit:c,readOnly:f}=i,h=r===void 0?L0:r,p=s===void 0?I0:s,g=f===void 0?!1:f,v=t||Td;let y;n[2]!==v?(y={nonNull:!0,caller:v},n[2]=v,n[3]=y):y=n[3];const{initialVariables:E,variableEditor:T,setVariableEditor:_}=vn(y),S=Va(),D=t||Td;let A;n[4]!==D?(A={caller:D},n[4]=D,n[5]=A):A=n[5];const N=Hc(A),R=t||Td;let M;n[6]!==R?(M={caller:R},n[6]=R,n[7]=M):M=n[7];const j=Gc(M),$=x.useRef(null);let L,U;n[8]!==h||n[9]!==E||n[10]!==g||n[11]!==_?(L=()=>{let ne;return ne=!0,mL().then(te=>{if(!ne)return;const I=$.current;if(!I)return;const z=te(I,{value:E,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:h,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:g?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:I,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:F0});z.addKeyMap({"Cmd-Space"(){z.showHint({completeSingle:!1,container:I})},"Ctrl-Space"(){z.showHint({completeSingle:!1,container:I})},"Alt-Space"(){z.showHint({completeSingle:!1,container:I})},"Shift-Space"(){z.showHint({completeSingle:!1,container:I})}}),z.on("keyup",gL),_(z)}),()=>{ne=!1}},U=[h,E,g,_],n[8]=h,n[9]=E,n[10]=g,n[11]=_,n[12]=L,n[13]=U):(L=n[12],U=n[13]),x.useEffect(L,U),U0(T,"keyMap",p),cS(T,c,ES,"variables",Td),fS(T,a);let Y;n[14]===Symbol.for("react.memo_cache_sentinel")?(Y=["Cmd-Enter","Ctrl-Enter"],n[14]=Y):Y=n[14],xr(T,Y,S==null?void 0:S.run);let K;n[15]===Symbol.for("react.memo_cache_sentinel")?(K=["Shift-Ctrl-P"],n[15]=K):K=n[15],xr(T,K,j);let se;return n[16]===Symbol.for("react.memo_cache_sentinel")?(se=["Shift-Ctrl-M"],n[16]=se):se=n[16],xr(T,se,N),$}function gL(e,t){const{code:n,key:i,shiftKey:r}=t,s=n.startsWith("Key"),a=!r&&n.startsWith("Digit");(s||a||i==="_"||i==='"')&&e.execCommand("autocomplete")}const ES="variables",x6=`# Welcome to GraphiQL
|
|
282
|
+
#
|
|
283
|
+
# GraphiQL is an in-browser tool for writing, validating, and
|
|
284
|
+
# testing GraphQL queries.
|
|
285
|
+
#
|
|
286
|
+
# Type queries into this side of the screen, and you will see intelligent
|
|
287
|
+
# typeaheads aware of the current GraphQL type schema and live syntax and
|
|
288
|
+
# validation errors highlighted within the text.
|
|
289
|
+
#
|
|
290
|
+
# GraphQL queries typically start with a "{" character. Lines that start
|
|
291
|
+
# with a # are ignored.
|
|
292
|
+
#
|
|
293
|
+
# An example GraphQL query might look like:
|
|
294
|
+
#
|
|
295
|
+
# {
|
|
296
|
+
# field(arg: "value") {
|
|
297
|
+
# subField
|
|
298
|
+
# }
|
|
299
|
+
# }
|
|
300
|
+
#
|
|
301
|
+
# Keyboard shortcuts:
|
|
302
|
+
#
|
|
303
|
+
# Prettify query: Shift-Ctrl-P (or press the prettify button)
|
|
304
|
+
#
|
|
305
|
+
# Merge fragments: Shift-Ctrl-M (or press the merge button)
|
|
306
|
+
#
|
|
307
|
+
# Run Query: Ctrl-Enter (or press the play button)
|
|
308
|
+
#
|
|
309
|
+
# Auto Complete: Ctrl-Space (or just start typing)
|
|
310
|
+
#
|
|
311
|
+
|
|
312
|
+
`,TS=IT("EditorContext"),vL=e=>{const t=ge.c(88),n=ja(),[i,r]=x.useState(null),[s,a]=x.useState(null),[c,f]=x.useState(null),[h,p]=x.useState(null);let g;t[0]!==e.shouldPersistHeaders||t[1]!==n?(g=()=>{const Se=n.get(B1)!==null;return e.shouldPersistHeaders!==!1&&Se?n.get(B1)==="true":!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=g):g=t[2];const[v,y]=x.useState(g);bd(i,e.headers),bd(s,e.query),bd(c,e.response),bd(h,e.variables);let E;t[3]!==v?(E={shouldPersistHeaders:v},t[3]=v,t[4]=E):E=t[4];const T=dL(E);let _;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==v||t[13]!==n||t[14]!==T?(_=()=>{const Se=e.query??n.get(mS)??null,Le=e.variables??n.get(ES)??null,De=e.headers??n.get(Ud)??null,ke=e.response??"",xt=sL({query:Se,variables:Le,headers:De,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||x6,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:v});return T(xt),{query:Se??(xt.activeTabIndex===0?xt.tabs[0].query:null)??"",variables:Le??"",headers:De??e.defaultHeaders??"",response:ke,tabState:xt}},t[5]=e.defaultHeaders,t[6]=e.defaultQuery,t[7]=e.defaultTabs,t[8]=e.headers,t[9]=e.query,t[10]=e.response,t[11]=e.variables,t[12]=v,t[13]=n,t[14]=T,t[15]=_):_=t[15];const[S]=x.useState(_),[D,A]=x.useState(S.tabState);let N;t[16]!==i||t[17]!==n||t[18]!==D?(N=Se=>{if(Se){n.set(Ud,(i==null?void 0:i.getValue())??"");const Le=gS(D,!0);n.set(Tc,Le)}else n.set(Ud,""),pL();y(Se),n.set(B1,Se.toString())},t[16]=i,t[17]=n,t[18]=D,t[19]=N):N=t[19];const R=N,M=x.useRef(void 0);let j,$;t[20]!==e.shouldPersistHeaders||t[21]!==R?(j=()=>{const Se=!!e.shouldPersistHeaders;(M==null?void 0:M.current)!==Se&&(R(Se),M.current=Se)},$=[e.shouldPersistHeaders,R],t[20]=e.shouldPersistHeaders,t[21]=R,t[22]=j,t[23]=$):(j=t[22],$=t[23]),x.useEffect(j,$);let L;t[24]!==i||t[25]!==s||t[26]!==c||t[27]!==h?(L={queryEditor:s,variableEditor:h,headerEditor:i,responseEditor:c},t[24]=i,t[25]=s,t[26]=c,t[27]=h,t[28]=L):L=t[28];const U=fL(L),{onTabChange:Y,defaultHeaders:K,defaultQuery:se,children:ne}=e;let te;t[29]!==K||t[30]!==i||t[31]!==s||t[32]!==c||t[33]!==h?(te={queryEditor:s,variableEditor:h,headerEditor:i,responseEditor:c,defaultHeaders:K},t[29]=K,t[30]=i,t[31]=s,t[32]=c,t[33]=h,t[34]=te):te=t[34];const I=hL(te);let z;t[35]!==K||t[36]!==se||t[37]!==Y||t[38]!==I||t[39]!==T||t[40]!==U?(z=()=>{A(Se=>{const Le=U(Se),De={tabs:[...Le.tabs,vS({headers:K,query:se??x6})],activeTabIndex:Le.tabs.length};return T(De),I(De.tabs[De.activeTabIndex]),Y==null||Y(De),De})},t[35]=K,t[36]=se,t[37]=Y,t[38]=I,t[39]=T,t[40]=U,t[41]=z):z=t[41];const P=z;let V;t[42]!==Y||t[43]!==I||t[44]!==T?(V=Se=>{A(Le=>{const De={...Le,activeTabIndex:Se};return T(De),I(De.tabs[De.activeTabIndex]),Y==null||Y(De),De})},t[42]=Y,t[43]=I,t[44]=T,t[45]=V):V=t[45];const k=V;let H;t[46]!==Y||t[47]!==I||t[48]!==T?(H=Se=>{A(Le=>{const De=Le.tabs[Le.activeTabIndex],ke={tabs:Se,activeTabIndex:Se.indexOf(De)};return T(ke),I(ke.tabs[ke.activeTabIndex]),Y==null||Y(ke),ke})},t[46]=Y,t[47]=I,t[48]=T,t[49]=H):H=t[49];const oe=H;let ie;t[50]!==Y||t[51]!==I||t[52]!==T?(ie=Se=>{A(Le=>{const De={tabs:Le.tabs.filter((ke,xt)=>Se!==xt),activeTabIndex:Math.max(Le.activeTabIndex-1,0)};return T(De),I(De.tabs[De.activeTabIndex]),Y==null||Y(De),De})},t[50]=Y,t[51]=I,t[52]=T,t[53]=ie):ie=t[53];const G=ie;let pe;t[54]!==Y||t[55]!==T?(pe=Se=>{A(Le=>{const De=yS(Le,Se);return T(De),Y==null||Y(De),De})},t[54]=Y,t[55]=T,t[56]=pe):pe=t[56];const de=pe,{onEditOperationName:fe}=e;let re;t[57]!==fe||t[58]!==s||t[59]!==de?(re=Se=>{s&&(yL(s,Se),de({operationName:Se}),fe==null||fe(Se))},t[57]=fe,t[58]=s,t[59]=de,t[60]=re):re=t[60];const me=re;let xe,Te;if(t[61]!==e.externalFragments){if(Te=new Map,Array.isArray(e.externalFragments))for(const Se of e.externalFragments)Te.set(Se.name.value,Se);else if(typeof e.externalFragments=="string")qi(cs(e.externalFragments,{}),{FragmentDefinition(Se){Te.set(Se.name.value,Se)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=Te}else Te=t[62];xe=Te;const st=xe;let _e;t[63]!==e.validationRules?(_e=e.validationRules||[],t[63]=e.validationRules,t[64]=_e):_e=t[64];const gt=_e;let an;t[65]!==P||t[66]!==k||t[67]!==G||t[68]!==st||t[69]!==i||t[70]!==S.headers||t[71]!==S.query||t[72]!==S.response||t[73]!==S.variables||t[74]!==oe||t[75]!==s||t[76]!==c||t[77]!==me||t[78]!==R||t[79]!==v||t[80]!==D||t[81]!==de||t[82]!==gt||t[83]!==h?(an={...D,addTab:P,changeTab:k,moveTab:oe,closeTab:G,updateActiveTabValues:de,headerEditor:i,queryEditor:s,responseEditor:c,variableEditor:h,setHeaderEditor:r,setQueryEditor:a,setResponseEditor:f,setVariableEditor:p,setOperationName:me,initialQuery:S.query,initialVariables:S.variables,initialHeaders:S.headers,initialResponse:S.response,externalFragments:st,validationRules:gt,shouldPersistHeaders:v,setShouldPersistHeaders:R},t[65]=P,t[66]=k,t[67]=G,t[68]=st,t[69]=i,t[70]=S.headers,t[71]=S.query,t[72]=S.response,t[73]=S.variables,t[74]=oe,t[75]=s,t[76]=c,t[77]=me,t[78]=R,t[79]=v,t[80]=D,t[81]=de,t[82]=gt,t[83]=h,t[84]=an):an=t[84];const ln=an;let at;return t[85]!==ne||t[86]!==ln?(at=C.jsx(TS.Provider,{value:ln,children:ne}),t[85]=ne,t[86]=ln,t[87]=at):at=t[87],at};function yL(e,t){e.operationName=t}const vn=FT(TS),B1="shouldPersistHeaders",SS=IT("ExecutionContext"),ug=e=>{const t=ge.c(26),{fetcher:n,getDefaultFieldNames:i,children:r,operationName:s}=e;if(typeof n!="function")throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:ug},t[0]=a):a=t[0];const{externalFragments:c,headerEditor:f,queryEditor:h,responseEditor:p,variableEditor:g,updateActiveTabValues:v}=vn(a);let y;t[1]!==i?(y={getDefaultFieldNames:i,caller:ug},t[1]=i,t[2]=y):y=t[2];const E=dS(y),[T,_]=x.useState(!1),[S,D]=x.useState(null),A=x.useRef(0);let N;t[3]!==S?(N=()=>{S==null||S.unsubscribe(),_(!1),D(null)},t[3]=S,t[4]=N):N=t[4];const R=N;let M;t[5]!==E||t[6]!==c||t[7]!==n||t[8]!==f||t[9]!==s||t[10]!==h||t[11]!==p||t[12]!==R||t[13]!==S||t[14]!==v||t[15]!==g?(M=async()=>{if(!h||!p)return;if(S){R();return}const se=ie=>{p.setValue(ie),v({response:ie})};A.current=A.current+1;const ne=A.current;let te=E()||h.getValue();const I=g==null?void 0:g.getValue();let z;try{z=E6({json:I,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(ie){const G=ie;se(G instanceof Error?G.message:`${G}`);return}const P=f==null?void 0:f.getValue();let V;try{V=E6({json:P,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(ie){const G=ie;se(G instanceof Error?G.message:`${G}`);return}if(c){const ie=h.documentAST?wO(h.documentAST,c):[];ie.length>0&&(te=te+(`
|
|
313
|
+
`+ie.map(xL).join(`
|
|
314
|
+
`)))}se(""),_(!0);const k=s??h.operationName??void 0,H=V??void 0,oe=h.documentAST??void 0;try{const ie={},G=fe=>{if(ne!==A.current)return;let re=Array.isArray(fe)?fe:!1;if(!re&&typeof fe=="object"&&fe!==null&&"hasNext"in fe&&(re=[fe]),re){for(const me of re)_S(ie,me);_(!1),se(Vm(ie))}else{const me=Vm(fe);_(!1),se(me)}},de=await n({query:te,variables:z,operationName:k},{headers:H,documentAST:oe});U5(de)?D(de.subscribe({next(fe){G(fe)},error(fe){_(!1),fe&&se(Jd(fe)),D(null)},complete(){_(!1),D(null)}})):z5(de)?(D({unsubscribe:()=>{var fe,re;return(re=(fe=de[Symbol.asyncIterator]()).return)==null?void 0:re.call(fe)}}),await bL(G,de),_(!1),D(null)):G(de)}catch(ie){const G=ie;_(!1),se(Jd(G)),D(null)}},t[5]=E,t[6]=c,t[7]=n,t[8]=f,t[9]=s,t[10]=h,t[11]=p,t[12]=R,t[13]=S,t[14]=v,t[15]=g,t[16]=M):M=t[16];const j=M,$=!!S,L=s??null;let U;t[17]!==T||t[18]!==j||t[19]!==R||t[20]!==$||t[21]!==L?(U={isFetching:T,isSubscribed:$,operationName:L,run:j,stop:R},t[17]=T,t[18]=j,t[19]=R,t[20]=$,t[21]=L,t[22]=U):U=t[22];const Y=U;let K;return t[23]!==r||t[24]!==Y?(K=C.jsx(SS.Provider,{value:Y,children:r}),t[23]=r,t[24]=Y,t[25]=K):K=t[25],K};async function bL(e,t){for await(const n of t)e(n)}const Va=FT(SS);function E6({json:e,errorMessageParse:t,errorMessageType:n}){let i;try{i=e&&e.trim()!==""?JSON.parse(e):void 0}catch(s){throw new Error(`${t}: ${s instanceof Error?s.message:s}.`)}const r=typeof i=="object"&&i!==null&&!Array.isArray(i);if(i!==void 0&&!r)throw new Error(n);return i}const ql=new WeakMap;function _S(e,t){var n,i,r;let s=["data",...t.path??[]];for(const f of[e,t])if(f.pending){let h=ql.get(e);h===void 0&&(h=new Map,ql.set(e,h));for(const{id:p,path:g}of f.pending)h.set(p,["data",...g])}const{items:a}=t;if(a){const{id:f}=t;if(f){if(s=(n=ql.get(e))==null?void 0:n.get(f),s===void 0)throw new Error("Invalid incremental delivery format.");jO(e,s.join(".")).push(...a)}else{s=["data",...t.path??[]];for(const h of a)O1(e,s.join("."),h),s[s.length-1]++}}const{data:c}=t;if(c){const{id:f}=t;if(f){if(s=(i=ql.get(e))==null?void 0:i.get(f),s===void 0)throw new Error("Invalid incremental delivery format.");const{subPath:h}=t;h!==void 0&&(s=[...s,...h])}O1(e,s.join("."),c,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&O1(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const f of t.incremental)_S(e,f);if(t.completed)for(const{id:f,errors:h}of t.completed)(r=ql.get(e))==null||r.delete(f),h&&(e.errors||(e.errors=[]),e.errors.push(...h))}function xL(e){return ui(e)}const EL=e=>{const t=ge.c(45),{children:n,dangerouslyAssumeSchemaIsValid:i,defaultQuery:r,defaultHeaders:s,defaultTabs:a,externalFragments:c,fetcher:f,getDefaultFieldNames:h,headers:p,inputValueDeprecation:g,introspectionQueryName:v,onEditOperationName:y,onSchemaChange:E,onTabChange:T,onTogglePluginVisibility:_,operationName:S,plugins:D,referencePlugin:A,query:N,response:R,schema:M,schemaDescription:j,shouldPersistHeaders:$,storage:L,validationRules:U,variables:Y,visiblePlugin:K}=e;let se;t[0]!==s||t[1]!==r||t[2]!==a||t[3]!==c||t[4]!==p||t[5]!==y||t[6]!==T||t[7]!==N||t[8]!==R||t[9]!==$||t[10]!==U||t[11]!==Y?(se={defaultQuery:r,defaultHeaders:s,defaultTabs:a,externalFragments:c,headers:p,onEditOperationName:y,onTabChange:T,query:N,response:R,shouldPersistHeaders:$,validationRules:U,variables:Y},t[0]=s,t[1]=r,t[2]=a,t[3]=c,t[4]=p,t[5]=y,t[6]=T,t[7]=N,t[8]=R,t[9]=$,t[10]=U,t[11]=Y,t[12]=se):se=t[12];const ne=se;let te;t[13]!==i||t[14]!==f||t[15]!==g||t[16]!==v||t[17]!==E||t[18]!==M||t[19]!==j?(te={dangerouslyAssumeSchemaIsValid:i,fetcher:f,inputValueDeprecation:g,introspectionQueryName:v,onSchemaChange:E,schema:M,schemaDescription:j},t[13]=i,t[14]=f,t[15]=g,t[16]=v,t[17]=E,t[18]=M,t[19]=j,t[20]=te):te=t[20];const I=te;let z;t[21]!==f||t[22]!==h||t[23]!==S?(z={getDefaultFieldNames:h,fetcher:f,operationName:S},t[21]=f,t[22]=h,t[23]=S,t[24]=z):z=t[24];const P=z;let V;t[25]!==_||t[26]!==D||t[27]!==A||t[28]!==K?(V={onTogglePluginVisibility:_,plugins:D,visiblePlugin:K,referencePlugin:A},t[25]=_,t[26]=D,t[27]=A,t[28]=K,t[29]=V):V=t[29];const k=V;let H;t[30]!==n||t[31]!==k?(H=C.jsx(YO,{...k,children:n}),t[30]=n,t[31]=k,t[32]=H):H=t[32];let oe;t[33]!==P||t[34]!==H?(oe=C.jsx(ug,{...P,children:H}),t[33]=P,t[34]=H,t[35]=oe):oe=t[35];let ie;t[36]!==I||t[37]!==oe?(ie=C.jsx(PT,{...I,children:oe}),t[36]=I,t[37]=oe,t[38]=ie):ie=t[38];let G;t[39]!==ne||t[40]!==ie?(G=C.jsx(vL,{...ne,children:ie}),t[39]=ne,t[40]=ie,t[41]=G):G=t[41];let pe;return t[42]!==L||t[43]!==G?(pe=C.jsx($O,{storage:L,children:G}),t[42]=L,t[43]=G,t[44]=pe):pe=t[44],pe};function TL(e){const t=ge.c(11),n=e===void 0?null:e,i=ja();let r;t[0]!==n||t[1]!==i?(r=()=>{const v=i.get(U1);switch(v){case"light":return"light";case"dark":return"dark";default:return typeof v=="string"&&i.set(U1,""),n}},t[0]=n,t[1]=i,t[2]=r):r=t[2];const[s,a]=x.useState(r);let c,f;t[3]!==s?(c=()=>{document.body.classList.remove("graphiql-light","graphiql-dark"),s&&document.body.classList.add(`graphiql-${s}`)},f=[s],t[3]=s,t[4]=c,t[5]=f):(c=t[4],f=t[5]),x.useEffect(c,f);let h;t[6]!==i?(h=v=>{i.set(U1,v||""),a(v)},t[6]=i,t[7]=h):h=t[7];const p=h;let g;return t[8]!==p||t[9]!==s?(g={theme:s,setTheme:p},t[8]=p,t[9]=s,t[10]=g):g=t[10],g}const U1="theme",SL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),x.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),_L=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),CL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),AL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),wL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M1 1L12.9998 12.9997"}),x.createElement("path",{d:"M13 1L1.00079 13.0003"})),DL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),x.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),NL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),x.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),x.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),OL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),x.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),RL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),x.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),x.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),kL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"})),ML=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),x.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"})),LL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),x.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),IL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"})),FL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),x.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),jL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),x.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),x.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5})),PL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),x.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),VL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"})),$L=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),x.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),BL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),x.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),x.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),x.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),UL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),x.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),zL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"})),qL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"})),HL=({title:e,titleId:t,...n})=>x.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),x.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),x.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),x.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),x.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"})),GL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),x.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),x.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),x.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1})),YL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),x.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2})),QL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"})),XL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"})),ZL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5})),WL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),KL=({title:e,titleId:t,...n})=>x.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),JL=({title:e,titleId:t,...n})=>x.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?x.createElement("title",{id:t},e):null,x.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),x.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),eI=tt(SL),tI=tt(_L),nI=tt(CL),iI=tt(AL),T2=tt(wL),rI=tt(DL),uI=tt(NL),oI=tt(OL),sI=tt(RL),aI=tt(kL),lI=tt(ML),cI=tt(LL),fI=tt(IL),dI=tt(FL),hI=tt(jL),pI=tt(PL),mI=tt(VL),gI=tt($L),vI=tt(BL),yI=tt(UL),bI=tt(zL),xI=tt(qL),EI=tt(HL),TI=tt(GL),SI=tt(YL),_I=tt(QL),CI=tt(XL),AI=tt(ZL),wI=tt(WL),DI=tt(KL),Sd=tt(JL);function tt(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=i=>{const r=ge.c(2);let s;return r[0]!==i?(s=C.jsx(e,{title:t,...i}),r[0]=i,r[1]=s):s=r[1],s};return n.displayName=e.name,n}function CS(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=CS(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function ft(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=CS(e))&&(i&&(i+=" "),i+=t);return i}const og=e=>{const t=ge.c(13);let n,i;t[0]!==e?({isHidden:i,...n}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0,caller:og},t[3]=r):r=t[3];const{headerEditor:s}=vn(r),a=hS(n,og);let c,f;t[4]!==s||t[5]!==i?(c=()=>{i||s==null||s.refresh()},f=[s,i],t[4]=s,t[5]=i,t[6]=c,t[7]=f):(c=t[6],f=t[7]),x.useEffect(c,f);const h=i&&"hidden";let p;t[8]!==h?(p=ft("graphiql-editor",h),t[8]=h,t[9]=p):p=t[9];let g;return t[10]!==a||t[11]!==p?(g=C.jsx("div",{className:p,ref:a}),t[10]=a,t[11]=p,t[12]=g):g=t[12],g},NI=e=>{var t;const n=ge.c(14);let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i={width:null,height:null},n[0]=i):i=n[0];const[r,s]=x.useState(i),[a,c]=x.useState(null),f=x.useRef(null),h=(t=AS(e.token))==null?void 0:t.href;let p,g;n[1]!==h?(p=()=>{if(f.current){if(!h){s({width:null,height:null}),c(null);return}fetch(h,{method:"HEAD"}).then(S=>{c(S.headers.get("Content-Type"))}).catch(()=>{c(null)})}},g=[h],n[1]=h,n[2]=p,n[3]=g):(p=n[2],g=n[3]),x.useEffect(p,g);let v;n[4]!==r.height||n[5]!==r.width||n[6]!==a?(v=r.width!==null&&r.height!==null?C.jsxs("div",{children:[r.width,"x",r.height,a===null?null:" "+a]}):null,n[4]=r.height,n[5]=r.width,n[6]=a,n[7]=v):v=n[7];const y=v;let E;n[8]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{var S,D;s({width:((S=f.current)==null?void 0:S.naturalWidth)??null,height:((D=f.current)==null?void 0:D.naturalHeight)??null})},n[8]=E):E=n[8];let T;n[9]!==h?(T=C.jsx("img",{onLoad:E,ref:f,src:h}),n[9]=h,n[10]=T):T=n[10];let _;return n[11]!==y||n[12]!==T?(_=C.jsxs("div",{children:[T,y]}),n[11]=y,n[12]=T,n[13]=_):_=n[13],_},T6=Object.assign(NI,{shouldRender(e){const t=AS(e);return t?OI(t):!1}});function AS(e){if(e.type!=="string")return;const t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch{}}function OI(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}const wS=e=>{const t=ge.c(2),n=pS(e,wS);let i;return t[0]!==n?(i=C.jsx("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=i):i=t[1],i};function RI(){return Bc([We(()=>import("./foldgutter-xM98xUAG.js").then(e=>e.f),__vite__mapDeps([7,1])),We(()=>import("./brace-fold-C5NBigGY.js").then(e=>e.b),__vite__mapDeps([6,1])),We(()=>import("./dialog-DRbboQHi.js").then(e=>e.d),__vite__mapDeps([13,12,1])),We(()=>import("./search-BwFO2EYo.js").then(e=>e.s),__vite__mapDeps([17,1,10,12])),We(()=>import("./searchcursor-C8teH98l.js").then(e=>e.s),__vite__mapDeps([9,10,1])),We(()=>import("./jump-to-line-BvpEaCtd.js").then(e=>e.j),__vite__mapDeps([11,1,12])),We(()=>import("./sublime-Cj8gH-vM.js").then(e=>e.s),__vite__mapDeps([14,1,10,4])),We(()=>import("./mode-CdWNzEF9.js"),__vite__mapDeps([31,0,1,27])),We(()=>import("./info-addon-DqEXsUQA.js"),__vite__mapDeps([24,0,1]))],{useCommonAddons:!1})}const kI=DS;function DS(e,t){const n=ge.c(17);let i;n[0]!==e?(i=e===void 0?{}:e,n[0]=e,n[1]=i):i=n[1];const{responseTooltip:r,editorTheme:s,keyMap:a}=i,c=s===void 0?L0:s,f=a===void 0?I0:a,{fetchError:h,validationErrors:p}=kr(),g=t||kI;let v;n[2]!==g?(v={nonNull:!0,caller:g},n[2]=g,n[3]=v):v=n[3];const{initialResponse:y,responseEditor:E,setResponseEditor:T}=vn(v),_=x.useRef(null),S=x.useRef(r);let D,A;n[4]!==r?(D=()=>{S.current=r},A=[r],n[4]=r,n[5]=D,n[6]=A):(D=n[5],A=n[6]),x.useEffect(D,A);let N,R;n[7]!==c||n[8]!==y||n[9]!==T?(N=()=>{let $;return $=!0,RI().then(L=>{if(!$)return;const U=document.createElement("div"),Y=B5.createRoot(U);L.registerHelper("info","graphql-results",(ne,te,I,z)=>{const P=S.current,V=[P&&C.jsx(P,{pos:z,token:ne}),T6.shouldRender(ne)&&C.jsx(T6,{token:ne},"image-preview")].filter(MI);if(V.length)return Y.render(V),U;Y.unmount()});const K=_.current;if(!K)return;const se=L(K,{value:y,lineWrapping:!0,readOnly:!0,theme:c,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:F0});T(se)}),()=>{$=!1}},R=[c,y,T],n[7]=c,n[8]=y,n[9]=T,n[10]=N,n[11]=R):(N=n[10],R=n[11]),x.useEffect(N,R),U0(E,"keyMap",f);let M,j;return n[12]!==h||n[13]!==E||n[14]!==p?(M=()=>{h&&(E==null||E.setValue(h)),p.length&&(E==null||E.setValue(Jd(p)))},j=[E,h,p],n[12]=h,n[13]=E,n[14]=p,n[15]=M,n[16]=j):(M=n[15],j=n[16]),x.useEffect(M,j),_}function MI(e){return!!e}const NS=e=>{const t=ge.c(2),n=DS(e,NS);let i;return t[0]!==n?(i=C.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:n}),t[0]=n,t[1]=i):i=t[1],i},sg=e=>{const t=ge.c(13);let n,i;t[0]!==e?({isHidden:i,...n}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0,caller:sg},t[3]=r):r=t[3];const{variableEditor:s}=vn(r),a=xS(n,sg);let c,f;t[4]!==i||t[5]!==s?(c=()=>{i||s==null||s.refresh()},f=[s,i],t[4]=i,t[5]=s,t[6]=c,t[7]=f):(c=t[6],f=t[7]),x.useEffect(c,f);const h=i&&"hidden";let p;t[8]!==h?(p=ft("graphiql-editor",h),t[8]=h,t[9]=p):p=t[9];let g;return t[10]!==a||t[11]!==p?(g=C.jsx("div",{className:p,ref:a}),t[10]=a,t[11]=p,t[12]=g):g=t[12],g};function z1(e){const t=ge.c(31),{defaultSizeRelation:n,direction:i,initiallyHidden:r,onHiddenElementChange:s,sizeThresholdFirst:a,sizeThresholdSecond:c,storageKey:f}=e,h=n===void 0?1:n,p=a===void 0?100:a,g=c===void 0?100:c,v=ja();let y;t[0]!==v||t[1]!==f?(y=Na(500,te=>{f&&v.set(f,te)}),t[0]=v,t[1]=f,t[2]=y):y=t[2];const E=y;let T;t[3]!==r||t[4]!==v||t[5]!==f?(T=()=>{const te=f&&v.get(f);return te===_d||r==="first"?"first":te===Cd||r==="second"?"second":null},t[3]=r,t[4]=v,t[5]=f,t[6]=T):T=t[6];const[_,S]=x.useState(T);let D;t[7]!==_||t[8]!==s?(D=te=>{te!==_&&(S(te),s==null||s(te))},t[7]=_,t[8]=s,t[9]=D):D=t[9];const A=D,N=x.useRef(null),R=x.useRef(null),M=x.useRef(null),j=x.useRef(`${h}`);let $;t[10]!==v||t[11]!==f?($=()=>{const te=f&&v.get(f)||j.current;N.current&&(N.current.style.flex=te===_d||te===Cd?j.current:te),M.current&&(M.current.style.flex="1")},t[10]=v,t[11]=f,t[12]=$):$=t[12];let L;t[13]!==i||t[14]!==v||t[15]!==f?(L=[i,v,f],t[13]=i,t[14]=v,t[15]=f,t[16]=L):L=t[16],x.useEffect($,L);let U,Y;t[17]!==_||t[18]!==v||t[19]!==f?(Y=()=>{const te=z=>{const P=z==="first"?N.current:M.current;if(P&&(P.style.left="-1000px",P.style.position="absolute",P.style.opacity="0",P.style.height="500px",P.style.width="500px",N.current)){const V=parseFloat(N.current.style.flex);(!Number.isFinite(V)||V<1)&&(N.current.style.flex="1")}},I=z=>{const P=z==="first"?N.current:M.current;if(P&&(P.style.width="",P.style.height="",P.style.opacity="",P.style.position="",P.style.left="",f)){const V=v.get(f);N.current&&V!==_d&&V!==Cd&&(N.current.style.flex=V||j.current)}};_==="first"?te("first"):I("first"),_==="second"?te("second"):I("second")},U=[_,v,f],t[17]=_,t[18]=v,t[19]=f,t[20]=U,t[21]=Y):(U=t[20],Y=t[21]),x.useEffect(Y,U);let K,se;t[22]!==i||t[23]!==A||t[24]!==p||t[25]!==g||t[26]!==E?(K=()=>{if(!R.current||!N.current||!M.current)return;const te=R.current,I=N.current,z=I.parentElement,P=i==="horizontal"?"clientX":"clientY",V=i==="horizontal"?"left":"top",k=i==="horizontal"?"right":"bottom",H=i==="horizontal"?"clientWidth":"clientHeight",oe=function(pe){if(!(pe.target===pe.currentTarget))return;pe.preventDefault();const fe=pe[P]-te.getBoundingClientRect()[V],re=function(Te){if(Te.buttons===0)return me();const st=Te[P]-z.getBoundingClientRect()[V]-fe,_e=z.getBoundingClientRect()[k]-Te[P]+fe-te[H];if(st<p)A("first"),E(_d);else if(_e<g)A("second"),E(Cd);else{A(null);const gt=`${st/_e}`;I.style.flex=gt,E(gt)}};function me(){document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",me)}document.addEventListener("mousemove",re),document.addEventListener("mouseup",me)};te.addEventListener("mousedown",oe);const ie=function(){N.current&&(N.current.style.flex=j.current),E(j.current),A(null)};return te.addEventListener("dblclick",ie),()=>{te.removeEventListener("mousedown",oe),te.removeEventListener("dblclick",ie)}},se=[i,A,p,g,E],t[22]=i,t[23]=A,t[24]=p,t[25]=g,t[26]=E,t[27]=K,t[28]=se):(K=t[27],se=t[28]),x.useEffect(K,se);let ne;return t[29]!==_?(ne={dragBarRef:R,hiddenElement:_,firstRef:N,setHiddenElement:S,secondRef:M},t[29]=_,t[30]=ne):ne=t[30],ne}const _d="hide-first",Cd="hide-second",Qt=x.forwardRef((e,t)=>{const n=ge.c(6);let i;n[0]!==e.className?(i=ft("graphiql-un-styled",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=C.jsx("button",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});Qt.displayName="UnStyledButton";const Ui=x.forwardRef((e,t)=>{const n=ge.c(7);let i;n[0]!==e.className||n[1]!==e.state?(i=ft("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=i):i=n[2];let r;return n[3]!==e||n[4]!==t||n[5]!==i?(r=C.jsx("button",{...e,ref:t,className:i}),n[3]=e,n[4]=t,n[5]=i,n[6]=r):r=n[6],r});Ui.displayName="Button";const ag=x.forwardRef((e,t)=>{const n=ge.c(6);let i;n[0]!==e.className?(i=ft("graphiql-button-group",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=C.jsx("div",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});ag.displayName="ButtonGroup";function Me(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function S6(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function z0(...e){return t=>{let n=!1;const i=e.map(r=>{const s=S6(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<i.length;r++){const s=i[r];typeof s=="function"?s():S6(e[r],null)}}}}function Zt(...e){return x.useCallback(z0(...e),e)}function LI(e,t){const n=x.createContext(t),i=s=>{const{children:a,...c}=s,f=x.useMemo(()=>c,Object.values(c));return C.jsx(n.Provider,{value:f,children:a})};i.displayName=e+"Provider";function r(s){const a=x.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,r]}function hs(e,t=[]){let n=[];function i(s,a){const c=x.createContext(a),f=n.length;n=[...n,a];const h=g=>{var S;const{scope:v,children:y,...E}=g,T=((S=v==null?void 0:v[e])==null?void 0:S[f])||c,_=x.useMemo(()=>E,Object.values(E));return C.jsx(T.Provider,{value:_,children:y})};h.displayName=s+"Provider";function p(g,v){var T;const y=((T=v==null?void 0:v[e])==null?void 0:T[f])||c,E=x.useContext(y);if(E)return E;if(a!==void 0)return a;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[h,p]}const r=()=>{const s=n.map(a=>x.createContext(a));return function(c){const f=(c==null?void 0:c[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return r.scopeName=e,[i,II(r,...t)]}function II(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=i.reduce((c,{useScope:f,scopeName:h})=>{const g=f(s)[`__scope${h}`];return{...c,...g}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var co=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},FI=Jg[" useId ".trim().toString()]||(()=>{}),jI=0;function Jo(e){const[t,n]=x.useState(FI());return co(()=>{n(i=>i??String(jI++))},[e]),e||(t?`radix-${t}`:"")}var PI=Jg[" useInsertionEffect ".trim().toString()]||co;function q0({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[r,s,a]=VI({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:r;{const p=x.useRef(e!==void 0);x.useEffect(()=>{const g=p.current;g!==c&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=c},[c,i])}const h=x.useCallback(p=>{var g;if(c){const v=$I(p)?p(e):p;v!==e&&((g=a.current)==null||g.call(a,v))}else s(p)},[c,e,s,a]);return[f,h]}function VI({defaultProp:e,onChange:t}){const[n,i]=x.useState(e),r=x.useRef(n),s=x.useRef(t);return PI(()=>{s.current=t},[t]),x.useEffect(()=>{var a;r.current!==n&&((a=s.current)==null||a.call(s,n),r.current=n)},[n,r]),[n,i,s]}function $I(e){return typeof e=="function"}var Sn=$5();const BI=ls(Sn);function Sc(e){const t=UI(e),n=x.forwardRef((i,r)=>{const{children:s,...a}=i,c=x.Children.toArray(s),f=c.find(qI);if(f){const h=f.props.children,p=c.map(g=>g===f?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:g);return C.jsx(t,{...a,ref:r,children:x.isValidElement(h)?x.cloneElement(h,void 0,p):null})}return C.jsx(t,{...a,ref:r,children:s})});return n.displayName=`${e}.Slot`,n}function UI(e){const t=x.forwardRef((n,i)=>{const{children:r,...s}=n;if(x.isValidElement(r)){const a=GI(r),c=HI(s,r.props);return r.type!==x.Fragment&&(c.ref=i?z0(i,a):a),x.cloneElement(r,c)}return x.Children.count(r)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var OS=Symbol("radix.slottable");function zI(e){const t=({children:n})=>C.jsx(C.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=OS,t}function qI(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===OS}function HI(e,t){const n={...t};for(const i in t){const r=e[i],s=t[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...c)=>{const f=s(...c);return r(...c),f}:r&&(n[i]=r):i==="style"?n[i]={...r,...s}:i==="className"&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function GI(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var YI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nt=YI.reduce((e,t)=>{const n=Sc(`Primitive.${t}`),i=x.forwardRef((r,s)=>{const{asChild:a,...c}=r,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(f,{...c,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function RS(e,t){e&&Sn.flushSync(()=>e.dispatchEvent(t))}function hu(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function QI(e,t=globalThis==null?void 0:globalThis.document){const n=hu(e);x.useEffect(()=>{const i=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var XI="DismissableLayer",lg="dismissableLayer.update",ZI="dismissableLayer.pointerDownOutside",WI="dismissableLayer.focusOutside",_6,kS=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),H0=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:s,onInteractOutside:a,onDismiss:c,...f}=e,h=x.useContext(kS),[p,g]=x.useState(null),v=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=x.useState({}),E=Zt(t,j=>g(j)),T=Array.from(h.layers),[_]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),S=T.indexOf(_),D=p?T.indexOf(p):-1,A=h.layersWithOutsidePointerEventsDisabled.size>0,N=D>=S,R=eF(j=>{const $=j.target,L=[...h.branches].some(U=>U.contains($));!N||L||(r==null||r(j),a==null||a(j),j.defaultPrevented||c==null||c())},v),M=tF(j=>{const $=j.target;[...h.branches].some(U=>U.contains($))||(s==null||s(j),a==null||a(j),j.defaultPrevented||c==null||c())},v);return QI(j=>{D===h.layers.size-1&&(i==null||i(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},v),x.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(_6=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),C6(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=_6)}},[p,v,n,h]),x.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),C6())},[p,h]),x.useEffect(()=>{const j=()=>y({});return document.addEventListener(lg,j),()=>document.removeEventListener(lg,j)},[]),C.jsx(Nt.div,{...f,ref:E,style:{pointerEvents:A?N?"auto":"none":void 0,...e.style},onFocusCapture:Me(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Me(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Me(e.onPointerDownCapture,R.onPointerDownCapture)})});H0.displayName=XI;var KI="DismissableLayerBranch",JI=x.forwardRef((e,t)=>{const n=x.useContext(kS),i=x.useRef(null),r=Zt(t,i);return x.useEffect(()=>{const s=i.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),C.jsx(Nt.div,{...e,ref:r})});JI.displayName=KI;function eF(e,t=globalThis==null?void 0:globalThis.document){const n=hu(e),i=x.useRef(!1),r=x.useRef(()=>{});return x.useEffect(()=>{const s=c=>{if(c.target&&!i.current){let f=function(){MS(ZI,n,h,{discrete:!0})};const h={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=f,t.addEventListener("click",r.current,{once:!0})):f()}else t.removeEventListener("click",r.current);i.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function tF(e,t=globalThis==null?void 0:globalThis.document){const n=hu(e),i=x.useRef(!1);return x.useEffect(()=>{const r=s=>{s.target&&!i.current&&MS(WI,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function C6(){const e=new CustomEvent(lg);document.dispatchEvent(e)}function MS(e,t,n,{discrete:i}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),i?RS(r,s):r.dispatchEvent(s)}var q1="focusScope.autoFocusOnMount",H1="focusScope.autoFocusOnUnmount",A6={bubbles:!1,cancelable:!0},nF="FocusScope",S2=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[c,f]=x.useState(null),h=hu(r),p=hu(s),g=x.useRef(null),v=Zt(t,T=>f(T)),y=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(i){let T=function(A){if(y.paused||!c)return;const N=A.target;c.contains(N)?g.current=N:io(g.current,{select:!0})},_=function(A){if(y.paused||!c)return;const N=A.relatedTarget;N!==null&&(c.contains(N)||io(g.current,{select:!0}))},S=function(A){if(document.activeElement===document.body)for(const R of A)R.removedNodes.length>0&&io(c)};document.addEventListener("focusin",T),document.addEventListener("focusout",_);const D=new MutationObserver(S);return c&&D.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",_),D.disconnect()}}},[i,c,y.paused]),x.useEffect(()=>{if(c){D6.add(y);const T=document.activeElement;if(!c.contains(T)){const S=new CustomEvent(q1,A6);c.addEventListener(q1,h),c.dispatchEvent(S),S.defaultPrevented||(iF(aF(LS(c)),{select:!0}),document.activeElement===T&&io(c))}return()=>{c.removeEventListener(q1,h),setTimeout(()=>{const S=new CustomEvent(H1,A6);c.addEventListener(H1,p),c.dispatchEvent(S),S.defaultPrevented||io(T??document.body,{select:!0}),c.removeEventListener(H1,p),D6.remove(y)},0)}}},[c,h,p,y]);const E=x.useCallback(T=>{if(!n&&!i||y.paused)return;const _=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,S=document.activeElement;if(_&&S){const D=T.currentTarget,[A,N]=rF(D);A&&N?!T.shiftKey&&S===N?(T.preventDefault(),n&&io(A,{select:!0})):T.shiftKey&&S===A&&(T.preventDefault(),n&&io(N,{select:!0})):S===D&&T.preventDefault()}},[n,i,y.paused]);return C.jsx(Nt.div,{tabIndex:-1,...a,ref:v,onKeyDown:E})});S2.displayName=nF;function iF(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(io(i,{select:t}),document.activeElement!==n)return}function rF(e){const t=LS(e),n=w6(t,e),i=w6(t.reverse(),e);return[n,i]}function LS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function w6(e,t){for(const n of e)if(!uF(n,{upTo:t}))return n}function uF(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oF(e){return e instanceof HTMLInputElement&&"select"in e}function io(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&oF(e)&&t&&e.select()}}var D6=sF();function sF(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=N6(e,t),e.unshift(t)},remove(t){var n;e=N6(e,t),(n=e[0])==null||n.resume()}}}function N6(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function aF(e){return e.filter(t=>t.tagName!=="A")}var lF="Portal",G0=x.forwardRef((e,t)=>{var c;const{container:n,...i}=e,[r,s]=x.useState(!1);co(()=>s(!0),[]);const a=n||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return a?BI.createPortal(C.jsx(Nt.div,{...i,ref:t}),a):null});G0.displayName=lF;function cF(e,t){return x.useReducer((n,i)=>t[n][i]??n,e)}var Ir=e=>{const{present:t,children:n}=e,i=fF(t),r=typeof n=="function"?n({present:i.isPresent}):x.Children.only(n),s=Zt(i.ref,dF(r));return typeof n=="function"||i.isPresent?x.cloneElement(r,{ref:s}):null};Ir.displayName="Presence";function fF(e){const[t,n]=x.useState(),i=x.useRef(null),r=x.useRef(e),s=x.useRef("none"),a=e?"mounted":"unmounted",[c,f]=cF(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const h=Ad(i.current);s.current=c==="mounted"?h:"none"},[c]),co(()=>{const h=i.current,p=r.current;if(p!==e){const v=s.current,y=Ad(h);e?f("MOUNT"):y==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(p&&v!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,f]),co(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,g=y=>{const T=Ad(i.current).includes(CSS.escape(y.animationName));if(y.target===t&&T&&(f("ANIMATION_END"),!r.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},v=y=>{y.target===t&&(s.current=Ad(i.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:x.useCallback(h=>{i.current=h?getComputedStyle(h):null,n(h)},[])}}function Ad(e){return(e==null?void 0:e.animationName)||"none"}function dF(e){var i,r;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var G1=0;function IS(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??O6()),document.body.insertAdjacentElement("beforeend",e[1]??O6()),G1++,()=>{G1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),G1--}},[])}function O6(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vr=function(){return vr=Object.assign||function(t){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},vr.apply(this,arguments)};function FS(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function hF(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var zd="right-scroll-bar-position",qd="width-before-scroll-bar",pF="with-scroll-bars-hidden",mF="--removed-body-scroll-bar-size";function Y1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function gF(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var r=n.value;r!==i&&(n.value=i,n.callback(i,r))}}}})[0];return n.callback=t,n.facade}var vF=typeof window<"u"?x.useLayoutEffect:x.useEffect,R6=new WeakMap;function yF(e,t){var n=gF(null,function(i){return e.forEach(function(r){return Y1(r,i)})});return vF(function(){var i=R6.get(n);if(i){var r=new Set(i),s=new Set(e),a=n.current;r.forEach(function(c){s.has(c)||Y1(c,null)}),s.forEach(function(c){r.has(c)||Y1(c,a)})}R6.set(n,e)},[e]),n}function bF(e){return e}function xF(e,t){t===void 0&&(t=bF);var n=[],i=!1,r={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,i);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(i=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){i=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var f=function(){var p=a;a=[],p.forEach(s)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){a.push(p),h()},filter:function(p){return a=a.filter(p),n}}}};return r}function EF(e){e===void 0&&(e={});var t=xF(null);return t.options=vr({async:!0,ssr:!1},e),t}var jS=function(e){var t=e.sideCar,n=FS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return x.createElement(i,vr({},n))};jS.isSideCarExport=!0;function TF(e,t){return e.useMedium(t),jS}var PS=EF(),Q1=function(){},Y0=x.forwardRef(function(e,t){var n=x.useRef(null),i=x.useState({onScrollCapture:Q1,onWheelCapture:Q1,onTouchMoveCapture:Q1}),r=i[0],s=i[1],a=e.forwardProps,c=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,g=e.shards,v=e.sideCar,y=e.noRelative,E=e.noIsolation,T=e.inert,_=e.allowPinchZoom,S=e.as,D=S===void 0?"div":S,A=e.gapMode,N=FS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,M=yF([n,t]),j=vr(vr({},N),r);return x.createElement(x.Fragment,null,p&&x.createElement(R,{sideCar:PS,removeScrollBar:h,shards:g,noRelative:y,noIsolation:E,inert:T,setCallbacks:s,allowPinchZoom:!!_,lockRef:n,gapMode:A}),a?x.cloneElement(x.Children.only(c),vr(vr({},j),{ref:M})):x.createElement(D,vr({},j,{className:f,ref:M}),c))});Y0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Y0.classNames={fullWidth:qd,zeroRight:zd};var SF=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _F(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=SF();return t&&e.setAttribute("nonce",t),e}function CF(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function AF(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wF=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_F())&&(CF(t,n),AF(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},DF=function(){var e=wF();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},VS=function(){var e=DF(),t=function(n){var i=n.styles,r=n.dynamic;return e(i,r),null};return t},NF={left:0,top:0,right:0,gap:0},X1=function(e){return parseInt(e||"",10)||0},OF=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[X1(n),X1(i),X1(r)]},RF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NF;var t=OF(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},kF=VS(),ba="data-scroll-locked",MF=function(e,t,n,i){var r=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
315
|
+
.`.concat(pF,` {
|
|
316
|
+
overflow: hidden `).concat(i,`;
|
|
317
|
+
padding-right: `).concat(c,"px ").concat(i,`;
|
|
318
|
+
}
|
|
319
|
+
body[`).concat(ba,`] {
|
|
320
|
+
overflow: hidden `).concat(i,`;
|
|
321
|
+
overscroll-behavior: contain;
|
|
322
|
+
`).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
|
|
323
|
+
padding-left: `.concat(r,`px;
|
|
324
|
+
padding-top: `).concat(s,`px;
|
|
325
|
+
padding-right: `).concat(a,`px;
|
|
326
|
+
margin-left:0;
|
|
327
|
+
margin-top:0;
|
|
328
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
329
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.`).concat(zd,` {
|
|
333
|
+
right: `).concat(c,"px ").concat(i,`;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.`).concat(qd,` {
|
|
337
|
+
margin-right: `).concat(c,"px ").concat(i,`;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.`).concat(zd," .").concat(zd,` {
|
|
341
|
+
right: 0 `).concat(i,`;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.`).concat(qd," .").concat(qd,` {
|
|
345
|
+
margin-right: 0 `).concat(i,`;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
body[`).concat(ba,`] {
|
|
349
|
+
`).concat(mF,": ").concat(c,`px;
|
|
350
|
+
}
|
|
351
|
+
`)},k6=function(){var e=parseInt(document.body.getAttribute(ba)||"0",10);return isFinite(e)?e:0},LF=function(){x.useEffect(function(){return document.body.setAttribute(ba,(k6()+1).toString()),function(){var e=k6()-1;e<=0?document.body.removeAttribute(ba):document.body.setAttribute(ba,e.toString())}},[])},IF=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,r=i===void 0?"margin":i;LF();var s=x.useMemo(function(){return RF(r)},[r]);return x.createElement(kF,{styles:MF(s,!t,r,n?"":"!important")})},cg=!1;if(typeof window<"u")try{var wd=Object.defineProperty({},"passive",{get:function(){return cg=!0,!0}});window.addEventListener("test",wd,wd),window.removeEventListener("test",wd,wd)}catch{cg=!1}var ta=cg?{passive:!1}:!1,FF=function(e){return e.tagName==="TEXTAREA"},$S=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!FF(e)&&n[t]==="visible")},jF=function(e){return $S(e,"overflowY")},PF=function(e){return $S(e,"overflowX")},M6=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var r=BS(e,i);if(r){var s=US(e,i),a=s[1],c=s[2];if(a>c)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},VF=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},$F=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},BS=function(e,t){return e==="v"?jF(t):PF(t)},US=function(e,t){return e==="v"?VF(t):$F(t)},BF=function(e,t){return e==="h"&&t==="rtl"?-1:1},UF=function(e,t,n,i,r){var s=BF(e,window.getComputedStyle(t).direction),a=s*i,c=n.target,f=t.contains(c),h=!1,p=a>0,g=0,v=0;do{if(!c)break;var y=US(e,c),E=y[0],T=y[1],_=y[2],S=T-_-s*E;(E||S)&&BS(e,c)&&(g+=S,v+=E);var D=c.parentNode;c=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(p&&Math.abs(g)<1||!p&&Math.abs(v)<1)&&(h=!0),h},Dd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L6=function(e){return[e.deltaX,e.deltaY]},I6=function(e){return e&&"current"in e?e.current:e},zF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},qF=function(e){return`
|
|
352
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
353
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
354
|
+
`)},HF=0,na=[];function GF(e){var t=x.useRef([]),n=x.useRef([0,0]),i=x.useRef(),r=x.useState(HF++)[0],s=x.useState(VS)[0],a=x.useRef(e);x.useEffect(function(){a.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var T=hF([e.lockRef.current],(e.shards||[]).map(I6),!0).filter(Boolean);return T.forEach(function(_){return _.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),T.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=x.useCallback(function(T,_){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!a.current.allowPinchZoom;var S=Dd(T),D=n.current,A="deltaX"in T?T.deltaX:D[0]-S[0],N="deltaY"in T?T.deltaY:D[1]-S[1],R,M=T.target,j=Math.abs(A)>Math.abs(N)?"h":"v";if("touches"in T&&j==="h"&&M.type==="range")return!1;var $=M6(j,M);if(!$)return!0;if($?R=j:(R=j==="v"?"h":"v",$=M6(j,M)),!$)return!1;if(!i.current&&"changedTouches"in T&&(A||N)&&(i.current=R),!R)return!0;var L=i.current||R;return UF(L,_,T,L==="h"?A:N)},[]),f=x.useCallback(function(T){var _=T;if(!(!na.length||na[na.length-1]!==s)){var S="deltaY"in _?L6(_):Dd(_),D=t.current.filter(function(R){return R.name===_.type&&(R.target===_.target||_.target===R.shadowParent)&&zF(R.delta,S)})[0];if(D&&D.should){_.cancelable&&_.preventDefault();return}if(!D){var A=(a.current.shards||[]).map(I6).filter(Boolean).filter(function(R){return R.contains(_.target)}),N=A.length>0?c(_,A[0]):!a.current.noIsolation;N&&_.cancelable&&_.preventDefault()}}},[]),h=x.useCallback(function(T,_,S,D){var A={name:T,delta:_,target:S,should:D,shadowParent:YF(S)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(N){return N!==A})},1)},[]),p=x.useCallback(function(T){n.current=Dd(T),i.current=void 0},[]),g=x.useCallback(function(T){h(T.type,L6(T),T.target,c(T,e.lockRef.current))},[]),v=x.useCallback(function(T){h(T.type,Dd(T),T.target,c(T,e.lockRef.current))},[]);x.useEffect(function(){return na.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",f,ta),document.addEventListener("touchmove",f,ta),document.addEventListener("touchstart",p,ta),function(){na=na.filter(function(T){return T!==s}),document.removeEventListener("wheel",f,ta),document.removeEventListener("touchmove",f,ta),document.removeEventListener("touchstart",p,ta)}},[]);var y=e.removeScrollBar,E=e.inert;return x.createElement(x.Fragment,null,E?x.createElement(s,{styles:qF(r)}):null,y?x.createElement(IF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function YF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QF=TF(PS,GF);var _2=x.forwardRef(function(e,t){return x.createElement(Y0,vr({},e,{ref:t,sideCar:QF}))});_2.classNames=Y0.classNames;var XF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ia=new WeakMap,Nd=new WeakMap,Od={},Z1=0,zS=function(e){return e&&(e.host||zS(e.parentNode))},ZF=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=zS(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},WF=function(e,t,n,i){var r=ZF(t,Array.isArray(e)?e:[e]);Od[n]||(Od[n]=new WeakMap);var s=Od[n],a=[],c=new Set,f=new Set(r),h=function(g){!g||c.has(g)||(c.add(g),h(g.parentNode))};r.forEach(h);var p=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))p(v);else try{var y=v.getAttribute(i),E=y!==null&&y!=="false",T=(ia.get(v)||0)+1,_=(s.get(v)||0)+1;ia.set(v,T),s.set(v,_),a.push(v),T===1&&E&&Nd.set(v,!0),_===1&&v.setAttribute(n,"true"),E||v.setAttribute(i,"true")}catch(S){console.error("aria-hidden: cannot operate on ",v,S)}})};return p(t),c.clear(),Z1++,function(){a.forEach(function(g){var v=ia.get(g)-1,y=s.get(g)-1;ia.set(g,v),s.set(g,y),v||(Nd.has(g)||g.removeAttribute(i),Nd.delete(g)),y||g.removeAttribute(n)}),Z1--,Z1||(ia=new WeakMap,ia=new WeakMap,Nd=new WeakMap,Od={})}},qS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),r=XF(e);return r?(i.push.apply(i,Array.from(r.querySelectorAll("[aria-live], script"))),WF(i,r,n,"aria-hidden")):function(){return null}},Q0="Dialog",[HS]=hs(Q0),[KF,Xi]=HS(Q0),GS=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:r,onOpenChange:s,modal:a=!0}=e,c=x.useRef(null),f=x.useRef(null),[h,p]=q0({prop:i,defaultProp:r??!1,onChange:s,caller:Q0});return C.jsx(KF,{scope:t,triggerRef:c,contentRef:f,contentId:Jo(),titleId:Jo(),descriptionId:Jo(),open:h,onOpenChange:p,onOpenToggle:x.useCallback(()=>p(g=>!g),[p]),modal:a,children:n})};GS.displayName=Q0;var YS="DialogTrigger",QS=x.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Xi(YS,n),s=Zt(t,r.triggerRef);return C.jsx(Nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":w2(r.open),...i,ref:s,onClick:Me(e.onClick,r.onOpenToggle)})});QS.displayName=YS;var C2="DialogPortal",[JF,XS]=HS(C2,{forceMount:void 0}),ZS=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:r}=e,s=Xi(C2,t);return C.jsx(JF,{scope:t,forceMount:n,children:x.Children.map(i,a=>C.jsx(Ir,{present:n||s.open,children:C.jsx(G0,{asChild:!0,container:r,children:a})}))})};ZS.displayName=C2;var f0="DialogOverlay",WS=x.forwardRef((e,t)=>{const n=XS(f0,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,s=Xi(f0,e.__scopeDialog);return s.modal?C.jsx(Ir,{present:i||s.open,children:C.jsx(tj,{...r,ref:t})}):null});WS.displayName=f0;var ej=Sc("DialogOverlay.RemoveScroll"),tj=x.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Xi(f0,n);return C.jsx(_2,{as:ej,allowPinchZoom:!0,shards:[r.contentRef],children:C.jsx(Nt.div,{"data-state":w2(r.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),us="DialogContent",KS=x.forwardRef((e,t)=>{const n=XS(us,e.__scopeDialog),{forceMount:i=n.forceMount,...r}=e,s=Xi(us,e.__scopeDialog);return C.jsx(Ir,{present:i||s.open,children:s.modal?C.jsx(nj,{...r,ref:t}):C.jsx(ij,{...r,ref:t})})});KS.displayName=us;var nj=x.forwardRef((e,t)=>{const n=Xi(us,e.__scopeDialog),i=x.useRef(null),r=Zt(t,n.contentRef,i);return x.useEffect(()=>{const s=i.current;if(s)return qS(s)},[]),C.jsx(JS,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Me(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0;(a.button===2||c)&&s.preventDefault()}),onFocusOutside:Me(e.onFocusOutside,s=>s.preventDefault())})}),ij=x.forwardRef((e,t)=>{const n=Xi(us,e.__scopeDialog),i=x.useRef(!1),r=x.useRef(!1);return C.jsx(JS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var a,c;(a=e.onCloseAutoFocus)==null||a.call(e,s),s.defaultPrevented||(i.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),i.current=!1,r.current=!1},onInteractOutside:s=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const a=s.target;((h=n.triggerRef.current)==null?void 0:h.contains(a))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),JS=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:r,onCloseAutoFocus:s,...a}=e,c=Xi(us,n),f=x.useRef(null),h=Zt(t,f);return IS(),C.jsxs(C.Fragment,{children:[C.jsx(S2,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:r,onUnmountAutoFocus:s,children:C.jsx(H0,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":w2(c.open),...a,ref:h,onDismiss:()=>c.onOpenChange(!1)})}),C.jsxs(C.Fragment,{children:[C.jsx(rj,{titleId:c.titleId}),C.jsx(oj,{contentRef:f,descriptionId:c.descriptionId})]})]})}),A2="DialogTitle",e_=x.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Xi(A2,n);return C.jsx(Nt.h2,{id:r.titleId,...i,ref:t})});e_.displayName=A2;var t_="DialogDescription",n_=x.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Xi(t_,n);return C.jsx(Nt.p,{id:r.descriptionId,...i,ref:t})});n_.displayName=t_;var i_="DialogClose",r_=x.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,r=Xi(i_,n);return C.jsx(Nt.button,{type:"button",...i,ref:t,onClick:Me(e.onClick,()=>r.onOpenChange(!1))})});r_.displayName=i_;function w2(e){return e?"open":"closed"}var u_="DialogTitleWarning",[ZX,o_]=LI(u_,{contentName:us,titleName:A2,docsSlug:"dialog"}),rj=({titleId:e})=>{const t=o_(u_),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
355
|
+
|
|
356
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
357
|
+
|
|
358
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},uj="DialogDescriptionWarning",oj=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${o_(uj).contentName}}.`;return x.useEffect(()=>{var s;const r=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},sj=GS,aj=QS,lj=ZS,cj=WS,fj=KS,dj=e_,hj=n_,pj=r_,mj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),gj="VisuallyHidden",s_=x.forwardRef((e,t)=>C.jsx(Nt.span,{...e,ref:t,style:{...mj,...e.style}}));s_.displayName=gj;var a_=s_;const l_=x.forwardRef((e,t)=>{const n=ge.c(8);let i;n[0]!==e.className?(i=ft("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=i):i=n[1];let r,s;n[2]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(a_,{children:"Close dialog"}),s=C.jsx(T2,{}),n[2]=r,n[3]=s):(r=n[2],s=n[3]);let a;return n[4]!==e||n[5]!==t||n[6]!==i?(a=C.jsx(pj,{asChild:!0,children:C.jsxs(Qt,{...e,ref:t,type:"button",className:i,children:[r,s]})}),n[4]=e,n[5]=t,n[6]=i,n[7]=a):a=n[7],a});l_.displayName="Dialog.Close";const vj=e=>{const t=ge.c(9);let n,i;t[0]!==e?({children:n,...i}=e,t[0]=e,t[1]=n,t[2]=i):(n=t[1],i=t[2]);let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(cj,{className:"graphiql-dialog-overlay"}),t[3]=r):r=t[3];let s;t[4]!==n?(s=C.jsxs(lj,{children:[r,C.jsx(fj,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=s):s=t[5];let a;return t[6]!==i||t[7]!==s?(a=C.jsx(sj,{...i,children:s}),t[6]=i,t[7]=s,t[8]=a):a=t[8],a},ra=Object.assign(vj,{Close:l_,Title:dj,Trigger:aj,Description:hj});function c_(e){const t=e+"CollectionProvider",[n,i]=hs(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=T=>{const{scope:_,children:S}=T,D=Re.useRef(null),A=Re.useRef(new Map).current;return C.jsx(r,{scope:_,itemMap:A,collectionRef:D,children:S})};a.displayName=t;const c=e+"CollectionSlot",f=Sc(c),h=Re.forwardRef((T,_)=>{const{scope:S,children:D}=T,A=s(c,S),N=Zt(_,A.collectionRef);return C.jsx(f,{ref:N,children:D})});h.displayName=c;const p=e+"CollectionItemSlot",g="data-radix-collection-item",v=Sc(p),y=Re.forwardRef((T,_)=>{const{scope:S,children:D,...A}=T,N=Re.useRef(null),R=Zt(_,N),M=s(p,S);return Re.useEffect(()=>(M.itemMap.set(N,{ref:N,...A}),()=>void M.itemMap.delete(N))),C.jsx(v,{[g]:"",ref:R,children:D})});y.displayName=p;function E(T){const _=s(e+"CollectionConsumer",T);return Re.useCallback(()=>{const D=_.collectionRef.current;if(!D)return[];const A=Array.from(D.querySelectorAll(`[${g}]`));return Array.from(_.itemMap.values()).sort((M,j)=>A.indexOf(M.ref.current)-A.indexOf(j.ref.current))},[_.collectionRef,_.itemMap])}return[{Provider:a,Slot:h,ItemSlot:y},E,i]}var yj=x.createContext(void 0);function f_(e){const t=x.useContext(yj);return e||t||"ltr"}const bj=["top","right","bottom","left"],pu=Math.min,Tn=Math.max,_c=Math.round,Rd=Math.floor,Tr=e=>({x:e,y:e}),xj={left:"right",right:"left",bottom:"top",top:"bottom"},Ej={start:"end",end:"start"};function fg(e,t,n){return Tn(e,pu(t,n))}function wr(e,t){return typeof e=="function"?e(t):e}function mu(e){return e.split("-")[0]}function $a(e){return e.split("-")[1]}function D2(e){return e==="x"?"y":"x"}function N2(e){return e==="y"?"height":"width"}const Tj=new Set(["top","bottom"]);function Er(e){return Tj.has(mu(e))?"y":"x"}function O2(e){return D2(Er(e))}function Sj(e,t,n){n===void 0&&(n=!1);const i=$a(e),r=O2(e),s=N2(r);let a=r==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=d0(a)),[a,d0(a)]}function _j(e){const t=d0(e);return[dg(e),t,dg(t)]}function dg(e){return e.replace(/start|end/g,t=>Ej[t])}const F6=["left","right"],j6=["right","left"],Cj=["top","bottom"],Aj=["bottom","top"];function wj(e,t,n){switch(e){case"top":case"bottom":return n?t?j6:F6:t?F6:j6;case"left":case"right":return t?Cj:Aj;default:return[]}}function Dj(e,t,n,i){const r=$a(e);let s=wj(mu(e),n==="start",i);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(dg)))),s}function d0(e){return e.replace(/left|right|bottom|top/g,t=>xj[t])}function Nj(e){return{top:0,right:0,bottom:0,left:0,...e}}function d_(e){return typeof e!="number"?Nj(e):{top:e,right:e,bottom:e,left:e}}function h0(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function P6(e,t,n){let{reference:i,floating:r}=e;const s=Er(t),a=O2(t),c=N2(a),f=mu(t),h=s==="y",p=i.x+i.width/2-r.width/2,g=i.y+i.height/2-r.height/2,v=i[c]/2-r[c]/2;let y;switch(f){case"top":y={x:p,y:i.y-r.height};break;case"bottom":y={x:p,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:g};break;case"left":y={x:i.x-r.width,y:g};break;default:y={x:i.x,y:i.y}}switch($a(t)){case"start":y[a]-=v*(n&&h?-1:1);break;case"end":y[a]+=v*(n&&h?-1:1);break}return y}const Oj=async(e,t,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),f=await(a.isRTL==null?void 0:a.isRTL(t));let h=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:p,y:g}=P6(h,i,f),v=i,y={},E=0;for(let T=0;T<c.length;T++){const{name:_,fn:S}=c[T],{x:D,y:A,data:N,reset:R}=await S({x:p,y:g,initialPlacement:i,placement:v,strategy:r,middlewareData:y,rects:h,platform:a,elements:{reference:e,floating:t}});p=D??p,g=A??g,y={...y,[_]:{...y[_],...N}},R&&E<=50&&(E++,typeof R=="object"&&(R.placement&&(v=R.placement),R.rects&&(h=R.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:p,y:g}=P6(h,v,f)),T=-1)}return{x:p,y:g,placement:v,strategy:r,middlewareData:y}};async function Oa(e,t){var n;t===void 0&&(t={});const{x:i,y:r,platform:s,rects:a,elements:c,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:v=!1,padding:y=0}=wr(t,e),E=d_(y),_=c[v?g==="floating"?"reference":"floating":g],S=h0(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:f})),D=g==="floating"?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),N=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},R=h0(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:D,offsetParent:A,strategy:f}):D);return{top:(S.top-R.top+E.top)/N.y,bottom:(R.bottom-S.bottom+E.bottom)/N.y,left:(S.left-R.left+E.left)/N.x,right:(R.right-S.right+E.right)/N.x}}const Rj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:r,rects:s,platform:a,elements:c,middlewareData:f}=t,{element:h,padding:p=0}=wr(e,t)||{};if(h==null)return{};const g=d_(p),v={x:n,y:i},y=O2(r),E=N2(y),T=await a.getDimensions(h),_=y==="y",S=_?"top":"left",D=_?"bottom":"right",A=_?"clientHeight":"clientWidth",N=s.reference[E]+s.reference[y]-v[y]-s.floating[E],R=v[y]-s.reference[y],M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(h));let j=M?M[A]:0;(!j||!await(a.isElement==null?void 0:a.isElement(M)))&&(j=c.floating[A]||s.floating[E]);const $=N/2-R/2,L=j/2-T[E]/2-1,U=pu(g[S],L),Y=pu(g[D],L),K=U,se=j-T[E]-Y,ne=j/2-T[E]/2+$,te=fg(K,ne,se),I=!f.arrow&&$a(r)!=null&&ne!==te&&s.reference[E]/2-(ne<K?U:Y)-T[E]/2<0,z=I?ne<K?ne-K:ne-se:0;return{[y]:v[y]+z,data:{[y]:te,centerOffset:ne-te-z,...I&&{alignmentOffset:z}},reset:I}}}),kj=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:s,rects:a,initialPlacement:c,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,..._}=wr(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=mu(r),D=Er(c),A=mu(c)===c,N=await(f.isRTL==null?void 0:f.isRTL(h.floating)),R=v||(A||!T?[d0(c)]:_j(c)),M=E!=="none";!v&&M&&R.push(...Dj(c,T,E,N));const j=[c,...R],$=await Oa(t,_),L=[];let U=((i=s.flip)==null?void 0:i.overflows)||[];if(p&&L.push($[S]),g){const ne=Sj(r,a,N);L.push($[ne[0]],$[ne[1]])}if(U=[...U,{placement:r,overflows:L}],!L.every(ne=>ne<=0)){var Y,K;const ne=(((Y=s.flip)==null?void 0:Y.index)||0)+1,te=j[ne];if(te&&(!(g==="alignment"?D!==Er(te):!1)||U.every(P=>Er(P.placement)===D?P.overflows[0]>0:!0)))return{data:{index:ne,overflows:U},reset:{placement:te}};let I=(K=U.filter(z=>z.overflows[0]<=0).sort((z,P)=>z.overflows[1]-P.overflows[1])[0])==null?void 0:K.placement;if(!I)switch(y){case"bestFit":{var se;const z=(se=U.filter(P=>{if(M){const V=Er(P.placement);return V===D||V==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(V=>V>0).reduce((V,k)=>V+k,0)]).sort((P,V)=>P[1]-V[1])[0])==null?void 0:se[0];z&&(I=z);break}case"initialPlacement":I=c;break}if(r!==I)return{reset:{placement:I}}}return{}}}};function V6(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $6(e){return bj.some(t=>e[t]>=0)}const Mj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...r}=wr(e,t);switch(i){case"referenceHidden":{const s=await Oa(t,{...r,elementContext:"reference"}),a=V6(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:$6(a)}}}case"escaped":{const s=await Oa(t,{...r,altBoundary:!0}),a=V6(s,n.floating);return{data:{escapedOffsets:a,escaped:$6(a)}}}default:return{}}}}},h_=new Set(["left","top"]);async function Lj(e,t){const{placement:n,platform:i,elements:r}=e,s=await(i.isRTL==null?void 0:i.isRTL(r.floating)),a=mu(n),c=$a(n),f=Er(n)==="y",h=h_.has(a)?-1:1,p=s&&f?-1:1,g=wr(t,e);let{mainAxis:v,crossAxis:y,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof E=="number"&&(y=c==="end"?E*-1:E),f?{x:y*p,y:v*h}:{x:v*h,y:y*p}}const Ij=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:r,y:s,placement:a,middlewareData:c}=t,f=await Lj(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:r+f.x,y:s+f.y,data:{...f,placement:a}}}}},Fj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:_=>{let{x:S,y:D}=_;return{x:S,y:D}}},...f}=wr(e,t),h={x:n,y:i},p=await Oa(t,f),g=Er(mu(r)),v=D2(g);let y=h[v],E=h[g];if(s){const _=v==="y"?"top":"left",S=v==="y"?"bottom":"right",D=y+p[_],A=y-p[S];y=fg(D,y,A)}if(a){const _=g==="y"?"top":"left",S=g==="y"?"bottom":"right",D=E+p[_],A=E-p[S];E=fg(D,E,A)}const T=c.fn({...t,[v]:y,[g]:E});return{...T,data:{x:T.x-n,y:T.y-i,enabled:{[v]:s,[g]:a}}}}}},jj=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:r,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:f=!0,crossAxis:h=!0}=wr(e,t),p={x:n,y:i},g=Er(r),v=D2(g);let y=p[v],E=p[g];const T=wr(c,t),_=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(f){const A=v==="y"?"height":"width",N=s.reference[v]-s.floating[A]+_.mainAxis,R=s.reference[v]+s.reference[A]-_.mainAxis;y<N?y=N:y>R&&(y=R)}if(h){var S,D;const A=v==="y"?"width":"height",N=h_.has(mu(r)),R=s.reference[g]-s.floating[A]+(N&&((S=a.offset)==null?void 0:S[g])||0)+(N?0:_.crossAxis),M=s.reference[g]+s.reference[A]+(N?0:((D=a.offset)==null?void 0:D[g])||0)-(N?_.crossAxis:0);E<R?E=R:E>M&&(E=M)}return{[v]:y,[g]:E}}}},Pj=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:s,platform:a,elements:c}=t,{apply:f=()=>{},...h}=wr(e,t),p=await Oa(t,h),g=mu(r),v=$a(r),y=Er(r)==="y",{width:E,height:T}=s.floating;let _,S;g==="top"||g==="bottom"?(_=g,S=v===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(S=g,_=v==="end"?"top":"bottom");const D=T-p.top-p.bottom,A=E-p.left-p.right,N=pu(T-p[_],D),R=pu(E-p[S],A),M=!t.middlewareData.shift;let j=N,$=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=A),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(j=D),M&&!v){const U=Tn(p.left,0),Y=Tn(p.right,0),K=Tn(p.top,0),se=Tn(p.bottom,0);y?$=E-2*(U!==0||Y!==0?U+Y:Tn(p.left,p.right)):j=T-2*(K!==0||se!==0?K+se:Tn(p.top,p.bottom))}await f({...t,availableWidth:$,availableHeight:j});const L=await a.getDimensions(c.floating);return E!==L.width||T!==L.height?{reset:{rects:!0}}:{}}}};function X0(){return typeof window<"u"}function Ba(e){return p_(e)?(e.nodeName||"").toLowerCase():"#document"}function ii(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fr(e){var t;return(t=(p_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function p_(e){return X0()?e instanceof Node||e instanceof ii(e).Node:!1}function On(e){return X0()?e instanceof Element||e instanceof ii(e).Element:!1}function Dr(e){return X0()?e instanceof HTMLElement||e instanceof ii(e).HTMLElement:!1}function B6(e){return!X0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ii(e).ShadowRoot}const Vj=new Set(["inline","contents"]);function Yc(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Hi(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!Vj.has(r)}const $j=new Set(["table","td","th"]);function Bj(e){return $j.has(Ba(e))}const Uj=[":popover-open",":modal"];function Z0(e){return Uj.some(t=>{try{return e.matches(t)}catch{return!1}})}const zj=["transform","translate","scale","rotate","perspective"],qj=["transform","translate","scale","rotate","perspective","filter"],Hj=["paint","layout","strict","content"];function R2(e){const t=k2(),n=On(e)?Hi(e):e;return zj.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||qj.some(i=>(n.willChange||"").includes(i))||Hj.some(i=>(n.contain||"").includes(i))}function Gj(e){let t=fo(e);for(;Dr(t)&&!Ra(t);){if(R2(t))return t;if(Z0(t))return null;t=fo(t)}return null}function k2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Yj=new Set(["html","body","#document"]);function Ra(e){return Yj.has(Ba(e))}function Hi(e){return ii(e).getComputedStyle(e)}function W0(e){return On(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fo(e){if(Ba(e)==="html")return e;const t=e.assignedSlot||e.parentNode||B6(e)&&e.host||Fr(e);return B6(t)?t.host:t}function m_(e){const t=fo(e);return Ra(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dr(t)&&Yc(t)?t:m_(t)}function Cc(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=m_(e),s=r===((i=e.ownerDocument)==null?void 0:i.body),a=ii(r);if(s){const c=hg(a);return t.concat(a,a.visualViewport||[],Yc(r)?r:[],c&&n?Cc(c):[])}return t.concat(r,Cc(r,[],n))}function hg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function g_(e){const t=Hi(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Dr(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:i,c=_c(n)!==s||_c(i)!==a;return c&&(n=s,i=a),{width:n,height:i,$:c}}function M2(e){return On(e)?e:e.contextElement}function xa(e){const t=M2(e);if(!Dr(t))return Tr(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:s}=g_(t);let a=(s?_c(n.width):n.width)/i,c=(s?_c(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const Qj=Tr(0);function v_(e){const t=ii(e);return!k2()||!t.visualViewport?Qj:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xj(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ii(e)?!1:t}function os(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=M2(e);let a=Tr(1);t&&(i?On(i)&&(a=xa(i)):a=xa(e));const c=Xj(s,n,i)?v_(s):Tr(0);let f=(r.left+c.x)/a.x,h=(r.top+c.y)/a.y,p=r.width/a.x,g=r.height/a.y;if(s){const v=ii(s),y=i&&On(i)?ii(i):i;let E=v,T=hg(E);for(;T&&i&&y!==E;){const _=xa(T),S=T.getBoundingClientRect(),D=Hi(T),A=S.left+(T.clientLeft+parseFloat(D.paddingLeft))*_.x,N=S.top+(T.clientTop+parseFloat(D.paddingTop))*_.y;f*=_.x,h*=_.y,p*=_.x,g*=_.y,f+=A,h+=N,E=ii(T),T=hg(E)}}return h0({width:p,height:g,x:f,y:h})}function K0(e,t){const n=W0(e).scrollLeft;return t?t.left+n:os(Fr(e)).left+n}function y_(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-K0(e,n),r=n.top+t.scrollTop;return{x:i,y:r}}function Zj(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e;const s=r==="fixed",a=Fr(i),c=t?Z0(t.floating):!1;if(i===a||c&&s)return n;let f={scrollLeft:0,scrollTop:0},h=Tr(1);const p=Tr(0),g=Dr(i);if((g||!g&&!s)&&((Ba(i)!=="body"||Yc(a))&&(f=W0(i)),Dr(i))){const y=os(i);h=xa(i),p.x=y.x+i.clientLeft,p.y=y.y+i.clientTop}const v=a&&!g&&!s?y_(a,f):Tr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+p.x+v.x,y:n.y*h.y-f.scrollTop*h.y+p.y+v.y}}function Wj(e){return Array.from(e.getClientRects())}function Kj(e){const t=Fr(e),n=W0(e),i=e.ownerDocument.body,r=Tn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Tn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+K0(e);const c=-n.scrollTop;return Hi(i).direction==="rtl"&&(a+=Tn(t.clientWidth,i.clientWidth)-r),{width:r,height:s,x:a,y:c}}const U6=25;function Jj(e,t){const n=ii(e),i=Fr(e),r=n.visualViewport;let s=i.clientWidth,a=i.clientHeight,c=0,f=0;if(r){s=r.width,a=r.height;const p=k2();(!p||p&&t==="fixed")&&(c=r.offsetLeft,f=r.offsetTop)}const h=K0(i);if(h<=0){const p=i.ownerDocument,g=p.body,v=getComputedStyle(g),y=p.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,E=Math.abs(i.clientWidth-g.clientWidth-y);E<=U6&&(s-=E)}else h<=U6&&(s+=h);return{width:s,height:a,x:c,y:f}}const eP=new Set(["absolute","fixed"]);function tP(e,t){const n=os(e,!0,t==="fixed"),i=n.top+e.clientTop,r=n.left+e.clientLeft,s=Dr(e)?xa(e):Tr(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,f=r*s.x,h=i*s.y;return{width:a,height:c,x:f,y:h}}function z6(e,t,n){let i;if(t==="viewport")i=Jj(e,n);else if(t==="document")i=Kj(Fr(e));else if(On(t))i=tP(t,n);else{const r=v_(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return h0(i)}function b_(e,t){const n=fo(e);return n===t||!On(n)||Ra(n)?!1:Hi(n).position==="fixed"||b_(n,t)}function nP(e,t){const n=t.get(e);if(n)return n;let i=Cc(e,[],!1).filter(c=>On(c)&&Ba(c)!=="body"),r=null;const s=Hi(e).position==="fixed";let a=s?fo(e):e;for(;On(a)&&!Ra(a);){const c=Hi(a),f=R2(a);!f&&c.position==="fixed"&&(r=null),(s?!f&&!r:!f&&c.position==="static"&&!!r&&eP.has(r.position)||Yc(a)&&!f&&b_(e,a))?i=i.filter(p=>p!==a):r=c,a=fo(a)}return t.set(e,i),i}function iP(e){let{element:t,boundary:n,rootBoundary:i,strategy:r}=e;const a=[...n==="clippingAncestors"?Z0(t)?[]:nP(t,this._c):[].concat(n),i],c=a[0],f=a.reduce((h,p)=>{const g=z6(t,p,r);return h.top=Tn(g.top,h.top),h.right=pu(g.right,h.right),h.bottom=pu(g.bottom,h.bottom),h.left=Tn(g.left,h.left),h},z6(t,c,r));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function rP(e){const{width:t,height:n}=g_(e);return{width:t,height:n}}function uP(e,t,n){const i=Dr(t),r=Fr(t),s=n==="fixed",a=os(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const f=Tr(0);function h(){f.x=K0(r)}if(i||!i&&!s)if((Ba(t)!=="body"||Yc(r))&&(c=W0(t)),i){const y=os(t,!0,s,t);f.x=y.x+t.clientLeft,f.y=y.y+t.clientTop}else r&&h();s&&!i&&r&&h();const p=r&&!i&&!s?y_(r,c):Tr(0),g=a.left+c.scrollLeft-f.x-p.x,v=a.top+c.scrollTop-f.y-p.y;return{x:g,y:v,width:a.width,height:a.height}}function W1(e){return Hi(e).position==="static"}function q6(e,t){if(!Dr(e)||Hi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fr(e)===n&&(n=n.ownerDocument.body),n}function x_(e,t){const n=ii(e);if(Z0(e))return n;if(!Dr(e)){let r=fo(e);for(;r&&!Ra(r);){if(On(r)&&!W1(r))return r;r=fo(r)}return n}let i=q6(e,t);for(;i&&Bj(i)&&W1(i);)i=q6(i,t);return i&&Ra(i)&&W1(i)&&!R2(i)?n:i||Gj(e)||n}const oP=async function(e){const t=this.getOffsetParent||x_,n=this.getDimensions,i=await n(e.floating);return{reference:uP(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function sP(e){return Hi(e).direction==="rtl"}const aP={convertOffsetParentRelativeRectToViewportRelativeRect:Zj,getDocumentElement:Fr,getClippingRect:iP,getOffsetParent:x_,getElementRects:oP,getClientRects:Wj,getDimensions:rP,getScale:xa,isElement:On,isRTL:sP};function E_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lP(e,t){let n=null,i;const r=Fr(e);function s(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function a(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),s();const h=e.getBoundingClientRect(),{left:p,top:g,width:v,height:y}=h;if(c||t(),!v||!y)return;const E=Rd(g),T=Rd(r.clientWidth-(p+v)),_=Rd(r.clientHeight-(g+y)),S=Rd(p),A={rootMargin:-E+"px "+-T+"px "+-_+"px "+-S+"px",threshold:Tn(0,pu(1,f))||1};let N=!0;function R(M){const j=M[0].intersectionRatio;if(j!==f){if(!N)return a();j?a(!1,j):i=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!E_(h,e.getBoundingClientRect())&&a(),N=!1}try{n=new IntersectionObserver(R,{...A,root:r.ownerDocument})}catch{n=new IntersectionObserver(R,A)}n.observe(e)}return a(!0),s}function T_(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,h=M2(e),p=r||s?[...h?Cc(h):[],...Cc(t)]:[];p.forEach(S=>{r&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const g=h&&c?lP(h,n):null;let v=-1,y=null;a&&(y=new ResizeObserver(S=>{let[D]=S;D&&D.target===h&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),n()}),h&&!f&&y.observe(h),y.observe(t));let E,T=f?os(e):null;f&&_();function _(){const S=os(e);T&&!E_(T,S)&&n(),T=S,E=requestAnimationFrame(_)}return n(),()=>{var S;p.forEach(D=>{r&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),g==null||g(),(S=y)==null||S.disconnect(),y=null,f&&cancelAnimationFrame(E)}}const K1=Oa,cP=Ij,fP=Fj,dP=kj,hP=Pj,pP=Mj,H6=Rj,mP=jj,gP=(e,t,n)=>{const i=new Map,r={platform:aP,...n},s={...r.platform,_c:i};return Oj(e,t,{...r,platform:s})};var vP=typeof document<"u",yP=function(){},Hd=vP?x.useLayoutEffect:yP;function p0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!p0(e[i],t[i]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,r[i]))return!1;for(i=n;i--!==0;){const s=r[i];if(!(s==="_owner"&&e.$$typeof)&&!p0(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function S_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function G6(e,t){const n=S_(e);return Math.round(t*n)/n}function J1(e){const t=x.useRef(e);return Hd(()=>{t.current=e}),t}function __(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:f,open:h}=e,[p,g]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,y]=x.useState(i);p0(v,i)||y(i);const[E,T]=x.useState(null),[_,S]=x.useState(null),D=x.useCallback(P=>{P!==M.current&&(M.current=P,T(P))},[]),A=x.useCallback(P=>{P!==j.current&&(j.current=P,S(P))},[]),N=s||E,R=a||_,M=x.useRef(null),j=x.useRef(null),$=x.useRef(p),L=f!=null,U=J1(f),Y=J1(r),K=J1(h),se=x.useCallback(()=>{if(!M.current||!j.current)return;const P={placement:t,strategy:n,middleware:v};Y.current&&(P.platform=Y.current),gP(M.current,j.current,P).then(V=>{const k={...V,isPositioned:K.current!==!1};ne.current&&!p0($.current,k)&&($.current=k,Sn.flushSync(()=>{g(k)}))})},[v,t,n,Y,K]);Hd(()=>{h===!1&&$.current.isPositioned&&($.current.isPositioned=!1,g(P=>({...P,isPositioned:!1})))},[h]);const ne=x.useRef(!1);Hd(()=>(ne.current=!0,()=>{ne.current=!1}),[]),Hd(()=>{if(N&&(M.current=N),R&&(j.current=R),N&&R){if(U.current)return U.current(N,R,se);se()}},[N,R,se,U,L]);const te=x.useMemo(()=>({reference:M,floating:j,setReference:D,setFloating:A}),[D,A]),I=x.useMemo(()=>({reference:N,floating:R}),[N,R]),z=x.useMemo(()=>{const P={position:n,left:0,top:0};if(!I.floating)return P;const V=G6(I.floating,p.x),k=G6(I.floating,p.y);return c?{...P,transform:"translate("+V+"px, "+k+"px)",...S_(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:k}},[n,c,I.floating,p.x,p.y]);return x.useMemo(()=>({...p,update:se,refs:te,elements:I,floatingStyles:z}),[p,se,te,I,z])}const bP=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:r}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?H6({element:i.current,padding:r}).fn(n):{}:i?H6({element:i,padding:r}).fn(n):{}}}},L2=(e,t)=>({...cP(e),options:[e,t]}),C_=(e,t)=>({...fP(e),options:[e,t]}),xP=(e,t)=>({...mP(e),options:[e,t]}),A_=(e,t)=>({...dP(e),options:[e,t]}),w_=(e,t)=>({...hP(e),options:[e,t]}),EP=(e,t)=>({...pP(e),options:[e,t]}),TP=(e,t)=>({...bP(e),options:[e,t]});var SP="Arrow",D_=x.forwardRef((e,t)=>{const{children:n,width:i=10,height:r=5,...s}=e;return C.jsx(Nt.svg,{...s,ref:t,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});D_.displayName=SP;var _P=D_;function CP(e){const[t,n]=x.useState(void 0);return co(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,c;if("borderBoxSize"in s){const f=s.borderBoxSize,h=Array.isArray(f)?f[0]:f;a=h.inlineSize,c=h.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var I2="Popper",[N_,J0]=hs(I2),[AP,O_]=N_(I2),R_=e=>{const{__scopePopper:t,children:n}=e,[i,r]=x.useState(null);return C.jsx(AP,{scope:t,anchor:i,onAnchorChange:r,children:n})};R_.displayName=I2;var k_="PopperAnchor",M_=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...r}=e,s=O_(k_,n),a=x.useRef(null),c=Zt(t,a),f=x.useRef(null);return x.useEffect(()=>{const h=f.current;f.current=(i==null?void 0:i.current)||a.current,h!==f.current&&s.onAnchorChange(f.current)}),i?null:C.jsx(Nt.div,{...r,ref:c})});M_.displayName=k_;var F2="PopperContent",[wP,DP]=N_(F2),L_=x.forwardRef((e,t)=>{var fe,re,me,xe,Te,st;const{__scopePopper:n,side:i="bottom",sideOffset:r=0,align:s="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:y="optimized",onPlaced:E,...T}=e,_=O_(F2,n),[S,D]=x.useState(null),A=Zt(t,_e=>D(_e)),[N,R]=x.useState(null),M=CP(N),j=(M==null?void 0:M.width)??0,$=(M==null?void 0:M.height)??0,L=i+(s!=="center"?"-"+s:""),U=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},Y=Array.isArray(h)?h:[h],K=Y.length>0,se={padding:U,boundary:Y.filter(OP),altBoundary:K},{refs:ne,floatingStyles:te,placement:I,isPositioned:z,middlewareData:P}=__({strategy:"fixed",placement:L,whileElementsMounted:(..._e)=>T_(..._e,{animationFrame:y==="always"}),elements:{reference:_.anchor},middleware:[L2({mainAxis:r+$,alignmentAxis:a}),f&&C_({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?xP():void 0,...se}),f&&A_({...se}),w_({...se,apply:({elements:_e,rects:gt,availableWidth:an,availableHeight:ln})=>{const{width:at,height:Se}=gt.reference,Le=_e.floating.style;Le.setProperty("--radix-popper-available-width",`${an}px`),Le.setProperty("--radix-popper-available-height",`${ln}px`),Le.setProperty("--radix-popper-anchor-width",`${at}px`),Le.setProperty("--radix-popper-anchor-height",`${Se}px`)}}),N&&TP({element:N,padding:c}),RP({arrowWidth:j,arrowHeight:$}),v&&EP({strategy:"referenceHidden",...se})]}),[V,k]=j_(I),H=hu(E);co(()=>{z&&(H==null||H())},[z,H]);const oe=(fe=P.arrow)==null?void 0:fe.x,ie=(re=P.arrow)==null?void 0:re.y,G=((me=P.arrow)==null?void 0:me.centerOffset)!==0,[pe,de]=x.useState();return co(()=>{S&&de(window.getComputedStyle(S).zIndex)},[S]),C.jsx("div",{ref:ne.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:z?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(xe=P.transformOrigin)==null?void 0:xe.x,(Te=P.transformOrigin)==null?void 0:Te.y].join(" "),...((st=P.hide)==null?void 0:st.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(wP,{scope:n,placedSide:V,onArrowChange:R,arrowX:oe,arrowY:ie,shouldHideArrow:G,children:C.jsx(Nt.div,{"data-side":V,"data-align":k,...T,ref:A,style:{...T.style,animation:z?void 0:"none"}})})})});L_.displayName=F2;var I_="PopperArrow",NP={top:"bottom",right:"left",bottom:"top",left:"right"},F_=x.forwardRef(function(t,n){const{__scopePopper:i,...r}=t,s=DP(I_,i),a=NP[s.placedSide];return C.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:C.jsx(_P,{...r,ref:n,style:{...r.style,display:"block"}})})});F_.displayName=I_;function OP(e){return e!==null}var RP=e=>({name:"transformOrigin",options:e,fn(t){var _,S,D;const{placement:n,rects:i,middlewareData:r}=t,a=((_=r.arrow)==null?void 0:_.centerOffset)!==0,c=a?0:e.arrowWidth,f=a?0:e.arrowHeight,[h,p]=j_(n),g={start:"0%",center:"50%",end:"100%"}[p],v=(((S=r.arrow)==null?void 0:S.x)??0)+c/2,y=(((D=r.arrow)==null?void 0:D.y)??0)+f/2;let E="",T="";return h==="bottom"?(E=a?g:`${v}px`,T=`${-f}px`):h==="top"?(E=a?g:`${v}px`,T=`${i.floating.height+f}px`):h==="right"?(E=`${-f}px`,T=a?g:`${y}px`):h==="left"&&(E=`${i.floating.width+f}px`,T=a?g:`${y}px`),{data:{x:E,y:T}}}});function j_(e){const[t,n="center"]=e.split("-");return[t,n]}var P_=R_,V_=M_,$_=L_,B_=F_,em="rovingFocusGroup.onEntryFocus",kP={bubbles:!1,cancelable:!0},Qc="RovingFocusGroup",[pg,U_,MP]=c_(Qc),[LP,z_]=hs(Qc,[MP]),[IP,FP]=LP(Qc),q_=x.forwardRef((e,t)=>C.jsx(pg.Provider,{scope:e.__scopeRovingFocusGroup,children:C.jsx(pg.Slot,{scope:e.__scopeRovingFocusGroup,children:C.jsx(jP,{...e,ref:t})})}));q_.displayName=Qc;var jP=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...g}=e,v=x.useRef(null),y=Zt(t,v),E=f_(s),[T,_]=q0({prop:a,defaultProp:c??null,onChange:f,caller:Qc}),[S,D]=x.useState(!1),A=hu(h),N=U_(n),R=x.useRef(!1),[M,j]=x.useState(0);return x.useEffect(()=>{const $=v.current;if($)return $.addEventListener(em,A),()=>$.removeEventListener(em,A)},[A]),C.jsx(IP,{scope:n,orientation:i,dir:E,loop:r,currentTabStopId:T,onItemFocus:x.useCallback($=>_($),[_]),onItemShiftTab:x.useCallback(()=>D(!0),[]),onFocusableItemAdd:x.useCallback(()=>j($=>$+1),[]),onFocusableItemRemove:x.useCallback(()=>j($=>$-1),[]),children:C.jsx(Nt.div,{tabIndex:S||M===0?-1:0,"data-orientation":i,...g,ref:y,style:{outline:"none",...e.style},onMouseDown:Me(e.onMouseDown,()=>{R.current=!0}),onFocus:Me(e.onFocus,$=>{const L=!R.current;if($.target===$.currentTarget&&L&&!S){const U=new CustomEvent(em,kP);if($.currentTarget.dispatchEvent(U),!U.defaultPrevented){const Y=N().filter(I=>I.focusable),K=Y.find(I=>I.active),se=Y.find(I=>I.id===T),te=[K,se,...Y].filter(Boolean).map(I=>I.ref.current);Y_(te,p)}}R.current=!1}),onBlur:Me(e.onBlur,()=>D(!1))})})}),H_="RovingFocusGroupItem",G_=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:r=!1,tabStopId:s,children:a,...c}=e,f=Jo(),h=s||f,p=FP(H_,n),g=p.currentTabStopId===h,v=U_(n),{onFocusableItemAdd:y,onFocusableItemRemove:E,currentTabStopId:T}=p;return x.useEffect(()=>{if(i)return y(),()=>E()},[i,y,E]),C.jsx(pg.ItemSlot,{scope:n,id:h,focusable:i,active:r,children:C.jsx(Nt.span,{tabIndex:g?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:Me(e.onMouseDown,_=>{i?p.onItemFocus(h):_.preventDefault()}),onFocus:Me(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:Me(e.onKeyDown,_=>{if(_.key==="Tab"&&_.shiftKey){p.onItemShiftTab();return}if(_.target!==_.currentTarget)return;const S=$P(_,p.orientation,p.dir);if(S!==void 0){if(_.metaKey||_.ctrlKey||_.altKey||_.shiftKey)return;_.preventDefault();let A=v().filter(N=>N.focusable).map(N=>N.ref.current);if(S==="last")A.reverse();else if(S==="prev"||S==="next"){S==="prev"&&A.reverse();const N=A.indexOf(_.currentTarget);A=p.loop?BP(A,N+1):A.slice(N+1)}setTimeout(()=>Y_(A))}}),children:typeof a=="function"?a({isCurrentTabStop:g,hasTabStop:T!=null}):a})})});G_.displayName=H_;var PP={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function VP(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function $P(e,t,n){const i=VP(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return PP[i]}function Y_(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function BP(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var UP=q_,zP=G_,mg=["Enter"," "],qP=["ArrowDown","PageUp","Home"],Q_=["ArrowUp","PageDown","End"],HP=[...qP,...Q_],GP={ltr:[...mg,"ArrowRight"],rtl:[...mg,"ArrowLeft"]},YP={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Xc="Menu",[Ac,QP,XP]=c_(Xc),[ps,X_]=hs(Xc,[XP,J0,z_]),eh=J0(),Z_=z_(),[ZP,ms]=ps(Xc),[WP,Zc]=ps(Xc),W_=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:r,onOpenChange:s,modal:a=!0}=e,c=eh(t),[f,h]=x.useState(null),p=x.useRef(!1),g=hu(s),v=f_(r);return x.useEffect(()=>{const y=()=>{p.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>p.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),C.jsx(P_,{...c,children:C.jsx(ZP,{scope:t,open:n,onOpenChange:g,content:f,onContentChange:h,children:C.jsx(WP,{scope:t,onClose:x.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:p,dir:v,modal:a,children:i})})})};W_.displayName=Xc;var KP="MenuAnchor",j2=x.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,r=eh(n);return C.jsx(V_,{...r,...i,ref:t})});j2.displayName=KP;var P2="MenuPortal",[JP,K_]=ps(P2,{forceMount:void 0}),J_=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:r}=e,s=ms(P2,t);return C.jsx(JP,{scope:t,forceMount:n,children:C.jsx(Ir,{present:n||s.open,children:C.jsx(G0,{asChild:!0,container:r,children:i})})})};J_.displayName=P2;var _i="MenuContent",[eV,V2]=ps(_i),e8=x.forwardRef((e,t)=>{const n=K_(_i,e.__scopeMenu),{forceMount:i=n.forceMount,...r}=e,s=ms(_i,e.__scopeMenu),a=Zc(_i,e.__scopeMenu);return C.jsx(Ac.Provider,{scope:e.__scopeMenu,children:C.jsx(Ir,{present:i||s.open,children:C.jsx(Ac.Slot,{scope:e.__scopeMenu,children:a.modal?C.jsx(tV,{...r,ref:t}):C.jsx(nV,{...r,ref:t})})})})}),tV=x.forwardRef((e,t)=>{const n=ms(_i,e.__scopeMenu),i=x.useRef(null),r=Zt(t,i);return x.useEffect(()=>{const s=i.current;if(s)return qS(s)},[]),C.jsx($2,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),nV=x.forwardRef((e,t)=>{const n=ms(_i,e.__scopeMenu);return C.jsx($2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),iV=Sc("MenuContent.ScrollLock"),$2=x.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:v,onDismiss:y,disableOutsideScroll:E,...T}=e,_=ms(_i,n),S=Zc(_i,n),D=eh(n),A=Z_(n),N=QP(n),[R,M]=x.useState(null),j=x.useRef(null),$=Zt(t,j,_.onContentChange),L=x.useRef(0),U=x.useRef(""),Y=x.useRef(0),K=x.useRef(null),se=x.useRef("right"),ne=x.useRef(0),te=E?_2:x.Fragment,I=E?{as:iV,allowPinchZoom:!0}:void 0,z=V=>{var fe,re;const k=U.current+V,H=N().filter(me=>!me.disabled),oe=document.activeElement,ie=(fe=H.find(me=>me.ref.current===oe))==null?void 0:fe.textValue,G=H.map(me=>me.textValue),pe=mV(G,k,ie),de=(re=H.find(me=>me.textValue===pe))==null?void 0:re.ref.current;(function me(xe){U.current=xe,window.clearTimeout(L.current),xe!==""&&(L.current=window.setTimeout(()=>me(""),1e3))})(k),de&&setTimeout(()=>de.focus())};x.useEffect(()=>()=>window.clearTimeout(L.current),[]),IS();const P=x.useCallback(V=>{var H,oe;return se.current===((H=K.current)==null?void 0:H.side)&&vV(V,(oe=K.current)==null?void 0:oe.area)},[]);return C.jsx(eV,{scope:n,searchRef:U,onItemEnter:x.useCallback(V=>{P(V)&&V.preventDefault()},[P]),onItemLeave:x.useCallback(V=>{var k;P(V)||((k=j.current)==null||k.focus(),M(null))},[P]),onTriggerLeave:x.useCallback(V=>{P(V)&&V.preventDefault()},[P]),pointerGraceTimerRef:Y,onPointerGraceIntentChange:x.useCallback(V=>{K.current=V},[]),children:C.jsx(te,{...I,children:C.jsx(S2,{asChild:!0,trapped:r,onMountAutoFocus:Me(s,V=>{var k;V.preventDefault(),(k=j.current)==null||k.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:C.jsx(H0,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:g,onInteractOutside:v,onDismiss:y,children:C.jsx(UP,{asChild:!0,...A,dir:S.dir,orientation:"vertical",loop:i,currentTabStopId:R,onCurrentTabStopIdChange:M,onEntryFocus:Me(f,V=>{S.isUsingKeyboardRef.current||V.preventDefault()}),preventScrollOnEntryFocus:!0,children:C.jsx($_,{role:"menu","aria-orientation":"vertical","data-state":g8(_.open),"data-radix-menu-content":"",dir:S.dir,...D,...T,ref:$,style:{outline:"none",...T.style},onKeyDown:Me(T.onKeyDown,V=>{const H=V.target.closest("[data-radix-menu-content]")===V.currentTarget,oe=V.ctrlKey||V.altKey||V.metaKey,ie=V.key.length===1;H&&(V.key==="Tab"&&V.preventDefault(),!oe&&ie&&z(V.key));const G=j.current;if(V.target!==G||!HP.includes(V.key))return;V.preventDefault();const de=N().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);Q_.includes(V.key)&&de.reverse(),hV(de)}),onBlur:Me(e.onBlur,V=>{V.currentTarget.contains(V.target)||(window.clearTimeout(L.current),U.current="")}),onPointerMove:Me(e.onPointerMove,wc(V=>{const k=V.target,H=ne.current!==V.clientX;if(V.currentTarget.contains(k)&&H){const oe=V.clientX>ne.current?"right":"left";se.current=oe,ne.current=V.clientX}}))})})})})})})});e8.displayName=_i;var rV="MenuGroup",B2=x.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return C.jsx(Nt.div,{role:"group",...i,ref:t})});B2.displayName=rV;var uV="MenuLabel",t8=x.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return C.jsx(Nt.div,{...i,ref:t})});t8.displayName=uV;var m0="MenuItem",Y6="menu.itemSelect",th=x.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...r}=e,s=x.useRef(null),a=Zc(m0,e.__scopeMenu),c=V2(m0,e.__scopeMenu),f=Zt(t,s),h=x.useRef(!1),p=()=>{const g=s.current;if(!n&&g){const v=new CustomEvent(Y6,{bubbles:!0,cancelable:!0});g.addEventListener(Y6,y=>i==null?void 0:i(y),{once:!0}),RS(g,v),v.defaultPrevented?h.current=!1:a.onClose()}};return C.jsx(n8,{...r,ref:f,disabled:n,onClick:Me(e.onClick,p),onPointerDown:g=>{var v;(v=e.onPointerDown)==null||v.call(e,g),h.current=!0},onPointerUp:Me(e.onPointerUp,g=>{var v;h.current||(v=g.currentTarget)==null||v.click()}),onKeyDown:Me(e.onKeyDown,g=>{const v=c.searchRef.current!=="";n||v&&g.key===" "||mg.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});th.displayName=m0;var n8=x.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:r,...s}=e,a=V2(m0,n),c=Z_(n),f=x.useRef(null),h=Zt(t,f),[p,g]=x.useState(!1),[v,y]=x.useState("");return x.useEffect(()=>{const E=f.current;E&&y((E.textContent??"").trim())},[s.children]),C.jsx(Ac.ItemSlot,{scope:n,disabled:i,textValue:r??v,children:C.jsx(zP,{asChild:!0,...c,focusable:!i,children:C.jsx(Nt.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:h,onPointerMove:Me(e.onPointerMove,wc(E=>{i?a.onItemLeave(E):(a.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Me(e.onPointerLeave,wc(E=>a.onItemLeave(E))),onFocus:Me(e.onFocus,()=>g(!0)),onBlur:Me(e.onBlur,()=>g(!1))})})})}),oV="MenuCheckboxItem",i8=x.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...r}=e;return C.jsx(a8,{scope:e.__scopeMenu,checked:n,children:C.jsx(th,{role:"menuitemcheckbox","aria-checked":g0(n)?"mixed":n,...r,ref:t,"data-state":z2(n),onSelect:Me(r.onSelect,()=>i==null?void 0:i(g0(n)?!0:!n),{checkForDefaultPrevented:!1})})})});i8.displayName=oV;var r8="MenuRadioGroup",[sV,aV]=ps(r8,{value:void 0,onValueChange:()=>{}}),u8=x.forwardRef((e,t)=>{const{value:n,onValueChange:i,...r}=e,s=hu(i);return C.jsx(sV,{scope:e.__scopeMenu,value:n,onValueChange:s,children:C.jsx(B2,{...r,ref:t})})});u8.displayName=r8;var o8="MenuRadioItem",s8=x.forwardRef((e,t)=>{const{value:n,...i}=e,r=aV(o8,e.__scopeMenu),s=n===r.value;return C.jsx(a8,{scope:e.__scopeMenu,checked:s,children:C.jsx(th,{role:"menuitemradio","aria-checked":s,...i,ref:t,"data-state":z2(s),onSelect:Me(i.onSelect,()=>{var a;return(a=r.onValueChange)==null?void 0:a.call(r,n)},{checkForDefaultPrevented:!1})})})});s8.displayName=o8;var U2="MenuItemIndicator",[a8,lV]=ps(U2,{checked:!1}),l8=x.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...r}=e,s=lV(U2,n);return C.jsx(Ir,{present:i||g0(s.checked)||s.checked===!0,children:C.jsx(Nt.span,{...r,ref:t,"data-state":z2(s.checked)})})});l8.displayName=U2;var cV="MenuSeparator",c8=x.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return C.jsx(Nt.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});c8.displayName=cV;var fV="MenuArrow",f8=x.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,r=eh(n);return C.jsx(B_,{...r,...i,ref:t})});f8.displayName=fV;var dV="MenuSub",[WX,d8]=ps(dV),Zl="MenuSubTrigger",h8=x.forwardRef((e,t)=>{const n=ms(Zl,e.__scopeMenu),i=Zc(Zl,e.__scopeMenu),r=d8(Zl,e.__scopeMenu),s=V2(Zl,e.__scopeMenu),a=x.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=s,h={__scopeMenu:e.__scopeMenu},p=x.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return x.useEffect(()=>p,[p]),x.useEffect(()=>{const g=c.current;return()=>{window.clearTimeout(g),f(null)}},[c,f]),C.jsx(j2,{asChild:!0,...h,children:C.jsx(n8,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":g8(n.open),...e,ref:z0(t,r.onTriggerChange),onClick:g=>{var v;(v=e.onClick)==null||v.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Me(e.onPointerMove,wc(g=>{s.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:Me(e.onPointerLeave,wc(g=>{var y,E;p();const v=(y=n.content)==null?void 0:y.getBoundingClientRect();if(v){const T=(E=n.content)==null?void 0:E.dataset.side,_=T==="right",S=_?-5:5,D=v[_?"left":"right"],A=v[_?"right":"left"];s.onPointerGraceIntentChange({area:[{x:g.clientX+S,y:g.clientY},{x:D,y:v.top},{x:A,y:v.top},{x:A,y:v.bottom},{x:D,y:v.bottom}],side:T}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(g),g.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Me(e.onKeyDown,g=>{var y;const v=s.searchRef.current!=="";e.disabled||v&&g.key===" "||GP[i.dir].includes(g.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),g.preventDefault())})})})});h8.displayName=Zl;var p8="MenuSubContent",m8=x.forwardRef((e,t)=>{const n=K_(_i,e.__scopeMenu),{forceMount:i=n.forceMount,...r}=e,s=ms(_i,e.__scopeMenu),a=Zc(_i,e.__scopeMenu),c=d8(p8,e.__scopeMenu),f=x.useRef(null),h=Zt(t,f);return C.jsx(Ac.Provider,{scope:e.__scopeMenu,children:C.jsx(Ir,{present:i||s.open,children:C.jsx(Ac.Slot,{scope:e.__scopeMenu,children:C.jsx($2,{id:c.contentId,"aria-labelledby":c.triggerId,...r,ref:h,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var g;a.isUsingKeyboardRef.current&&((g=f.current)==null||g.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:Me(e.onFocusOutside,p=>{p.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Me(e.onEscapeKeyDown,p=>{a.onClose(),p.preventDefault()}),onKeyDown:Me(e.onKeyDown,p=>{var y;const g=p.currentTarget.contains(p.target),v=YP[a.dir].includes(p.key);g&&v&&(s.onOpenChange(!1),(y=c.trigger)==null||y.focus(),p.preventDefault())})})})})})});m8.displayName=p8;function g8(e){return e?"open":"closed"}function g0(e){return e==="indeterminate"}function z2(e){return g0(e)?"indeterminate":e?"checked":"unchecked"}function hV(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function pV(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function mV(e,t,n){const r=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=pV(e,Math.max(s,0));r.length===1&&(a=a.filter(h=>h!==n));const f=a.find(h=>h.toLowerCase().startsWith(r.toLowerCase()));return f!==n?f:void 0}function gV(e,t){const{x:n,y:i}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],f=t[a],h=c.x,p=c.y,g=f.x,v=f.y;p>i!=v>i&&n<(g-h)*(i-p)/(v-p)+h&&(r=!r)}return r}function vV(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return gV(n,t)}function wc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var yV=W_,bV=j2,xV=J_,EV=e8,TV=B2,SV=t8,_V=th,CV=i8,AV=u8,wV=s8,DV=l8,NV=c8,OV=f8,RV=h8,kV=m8,nh="DropdownMenu",[MV]=hs(nh,[X_]),Mn=X_(),[LV,v8]=MV(nh),y8=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:r,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,f=Mn(t),h=x.useRef(null),[p,g]=q0({prop:r,defaultProp:s??!1,onChange:a,caller:nh});return C.jsx(LV,{scope:t,triggerId:Jo(),triggerRef:h,contentId:Jo(),open:p,onOpenChange:g,onOpenToggle:x.useCallback(()=>g(v=>!v),[g]),modal:c,children:C.jsx(yV,{...f,open:p,onOpenChange:g,dir:i,modal:c,children:n})})};y8.displayName=nh;var b8="DropdownMenuTrigger",x8=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...r}=e,s=v8(b8,n),a=Mn(n);return C.jsx(bV,{asChild:!0,...a,children:C.jsx(Nt.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...r,ref:z0(t,s.triggerRef),onPointerDown:Me(e.onPointerDown,c=>{!i&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:Me(e.onKeyDown,c=>{i||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});x8.displayName=b8;var IV="DropdownMenuPortal",E8=e=>{const{__scopeDropdownMenu:t,...n}=e,i=Mn(t);return C.jsx(xV,{...i,...n})};E8.displayName=IV;var T8="DropdownMenuContent",S8=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=v8(T8,n),s=Mn(n),a=x.useRef(!1);return C.jsx(EV,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...i,ref:t,onCloseAutoFocus:Me(e.onCloseAutoFocus,c=>{var f;a.current||(f=r.triggerRef.current)==null||f.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:Me(e.onInteractOutside,c=>{const f=c.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,p=f.button===2||h;(!r.modal||p)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});S8.displayName=T8;var FV="DropdownMenuGroup",jV=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(TV,{...r,...i,ref:t})});jV.displayName=FV;var PV="DropdownMenuLabel",VV=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(SV,{...r,...i,ref:t})});VV.displayName=PV;var $V="DropdownMenuItem",_8=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(_V,{...r,...i,ref:t})});_8.displayName=$V;var BV="DropdownMenuCheckboxItem",UV=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(CV,{...r,...i,ref:t})});UV.displayName=BV;var zV="DropdownMenuRadioGroup",qV=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(AV,{...r,...i,ref:t})});qV.displayName=zV;var HV="DropdownMenuRadioItem",GV=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(wV,{...r,...i,ref:t})});GV.displayName=HV;var YV="DropdownMenuItemIndicator",QV=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(DV,{...r,...i,ref:t})});QV.displayName=YV;var XV="DropdownMenuSeparator",ZV=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(NV,{...r,...i,ref:t})});ZV.displayName=XV;var WV="DropdownMenuArrow",KV=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(OV,{...r,...i,ref:t})});KV.displayName=WV;var JV="DropdownMenuSubTrigger",e$=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(RV,{...r,...i,ref:t})});e$.displayName=JV;var t$="DropdownMenuSubContent",n$=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,r=Mn(n);return C.jsx(kV,{...r,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});n$.displayName=t$;var i$=y8,r$=x8,u$=E8,o$=S8,s$=_8;const C8=x.forwardRef((e,t)=>{const n=ge.c(6);let i;n[0]!==e.className?(i=ft("graphiql-un-styled",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=C.jsx(r$,{asChild:!0,children:C.jsx("button",{...e,ref:t,className:i})}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});C8.displayName="DropdownMenuButton";const a$=e=>{const t=ge.c(14);let n,i,r,s,a;t[0]!==e?({children:n,align:s,sideOffset:a,className:i,...r}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=s,t[5]=a):(n=t[1],i=t[2],r=t[3],s=t[4],a=t[5]);const c=s===void 0?"start":s,f=a===void 0?5:a;let h;t[6]!==i?(h=ft("graphiql-dropdown-content",i),t[6]=i,t[7]=h):h=t[7];let p;return t[8]!==c||t[9]!==n||t[10]!==r||t[11]!==f||t[12]!==h?(p=C.jsx(u$,{children:C.jsx(o$,{align:c,sideOffset:f,className:h,...r,children:n})}),t[8]=c,t[9]=n,t[10]=r,t[11]=f,t[12]=h,t[13]=p):p=t[13],p},l$=e=>{const t=ge.c(10);let n,i,r;t[0]!==e?({className:i,children:n,...r}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=r):(n=t[1],i=t[2],r=t[3]);let s;t[4]!==i?(s=ft("graphiql-dropdown-item",i),t[4]=i,t[5]=s):s=t[5];let a;return t[6]!==n||t[7]!==r||t[8]!==s?(a=C.jsx(s$,{className:s,...r,children:n}),t[6]=n,t[7]=r,t[8]=s,t[9]=a):a=t[9],a},kd=Object.assign(i$,{Button:C8,Item:l$,Content:a$}),Nr=x.forwardRef((e,t)=>{const n=ge.c(18);let i,r,s,a;n[0]!==e?({children:i,onlyShowFirstChild:r,type:a,...s}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=s,n[4]=a):(i=n[1],r=n[2],s=n[3],a=n[4]);const c=`graphiql-markdown-${a}`,f=r&&"graphiql-markdown-preview";let h;n[5]!==s.className||n[6]!==c||n[7]!==f?(h=ft(c,f,s.className),n[5]=s.className,n[6]=c,n[7]=f,n[8]=h):h=n[8];let p;n[9]!==i?(p=l0.render(i),n[9]=i,n[10]=p):p=n[10];let g;n[11]!==p?(g={__html:p},n[11]=p,n[12]=g):g=n[12];let v;return n[13]!==s||n[14]!==t||n[15]!==h||n[16]!==g?(v=C.jsx("div",{...s,ref:t,className:h,dangerouslySetInnerHTML:g}),n[13]=s,n[14]=t,n[15]=h,n[16]=g,n[17]=v):v=n[17],v});Nr.displayName="MarkdownContent";const q2=x.forwardRef((e,t)=>{const n=ge.c(6);let i;n[0]!==e.className?(i=ft("graphiql-spinner",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;return n[2]!==e||n[3]!==t||n[4]!==i?(r=C.jsx("div",{...e,ref:t,className:i}),n[2]=e,n[3]=t,n[4]=i,n[5]=r):r=n[5],r});q2.displayName="Spinner";const A8=x.createContext({});function Wc(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const H2=typeof window<"u",w8=H2?x.useLayoutEffect:x.useEffect,G2=x.createContext(null);function Y2(e,t){e.indexOf(t)===-1&&e.push(t)}function Q2(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function c$([...e],t,n){const i=t<0?e.length+t:t;if(i>=0&&i<e.length){const r=n<0?e.length+n:n,[s]=e.splice(t,1);e.splice(r,0,s)}return e}const gu=(e,t,n)=>n>t?t:n<e?e:n;let X2=()=>{};const vu={},D8=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function N8(e){return typeof e=="object"&&e!==null}const O8=e=>/^0[^.\s]+$/u.test(e);function Z2(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ci=e=>e,f$=(e,t)=>n=>t(e(n)),Kc=(...e)=>e.reduce(f$),Dc=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class W2{constructor(){this.subscriptions=[]}add(t){return Y2(this.subscriptions,t),()=>Q2(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Sr=e=>e*1e3,_r=e=>e/1e3;function R8(e,t){return t?e*(1e3/t):0}const k8=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,d$=1e-7,h$=12;function p$(e,t,n,i,r){let s,a,c=0;do a=t+(n-t)/2,s=k8(a,i,r)-e,s>0?n=a:t=a;while(Math.abs(s)>d$&&++c<h$);return a}function Jc(e,t,n,i){if(e===t&&n===i)return Ci;const r=s=>p$(s,0,1,e,n);return s=>s===0||s===1?s:k8(r(s),t,i)}const M8=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,L8=e=>t=>1-e(1-t),I8=Jc(.33,1.53,.69,.99),K2=L8(I8),F8=M8(K2),j8=e=>(e*=2)<1?.5*K2(e):.5*(2-Math.pow(2,-10*(e-1))),J2=e=>1-Math.sin(Math.acos(e)),P8=L8(J2),V8=M8(J2),m$=Jc(.42,0,1,1),g$=Jc(0,0,.58,1),$8=Jc(.42,0,.58,1),v$=e=>Array.isArray(e)&&typeof e[0]!="number",B8=e=>Array.isArray(e)&&typeof e[0]=="number",y$={linear:Ci,easeIn:m$,easeInOut:$8,easeOut:g$,circIn:J2,circInOut:V8,circOut:P8,backIn:K2,backInOut:F8,backOut:I8,anticipate:j8},b$=e=>typeof e=="string",Q6=e=>{if(B8(e)){X2(e.length===4);const[t,n,i,r]=e;return Jc(t,n,i,r)}else if(b$(e))return y$[e];return e},Md=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function x$(e,t){let n=new Set,i=new Set,r=!1,s=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function f(p){a.has(p)&&(h.schedule(p),e()),p(c)}const h={schedule:(p,g=!1,v=!1)=>{const E=v&&r?n:i;return g&&a.add(p),E.has(p)||E.add(p),p},cancel:p=>{i.delete(p),a.delete(p)},process:p=>{if(c=p,r){s=!0;return}r=!0,[n,i]=[i,n],n.forEach(f),n.clear(),r=!1,s&&(s=!1,h.process(p))}};return h}const E$=40;function U8(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Md.reduce((A,N)=>(A[N]=x$(s),A),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:p,update:g,preRender:v,render:y,postRender:E}=a,T=()=>{const A=vu.useManualTiming?r.timestamp:performance.now();n=!1,vu.useManualTiming||(r.delta=i?1e3/60:Math.max(Math.min(A-r.timestamp,E$),1)),r.timestamp=A,r.isProcessing=!0,c.process(r),f.process(r),h.process(r),p.process(r),g.process(r),v.process(r),y.process(r),E.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(T))},_=()=>{n=!0,i=!0,r.isProcessing||e(T)};return{schedule:Md.reduce((A,N)=>{const R=a[N];return A[N]=(M,j=!1,$=!1)=>(n||_(),R.schedule(M,j,$)),A},{}),cancel:A=>{for(let N=0;N<Md.length;N++)a[Md[N]].cancel(A)},state:r,steps:a}}const{schedule:yt,cancel:yu,state:mn,steps:tm}=U8(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ci,!0);let Gd;function T$(){Gd=void 0}const Bn={now:()=>(Gd===void 0&&Bn.set(mn.isProcessing||vu.useManualTiming?mn.timestamp:performance.now()),Gd),set:e=>{Gd=e,queueMicrotask(T$)}},z8=e=>t=>typeof t=="string"&&t.startsWith(e),ev=z8("--"),S$=z8("var(--"),tv=e=>S$(e)?_$.test(e.split("/*")[0].trim()):!1,_$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ua={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nc={...Ua,transform:e=>gu(0,1,e)},Ld={...Ua,default:1},ic=e=>Math.round(e*1e5)/1e5,nv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function C$(e){return e==null}const A$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iv=(e,t)=>n=>!!(typeof n=="string"&&A$.test(n)&&n.startsWith(e)||t&&!C$(n)&&Object.prototype.hasOwnProperty.call(n,t)),q8=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,s,a,c]=i.match(nv);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},w$=e=>gu(0,255,e),nm={...Ua,transform:e=>Math.round(w$(e))},Yo={test:iv("rgb","red"),parse:q8("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+nm.transform(e)+", "+nm.transform(t)+", "+nm.transform(n)+", "+ic(Nc.transform(i))+")"};function D$(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const gg={test:iv("#"),parse:D$,transform:Yo.transform},ef=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ro=ef("deg"),Cr=ef("%"),Oe=ef("px"),N$=ef("vh"),O$=ef("vw"),X6={...Cr,parse:e=>Cr.parse(e)/100,transform:e=>Cr.transform(e*100)},la={test:iv("hsl","hue"),parse:q8("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Cr.transform(ic(t))+", "+Cr.transform(ic(n))+", "+ic(Nc.transform(i))+")"},Ut={test:e=>Yo.test(e)||gg.test(e)||la.test(e),parse:e=>Yo.test(e)?Yo.parse(e):la.test(e)?la.parse(e):gg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Yo.transform(e):la.transform(e),getAnimatableNone:e=>{const t=Ut.parse(e);return t.alpha=0,Ut.transform(t)}},R$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function k$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nv))==null?void 0:t.length)||0)+(((n=e.match(R$))==null?void 0:n.length)||0)>0}const H8="number",G8="color",M$="var",L$="var(",Z6="${}",I$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Oc(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let s=0;const c=t.replace(I$,f=>(Ut.test(f)?(i.color.push(s),r.push(G8),n.push(Ut.parse(f))):f.startsWith(L$)?(i.var.push(s),r.push(M$),n.push(f)):(i.number.push(s),r.push(H8),n.push(parseFloat(f))),++s,Z6)).split(Z6);return{values:n,split:c,indexes:i,types:r}}function Y8(e){return Oc(e).values}function Q8(e){const{split:t,types:n}=Oc(e),i=t.length;return r=>{let s="";for(let a=0;a<i;a++)if(s+=t[a],r[a]!==void 0){const c=n[a];c===H8?s+=ic(r[a]):c===G8?s+=Ut.transform(r[a]):s+=r[a]}return s}}const F$=e=>typeof e=="number"?0:Ut.test(e)?Ut.getAnimatableNone(e):e;function j$(e){const t=Y8(e);return Q8(e)(t.map(F$))}const ho={test:k$,parse:Y8,createTransformer:Q8,getAnimatableNone:j$};function im(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function P$({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;r=im(f,c,e+1/3),s=im(f,c,e),a=im(f,c,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:i}}function v0(e,t){return n=>n>0?t:e}const Tt=(e,t,n)=>e+(t-e)*n,rm=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},V$=[gg,Yo,la],$$=e=>V$.find(t=>t.test(e));function W6(e){const t=$$(e);if(!t)return!1;let n=t.parse(e);return t===la&&(n=P$(n)),n}const K6=(e,t)=>{const n=W6(e),i=W6(t);if(!n||!i)return v0(e,t);const r={...n};return s=>(r.red=rm(n.red,i.red,s),r.green=rm(n.green,i.green,s),r.blue=rm(n.blue,i.blue,s),r.alpha=Tt(n.alpha,i.alpha,s),Yo.transform(r))},vg=new Set(["none","hidden"]);function B$(e,t){return vg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function U$(e,t){return n=>Tt(e,t,n)}function rv(e){return typeof e=="number"?U$:typeof e=="string"?tv(e)?v0:Ut.test(e)?K6:H$:Array.isArray(e)?X8:typeof e=="object"?Ut.test(e)?K6:z$:v0}function X8(e,t){const n=[...e],i=n.length,r=e.map((s,a)=>rv(s)(s,t[a]));return s=>{for(let a=0;a<i;a++)n[a]=r[a](s);return n}}function z$(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=rv(e[r])(e[r],t[r]));return r=>{for(const s in i)n[s]=i[s](r);return n}}function q$(e,t){const n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],a=e.indexes[s][i[s]],c=e.values[a]??0;n[r]=c,i[s]++}return n}const H$=(e,t)=>{const n=ho.createTransformer(t),i=Oc(e),r=Oc(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?vg.has(e)&&!r.values.length||vg.has(t)&&!i.values.length?B$(e,t):Kc(X8(q$(i,r),r.values),n):v0(e,t)};function Z8(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Tt(e,t,n):rv(e)(e,t)}const G$=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>yt.update(t,n),stop:()=>yu(t),now:()=>mn.isProcessing?mn.timestamp:Bn.now()}},W8=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)i+=Math.round(e(s/(r-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},y0=2e4;function uv(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<y0;)t+=n,i=e.next(t);return t>=y0?1/0:t}function Y$(e,t=100,n){const i=n({...e,keyframes:[0,t]}),r=Math.min(uv(i),y0);return{type:"keyframes",ease:s=>i.next(r*s).value/t,duration:_r(r)}}const Q$=5;function K8(e,t,n){const i=Math.max(t-Q$,0);return R8(n-e(i),t-i)}const Dt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},um=.001;function X$({duration:e=Dt.duration,bounce:t=Dt.bounce,velocity:n=Dt.velocity,mass:i=Dt.mass}){let r,s,a=1-t;a=gu(Dt.minDamping,Dt.maxDamping,a),e=gu(Dt.minDuration,Dt.maxDuration,_r(e)),a<1?(r=h=>{const p=h*a,g=p*e,v=p-n,y=yg(h,a),E=Math.exp(-g);return um-v/y*E},s=h=>{const g=h*a*e,v=g*n+n,y=Math.pow(a,2)*Math.pow(h,2)*e,E=Math.exp(-g),T=yg(Math.pow(h,2),a);return(-r(h)+um>0?-1:1)*((v-y)*E)/T}):(r=h=>{const p=Math.exp(-h*e),g=(h-n)*e+1;return-um+p*g},s=h=>{const p=Math.exp(-h*e),g=(n-h)*(e*e);return p*g});const c=5/e,f=W$(r,s,c);if(e=Sr(e),isNaN(f))return{stiffness:Dt.stiffness,damping:Dt.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:a*2*Math.sqrt(i*h),duration:e}}}const Z$=12;function W$(e,t,n){let i=n;for(let r=1;r<Z$;r++)i=i-e(i)/t(i);return i}function yg(e,t){return e*Math.sqrt(1-t*t)}const K$=["duration","bounce"],J$=["stiffness","damping","mass"];function J6(e,t){return t.some(n=>e[n]!==void 0)}function eB(e){let t={velocity:Dt.velocity,stiffness:Dt.stiffness,damping:Dt.damping,mass:Dt.mass,isResolvedFromDuration:!1,...e};if(!J6(e,J$)&&J6(e,K$))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,s=2*gu(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Dt.mass,stiffness:r,damping:s}}else{const n=X$(e);t={...t,...n,mass:Dt.mass},t.isResolvedFromDuration=!0}return t}function b0(e=Dt.visualDuration,t=Dt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:f,damping:h,mass:p,duration:g,velocity:v,isResolvedFromDuration:y}=eB({...n,velocity:-_r(n.velocity||0)}),E=v||0,T=h/(2*Math.sqrt(f*p)),_=a-s,S=_r(Math.sqrt(f/p)),D=Math.abs(_)<5;i||(i=D?Dt.restSpeed.granular:Dt.restSpeed.default),r||(r=D?Dt.restDelta.granular:Dt.restDelta.default);let A;if(T<1){const R=yg(S,T);A=M=>{const j=Math.exp(-T*S*M);return a-j*((E+T*S*_)/R*Math.sin(R*M)+_*Math.cos(R*M))}}else if(T===1)A=R=>a-Math.exp(-S*R)*(_+(E+S*_)*R);else{const R=S*Math.sqrt(T*T-1);A=M=>{const j=Math.exp(-T*S*M),$=Math.min(R*M,300);return a-j*((E+T*S*_)*Math.sinh($)+R*_*Math.cosh($))/R}}const N={calculatedDuration:y&&g||null,next:R=>{const M=A(R);if(y)c.done=R>=g;else{let j=R===0?E:0;T<1&&(j=R===0?Sr(E):K8(A,R,M));const $=Math.abs(j)<=i,L=Math.abs(a-M)<=r;c.done=$&&L}return c.value=c.done?a:M,c},toString:()=>{const R=Math.min(uv(N),y0),M=W8(j=>N.next(R*j).value,R,30);return R+"ms "+M},toTransition:()=>{}};return N}b0.applyToOptions=e=>{const t=Y$(e,100,b0);return e.ease=t.ease,e.duration=Sr(t.duration),e.type="keyframes",e};function bg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:c,max:f,restDelta:h=.5,restSpeed:p}){const g=e[0],v={done:!1,value:g},y=$=>c!==void 0&&$<c||f!==void 0&&$>f,E=$=>c===void 0?f:f===void 0||Math.abs(c-$)<Math.abs(f-$)?c:f;let T=n*t;const _=g+T,S=a===void 0?_:a(_);S!==_&&(T=S-g);const D=$=>-T*Math.exp(-$/i),A=$=>S+D($),N=$=>{const L=D($),U=A($);v.done=Math.abs(L)<=h,v.value=v.done?S:U};let R,M;const j=$=>{y(v.value)&&(R=$,M=b0({keyframes:[v.value,E(v.value)],velocity:K8(A,$,v.value),damping:r,stiffness:s,restDelta:h,restSpeed:p}))};return j(0),{calculatedDuration:null,next:$=>{let L=!1;return!M&&R===void 0&&(L=!0,N($),j($)),R!==void 0&&$>=R?M.next($-R):(!L&&N($),v)}}}function tB(e,t,n){const i=[],r=n||vu.mix||Z8,s=e.length-1;for(let a=0;a<s;a++){let c=r(e[a],e[a+1]);if(t){const f=Array.isArray(t)?t[a]||Ci:t;c=Kc(f,c)}i.push(c)}return i}function J8(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const s=e.length;if(X2(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=tB(t,i,r),f=c.length,h=p=>{if(a&&p<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const v=Dc(e[g],e[g+1],p);return c[g](v)};return n?p=>h(gu(e[0],e[s-1],p)):h}function nB(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=Dc(0,t,i);e.push(Tt(n,1,r))}}function iB(e){const t=[0];return nB(t,e.length-1),t}function rB(e,t){return e.map(n=>n*t)}function uB(e,t){return e.map(()=>t||$8).splice(0,e.length-1)}function rc({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=v$(i)?i.map(Q6):Q6(i),s={done:!1,value:t[0]},a=rB(n&&n.length===t.length?n:iB(t),e),c=J8(a,t,{ease:Array.isArray(r)?r:uB(t,r)});return{calculatedDuration:e,next:f=>(s.value=c(f),s.done=f>=e,s)}}const oB=e=>e!==null;function ov(e,{repeat:t,repeatType:n="loop"},i,r=1){const s=e.filter(oB),c=r<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!c||i===void 0?s[c]:i}const sB={decay:bg,inertia:bg,tween:rc,keyframes:rc,spring:b0};function eC(e){typeof e.type=="string"&&(e.type=sB[e.type])}class sv{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const aB=e=>e/100;class av extends sv{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var i,r;const{motionValue:n}=this.options;n&&n.updatedAt!==Bn.now()&&this.tick(Bn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(i=this.options).onStop)==null||r.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;eC(t);const{type:n=rc,repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=t;let{keyframes:c}=t;const f=n||rc;f!==rc&&typeof c[0]!="number"&&(this.mixKeyframes=Kc(aB,Z8(c[0],c[1])),c=[0,100]);const h=f({...t,keyframes:c});s==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=uv(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:i,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:p,repeat:g,repeatType:v,repeatDelay:y,type:E,onUpdate:T,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const S=this.currentTime-h*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?S<0:S>r;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let A=this.currentTime,N=i;if(g){const $=Math.min(this.currentTime,r)/c;let L=Math.floor($),U=$%1;!U&&$>=1&&(U=1),U===1&&L--,L=Math.min(L,g+1),!!(L%2)&&(v==="reverse"?(U=1-U,y&&(U-=y/c)):v==="mirror"&&(N=a)),A=gu(0,1,U)*c}const R=D?{done:!1,value:p[0]}:N.next(A);s&&(R.value=s(R.value));let{done:M}=R;!D&&f!==null&&(M=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return j&&E!==bg&&(R.value=ov(p,this.options,_,this.speed)),T&&T(R.value),j&&this.finish(),R}then(t,n){return this.finished.then(t,n)}get duration(){return _r(this.calculatedDuration)}get time(){return _r(this.currentTime)}set time(t){var n;t=Sr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Bn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=_r(this.currentTime))}play(){var r,s;if(this.isStopped)return;const{driver:t=G$,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(s=(r=this.options).onPlay)==null||s.call(r);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Bn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function lB(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Qo=e=>e*180/Math.PI,xg=e=>{const t=Qo(Math.atan2(e[1],e[0]));return Eg(t)},cB={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:xg,rotateZ:xg,skewX:e=>Qo(Math.atan(e[1])),skewY:e=>Qo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Eg=e=>(e=e%360,e<0&&(e+=360),e),e4=xg,t4=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),n4=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:t4,scaleY:n4,scale:e=>(t4(e)+n4(e))/2,rotateX:e=>Eg(Qo(Math.atan2(e[6],e[5]))),rotateY:e=>Eg(Qo(Math.atan2(-e[2],e[0]))),rotateZ:e4,rotate:e4,skewX:e=>Qo(Math.atan(e[4])),skewY:e=>Qo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Tg(e){return e.includes("scale")?1:0}function Sg(e,t){if(!e||e==="none")return Tg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(n)i=fB,r=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=cB,r=c}if(!r)return Tg(t);const s=i[t],a=r[1].split(",").map(hB);return typeof s=="function"?s(a):a[s]}const dB=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Sg(n,t)};function hB(e){return parseFloat(e.trim())}const za=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qa=new Set(za),i4=e=>e===Ua||e===Oe,pB=new Set(["x","y","z"]),mB=za.filter(e=>!pB.has(e));function gB(e){const t=[];return mB.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const es={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Sg(t,"x"),y:(e,{transform:t})=>Sg(t,"y")};es.translateX=es.x;es.translateY=es.y;const ts=new Set;let _g=!1,Cg=!1,Ag=!1;function tC(){if(Cg){const e=Array.from(ts).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=gB(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([s,a])=>{var c;(c=i.getValue(s))==null||c.set(a)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Cg=!1,_g=!1,ts.forEach(e=>e.complete(Ag)),ts.clear()}function nC(){ts.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Cg=!0)})}function vB(){Ag=!0,nC(),tC(),Ag=!1}class lv{constructor(t,n,i,r,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(ts.add(this),_g||(_g=!0,yt.read(nC),yt.resolveKeyframes(tC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;if(t[0]===null){const s=r==null?void 0:r.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const c=i.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),r&&s===void 0&&r.set(t[0])}lB(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ts.delete(this)}cancel(){this.state==="scheduled"&&(ts.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const yB=e=>e.startsWith("--");function bB(e,t,n){yB(t)?e.style.setProperty(t,n):e.style[t]=n}const xB=Z2(()=>window.ScrollTimeline!==void 0),EB={};function TB(e,t){const n=Z2(e);return()=>EB[t]??n()}const iC=TB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Wl=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,r4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function rC(e,t){if(e)return typeof e=="function"?iC()?W8(e,t):"ease-out":B8(e)?Wl(e):Array.isArray(e)?e.map(n=>rC(n,t)||r4.easeOut):r4[e]}function SB(e,t,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:c="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const g=rC(c,r);Array.isArray(g)&&(p.easing=g);const v={delay:i,duration:r,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),e.animate(p,v)}function uC(e){return typeof e=="function"&&"applyToOptions"in e}function _B({type:e,...t}){return uC(e)&&iC()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class CB extends sv{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:i,keyframes:r,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,X2(typeof t.type!="string");const h=_B(t);this.animation=SB(n,i,r,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=ov(r,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(p):bB(n,i,p),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,i;const t=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return _r(Number(t))}get time(){return _r(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Sr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&xB()?(this.animation.timeline=t,Ci):n(this)}}const oC={anticipate:j8,backInOut:F8,circInOut:V8};function AB(e){return e in oC}function wB(e){typeof e.ease=="string"&&AB(e.ease)&&(e.ease=oC[e.ease])}const u4=10;class DB extends CB{constructor(t){wB(t),eC(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:r,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new av({...a,autoplay:!1}),f=Sr(this.finishedTime??this.time);n.setWithVelocity(c.sample(f-u4).value,c.sample(f).value,u4),c.stop()}}const o4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ho.test(e)||e==="0")&&!e.startsWith("url("));function NB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function OB(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=o4(r,t),c=o4(s,t);return!a||!c?!1:NB(e)||(n==="spring"||uC(n))&&i}function wg(e){e.duration=0,e.type}const RB=new Set(["opacity","clipPath","filter","transform"]),kB=Z2(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function MB(e){var p;const{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:s,type:a}=e;if(!(((p=t==null?void 0:t.owner)==null?void 0:p.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=t.owner.getProps();return kB()&&n&&RB.has(n)&&(n!=="transform"||!h)&&!f&&!i&&r!=="mirror"&&s!==0&&a!=="inertia"}const LB=40;class IB extends sv{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a="loop",keyframes:c,name:f,motionValue:h,element:p,...g}){var E;super(),this.stop=()=>{var T,_;this._animation&&(this._animation.stop(),(T=this.stopTimeline)==null||T.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=Bn.now();const v={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:s,repeatType:a,name:f,motionValue:h,element:p,...g},y=(p==null?void 0:p.KeyframeResolver)||lv;this.keyframeResolver=new y(c,(T,_,S)=>this.onKeyframesResolved(T,_,v,!S),f,h,p),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(t,n,i,r){this.keyframeResolver=void 0;const{name:s,type:a,velocity:c,delay:f,isHandoff:h,onUpdate:p}=i;this.resolvedAt=Bn.now(),OB(t,s,a,c)||((vu.instantAnimations||!f)&&(p==null||p(ov(t,i,n))),t[0]=t[t.length-1],wg(i),i.repeat=0);const v={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>LB?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},y=!h&&MB(v)?new DB({...v,element:v.motionValue.owner.current}):new av(v);y.finished.then(()=>this.notifyFinished()).catch(Ci),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),vB()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const FB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jB(e){const t=FB.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function sC(e,t,n=1){const[i,r]=jB(e);if(!i)return;const s=window.getComputedStyle(t).getPropertyValue(i);if(s){const a=s.trim();return D8(a)?parseFloat(a):a}return tv(r)?sC(r,t,n+1):r}function cv(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const aC=new Set(["width","height","top","left","right","bottom",...za]),PB={test:e=>e==="auto",parse:e=>e},lC=e=>t=>t.test(e),cC=[Ua,Oe,Cr,ro,O$,N$,PB],s4=e=>cC.find(lC(e));function VB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||O8(e):!0}const $B=new Set(["brightness","contrast","saturate","opacity"]);function BB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(nv)||[];if(!i)return e;const r=n.replace(i,"");let s=$B.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+r+")"}const UB=/\b([a-z-]*)\(.*?\)/gu,Dg={...ho,getAnimatableNone:e=>{const t=e.match(UB);return t?t.map(BB).join(" "):e}},a4={...Ua,transform:Math.round},zB={rotate:ro,rotateX:ro,rotateY:ro,rotateZ:ro,scale:Ld,scaleX:Ld,scaleY:Ld,scaleZ:Ld,skew:ro,skewX:ro,skewY:ro,distance:Oe,translateX:Oe,translateY:Oe,translateZ:Oe,x:Oe,y:Oe,z:Oe,perspective:Oe,transformPerspective:Oe,opacity:Nc,originX:X6,originY:X6,originZ:Oe},fv={borderWidth:Oe,borderTopWidth:Oe,borderRightWidth:Oe,borderBottomWidth:Oe,borderLeftWidth:Oe,borderRadius:Oe,radius:Oe,borderTopLeftRadius:Oe,borderTopRightRadius:Oe,borderBottomRightRadius:Oe,borderBottomLeftRadius:Oe,width:Oe,maxWidth:Oe,height:Oe,maxHeight:Oe,top:Oe,right:Oe,bottom:Oe,left:Oe,padding:Oe,paddingTop:Oe,paddingRight:Oe,paddingBottom:Oe,paddingLeft:Oe,margin:Oe,marginTop:Oe,marginRight:Oe,marginBottom:Oe,marginLeft:Oe,backgroundPositionX:Oe,backgroundPositionY:Oe,...zB,zIndex:a4,fillOpacity:Nc,strokeOpacity:Nc,numOctaves:a4},qB={...fv,color:Ut,backgroundColor:Ut,outlineColor:Ut,fill:Ut,stroke:Ut,borderColor:Ut,borderTopColor:Ut,borderRightColor:Ut,borderBottomColor:Ut,borderLeftColor:Ut,filter:Dg,WebkitFilter:Dg},fC=e=>qB[e];function dC(e,t){let n=fC(e);return n!==Dg&&(n=ho),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const HB=new Set(["auto","none","0"]);function GB(e,t,n){let i=0,r;for(;i<e.length&&!r;){const s=e[i];typeof s=="string"&&!HB.has(s)&&Oc(s).values.length&&(r=e[i]),i++}if(r&&n)for(const s of t)e[s]=dC(n,r)}class YB extends lv{constructor(t,n,i,r,s){super(t,n,i,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),tv(h))){const p=sC(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!aC.has(i)||t.length!==2)return;const[r,s]=t,a=s4(r),c=s4(s);if(a!==c)if(i4(a)&&i4(c))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else es[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let r=0;r<t.length;r++)(t[r]===null||VB(t[r]))&&i.push(r);i.length&&GB(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=es[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const s=i.length-1,a=i[s];i[s]=es[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function QB(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const r=(n==null?void 0:n[e])??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const hC=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function XB(e){return N8(e)&&"offsetHeight"in e}const l4=30,ZB=e=>!isNaN(parseFloat(e)),uc={current:void 0};class WB{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var s;const r=Bn.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Bn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ZB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new W2);const i=this.events[t].add(n);return t==="change"?()=>{i(),yt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return uc.current&&uc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Bn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>l4)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,l4);return R8(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ss(e,t){return new WB(e,t)}const{schedule:dv}=U8(queueMicrotask,!1),Vi={x:!1,y:!1};function pC(){return Vi.x||Vi.y}function KB(e){return e==="x"||e==="y"?Vi[e]?null:(Vi[e]=!0,()=>{Vi[e]=!1}):Vi.x||Vi.y?null:(Vi.x=Vi.y=!0,()=>{Vi.x=Vi.y=!1})}function mC(e,t){const n=QB(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function c4(e){return!(e.pointerType==="touch"||pC())}function JB(e,t,n={}){const[i,r,s]=mC(e,n),a=c=>{if(!c4(c))return;const{target:f}=c,h=t(f,c);if(typeof h!="function"||!f)return;const p=g=>{c4(g)&&(h(g),f.removeEventListener("pointerleave",p))};f.addEventListener("pointerleave",p,r)};return i.forEach(c=>{c.addEventListener("pointerenter",a,r)}),s}const gC=(e,t)=>t?e===t?!0:gC(e,t.parentElement):!1,hv=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,eU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tU(e){return eU.has(e.tagName)||e.tabIndex!==-1}const Yd=new WeakSet;function f4(e){return t=>{t.key==="Enter"&&e(t)}}function om(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const nU=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=f4(()=>{if(Yd.has(n))return;om(n,"down");const r=f4(()=>{om(n,"up")}),s=()=>om(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function d4(e){return hv(e)&&!pC()}function iU(e,t,n={}){const[i,r,s]=mC(e,n),a=c=>{const f=c.currentTarget;if(!d4(c))return;Yd.add(f);const h=t(f,c),p=(y,E)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",v),Yd.has(f)&&Yd.delete(f),d4(y)&&typeof h=="function"&&h(y,{success:E})},g=y=>{p(y,f===window||f===document||n.useGlobalTarget||gC(f,y.target))},v=y=>{p(y,!1)};window.addEventListener("pointerup",g,r),window.addEventListener("pointercancel",v,r)};return i.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,r),XB(c)&&(c.addEventListener("focus",h=>nU(h,r)),!tU(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function vC(e){return N8(e)&&"ownerSVGElement"in e}function rU(e){return vC(e)&&e.tagName==="svg"}function uU(...e){const t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],r=e[1+n],s=e[2+n],a=e[3+n],c=J8(r,s,a);return t?c(i):c}const gn=e=>!!(e&&e.getVelocity),oU=[...cC,Ut,ho],sU=e=>oU.find(lC(e)),pv=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function aU(e=!0){const t=x.useContext(G2);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:r}=t,s=x.useId();x.useEffect(()=>{if(e)return r(s)},[e]);const a=x.useCallback(()=>e&&i&&i(s),[s,i,e]);return!n&&i?[!1,a]:[!0]}const yC=x.createContext({strict:!1}),h4={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ka={};for(const e in h4)ka[e]={isEnabled:t=>h4[e].some(n=>!!t[n])};function lU(e){for(const t in e)ka[t]={...ka[t],...e[t]}}const cU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function x0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cU.has(e)}let bC=e=>!x0(e);function fU(e){typeof e=="function"&&(bC=t=>t.startsWith("on")?!x0(t):e(t))}try{fU(require("@emotion/is-prop-valid").default)}catch{}function dU(e,t,n){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(bC(r)||n===!0&&x0(r)||!t&&!x0(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}const ih=x.createContext({});function rh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rc(e){return typeof e=="string"||Array.isArray(e)}const mv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gv=["initial",...mv];function uh(e){return rh(e.animate)||gv.some(t=>Rc(e[t]))}function xC(e){return!!(uh(e)||e.variants)}function hU(e,t){if(uh(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Rc(n)?n:void 0,animate:Rc(i)?i:void 0}}return e.inherit!==!1?t:{}}function pU(e){const{initial:t,animate:n}=hU(e,x.useContext(ih));return x.useMemo(()=>({initial:t,animate:n}),[p4(t),p4(n)])}function p4(e){return Array.isArray(e)?e.join(" "):e}const kc={};function mU(e){for(const t in e)kc[t]=e[t],ev(t)&&(kc[t].isCSSVariable=!0)}function EC(e,{layout:t,layoutId:n}){return qa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!kc[e]||e==="opacity")}const gU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vU=za.length;function yU(e,t,n){let i="",r=!0;for(let s=0;s<vU;s++){const a=za[s],c=e[a];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(a.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const h=hC(c,fv[a]);if(!f){r=!1;const p=gU[a]||a;i+=`${p}(${h}) `}n&&(t[a]=h)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function vv(e,t,n){const{style:i,vars:r,transformOrigin:s}=e;let a=!1,c=!1;for(const f in t){const h=t[f];if(qa.has(f)){a=!0;continue}else if(ev(f)){r[f]=h;continue}else{const p=hC(h,fv[f]);f.startsWith("origin")?(c=!0,s[f]=p):i[f]=p}}if(t.transform||(a||n?i.transform=yU(t,e.transform,n):i.transform&&(i.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:p=0}=s;i.transformOrigin=`${f} ${h} ${p}`}}const yv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function TC(e,t,n){for(const i in t)!gn(t[i])&&!EC(i,n)&&(e[i]=t[i])}function bU({transformTemplate:e},t){return x.useMemo(()=>{const n=yv();return vv(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xU(e,t){const n=e.style||{},i={};return TC(i,n,e),Object.assign(i,bU(e,t)),i}function EU(e,t){const n={},i=xU(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const TU={offset:"stroke-dashoffset",array:"stroke-dasharray"},SU={offset:"strokeDashoffset",array:"strokeDasharray"};function _U(e,t,n=1,i=0,r=!0){e.pathLength=1;const s=r?TU:SU;e[s.offset]=Oe.transform(-i);const a=Oe.transform(t),c=Oe.transform(n);e[s.array]=`${a} ${c}`}function SC(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...c},f,h,p){if(vv(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:v}=e;g.transform&&(v.transform=g.transform,delete g.transform),(v.transform||g.transformOrigin)&&(v.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),v.transform&&(v.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),i!==void 0&&(g.scale=i),r!==void 0&&_U(g,r,s,a,!1)}const _C=()=>({...yv(),attrs:{}}),CC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function CU(e,t,n,i){const r=x.useMemo(()=>{const s=_C();return SC(s,t,CC(i),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};TC(s,e.style,e),r.style={...s,...r.style}}return r}const AU=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function bv(e){return typeof e!="string"||e.includes("-")?!1:!!(AU.indexOf(e)>-1||/[A-Z]/u.test(e))}function wU(e,t,n,{latestValues:i},r,s=!1){const c=(bv(e)?CU:EU)(t,i,r,e),f=dU(t,typeof e=="string",s),h=e!==x.Fragment?{...f,...c,ref:n}:{},{children:p}=t,g=x.useMemo(()=>gn(p)?p.get():p,[p]);return x.createElement(e,{...h,children:g})}function m4(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function xv(e,t,n,i){if(typeof t=="function"){const[r,s]=m4(i);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=m4(i);t=t(n!==void 0?n:e.custom,r,s)}return t}function Qd(e){return gn(e)?e.get():e}function DU({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,r){return{latestValues:NU(n,i,r,e),renderState:t()}}function NU(e,t,n,i){const r={},s=i(e,{});for(const v in s)r[v]=Qd(s[v]);let{initial:a,animate:c}=e;const f=uh(e),h=xC(e);t&&h&&!f&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const g=p?c:a;if(g&&typeof g!="boolean"&&!rh(g)){const v=Array.isArray(g)?g:[g];for(let y=0;y<v.length;y++){const E=xv(e,v[y]);if(E){const{transitionEnd:T,transition:_,...S}=E;for(const D in S){let A=S[D];if(Array.isArray(A)){const N=p?A.length-1:0;A=A[N]}A!==null&&(r[D]=A)}for(const D in T)r[D]=T[D]}}}return r}const AC=e=>(t,n)=>{const i=x.useContext(ih),r=x.useContext(G2),s=()=>DU(e,t,i,r);return n?s():Wc(s)};function Ev(e,t,n){var s;const{style:i}=e,r={};for(const a in i)(gn(i[a])||t.style&&gn(t.style[a])||EC(a,e)||((s=n==null?void 0:n.getValue(a))==null?void 0:s.liveStyle)!==void 0)&&(r[a]=i[a]);return r}const OU=AC({scrapeMotionValuesFromProps:Ev,createRenderState:yv});function wC(e,t,n){const i=Ev(e,t,n);for(const r in e)if(gn(e[r])||gn(t[r])){const s=za.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[s]=e[r]}return i}const RU=AC({scrapeMotionValuesFromProps:wC,createRenderState:_C}),kU=Symbol.for("motionComponentSymbol");function ca(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function MU(e,t,n){return x.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):ca(n)&&(n.current=i))},[t])}const Tv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),LU="framerAppearId",DC="data-"+Tv(LU),NC=x.createContext({});function IU(e,t,n,i,r){var T,_;const{visualElement:s}=x.useContext(ih),a=x.useContext(yC),c=x.useContext(G2),f=x.useContext(pv).reducedMotion,h=x.useRef(null);i=i||a.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const p=h.current,g=x.useContext(NC);p&&!p.projection&&r&&(p.type==="html"||p.type==="svg")&&FU(h.current,n,r,g);const v=x.useRef(!1);x.useInsertionEffect(()=>{p&&v.current&&p.update(n,c)});const y=n[DC],E=x.useRef(!!y&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,y))&&((_=window.MotionHasOptimisedAnimation)==null?void 0:_.call(window,y)));return w8(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),E.current&&p.animationState&&p.animationState.animateChanges())}),x.useEffect(()=>{p&&(!E.current&&p.animationState&&p.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,y)}),E.current=!1),p.enteringChildren=void 0)}),p}function FU(e,t,n,i){const{layoutId:r,layout:s,drag:a,dragConstraints:c,layoutScroll:f,layoutRoot:h,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:OC(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||c&&ca(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,crossfade:p,layoutScroll:f,layoutRoot:h})}function OC(e){if(e)return e.options.allowProjection!==!1?e.projection:OC(e.parent)}function sm(e,{forwardMotionProps:t=!1}={},n,i){n&&lU(n);const r=bv(e)?RU:OU;function s(c,f){let h;const p={...x.useContext(pv),...c,layoutId:jU(c)},{isStatic:g}=p,v=pU(c),y=r(c,g);if(!g&&H2){PU();const E=VU(p);h=E.MeasureLayout,v.visualElement=IU(e,y,p,i,E.ProjectionNode)}return C.jsxs(ih.Provider,{value:v,children:[h&&v.visualElement?C.jsx(h,{visualElement:v.visualElement,...p}):null,wU(e,c,MU(y,v.visualElement,f),y,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=x.forwardRef(s);return a[kU]=e,a}function jU({layoutId:e}){const t=x.useContext(A8).id;return t&&e!==void 0?t+"-"+e:e}function PU(e,t){x.useContext(yC).strict}function VU(e){const{drag:t,layout:n}=ka;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function $U(e,t){if(typeof Proxy>"u")return sm;const n=new Map,i=(s,a)=>sm(s,a,e,t),r=(s,a)=>i(s,a);return new Proxy(r,{get:(s,a)=>a==="create"?i:(n.has(a)||n.set(a,sm(a,void 0,e,t)),n.get(a))})}function RC({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function BU({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function UU(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function am(e){return e===void 0||e===1}function Ng({scale:e,scaleX:t,scaleY:n}){return!am(e)||!am(t)||!am(n)}function Uo(e){return Ng(e)||kC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function kC(e){return g4(e.x)||g4(e.y)}function g4(e){return e&&e!=="0%"}function E0(e,t,n){const i=e-n,r=t*i;return n+r}function v4(e,t,n,i,r){return r!==void 0&&(e=E0(e,r,i)),E0(e,n,i)+t}function Og(e,t=0,n=1,i,r){e.min=v4(e.min,t,n,i,r),e.max=v4(e.max,t,n,i,r)}function MC(e,{x:t,y:n}){Og(e.x,t.translate,t.scale,t.originPoint),Og(e.y,n.translate,n.scale,n.originPoint)}const y4=.999999999999,b4=1.0000000000001;function zU(e,t,n,i=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let c=0;c<r;c++){s=n[c],a=s.projectionDelta;const{visualElement:f}=s.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&da(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,MC(e,a)),i&&Uo(s.latestValues)&&da(e,s.latestValues))}t.x<b4&&t.x>y4&&(t.x=1),t.y<b4&&t.y>y4&&(t.y=1)}function fa(e,t){e.min=e.min+t,e.max=e.max+t}function x4(e,t,n,i,r=.5){const s=Tt(e.min,e.max,r);Og(e,t,n,s,i)}function da(e,t){x4(e.x,t.x,t.scaleX,t.scale,t.originX),x4(e.y,t.y,t.scaleY,t.scale,t.originY)}function LC(e,t){return RC(UU(e.getBoundingClientRect(),t))}function qU(e,t,n){const i=LC(e,n),{scroll:r}=t;return r&&(fa(i.x,r.offset.x),fa(i.y,r.offset.y)),i}const E4=()=>({translate:0,scale:1,origin:0,originPoint:0}),ha=()=>({x:E4(),y:E4()}),T4=()=>({min:0,max:0}),Lt=()=>({x:T4(),y:T4()}),Rg={current:null},IC={current:!1};function HU(){if(IC.current=!0,!!H2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Rg.current=e.matches;e.addEventListener("change",t),t()}else Rg.current=!1}const GU=new WeakMap;function YU(e,t,n){for(const i in t){const r=t[i],s=n[i];if(gn(r))e.addValue(i,r);else if(gn(s))e.addValue(i,ss(r,{owner:e}));else if(s!==r)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(i);e.addValue(i,ss(a!==void 0?a:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const S4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class QU{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Bn.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,yt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=a;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=uh(n),this.isVariantNode=xC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in g){const y=g[v];f[v]!==void 0&&gn(y)&&y.set(f[v])}}mount(t){var n;this.current=t,GU.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,r)=>this.bindToMotionValue(r,i)),IC.current||HU(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Rg.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),yu(this.notifyUpdate),yu(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=qa.has(t);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&yt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ka){const n=ka[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<S4.length;i++){const r=S4[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=YU(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=ss(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(D8(i)||O8(i))?i=parseFloat(i):!sU(i)&&ho.test(n)&&(i=dC(t,n)),this.setBaseTarget(t,gn(i)?i.get():i)),gn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const a=xv(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);a&&(i=a[t])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!gn(r)?r:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new W2),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){dv.render(this.render)}}class FC extends QU{constructor(){super(...arguments),this.KeyframeResolver=YB}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function jC(e,{style:t,vars:n},i,r){const s=e.style;let a;for(a in t)s[a]=t[a];r==null||r.applyProjectionStyles(s,i);for(a in n)s.setProperty(a,n[a])}function XU(e){return window.getComputedStyle(e)}class ZU extends FC{constructor(){super(...arguments),this.type="html",this.renderInstance=jC}readValueFromInstance(t,n){var i;if(qa.has(n))return(i=this.projection)!=null&&i.isProjecting?Tg(n):dB(t,n);{const r=XU(t),s=(ev(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return LC(t,n)}build(t,n,i){vv(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Ev(t,n,i)}}const PC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function WU(e,t,n,i){jC(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(PC.has(r)?r:Tv(r),t.attrs[r])}class KU extends FC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Lt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qa.has(n)){const i=fC(n);return i&&i.default||0}return n=PC.has(n)?n:Tv(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return wC(t,n,i)}build(t,n,i){SC(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,r){WU(t,n,i,r)}mount(t){this.isSVGTag=CC(t.tagName),super.mount(t)}}const JU=(e,t)=>bv(e)?new KU(t):new ZU(t,{allowProjection:e!==x.Fragment});function Ea(e,t,n){const i=e.getProps();return xv(i,t,n!==void 0?n:i.custom,e)}const kg=e=>Array.isArray(e);function ez(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ss(n))}function tz(e){return kg(e)?e[e.length-1]||0:e}function nz(e,t){const n=Ea(e,t);let{transitionEnd:i={},transition:r={},...s}=n||{};s={...s,...i};for(const a in s){const c=tz(s[a]);ez(e,a,c)}}function iz(e){return!!(gn(e)&&e.add)}function Mg(e,t){const n=e.getValue("willChange");if(iz(n))return n.add(t);if(!n&&vu.WillChange){const i=new vu.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function VC(e){return e.props[DC]}const rz=e=>e!==null;function uz(e,{repeat:t,repeatType:n="loop"},i){const r=e.filter(rz),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[s]}const oz={type:"spring",stiffness:500,damping:25,restSpeed:10},sz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),az={type:"keyframes",duration:.8},lz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cz=(e,{keyframes:t})=>t.length>2?az:qa.has(e)?e.startsWith("scale")?sz(t[1]):oz:lz;function fz({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:c,from:f,elapsed:h,...p}){return!!Object.keys(p).length}const Sv=(e,t,n,i={},r,s)=>a=>{const c=cv(i,e)||{},f=c.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Sr(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:v=>{t.set(v),c.onUpdate&&c.onUpdate(v)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:r};fz(c)||Object.assign(p,cz(e,p)),p.duration&&(p.duration=Sr(p.duration)),p.repeatDelay&&(p.repeatDelay=Sr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(wg(p),p.delay===0&&(g=!0)),(vu.instantAnimations||vu.skipAnimations)&&(g=!0,wg(p),p.delay=0),p.allowFlatten=!c.type&&!c.ease,g&&!s&&t.get()!==void 0){const v=uz(p.keyframes,c);if(v!==void 0){yt.update(()=>{p.onUpdate(v),p.onComplete()});return}}return c.isSync?new av(p):new IB(p)};function dz({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function $C(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...c}=t;i&&(s=i);const f=[],h=r&&e.animationState&&e.animationState.getState()[r];for(const p in c){const g=e.getValue(p,e.latestValues[p]??null),v=c[p];if(v===void 0||h&&dz(h,p))continue;const y={delay:n,...cv(s||{},p)},E=g.get();if(E!==void 0&&!g.isAnimating&&!Array.isArray(v)&&v===E&&!y.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const S=VC(e);if(S){const D=window.MotionHandoffAnimation(S,p,yt);D!==null&&(y.startTime=D,T=!0)}}Mg(e,p),g.start(Sv(p,g,v,e.shouldReduceMotion&&aC.has(p)?{type:!1}:y,e,T));const _=g.animation;_&&f.push(_)}return a&&Promise.all(f).then(()=>{yt.update(()=>{a&&nz(e,a)})}),f}function BC(e,t,n,i=0,r=1){const s=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),a=e.size,c=(a-1)*i;return typeof n=="function"?n(s,a):r===1?s*i:c-s*i}function Lg(e,t,n={}){var f;const i=Ea(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const s=i?()=>Promise.all($C(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:v}=r;return hz(e,t,h,p,g,v,n)}:()=>Promise.resolve(),{when:c}=r;if(c){const[h,p]=c==="beforeChildren"?[s,a]:[a,s];return h().then(()=>p())}else return Promise.all([s(),a(n.delay)])}function hz(e,t,n=0,i=0,r=0,s=1,a){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(Lg(f,t,{...a,delay:n+(typeof i=="function"?0:i)+BC(e.variantChildren,f,i,r,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function pz(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(s=>Lg(e,s,n));i=Promise.all(r)}else if(typeof t=="string")i=Lg(e,t,n);else{const r=typeof t=="function"?Ea(e,t,n.custom):t;i=Promise.all($C(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function UC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const mz=gv.length;function zC(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zC(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<mz;n++){const i=gv[n],r=e.props[i];(Rc(r)||r===!1)&&(t[i]=r)}return t}const gz=[...mv].reverse(),vz=mv.length;function yz(e){return t=>Promise.all(t.map(({animation:n,options:i})=>pz(e,n,i)))}function bz(e){let t=yz(e),n=_4(),i=!0;const r=f=>(h,p)=>{var v;const g=Ea(e,p,f==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(g){const{transition:y,transitionEnd:E,...T}=g;h={...h,...T,...E}}return h};function s(f){t=f(e)}function a(f){const{props:h}=e,p=zC(e.parent)||{},g=[],v=new Set;let y={},E=1/0;for(let _=0;_<vz;_++){const S=gz[_],D=n[S],A=h[S]!==void 0?h[S]:p[S],N=Rc(A),R=S===f?D.isActive:null;R===!1&&(E=_);let M=A===p[S]&&A!==h[S]&&N;if(M&&i&&e.manuallyAnimateOnMount&&(M=!1),D.protectedKeys={...y},!D.isActive&&R===null||!A&&!D.prevProp||rh(A)||typeof A=="boolean")continue;const j=xz(D.prevProp,A);let $=j||S===f&&D.isActive&&!M&&N||_>E&&N,L=!1;const U=Array.isArray(A)?A:[A];let Y=U.reduce(r(S),{});R===!1&&(Y={});const{prevResolvedValues:K={}}=D,se={...K,...Y},ne=z=>{$=!0,v.has(z)&&(L=!0,v.delete(z)),D.needsAnimating[z]=!0;const P=e.getValue(z);P&&(P.liveStyle=!1)};for(const z in se){const P=Y[z],V=K[z];if(y.hasOwnProperty(z))continue;let k=!1;kg(P)&&kg(V)?k=!UC(P,V):k=P!==V,k?P!=null?ne(z):v.add(z):P!==void 0&&v.has(z)?ne(z):D.protectedKeys[z]=!0}D.prevProp=A,D.prevResolvedValues=Y,D.isActive&&(y={...y,...Y}),i&&e.blockInitialAnimation&&($=!1);const te=M&&j;$&&(!te||L)&&g.push(...U.map(z=>{const P={type:S};if(typeof z=="string"&&i&&!te&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,k=Ea(V,z);if(V.enteringChildren&&k){const{delayChildren:H}=k.transition||{};P.delay=BC(V.enteringChildren,e,H)}}return{animation:z,options:P}}))}if(v.size){const _={};if(typeof h.initial!="boolean"){const S=Ea(e,Array.isArray(h.initial)?h.initial[0]:h.initial);S&&S.transition&&(_.transition=S.transition)}v.forEach(S=>{const D=e.getBaseTarget(S),A=e.getValue(S);A&&(A.liveStyle=!0),_[S]=D??null}),g.push({animation:_})}let T=!!g.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(T=!1),i=!1,T?t(g):Promise.resolve()}function c(f,h){var g;if(n[f].isActive===h)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(v=>{var y;return(y=v.animationState)==null?void 0:y.setActive(f,h)}),n[f].isActive=h;const p=a(f);for(const v in n)n[v].protectedKeys={};return p}return{animateChanges:a,setActive:c,setAnimateFunction:s,getState:()=>n,reset:()=>{n=_4(),i=!0}}}function xz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!UC(t,e):!1}function Bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _4(){return{animate:Bo(!0),whileInView:Bo(),whileHover:Bo(),whileTap:Bo(),whileDrag:Bo(),whileFocus:Bo(),exit:Bo()}}class mo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Ez extends mo{constructor(t){super(t),t.animationState||(t.animationState=bz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();rh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Tz=0;class Sz extends mo{constructor(){super(...arguments),this.id=Tz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const _z={animation:{Feature:Ez},exit:{Feature:Sz}};function Mc(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function tf(e){return{point:{x:e.pageX,y:e.pageY}}}const Cz=e=>t=>hv(t)&&e(t,tf(t));function oc(e,t,n,i){return Mc(e,t,Cz(n),i)}const qC=1e-4,Az=1-qC,wz=1+qC,HC=.01,Dz=0-HC,Nz=0+HC;function Rn(e){return e.max-e.min}function Oz(e,t,n){return Math.abs(e-t)<=n}function C4(e,t,n,i=.5){e.origin=i,e.originPoint=Tt(t.min,t.max,e.origin),e.scale=Rn(n)/Rn(t),e.translate=Tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Az&&e.scale<=wz||isNaN(e.scale))&&(e.scale=1),(e.translate>=Dz&&e.translate<=Nz||isNaN(e.translate))&&(e.translate=0)}function sc(e,t,n,i){C4(e.x,t.x,n.x,i?i.originX:void 0),C4(e.y,t.y,n.y,i?i.originY:void 0)}function A4(e,t,n){e.min=n.min+t.min,e.max=e.min+Rn(t)}function Rz(e,t,n){A4(e.x,t.x,n.x),A4(e.y,t.y,n.y)}function w4(e,t,n){e.min=t.min-n.min,e.max=e.min+Rn(t)}function ac(e,t,n){w4(e.x,t.x,n.x),w4(e.y,t.y,n.y)}function Ei(e){return[e("x"),e("y")]}const GC=({current:e})=>e?e.ownerDocument.defaultView:null,D4=(e,t)=>Math.abs(e-t);function kz(e,t){const n=D4(e.x,t.x),i=D4(e.y,t.y);return Math.sqrt(n**2+i**2)}class YC{constructor(t,n,{transformPagePoint:i,contextWindow:r=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=cm(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,E=kz(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!E)return;const{point:T}=v,{timestamp:_}=mn;this.history.push({...T,timestamp:_});const{onStart:S,onMove:D}=this.handlers;y||(S&&S(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,v)},this.handlePointerMove=(v,y)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=lm(y,this.transformPagePoint),yt.update(this.updatePoint,!0)},this.handlePointerUp=(v,y)=>{this.end();const{onEnd:E,onSessionEnd:T,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=cm(v.type==="pointercancel"?this.lastMoveEventInfo:lm(y,this.transformPagePoint),this.history);this.startEvent&&E&&E(v,S),T&&T(v,S)},!hv(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=a,this.contextWindow=r||window;const c=tf(t),f=lm(c,this.transformPagePoint),{point:h}=f,{timestamp:p}=mn;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,cm(f,this.history)),this.removeListeners=Kc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),yu(this.updatePoint)}}function lm(e,t){return t?{point:t(e.point)}:e}function N4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cm({point:e},t){return{point:e,delta:N4(e,QC(t)),offset:N4(e,Mz(t)),velocity:Lz(t,.1)}}function Mz(e){return e[0]}function QC(e){return e[e.length-1]}function Lz(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const r=QC(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>Sr(t)));)n--;if(!i)return{x:0,y:0};const s=_r(r.timestamp-i.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-i.x)/s,y:(r.y-i.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Iz(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?Tt(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?Tt(n,e,i.max):Math.min(e,n)),e}function O4(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Fz(e,{top:t,left:n,bottom:i,right:r}){return{x:O4(e.x,n,r),y:O4(e.y,t,i)}}function R4(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function jz(e,t){return{x:R4(e.x,t.x),y:R4(e.y,t.y)}}function Pz(e,t){let n=.5;const i=Rn(e),r=Rn(t);return r>i?n=Dc(t.min,t.max-i,e.min):i>r&&(n=Dc(e.min,e.max-r,t.min)),gu(0,1,n)}function Vz(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ig=.35;function $z(e=Ig){return e===!1?e=0:e===!0&&(e=Ig),{x:k4(e,"left","right"),y:k4(e,"top","bottom")}}function k4(e,t,n){return{min:M4(e,t),max:M4(e,n)}}function M4(e,t){return typeof e=="number"?e:e[t]||0}const Bz=new WeakMap;class Uz{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tf(g).point)},a=(g,v)=>{const{drag:y,dragPropagation:E,onDragStart:T}=this.getProps();if(y&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=KB(y),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ei(S=>{let D=this.getAxisMotionValue(S).get()||0;if(Cr.test(D)){const{projection:A}=this.visualElement;if(A&&A.layout){const N=A.layout.layoutBox[S];N&&(D=Rn(N)*(parseFloat(D)/100))}}this.originPoint[S]=D}),T&&yt.postRender(()=>T(g,v)),Mg(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},c=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v;const{dragPropagation:y,dragDirectionLock:E,onDirectionLock:T,onDrag:_}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:S}=v;if(E&&this.currentDirection===null){this.currentDirection=zz(S),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",v.point,S),this.updateAxis("y",v.point,S),this.visualElement.render(),_&&_(g,v)},f=(g,v)=>{this.latestPointerEvent=g,this.latestPanInfo=v,this.stop(g,v),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Ei(g=>{var v;return this.getAnimationState(g)==="paused"&&((v=this.getAxisMotionValue(g).animation)==null?void 0:v.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new YC(t,{onSessionStart:s,onStart:a,onMove:c,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:i,contextWindow:GC(this.visualElement)})}stop(t,n){const i=t||this.latestPointerEvent,r=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!r||!i)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:c}=this.getProps();c&&yt.postRender(()=>c(i,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:r}=this.getProps();if(!i||!Id(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(a=Iz(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,r=this.constraints;t&&ca(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=Fz(i.layoutBox,t):this.constraints=!1,this.elastic=$z(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ei(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Vz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ca(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=qU(i,r.root,this.visualElement.getTransformPagePoint());let a=jz(r.layout.layoutBox,s);if(n){const c=n(BU(a));this.hasMutatedConstraints=!!c,c&&(a=RC(c))}return a}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=Ei(p=>{if(!Id(p,n,this.currentDirection))return;let g=f&&f[p]||{};a&&(g={min:0,max:0});const v=r?200:1e6,y=r?40:1e7,E={type:"inertia",velocity:i?t[p]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(p,E)});return Promise.all(h).then(c)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Mg(this.visualElement,t),i.start(Sv(t,i,0,n,this.visualElement,!1))}stopAnimation(){Ei(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ei(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Ei(n=>{const{drag:i}=this.getProps();if(!Id(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:c}=r.layout.layoutBox[n];s.set(t[n]-Tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ca(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ei(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const f=c.get();r[a]=Pz({min:f,max:f},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ei(a=>{if(!Id(a,t,null))return;const c=this.getAxisMotionValue(a),{min:f,max:h}=this.constraints[a];c.set(Tt(f,h,r[a]))})}addListeners(){if(!this.visualElement.current)return;Bz.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();ca(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),yt.read(i);const a=Mc(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Ei(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=Ig,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:c}}}function Id(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zz(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class qz extends mo{constructor(t){super(t),this.removeGroupControls=Ci,this.removeListeners=Ci,this.controls=new Uz(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ci}unmount(){this.removeGroupControls(),this.removeListeners()}}const L4=e=>(t,n)=>{e&&yt.postRender(()=>e(t,n))};class Hz extends mo{constructor(){super(...arguments),this.removePointerDownListener=Ci}onPointerDown(t){this.session=new YC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:GC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:L4(t),onStart:L4(n),onMove:i,onEnd:(s,a)=>{delete this.session,r&&yt.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=oc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Xd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function I4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Oe.test(e))e=parseFloat(e);else return e;const n=I4(e,t.target.x),i=I4(e,t.target.y);return`${n}% ${i}%`}},Gz={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=ho.parse(e);if(r.length>5)return i;const s=ho.createTransformer(e),a=typeof r[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;r[0+a]/=c,r[1+a]/=f;const h=Tt(c,f,.5);return typeof r[2+a]=="number"&&(r[2+a]/=h),typeof r[3+a]=="number"&&(r[3+a]/=h),s(r)}};let fm=!1;class Yz extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=t;mU(Qz),s&&(n.group&&n.group.add(s),i&&i.register&&r&&i.register(s),fm&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Xd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:r,isPresent:s}=this.props,{projection:a}=i;return a&&(a.isPresent=s,fm=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||yt.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),dv.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=t;fm=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function XC(e){const[t,n]=aU(),i=x.useContext(A8);return C.jsx(Yz,{...e,layoutGroup:i,switchLayoutGroup:x.useContext(NC),isPresent:t,safeToRemove:n})}const Qz={borderRadius:{...Hl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hl,borderTopRightRadius:Hl,borderBottomLeftRadius:Hl,borderBottomRightRadius:Hl,boxShadow:Gz};function Xz(e,t,n){const i=gn(e)?e:ss(e);return i.start(Sv("",i,t,n)),i.animation}const Zz=(e,t)=>e.depth-t.depth;class Wz{constructor(){this.children=[],this.isDirty=!1}add(t){Y2(this.children,t),this.isDirty=!0}remove(t){Q2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zz),this.isDirty=!1,this.children.forEach(t)}}function Kz(e,t){const n=Bn.now(),i=({timestamp:r})=>{const s=r-n;s>=t&&(yu(i),e(s-t))};return yt.setup(i,!0),()=>yu(i)}const ZC=["TopLeft","TopRight","BottomLeft","BottomRight"],Jz=ZC.length,F4=e=>typeof e=="string"?parseFloat(e):e,j4=e=>typeof e=="number"||Oe.test(e);function eq(e,t,n,i,r,s){r?(e.opacity=Tt(0,n.opacity??1,tq(i)),e.opacityExit=Tt(t.opacity??1,0,nq(i))):s&&(e.opacity=Tt(t.opacity??1,n.opacity??1,i));for(let a=0;a<Jz;a++){const c=`border${ZC[a]}Radius`;let f=P4(t,c),h=P4(n,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||j4(f)===j4(h)?(e[c]=Math.max(Tt(F4(f),F4(h),i),0),(Cr.test(h)||Cr.test(f))&&(e[c]+="%")):e[c]=h}(t.rotate||n.rotate)&&(e.rotate=Tt(t.rotate||0,n.rotate||0,i))}function P4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tq=WC(0,.5,P8),nq=WC(.5,.95,Ci);function WC(e,t,n){return i=>i<e?0:i>t?1:n(Dc(e,t,i))}function V4(e,t){e.min=t.min,e.max=t.max}function bi(e,t){V4(e.x,t.x),V4(e.y,t.y)}function $4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B4(e,t,n,i,r){return e-=t,e=E0(e,1/n,i),r!==void 0&&(e=E0(e,1/r,i)),e}function iq(e,t=0,n=1,i=.5,r,s=e,a=e){if(Cr.test(t)&&(t=parseFloat(t),t=Tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=Tt(s.min,s.max,i);e===s&&(c-=t),e.min=B4(e.min,t,n,c,r),e.max=B4(e.max,t,n,c,r)}function U4(e,t,[n,i,r],s,a){iq(e,t[n],t[i],t[r],t.scale,s,a)}const rq=["x","scaleX","originX"],uq=["y","scaleY","originY"];function z4(e,t,n,i){U4(e.x,t,rq,n?n.x:void 0,i?i.x:void 0),U4(e.y,t,uq,n?n.y:void 0,i?i.y:void 0)}function q4(e){return e.translate===0&&e.scale===1}function KC(e){return q4(e.x)&&q4(e.y)}function H4(e,t){return e.min===t.min&&e.max===t.max}function oq(e,t){return H4(e.x,t.x)&&H4(e.y,t.y)}function G4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function JC(e,t){return G4(e.x,t.x)&&G4(e.y,t.y)}function Y4(e){return Rn(e.x)/Rn(e.y)}function Q4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sq{constructor(){this.members=[]}add(t){Y2(this.members,t),t.scheduleRender()}remove(t){if(Q2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){i=s;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function aq(e,t,n){let i="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||s||a)&&(i=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:g,rotateY:v,skewX:y,skewY:E}=n;h&&(i=`perspective(${h}px) ${i}`),p&&(i+=`rotate(${p}deg) `),g&&(i+=`rotateX(${g}deg) `),v&&(i+=`rotateY(${v}deg) `),y&&(i+=`skewX(${y}deg) `),E&&(i+=`skewY(${E}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(i+=`scale(${c}, ${f})`),i||"none"}const dm=["","X","Y","Z"],lq=1e3;let cq=0;function hm(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function e9(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=VC(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",yt,!(r||s))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&e9(i)}function t9({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(a={},c=t==null?void 0:t()){this.id=cq++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hq),this.nodes.forEach(vq),this.nodes.forEach(yq),this.nodes.forEach(pq)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Wz)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new W2),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=vC(a)&&!rU(a),this.instance=a;const{layoutId:c,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let p,g=0;const v=()=>this.root.updateBlockedByResize=!1;yt.read(()=>{g=window.innerWidth}),e(a,()=>{const y=window.innerWidth;y!==g&&(g=y,this.root.updateBlockedByResize=!0,p&&p(),p=Kz(v,250),Xd.hasAnimatedSinceResize&&(Xd.hasAnimatedSinceResize=!1,this.nodes.forEach(W4)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:v,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||h.getDefaultTransition()||Sq,{onLayoutAnimationStart:T,onLayoutAnimationComplete:_}=h.getProps(),S=!this.targetLayout||!JC(this.targetLayout,y),D=!g&&v;if(this.options.layoutRoot||this.resumeFrom||D||g&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...cv(E,"layout"),onPlay:T,onComplete:_};(h.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(p,D)}else g||W4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),yu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bq),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&e9(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(X4);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Z4);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gq),this.nodes.forEach(fq),this.nodes.forEach(dq)):this.nodes.forEach(Z4),this.clearAllSnapshots();const c=Bn.now();mn.delta=gu(0,1e3/60,c-mn.timestamp),mn.timestamp=c,mn.isProcessing=!0,tm.update.process(mn),tm.preRender.process(mn),tm.render.process(mn),mn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,dv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mq),this.sharedNodes.forEach(xq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Rn(this.snapshot.measuredBox.x)&&!Rn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!KC(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;a&&this.instance&&(c||Uo(this.latestValues)||p)&&(r(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),_q(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:a}=this.options;if(!a)return Lt();const c=a.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(Cq))){const{scroll:p}=this.root;p&&(fa(c.x,p.offset.x),fa(c.y,p.offset.y))}return c}removeElementScroll(a){var f;const c=Lt();if(bi(c,a),(f=this.scroll)!=null&&f.wasRoot)return c;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:g,options:v}=p;p!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&bi(c,a),fa(c.x,g.offset.x),fa(c.y,g.offset.y))}return c}applyTransform(a,c=!1){const f=Lt();bi(f,a);for(let h=0;h<this.path.length;h++){const p=this.path[h];!c&&p.options.layoutScroll&&p.scroll&&p!==p.root&&da(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Uo(p.latestValues)&&da(f,p.latestValues)}return Uo(this.latestValues)&&da(f,this.latestValues),f}removeTransform(a){const c=Lt();bi(c,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Uo(h.latestValues))continue;Ng(h.latestValues)&&h.updateSnapshot();const p=Lt(),g=h.measurePageBox();bi(p,g),z4(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return Uo(this.latestValues)&&z4(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==mn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var v;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(a||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!(!this.layout||!(p||g))){if(this.resolvedRelativeTargetAt=mn.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),ac(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),bi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Lt(),this.targetWithTransforms=Lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Rz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):bi(this.target,this.layout.layoutBox),MC(this.target,this.targetDelta)):bi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),ac(this.relativeTargetOrigin,this.target,y.target),bi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ng(this.parent.latestValues)||kC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var E;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let f=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===mn.timestamp&&(f=!1),f)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;bi(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,v=this.treeScale.y;zU(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Lt());const{target:y}=a;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($4(this.prevProjectionDelta.x,this.projectionDelta.x),$4(this.prevProjectionDelta.y,this.projectionDelta.y)),sc(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==v||!Q4(this.projectionDelta.x,this.prevProjectionDelta.x)||!Q4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),a){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ha(),this.projectionDelta=ha(),this.projectionDeltaWithTransform=ha()}setAnimationOrigin(a,c=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},g=ha();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const v=Lt(),y=f?f.source:void 0,E=this.layout?this.layout.source:void 0,T=y!==E,_=this.getStack(),S=!_||_.members.length<=1,D=!!(T&&!S&&this.options.crossfade===!0&&!this.path.some(Tq));this.animationProgress=0;let A;this.mixTargetDelta=N=>{const R=N/1e3;K4(g.x,a.x,R),K4(g.y,a.y,R),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Eq(this.relativeTarget,this.relativeTargetOrigin,v,R),A&&oq(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=Lt()),bi(A,this.relativeTarget)),T&&(this.animationValues=p,eq(p,h,this.latestValues,R,D,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var c,f,h;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(),this.pendingAnimation&&(yu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yt.update(()=>{Xd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ss(0)),this.currentAnimation=Xz(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),a.onUpdate&&a.onUpdate(p)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(lq),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:p}=a;if(!(!c||!f||!h)){if(this!==a&&this.layout&&h&&n9(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Lt();const g=Rn(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const v=Rn(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+v}bi(c,f),da(c,p),sc(this.projectionDeltaWithTransform,this.layoutCorrected,c,p)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new sq),this.sharedNodes.get(a).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var c;const{layoutId:a}=this.options;return a?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:a}=this.options;return a?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&hm("z",a,h,this.animationValues);for(let p=0;p<dm.length;p++)hm(`rotate${dm[p]}`,a,h,this.animationValues),hm(`skew${dm[p]}`,a,h,this.animationValues);a.render();for(const p in h)a.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);a.scheduleRender()}applyProjectionStyles(a,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Qd(c==null?void 0:c.pointerEvents)||"",a.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Qd(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!Uo(this.latestValues)&&(a.transform=f?f({},""):"none",this.hasProjected=!1);return}a.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=aq(this.projectionDeltaWithTransform,this.treeScale,p);f&&(g=f(p,g)),a.transform=g;const{x:v,y}=this.projectionDelta;a.transformOrigin=`${v.origin*100}% ${y.origin*100}% 0`,h.animationValues?a.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:a.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const E in kc){if(p[E]===void 0)continue;const{correct:T,applyTo:_,isCSSVariable:S}=kc[E],D=g==="none"?p[E]:T(p[E],h);if(_){const A=_.length;for(let N=0;N<A;N++)a[_[N]]=D}else S?this.options.visualElement.renderState.vars[E]=D:a[E]=D}this.options.layoutId&&(a.pointerEvents=h===this?Qd(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(X4),this.root.sharedNodes.clear()}}}function fq(e){e.updateLayout()}function dq(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:s}=e.options,a=t.source!==e.layout.source;s==="size"?Ei(g=>{const v=a?t.measuredBox[g]:t.layoutBox[g],y=Rn(v);v.min=i[g].min,v.max=v.min+y}):n9(s,t.layoutBox,i)&&Ei(g=>{const v=a?t.measuredBox[g]:t.layoutBox[g],y=Rn(i[g]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+y)});const c=ha();sc(c,i,t.layoutBox);const f=ha();a?sc(f,e.applyTransform(r,!0),t.measuredBox):sc(f,i,t.layoutBox);const h=!KC(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:y}=g;if(v&&y){const E=Lt();ac(E,t.layoutBox,v.layoutBox);const T=Lt();ac(T,i,y.layoutBox),JC(E,T)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function hq(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mq(e){e.clearSnapshot()}function X4(e){e.clearMeasurements()}function Z4(e){e.isLayoutDirty=!1}function gq(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function W4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vq(e){e.resolveTargetDelta()}function yq(e){e.calcProjection()}function bq(e){e.resetSkewAndRotation()}function xq(e){e.removeLeadSnapshot()}function K4(e,t,n){e.translate=Tt(t.translate,0,n),e.scale=Tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function J4(e,t,n,i){e.min=Tt(t.min,n.min,i),e.max=Tt(t.max,n.max,i)}function Eq(e,t,n,i){J4(e.x,t.x,n.x,i),J4(e.y,t.y,n.y,i)}function Tq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sq={duration:.45,ease:[.4,0,.1,1]},e5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),t5=e5("applewebkit/")&&!e5("chrome/")?Math.round:Ci;function n5(e){e.min=t5(e.min),e.max=t5(e.max)}function _q(e){n5(e.x),n5(e.y)}function n9(e,t,n){return e==="position"||e==="preserve-aspect"&&!Oz(Y4(t),Y4(n),.2)}function Cq(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Aq=t9({attachResizeListener:(e,t)=>Mc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pm={current:void 0},i9=t9({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pm.current){const e=new Aq({});e.mount(window),e.setOptions({layoutScroll:!0}),pm.current=e}return pm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),wq={pan:{Feature:Hz},drag:{Feature:qz,ProjectionNode:i9,MeasureLayout:XC}};function i5(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=i[r];s&&yt.postRender(()=>s(t,tf(t)))}class Dq extends mo{mount(){const{current:t}=this.node;t&&(this.unmount=JB(t,(n,i)=>(i5(this.node,i,"Start"),r=>i5(this.node,r,"End"))))}unmount(){}}class Nq extends mo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Kc(Mc(this.node.current,"focus",()=>this.onFocus()),Mc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function r5(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=i[r];s&&yt.postRender(()=>s(t,tf(t)))}class Oq extends mo{mount(){const{current:t}=this.node;t&&(this.unmount=iU(t,(n,i)=>(r5(this.node,i,"Start"),(r,{success:s})=>r5(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Fg=new WeakMap,mm=new WeakMap,Rq=e=>{const t=Fg.get(e.target);t&&t(e)},kq=e=>{e.forEach(Rq)};function Mq({root:e,...t}){const n=e||document;mm.has(n)||mm.set(n,{});const i=mm.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(kq,{root:e,...t})),i[r]}function Lq(e,t,n){const i=Mq(t);return Fg.set(e,n),i.observe(e),()=>{Fg.delete(e),i.unobserve(e)}}const Iq={some:0,all:1};class Fq extends mo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:Iq[r]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,s&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),v=h?p:g;v&&v(f)};return Lq(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(jq(t,n))&&this.startObserver()}unmount(){}}function jq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Pq={inView:{Feature:Fq},tap:{Feature:Oq},focus:{Feature:Nq},hover:{Feature:Dq}},Vq={layout:{ProjectionNode:i9,MeasureLayout:XC}},$q={..._z,...Pq,...wq,...Vq},r9=$U($q,JU);function u9(e){const t=Wc(()=>ss(e)),{isStatic:n}=x.useContext(pv);if(n){const[,i]=x.useState(e);x.useEffect(()=>t.on("change",i),[])}return t}function o9(e,t){const n=u9(t()),i=()=>n.set(t());return i(),w8(()=>{const r=()=>yt.preRender(i,!1,!0),s=e.map(a=>a.on("change",r));return()=>{s.forEach(a=>a()),yu(i)}}),n}function Bq(e){uc.current=[],e();const t=o9(uc.current,e);return uc.current=void 0,t}function Uq(e,t,n,i){if(typeof e=="function")return Bq(e);const r=typeof t=="function"?t:uU(t,n,i);return Array.isArray(e)?u5(e,r):u5([e],([s])=>r(s))}function u5(e,t){const n=Wc(()=>[]);return o9(e,()=>{n.length=0;const i=e.length;for(let r=0;r<i;r++)n[r]=e[r].get();return t(n)})}const s9=x.createContext(null);function zq(e,t,n,i){if(!i)return e;const r=e.findIndex(p=>p.value===t);if(r===-1)return e;const s=i>0?1:-1,a=e[r+s];if(!a)return e;const c=e[r],f=a.layout,h=Tt(f.min,f.max,.5);return s===1&&c.layout.max+n>h||s===-1&&c.layout.min+n<h?c$(e,r,r+s):e}function qq({children:e,as:t="ul",axis:n="y",onReorder:i,values:r,...s},a){const c=Wc(()=>r9[t]),f=[],h=x.useRef(!1),p={axis:n,registerItem:(g,v)=>{const y=f.findIndex(E=>g===E.value);y!==-1?f[y].layout=v[n]:f.push({value:g,layout:v[n]}),f.sort(Yq)},updateOrder:(g,v,y)=>{if(h.current)return;const E=zq(f,g,v,y);f!==E&&(h.current=!0,i(E.map(Gq).filter(T=>r.indexOf(T)!==-1)))}};return x.useEffect(()=>{h.current=!1}),C.jsx(c,{...s,ref:a,ignoreStrict:!0,children:C.jsx(s9.Provider,{value:p,children:e})})}const Hq=x.forwardRef(qq);function Gq(e){return e.value}function Yq(e,t){return e.layout.min-t.layout.min}function o5(e,t=0){return gn(e)?e:u9(t)}function Qq({children:e,style:t={},value:n,as:i="li",onDrag:r,layout:s=!0,...a},c){const f=Wc(()=>r9[i]),h=x.useContext(s9),p={x:o5(t.x),y:o5(t.y)},g=Uq([p.x,p.y],([T,_])=>T||_?1:"unset"),{axis:v,registerItem:y,updateOrder:E}=h;return C.jsx(f,{drag:v,...a,dragSnapToOrigin:!0,style:{...t,x:p.x,y:p.y,zIndex:g},layout:s,onDrag:(T,_)=>{const{velocity:S}=_;S[v]&&E(n,p[v].get(),S[v]),r&&r(T,_)},onLayoutMeasure:T=>y(n,T),ref:c,ignoreStrict:!0,children:e})}const Xq=x.forwardRef(Qq),a9=x.forwardRef((e,t)=>{const n=ge.c(16);let i,r,s,a,c;n[0]!==e?({isActive:s,value:c,children:i,className:r,...a}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=s,n[4]=a,n[5]=c):(i=n[1],r=n[2],s=n[3],a=n[4],c=n[5]);const f=s&&"graphiql-tab-active";let h;n[6]!==r||n[7]!==f?(h=ft("graphiql-tab",f,r),n[6]=r,n[7]=f,n[8]=h):h=n[8];let p;return n[9]!==i||n[10]!==s||n[11]!==a||n[12]!==t||n[13]!==h||n[14]!==c?(p=C.jsx(Xq,{...a,ref:t,value:c,"aria-selected":s,role:"tab",className:h,children:i}),n[9]=i,n[10]=s,n[11]=a,n[12]=t,n[13]=h,n[14]=c,n[15]=p):p=n[15],p});a9.displayName="Tab";const l9=x.forwardRef((e,t)=>{const n=ge.c(11);let i,r,s;n[0]!==e?({children:i,className:r,...s}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=s):(i=n[1],r=n[2],s=n[3]);let a;n[4]!==r?(a=ft("graphiql-tab-button",r),n[4]=r,n[5]=a):a=n[5];let c;return n[6]!==i||n[7]!==s||n[8]!==t||n[9]!==a?(c=C.jsx(Qt,{...s,ref:t,type:"button",className:a,children:i}),n[6]=i,n[7]=s,n[8]=t,n[9]=a,n[10]=c):c=n[10],c});l9.displayName="Tab.Button";const c9=x.forwardRef((e,t)=>{const n=ge.c(7);let i;n[0]!==e.className?(i=ft("graphiql-tab-close",e.className),n[0]=e.className,n[1]=i):i=n[1];let r;n[2]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(T2,{}),n[2]=r):r=n[2];let s;return n[3]!==e||n[4]!==t||n[5]!==i?(s=C.jsx(Qt,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:i,children:r}),n[3]=e,n[4]=t,n[5]=i,n[6]=s):s=n[6],s});c9.displayName="Tab.Close";const gm=Object.assign(a9,{Button:l9,Close:c9}),f9=x.forwardRef((e,t)=>{const n=ge.c(15);let i,r,s,a,c;n[0]!==e?({values:c,onReorder:s,children:i,className:r,...a}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=s,n[4]=a,n[5]=c):(i=n[1],r=n[2],s=n[3],a=n[4],c=n[5]);let f;n[6]!==r?(f=ft("graphiql-tabs",r),n[6]=r,n[7]=f):f=n[7];let h;return n[8]!==i||n[9]!==s||n[10]!==a||n[11]!==t||n[12]!==f||n[13]!==c?(h=C.jsx(Hq,{...a,ref:t,values:c,onReorder:s,axis:"x",role:"tablist",className:f,children:i}),n[8]=i,n[9]=s,n[10]=a,n[11]=t,n[12]=f,n[13]=c,n[14]=h):h=n[14],h});f9.displayName="Tabs";var[oh]=hs("Tooltip",[J0]),sh=J0(),d9="TooltipProvider",Zq=700,jg="tooltip.open",[Wq,_v]=oh(d9),h9=e=>{const{__scopeTooltip:t,delayDuration:n=Zq,skipDelayDuration:i=300,disableHoverableContent:r=!1,children:s}=e,a=x.useRef(!0),c=x.useRef(!1),f=x.useRef(0);return x.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),C.jsx(Wq,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(f.current),a.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>a.current=!0,i)},[i]),isPointerInTransitRef:c,onPointerInTransitChange:x.useCallback(h=>{c.current=h},[]),disableHoverableContent:r,children:s})};h9.displayName=d9;var Lc="Tooltip",[Kq,nf]=oh(Lc),p9=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:r,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,f=_v(Lc,e.__scopeTooltip),h=sh(t),[p,g]=x.useState(null),v=Jo(),y=x.useRef(0),E=a??f.disableHoverableContent,T=c??f.delayDuration,_=x.useRef(!1),[S,D]=q0({prop:i,defaultProp:r??!1,onChange:j=>{j?(f.onOpen(),document.dispatchEvent(new CustomEvent(jg))):f.onClose(),s==null||s(j)},caller:Lc}),A=x.useMemo(()=>S?_.current?"delayed-open":"instant-open":"closed",[S]),N=x.useCallback(()=>{window.clearTimeout(y.current),y.current=0,_.current=!1,D(!0)},[D]),R=x.useCallback(()=>{window.clearTimeout(y.current),y.current=0,D(!1)},[D]),M=x.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{_.current=!0,D(!0),y.current=0},T)},[T,D]);return x.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),C.jsx(P_,{...h,children:C.jsx(Kq,{scope:t,contentId:v,open:S,stateAttribute:A,trigger:p,onTriggerChange:g,onTriggerEnter:x.useCallback(()=>{f.isOpenDelayedRef.current?M():N()},[f.isOpenDelayedRef,M,N]),onTriggerLeave:x.useCallback(()=>{E?R():(window.clearTimeout(y.current),y.current=0)},[R,E]),onOpen:N,onClose:R,disableHoverableContent:E,children:n})})};p9.displayName=Lc;var Pg="TooltipTrigger",m9=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=nf(Pg,n),s=_v(Pg,n),a=sh(n),c=x.useRef(null),f=Zt(t,c,r.onTriggerChange),h=x.useRef(!1),p=x.useRef(!1),g=x.useCallback(()=>h.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),C.jsx(V_,{asChild:!0,...a,children:C.jsx(Nt.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...i,ref:f,onPointerMove:Me(e.onPointerMove,v=>{v.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(r.onTriggerEnter(),p.current=!0)}),onPointerLeave:Me(e.onPointerLeave,()=>{r.onTriggerLeave(),p.current=!1}),onPointerDown:Me(e.onPointerDown,()=>{r.open&&r.onClose(),h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Me(e.onFocus,()=>{h.current||r.onOpen()}),onBlur:Me(e.onBlur,r.onClose),onClick:Me(e.onClick,r.onClose)})})});m9.displayName=Pg;var Cv="TooltipPortal",[Jq,eH]=oh(Cv,{forceMount:void 0}),g9=e=>{const{__scopeTooltip:t,forceMount:n,children:i,container:r}=e,s=nf(Cv,t);return C.jsx(Jq,{scope:t,forceMount:n,children:C.jsx(Ir,{present:n||s.open,children:C.jsx(G0,{asChild:!0,container:r,children:i})})})};g9.displayName=Cv;var Ma="TooltipContent",v9=x.forwardRef((e,t)=>{const n=eH(Ma,e.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...s}=e,a=nf(Ma,e.__scopeTooltip);return C.jsx(Ir,{present:i||a.open,children:a.disableHoverableContent?C.jsx(y9,{side:r,...s,ref:t}):C.jsx(tH,{side:r,...s,ref:t})})}),tH=x.forwardRef((e,t)=>{const n=nf(Ma,e.__scopeTooltip),i=_v(Ma,e.__scopeTooltip),r=x.useRef(null),s=Zt(t,r),[a,c]=x.useState(null),{trigger:f,onClose:h}=n,p=r.current,{onPointerInTransitChange:g}=i,v=x.useCallback(()=>{c(null),g(!1)},[g]),y=x.useCallback((E,T)=>{const _=E.currentTarget,S={x:E.clientX,y:E.clientY},D=oH(S,_.getBoundingClientRect()),A=sH(S,D),N=aH(T.getBoundingClientRect()),R=cH([...A,...N]);c(R),g(!0)},[g]);return x.useEffect(()=>()=>v(),[v]),x.useEffect(()=>{if(f&&p){const E=_=>y(_,p),T=_=>y(_,f);return f.addEventListener("pointerleave",E),p.addEventListener("pointerleave",T),()=>{f.removeEventListener("pointerleave",E),p.removeEventListener("pointerleave",T)}}},[f,p,y,v]),x.useEffect(()=>{if(a){const E=T=>{const _=T.target,S={x:T.clientX,y:T.clientY},D=(f==null?void 0:f.contains(_))||(p==null?void 0:p.contains(_)),A=!lH(S,a);D?v():A&&(v(),h())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[f,p,a,h,v]),C.jsx(y9,{...e,ref:s})}),[nH,iH]=oh(Lc,{isInside:!1}),rH=zI("TooltipContent"),y9=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":r,onEscapeKeyDown:s,onPointerDownOutside:a,...c}=e,f=nf(Ma,n),h=sh(n),{onClose:p}=f;return x.useEffect(()=>(document.addEventListener(jg,p),()=>document.removeEventListener(jg,p)),[p]),x.useEffect(()=>{if(f.trigger){const g=v=>{const y=v.target;y!=null&&y.contains(f.trigger)&&p()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[f.trigger,p]),C.jsx(H0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:g=>g.preventDefault(),onDismiss:p,children:C.jsxs($_,{"data-state":f.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[C.jsx(rH,{children:i}),C.jsx(nH,{scope:n,isInside:!0,children:C.jsx(a_,{id:f.contentId,role:"tooltip",children:r||i})})]})})});v9.displayName=Ma;var b9="TooltipArrow",uH=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,r=sh(n);return iH(b9,n).isInside?null:C.jsx(B_,{...r,...i,ref:t})});uH.displayName=b9;function oH(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,i,r,s)){case s:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function sH(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function aH(e){const{top:t,right:n,bottom:i,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:i},{x:r,y:i}]}function lH(e,t){const{x:n,y:i}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s],f=t[a],h=c.x,p=c.y,g=f.x,v=f.y;p>i!=v>i&&n<(g-h)*(i-p)/(v-p)+h&&(r=!r)}return r}function cH(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),fH(t)}function fH(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const r=e[i];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const r=e[i];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(r.y-a.y)>=(s.y-a.y)*(r.x-a.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var dH=h9,hH=p9,pH=m9,mH=g9,gH=v9;const vH=e=>{const t=ge.c(10),{children:n,align:i,side:r,sideOffset:s,label:a}=e,c=i===void 0?"start":i,f=r===void 0?"bottom":r,h=s===void 0?5:s;let p;t[0]!==n?(p=C.jsx(pH,{asChild:!0,children:n}),t[0]=n,t[1]=p):p=t[1];let g;t[2]!==c||t[3]!==a||t[4]!==f||t[5]!==h?(g=C.jsx(mH,{children:C.jsx(gH,{className:"graphiql-tooltip",align:c,side:f,sideOffset:h,children:a})}),t[2]=c,t[3]=a,t[4]=f,t[5]=h,t[6]=g):g=t[6];let v;return t[7]!==p||t[8]!==g?(v=C.jsxs(hH,{children:[p,g]}),t[7]=p,t[8]=g,t[9]=v):v=t[9],v},Vn=Object.assign(vH,{Provider:dH}),Zd=x.forwardRef((e,t)=>{const n=ge.c(19);let i,r,s;n[0]!==e?({label:i,onClick:r,...s}=e,n[0]=e,n[1]=i,n[2]=r,n[3]=s):(i=n[1],r=n[2],s=n[3]);const[a,c]=x.useState(null);let f;n[4]!==r?(f=_=>{try{r&&r(_),c(null)}catch(S){const D=S;c(D instanceof Error?D:new Error(`Toolbar button click failed: ${D}`))}},n[4]=r,n[5]=f):f=n[5];const h=f,p=a&&"error";let g;n[6]!==s.className||n[7]!==p?(g=ft("graphiql-toolbar-button",p,s.className),n[6]=s.className,n[7]=p,n[8]=g):g=n[8];const v=a?a.message:i,y=a?"true":s["aria-invalid"];let E;n[9]!==h||n[10]!==s||n[11]!==t||n[12]!==g||n[13]!==v||n[14]!==y?(E=C.jsx(Qt,{...s,ref:t,type:"button",className:g,onClick:h,"aria-label":v,"aria-invalid":y}),n[9]=h,n[10]=s,n[11]=t,n[12]=g,n[13]=v,n[14]=y,n[15]=E):E=n[15];let T;return n[16]!==i||n[17]!==E?(T=C.jsx(Vn,{label:i,children:E}),n[16]=i,n[17]=E,n[18]=T):T=n[18],T});Zd.displayName="ToolbarButton";const Vg=()=>{const e=ge.c(19);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:Vg},e[0]=t):t=e[0];const{queryEditor:n,setOperationName:i}=vn(t);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0,caller:Vg},e[1]=r):r=e[1];const{isFetching:s,isSubscribed:a,operationName:c,run:f,stop:h}=Va(r);let p;e[2]!==(n==null?void 0:n.operations)?(p=(n==null?void 0:n.operations)||[],e[2]=n==null?void 0:n.operations,e[3]=p):p=e[3];const g=p,v=g.length>1&&typeof c!="string",y=s||a,E=`${y?"Stop":"Execute"} query (Ctrl-Enter)`;let T;e[4]!==y?(T=y?C.jsx(wI,{}):C.jsx(bI,{}),e[4]=y,e[5]=T):T=e[5];let _;e[6]!==E||e[7]!==T?(_={type:"button",className:"graphiql-execute-button",children:T,"aria-label":E},e[6]=E,e[7]=T,e[8]=_):_=e[8];const S=_;let D;return e[9]!==S||e[10]!==v||e[11]!==y||e[12]!==E||e[13]!==g||e[14]!==n||e[15]!==f||e[16]!==i||e[17]!==h?(D=v&&!y?C.jsxs(kd,{children:[C.jsx(Vn,{label:E,children:C.jsx(kd.Button,{...S})}),C.jsx(kd.Content,{children:g.map((A,N)=>{const R=A.name?A.name.value:`<Unnamed ${A.operation}>`;return C.jsx(kd.Item,{onSelect:()=>{var M;const j=(M=A.name)==null?void 0:M.value;n&&j&&j!==n.operationName&&i(j),f()},children:R},`${R}-${N}`)})})]}):C.jsx(Vn,{label:E,children:C.jsx("button",{...S,onClick:()=>{y?h():f()}})}),e[9]=S,e[10]=v,e[11]=y,e[12]=E,e[13]=g,e[14]=n,e[15]=f,e[16]=i,e[17]=h,e[18]=D):D=e[18],D},$g=Vc((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:i}=t();i.updateHistory(n),e({})},editLabel(n,i){const{historyStorage:r}=t();r.editLabel(n,i),e({})},toggleFavorite(n){const{historyStorage:i}=t();i.toggleFavorite(n),e({})},setActive:n=>n,deleteFromHistory(n,i){const{historyStorage:r}=t();r.deleteHistory(n,i),e({})}}})),yH=e=>{const t=ge.c(12),{maxHistoryLength:n,children:i}=e,r=n===void 0?20:n;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={nonNull:!0},t[0]=s):s=t[0];const{isFetching:a}=Va(s);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={nonNull:!0},t[1]=c):c=t[1];const{tabs:f,activeTabIndex:h}=vn(c),p=f[h],g=ja();let v;t[2]!==r||t[3]!==g?(v=new PN(g,r),t[2]=r,t[3]=g,t[4]=v):v=t[4];const y=v;let E,T;t[5]!==y?(E=()=>{$g.setState({historyStorage:y})},T=[y],t[5]=y,t[6]=E,t[7]=T):(E=t[6],T=t[7]),x.useEffect(E,T);let _,S;return t[8]!==p||t[9]!==a?(_=()=>{if(!a)return;const{addToHistory:D}=$g.getState().actions;D({query:p.query??void 0,variables:p.variables??void 0,headers:p.headers??void 0,operationName:p.operationName??void 0})},S=[a,p],t[8]=p,t[9]=a,t[10]=_,t[11]=S):(_=t[10],S=t[11]),x.useEffect(_,S),i},x9=$c($g),bH=()=>x9(xH),E9=()=>x9(EH);function xH(e){return e.historyStorage.queries}function EH(e){return e.actions}function TH(e,t){for(const n of e)t(n,!0)}const SH=()=>{const e=ge.c(13),t=bH(),{deleteFromHistory:n}=E9();let i;i=t.slice().map(CH).reverse();const r=i.filter(AH);r.length&&(i=i.filter(wH));const[s,a]=x.useState(null);let c,f;e[0]!==s?(c=()=>{s&&setTimeout(()=>{a(null)},2e3)},f=[s],e[0]=s,e[1]=c,e[2]=f):(c=e[1],f=e[2]),x.useEffect(c,f);const h=()=>{try{TH(i,n),a("success")}catch{a("error")}},p=!!r.length,g=!!i.length,v="History",y="graphiql-history",E=(s||g)&&C.jsx(Ui,{type:"button",state:s||void 0,disabled:!i.length,onClick:h,children:{success:"Cleared",error:"Failed to Clear"}[s]||"Clear"});let T;e[3]!==E?(T=C.jsxs("div",{className:"graphiql-history-header",children:["History",E]}),e[3]=E,e[4]=T):T=e[4];const _=p&&C.jsx("ul",{className:"graphiql-history-items",children:r.map(DH)});let S;e[5]!==p||e[6]!==g?(S=p&&g&&C.jsx("div",{className:"graphiql-history-item-spacer"}),e[5]=p,e[6]=g,e[7]=S):S=e[7];const D=g&&C.jsx("ul",{className:"graphiql-history-items",children:i.map(NH)});let A;return e[8]!==T||e[9]!==_||e[10]!==S||e[11]!==D?(A=C.jsxs("section",{"aria-label":v,className:y,children:[T,_,S,D]}),e[8]=T,e[9]=_,e[10]=S,e[11]=D,e[12]=A):A=e[12],A},Av=e=>{const t=ge.c(39),{editLabel:n,toggleFavorite:i,deleteFromHistory:r,setActive:s}=E9();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:Av},t[0]=a):a=t[0];const{headerEditor:c,queryEditor:f,variableEditor:h}=vn(a),p=x.useRef(null),g=x.useRef(null),[v,y]=x.useState(!1);let E,T;t[1]!==v?(E=()=>{var P;v&&((P=p.current)==null||P.focus())},T=[v],t[1]=v,t[2]=E,t[3]=T):(E=t[2],T=t[3]),x.useEffect(E,T);let _;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(_=e.item.label||e.item.operationName||_H(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=_):_=t[7];const S=_;let D;t[8]!==n||t[9]!==e.item?(D=()=>{var P;y(!1);const{index:V,...k}=e.item;n({...k,label:(P=p.current)==null?void 0:P.value},V)},t[8]=n,t[9]=e.item,t[10]=D):D=t[10];const A=D;let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{y(!1)},t[11]=N):N=t[11];const R=N;let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=P=>{P.stopPropagation(),y(!0)},t[12]=M):M=t[12];const j=M;let $;t[13]!==c||t[14]!==e.item||t[15]!==f||t[16]!==s||t[17]!==h?($=()=>{const{query:P,variables:V,headers:k}=e.item;f==null||f.setValue(P??""),h==null||h.setValue(V??""),c==null||c.setValue(k??""),s(e.item)},t[13]=c,t[14]=e.item,t[15]=f,t[16]=s,t[17]=h,t[18]=$):$=t[18];const L=$;let U;t[19]!==r||t[20]!==e.item?(U=P=>{P.stopPropagation(),r(e.item)},t[19]=r,t[20]=e.item,t[21]=U):U=t[21];const Y=U;let K;t[22]!==e.item||t[23]!==i?(K=P=>{P.stopPropagation(),i(e.item)},t[22]=e.item,t[23]=i,t[24]=K):K=t[24];const se=K,ne=v&&"editable";let te;t[25]!==ne?(te=ft("graphiql-history-item",ne),t[25]=ne,t[26]=te):te=t[26];let I;t[27]!==S||t[28]!==n||t[29]!==Y||t[30]!==L||t[31]!==A||t[32]!==se||t[33]!==v||t[34]!==e.item?(I=v?C.jsxs(C.Fragment,{children:[C.jsx("input",{type:"text",defaultValue:e.item.label,ref:p,onKeyDown:P=>{P.key==="Esc"?y(!1):P.key==="Enter"&&(y(!1),n({...e.item,label:P.currentTarget.value}))},placeholder:"Type a label"}),C.jsx(Qt,{type:"button",ref:g,onClick:A,children:"Save"}),C.jsx(Qt,{type:"button",ref:g,onClick:R,children:C.jsx(T2,{})})]}):C.jsxs(C.Fragment,{children:[C.jsx(Vn,{label:"Set active",children:C.jsx(Qt,{type:"button",className:"graphiql-history-item-label",onClick:L,"aria-label":"Set active",children:S})}),C.jsx(Vn,{label:"Edit label",children:C.jsx(Qt,{type:"button",className:"graphiql-history-item-action",onClick:j,"aria-label":"Edit label",children:C.jsx(yI,{"aria-hidden":"true"})})}),C.jsx(Vn,{label:e.item.favorite?"Remove favorite":"Add favorite",children:C.jsx(Qt,{type:"button",className:"graphiql-history-item-action",onClick:se,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?C.jsx(CI,{"aria-hidden":"true"}):C.jsx(AI,{"aria-hidden":"true"})})}),C.jsx(Vn,{label:"Delete from history",children:C.jsx(Qt,{type:"button",className:"graphiql-history-item-action",onClick:Y,"aria-label":"Delete from history",children:C.jsx(DI,{"aria-hidden":"true"})})})]}),t[27]=S,t[28]=n,t[29]=Y,t[30]=L,t[31]=A,t[32]=se,t[33]=v,t[34]=e.item,t[35]=I):I=t[35];let z;return t[36]!==te||t[37]!==I?(z=C.jsx("li",{className:te,children:I}),t[36]=te,t[37]=I,t[38]=z):z=t[38],z};function _H(e){return e==null?void 0:e.split(`
|
|
359
|
+
`).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}function CH(e,t){return{...e,index:t}}function AH(e){return e.favorite}function wH(e){return!e.favorite}function DH(e){return C.jsx(Av,{item:e},e.index)}function NH(e){return C.jsx(Av,{item:e},e.index)}const OH={title:"History",icon:hI,content:SH},Fd=[{name:"Docs"}],Bg=Vc((e,t)=>({explorerNavStack:Fd,actions:{push(n){e(i=>{const r=i.explorerNavStack;return{explorerNavStack:r.at(-1).def===n.def?r:[...r,n]}})},pop(){e(n=>{const i=n.explorerNavStack;return{explorerNavStack:i.length>1?i.slice(0,-1):i}})},reset(){e(n=>{const i=n.explorerNavStack;return{explorerNavStack:i.length===1?i:Fd}})},resolveSchemaReferenceToNavItem(n){if(!n)return;const{push:i}=t().actions;switch(n.kind){case"Type":{i({name:n.type.name,def:n.type});break}case"Field":{i({name:n.field.name,def:n.field});break}case"Argument":{n.field&&i({name:n.field.name,def:n.field});break}case"EnumValue":{n.type&&i({name:n.type.name,def:n.type});break}}},rebuildNavStackWithSchema(n){e(i=>{const r=i.explorerNavStack;if(r.length===1)return i;const s=[...Fd];let a=null;for(const c of r)if(c!==Fd[0])if(c.def)if(i2(c.def)){const f=n.getType(c.def.name);if(f)s.push({name:c.name,def:f}),a=f;else break}else{if(a===null)break;if(bt(a)||sn(a)){const f=a.getFields()[c.name];if(f)s.push({name:c.name,def:f});else break}else{if(po(a)||oi(a)||St(a)||Ai(a))break;{const f=a;if(f.args.some(h=>h.name===c.name))s.push({name:c.name,def:f});else break}}}else a=null,s.push(c);return{explorerNavStack:s}})}}})),RH=e=>{const t=ge.c(7),{children:n}=e,{schema:i,validationErrors:r,schemaReference:s}=kr();let a,c;t[0]!==s?(a=()=>{const{resolveSchemaReferenceToNavItem:p}=Bg.getState().actions;p(s)},c=[s],t[0]=s,t[1]=a,t[2]=c):(a=t[1],c=t[2]),x.useEffect(a,c);let f,h;return t[3]!==i||t[4]!==r?(f=()=>{const{reset:p,rebuildNavStackWithSchema:g}=Bg.getState().actions;i==null||r.length>0?p():g(i)},h=[i,r],t[3]=i,t[4]=r,t[5]=f,t[6]=h):(f=t[5],h=t[6]),x.useEffect(f,h),n},T9=$c(Bg),wv=()=>T9(kH),ah=()=>T9(MH);function kH(e){return e.explorerNavStack}function MH(e){return e.actions}const LH=e=>e?ui(e):"",S9=e=>{const t=ge.c(12),{field:n}=e;if(!("defaultValue"in n)||n.defaultValue===void 0)return null;const i=n.defaultValue,r=n.type;let s,a,c,f;if(t[0]!==n.defaultValue||t[1]!==n.type){f=Symbol.for("react.early_return_sentinel");e:{const g=aa(i,r);if(!g){f=null;break e}c=" = ",s="graphiql-doc-explorer-default-value",a=LH(g)}t[0]=n.defaultValue,t[1]=n.type,t[2]=s,t[3]=a,t[4]=c,t[5]=f}else s=t[2],a=t[3],c=t[4],f=t[5];if(f!==Symbol.for("react.early_return_sentinel"))return f;let h;t[6]!==s||t[7]!==a?(h=C.jsx("span",{className:s,children:a}),t[6]=s,t[7]=a,t[8]=h):h=t[8];let p;return t[9]!==c||t[10]!==h?(p=C.jsxs(C.Fragment,{children:[c,h]}),t[9]=c,t[10]=h,t[11]=p):p=t[11],p};function T0(e,t){return It(e)?C.jsxs(C.Fragment,{children:[T0(e.ofType,t),"!"]}):kn(e)?C.jsxs(C.Fragment,{children:["[",T0(e.ofType,t),"]"]}):t(e)}const lu=e=>{const t=ge.c(5),{type:n}=e,{push:i}=ah();if(!n)return null;let r;t[0]!==i?(r=a=>C.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:c=>{c.preventDefault(),i({name:a.name,def:a})},href:"#",children:a.name}),t[0]=i,t[1]=r):r=t[1];let s;return t[2]!==r||t[3]!==n?(s=T0(n,r),t[2]=r,t[3]=n,t[4]=s):s=t[4],s},S0=e=>{const t=ge.c(19),{arg:n,showDefaultValue:i,inline:r}=e;let s;t[0]!==n.name?(s=C.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=s):s=t[1];let a;t[2]!==n.type?(a=C.jsx(lu,{type:n.type}),t[2]=n.type,t[3]=a):a=t[3];let c;t[4]!==n||t[5]!==i?(c=i!==!1&&C.jsx(S9,{field:n}),t[4]=n,t[5]=i,t[6]=c):c=t[6];let f;t[7]!==s||t[8]!==a||t[9]!==c?(f=C.jsxs("span",{children:[s,": ",a,c]}),t[7]=s,t[8]=a,t[9]=c,t[10]=f):f=t[10];const h=f;if(r)return h;let p;t[11]!==n.description?(p=n.description?C.jsx(Nr,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=p):p=t[12];let g;t[13]!==n.deprecationReason?(g=n.deprecationReason?C.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[C.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),C.jsx(Nr,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=g):g=t[14];let v;return t[15]!==h||t[16]!==p||t[17]!==g?(v=C.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[h,p,g]}),t[15]=h,t[16]=p,t[17]=g,t[18]=v):v=t[18],v},_9=e=>{const t=ge.c(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?C.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[C.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),C.jsx(Nr,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},IH=e=>{const t=ge.c(2),{directive:n}=e;let i;return t[0]!==n.name.value?(i=C.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=i):i=t[1],i},Di=e=>{const t=ge.c(10),{title:n,children:i}=e,r=FH[n];let s;t[0]!==r?(s=C.jsx(r,{}),t[0]=r,t[1]=s):s=t[1];let a;t[2]!==s||t[3]!==n?(a=C.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[s,n]}),t[2]=s,t[3]=n,t[4]=a):a=t[4];let c;t[5]!==i?(c=C.jsx("div",{className:"graphiql-doc-explorer-section-content",children:i}),t[5]=i,t[6]=c):c=t[6];let f;return t[7]!==a||t[8]!==c?(f=C.jsxs("div",{children:[a,c]}),t[7]=a,t[8]=c,t[9]=f):f=t[9],f},FH={Arguments:eI,"Deprecated Arguments":uI,"Deprecated Enum Values":oI,"Deprecated Fields":sI,Directives:aI,"Enum Values":fI,Fields:dI,Implements:pI,Implementations:Sd,"Possible Types":Sd,"Root Types":SI,Type:Sd,"All Schema Types":Sd},jH=e=>{const t=ge.c(15),{field:n}=e;let i;t[0]!==n.description?(i=n.description?C.jsx(Nr,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=i):i=t[1];let r;t[2]!==n.deprecationReason?(r=C.jsx(_9,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=r):r=t[3];let s;t[4]!==n.type?(s=C.jsx(Di,{title:"Type",children:C.jsx(lu,{type:n.type})}),t[4]=n.type,t[5]=s):s=t[5];let a,c;t[6]!==n?(a=C.jsx(PH,{field:n}),c=C.jsx(VH,{field:n}),t[6]=n,t[7]=a,t[8]=c):(a=t[7],c=t[8]);let f;return t[9]!==i||t[10]!==r||t[11]!==s||t[12]!==a||t[13]!==c?(f=C.jsxs(C.Fragment,{children:[i,r,s,a,c]}),t[9]=i,t[10]=r,t[11]=s,t[12]=a,t[13]=c,t[14]=f):f=t[14],f},PH=e=>{const t=ge.c(12),{field:n}=e,[i,r]=x.useState(!1);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{r(!0)},t[0]=s):s=t[0];const a=s;if(!("args"in n))return null;let c,f,h;if(t[1]!==n.args){c=[],f=[];for(const v of n.args)v.deprecationReason?f.push(v):c.push(v);h=c.length>0?C.jsx(Di,{title:"Arguments",children:c.map($H)}):null,t[1]=n.args,t[2]=c,t[3]=f,t[4]=h}else c=t[2],f=t[3],h=t[4];let p;t[5]!==c.length||t[6]!==f||t[7]!==i?(p=f.length>0?i||c.length===0?C.jsx(Di,{title:"Deprecated Arguments",children:f.map(BH)}):C.jsx(Ui,{type:"button",onClick:a,children:"Show Deprecated Arguments"}):null,t[5]=c.length,t[6]=f,t[7]=i,t[8]=p):p=t[8];let g;return t[9]!==h||t[10]!==p?(g=C.jsxs(C.Fragment,{children:[h,p]}),t[9]=h,t[10]=p,t[11]=g):g=t[11],g},VH=e=>{var t;const n=ge.c(4),{field:i}=e,r=(t=i.astNode)==null?void 0:t.directives;if(!(r!=null&&r.length))return null;let s;n[0]!==r?(s=r.map(UH),n[0]=r,n[1]=s):s=n[1];let a;return n[2]!==s?(a=C.jsx(Di,{title:"Directives",children:s}),n[2]=s,n[3]=a):a=n[3],a};function $H(e){return C.jsx(S0,{arg:e},e.name)}function BH(e){return C.jsx(S0,{arg:e},e.name)}function UH(e){return C.jsx("div",{children:C.jsx(IH,{directive:e})},e.name.value)}const zH=e=>{var t,n;const i=ge.c(39),{schema:r}=e;let s;i[0]!==r?(s=r.getQueryType(),i[0]=r,i[1]=s):s=i[1];const a=s;let c;i[2]!==r?(c=(t=r.getMutationType)==null?void 0:t.call(r),i[2]=r,i[3]=c):c=i[3];const f=c;let h;i[4]!==r?(h=(n=r.getSubscriptionType)==null?void 0:n.call(r),i[4]=r,i[5]=h):h=i[5];const p=h;let g,v,y,E,T;if(i[6]!==f||i[7]!==a||i[8]!==r||i[9]!==p){const D=r.getTypeMap(),A=a==null?void 0:a.name,N=f==null?void 0:f.name,R=p==null?void 0:p.name;let M;i[15]!==R||i[16]!==A||i[17]!==N?(M=[A,N,R],i[15]=R,i[16]=A,i[17]=N,i[18]=M):M=i[18];const j=M,$=r.description||"A GraphQL schema provides a root type for each kind of operation.";i[19]!==$?(E=C.jsx(Nr,{type:"description",children:$}),i[19]=$,i[20]=E):E=i[20];let L;i[21]!==a?(L=a?C.jsxs("div",{children:[C.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",C.jsx(lu,{type:a})]}):null,i[21]=a,i[22]=L):L=i[22];let U;i[23]!==f?(U=f&&C.jsxs("div",{children:[C.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",C.jsx(lu,{type:f})]}),i[23]=f,i[24]=U):U=i[24];let Y;i[25]!==p?(Y=p&&C.jsxs("div",{children:[C.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",C.jsx(lu,{type:p})]}),i[25]=p,i[26]=Y):Y=i[26],i[27]!==L||i[28]!==U||i[29]!==Y?(T=C.jsxs(Di,{title:"Root Types",children:[L,U,Y]}),i[27]=L,i[28]=U,i[29]=Y,i[30]=T):T=i[30],g=Di,v="All Schema Types",y=D&&C.jsx("div",{children:Object.values(D).map(K=>j.includes(K.name)||K.name.startsWith("__")?null:C.jsx("div",{children:C.jsx(lu,{type:K})},K.name))}),i[6]=f,i[7]=a,i[8]=r,i[9]=p,i[10]=g,i[11]=v,i[12]=y,i[13]=E,i[14]=T}else g=i[10],v=i[11],y=i[12],E=i[13],T=i[14];let _;i[31]!==g||i[32]!==v||i[33]!==y?(_=C.jsx(g,{title:v,children:y}),i[31]=g,i[32]=v,i[33]=y,i[34]=_):_=i[34];let S;return i[35]!==E||i[36]!==T||i[37]!==_?(S=C.jsxs(C.Fragment,{children:[E,T,_]}),i[35]=E,i[36]=T,i[37]=_,i[38]=S):S=i[38],S},C9=typeof document<"u"?Re.useLayoutEffect:()=>{};var vm;const qH=(vm=Re.useInsertionEffect)!==null&&vm!==void 0?vm:C9;function HH(e){const t=x.useRef(null);return qH(()=>{t.current=e},[e]),x.useCallback((...n)=>{const i=t.current;return i==null?void 0:i(...n)},[])}const go=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Xo=e=>e&&"window"in e&&e.window===e?e:go(e).defaultView||window;function GH(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function YH(e){return GH(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let QH=!1;function Dv(){return QH}function A9(e,t){if(!Dv())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:YH(n)?n=n.host:n=n.parentNode}return!1}const Ug=(e=document)=>{var t;if(!Dv())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function w9(e){return Dv()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function XH(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(i=>e.test(i.brand))||e.test(window.navigator.userAgent)}function ZH(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function D9(e){let t=null;return()=>(t==null&&(t=e()),t)}const WH=D9(function(){return ZH(/^Mac/i)}),KH=D9(function(){return XH(/Android/i)});function N9(){let e=x.useRef(new Map),t=x.useCallback((r,s,a,c)=>{let f=c!=null&&c.once?(...h)=>{e.current.delete(a),a(...h)}:a;e.current.set(a,{type:s,eventTarget:r,fn:f,options:c}),r.addEventListener(s,f,c)},[]),n=x.useCallback((r,s,a,c)=>{var f;let h=((f=e.current.get(a))===null||f===void 0?void 0:f.fn)||a;r.removeEventListener(s,h,c),e.current.delete(a)},[]),i=x.useCallback(()=>{e.current.forEach((r,s)=>{n(r.eventTarget,r.type,s,r.options)})},[n]);return x.useEffect(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function JH(e){return e.pointerType===""&&e.isTrusted?!0:KH()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function O9(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function eG(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function R9(e){let t=x.useRef({isFocused:!1,observer:null});C9(()=>{const i=t.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let n=HH(i=>{e==null||e(i)});return x.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=i.target,s=a=>{if(t.current.isFocused=!1,r.disabled){let c=O9(a);n(c)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let c=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let tG=!1,rf=null,zg=new Set,lc=new Map,as=!1,qg=!1;const nG={Tab:!0,Escape:!0};function Nv(e,t){for(let n of zg)n(e,t)}function iG(e){return!(e.metaKey||!WH()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function _0(e){as=!0,iG(e)&&(rf="keyboard",Nv("keyboard",e))}function Ta(e){rf="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(as=!0,Nv("pointer",e))}function k9(e){JH(e)&&(as=!0,rf="virtual")}function M9(e){e.target===window||e.target===document||tG||!e.isTrusted||(!as&&!qg&&(rf="virtual",Nv("virtual",e)),as=!1,qg=!1)}function L9(){as=!1,qg=!0}function Hg(e){if(typeof window>"u"||typeof document>"u"||lc.get(Xo(e)))return;const t=Xo(e),n=go(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){as=!0,i.apply(this,arguments)},n.addEventListener("keydown",_0,!0),n.addEventListener("keyup",_0,!0),n.addEventListener("click",k9,!0),t.addEventListener("focus",M9,!0),t.addEventListener("blur",L9,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",Ta,!0),n.addEventListener("pointermove",Ta,!0),n.addEventListener("pointerup",Ta,!0)),t.addEventListener("beforeunload",()=>{I9(e)},{once:!0}),lc.set(t,{focus:i})}const I9=(e,t)=>{const n=Xo(e),i=go(e);t&&i.removeEventListener("DOMContentLoaded",t),lc.has(n)&&(n.HTMLElement.prototype.focus=lc.get(n).focus,i.removeEventListener("keydown",_0,!0),i.removeEventListener("keyup",_0,!0),i.removeEventListener("click",k9,!0),n.removeEventListener("focus",M9,!0),n.removeEventListener("blur",L9,!1),typeof PointerEvent<"u"&&(i.removeEventListener("pointerdown",Ta,!0),i.removeEventListener("pointermove",Ta,!0),i.removeEventListener("pointerup",Ta,!0)),lc.delete(n))};function rG(e){const t=go(e);let n;return t.readyState!=="loading"?Hg(e):(n=()=>{Hg(e)},t.addEventListener("DOMContentLoaded",n)),()=>I9(e,n)}typeof document<"u"&&rG();function F9(){return rf!=="pointer"}const uG=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oG(e,t,n){let i=go(n==null?void 0:n.target);const r=typeof window<"u"?Xo(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Xo(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Xo(n==null?void 0:n.target).HTMLElement:HTMLElement,c=typeof window<"u"?Xo(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||i.activeElement instanceof r&&!uG.has(i.activeElement.type)||i.activeElement instanceof s||i.activeElement instanceof a&&i.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof c&&!nG[n.key])}function sG(e,t,n){Hg(),x.useEffect(()=>{let i=(r,s)=>{oG(!!(n!=null&&n.isTextInput),r,s)&&e(F9())};return zg.add(i),()=>{zg.delete(i)}},t)}function aG(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:r}=e;const s=x.useCallback(f=>{if(f.target===f.currentTarget)return i&&i(f),r&&r(!1),!0},[i,r]),a=R9(s),c=x.useCallback(f=>{const h=go(f.target),p=h?Ug(h):Ug();f.target===f.currentTarget&&p===w9(f.nativeEvent)&&(n&&n(f),r&&r(!0),a(f))},[r,n,a]);return{focusProps:{onFocus:!t&&(n||r||i)?c:void 0,onBlur:!t&&(i||r)?s:void 0}}}function lG(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:r}=e,s=x.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:c}=N9(),f=x.useCallback(g=>{g.currentTarget.contains(g.target)&&s.current.isFocusWithin&&!g.currentTarget.contains(g.relatedTarget)&&(s.current.isFocusWithin=!1,c(),n&&n(g),r&&r(!1))},[n,r,s,c]),h=R9(f),p=x.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const v=go(g.target),y=Ug(v);if(!s.current.isFocusWithin&&y===w9(g.nativeEvent)){i&&i(g),r&&r(!0),s.current.isFocusWithin=!0,h(g);let E=g.currentTarget;a(v,"focus",T=>{if(s.current.isFocusWithin&&!A9(E,T.target)){let _=new v.defaultView.FocusEvent("blur",{relatedTarget:T.target});eG(_,E);let S=O9(_);f(S)}},{capture:!0})}},[i,r,h,a,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:f}}}let Gg=!1,jd=0;function cG(){Gg=!0,setTimeout(()=>{Gg=!1},50)}function s5(e){e.pointerType==="touch"&&cG()}function fG(){if(!(typeof document>"u"))return jd===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",s5),jd++,()=>{jd--,!(jd>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",s5)}}function j9(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:r}=e,[s,a]=x.useState(!1),c=x.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;x.useEffect(fG,[]);let{addGlobalListener:f,removeAllGlobalListeners:h}=N9(),{hoverProps:p,triggerHoverEnd:g}=x.useMemo(()=>{let v=(T,_)=>{if(c.pointerType=_,r||_==="touch"||c.isHovered||!T.currentTarget.contains(T.target))return;c.isHovered=!0;let S=T.currentTarget;c.target=S,f(go(T.target),"pointerover",D=>{c.isHovered&&c.target&&!A9(c.target,D.target)&&y(D,D.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:S,pointerType:_}),n&&n(!0),a(!0)},y=(T,_)=>{let S=c.target;c.pointerType="",c.target=null,!(_==="touch"||!c.isHovered||!S)&&(c.isHovered=!1,h(),i&&i({type:"hoverend",target:S,pointerType:_}),n&&n(!1),a(!1))},E={};return typeof PointerEvent<"u"&&(E.onPointerEnter=T=>{Gg&&T.pointerType==="mouse"||v(T,T.pointerType)},E.onPointerLeave=T=>{!r&&T.currentTarget.contains(T.target)&&y(T,T.pointerType)}),{hoverProps:E,triggerHoverEnd:y}},[t,n,i,r,c,f,h]);return x.useEffect(()=>{r&&g({currentTarget:c.target},c.pointerType)},[r]),{hoverProps:p,isHovered:s}}function P9(e={}){let{autoFocus:t=!1,isTextInput:n,within:i}=e,r=x.useRef({isFocused:!1,isFocusVisible:t||F9()}),[s,a]=x.useState(!1),[c,f]=x.useState(()=>r.current.isFocused&&r.current.isFocusVisible),h=x.useCallback(()=>f(r.current.isFocused&&r.current.isFocusVisible),[]),p=x.useCallback(y=>{r.current.isFocused=y,a(y),h()},[h]);sG(y=>{r.current.isFocusVisible=y,h()},[],{isTextInput:n});let{focusProps:g}=aG({isDisabled:i,onFocusChange:p}),{focusWithinProps:v}=lG({isDisabled:!i,onFocusWithinChange:p});return{isFocused:s,isFocusVisible:c,focusProps:i?v:g}}var dG=Object.defineProperty,hG=(e,t,n)=>t in e?dG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ym=(e,t,n)=>(hG(e,typeof t!="symbol"?t+"":t,n),n);let pG=class{constructor(){ym(this,"current",this.detect()),ym(this,"handoffState","pending"),ym(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Sa=new pG;function uf(e){var t,n;return Sa.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(n=(t=e.current)==null?void 0:t.ownerDocument)!=null?n:document:null:document}function V9(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Oi(){let e=[],t={addEventListener(n,i,r,s){return n.addEventListener(i,r,s),t.add(()=>n.removeEventListener(i,r,s))},requestAnimationFrame(...n){let i=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let i=setTimeout(...n);return t.add(()=>clearTimeout(i))},microTask(...n){let i={current:!0};return V9(()=>{i.current&&n[0]()}),t.add(()=>{i.current=!1})},style(n,i,r){let s=n.style.getPropertyValue(i);return Object.assign(n.style,{[i]:r}),this.add(()=>{Object.assign(n.style,{[i]:s})})},group(n){let i=Oi();return n(i),this.add(()=>i.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let i=e.indexOf(n);if(i>=0)for(let r of e.splice(i,1))r()}},dispose(){for(let n of e.splice(0))n()}};return t}function Ha(){let[e]=x.useState(Oi);return x.useEffect(()=>()=>e.dispose(),[e]),e}let zt=(e,t)=>{Sa.isServer?x.useEffect(e,t):x.useLayoutEffect(e,t)};function gs(e){let t=x.useRef(e);return zt(()=>{t.current=e},[e]),t}let Qe=function(e){let t=gs(e);return Re.useCallback((...n)=>t.current(...n),[t])};function mG(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function gG(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function vG({disabled:e=!1}={}){let t=x.useRef(null),[n,i]=x.useState(!1),r=Ha(),s=Qe(()=>{t.current=null,i(!1),r.dispose()}),a=Qe(c=>{if(r.dispose(),t.current===null){t.current=c.currentTarget,i(!0);{let f=uf(c.currentTarget);r.addEventListener(f,"pointerup",s,!1),r.addEventListener(f,"pointermove",h=>{if(t.current){let p=mG(h);i(gG(p,t.current.getBoundingClientRect()))}},!1),r.addEventListener(f,"pointercancel",s,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:s,onClick:s}}}function vs(e){return x.useMemo(()=>e,Object.values(e))}let yG=x.createContext(void 0);function Ov(){return x.useContext(yG)}function a5(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Or(e,t,...n){if(e in t){let r=t[e];return typeof r=="function"?r(...n):r}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Or),i}var Yg=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Yg||{}),bG=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(bG||{});function Zi(){let e=EG();return x.useCallback(t=>xG({mergeRefs:e,...t}),[e])}function xG({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:r,visible:s=!0,name:a,mergeRefs:c}){c=c??TG;let f=$9(t,e);if(s)return Pd(f,n,i,a,c);let h=r??0;if(h&2){let{static:p=!1,...g}=f;if(p)return Pd(g,n,i,a,c)}if(h&1){let{unmount:p=!0,...g}=f;return Or(p?0:1,{0(){return null},1(){return Pd({...g,hidden:!0,style:{display:"none"}},n,i,a,c)}})}return Pd(f,n,i,a,c)}function Pd(e,t={},n,i,r){let{as:s=n,children:a,refName:c="ref",...f}=bm(e,["unmount","static"]),h=e.ref!==void 0?{[c]:e.ref}:{},p=typeof a=="function"?a(t):a;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t)),f["aria-labelledby"]&&f["aria-labelledby"]===f.id&&(f["aria-labelledby"]=void 0);let g={};if(t){let v=!1,y=[];for(let[E,T]of Object.entries(t))typeof T=="boolean"&&(v=!0),T===!0&&y.push(E.replace(/([A-Z])/g,_=>`-${_.toLowerCase()}`));if(v){g["data-headlessui-state"]=y.join(" ");for(let E of y)g[`data-${E}`]=""}}if(Wd(s)&&(Object.keys(zo(f)).length>0||Object.keys(zo(g)).length>0))if(!x.isValidElement(p)||Array.isArray(p)&&p.length>1||_G(p)){if(Object.keys(zo(f)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(zo(f)).concat(Object.keys(zo(g))).map(v=>` - ${v}`).join(`
|
|
360
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
|
|
361
|
+
`)].join(`
|
|
362
|
+
`))}else{let v=p.props,y=v==null?void 0:v.className,E=typeof y=="function"?(...S)=>a5(y(...S),f.className):a5(y,f.className),T=E?{className:E}:{},_=$9(p.props,zo(bm(f,["ref"])));for(let S in g)S in _&&delete g[S];return x.cloneElement(p,Object.assign({},_,g,h,{ref:r(SG(p),h.ref)},T))}return x.createElement(s,Object.assign({},bm(f,["ref"]),!Wd(s)&&h,!Wd(s)&&g),p)}function EG(){let e=x.useRef([]),t=x.useCallback(n=>{for(let i of e.current)i!=null&&(typeof i=="function"?i(n):i.current=n)},[]);return(...n)=>{if(!n.every(i=>i==null))return e.current=n,t}}function TG(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function $9(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];if(t.disabled||t["aria-disabled"])for(let i in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(n[i]=[r=>{var s;return(s=r==null?void 0:r.preventDefault)==null?void 0:s.call(r)}]);for(let i in n)Object.assign(t,{[i](r,...s){let a=n[i];for(let c of a){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;c(r,...s)}}});return t}function Rv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let r in i)r.startsWith("on")&&typeof i[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(i[r])):t[r]=i[r];for(let i in n)Object.assign(t,{[i](...r){let s=n[i];for(let a of s)a==null||a(...r)}});return t}function Wi(e){var t;return Object.assign(x.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function zo(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function bm(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}function SG(e){return Re.version.split(".")[0]>="19"?e.props.ref:e.ref}function Wd(e){return e===x.Fragment||e===Symbol.for("react.fragment")}function _G(e){return Wd(e.type)}function CG(e,t,n){let[i,r]=x.useState(n),s=e!==void 0,a=x.useRef(s),c=x.useRef(!1),f=x.useRef(!1);return s&&!a.current&&!c.current?(c.current=!0,a.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&a.current&&!f.current&&(f.current=!0,a.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?e:i,Qe(h=>(s||Sn.flushSync(()=>r(h)),t==null?void 0:t(h)))]}function AG(e){let[t]=x.useState(e);return t}function B9(e={},t=null,n=[]){for(let[i,r]of Object.entries(e))z9(n,U9(t,i),r);return n}function U9(e,t){return e?e+"["+t+"]":t}function z9(e,t,n){if(Array.isArray(n))for(let[i,r]of n.entries())z9(e,U9(t,i.toString()),r);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):B9(n,t,e)}let wG="span";var kv=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(kv||{});function DG(e,t){var n;let{features:i=1,...r}=e,s={ref:t,"aria-hidden":(i&2)===2?!0:(n=r["aria-hidden"])!=null?n:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Zi()({ourProps:s,theirProps:r,slot:{},defaultTag:wG,name:"Hidden"})}let q9=Wi(DG),NG=x.createContext(null);function OG({children:e}){let t=x.useContext(NG);if(!t)return Re.createElement(Re.Fragment,null,e);let{target:n}=t;return n?Sn.createPortal(Re.createElement(Re.Fragment,null,e),n):null}function RG({data:e,form:t,disabled:n,onReset:i,overrides:r}){let[s,a]=x.useState(null),c=Ha();return x.useEffect(()=>{if(i&&s)return c.addEventListener(s,"reset",i)},[s,t,i]),Re.createElement(OG,null,Re.createElement(kG,{setForm:a,formId:t}),B9(e).map(([f,h])=>Re.createElement(q9,{features:kv.Hidden,...zo({key:f,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:f,value:h,...r})})))}function kG({setForm:e,formId:t}){return x.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Re.createElement(q9,{features:kv.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let i=n.closest("form");i&&e(i)}})}let MG=x.createContext(void 0);function H9(){return x.useContext(MG)}function G9(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function lh(e){return G9(e)&&"tagName"in e}function vo(e){return lh(e)&&"accessKey"in e}function Zo(e){return lh(e)&&"tabIndex"in e}function LG(e){return lh(e)&&"style"in e}function IG(e){return vo(e)&&e.nodeName==="IFRAME"}function C0(e){return vo(e)&&e.nodeName==="INPUT"}function l5(e){return vo(e)&&e.nodeName==="LABEL"}function FG(e){return vo(e)&&e.nodeName==="FIELDSET"}function Y9(e){return vo(e)&&e.nodeName==="LEGEND"}function jG(e){return lh(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function PG(e){let t=e.parentElement,n=null;for(;t&&!FG(t);)Y9(t)&&(n=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&VG(n)?!1:i}function VG(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(Y9(t))return!1;t=t.previousElementSibling}return!0}let Q9=Symbol();function $G(e,t=!0){return Object.assign(e,{[Q9]:t})}function bu(...e){let t=x.useRef(e);x.useEffect(()=>{t.current=e},[e]);let n=Qe(i=>{for(let r of t.current)r!=null&&(typeof r=="function"?r(i):r.current=i)});return e.every(i=>i==null||(i==null?void 0:i[Q9]))?void 0:n}let Mv=x.createContext(null);Mv.displayName="DescriptionContext";function X9(){let e=x.useContext(Mv);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,X9),t}return e}function BG(){var e,t;return(t=(e=x.useContext(Mv))==null?void 0:e.value)!=null?t:void 0}let UG="p";function zG(e,t){let n=x.useId(),i=Ov(),{id:r=`headlessui-description-${n}`,...s}=e,a=X9(),c=bu(t);zt(()=>a.register(r),[r,a.register]);let f=vs({...a.slot,disabled:i||!1}),h={ref:c,...a.props,id:r};return Zi()({ourProps:h,theirProps:s,slot:f,defaultTag:UG,name:a.name||"Description"})}let qG=Wi(zG);Object.assign(qG,{});var Dn=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Dn||{});let ch=x.createContext(null);ch.displayName="LabelContext";function Z9(){let e=x.useContext(ch);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Z9),t}return e}function fh(e){var t,n,i;let r=(n=(t=x.useContext(ch))==null?void 0:t.value)!=null?n:void 0;return((i=e==null?void 0:e.length)!=null?i:0)>0?[r,...e].filter(Boolean).join(" "):r}function HG({inherit:e=!1}={}){let t=fh(),[n,i]=x.useState([]),r=e?[t,...n].filter(Boolean):n;return[r.length>0?r.join(" "):void 0,x.useMemo(()=>function(s){let a=Qe(f=>(i(h=>[...h,f]),()=>i(h=>{let p=h.slice(),g=p.indexOf(f);return g!==-1&&p.splice(g,1),p}))),c=x.useMemo(()=>({register:a,slot:s.slot,name:s.name,props:s.props,value:s.value}),[a,s.slot,s.name,s.props,s.value]);return Re.createElement(ch.Provider,{value:c},s.children)},[i])]}let GG="label";function YG(e,t){var n;let i=x.useId(),r=Z9(),s=H9(),a=Ov(),{id:c=`headlessui-label-${i}`,htmlFor:f=s??((n=r.props)==null?void 0:n.htmlFor),passive:h=!1,...p}=e,g=bu(t);zt(()=>r.register(c),[c,r.register]);let v=Qe(T=>{let _=T.currentTarget;if(!(T.target!==T.currentTarget&&jG(T.target))&&(l5(_)&&T.preventDefault(),r.props&&"onClick"in r.props&&typeof r.props.onClick=="function"&&r.props.onClick(T),l5(_))){let S=document.getElementById(_.htmlFor);if(S){let D=S.getAttribute("disabled");if(D==="true"||D==="")return;let A=S.getAttribute("aria-disabled");if(A==="true"||A==="")return;(C0(S)&&(S.type==="file"||S.type==="radio"||S.type==="checkbox")||S.role==="radio"||S.role==="checkbox"||S.role==="switch")&&S.click(),S.focus({preventScroll:!0})}}}),y=vs({...r.slot,disabled:a||!1}),E={ref:g,...r.props,id:c,htmlFor:f,onClick:v};return h&&("onClick"in E&&(delete E.htmlFor,delete E.onClick),"onClick"in p&&delete p.onClick),Zi()({ourProps:E,theirProps:p,slot:y,defaultTag:f?GG:"div",name:r.name||"Label"})}let QG=Wi(YG),XG=Object.assign(QG,{});function ua(e,t,n){let i=n.initialDeps??[],r;function s(){var a,c,f,h;let p;n.key&&((a=n.debug)!=null&&a.call(n))&&(p=Date.now());const g=e();if(!(g.length!==i.length||g.some((E,T)=>i[T]!==E)))return r;i=g;let y;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(y=Date.now()),r=t(...g),n.key&&((f=n.debug)!=null&&f.call(n))){const E=Math.round((Date.now()-p)*100)/100,T=Math.round((Date.now()-y)*100)/100,_=T/16,S=(D,A)=>{for(D=String(D);D.length<A;)D=" "+D;return D};console.info(`%c⏱ ${S(T,5)} /${S(E,5)} ms`,`
|
|
363
|
+
font-size: .6rem;
|
|
364
|
+
font-weight: bold;
|
|
365
|
+
color: hsl(${Math.max(0,Math.min(120-120*_,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(h=n==null?void 0:n.onChange)==null||h.call(n,r),r}return s.updateDeps=a=>{i=a},s}function c5(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const ZG=(e,t)=>Math.abs(e-t)<1.01,WG=(e,t,n)=>{let i;return function(...r){e.clearTimeout(i),i=e.setTimeout(()=>t.apply(this,r),n)}},f5=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},KG=e=>e,JG=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let r=t;r<=n;r++)i.push(r);return i},eY=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;const r=a=>{const{width:c,height:f}=a;t({width:Math.round(c),height:Math.round(f)})};if(r(f5(n)),!i.ResizeObserver)return()=>{};const s=new i.ResizeObserver(a=>{const c=()=>{const f=a[0];if(f!=null&&f.borderBoxSize){const h=f.borderBoxSize[0];if(h){r({width:h.inlineSize,height:h.blockSize});return}}r(f5(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},d5={passive:!0},h5=typeof window>"u"?!0:"onscrollend"in window,tY=(e,t)=>{const n=e.scrollElement;if(!n)return;const i=e.targetWindow;if(!i)return;let r=0;const s=e.options.useScrollendEvent&&h5?()=>{}:WG(i,()=>{t(r,!1)},e.options.isScrollingResetDelay),a=p=>()=>{const{horizontal:g,isRtl:v}=e.options;r=g?n.scrollLeft*(v&&-1||1):n.scrollTop,s(),t(r,p)},c=a(!0),f=a(!1);f(),n.addEventListener("scroll",c,d5);const h=e.options.useScrollendEvent&&h5;return h&&n.addEventListener("scrollend",f,d5),()=>{n.removeEventListener("scroll",c),h&&n.removeEventListener("scrollend",f)}},nY=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const i=t.borderBoxSize[0];if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},iY=(e,{adjustments:t=0,behavior:n},i)=>{var r,s;const a=e+t;(s=(r=i.scrollElement)==null?void 0:r.scrollTo)==null||s.call(r,{[i.options.horizontal?"left":"top"]:a,behavior:n})};class rY{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const i=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(s=>{const a=()=>{this._measureElement(s.target,s)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var r;(r=i())==null||r.disconnect(),n=null},observe:r=>{var s;return(s=i())==null?void 0:s.observe(r,{box:"border-box"})},unobserve:r=>{var s;return(s=i())==null?void 0:s.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([i,r])=>{typeof r>"u"&&delete n[i]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:KG,rangeExtractor:JG,onChange:()=>{},measureElement:nY,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var i,r;(r=(i=this.options).onChange)==null||r.call(i,this,n)},this.maybeNotify=ua(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const i=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==i){if(this.cleanup(),!i){this.maybeNotify();return}this.scrollElement=i,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(r=>{this.observer.observe(r)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,r=>{this.scrollRect=r,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(r,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<r?"forward":"backward":null,this.scrollOffset=r,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,i)=>{const r=new Map,s=new Map;for(let a=i-1;a>=0;a--){const c=n[a];if(r.has(c.lane))continue;const f=s.get(c.lane);if(f==null||c.end>f.end?s.set(c.lane,c):c.end<f.end&&r.set(c.lane,!0),r.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((a,c)=>a.end===c.end?a.index-c.index:a.end-c.end)[0]:void 0},this.getMeasurementOptions=ua(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,i,r,s,a)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:i,scrollMargin:r,getItemKey:s,enabled:a}),{key:!1}),this.getMeasurements=ua(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:i,scrollMargin:r,getItemKey:s,enabled:a},c)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));const f=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const h=this.measurementsCache.slice(0,f);for(let p=f;p<n;p++){const g=s(p),v=this.options.lanes===1?h[p-1]:this.getFurthestMeasurement(h,p),y=v?v.end+this.options.gap:i+r,E=c.get(g),T=typeof E=="number"?E:this.options.estimateSize(p),_=y+T,S=v?v.lane:p%this.options.lanes;h[p]={index:p,start:y,size:T,end:_,key:g,lane:S}}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ua(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,i,r,s)=>this.range=n.length>0&&i>0?uY({measurements:n,outerSize:i,scrollOffset:r,lanes:s}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ua(()=>{let n=null,i=null;const r=this.calculateRange();return r&&(n=r.startIndex,i=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,i]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,i]},(n,i,r,s,a)=>s===null||a===null?[]:n({startIndex:s,endIndex:a,overscan:i,count:r}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const i=this.options.indexAttribute,r=n.getAttribute(i);return r?parseInt(r,10):(console.warn(`Missing attribute name '${i}={index}' on measured element.`),-1)},this._measureElement=(n,i)=>{const r=this.indexFromElement(n),s=this.measurementsCache[r];if(!s)return;const a=s.key,c=this.elementsCache.get(a);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(r,this.options.measureElement(n,i,this))},this.resizeItem=(n,i)=>{const r=this.measurementsCache[n];if(!r)return;const s=this.itemSizeCache.get(r.key)??r.size,a=i-s;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(r,a,this):r.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(r.index),this.itemSizeCache=new Map(this.itemSizeCache.set(r.key,i)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((i,r)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(r))});return}this._measureElement(n,void 0)},this.getVirtualItems=ua(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,i)=>{const r=[];for(let s=0,a=n.length;s<a;s++){const c=n[s],f=i[c];r.push(f)}return r},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const i=this.getMeasurements();if(i.length!==0)return c5(i[W9(0,i.length-1,r=>c5(i[r]).start,n)])},this.getOffsetForAlignment=(n,i,r=0)=>{const s=this.getSize(),a=this.getScrollOffset();i==="auto"&&(i=n>=a+s?"end":"start"),i==="center"?n+=(r-s)/2:i==="end"&&(n-=s);const c=this.getTotalSize()+this.options.scrollMargin-s;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,i="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.measurementsCache[n];if(!r)return;const s=this.getSize(),a=this.getScrollOffset();if(i==="auto")if(r.end>=a+s-this.options.scrollPaddingEnd)i="end";else if(r.start<=a+this.options.scrollPaddingStart)i="start";else return[a,i];const c=i==="end"?r.end+this.options.scrollPaddingEnd:r.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,i,r.size),i]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:i="start",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,i),{adjustments:void 0,behavior:r})},this.scrollToIndex=(n,{align:i="auto",behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let s=0;const a=10,c=h=>{if(!this.targetWindow)return;const p=this.getOffsetForIndex(n,h);if(!p){console.warn("Failed to get offset for index:",n);return}const[g,v]=p;this._scrollToOffset(g,{adjustments:void 0,behavior:r}),this.targetWindow.requestAnimationFrame(()=>{const y=this.getScrollOffset(),E=this.getOffsetForIndex(n,v);if(!E){console.warn("Failed to get offset for index:",n);return}ZG(E[0],y)||f(v)})},f=h=>{this.targetWindow&&(s++,s<a?this.targetWindow.requestAnimationFrame(()=>c(h)):console.warn(`Failed to scroll to index ${n} after ${a} attempts.`))};c(i)},this.scrollBy=(n,{behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:i})},this.getTotalSize=()=>{var n;const i=this.getMeasurements();let r;if(i.length===0)r=this.options.paddingStart;else if(this.options.lanes===1)r=((n=i[i.length-1])==null?void 0:n.end)??0;else{const s=Array(this.options.lanes).fill(null);let a=i.length-1;for(;a>=0&&s.some(c=>c===null);){const c=i[a];s[c.lane]===null&&(s[c.lane]=c.end),a--}r=Math.max(...s.filter(c=>c!==null))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:i,behavior:r})=>{this.options.scrollToFn(n,{behavior:r,adjustments:i},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const W9=(e,t,n,i)=>{for(;e<=t;){const r=(e+t)/2|0,s=n(r);if(s<i)e=r+1;else if(s>i)t=r-1;else return r}return e>0?e-1:0};function uY({measurements:e,outerSize:t,scrollOffset:n,lanes:i}){const r=e.length-1,s=f=>e[f].start;if(e.length<=i)return{startIndex:0,endIndex:r};let a=W9(0,r,s,n),c=a;if(i===1)for(;c<r&&e[c].end<n+t;)c++;else if(i>1){const f=Array(i).fill(0);for(;c<r&&f.some(p=>p<n+t);){const p=e[c];f[p.lane]=p.end,c++}const h=Array(i).fill(n+t);for(;a>=0&&h.some(p=>p>=n);){const p=e[a];h[p.lane]=p.start,a--}a=Math.max(0,a-a%i),c=Math.min(r,c+(i-1-c%i))}return{startIndex:a,endIndex:c}}const p5=typeof document<"u"?x.useLayoutEffect:x.useEffect;function oY(e){const t=x.useReducer(()=>({}),{})[1],n={...e,onChange:(r,s)=>{var a;s?Sn.flushSync(t):t(),(a=e.onChange)==null||a.call(e,r,s)}},[i]=x.useState(()=>new rY(n));return i.setOptions(n),p5(()=>i._didMount(),[]),p5(()=>i._willUpdate()),i}function sY(e){return oY({observeElementRect:eY,observeElementOffset:tY,scrollToFn:iY,...e})}function aY(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function lY(e=aY){return x.useCallback((t,n)=>{if(typeof e=="string"){let i=e;return(t==null?void 0:t[i])===(n==null?void 0:n[i])}return e(t,n)},[e])}function m5(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function g5(e,t,n=!1){let[i,r]=x.useState(()=>m5(t));return zt(()=>{if(!t||!e)return;let s=Oi();return s.requestAnimationFrame(function a(){s.requestAnimationFrame(a),r(c=>{let f=m5(t);return f.width===c.width&&f.height===c.height?c:f})}),()=>{s.dispose()}},[t,e]),n?{width:`${i.width}px`,height:`${i.height}px`}:i}let K9=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var cY=Object.defineProperty,fY=(e,t,n)=>t in e?cY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dY=(e,t,n)=>(fY(e,t+"",n),n),J9=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},xi=(e,t,n)=>(J9(e,t,"read from private field"),n?n.call(e):t.get(e)),xm=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},v5=(e,t,n,i)=>(J9(e,t,"write to private field"),t.set(e,n),n),gr,Kl,Jl;let eA=class{constructor(t){xm(this,gr,{}),xm(this,Kl,new K9(()=>new Set)),xm(this,Jl,new Set),dY(this,"disposables",Oi()),v5(this,gr,t),Sa.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return xi(this,gr)}subscribe(t,n){if(Sa.isServer)return()=>{};let i={selector:t,callback:n,current:t(xi(this,gr))};return xi(this,Jl).add(i),this.disposables.add(()=>{xi(this,Jl).delete(i)})}on(t,n){return Sa.isServer?()=>{}:(xi(this,Kl).get(t).add(n),this.disposables.add(()=>{xi(this,Kl).get(t).delete(n)}))}send(t){let n=this.reduce(xi(this,gr),t);if(n!==xi(this,gr)){v5(this,gr,n);for(let i of xi(this,Jl)){let r=i.selector(xi(this,gr));tA(i.current,r)||(i.current=r,i.callback(r))}for(let i of xi(this,Kl).get(t.type))i(xi(this,gr),t)}}};gr=new WeakMap,Kl=new WeakMap,Jl=new WeakMap;function tA(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Em(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Em(e.entries(),t.entries()):y5(e)&&y5(t)?Em(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Em(e,t){do{let n=e.next(),i=t.next();if(n.done&&i.done)return!0;if(n.done||i.done||!Object.is(n.value,i.value))return!1}while(!0)}function y5(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var hY=Object.defineProperty,pY=(e,t,n)=>t in e?hY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b5=(e,t,n)=>(pY(e,typeof t!="symbol"?t+"":t,n),n),nA=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(nA||{});let mY={0(e,t){let n=t.id,i=e.stack,r=e.stack.indexOf(n);if(r!==-1){let s=e.stack.slice();return s.splice(r,1),s.push(n),i=s,{...e,stack:i}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,i=e.stack.indexOf(n);if(i===-1)return e;let r=e.stack.slice();return r.splice(i,1),{...e,stack:r}}},gY=class iA extends eA{constructor(){super(...arguments),b5(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),b5(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new iA({stack:[]})}reduce(t,n){return Or(n.type,mY,t,n)}};const Lv=new K9(()=>gY.new());var Tm={exports:{}},Sm={};/**
|
|
366
|
+
* @license React
|
|
367
|
+
* use-sync-external-store-with-selector.production.js
|
|
368
|
+
*
|
|
369
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
370
|
+
*
|
|
371
|
+
* This source code is licensed under the MIT license found in the
|
|
372
|
+
* LICENSE file in the root directory of this source tree.
|
|
373
|
+
*/var x5;function vY(){if(x5)return Sm;x5=1;var e=jc();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,r=e.useRef,s=e.useEffect,a=e.useMemo,c=e.useDebugValue;return Sm.useSyncExternalStoreWithSelector=function(f,h,p,g,v){var y=r(null);if(y.current===null){var E={hasValue:!1,value:null};y.current=E}else E=y.current;y=a(function(){function _(R){if(!S){if(S=!0,D=R,R=g(R),v!==void 0&&E.hasValue){var M=E.value;if(v(M,R))return A=M}return A=R}if(M=A,n(D,R))return M;var j=g(R);return v!==void 0&&v(M,j)?(D=R,M):(D=R,A=j)}var S=!1,D,A,N=p===void 0?null:p;return[function(){return _(h())},N===null?void 0:function(){return _(N())}]},[h,p,g,v]);var T=i(f,y[0],y[1]);return s(function(){E.hasValue=!0,E.value=T},[T]),c(T),T},Sm}var E5;function yY(){return E5||(E5=1,Tm.exports=vY()),Tm.exports}var bY=yY();function Xt(e,t,n=tA){return bY.useSyncExternalStoreWithSelector(Qe(i=>e.subscribe(xY,i)),Qe(()=>e.state),Qe(()=>e.state),Qe(t),n)}function xY(e){return e}function rA(e,t){let n=x.useId(),i=Lv.get(t),[r,s]=Xt(i,x.useCallback(a=>[i.selectors.isTop(a,n),i.selectors.inStack(a,n)],[i,n]));return zt(()=>{if(e)return i.actions.push(n),()=>i.actions.pop(n)},[i,e,n]),e?s?r:!0:!1}let Qg=new Map,cc=new Map;function T5(e){var t;let n=(t=cc.get(e))!=null?t:0;return cc.set(e,n+1),n!==0?()=>S5(e):(Qg.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>S5(e))}function S5(e){var t;let n=(t=cc.get(e))!=null?t:1;if(n===1?cc.delete(e):cc.set(e,n-1),n!==1)return;let i=Qg.get(e);i&&(i["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",i["aria-hidden"]),e.inert=i.inert,Qg.delete(e))}function EY(e,{allowed:t,disallowed:n}={}){let i=rA(e,"inert-others");zt(()=>{var r,s;if(!i)return;let a=Oi();for(let f of(r=n==null?void 0:n())!=null?r:[])f&&a.add(T5(f));let c=(s=t==null?void 0:t())!=null?s:[];for(let f of c){if(!f)continue;let h=uf(f);if(!h)continue;let p=f.parentElement;for(;p&&p!==h.body;){for(let g of p.children)c.some(v=>g.contains(v))||a.add(T5(g));p=p.parentElement}}return a.dispose},[i,t,n])}function TY(e,t,n){let i=gs(r=>{let s=r.getBoundingClientRect();s.x===0&&s.y===0&&s.width===0&&s.height===0&&n()});x.useEffect(()=>{if(!e)return;let r=t===null?null:vo(t)?t:t.current;if(!r)return;let s=Oi();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>i.current(r));a.observe(r),s.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>i.current(r));a.observe(r),s.add(()=>a.disconnect())}return()=>s.dispose()},[t,i,e])}let Xg=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var SY=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(SY||{}),_Y=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(_Y||{}),CY=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(CY||{}),uA=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(uA||{});function AY(e,t=0){var n;return e===((n=uf(e))==null?void 0:n.body)?!1:Or(t,{0(){return e.matches(Xg)},1(){let i=e;for(;i!==null;){if(i.matches(Xg))return!0;i=i.parentElement}return!1}})}var wY=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(wY||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function DY(e,t=n=>n){return e.slice().sort((n,i)=>{let r=t(n),s=t(i);if(r===null||s===null)return 0;let a=r.compareDocumentPosition(s);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function oA(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function NY(){return/Android/gi.test(window.navigator.userAgent)}function Zg(){return oA()||NY()}function pa(e,t,n,i){let r=gs(n);x.useEffect(()=>{if(!e)return;function s(a){r.current(a)}return document.addEventListener(t,s,i),()=>document.removeEventListener(t,s,i)},[e,t,i])}function OY(e,t,n,i){let r=gs(n);x.useEffect(()=>{if(!e)return;function s(a){r.current(a)}return window.addEventListener(t,s,i),()=>window.removeEventListener(t,s,i)},[e,t,i])}const _5=30;function RY(e,t,n){let i=gs(n),r=x.useCallback(function(c,f){if(c.defaultPrevented)return;let h=f(c);if(h===null||!h.getRootNode().contains(h)||!h.isConnected)return;let p=function g(v){return typeof v=="function"?g(v()):Array.isArray(v)||v instanceof Set?v:[v]}(t);for(let g of p)if(g!==null&&(g.contains(h)||c.composed&&c.composedPath().includes(g)))return;return!AY(h,uA.Loose)&&h.tabIndex!==-1&&c.preventDefault(),i.current(c,h)},[i,t]),s=x.useRef(null);pa(e,"pointerdown",c=>{var f,h;Zg()||(s.current=((h=(f=c.composedPath)==null?void 0:f.call(c))==null?void 0:h[0])||c.target)},!0),pa(e,"pointerup",c=>{if(Zg()||!s.current)return;let f=s.current;return s.current=null,r(c,()=>f)},!0);let a=x.useRef({x:0,y:0});pa(e,"touchstart",c=>{a.current.x=c.touches[0].clientX,a.current.y=c.touches[0].clientY},!0),pa(e,"touchend",c=>{let f={x:c.changedTouches[0].clientX,y:c.changedTouches[0].clientY};if(!(Math.abs(f.x-a.current.x)>=_5||Math.abs(f.y-a.current.y)>=_5))return r(c,()=>Zo(c.target)?c.target:null)},!0),OY(e,"blur",c=>r(c,()=>IG(window.document.activeElement)?window.document.activeElement:null),!0)}function A0(...e){return x.useMemo(()=>uf(...e),[...e])}var kY=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(kY||{});const Gl={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},MY=200,C5=5;function LY(e,{trigger:t,action:n,close:i,select:r}){let s=x.useRef(null),a=x.useRef(null),c=x.useRef(null);pa(e&&t!==null,"pointerdown",f=>{G9(f==null?void 0:f.target)&&t!=null&&t.contains(f.target)&&(a.current=f.x,c.current=f.y,s.current=f.timeStamp)}),pa(e&&t!==null,"pointerup",f=>{var h,p;let g=s.current;if(g===null||(s.current=null,!Zo(f.target))||Math.abs(f.x-((h=a.current)!=null?h:f.x))<C5&&Math.abs(f.y-((p=c.current)!=null?p:f.y))<C5)return;let v=n(f);switch(v.kind){case 0:return;case 1:{f.timeStamp-g>MY&&(r(v.target),i());break}case 2:{i();break}}},{capture:!0})}function IY(e,t,n,i){let r=gs(n);x.useEffect(()=>{e=e??window;function s(a){r.current(a)}return e.addEventListener(t,s,i),()=>e.removeEventListener(t,s,i)},[e,t,i])}function sA(e){let t=x.useRef({value:"",selectionStart:null,selectionEnd:null});return IY(e,"blur",n=>{let i=n.target;C0(i)&&(t.current={value:i.value,selectionStart:i.selectionStart,selectionEnd:i.selectionEnd})}),Qe(()=>{if(document.activeElement!==e&&C0(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:i}=t.current;n!==null&&i!==null&&e.setSelectionRange(n,i)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function FY(e,t){return x.useMemo(()=>{var n;if(e.type)return e.type;let i=(n=e.as)!=null?n:"button";if(typeof i=="string"&&i.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function jY(e){return x.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function PY(e,t){let n=e(),i=new Set;return{getSnapshot(){return n},subscribe(r){return i.add(r),()=>i.delete(r)},dispatch(r,...s){let a=t[r].call(n,...s);a&&(n=a,i.forEach(c=>c()))}}}function VY(){let e;return{before({doc:t}){var n;let i=t.documentElement,r=(n=t.defaultView)!=null?n:window;e=Math.max(0,r.innerWidth-i.clientWidth)},after({doc:t,d:n}){let i=t.documentElement,r=Math.max(0,i.clientWidth-i.offsetWidth),s=Math.max(0,e-r);n.style(i,"paddingRight",`${s}px`)}}}function $Y(){return oA()?{before({doc:e,d:t,meta:n}){function i(r){return n.containers.flatMap(s=>s()).some(s=>s.contains(r))}t.microTask(()=>{var r;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let c=Oi();c.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>c.dispose()))}let s=(r=window.scrollY)!=null?r:window.pageYOffset,a=null;t.addEventListener(e,"click",c=>{if(Zo(c.target))try{let f=c.target.closest("a");if(!f)return;let{hash:h}=new URL(f.href),p=e.querySelector(h);Zo(p)&&!i(p)&&(a=p)}catch{}},!0),t.addEventListener(e,"touchstart",c=>{if(Zo(c.target)&&LG(c.target))if(i(c.target)){let f=c.target;for(;f.parentElement&&i(f.parentElement);)f=f.parentElement;t.style(f,"overscrollBehavior","contain")}else t.style(c.target,"touchAction","none")}),t.addEventListener(e,"touchmove",c=>{if(Zo(c.target)){if(C0(c.target))return;if(i(c.target)){let f=c.target;for(;f.parentElement&&f.dataset.headlessuiPortal!==""&&!(f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth);)f=f.parentElement;f.dataset.headlessuiPortal===""&&c.preventDefault()}else c.preventDefault()}},{passive:!1}),t.add(()=>{var c;let f=(c=window.scrollY)!=null?c:window.pageYOffset;s!==f&&window.scrollTo(0,s),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function BY(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function UY(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Wo=PY(()=>new Map,{PUSH(e,t){var n;let i=(n=this.get(e))!=null?n:{doc:e,count:0,d:Oi(),meta:new Set};return i.count++,i.meta.add(t),this.set(e,i),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let i={doc:e,d:t,meta:UY(n)},r=[$Y(),VY(),BY()];r.forEach(({before:s})=>s==null?void 0:s(i)),r.forEach(({after:s})=>s==null?void 0:s(i))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Wo.subscribe(()=>{let e=Wo.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let i=t.get(n.doc)==="hidden",r=n.count!==0;(r&&!i||!r&&i)&&Wo.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Wo.dispatch("TEARDOWN",n)}});function zY(e,t,n=()=>({containers:[]})){let i=jY(Wo),r=t?i.get(t):void 0,s=r?r.count>0:!1;return zt(()=>{if(!(!t||!e))return Wo.dispatch("PUSH",t,n),()=>Wo.dispatch("POP",t,n)},[e,t]),s}function qY(e,t,n=()=>[document.body]){let i=rA(e,"scroll-lock");zY(i,t,r=>{var s;return{containers:[...(s=r.containers)!=null?s:[],n]}})}function A5(e){return[e.screenX,e.screenY]}function HY(){let e=x.useRef([-1,-1]);return{wasMoved(t){let n=A5(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=A5(t)}}}function GY(e=0){let[t,n]=x.useState(e),i=x.useCallback(f=>n(f),[]),r=x.useCallback(f=>n(h=>h|f),[]),s=x.useCallback(f=>(t&f)===f,[t]),a=x.useCallback(f=>n(h=>h&~f),[]),c=x.useCallback(f=>n(h=>h^f),[]);return{flags:t,setFlag:i,addFlag:r,hasFlag:s,removeFlag:a,toggleFlag:c}}var YY={},w5,D5;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((w5=process==null?void 0:YY)==null?void 0:w5.NODE_ENV)==="test"&&typeof((D5=Element==null?void 0:Element.prototype)==null?void 0:D5.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
374
|
+
`)),[]});var QY=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(QY||{});function XY(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function ZY(e,t,n,i){let[r,s]=x.useState(n),{hasFlag:a,addFlag:c,removeFlag:f}=GY(e&&r?3:0),h=x.useRef(!1),p=x.useRef(!1),g=Ha();return zt(()=>{var v;if(e){if(n&&s(!0),!t){n&&c(3);return}return(v=void 0)==null||v.call(i,n),WY(t,{inFlight:h,prepare(){p.current?p.current=!1:p.current=h.current,h.current=!0,!p.current&&(n?(c(3),f(4)):(c(4),f(2)))},run(){p.current?n?(f(3),c(4)):(f(4),c(3)):n?f(1):c(1)},done(){var y;p.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(h.current=!1,f(7),n||s(!1),(y=void 0)==null||y.call(i,n))}})}},[e,n,t,g]),e?[r,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function WY(e,{prepare:t,run:n,done:i,inFlight:r}){let s=Oi();return JY(e,{prepare:t,inFlight:r}),s.nextFrame(()=>{n(),s.requestAnimationFrame(()=>{s.add(KY(e,i))})}),s.dispose}function KY(e,t){var n,i;let r=Oi();if(!e)return r.dispose;let s=!1;r.add(()=>{s=!0});let a=(i=(n=e.getAnimations)==null?void 0:n.call(e).filter(c=>c instanceof CSSTransition))!=null?i:[];return a.length===0?(t(),r.dispose):(Promise.allSettled(a.map(c=>c.finished)).then(()=>{s||t()}),r.dispose)}function JY(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let i=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=i}function eQ(e,{container:t,accept:n,walk:i}){let r=x.useRef(n),s=x.useRef(i);x.useEffect(()=>{r.current=n,s.current=i},[n,i]),zt(()=>{if(!t||!e)return;let a=uf(t);if(!a)return;let c=r.current,f=s.current,h=Object.assign(g=>c(g),{acceptNode:c}),p=a.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,h,!1);for(;p.nextNode();)f(p.currentNode)},[t,e,r,s])}function N5(e,t){let n=x.useRef([]),i=Qe(e);x.useEffect(()=>{let r=[...n.current];for(let[s,a]of t.entries())if(n.current[s]!==a){let c=i(t,r);return n.current=t,c}},[i,...t])}function tQ(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:i}=t;return n+"/"+i}).join(" "):navigator.userAgent}const aA={...Jg},nQ=aA.useInsertionEffect,iQ=nQ||(e=>e());function lA(e){const t=x.useRef(()=>{});return iQ(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.current==null?void 0:t.current(...i)},[])}var Wg=typeof document<"u"?x.useLayoutEffect:x.useEffect;let O5=!1,rQ=0;const R5=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+rQ++;function uQ(){const[e,t]=x.useState(()=>O5?R5():void 0);return Wg(()=>{e==null&&t(R5())},[]),x.useEffect(()=>{O5=!0},[]),e}const oQ=aA.useId,sQ=oQ||uQ;function aQ(){const e=new Map;return{emit(t,n){var i;(i=e.get(t))==null||i.forEach(r=>r(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,((i=e.get(t))==null?void 0:i.filter(r=>r!==n))||[])}}}const lQ=x.createContext(null),cQ=x.createContext(null),fQ=()=>{var e;return((e=x.useContext(lQ))==null?void 0:e.id)||null},dQ=()=>x.useContext(cQ),hQ="data-floating-ui-focusable";function pQ(e){const{open:t=!1,onOpenChange:n,elements:i}=e,r=sQ(),s=x.useRef({}),[a]=x.useState(()=>aQ()),c=fQ()!=null,[f,h]=x.useState(i.reference),p=lA((y,E,T)=>{s.current.openEvent=y?E:void 0,a.emit("openchange",{open:y,event:E,reason:T,nested:c}),n==null||n(y,E,T)}),g=x.useMemo(()=>({setPositionReference:h}),[]),v=x.useMemo(()=>({reference:f||i.reference||null,floating:i.floating||null,domReference:i.reference}),[f,i.reference,i.floating]);return x.useMemo(()=>({dataRef:s,open:t,onOpenChange:p,elements:v,events:a,floatingId:r,refs:g}),[t,p,v,a,r,g])}function mQ(e){e===void 0&&(e={});const{nodeId:t}=e,n=pQ({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[s,a]=x.useState(null),[c,f]=x.useState(null),p=(r==null?void 0:r.domReference)||s,g=x.useRef(null),v=dQ();Wg(()=>{p&&(g.current=p)},[p]);const y=__({...e,elements:{...r,...c&&{reference:c}}}),E=x.useCallback(A=>{const N=On(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),contextElement:A}:A;f(N),y.refs.setReference(N)},[y.refs]),T=x.useCallback(A=>{(On(A)||A===null)&&(g.current=A,a(A)),(On(y.refs.reference.current)||y.refs.reference.current===null||A!==null&&!On(A))&&y.refs.setReference(A)},[y.refs]),_=x.useMemo(()=>({...y.refs,setReference:T,setPositionReference:E,domReference:g}),[y.refs,T,E]),S=x.useMemo(()=>({...y.elements,domReference:p}),[y.elements,p]),D=x.useMemo(()=>({...y,...i,refs:_,elements:S,nodeId:t}),[y,_,S,t,i]);return Wg(()=>{i.dataRef.current.floatingContext=D;const A=v==null?void 0:v.nodesRef.current.find(N=>N.id===t);A&&(A.context=D)}),x.useMemo(()=>({...y,context:D,refs:_,elements:S}),[y,_,S,D])}const k5="active",M5="selected";function _m(e,t,n){const i=new Map,r=n==="item";let s=e;if(r&&e){const{[k5]:a,[M5]:c,...f}=e;s=f}return{...n==="floating"&&{tabIndex:-1,[hQ]:""},...s,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(f=>{let[h,p]=f;if(!(r&&[k5,M5].includes(h)))if(h.indexOf("on")===0){if(i.has(h)||i.set(h,[]),typeof p=="function"){var g;(g=i.get(h))==null||g.push(p),a[h]=function(){for(var v,y=arguments.length,E=new Array(y),T=0;T<y;T++)E[T]=arguments[T];return(v=i.get(h))==null?void 0:v.map(_=>_(...E)).find(_=>_!==void 0)}}}else a[h]=p}),a),{})}}function gQ(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),i=e.map(c=>c==null?void 0:c.item),r=x.useCallback(c=>_m(c,e,"reference"),t),s=x.useCallback(c=>_m(c,e,"floating"),n),a=x.useCallback(c=>_m(c,e,"item"),i);return x.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:a}),[r,s,a])}function L5(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const vQ=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:i,onFallbackChange:r,offset:s=0,index:a=0,minItemsVisible:c=4,referenceOverflowThreshold:f=0,scrollRef:h,...p}=wr(e,t),{rects:g,elements:{floating:v}}=t,y=n.current[a],E=(h==null?void 0:h.current)||v,T=v.clientTop||E.clientTop,_=v.clientTop!==0,S=E.clientTop!==0,D=v===E;if(!y)return{};const A={...t,...await L2(-y.offsetTop-v.clientTop-g.reference.height/2-y.offsetHeight/2-s).fn(t)},N=await K1(L5(A,E.scrollHeight+T+v.clientTop),p),R=await K1(A,{...p,elementContext:"reference"}),M=Tn(0,N.top),j=A.y+M,U=(E.scrollHeight>E.clientHeight?Y=>Y:_c)(Tn(0,E.scrollHeight+(_&&D||S?T*2:0)-M-Tn(0,N.bottom)));if(E.style.maxHeight=U+"px",E.scrollTop=M,r){const Y=E.offsetHeight<y.offsetHeight*pu(c,n.current.length)-1||R.top>=-f||R.bottom>=-f;Sn.flushSync(()=>r(Y))}return i&&(i.current=await K1(L5({...A,y:j},E.offsetHeight+T+v.clientTop),p)),{y:j}}});function yQ(e,t){const{open:n,elements:i}=e,{enabled:r=!0,overflowRef:s,scrollRef:a,onChange:c}=t,f=lA(c),h=x.useRef(!1),p=x.useRef(null),g=x.useRef(null);x.useEffect(()=>{if(!r)return;function y(T){if(T.ctrlKey||!E||s.current==null)return;const _=T.deltaY,S=s.current.top>=-.5,D=s.current.bottom>=-.5,A=E.scrollHeight-E.clientHeight,N=_<0?-1:1,R=_<0?"max":"min";E.scrollHeight<=E.clientHeight||(!S&&_>0||!D&&_<0?(T.preventDefault(),Sn.flushSync(()=>{f(M=>M+Math[R](_,A*N))})):/firefox/i.test(tQ())&&(E.scrollTop+=_))}const E=(a==null?void 0:a.current)||i.floating;if(n&&E)return E.addEventListener("wheel",y),requestAnimationFrame(()=>{p.current=E.scrollTop,s.current!=null&&(g.current={...s.current})}),()=>{p.current=null,g.current=null,E.removeEventListener("wheel",y)}},[r,n,i.floating,s,a,f]);const v=x.useMemo(()=>({onKeyDown(){h.current=!0},onWheel(){h.current=!1},onPointerMove(){h.current=!1},onScroll(){const y=(a==null?void 0:a.current)||i.floating;if(!(!s.current||!y||!h.current)){if(p.current!==null){const E=y.scrollTop-p.current;(s.current.bottom<-.5&&E<-1||s.current.top<-.5&&E>1)&&Sn.flushSync(()=>f(T=>T+E))}requestAnimationFrame(()=>{p.current=y.scrollTop})}}}),[i.floating,f,s,a]);return x.useMemo(()=>r?{floating:v}:{},[r,v])}let of=x.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});of.displayName="FloatingContext";let Iv=x.createContext(null);Iv.displayName="PlacementContext";function bQ(e){return x.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function xQ(){return x.useContext(of).setReference}function EQ(){let{getFloatingProps:e,slot:t}=x.useContext(of);return x.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function TQ(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=x.useContext(Iv),n=x.useMemo(()=>e,[JSON.stringify(e,(r,s)=>{var a;return(a=s==null?void 0:s.outerHTML)!=null?a:s})]);zt(()=>{t==null||t(n??null)},[t,n]);let i=x.useContext(of);return x.useMemo(()=>[i.setFloating,e?i.styles:{}],[i.setFloating,e,i.styles])}let I5=4;function SQ({children:e,enabled:t=!0}){let[n,i]=x.useState(null),[r,s]=x.useState(0),a=x.useRef(null),[c,f]=x.useState(null);_Q(c);let h=t&&n!==null&&c!==null,{to:p="bottom",gap:g=0,offset:v=0,padding:y=0,inner:E}=CQ(n,c),[T,_="center"]=p.split(" ");zt(()=>{h&&s(0)},[h]);let{refs:S,floatingStyles:D,context:A}=mQ({open:h,placement:T==="selection"?_==="center"?"bottom":`bottom-${_}`:_==="center"?`${T}`:`${T}-${_}`,strategy:"absolute",transform:!1,middleware:[L2({mainAxis:T==="selection"?0:g,crossAxis:v}),C_({padding:y}),T!=="selection"&&A_({padding:y}),T==="selection"&&E?vQ({...E,padding:y,overflowRef:a,offset:r,minItemsVisible:I5,referenceOverflowThreshold:y,onFallbackChange(Y){var K,se;if(!Y)return;let ne=A.elements.floating;if(!ne)return;let te=parseFloat(getComputedStyle(ne).scrollPaddingBottom)||0,I=Math.min(I5,ne.childElementCount),z=0,P=0;for(let V of(se=(K=A.elements.floating)==null?void 0:K.childNodes)!=null?se:[])if(vo(V)){let k=V.offsetTop,H=k+V.clientHeight+te,oe=ne.scrollTop,ie=oe+ne.clientHeight;if(k>=oe&&H<=ie)I--;else{P=Math.max(0,Math.min(H,ie)-Math.max(k,oe)),z=V.clientHeight;break}}I>=1&&s(V=>{let k=z*I-P+te;return V>=k?V:k})}}):null,w_({padding:y,apply({availableWidth:Y,availableHeight:K,elements:se}){Object.assign(se.floating.style,{overflow:"auto",maxWidth:`${Y}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${K}px)`})}})].filter(Boolean),whileElementsMounted:T_}),[N=T,R=_]=A.placement.split("-");T==="selection"&&(N="selection");let M=x.useMemo(()=>({anchor:[N,R].filter(Boolean).join(" ")}),[N,R]),j=yQ(A,{overflowRef:a,onChange:s}),{getReferenceProps:$,getFloatingProps:L}=gQ([j]),U=Qe(Y=>{f(Y),S.setFloating(Y)});return x.createElement(Iv.Provider,{value:i},x.createElement(of.Provider,{value:{setFloating:U,setReference:S.setReference,styles:D,getReferenceProps:$,getFloatingProps:L,slot:M}},e))}function _Q(e){zt(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,i=parseFloat(n);if(isNaN(i))return;let r=parseInt(n);isNaN(r)||i!==r&&(e.style.maxHeight=`${Math.ceil(i)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function CQ(e,t){var n,i,r;let s=Cm((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),a=Cm((i=e==null?void 0:e.offset)!=null?i:"var(--anchor-offset, 0)",t),c=Cm((r=e==null?void 0:e.padding)!=null?r:"var(--anchor-padding, 0)",t);return{...e,gap:s,offset:a,padding:c}}function Cm(e,t,n=void 0){let i=Ha(),r=Qe((f,h)=>{if(f==null)return[n,null];if(typeof f=="number")return[f,null];if(typeof f=="string"){if(!h)return[n,null];let p=F5(f,h);return[p,g=>{let v=cA(f);{let y=v.map(E=>window.getComputedStyle(h).getPropertyValue(E));i.requestAnimationFrame(function E(){i.nextFrame(E);let T=!1;for(let[S,D]of v.entries()){let A=window.getComputedStyle(h).getPropertyValue(D);if(y[S]!==A){y[S]=A,T=!0;break}}if(!T)return;let _=F5(f,h);p!==_&&(g(_),p=_)})}return i.dispose}]}return[n,null]}),s=x.useMemo(()=>r(e,t)[0],[e,t]),[a=s,c]=x.useState();return zt(()=>{let[f,h]=r(e,t);if(c(f),!!h)return h(c)},[e,t]),a}function cA(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let i=t[1].slice(0,n).trim(),r=t[1].slice(n+1).trim();return r?[i,...cA(r)]:[i]}return[]}function F5(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let i=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),i}function AQ({children:e,freeze:t}){let n=Kg(t,e);return Re.createElement(Re.Fragment,null,n)}function Kg(e,t){let[n,i]=x.useState(t);return!e&&n!==t&&i(t),e?n:t}let Fv=x.createContext(null);Fv.displayName="OpenClosedContext";var Ic=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ic||{});function wQ(){return x.useContext(Fv)}function DQ({value:e,children:t}){return Re.createElement(Fv.Provider,{value:e},t)}function NQ(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let qo=[];NQ(()=>{function e(t){if(!Zo(t.target)||t.target===document.body||qo[0]===t.target)return;let n=t.target;n=n.closest(Xg),qo.unshift(n??t.target),qo=qo.filter(i=>i!=null&&i.isConnected),qo.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function OQ(e){throw new Error("Unexpected object: "+e)}var nn=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(nn||{});function j5(e,t){let n=t.resolveItems();if(n.length<=0)return null;let i=t.resolveActiveIndex(),r=i??-1;switch(e.focus){case 0:{for(let s=0;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return i}case 1:{r===-1&&(r=n.length);for(let s=r-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return i}case 2:{for(let s=r+1;s<n.length;++s)if(!t.resolveDisabled(n[s],s,n))return s;return i}case 3:{for(let s=n.length-1;s>=0;--s)if(!t.resolveDisabled(n[s],s,n))return s;return i}case 4:{for(let s=0;s<n.length;++s)if(t.resolveId(n[s],s,n)===e.id)return s;return i}case 5:return null;default:OQ(e)}}var jv=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(jv||{});function fA(e){let t=Qe(e),n=x.useRef(!1);x.useEffect(()=>(n.current=!1,()=>{n.current=!0,V9(()=>{n.current&&t()})}),[t])}let RQ=x.createContext(!1);function kQ(){return x.useContext(RQ)}function MQ(e){let t=kQ(),n=x.useContext(hA),[i,r]=x.useState(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Sa.isServer)return null;let a=e==null?void 0:e.getElementById("headlessui-portal-root");if(a)return a;if(e===null)return null;let c=e.createElement("div");return c.setAttribute("id","headlessui-portal-root"),e.body.appendChild(c)});return x.useEffect(()=>{i!==null&&(e!=null&&e.body.contains(i)||e==null||e.body.appendChild(i))},[i,e]),x.useEffect(()=>{t||n!==null&&r(n.current)},[n,r,t]),i}let dA=x.Fragment,LQ=Wi(function(e,t){let{ownerDocument:n=null,...i}=e,r=x.useRef(null),s=bu($G(v=>{r.current=v}),t),a=A0(r),c=n??a,f=MQ(c),h=x.useContext(PQ),p=Ha(),g=Zi();return fA(()=>{var v;f&&f.childNodes.length<=0&&((v=f.parentElement)==null||v.removeChild(f))}),f?Sn.createPortal(Re.createElement("div",{"data-headlessui-portal":"",ref:v=>{p.dispose(),h&&v&&p.add(h.register(v))}},g({ourProps:{ref:s},theirProps:i,slot:{},defaultTag:dA,name:"Portal"})),f):null});function IQ(e,t){let n=bu(t),{enabled:i=!0,ownerDocument:r,...s}=e,a=Zi();return i?Re.createElement(LQ,{...s,ownerDocument:r,ref:n}):a({ourProps:{ref:n},theirProps:s,slot:{},defaultTag:dA,name:"Portal"})}let FQ=x.Fragment,hA=x.createContext(null);function jQ(e,t){let{target:n,...i}=e,r={ref:bu(t)},s=Zi();return Re.createElement(hA.Provider,{value:n},s({ourProps:r,theirProps:i,defaultTag:FQ,name:"Popover.Group"}))}let PQ=x.createContext(null),VQ=Wi(IQ),$Q=Wi(jQ),BQ=Object.assign(VQ,{Group:$Q});const ec={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function pA(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function UQ(e,t,n){let i=Oi();if(t.kind==="Tracked"){let r=function(){s!==pA(e)&&(i.dispose(),n())},{position:s}=t,a=new ResizeObserver(r);a.observe(e),i.add(()=>a.disconnect()),i.addEventListener(window,"scroll",r,{passive:!0}),i.addEventListener(window,"resize",r)}return()=>i.dispose()}var zQ=Object.defineProperty,qQ=(e,t,n)=>t in e?zQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P5=(e,t,n)=>(qQ(e,typeof t!="symbol"?t+"":t,n),n),Ge=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ge||{}),ni=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ni||{}),Ar=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Ar||{}),mA=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e[e.MarkInputAsMoved=12]="MarkInputAsMoved",e))(mA||{});function Am(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,i=t(e.options.slice()),r=i.length>0&&i[0].dataRef.current.order!==null?i.sort((a,c)=>a.dataRef.current.order-c.dataRef.current.order):DY(i,a=>a.dataRef.current.domRef.current),s=n?r.indexOf(n):null;return s===-1&&(s=null),{options:r,activeOptionIndex:s}}let HQ={1(e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1)return e;let n=e.inputElement?ec.Tracked(pA(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let i=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(i!==-1)return{...e,activeOptionIndex:i,comboboxState:0,__demoMode:!1,inputPositionState:ec.Idle}}return{...e,comboboxState:0,inputPositionState:ec.Idle,__demoMode:!1}},3(e,t){return e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping}},2(e,t){var n,i,r,s;if((n=e.dataRef.current)!=null&&n.disabled||e.optionsElement&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let{options:h,disabled:p}=e.virtual,g=t.focus===nn.Specific?t.idx:j5(t,{resolveItems:()=>h,resolveActiveIndex:()=>{var y,E;return(E=(y=e.activeOptionIndex)!=null?y:h.findIndex(T=>!p(T)))!=null?E:null},resolveDisabled:p,resolveId(){throw new Error("Function not implemented.")}}),v=(r=t.trigger)!=null?r:2;return e.activeOptionIndex===g&&e.activationTrigger===v?e:{...e,activeOptionIndex:g,activationTrigger:v,isTyping:!1,__demoMode:!1}}let a=Am(e);if(a.activeOptionIndex===null){let h=a.options.findIndex(p=>!p.dataRef.current.disabled);h!==-1&&(a.activeOptionIndex=h)}let c=t.focus===nn.Specific?t.idx:j5(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled}),f=(s=t.trigger)!=null?s:2;return e.activeOptionIndex===c&&e.activationTrigger===f?e:{...e,...a,isTyping:!1,activeOptionIndex:c,activationTrigger:f,__demoMode:!1}},4:(e,t)=>{var n,i,r,s;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let a=t.payload,c=Am(e,h=>(h.push(a),h));e.activeOptionIndex===null&&(r=(i=e.dataRef.current).isSelected)!=null&&r.call(i,t.payload.dataRef.current.value)&&(c.activeOptionIndex=c.options.indexOf(a));let f={...e,...c,activationTrigger:2};return(s=e.dataRef.current)!=null&&s.__demoMode&&e.dataRef.current.value===void 0&&(f.activeOptionIndex=0),f},5:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(r=>r.id!==t.id)};let i=Am(e,r=>{let s=r.findIndex(a=>a.id===t.id);return s!==-1&&r.splice(s,1),r});return{...e,...i,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var n,i;if(e.virtual===null)return{...e,virtual:{options:t.options,disabled:(n=t.disabled)!=null?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let s=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);s!==-1?r=s:r=null}return{...e,activeOptionIndex:r,virtual:{options:t.options,disabled:(i=t.disabled)!=null?i:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12(e){return e.inputPositionState.kind!=="Tracked"?e:{...e,inputPositionState:ec.Moved}}};class Pv extends eA{constructor(t){super(t),P5(this,"actions",{onChange:n=>{let{onChange:i,compare:r,mode:s,value:a}=this.state.dataRef.current;return Or(s,{0:()=>i==null?void 0:i(n),1:()=>{let c=a.slice(),f=c.findIndex(h=>r(h,n));return f===-1?c.push(n):c.splice(f,1),i==null?void 0:i(c)}})},registerOption:(n,i)=>(this.send({type:4,payload:{id:n,dataRef:i}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(i.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:n})}),goToOption:(n,i)=>(this.send({type:6,value:!1}),this.send({type:2,...n,trigger:i})),setIsTyping:n=>{this.send({type:3,isTyping:n})},closeCombobox:()=>{var n,i;this.send({type:1}),this.send({type:6,value:!1}),(i=(n=this.state.dataRef.current).onClose)==null||i.call(n)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:n=>{this.send({type:7,trigger:n})},selectActiveOption:()=>{let n=this.selectors.activeOptionIndex(this.state);if(n!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[n]);else{let{dataRef:i}=this.state.options[n];this.actions.onChange(i.current.value)}this.actions.goToOption({focus:nn.Specific,idx:n})}},setInputElement:n=>{this.send({type:9,element:n})},setButtonElement:n=>{this.send({type:10,element:n})},setOptionsElement:n=>{this.send({type:11,element:n})}}),P5(this,"selectors",{activeDescendantId:n=>{var i,r;let s=this.selectors.activeOptionIndex(n);if(s!==null)return n.virtual?(r=n.options.find(a=>!a.dataRef.current.disabled&&n.dataRef.current.compare(a.dataRef.current.value,n.virtual.options[s])))==null?void 0:r.id:(i=n.options[s])==null?void 0:i.id},activeOptionIndex:n=>{if(n.defaultToFirstOption&&n.activeOptionIndex===null&&(n.virtual?n.virtual.options.length>0:n.options.length>0)){if(n.virtual){let{options:r,disabled:s}=n.virtual,a=r.findIndex(c=>{var f;return!((f=s==null?void 0:s(c))!=null&&f)});if(a!==-1)return a}let i=n.options.findIndex(r=>!r.dataRef.current.disabled);if(i!==-1)return i}return n.activeOptionIndex},activeOption:n=>{var i,r;let s=this.selectors.activeOptionIndex(n);return s===null?null:n.virtual?n.virtual.options[s??0]:(r=(i=n.options[s])==null?void 0:i.dataRef.current.value)!=null?r:null},isActive:(n,i,r)=>{var s;let a=this.selectors.activeOptionIndex(n);return a===null?!1:n.virtual?a===n.dataRef.current.calculateIndex(i):((s=n.options[a])==null?void 0:s.id)===r},shouldScrollIntoView:(n,i,r)=>!(n.virtual||n.__demoMode||n.comboboxState!==0||n.activationTrigger===0||!this.selectors.isActive(n,i,r)),didInputMove(n){return n.inputPositionState.kind==="Moved"}});{let n=this.state.id,i=Lv.get(null);this.disposables.add(i.on(nA.Push,r=>{!i.selectors.isTop(r,n)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>i.actions.push(n)),this.on(1,()=>i.actions.pop(n))}this.disposables.group(n=>{this.on(1,i=>{i.inputElement&&(n.dispose(),n.add(UQ(i.inputElement,i.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:t,virtual:n=null,__demoMode:i=!1}){var r;return new Pv({id:t,dataRef:{current:{}},comboboxState:i?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:(r=n.disabled)!=null?r:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:i,inputPositionState:ec.Idle})}reduce(t,n){return Or(n.type,HQ,t,n)}}const gA=x.createContext(null);function sf(e){let t=x.useContext(gA);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,vA),n}return t}function vA({id:e,virtual:t=null,__demoMode:n=!1}){let i=x.useMemo(()=>Pv.new({id:e,virtual:t,__demoMode:n}),[]);return fA(()=>i.dispose()),i}let Fc=x.createContext(null);Fc.displayName="ComboboxDataContext";function Ga(e){let t=x.useContext(Fc);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ga),n}return t}let yA=x.createContext(null);function GQ(e){let t=sf("VirtualProvider"),n=Ga("VirtualProvider"),{options:i}=n.virtual,r=Xt(t,y=>y.optionsElement),[s,a]=x.useMemo(()=>{let y=r;if(!y)return[0,0];let E=window.getComputedStyle(y);return[parseFloat(E.paddingBlockStart||E.paddingTop),parseFloat(E.paddingBlockEnd||E.paddingBottom)]},[r]),c=sY({enabled:i.length!==0,scrollPaddingStart:s,scrollPaddingEnd:a,count:i.length,estimateSize(){return 40},getScrollElement(){return t.state.optionsElement},overscan:12}),[f,h]=x.useState(0);zt(()=>{h(y=>y+1)},[i]);let p=c.getVirtualItems(),g=Xt(t,y=>y.activationTrigger===Ar.Pointer),v=Xt(t,t.selectors.activeOptionIndex);return p.length===0?null:Re.createElement(yA.Provider,{value:c},Re.createElement("div",{style:{position:"relative",width:"100%",height:`${c.getTotalSize()}px`},ref:y=>{y&&(g||v!==null&&i.length>v&&c.scrollToIndex(v))}},p.map(y=>{var E;return Re.createElement(x.Fragment,{key:y.key},Re.cloneElement((E=e.children)==null?void 0:E.call(e,{...e.slot,option:i[y.index]}),{key:`${f}-${y.key}`,"data-index":y.index,"aria-setsize":i.length,"aria-posinset":y.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${y.start}px)`,overflowAnchor:"none"}}))})))}let YQ=x.Fragment;function QQ(e,t){let n=x.useId(),i=Ov(),{value:r,defaultValue:s,onChange:a,form:c,name:f,by:h,invalid:p=!1,disabled:g=i||!1,onClose:v,__demoMode:y=!1,multiple:E=!1,immediate:T=!1,virtual:_=null,nullable:S,...D}=e,A=AG(s),[N=E?[]:void 0,R]=CG(r,a,A),M=vA({id:n,virtual:_,__demoMode:y}),j=x.useRef({static:!1,hold:!1}),$=lY(h),L=Qe(re=>_?h===null?_.options.indexOf(re):_.options.findIndex(me=>$(me,re)):M.state.options.findIndex(me=>$(me.dataRef.current.value,re))),U=x.useCallback(re=>Or(se.mode,{[ni.Multi]:()=>N.some(me=>$(me,re)),[ni.Single]:()=>$(N,re)}),[N]),Y=Xt(M,re=>re.virtual),K=Qe(()=>v==null?void 0:v()),se=x.useMemo(()=>({__demoMode:y,immediate:T,optionsPropsRef:j,value:N,defaultValue:A,disabled:g,invalid:p,mode:E?ni.Multi:ni.Single,virtual:_?Y:null,onChange:R,isSelected:U,calculateIndex:L,compare:$,onClose:K}),[y,T,j,N,A,g,p,E,_,Y,R,U,L,$,K]);zt(()=>{var re;_&&M.send({type:mA.UpdateVirtualConfiguration,options:_.options,disabled:(re=_.disabled)!=null?re:null})},[_,_==null?void 0:_.options,_==null?void 0:_.disabled]),zt(()=>{M.state.dataRef.current=se},[se]);let[ne,te,I,z]=Xt(M,re=>[re.comboboxState,re.buttonElement,re.inputElement,re.optionsElement]),P=Lv.get(null),V=Xt(P,x.useCallback(re=>P.selectors.isTop(re,n),[P,n]));RY(V,[te,I,z],()=>M.actions.closeCombobox());let k=Xt(M,M.selectors.activeOptionIndex),H=Xt(M,M.selectors.activeOption),oe=vs({open:ne===Ge.Open,disabled:g,invalid:p,activeIndex:k,activeOption:H,value:N}),[ie,G]=HG(),pe=t===null?{}:{ref:t},de=x.useCallback(()=>{if(A!==void 0)return R==null?void 0:R(A)},[R,A]),fe=Zi();return Re.createElement(G,{value:ie,props:{htmlFor:I==null?void 0:I.id},slot:{open:ne===Ge.Open,disabled:g}},Re.createElement(SQ,null,Re.createElement(Fc.Provider,{value:se},Re.createElement(gA.Provider,{value:M},Re.createElement(DQ,{value:Or(ne,{[Ge.Open]:Ic.Open,[Ge.Closed]:Ic.Closed})},f!=null&&Re.createElement(RG,{disabled:g,data:N!=null?{[f]:N}:{},form:c,onReset:de}),fe({ourProps:pe,theirProps:D,slot:oe,defaultTag:YQ,name:"Combobox"}))))))}let XQ="input";function ZQ(e,t){var n,i;let r=sf("Combobox.Input"),s=Ga("Combobox.Input"),a=x.useId(),c=H9(),{id:f=c||`headlessui-combobox-input-${a}`,onChange:h,displayValue:p,disabled:g=s.disabled||!1,autoFocus:v=!1,type:y="text",...E}=e,[T]=Xt(r,G=>[G.inputElement]),_=x.useRef(null),S=bu(_,t,xQ(),r.actions.setInputElement),D=A0(T),[A,N]=Xt(r,G=>[G.comboboxState,G.isTyping]),R=Ha(),M=Qe(()=>{r.actions.onChange(null),r.state.optionsElement&&(r.state.optionsElement.scrollTop=0),r.actions.goToOption({focus:nn.Nothing})}),j=x.useMemo(()=>{var G;return typeof p=="function"&&s.value!==void 0?(G=p(s.value))!=null?G:"":typeof s.value=="string"?s.value:""},[s.value,p]);N5(([G,pe],[de,fe])=>{if(r.state.isTyping)return;let re=_.current;re&&((fe===Ge.Open&&pe===Ge.Closed||G!==de)&&(re.value=G),requestAnimationFrame(()=>{if(r.state.isTyping||!re||(D==null?void 0:D.activeElement)!==re)return;let{selectionStart:me,selectionEnd:xe}=re;Math.abs((xe??0)-(me??0))===0&&me===0&&re.setSelectionRange(re.value.length,re.value.length)}))},[j,A,D,N]),N5(([G],[pe])=>{if(G===Ge.Open&&pe===Ge.Closed){if(r.state.isTyping)return;let de=_.current;if(!de)return;let fe=de.value,{selectionStart:re,selectionEnd:me,selectionDirection:xe}=de;de.value="",de.value=fe,xe!==null?de.setSelectionRange(re,me,xe):de.setSelectionRange(re,me)}},[A]);let $=x.useRef(!1),L=Qe(()=>{$.current=!0}),U=Qe(()=>{R.nextFrame(()=>{$.current=!1})}),Y=Qe(G=>{switch(r.actions.setIsTyping(!0),G.key){case Dn.Enter:if(r.state.comboboxState!==Ge.Open||$.current)return;if(G.preventDefault(),G.stopPropagation(),r.selectors.activeOptionIndex(r.state)===null){r.actions.closeCombobox();return}r.actions.selectActiveOption(),s.mode===ni.Single&&r.actions.closeCombobox();break;case Dn.ArrowDown:return G.preventDefault(),G.stopPropagation(),Or(r.state.comboboxState,{[Ge.Open]:()=>r.actions.goToOption({focus:nn.Next}),[Ge.Closed]:()=>r.actions.openCombobox()});case Dn.ArrowUp:return G.preventDefault(),G.stopPropagation(),Or(r.state.comboboxState,{[Ge.Open]:()=>r.actions.goToOption({focus:nn.Previous}),[Ge.Closed]:()=>{Sn.flushSync(()=>r.actions.openCombobox()),s.value||r.actions.goToOption({focus:nn.Last})}});case Dn.Home:if(G.shiftKey)break;return G.preventDefault(),G.stopPropagation(),r.actions.goToOption({focus:nn.First});case Dn.PageUp:return G.preventDefault(),G.stopPropagation(),r.actions.goToOption({focus:nn.First});case Dn.End:if(G.shiftKey)break;return G.preventDefault(),G.stopPropagation(),r.actions.goToOption({focus:nn.Last});case Dn.PageDown:return G.preventDefault(),G.stopPropagation(),r.actions.goToOption({focus:nn.Last});case Dn.Escape:return r.state.comboboxState!==Ge.Open?void 0:(G.preventDefault(),r.state.optionsElement&&!s.optionsPropsRef.current.static&&G.stopPropagation(),s.mode===ni.Single&&s.value===null&&M(),r.actions.closeCombobox());case Dn.Tab:if(r.actions.setIsTyping(!1),r.state.comboboxState!==Ge.Open)return;s.mode===ni.Single&&r.state.activationTrigger!==Ar.Focus&&r.actions.selectActiveOption(),r.actions.closeCombobox();break}}),K=Qe(G=>{h==null||h(G),s.mode===ni.Single&&G.target.value===""&&M(),r.actions.openCombobox()}),se=Qe(G=>{var pe,de,fe;let re=(pe=G.relatedTarget)!=null?pe:qo.find(me=>me!==G.currentTarget);if(!((de=r.state.optionsElement)!=null&&de.contains(re))&&!((fe=r.state.buttonElement)!=null&&fe.contains(re))&&r.state.comboboxState===Ge.Open)return G.preventDefault(),s.mode===ni.Single&&s.value===null&&M(),r.actions.closeCombobox()}),ne=Qe(G=>{var pe,de,fe;let re=(pe=G.relatedTarget)!=null?pe:qo.find(me=>me!==G.currentTarget);(de=r.state.buttonElement)!=null&&de.contains(re)||(fe=r.state.optionsElement)!=null&&fe.contains(re)||s.disabled||s.immediate&&r.state.comboboxState!==Ge.Open&&R.microTask(()=>{Sn.flushSync(()=>r.actions.openCombobox()),r.actions.setActivationTrigger(Ar.Focus)})}),te=fh(),I=BG(),{isFocused:z,focusProps:P}=P9({autoFocus:v}),{isHovered:V,hoverProps:k}=j9({isDisabled:g}),H=Xt(r,G=>G.optionsElement),oe=vs({open:A===Ge.Open,disabled:g,invalid:s.invalid,hover:V,focus:z,autofocus:v}),ie=Rv({ref:S,id:f,role:"combobox",type:y,"aria-controls":H==null?void 0:H.id,"aria-expanded":A===Ge.Open,"aria-activedescendant":Xt(r,r.selectors.activeDescendantId),"aria-labelledby":te,"aria-describedby":I,"aria-autocomplete":"list",defaultValue:(i=(n=e.defaultValue)!=null?n:s.defaultValue!==void 0?p==null?void 0:p(s.defaultValue):null)!=null?i:s.defaultValue,disabled:g||void 0,autoFocus:v,onCompositionStart:L,onCompositionEnd:U,onKeyDown:Y,onChange:K,onFocus:ne,onBlur:se},P,k);return Zi()({ourProps:ie,theirProps:E,slot:oe,defaultTag:XQ,name:"Combobox.Input"})}let WQ="button";function KQ(e,t){let n=sf("Combobox.Button"),i=Ga("Combobox.Button"),[r,s]=x.useState(null),a=bu(t,s,n.actions.setButtonElement),c=x.useId(),{id:f=`headlessui-combobox-button-${c}`,disabled:h=i.disabled||!1,autoFocus:p=!1,...g}=e,[v,y,E]=Xt(n,K=>[K.comboboxState,K.inputElement,K.optionsElement]),T=sA(y),_=v===Ge.Open;LY(_,{trigger:r,action:x.useCallback(K=>{if(r!=null&&r.contains(K.target)||y!=null&&y.contains(K.target))return Gl.Ignore;let se=K.target.closest('[role="option"]:not([data-disabled])');return vo(se)?Gl.Select(se):E!=null&&E.contains(K.target)?Gl.Ignore:Gl.Close},[r,y,E]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let S=Qe(K=>{switch(K.key){case Dn.Space:case Dn.Enter:K.preventDefault(),K.stopPropagation(),n.state.comboboxState===Ge.Closed&&Sn.flushSync(()=>n.actions.openCombobox()),T();return;case Dn.ArrowDown:K.preventDefault(),K.stopPropagation(),n.state.comboboxState===Ge.Closed&&(Sn.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:nn.First})),T();return;case Dn.ArrowUp:K.preventDefault(),K.stopPropagation(),n.state.comboboxState===Ge.Closed&&(Sn.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:nn.Last})),T();return;case Dn.Escape:if(n.state.comboboxState!==Ge.Open)return;K.preventDefault(),n.state.optionsElement&&!i.optionsPropsRef.current.static&&K.stopPropagation(),Sn.flushSync(()=>n.actions.closeCombobox()),T();return;default:return}}),D=Qe(K=>{K.preventDefault(),!PG(K.currentTarget)&&(K.button===jv.Left&&(n.state.comboboxState===Ge.Open?n.actions.closeCombobox():n.actions.openCombobox()),T())}),A=fh([f]),{isFocusVisible:N,focusProps:R}=P9({autoFocus:p}),{isHovered:M,hoverProps:j}=j9({isDisabled:h}),{pressed:$,pressProps:L}=vG({disabled:h}),U=vs({open:v===Ge.Open,active:$||v===Ge.Open,disabled:h,invalid:i.invalid,value:i.value,hover:M,focus:N}),Y=Rv({ref:a,id:f,type:FY(e,r),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":E==null?void 0:E.id,"aria-expanded":v===Ge.Open,"aria-labelledby":A,disabled:h||void 0,autoFocus:p,onPointerDown:D,onKeyDown:S},R,j,L);return Zi()({ourProps:Y,theirProps:g,slot:U,defaultTag:WQ,name:"Combobox.Button"})}let JQ="div",eX=Yg.RenderStrategy|Yg.Static;function tX(e,t){var n,i,r;let s=x.useId(),{id:a=`headlessui-combobox-options-${s}`,hold:c=!1,anchor:f,portal:h=!1,modal:p=!0,transition:g=!1,...v}=e,y=sf("Combobox.Options"),E=Ga("Combobox.Options"),T=bQ(f);T&&(h=!0);let[_,S]=TQ(T),[D,A]=x.useState(null),N=EQ(),R=bu(t,T?_:null,y.actions.setOptionsElement,A),[M,j,$,L,U]=Xt(y,Te=>[Te.comboboxState,Te.inputElement,Te.buttonElement,Te.optionsElement,Te.activationTrigger]),Y=A0(j||$),K=A0(L),se=wQ(),[ne,te]=ZY(g,D,se!==null?(se&Ic.Open)===Ic.Open:M===Ge.Open);TY(ne,j,y.actions.closeCombobox);let I=E.__demoMode?!1:p&&M===Ge.Open;qY(I,K);let z=E.__demoMode?!1:p&&M===Ge.Open;EY(z,{allowed:x.useCallback(()=>[j,$,L],[j,$,L])});let P=Xt(y,y.selectors.didInputMove)?!1:ne;zt(()=>{var Te;E.optionsPropsRef.current.static=(Te=e.static)!=null?Te:!1},[E.optionsPropsRef,e.static]),zt(()=>{E.optionsPropsRef.current.hold=c},[E.optionsPropsRef,c]),eQ(M===Ge.Open,{container:L,accept(Te){return Te.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:Te.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(Te){Te.setAttribute("role","none")}});let V=fh([$==null?void 0:$.id]),k=vs({open:M===Ge.Open,option:void 0}),H=Qe(()=>{y.actions.setActivationTrigger(Ar.Pointer)}),oe=Qe(Te=>{Te.preventDefault(),y.actions.setActivationTrigger(Ar.Pointer)}),ie=Rv(T?N():{},{"aria-labelledby":V,role:"listbox","aria-multiselectable":E.mode===ni.Multi?!0:void 0,id:a,ref:R,style:{...v.style,...S,"--input-width":g5(ne,j,!0).width,"--button-width":g5(ne,$,!0).width},onWheel:U===Ar.Pointer?void 0:H,onMouseDown:oe,...XY(te)}),G=ne&&M===Ge.Closed&&!e.static,pe=Kg(G,(n=E.virtual)==null?void 0:n.options),de=Kg(G,E.value),fe=x.useCallback(Te=>E.compare(de,Te),[E.compare,de]),re=x.useMemo(()=>{if(!E.virtual)return E;if(pe===void 0)throw new Error("Missing `options` in virtual mode");return pe!==E.virtual.options?{...E,virtual:{...E.virtual,options:pe}}:E},[E,pe,(i=E.virtual)==null?void 0:i.options]);E.virtual&&Object.assign(v,{children:Re.createElement(Fc.Provider,{value:re},Re.createElement(GQ,{slot:k},v.children))});let me=Zi(),xe=x.useMemo(()=>E.mode===ni.Multi?E:{...E,isSelected:fe},[E,fe]);return Re.createElement(BQ,{enabled:h?e.static||ne:!1,ownerDocument:Y},Re.createElement(Fc.Provider,{value:xe},me({ourProps:ie,theirProps:{...v,children:Re.createElement(AQ,{freeze:G},typeof v.children=="function"?(r=v.children)==null?void 0:r.call(v,k):v.children)},slot:k,defaultTag:JQ,features:eX,visible:P,name:"Combobox.Options"})))}let nX="div";function iX(e,t){var n,i,r;let s=Ga("Combobox.Option"),a=sf("Combobox.Option"),c=x.useId(),{id:f=`headlessui-combobox-option-${c}`,value:h,disabled:p=(r=(i=(n=s.virtual)==null?void 0:n.disabled)==null?void 0:i.call(n,h))!=null?r:!1,order:g=null,...v}=e,[y]=Xt(a,te=>[te.inputElement]),E=sA(y),T=Xt(a,x.useCallback(te=>a.selectors.isActive(te,h,f),[h,f])),_=s.isSelected(h),S=x.useRef(null),D=gs({disabled:p,value:h,domRef:S,order:g}),A=x.useContext(yA),N=bu(t,S,A?A.measureElement:null),R=Qe(()=>{a.actions.setIsTyping(!1),a.actions.onChange(h)});zt(()=>a.actions.registerOption(f,D),[D,f]);let M=Xt(a,x.useCallback(te=>a.selectors.shouldScrollIntoView(te,h,f),[h,f]));zt(()=>{if(M)return Oi().requestAnimationFrame(()=>{var te,I;(I=(te=S.current)==null?void 0:te.scrollIntoView)==null||I.call(te,{block:"nearest"})})},[M,S]);let j=Qe(te=>{te.preventDefault(),te.button===jv.Left&&(p||(R(),Zg()||requestAnimationFrame(()=>E()),s.mode===ni.Single&&a.actions.closeCombobox()))}),$=Qe(()=>{if(p)return a.actions.goToOption({focus:nn.Nothing});let te=s.calculateIndex(h);a.actions.goToOption({focus:nn.Specific,idx:te})}),L=HY(),U=Qe(te=>L.update(te)),Y=Qe(te=>{if(!L.wasMoved(te)||p||T&&a.state.activationTrigger===Ar.Pointer)return;let I=s.calculateIndex(h);a.actions.goToOption({focus:nn.Specific,idx:I},Ar.Pointer)}),K=Qe(te=>{L.wasMoved(te)&&(p||T&&(s.optionsPropsRef.current.hold||a.state.activationTrigger===Ar.Pointer&&a.actions.goToOption({focus:nn.Nothing})))}),se=vs({active:T,focus:T,selected:_,disabled:p}),ne={id:f,ref:N,role:"option",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,"aria-selected":_,disabled:void 0,onMouseDown:j,onFocus:$,onPointerEnter:U,onMouseEnter:U,onPointerMove:Y,onMouseMove:Y,onPointerLeave:K,onMouseLeave:K};return Zi()({ourProps:ne,theirProps:v,slot:se,defaultTag:nX,name:"Combobox.Option"})}let rX=Wi(QQ),uX=Wi(KQ),bA=Wi(ZQ),oX=XG,xA=Wi(tX),dh=Wi(iX),sX=Object.assign(rX,{Input:bA,Button:uX,Label:oX,Options:xA,Option:dh});const aX=()=>{const e=ge.c(32),t=wv(),{push:n}=ah(),i=x.useRef(null),r=lX(),[s,a]=x.useState("");let c;e[0]!==r||e[1]!==s?(c=()=>r(s),e[0]=r,e[1]=s,e[2]=c):c=e[2];const[f,h]=x.useState(c);let p;e[3]!==r?(p=Na(200,ne=>{h(r(ne))}),e[3]=r,e[4]=p):p=e[4];const g=p,[v]=x.useState(i),y=v.current===document.activeElement;let E,T;e[5]!==g||e[6]!==s?(E=()=>{g(s)},T=[g,s],e[5]=g,e[6]=s,e[7]=E,e[8]=T):(E=e[7],T=e[8]),x.useEffect(E,T);let _,S;e[9]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{const ne=function(I){I.metaKey&&I.key==="k"&&i.current.focus()};return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},S=[],e[9]=_,e[10]=S):(_=e[9],S=e[10]),x.useEffect(_,S);let D,A,N;if(e[11]!==t||e[12]!==n){D=t.at(-1);let ne;e[16]!==n?(ne=te=>{n("field"in te?{name:te.field.name,def:te.field}:{name:te.type.name,def:te.type})},e[16]=n,e[17]=ne):ne=e[17],A=ne,N=t.length===1||bt(D.def)||St(D.def)||sn(D.def),e[11]=t,e[12]=n,e[13]=D,e[14]=A,e[15]=N}else D=e[13],A=e[14],N=e[15];if(!N)return null;const M=y?void 0:"idle",j=`Search ${D.name}...`;let $,L;e[18]===Symbol.for("react.memo_cache_sentinel")?(L=()=>{i.current.focus()},$=C.jsx(gI,{}),e[18]=$,e[19]=L):($=e[18],L=e[19]);let U;e[20]===Symbol.for("react.memo_cache_sentinel")?(U=ne=>a(ne.target.value),e[20]=U):U=e[20];let Y;e[21]!==s?(Y=C.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:L,children:[$,C.jsx(bA,{autoComplete:"off",onChange:U,placeholder:`${c2?"⌘":"Ctrl"} K`,ref:i,value:s,"data-cy":"doc-explorer-input"})]}),e[21]=s,e[22]=Y):Y=e[22];let K;e[23]!==y||e[24]!==f?(K=y&&C.jsxs(xA,{"data-cy":"doc-explorer-list",children:[f.within.length+f.types.length+f.fields.length===0?C.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):f.within.map(cX),f.within.length>0&&f.types.length+f.fields.length>0?C.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,f.types.map(fX),f.fields.map(dX)]}),e[23]=y,e[24]=f,e[25]=K):K=e[25];let se;return e[26]!==A||e[27]!==Y||e[28]!==K||e[29]!==M||e[30]!==j?(se=C.jsxs(sX,{as:"div",className:"graphiql-doc-explorer-search",onChange:A,"data-state":M,"aria-label":j,children:[Y,K]}),e[26]=A,e[27]=Y,e[28]=K,e[29]=M,e[30]=j,e[31]=se):se=e[31],se};function lX(){const e=ge.c(5),t=wv(),{schema:n}=kr();let i;e[0]!==t?(i=t.at(-1),e[0]=t,e[1]=i):i=e[1];const r=i;let s;return e[2]!==r||e[3]!==n?(s=a=>{const c={within:[],types:[],fields:[]};if(!n)return c;const f=r.def,h=n.getTypeMap();let p=Object.keys(h);f&&(p=p.filter(g=>g!==f.name),p.unshift(f.name));for(const g of p){if(c.within.length+c.types.length+c.fields.length>=100)break;const v=h[g];if(f!==v&&wm(g,a)&&c.types.push({type:v}),!bt(v)&&!St(v)&&!sn(v))continue;const y=v.getFields();for(const E in y){const T=y[E];let _;if(!wm(E,a))if("args"in T){if(_=T.args.filter(S=>wm(S.name,a)),_.length===0)continue}else continue;c[f===v?"within":"fields"].push(..._?_.map(S=>({type:v,field:T,argument:S})):[{type:v,field:T}])}}return c},e[2]=r,e[3]=n,e[4]=s):s=e[4],s}function wm(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,i=>"\\"+i);return new RegExp(n,"i").test(e)}catch{return e.toLowerCase().includes(t.toLowerCase())}}const Vv=e=>{const t=ge.c(2),{type:n}=e;let i;return t[0]!==n.name?(i=C.jsx("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=i):i=t[1],i},EA=e=>{const t=ge.c(7),{field:n,argument:i}=e;let r;t[0]!==n.name?(r=C.jsx("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=r):r=t[1];let s;t[2]!==i?(s=i?C.jsxs(C.Fragment,{children:["(",C.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:i.name}),":"," ",T0(i.type,hX),")"]}):null,t[2]=i,t[3]=s):s=t[3];let a;return t[4]!==r||t[5]!==s?(a=C.jsxs(C.Fragment,{children:[r,s]}),t[4]=r,t[5]=s,t[6]=a):a=t[6],a};function cX(e,t){return C.jsx(dh,{value:e,"data-cy":"doc-explorer-option",children:C.jsx(EA,{field:e.field,argument:e.argument})},`within-${t}`)}function fX(e,t){return C.jsx(dh,{value:e,"data-cy":"doc-explorer-option",children:C.jsx(Vv,{type:e.type})},`type-${t}`)}function dX(e,t){return C.jsxs(dh,{value:e,"data-cy":"doc-explorer-option",children:[C.jsx(Vv,{type:e.type}),".",C.jsx(EA,{field:e.field,argument:e.argument})]},`field-${t}`)}function hX(e){return C.jsx(Vv,{type:e})}const pX=e=>{const t=ge.c(6),{field:n}=e,{push:i}=ah();let r;t[0]!==n||t[1]!==i?(r=a=>{a.preventDefault(),i({name:n.name,def:n})},t[0]=n,t[1]=i,t[2]=r):r=t[2];let s;return t[3]!==n.name||t[4]!==r?(s=C.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:r,href:"#",children:n.name}),t[3]=n.name,t[4]=r,t[5]=s):s=t[5],s},mX=e=>{const t=ge.c(2),{type:n}=e;let i;return t[0]!==n?(i=i2(n)?C.jsxs(C.Fragment,{children:[n.description?C.jsx(Nr,{type:"description",children:n.description}):null,C.jsx(gX,{type:n}),C.jsx(vX,{type:n}),C.jsx(yX,{type:n}),C.jsx(bX,{type:n})]}):null,t[0]=n,t[1]=i):i=t[1],i},gX=e=>{const t=ge.c(5),{type:n}=e;if(!bt(n))return null;let i;t[0]!==n?(i=n.getInterfaces(),t[0]=n,t[1]=i):i=t[1];const r=i;let s;return t[2]!==r.length||t[3]!==n?(s=r.length>0?C.jsx(Di,{title:"Implements",children:n.getInterfaces().map(xX)}):null,t[2]=r.length,t[3]=n,t[4]=s):s=t[4],s},vX=e=>{const t=ge.c(12),{type:n}=e,[i,r]=x.useState(!1);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{r(!0)},t[0]=s):s=t[0];const a=s;if(!bt(n)&&!St(n)&&!sn(n))return null;let c,f,h;if(t[1]!==n){const v=n.getFields();f=[],c=[];for(const y of Object.keys(v).map(E=>v[E]))y.deprecationReason?c.push(y):f.push(y);h=f.length>0?C.jsx(Di,{title:"Fields",children:f.map(EX)}):null,t[1]=n,t[2]=c,t[3]=f,t[4]=h}else c=t[2],f=t[3],h=t[4];let p;t[5]!==c||t[6]!==f.length||t[7]!==i?(p=c.length>0?i||f.length===0?C.jsx(Di,{title:"Deprecated Fields",children:c.map(TX)}):C.jsx(Ui,{type:"button",onClick:a,children:"Show Deprecated Fields"}):null,t[5]=c,t[6]=f.length,t[7]=i,t[8]=p):p=t[8];let g;return t[9]!==h||t[10]!==p?(g=C.jsxs(C.Fragment,{children:[h,p]}),t[9]=h,t[10]=p,t[11]=g):g=t[11],g},TA=e=>{const t=ge.c(22),{field:n}=e;let i,r,s;if(t[0]!==n){const v="args"in n?n.args.filter(SX):[];s="graphiql-doc-explorer-item",i=C.jsx(pX,{field:n}),r=v.length>0?C.jsxs(C.Fragment,{children:["(",C.jsx("span",{children:v.map(y=>v.length===1?C.jsx(S0,{arg:y,inline:!0},y.name):C.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:C.jsx(S0,{arg:y,inline:!0})},y.name))}),")"]}):null,t[0]=n,t[1]=i,t[2]=r,t[3]=s}else i=t[1],r=t[2],s=t[3];let a;t[4]!==n.type?(a=C.jsx(lu,{type:n.type}),t[4]=n.type,t[5]=a):a=t[5];let c;t[6]!==n?(c=C.jsx(S9,{field:n}),t[6]=n,t[7]=c):c=t[7];let f;t[8]!==i||t[9]!==r||t[10]!==a||t[11]!==c?(f=C.jsxs("div",{children:[i,r,": ",a,c]}),t[8]=i,t[9]=r,t[10]=a,t[11]=c,t[12]=f):f=t[12];let h;t[13]!==n.description?(h=n.description?C.jsx(Nr,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=h):h=t[14];let p;t[15]!==n.deprecationReason?(p=C.jsx(_9,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=p):p=t[16];let g;return t[17]!==s||t[18]!==f||t[19]!==h||t[20]!==p?(g=C.jsxs("div",{className:s,children:[f,h,p]}),t[17]=s,t[18]=f,t[19]=h,t[20]=p,t[21]=g):g=t[21],g},yX=e=>{const t=ge.c(12),{type:n}=e,[i,r]=x.useState(!1);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{r(!0)},t[0]=s):s=t[0];const a=s;if(!oi(n))return null;let c,f,h;if(t[1]!==n){h=[],c=[];for(const v of n.getValues())v.deprecationReason?c.push(v):h.push(v);f=h.length>0?C.jsx(Di,{title:"Enum Values",children:h.map(_X)}):null,t[1]=n,t[2]=c,t[3]=f,t[4]=h}else c=t[2],f=t[3],h=t[4];let p;t[5]!==c||t[6]!==i||t[7]!==h.length?(p=c.length>0?i||h.length===0?C.jsx(Di,{title:"Deprecated Enum Values",children:c.map(CX)}):C.jsx(Ui,{type:"button",onClick:a,children:"Show Deprecated Values"}):null,t[5]=c,t[6]=i,t[7]=h.length,t[8]=p):p=t[8];let g;return t[9]!==f||t[10]!==p?(g=C.jsxs(C.Fragment,{children:[f,p]}),t[9]=f,t[10]=p,t[11]=g):g=t[11],g},SA=e=>{const t=ge.c(10),{value:n}=e;let i;t[0]!==n.name?(i=C.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=i):i=t[1];let r;t[2]!==n.description?(r=n.description&&C.jsx(Nr,{type:"description",children:n.description}),t[2]=n.description,t[3]=r):r=t[3];let s;t[4]!==n.deprecationReason?(s=n.deprecationReason&&C.jsx(Nr,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=s):s=t[5];let a;return t[6]!==i||t[7]!==r||t[8]!==s?(a=C.jsxs("div",{className:"graphiql-doc-explorer-item",children:[i,r,s]}),t[6]=i,t[7]=r,t[8]=s,t[9]=a):a=t[9],a},bX=e=>{const t=ge.c(6),{type:n}=e,{schema:i}=kr();if(!i||!cu(n))return null;const r=St(n)?"Implementations":"Possible Types";let s;t[0]!==i||t[1]!==n?(s=i.getPossibleTypes(n).map(AX),t[0]=i,t[1]=n,t[2]=s):s=t[2];let a;return t[3]!==r||t[4]!==s?(a=C.jsx(Di,{title:r,children:s}),t[3]=r,t[4]=s,t[5]=a):a=t[5],a};function xX(e){return C.jsx("div",{children:C.jsx(lu,{type:e})},e.name)}function EX(e){return C.jsx(TA,{field:e},e.name)}function TX(e){return C.jsx(TA,{field:e},e.name)}function SX(e){return!e.deprecationReason}function _X(e){return C.jsx(SA,{value:e},e.name)}function CX(e){return C.jsx(SA,{value:e},e.name)}function AX(e){return C.jsx("div",{children:C.jsx(lu,{type:e})},e.name)}const wX=()=>{const e=ge.c(38),{fetchError:t,isFetching:n,schema:i,validationErrors:r}=kr(),s=wv(),{pop:a}=ah();let c,f;if(e[0]!==s||e[1]!==t||e[2]!==n||e[3]!==i||e[4]!==r){if(f=s.at(-1),c=null,t){let S;e[7]===Symbol.for("react.memo_cache_sentinel")?(S=C.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[7]=S):S=e[7],c=S}else if(r.length>0){let S;e[8]!==r[0].message?(S=C.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",r[0].message]}),e[8]=r[0].message,e[9]=S):S=e[9],c=S}else if(n){let S;e[10]===Symbol.for("react.memo_cache_sentinel")?(S=C.jsx(q2,{}),e[10]=S):S=e[10],c=S}else if(i){if(s.length===1){let S;e[12]!==i?(S=C.jsx(zH,{schema:i}),e[12]=i,e[13]=S):S=e[13],c=S}else if(t2(f.def)){let S;e[14]!==f.def?(S=C.jsx(mX,{type:f.def}),e[14]=f.def,e[15]=S):S=e[15],c=S}else if(f.def){let S;e[16]!==f.def?(S=C.jsx(jH,{field:f.def}),e[16]=f.def,e[17]=S):S=e[17],c=S}}else{let S;e[11]===Symbol.for("react.memo_cache_sentinel")?(S=C.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[11]=S):S=e[11],c=S}e[0]=s,e[1]=t,e[2]=n,e[3]=i,e[4]=r,e[5]=c,e[6]=f}else c=e[5],f=e[6];let h;if(s.length>1){let S;e[18]!==s?(S=s.at(-2),e[18]=s,e[19]=S):S=e[19],h=S.name}let p;e[20]!==a||e[21]!==h?(p=h&&C.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:S=>{S.preventDefault(),a()},"aria-label":`Go back to ${h}`,children:[C.jsx(nI,{}),h]}),e[20]=a,e[21]=h,e[22]=p):p=e[22];let g;e[23]!==f.name?(g=C.jsx("div",{className:"graphiql-doc-explorer-title",children:f.name}),e[23]=f.name,e[24]=g):g=e[24];let v;e[25]!==p||e[26]!==g?(v=C.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[p,g]}),e[25]=p,e[26]=g,e[27]=v):v=e[27];let y;e[28]!==f.name?(y=C.jsx(aX,{},f.name),e[28]=f.name,e[29]=y):y=e[29];let E;e[30]!==v||e[31]!==y?(E=C.jsxs("div",{className:"graphiql-doc-explorer-header",children:[v,y]}),e[30]=v,e[31]=y,e[32]=E):E=e[32];let T;e[33]!==c?(T=C.jsx("div",{className:"graphiql-doc-explorer-content",children:c}),e[33]=c,e[34]=T):T=e[34];let _;return e[35]!==E||e[36]!==T?(_=C.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[E,T]}),e[35]=E,e[36]=T,e[37]=_):_=e[37],_},_A={title:"Documentation Explorer",icon:function(){const{visiblePlugin:t}=j0();return t===_A?C.jsx(lI,{}):C.jsx(cI,{})},content:wX},DX=e=>{var t,n;const i=ge.c(72);let r,s,a,c,f,h,p,g,v,y,E,T,_,S,D,A,N,R,M,j,$,L,U,Y,K,se,ne,te,I;i[0]!==e?({dangerouslyAssumeSchemaIsValid:s,confirmCloseTab:r,defaultQuery:c,defaultTabs:f,externalFragments:h,fetcher:p,getDefaultFieldNames:g,headers:v,inputValueDeprecation:y,introspectionQueryName:E,maxHistoryLength:T,onEditOperationName:_,onSchemaChange:S,onTabChange:D,onTogglePluginVisibility:A,operationName:N,plugins:K,referencePlugin:se,query:M,response:j,schema:$,schemaDescription:L,shouldPersistHeaders:U,storage:Y,validationRules:ne,variables:te,visiblePlugin:I,defaultHeaders:a,...R}=e,i[0]=e,i[1]=r,i[2]=s,i[3]=a,i[4]=c,i[5]=f,i[6]=h,i[7]=p,i[8]=g,i[9]=v,i[10]=y,i[11]=E,i[12]=T,i[13]=_,i[14]=S,i[15]=D,i[16]=A,i[17]=N,i[18]=R,i[19]=M,i[20]=j,i[21]=$,i[22]=L,i[23]=U,i[24]=Y,i[25]=K,i[26]=se,i[27]=ne,i[28]=te,i[29]=I):(r=i[1],s=i[2],a=i[3],c=i[4],f=i[5],h=i[6],p=i[7],g=i[8],v=i[9],y=i[10],E=i[11],T=i[12],_=i[13],S=i[14],D=i[15],A=i[16],N=i[17],R=i[18],M=i[19],j=i[20],$=i[21],L=i[22],U=i[23],Y=i[24],K=i[25],se=i[26],ne=i[27],te=i[28],I=i[29]);let z;i[30]!==K?(z=K===void 0?[]:K,i[30]=K,i[31]=z):z=i[31];const P=z,V=se===void 0?_A:se;if((t=R.toolbar)!=null&&t.additionalContent)throw new TypeError("`toolbar.additionalContent` was removed. Use render props on `GraphiQL.Toolbar` component instead.");if((n=R.toolbar)!=null&&n.additionalComponent)throw new TypeError("`toolbar.additionalComponent` was removed. Use render props on `GraphiQL.Toolbar` component instead.");let k;i[32]!==P||i[33]!==V?(k=[V,OH,...P],i[32]=P,i[33]=V,i[34]=k):k=i[34];let H;i[35]!==s||i[36]!==a||i[37]!==c||i[38]!==f||i[39]!==h||i[40]!==p||i[41]!==g||i[42]!==v||i[43]!==y||i[44]!==E||i[45]!==_||i[46]!==S||i[47]!==D||i[48]!==A||i[49]!==N||i[50]!==M||i[51]!==V||i[52]!==j||i[53]!==$||i[54]!==L||i[55]!==U||i[56]!==Y||i[57]!==k||i[58]!==ne||i[59]!==te||i[60]!==I?(H={getDefaultFieldNames:g,dangerouslyAssumeSchemaIsValid:s,defaultQuery:c,defaultHeaders:a,defaultTabs:f,externalFragments:h,fetcher:p,headers:v,inputValueDeprecation:y,introspectionQueryName:E,onEditOperationName:_,onSchemaChange:S,onTabChange:D,onTogglePluginVisibility:A,plugins:k,referencePlugin:V,visiblePlugin:I,operationName:N,query:M,response:j,schema:$,schemaDescription:L,shouldPersistHeaders:U,storage:Y,validationRules:ne,variables:te},i[35]=s,i[36]=a,i[37]=c,i[38]=f,i[39]=h,i[40]=p,i[41]=g,i[42]=v,i[43]=y,i[44]=E,i[45]=_,i[46]=S,i[47]=D,i[48]=A,i[49]=N,i[50]=M,i[51]=V,i[52]=j,i[53]=$,i[54]=L,i[55]=U,i[56]=Y,i[57]=k,i[58]=ne,i[59]=te,i[60]=I,i[61]=H):H=i[61];const oe=H,ie=U!==!1;let G;i[62]!==r||i[63]!==R||i[64]!==ie?(G=C.jsx(RH,{children:C.jsx(OX,{confirmCloseTab:r,showPersistHeadersSettings:ie,forcedTheme:R.forcedTheme,...R})}),i[62]=r,i[63]=R,i[64]=ie,i[65]=G):G=i[65];let pe;i[66]!==T||i[67]!==G?(pe=C.jsx(yH,{maxHistoryLength:T,children:G}),i[66]=T,i[67]=G,i[68]=pe):pe=i[68];let de;return i[69]!==oe||i[70]!==pe?(de=C.jsx(EL,{...oe,children:pe}),i[69]=oe,i[70]=pe,i[71]=de):de=i[71],de},NX=["light","dark","system"],Dm="graphiql-session-tab-",OX=e=>{const t=ge.c(234),n=e.isHeadersEditorEnabled??!0;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0},t[0]=i):i=t[0];const{initialVariables:r,initialHeaders:s,setShouldPersistHeaders:a,addTab:c,moveTab:f,closeTab:h,changeTab:p,shouldPersistHeaders:g,tabs:v,activeTabIndex:y}=vn(i);let E;t[1]===Symbol.for("react.memo_cache_sentinel")?(E={nonNull:!0},t[1]=E):E=t[1];const T=Va(E),{isFetching:_,introspect:S}=kr(),D=ja(),{visiblePlugin:A,setVisiblePlugin:N,plugins:R}=j0(),M=e.forcedTheme&&NX.includes(e.forcedTheme)?e.forcedTheme:void 0,{theme:j,setTheme:$}=TL(e.defaultTheme);let L,U;t[2]!==M||t[3]!==$?(L=()=>{M==="system"?$(null):(M==="light"||M==="dark")&&$(M)},U=[M,$],t[2]=M,t[3]=$,t[4]=L,t[5]=U):(L=t[4],U=t[5]),x.useEffect(L,U);const Y=A==null?void 0:A.content,K=A?void 0:"first";let se;t[6]!==N||t[7]!==K?(se={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:K,onHiddenElementChange(Ue){Ue==="first"&&N(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},t[6]=N,t[7]=K,t[8]=se):se=t[8];const ne=z1(se);let te;t[9]===Symbol.for("react.memo_cache_sentinel")?(te={direction:"horizontal",storageKey:"editorFlex"},t[9]=te):te=t[9];const I=z1(te);let z;e:{if(e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"){z=void 0;break e}if(typeof e.defaultEditorToolsVisibility=="boolean"){z=e.defaultEditorToolsVisibility?void 0:"second";break e}z=r||s?void 0:"second"}let P;t[10]!==z?(P={defaultSizeRelation:3,direction:"vertical",initiallyHidden:z,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},t[10]=z,t[11]=P):P=t[11];const V=z1(P);let k;t[12]!==s||t[13]!==r||t[14]!==n||t[15]!==e.defaultEditorToolsVisibility?(k=()=>e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"?e.defaultEditorToolsVisibility:!r&&s&&n?"headers":"variables",t[12]=s,t[13]=r,t[14]=n,t[15]=e.defaultEditorToolsVisibility,t[16]=k):k=t[16];const[H,oe]=x.useState(k),[ie,G]=x.useState(null),[pe,de]=x.useState(null);let fe;if(t[17]!==e.children||t[18]!==e.onCopyQuery||t[19]!==e.onPrettifyQuery){let Ue;t[21]!==e.onCopyQuery||t[22]!==e.onPrettifyQuery?(Ue=(yn,bn)=>{e:switch(PX(bn)){case oa.Logo:{yn.logo=bn;break e}case oa.Toolbar:{yn.toolbar=x.cloneElement(bn,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery});break e}case oa.Footer:{yn.footer=bn;break e}default:yn.children.push(bn)}return yn},t[21]=e.onCopyQuery,t[22]=e.onPrettifyQuery,t[23]=Ue):Ue=t[23];let lt;t[24]===Symbol.for("react.memo_cache_sentinel")?(lt=C.jsx(oa.Logo,{}),t[24]=lt):lt=t[24];let Pt;t[25]!==e.onCopyQuery||t[26]!==e.onPrettifyQuery?(Pt=C.jsx(oa.Toolbar,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery}),t[25]=e.onCopyQuery,t[26]=e.onPrettifyQuery,t[27]=Pt):Pt=t[27],fe=x.Children.toArray(e.children).reduce(Ue,{logo:lt,toolbar:Pt,children:[]}),t[17]=e.children,t[18]=e.onCopyQuery,t[19]=e.onPrettifyQuery,t[20]=fe}else fe=t[20];const{logo:re,toolbar:me,footer:xe,children:Te}=fe;let st;t[28]!==ne?(st=()=>{ne.hiddenElement==="first"&&ne.setHiddenElement(null)},t[28]=ne,t[29]=st):st=t[29];const _e=st;let gt;t[30]!==D?(gt=()=>{try{D.clear(),de("success")}catch{de("error")}},t[30]=D,t[31]=gt):gt=t[31];const an=gt;let ln;t[32]!==a?(ln=Ue=>{a(Ue.currentTarget.dataset.value==="true")},t[32]=a,t[33]=ln):ln=t[33];const at=ln;let Se;t[34]!==$?(Se=Ue=>{const lt=Ue.currentTarget.dataset.theme;$(lt||null)},t[34]=$,t[35]=Se):Se=t[35];const Le=Se;let De;t[36]===Symbol.for("react.memo_cache_sentinel")?(De=Ue=>{G(Ue.currentTarget.dataset.value)},t[36]=De):De=t[36];const ke=De;let xt;t[37]!==ne||t[38]!==R||t[39]!==N||t[40]!==A?(xt=Ue=>{const lt=Number(Ue.currentTarget.dataset.index),Pt=R.find((bn,Lu)=>lt===Lu);Pt===A?(N(null),ne.setHiddenElement("first")):(N(Pt),ne.setHiddenElement(null))},t[37]=ne,t[38]=R,t[39]=N,t[40]=A,t[41]=xt):xt=t[41];const He=xt;let _n;t[42]!==V?(_n=Ue=>{V.hiddenElement==="second"&&V.setHiddenElement(null),oe(Ue.currentTarget.dataset.name)},t[42]=V,t[43]=_n):_n=t[43];const Ri=_n;let Ki;t[44]!==V?(Ki=()=>{V.setHiddenElement(V.hiddenElement==="second"?null:"second")},t[44]=V,t[45]=Ki):Ki=t[45];const cn=Ki;let zn;t[46]===Symbol.for("react.memo_cache_sentinel")?(zn=Ue=>{Ue||G(null)},t[46]=zn):zn=t[46];const Cn=zn;let ys;t[47]===Symbol.for("react.memo_cache_sentinel")?(ys=Ue=>{Ue||(G(null),de(null))},t[47]=ys):ys=t[47];const hh=ys,bs=e.confirmCloseTab;let jr;t[48]!==y||t[49]!==h||t[50]!==bs||t[51]!==T?(jr=async Ue=>{const lt=Ue.currentTarget.previousSibling,Pt=Number(lt.id.replace(Dm,""));(!bs||await bs(Pt))&&(y===Pt&&T.stop(),h(Pt))},t[48]=y,t[49]=h,t[50]=bs,t[51]=T,t[52]=jr):jr=t[52];const Ji=jr;let ai;t[53]!==p||t[54]!==T?(ai=Ue=>{const lt=Number(Ue.currentTarget.id.replace(Dm,""));T.stop(),p(lt)},t[53]=p,t[54]=T,t[55]=ai):ai=t[55];const er=ai;let li;t[56]!==e.className?(li=ft("graphiql-container",e.className),t[56]=e.className,t[57]=li):li=t[57];let xu;if(t[58]!==He||t[59]!==R||t[60]!==A){let Ue;t[62]!==He||t[63]!==A?(Ue=(lt,Pt)=>{const yn=lt===A,bn=`${yn?"Hide":"Show"} ${lt.title}`;return C.jsx(Vn,{label:bn,children:C.jsx(Qt,{type:"button",className:ft(yn&&"active"),onClick:He,"data-index":Pt,"aria-label":bn,children:C.jsx(lt.icon,{"aria-hidden":"true"})})},lt.title)},t[62]=He,t[63]=A,t[64]=Ue):Ue=t[64],xu=R.map(Ue),t[58]=He,t[59]=R,t[60]=A,t[61]=xu}else xu=t[61];let yo;t[65]===Symbol.for("react.memo_cache_sentinel")?(yo={marginTop:"auto"},t[65]=yo):yo=t[65];const xs=_&&"graphiql-spin";let tr;t[66]!==xs?(tr=ft(xs),t[66]=xs,t[67]=tr):tr=t[67];let ci;t[68]!==tr?(ci=C.jsx(TI,{className:tr,"aria-hidden":"true"}),t[68]=tr,t[69]=ci):ci=t[69];let Eu;t[70]!==S||t[71]!==_||t[72]!==ci?(Eu=C.jsx(Vn,{label:"Re-fetch GraphQL schema",children:C.jsx(Qt,{type:"button",disabled:_,onClick:S,"aria-label":"Re-fetch GraphQL schema",style:yo,children:ci})}),t[70]=S,t[71]=_,t[72]=ci,t[73]=Eu):Eu=t[73];let bo;t[74]===Symbol.for("react.memo_cache_sentinel")?(bo=C.jsx(Vn,{label:"Open short keys dialog",children:C.jsx(Qt,{type:"button","data-value":"short-keys",onClick:ke,"aria-label":"Open short keys dialog",children:C.jsx(mI,{"aria-hidden":"true"})})}),t[74]=bo):bo=t[74];let xo;t[75]===Symbol.for("react.memo_cache_sentinel")?(xo=C.jsx(Vn,{label:"Open settings dialog",children:C.jsx(Qt,{type:"button","data-value":"settings",onClick:ke,"aria-label":"Open settings dialog",children:C.jsx(_I,{"aria-hidden":"true"})})}),t[75]=xo):xo=t[75];let nr;t[76]!==xu||t[77]!==Eu?(nr=C.jsxs("div",{className:"graphiql-sidebar",children:[xu,Eu,bo,xo]}),t[76]=xu,t[77]=Eu,t[78]=nr):nr=t[78];let Tu;t[79]===Symbol.for("react.memo_cache_sentinel")?(Tu={minWidth:"200px"},t[79]=Tu):Tu=t[79];let Pr;t[80]!==Y?(Pr=Y?C.jsx(Y,{}):null,t[80]=Y,t[81]=Pr):Pr=t[81];let Su;t[82]!==ne.firstRef||t[83]!==Pr?(Su=C.jsx("div",{ref:ne.firstRef,className:"graphiql-plugin",style:Tu,children:Pr}),t[82]=ne.firstRef,t[83]=Pr,t[84]=Su):Su=t[84];let An;t[85]!==ne.dragBarRef||t[86]!==A?(An=A&&C.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:ne.dragBarRef}),t[85]=ne.dragBarRef,t[86]=A,t[87]=An):An=t[87];const Wt=ne.secondRef;let Ot;if(t[88]!==y||t[89]!==er||t[90]!==Ji||t[91]!==v){let Ue;t[93]!==y||t[94]!==er||t[95]!==Ji?(Ue=(lt,Pt,yn)=>C.jsxs(gm,{value:lt,isActive:Pt===y,children:[C.jsx(gm.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${Pt}`,title:lt.title,onClick:er,children:lt.title}),yn.length>1&&C.jsx(gm.Close,{onClick:Ji})]},lt.id),t[93]=y,t[94]=er,t[95]=Ji,t[96]=Ue):Ue=t[96],Ot=v.map(Ue),t[88]=y,t[89]=er,t[90]=Ji,t[91]=v,t[92]=Ot}else Ot=t[92];let qn;t[97]!==f||t[98]!==Ot||t[99]!==v?(qn=C.jsx(f9,{values:v,onReorder:f,"aria-label":"Select active operation",className:"no-scrollbar",children:Ot}),t[97]=f,t[98]=Ot,t[99]=v,t[100]=qn):qn=t[100];let _u;t[101]===Symbol.for("react.memo_cache_sentinel")?(_u=C.jsx(xI,{"aria-hidden":"true"}),t[101]=_u):_u=t[101];let Cu;t[102]!==c?(Cu=C.jsx(Vn,{label:"New tab",children:C.jsx(Qt,{type:"button",className:"graphiql-tab-add",onClick:c,"aria-label":"New tab",children:_u})}),t[102]=c,t[103]=Cu):Cu=t[103];let Au;t[104]!==re||t[105]!==qn||t[106]!==Cu?(Au=C.jsxs("div",{className:"graphiql-session-header",children:[qn,Cu,re]}),t[104]=re,t[105]=qn,t[106]=Cu,t[107]=Au):Au=t[107];const Es=`${Dm}${y}`,Eo=I.firstRef;let ir;t[108]!==_e||t[109]!==e.editorTheme||t[110]!==e.keyMap||t[111]!==e.onCopyQuery||t[112]!==e.onEditQuery||t[113]!==e.onPrettifyQuery||t[114]!==e.readOnly?(ir=C.jsx(wS,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:_e,onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),t[108]=_e,t[109]=e.editorTheme,t[110]=e.keyMap,t[111]=e.onCopyQuery,t[112]=e.onEditQuery,t[113]=e.onPrettifyQuery,t[114]=e.readOnly,t[115]=ir):ir=t[115];let ki;t[116]===Symbol.for("react.memo_cache_sentinel")?(ki=C.jsx(Vg,{}),t[116]=ki):ki=t[116];let Hn;t[117]!==me?(Hn=C.jsxs("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[ki,me]}),t[117]=me,t[118]=Hn):Hn=t[118];let fi;t[119]!==V.firstRef||t[120]!==ir||t[121]!==Hn?(fi=C.jsxs("section",{className:"graphiql-query-editor","aria-label":"Query Editor",ref:V.firstRef,children:[ir,Hn]}),t[119]=V.firstRef,t[120]=ir,t[121]=Hn,t[122]=fi):fi=t[122];const wu=V.dragBarRef,Ct=H==="variables"&&V.hiddenElement!=="second"&&"active";let Vr;t[123]!==Ct?(Vr=ft(Ct),t[123]=Ct,t[124]=Vr):Vr=t[124];let $r;t[125]!==Ri||t[126]!==Vr?($r=C.jsx(Qt,{type:"button",className:Vr,onClick:Ri,"data-name":"variables",children:"Variables"}),t[125]=Ri,t[126]=Vr,t[127]=$r):$r=t[127];let Ln;t[128]!==H||t[129]!==V.hiddenElement||t[130]!==Ri||t[131]!==n?(Ln=n&&C.jsx(Qt,{type:"button",className:ft(H==="headers"&&V.hiddenElement!=="second"&&"active"),onClick:Ri,"data-name":"headers",children:"Headers"}),t[128]=H,t[129]=V.hiddenElement,t[130]=Ri,t[131]=n,t[132]=Ln):Ln=t[132];const rr=V.hiddenElement==="second"?"Show editor tools":"Hide editor tools",Ya=V.hiddenElement==="second"?"Show editor tools":"Hide editor tools";let Br;t[133]!==V.hiddenElement?(Br=V.hiddenElement==="second"?C.jsx(iI,{className:"graphiql-chevron-icon","aria-hidden":"true"}):C.jsx(tI,{className:"graphiql-chevron-icon","aria-hidden":"true"}),t[133]=V.hiddenElement,t[134]=Br):Br=t[134];let Ur;t[135]!==Ya||t[136]!==Br||t[137]!==cn?(Ur=C.jsx(Qt,{type:"button",onClick:cn,"aria-label":Ya,className:"graphiql-toggle-editor-tools",children:Br}),t[135]=Ya,t[136]=Br,t[137]=cn,t[138]=Ur):Ur=t[138];let Du;t[139]!==rr||t[140]!==Ur?(Du=C.jsx(Vn,{label:rr,children:Ur}),t[139]=rr,t[140]=Ur,t[141]=Du):Du=t[141];let Mi;t[142]!==V.dragBarRef||t[143]!==$r||t[144]!==Ln||t[145]!==Du?(Mi=C.jsxs("div",{ref:wu,className:"graphiql-editor-tools",children:[$r,Ln,Du]}),t[142]=V.dragBarRef,t[143]=$r,t[144]=Ln,t[145]=Du,t[146]=Mi):Mi=t[146];const Nu=H==="variables"?"Variables":"Headers",Gn=H!=="variables";let ur;t[147]!==_e||t[148]!==e.editorTheme||t[149]!==e.keyMap||t[150]!==e.onEditVariables||t[151]!==e.readOnly||t[152]!==Gn?(ur=C.jsx(sg,{editorTheme:e.editorTheme,isHidden:Gn,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:_e,readOnly:e.readOnly}),t[147]=_e,t[148]=e.editorTheme,t[149]=e.keyMap,t[150]=e.onEditVariables,t[151]=e.readOnly,t[152]=Gn,t[153]=ur):ur=t[153];let zr;t[154]!==H||t[155]!==n||t[156]!==e.editorTheme||t[157]!==e.keyMap||t[158]!==e.onEditHeaders||t[159]!==e.readOnly?(zr=n&&C.jsx(og,{editorTheme:e.editorTheme,isHidden:H!=="headers",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}),t[154]=H,t[155]=n,t[156]=e.editorTheme,t[157]=e.keyMap,t[158]=e.onEditHeaders,t[159]=e.readOnly,t[160]=zr):zr=t[160];let Yn;t[161]!==V.secondRef||t[162]!==Nu||t[163]!==ur||t[164]!==zr?(Yn=C.jsxs("section",{className:"graphiql-editor-tool","aria-label":Nu,ref:V.secondRef,children:[ur,zr]}),t[161]=V.secondRef,t[162]=Nu,t[163]=ur,t[164]=zr,t[165]=Yn):Yn=t[165];let or;t[166]!==I.firstRef||t[167]!==fi||t[168]!==Mi||t[169]!==Yn?(or=C.jsxs("div",{className:"graphiql-editors",ref:Eo,children:[fi,Mi,Yn]}),t[166]=I.firstRef,t[167]=fi,t[168]=Mi,t[169]=Yn,t[170]=or):or=t[170];let sr;t[171]!==I.dragBarRef?(sr=C.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:I.dragBarRef}),t[171]=I.dragBarRef,t[172]=sr):sr=t[172];let Ou;t[173]!==T.isFetching?(Ou=T.isFetching?C.jsx(q2,{}):null,t[173]=T.isFetching,t[174]=Ou):Ou=t[174];let qr;t[175]!==e.editorTheme||t[176]!==e.keyMap||t[177]!==e.responseTooltip?(qr=C.jsx(NS,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),t[175]=e.editorTheme,t[176]=e.keyMap,t[177]=e.responseTooltip,t[178]=qr):qr=t[178];let qt;t[179]!==I.secondRef||t[180]!==xe||t[181]!==Ou||t[182]!==qr?(qt=C.jsxs("div",{className:"graphiql-response",ref:I.secondRef,children:[Ou,qr,xe]}),t[179]=I.secondRef,t[180]=xe,t[181]=Ou,t[182]=qr,t[183]=qt):qt=t[183];let Hr;t[184]!==Es||t[185]!==or||t[186]!==sr||t[187]!==qt?(Hr=C.jsxs("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":Es,children:[or,sr,qt]}),t[184]=Es,t[185]=or,t[186]=sr,t[187]=qt,t[188]=Hr):Hr=t[188];let Ru;t[189]!==ne.secondRef||t[190]!==Au||t[191]!==Hr?(Ru=C.jsxs("div",{ref:Wt,className:"graphiql-sessions",children:[Au,Hr]}),t[189]=ne.secondRef,t[190]=Au,t[191]=Hr,t[192]=Ru):Ru=t[192];let Li;t[193]!==Su||t[194]!==An||t[195]!==Ru?(Li=C.jsxs("div",{className:"graphiql-main",children:[Su,An,Ru]}),t[193]=Su,t[194]=An,t[195]=Ru,t[196]=Li):Li=t[196];const Ts=ie==="short-keys";let Gr;t[197]===Symbol.for("react.memo_cache_sentinel")?(Gr=C.jsxs("div",{className:"graphiql-dialog-header",children:[C.jsx(ra.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),C.jsx(ra.Close,{})]}),t[197]=Gr):Gr=t[197];let ku;t[198]!==e.keyMap?(ku=C.jsx("div",{className:"graphiql-dialog-section",children:C.jsx(kX,{keyMap:e.keyMap})}),t[198]=e.keyMap,t[199]=ku):ku=t[199];let Ht;t[200]!==Ts||t[201]!==ku?(Ht=C.jsxs(ra,{open:Ts,onOpenChange:Cn,children:[Gr,ku]}),t[200]=Ts,t[201]=ku,t[202]=Ht):Ht=t[202];const To=ie==="settings";let So;t[203]===Symbol.for("react.memo_cache_sentinel")?(So=C.jsxs("div",{className:"graphiql-dialog-header",children:[C.jsx(ra.Title,{className:"graphiql-dialog-title",children:"Settings"}),C.jsx(ra.Close,{})]}),t[203]=So):So=t[203];let ar;t[204]!==at||t[205]!==e.showPersistHeadersSettings||t[206]!==g?(ar=e.showPersistHeadersSettings?C.jsxs("div",{className:"graphiql-dialog-section",children:[C.jsxs("div",{children:[C.jsx("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),C.jsxs("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",C.jsx("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),C.jsxs(ag,{children:[C.jsx(Ui,{type:"button",id:"enable-persist-headers",className:ft(g&&"active"),"data-value":"true",onClick:at,children:"On"}),C.jsx(Ui,{type:"button",id:"disable-persist-headers",className:ft(!g&&"active"),onClick:at,children:"Off"})]})]}):null,t[204]=at,t[205]=e.showPersistHeadersSettings,t[206]=g,t[207]=ar):ar=t[207];let Qn;t[208]!==M||t[209]!==Le||t[210]!==j?(Qn=!M&&C.jsxs("div",{className:"graphiql-dialog-section",children:[C.jsxs("div",{children:[C.jsx("div",{className:"graphiql-dialog-section-title",children:"Theme"}),C.jsx("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),C.jsxs(ag,{children:[C.jsx(Ui,{type:"button",className:ft(j===null&&"active"),onClick:Le,children:"System"}),C.jsx(Ui,{type:"button",className:ft(j==="light"&&"active"),"data-theme":"light",onClick:Le,children:"Light"}),C.jsx(Ui,{type:"button",className:ft(j==="dark"&&"active"),"data-theme":"dark",onClick:Le,children:"Dark"})]})]}),t[208]=M,t[209]=Le,t[210]=j,t[211]=Qn):Qn=t[211];let _o;t[212]===Symbol.for("react.memo_cache_sentinel")?(_o=C.jsxs("div",{children:[C.jsx("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),C.jsx("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),t[212]=_o):_o=t[212];const Ss=pe||void 0,lr=pe==="success";let Mu;t[213]!==pe?(Mu={success:"Cleared data",error:"Failed"}[pe]||"Clear data",t[213]=pe,t[214]=Mu):Mu=t[214];let Yr;t[215]!==an||t[216]!==Ss||t[217]!==lr||t[218]!==Mu?(Yr=C.jsxs("div",{className:"graphiql-dialog-section",children:[_o,C.jsx(Ui,{type:"button",state:Ss,disabled:lr,onClick:an,children:Mu})]}),t[215]=an,t[216]=Ss,t[217]=lr,t[218]=Mu,t[219]=Yr):Yr=t[219];let Qr;t[220]!==To||t[221]!==ar||t[222]!==Qn||t[223]!==Yr?(Qr=C.jsxs(ra,{open:To,onOpenChange:hh,children:[So,ar,Qn,Yr]}),t[220]=To,t[221]=ar,t[222]=Qn,t[223]=Yr,t[224]=Qr):Qr=t[224];let cr;t[225]!==li||t[226]!==nr||t[227]!==Li||t[228]!==Ht||t[229]!==Qr?(cr=C.jsxs("div",{className:li,children:[nr,Li,Ht,Qr]}),t[225]=li,t[226]=nr,t[227]=Li,t[228]=Ht,t[229]=Qr,t[230]=cr):cr=t[230];let _s;return t[231]!==Te||t[232]!==cr?(_s=C.jsxs(Vn.Provider,{children:[cr,Te]}),t[231]=Te,t[232]=cr,t[233]=_s):_s=t[233],_s},Nm=c2?"⌘":"Ctrl",RX=Object.entries({"Search in editor":[Nm,"F"],"Search in documentation":[Nm,"K"],"Execute query":[Nm,"Enter"],"Prettify editors":["Ctrl","Shift","P"],"Merge fragments definitions into operation definition":["Ctrl","Shift","M"],"Copy query":["Ctrl","Shift","C"],"Re-fetch schema using introspection":["Ctrl","Shift","R"]}),kX=e=>{const t=ge.c(5),{keyMap:n}=e,i=n===void 0?"sublime":n;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsxs("table",{className:"graphiql-table",children:[C.jsx("thead",{children:C.jsxs("tr",{children:[C.jsx("th",{children:"Short Key"}),C.jsx("th",{children:"Function"})]})}),C.jsx("tbody",{children:RX.map($X)})]}),t[0]=r):r=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=C.jsx("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer",children:"CodeMirror Key Maps"}),t[1]=s):s=t[1];let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=C.jsx("em",{children:"i"}),t[2]=a):a=t[2];let c;return t[3]!==i?(c=C.jsxs("div",{children:[r,C.jsxs("p",{children:["The editors use"," ",s," ","that add more short keys. This instance of Graph",a,"QL uses"," ",C.jsx("code",{children:i}),"."]})]}),t[3]=i,t[4]=c):c=t[4],c},MX=C.jsxs("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",C.jsx("em",{children:"i"}),"QL"]}),LX=e=>{const t=ge.c(2),{children:n}=e,i=n===void 0?MX:n;let r;return t[0]!==i?(r=C.jsx("div",{className:"graphiql-logo",children:i}),t[0]=i,t[1]=r):r=t[1],r},IX=e=>{const t=ge.c(4),{prettify:n,copy:i,merge:r}=e;let s;return t[0]!==i||t[1]!==r||t[2]!==n?(s=C.jsxs(C.Fragment,{children:[n,r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=s):s=t[3],s},FX=({children:e=IX,onCopyQuery:t,onPrettifyQuery:n})=>{"use no memo";if(typeof e!="function")throw new TypeError("The `GraphiQL.Toolbar` component requires a render prop function as its child.");const i=b2({onCopyQuery:t}),r=Hc(),s=Gc({onPrettifyQuery:n}),a=C.jsx(Zd,{onClick:s,label:"Prettify query (Shift-Ctrl-P)",children:C.jsx(EI,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),c=C.jsx(Zd,{onClick:r,label:"Merge fragments into query (Shift-Ctrl-M)",children:C.jsx(vI,{className:"graphiql-toolbar-icon","aria-hidden":"true"})});return e({prettify:a,copy:C.jsx(Zd,{onClick:i,label:"Copy query (Shift-Ctrl-C)",children:C.jsx(rI,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),merge:c})},jX=e=>{const t=ge.c(2);let n;return t[0]!==e.children?(n=C.jsx("div",{className:"graphiql-footer",children:e.children}),t[0]=e.children,t[1]=n):n=t[1],n};function PX(e){if(e&&typeof e=="object"&&"type"in e&&typeof e.type=="function")return e.type}const oa=Object.assign(DX,{Logo:LX,Toolbar:FX,Footer:jX});function VX(e,t,n){return C.jsxs(x.Fragment,{children:[C.jsx("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function $X(e){const[t,n]=e;return C.jsxs("tr",{children:[C.jsx("td",{children:n.map(VX)}),C.jsx("td",{children:t})]},t)}const BX={clear(){},getItem(e){return null},length:0,removeItem(e){},setItem(e,t){}},UX=({apiType:e})=>{const{adminApiUrl:t,shopApiUrl:n}=window.GRAPHIQL_SETTINGS??{adminApiUrl:"http://localhost:3000/admin-api",shopApiUrl:"http://localhost:3000/shop-api"},i=e==="admin"?t:n,r=e==="admin"?"Admin API":"Shop API",s=new URLSearchParams(window.location.search),a=s.get("query")??void 0,c=s.get("embeddedMode")==="true",f=c?BX:void 0,h=x.useCallback(()=>CN({url:i,subscriptionUrl:i.replace(/^http/,"ws")}),[i]),p=g=>{if(g!==e){const v=window.location.pathname.split("/"),y=v.length>1?`/${v[1]}`:"";window.location.href=`${y}/${g}`}};return C.jsxs("div",{className:"graphiql-app",children:[c?null:C.jsxs("div",{className:"vendure-header",children:[C.jsxs("h1",{children:["Vendure GraphiQL - ",r]}),C.jsxs("div",{className:"switch-api",children:[C.jsx("span",{children:"Switch API:"}),C.jsx("a",{href:"#",className:e==="admin"?"active":"",onClick:g=>{g.preventDefault(),p("admin")},children:"Admin API"}),C.jsx("a",{href:"#",className:e==="shop"?"active":"",onClick:g=>{g.preventDefault(),p("shop")},children:"Shop API"})]})]}),C.jsx("div",{className:"graphiql-wrapper",children:C.jsx(oa,{className:c?"embedded-mode":void 0,fetcher:h(),storage:f,defaultEditorToolsVisibility:!c,query:a})})]})},CA=window.location.pathname;CA.includes("/admin");const zX=CA.includes("/shop"),qX=zX?"shop":"admin",V5=document.getElementById("root");V5&&Iw.createRoot(V5).render(C.jsx(Re.StrictMode,{children:C.jsx(UX,{apiType:qX})}));export{QN as $,qD as A,sn as B,$D as C,Ce as D,iT as E,Ti as F,Je as G,Bd as H,qi as I,fN as J,Z as K,et as L,QX as M,YX as N,Si as O,cs as P,WN as Q,BE as R,qe as S,_T as T,$n as U,u2 as V,Ia as W,hc as X,pc as Y,mc as Z,XN as _,XX as a,YN as a0,un as a1,fs as a2,Ie as a3,Xe as a4,_1 as a5,Mt as a6,St as b,bt as c,TD as d,ao as e,XD as f,ls as g,w0 as h,cu as i,ye as j,zD as k,ET as l,Nn as m,SD as n,kn as o,ui as p,It as q,R0 as r,CD as s,gc as t,BD as u,r2 as v,tT as w,t2 as x,Ql as y,HD as z};
|
|
375
|
+
//# sourceMappingURL=index-BHryLb7e.js.map
|