@director.run/cli 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
function $P(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function Cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t2={exports:{}},Uc={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var FE;function QP(){if(FE)return Uc;FE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var l=null;if(i!==void 0&&(l=""+i),a.key!==void 0&&(l=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:i}}return Uc.Fragment=t,Uc.jsx=n,Uc.jsxs=n,Uc}var UE;function YP(){return UE||(UE=1,t2.exports=QP()),t2.exports}var v=YP(),n2={exports:{}},At={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var BE;function GP(){if(BE)return At;BE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.iterator;function E(C){return C===null||typeof C!="object"?null:(C=m&&C[m]||C["@@iterator"],typeof C=="function"?C:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function S(C,oe,ge){this.props=C,this.context=oe,this.refs=A,this.updater=ge||b}S.prototype.isReactComponent={},S.prototype.setState=function(C,oe){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,oe,"setState")},S.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function w(){}w.prototype=S.prototype;function R(C,oe,ge){this.props=C,this.context=oe,this.refs=A,this.updater=ge||b}var P=R.prototype=new w;P.constructor=R,T(P,S.prototype),P.isPureReactComponent=!0;var M=Array.isArray,I={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function L(C,oe,ge,j,Ee,ke){return ge=ke.ref,{$$typeof:e,type:C,key:oe,ref:ge!==void 0?ge:null,props:ke}}function D(C,oe){return L(C.type,oe,void 0,void 0,void 0,C.props)}function B(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function k(C){var oe={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ge){return oe[ge]})}var U=/\/+/g;function F(C,oe){return typeof C=="object"&&C!==null&&C.key!=null?k(""+C.key):oe.toString(36)}function Q(){}function Y(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Q,Q):(C.status="pending",C.then(function(oe){C.status==="pending"&&(C.status="fulfilled",C.value=oe)},function(oe){C.status==="pending"&&(C.status="rejected",C.reason=oe)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function te(C,oe,ge,j,Ee){var ke=typeof C;(ke==="undefined"||ke==="boolean")&&(C=null);var Z=!1;if(C===null)Z=!0;else switch(ke){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(C.$$typeof){case e:case t:Z=!0;break;case g:return Z=C._init,te(Z(C._payload),oe,ge,j,Ee)}}if(Z)return Ee=Ee(C),Z=j===""?"."+F(C,0):j,M(Ee)?(ge="",Z!=null&&(ge=Z.replace(U,"$&/")+"/"),te(Ee,oe,ge,"",function(Ze){return Ze})):Ee!=null&&(B(Ee)&&(Ee=D(Ee,ge+(Ee.key==null||C&&C.key===Ee.key?"":(""+Ee.key).replace(U,"$&/")+"/")+Z)),oe.push(Ee)),1;Z=0;var ae=j===""?".":j+":";if(M(C))for(var Te=0;Te<C.length;Te++)j=C[Te],ke=ae+F(j,Te),Z+=te(j,oe,ge,ke,Ee);else if(Te=E(C),typeof Te=="function")for(C=Te.call(C),Te=0;!(j=C.next()).done;)j=j.value,ke=ae+F(j,Te++),Z+=te(j,oe,ge,ke,Ee);else if(ke==="object"){if(typeof C.then=="function")return te(Y(C),oe,ge,j,Ee);throw oe=String(C),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return Z}function V(C,oe,ge){if(C==null)return C;var j=[],Ee=0;return te(C,j,"","",function(ke){return oe.call(ge,ke,Ee++)}),j}function J(C){if(C._status===-1){var oe=C._result;oe=oe(),oe.then(function(ge){(C._status===0||C._status===-1)&&(C._status=1,C._result=ge)},function(ge){(C._status===0||C._status===-1)&&(C._status=2,C._result=ge)}),C._status===-1&&(C._status=0,C._result=oe)}if(C._status===1)return C._result.default;throw C._result}var X=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function se(){}return At.Children={map:V,forEach:function(C,oe,ge){V(C,function(){oe.apply(this,arguments)},ge)},count:function(C){var oe=0;return V(C,function(){oe++}),oe},toArray:function(C){return V(C,function(oe){return oe})||[]},only:function(C){if(!B(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},At.Component=S,At.Fragment=n,At.Profiler=a,At.PureComponent=R,At.StrictMode=r,At.Suspense=d,At.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,At.__COMPILER_RUNTIME={__proto__:null,c:function(C){return I.H.useMemoCache(C)}},At.cache=function(C){return function(){return C.apply(null,arguments)}},At.cloneElement=function(C,oe,ge){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var j=T({},C.props),Ee=C.key,ke=void 0;if(oe!=null)for(Z in oe.ref!==void 0&&(ke=void 0),oe.key!==void 0&&(Ee=""+oe.key),oe)!N.call(oe,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&oe.ref===void 0||(j[Z]=oe[Z]);var Z=arguments.length-2;if(Z===1)j.children=ge;else if(1<Z){for(var ae=Array(Z),Te=0;Te<Z;Te++)ae[Te]=arguments[Te+2];j.children=ae}return L(C.type,Ee,void 0,void 0,ke,j)},At.createContext=function(C){return C={$$typeof:l,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:i,_context:C},C},At.createElement=function(C,oe,ge){var j,Ee={},ke=null;if(oe!=null)for(j in oe.key!==void 0&&(ke=""+oe.key),oe)N.call(oe,j)&&j!=="key"&&j!=="__self"&&j!=="__source"&&(Ee[j]=oe[j]);var Z=arguments.length-2;if(Z===1)Ee.children=ge;else if(1<Z){for(var ae=Array(Z),Te=0;Te<Z;Te++)ae[Te]=arguments[Te+2];Ee.children=ae}if(C&&C.defaultProps)for(j in Z=C.defaultProps,Z)Ee[j]===void 0&&(Ee[j]=Z[j]);return L(C,ke,void 0,void 0,null,Ee)},At.createRef=function(){return{current:null}},At.forwardRef=function(C){return{$$typeof:u,render:C}},At.isValidElement=B,At.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:J}},At.memo=function(C,oe){return{$$typeof:h,type:C,compare:oe===void 0?null:oe}},At.startTransition=function(C){var oe=I.T,ge={};I.T=ge;try{var j=C(),Ee=I.S;Ee!==null&&Ee(ge,j),typeof j=="object"&&j!==null&&typeof j.then=="function"&&j.then(se,X)}catch(ke){X(ke)}finally{I.T=oe}},At.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},At.use=function(C){return I.H.use(C)},At.useActionState=function(C,oe,ge){return I.H.useActionState(C,oe,ge)},At.useCallback=function(C,oe){return I.H.useCallback(C,oe)},At.useContext=function(C){return I.H.useContext(C)},At.useDebugValue=function(){},At.useDeferredValue=function(C,oe){return I.H.useDeferredValue(C,oe)},At.useEffect=function(C,oe,ge){var j=I.H;if(typeof ge=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return j.useEffect(C,oe)},At.useId=function(){return I.H.useId()},At.useImperativeHandle=function(C,oe,ge){return I.H.useImperativeHandle(C,oe,ge)},At.useInsertionEffect=function(C,oe){return I.H.useInsertionEffect(C,oe)},At.useLayoutEffect=function(C,oe){return I.H.useLayoutEffect(C,oe)},At.useMemo=function(C,oe){return I.H.useMemo(C,oe)},At.useOptimistic=function(C,oe){return I.H.useOptimistic(C,oe)},At.useReducer=function(C,oe,ge){return I.H.useReducer(C,oe,ge)},At.useRef=function(C){return I.H.useRef(C)},At.useState=function(C){return I.H.useState(C)},At.useSyncExternalStore=function(C,oe,ge){return I.H.useSyncExternalStore(C,oe,ge)},At.useTransition=function(){return I.H.useTransition()},At.version="19.1.0",At}var VE;function U1(){return VE||(VE=1,n2.exports=GP()),n2.exports}var p=U1();const me=Cu(p),L6=$P({__proto__:null,default:me},[p]),KP=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H69l51.52,51.51a12,12,0,0,1-17,17l-72-72a12,12,0,0,1,0-17l72-72a12,12,0,0,1,17,17L69,116H216A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M112,56V200L40,128Z",opacity:"0.2"}),p.createElement("path",{d:"M216,120H120V56a8,8,0,0,0-13.66-5.66l-72,72a8,8,0,0,0,0,11.32l72,72A8,8,0,0,0,120,200V136h96a8,8,0,0,0,0-16ZM104,180.69,51.31,128,104,75.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H120v64a8,8,0,0,1-13.66,5.66l-72-72a8,8,0,0,1,0-11.32l72-72A8,8,0,0,1,120,56v64h96A8,8,0,0,1,224,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H54.49l61.75,61.76a6,6,0,1,1-8.48,8.48l-72-72a6,6,0,0,1,0-8.48l72-72a6,6,0,0,1,8.48,8.48L54.49,122H216A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H49.66l65.17,65.17a4,4,0,0,1-5.66,5.66l-72-72a4,4,0,0,1,0-5.66l72-72a4,4,0,0,1,5.66,5.66L49.66,124H216A4,4,0,0,1,220,128Z"}))]]),XP=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,128l-72,72V56Z",opacity:"0.2"}),p.createElement("path",{d:"M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z"}))]]),WP=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),p.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),JP=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M192,64V168L88,64Z",opacity:"0.2"}),p.createElement("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"}))]]),eD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M218.29,182.17a12,12,0,0,1-16.47,4.12L140,149.19V216a12,12,0,0,1-24,0V149.19l-61.82,37.1a12,12,0,1,1-12.35-20.58L104.68,128,41.83,90.29A12,12,0,1,1,54.18,69.71L116,106.81V40a12,12,0,0,1,24,0v66.81l61.82-37.1a12,12,0,1,1,12.35,20.58L151.32,128l62.85,37.71A12,12,0,0,1,218.29,182.17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,128a72,72,0,1,1-72-72A72,72,0,0,1,200,128Z",opacity:"0.2"}),p.createElement("path",{d:"M214.86,180.12a8,8,0,0,1-11,2.74L136,142.13V216a8,8,0,0,1-16,0V142.13L52.12,182.86a8,8,0,1,1-8.23-13.72L112.45,128,43.89,86.86a8,8,0,1,1,8.23-13.72L120,113.87V40a8,8,0,0,1,16,0v73.87l67.88-40.73a8,8,0,1,1,8.23,13.72L143.55,128l68.56,41.14A8,8,0,0,1,214.86,180.12Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm59.43,129.07a8,8,0,0,1-4,14.93,7.92,7.92,0,0,1-4-1.07L136,141.86V192a8,8,0,0,1-16,0V141.86L76.57,166.93A8,8,0,0,1,65.65,164a8,8,0,0,1,2.92-10.93L112,128,68.57,102.93a8,8,0,0,1,8-13.86L120,114.14V64a8,8,0,0,1,16,0v50.14l43.43-25.07a8,8,0,0,1,8,13.86L144,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.14,179.09a6,6,0,0,1-8.23,2.06L134,138.6V216a6,6,0,0,1-12,0V138.6L51.09,181.15A6.07,6.07,0,0,1,48,182a6,6,0,0,1-3.1-11.15L116.34,128,44.91,85.15a6,6,0,0,1,6.18-10.3L122,117.4V40a6,6,0,0,1,12,0v77.4l70.91-42.55a6,6,0,0,1,6.18,10.3L139.66,128l71.43,42.85A6,6,0,0,1,213.14,179.09Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M214.86,180.12a8,8,0,0,1-11,2.74L136,142.13V216a8,8,0,0,1-16,0V142.13L52.12,182.86a8,8,0,1,1-8.23-13.72L112.45,128,43.89,86.86a8,8,0,1,1,8.23-13.72L120,113.87V40a8,8,0,0,1,16,0v73.87l67.88-40.73a8,8,0,1,1,8.23,13.72L143.55,128l68.56,41.14A8,8,0,0,1,214.86,180.12Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M211.43,178.06a4,4,0,0,1-5.49,1.37L132,135.06V216a4,4,0,0,1-8,0V135.06L50.06,179.43a4,4,0,0,1-4.12-6.86L120.22,128,45.94,83.43a4,4,0,0,1,4.12-6.86L124,120.94V40a4,4,0,0,1,8,0v80.94l73.94-44.37a4,4,0,1,1,4.12,6.86L135.78,128l74.28,44.57A4,4,0,0,1,211.43,178.06Z"}))]]),tD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,56V200H160a32,32,0,0,0-32,32,32,32,0,0,0-32-32H24V56H96a32,32,0,0,1,32,32,32,32,0,0,1,32-32Z",opacity:"0.2"}),p.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M240,56V200a8,8,0,0,1-8,8H160a24,24,0,0,0-24,23.94,7.9,7.9,0,0,1-5.12,7.55A8,8,0,0,1,120,232a24,24,0,0,0-24-24H24a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8H88a32,32,0,0,1,32,32v87.73a8.17,8.17,0,0,0,7.47,8.25,8,8,0,0,0,8.53-8V80a32,32,0,0,1,32-32h64A8,8,0,0,1,240,56Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.93,35.93,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68Z"}))]]),nD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,44H160a43.86,43.86,0,0,0-32,13.85A43.86,43.86,0,0,0,96,44H24A12,12,0,0,0,12,56V200a12,12,0,0,0,12,12H96a20,20,0,0,1,20,20,12,12,0,0,0,24,0,20,20,0,0,1,20-20h72a12,12,0,0,0,12-12V56A12,12,0,0,0,232,44ZM96,188H36V68H96a20,20,0,0,1,20,20V192.81A43.79,43.79,0,0,0,96,188Zm124,0H160a43.71,43.71,0,0,0-20,4.83V88a20,20,0,0,1,20-20h60ZM164,96h32a12,12,0,0,1,0,24H164a12,12,0,0,1,0-24Zm44,52a12,12,0,0,1-12,12H164a12,12,0,0,1,0-24h32A12,12,0,0,1,208,148Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,56V200H160a32,32,0,0,0-32,32V88a32,32,0,0,1,32-32Z",opacity:"0.2"}),p.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64ZM160,88h40a8,8,0,0,1,0,16H160a8,8,0,0,1,0-16Zm48,40a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,128Zm0,32a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,160Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,48H168a32,32,0,0,0-32,32v87.73a8.17,8.17,0,0,1-7.47,8.25,8,8,0,0,1-8.53-8V80A32,32,0,0,0,88,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,23.94,7.9,7.9,0,0,0,5.12,7.55A8,8,0,0,0,136,232a24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM208,168H168.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h39.73a8.17,8.17,0,0,1,8.25,7.47A8,8,0,0,1,208,168Zm0-32H168.27a8.17,8.17,0,0,1-8.25-7.47,8,8,0,0,1,8-8.53h39.73a8.17,8.17,0,0,1,8.25,7.47A8,8,0,0,1,208,136Zm0-32H168.27A8.17,8.17,0,0,1,160,96.53,8,8,0,0,1,168,88h39.73A8.17,8.17,0,0,1,216,95.47,8,8,0,0,1,208,104Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,50H160a38,38,0,0,0-32,17.55A38,38,0,0,0,96,50H24a6,6,0,0,0-6,6V200a6,6,0,0,0,6,6H96a26,26,0,0,1,26,26,6,6,0,0,0,12,0,26,26,0,0,1,26-26h72a6,6,0,0,0,6-6V56A6,6,0,0,0,232,50ZM96,194H30V62H96a26,26,0,0,1,26,26V204.31A37.86,37.86,0,0,0,96,194Zm130,0H160a37.87,37.87,0,0,0-26,10.32V88a26,26,0,0,1,26-26h66ZM160,90h40a6,6,0,0,1,0,12H160a6,6,0,0,1,0-12Zm46,38a6,6,0,0,1-6,6H160a6,6,0,0,1,0-12h40A6,6,0,0,1,206,128Zm0,32a6,6,0,0,1-6,6H160a6,6,0,0,1,0-12h40A6,6,0,0,1,206,160Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,48H160a40,40,0,0,0-32,16A40,40,0,0,0,96,48H24a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8H96a24,24,0,0,1,24,24,8,8,0,0,0,16,0,24,24,0,0,1,24-24h72a8,8,0,0,0,8-8V56A8,8,0,0,0,232,48ZM96,192H32V64H96a24,24,0,0,1,24,24V200A39.81,39.81,0,0,0,96,192Zm128,0H160a39.81,39.81,0,0,0-24,8V88a24,24,0,0,1,24-24h64ZM160,88h40a8,8,0,0,1,0,16H160a8,8,0,0,1,0-16Zm48,40a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,128Zm0,32a8,8,0,0,1-8,8H160a8,8,0,0,1,0-16h40A8,8,0,0,1,208,160Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,52H160a36,36,0,0,0-32,19.54A36,36,0,0,0,96,52H24a4,4,0,0,0-4,4V200a4,4,0,0,0,4,4H96a28,28,0,0,1,28,28,4,4,0,0,0,8,0,28,28,0,0,1,28-28h72a4,4,0,0,0,4-4V56A4,4,0,0,0,232,52ZM96,196H28V60H96a28,28,0,0,1,28,28V209.4A35.94,35.94,0,0,0,96,196Zm132,0H160a35.94,35.94,0,0,0-28,13.41V88a28,28,0,0,1,28-28h68ZM160,92h40a4,4,0,0,1,0,8H160a4,4,0,0,1,0-8Zm44,36a4,4,0,0,1-4,4H160a4,4,0,0,1,0-8h40A4,4,0,0,1,204,128Zm0,32a4,4,0,0,1-4,4H160a4,4,0,0,1,0-8h40A4,4,0,0,1,204,160Z"}))]]),rD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM100,72a16,16,0,1,0,16,16A16,16,0,0,0,100,72Zm120,72a91.84,91.84,0,0,1-2.34,20.64L236.81,173a12,12,0,0,1-9.62,22l-18-7.85a92,92,0,0,1-162.46,0l-18,7.85a12,12,0,1,1-9.62-22l19.15-8.36A91.84,91.84,0,0,1,36,144v-4H16a12,12,0,0,1,0-24H36v-4a91.84,91.84,0,0,1,2.34-20.64L19.19,83a12,12,0,0,1,9.62-22l18,7.85a92,92,0,0,1,162.46,0l18-7.85a12,12,0,1,1,9.62,22l-19.15,8.36A91.84,91.84,0,0,1,220,112v4h20a12,12,0,0,1,0,24H220ZM60,116H196v-4a68,68,0,0,0-136,0Zm56,94.92V140H60v4A68.1,68.1,0,0,0,116,210.92ZM196,144v-4H140v70.92A68.1,68.1,0,0,0,196,144Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,128v16a80,80,0,0,1-160,0V128Z",opacity:"0.2"}),p.createElement("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M168,92a12,12,0,1,1-12-12A12,12,0,0,1,168,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216Zm-80,0a8,8,0,0,0-16,0v64a8,8,0,0,0,16,0Zm64-32a72,72,0,0,0-144,0v8H200Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM100,82a10,10,0,1,0,10,10A10,10,0,0,0,100,82Zm146,46a6,6,0,0,1-6,6H214v10a85.88,85.88,0,0,1-3.45,24.08L234.4,178.5a6,6,0,0,1-4.8,11l-23.23-10.15a86,86,0,0,1-156.74,0L26.4,189.5a6,6,0,1,1-4.8-11l23.85-10.42A85.88,85.88,0,0,1,42,144V134H16a6,6,0,0,1,0-12H42V112a85.88,85.88,0,0,1,3.45-24.08L21.6,77.5a6,6,0,0,1,4.8-11L49.63,76.65a86,86,0,0,1,156.74,0L229.6,66.5a6,6,0,1,1,4.8,11L210.55,87.92A85.88,85.88,0,0,1,214,112v10h26A6,6,0,0,1,246,128ZM54,122H202V112a74,74,0,0,0-148,0Zm68,95.74V134H54v10A74.09,74.09,0,0,0,122,217.74ZM202,134H134v83.74A74.09,74.09,0,0,0,202,144Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM100,80a12,12,0,1,0,12,12A12,12,0,0,0,100,80Zm116,64A87.76,87.76,0,0,1,213,167l22.24,9.72A8,8,0,0,1,232,192a7.89,7.89,0,0,1-3.2-.67L207.38,182a88,88,0,0,1-158.76,0L27.2,191.33A7.89,7.89,0,0,1,24,192a8,8,0,0,1-3.2-15.33L43,167A87.76,87.76,0,0,1,40,144v-8H16a8,8,0,0,1,0-16H40v-8a87.76,87.76,0,0,1,3-23L20.8,79.33a8,8,0,1,1,6.4-14.66L48.62,74a88,88,0,0,1,158.76,0l21.42-9.36a8,8,0,0,1,6.4,14.66L213,89.05a87.76,87.76,0,0,1,3,23v8h24a8,8,0,0,1,0,16H216ZM56,120H200v-8a72,72,0,0,0-144,0Zm64,95.54V136H56v8A72.08,72.08,0,0,0,120,215.54ZM200,144v-8H136v79.54A72.08,72.08,0,0,0,200,144Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92Zm-48-8a8,8,0,1,0,8,8A8,8,0,0,0,100,84Zm144,44a4,4,0,0,1-4,4H212v12a83.64,83.64,0,0,1-3.87,25.2l25.47,11.13A4,4,0,0,1,232,188a4.09,4.09,0,0,1-1.6-.33l-25-10.95a84,84,0,0,1-154.72,0l-25,10.95A4.09,4.09,0,0,1,24,188a4,4,0,0,1-1.6-7.67L47.87,169.2A83.64,83.64,0,0,1,44,144V132H16a4,4,0,0,1,0-8H44V112a83.64,83.64,0,0,1,3.87-25.2L22.4,75.67a4,4,0,0,1,3.2-7.34l25,11a84,84,0,0,1,154.72,0l25-11a4,4,0,1,1,3.2,7.34L208.13,86.8A83.64,83.64,0,0,1,212,112v12h28A4,4,0,0,1,244,128ZM52,124H204V112a76,76,0,0,0-152,0Zm72,95.89V132H52v12A76.09,76.09,0,0,0,124,219.89ZM204,132H132v87.89A76.09,76.09,0,0,0,204,144Z"}))]]),aD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M176,128,96,208V48Z",opacity:"0.2"}),p.createElement("path",{d:"M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z"}))]]),sD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M80,176h96l-48,48ZM128,32,80,80h96Z",opacity:"0.2"}),p.createElement("path",{d:"M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z"}))]]),iD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,128a16,16,0,1,1-16-16A16,16,0,0,1,120,128Zm32-16a16,16,0,1,0,16,16A16,16,0,0,0,152,112Zm84,16A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm12-88a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm-44,0a12,12,0,1,1-12-12A12,12,0,0,1,96,128Zm88,0a12,12,0,1,1-12-12A12,12,0,0,1,184,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24ZM84,140a12,12,0,1,1,12-12A12,12,0,0,1,84,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm44,0a12,12,0,1,1,12-12A12,12,0,0,1,172,140Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM84,118a10,10,0,1,0,10,10A10,10,0,0,0,84,118Zm88,0a10,10,0,1,0,10,10A10,10,0,0,0,172,118Zm58,10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM84,116a12,12,0,1,0,12,12A12,12,0,0,0,84,116Zm88,0a12,12,0,1,0,12,12A12,12,0,0,0,172,116Zm60,12A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-52-8a8,8,0,1,0,8,8A8,8,0,0,0,84,120Zm88,0a8,8,0,1,0,8,8A8,8,0,0,0,172,120Zm56,8A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z"}))]]),oD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),lD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Z"}))]]),uD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z"}))]]),cD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),dD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M108,136a16,16,0,1,1-16-16A16,16,0,0,1,108,136Zm56-16a16,16,0,1,0,16,16A16,16,0,0,0,164,120Zm76.07,76.56-67,29.71A20.15,20.15,0,0,1,146,214.9l-8.54-23.13c-3.13.14-6.27.24-9.45.24s-6.32-.1-9.45-.24L110,214.9a20.19,20.19,0,0,1-27.08,11.37l-67-29.71A19.93,19.93,0,0,1,4.62,173.41L34.15,57A20,20,0,0,1,50.37,42.19l36.06-5.93A20.26,20.26,0,0,1,109.22,51.1l4.41,17.41c4.74-.33,9.52-.51,14.37-.51s9.63.18,14.37.51l4.41-17.41a20.25,20.25,0,0,1,22.79-14.84l36.06,5.93A20,20,0,0,1,221.85,57l29.53,116.38A19.93,19.93,0,0,1,240.07,196.56ZM227.28,176,199.23,65.46l-30.07-4.94-2.84,11.17c2.9.58,5.78,1.2,8.61,1.92a12,12,0,1,1-5.86,23.27A168.43,168.43,0,0,0,128,92a168.43,168.43,0,0,0-41.07,4.88,12,12,0,0,1-5.86-23.27c2.83-.72,5.71-1.34,8.61-1.92L86.85,60.52,56.77,65.46,28.72,176l60.22,26.7,5-13.57c-4.37-.76-8.67-1.65-12.88-2.71a12,12,0,0,1,5.86-23.28A168.43,168.43,0,0,0,128,168a168.43,168.43,0,0,0,41.07-4.88,12,12,0,0,1,5.86,23.28c-4.21,1.06-8.51,1.95-12.88,2.71l5,13.57Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M235.21,185.59l-67,29.7a8.15,8.15,0,0,1-11-4.56L147,183.06a190.5,190.5,0,0,1-19,.94,190.5,190.5,0,0,1-19-.94L98.75,210.73a8.15,8.15,0,0,1-11,4.56l-67-29.7a8,8,0,0,1-4.55-9.24L45.77,60A8.08,8.08,0,0,1,52.31,54l36.06-5.92a8.1,8.1,0,0,1,9.21,6l5,19.63a192.32,192.32,0,0,1,50.88,0l5-19.63a8.1,8.1,0,0,1,9.21-6L203.69,54A8.08,8.08,0,0,1,210.23,60l29.53,116.37A8,8,0,0,1,235.21,185.59Z",opacity:"0.2"}),p.createElement("path",{d:"M104,140a12,12,0,1,1-12-12A12,12,0,0,1,104,140Zm60-12a12,12,0,1,0,12,12A12,12,0,0,0,164,128Zm74.45,64.9-67,29.71a16.17,16.17,0,0,1-21.71-9.1l-8.11-22q-6.72.45-13.63.46t-13.63-.46l-8.11,22a16.18,16.18,0,0,1-21.71,9.1l-67-29.71a15.94,15.94,0,0,1-9.06-18.51L38,58A16.08,16.08,0,0,1,51,46.13l36.06-5.92a16.21,16.21,0,0,1,18.26,11.88l3.26,12.83Q118.11,64,128,64t19.4.92l3.26-12.83a16.22,16.22,0,0,1,18.26-11.88L205,46.13A16.08,16.08,0,0,1,218,58l29.53,116.38A15.94,15.94,0,0,1,238.45,192.9ZM232,178.28,202.47,62s0,0-.08,0L166.33,56a.17.17,0,0,0-.17,0l-2.83,11.14c5,.94,10,2.06,14.83,3.42A8,8,0,0,1,176,86.31a8.09,8.09,0,0,1-2.16-.3A172.25,172.25,0,0,0,128,80a172.25,172.25,0,0,0-45.84,6,8,8,0,1,1-4.32-15.4c4.82-1.36,9.78-2.48,14.82-3.42L89.83,56a.21.21,0,0,0-.12,0h0L53.61,61.92a.24.24,0,0,0-.09,0L24,178.33,91,208a.21.21,0,0,0,.22,0L98,189.72a173.2,173.2,0,0,1-20.14-4.32A8,8,0,0,1,82.16,170,171.85,171.85,0,0,0,128,176a171.85,171.85,0,0,0,45.84-6,8,8,0,0,1,4.32,15.41A173.2,173.2,0,0,1,158,189.72L164.75,208a.22.22,0,0,0,.21,0Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M247.51,174.39,218,58a16.08,16.08,0,0,0-13-11.88l-36.06-5.92a16.22,16.22,0,0,0-18.26,11.88l-.21.85a4,4,0,0,0,3.27,4.93,155.62,155.62,0,0,1,24.41,5.62,8.2,8.2,0,0,1,5.62,9.7,8,8,0,0,1-10.19,5.64,155.4,155.4,0,0,0-90.8-.1,8.22,8.22,0,0,1-10.28-4.81,8,8,0,0,1,5.08-10.33,156.85,156.85,0,0,1,24.72-5.72,4,4,0,0,0,3.27-4.93l-.21-.85A16.21,16.21,0,0,0,87.08,40.21L51,46.13A16.08,16.08,0,0,0,38,58L8.49,174.39a15.94,15.94,0,0,0,9.06,18.51l67,29.71a16.17,16.17,0,0,0,21.71-9.1l3.49-9.45a4,4,0,0,0-3.27-5.35,158.13,158.13,0,0,1-28.63-6.2,8.2,8.2,0,0,1-5.61-9.67,8,8,0,0,1,10.2-5.66,155.59,155.59,0,0,0,91.12,0,8,8,0,0,1,10.19,5.65,8.19,8.19,0,0,1-5.61,9.68,157.84,157.84,0,0,1-28.62,6.2,4,4,0,0,0-3.27,5.35l3.49,9.45a16.18,16.18,0,0,0,21.71,9.1l67-29.71A15.94,15.94,0,0,0,247.51,174.39ZM92,152a12,12,0,1,1,12-12A12,12,0,0,1,92,152Zm72,0a12,12,0,1,1,12-12A12,12,0,0,1,164,152Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M102,140a10,10,0,1,1-10-10A10,10,0,0,1,102,140Zm62-10a10,10,0,1,0,10,10A10,10,0,0,0,164,130Zm73.64,61.08-67,29.71a14.43,14.43,0,0,1-5.77,1.21,14.13,14.13,0,0,1-13.25-9.18L143,189.43c-4.93.37-9.92.58-15,.58s-10.06-.21-15-.58l-8.63,23.39A14.13,14.13,0,0,1,91.13,222a14.43,14.43,0,0,1-5.77-1.21l-67-29.71a14,14,0,0,1-7.93-16.2L40,58.5A14.07,14.07,0,0,1,51.34,48.11L87.4,42.19a14.19,14.19,0,0,1,16,10.39l3.69,14.53a197.5,197.5,0,0,1,41.82,0l3.69-14.53a14.19,14.19,0,0,1,16-10.39l36.06,5.92A14.07,14.07,0,0,1,216,58.5l29.53,116.38A14,14,0,0,1,237.64,191.08Zm-3.7-13.25L204.41,61.45a2.08,2.08,0,0,0-1.7-1.5L166.65,54a2.13,2.13,0,0,0-2.42,1.5l-3.36,13.24a169.28,169.28,0,0,1,16.75,3.76A6,6,0,0,1,176,84.31a5.71,5.71,0,0,1-1.62-.23A174.26,174.26,0,0,0,128,78a174.26,174.26,0,0,0-46.38,6.08,6,6,0,1,1-3.24-11.55,169.28,169.28,0,0,1,16.75-3.76L91.77,55.53A2.12,2.12,0,0,0,89.35,54L53.29,60a2.08,2.08,0,0,0-1.7,1.5L22.06,177.83a2,2,0,0,0,1.16,2.28l67,29.7a2.19,2.19,0,0,0,1.76,0,2.07,2.07,0,0,0,1.14-1.17l7.58-20.55a171.46,171.46,0,0,1-22.33-4.64,6,6,0,1,1,3.24-11.55A174.26,174.26,0,0,0,128,178a174.26,174.26,0,0,0,46.38-6.08,6,6,0,1,1,3.24,11.55,171.46,171.46,0,0,1-22.33,4.64l7.58,20.55a2.07,2.07,0,0,0,1.14,1.17,2.19,2.19,0,0,0,1.76,0l67-29.7A2,2,0,0,0,233.94,177.83Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M104,140a12,12,0,1,1-12-12A12,12,0,0,1,104,140Zm60-12a12,12,0,1,0,12,12A12,12,0,0,0,164,128Zm74.45,64.9-67,29.71a16.17,16.17,0,0,1-21.71-9.1l-8.11-22q-6.72.45-13.63.46t-13.63-.46l-8.11,22a16.18,16.18,0,0,1-21.71,9.1l-67-29.71a15.93,15.93,0,0,1-9.06-18.51L38,58A16.07,16.07,0,0,1,51,46.14l36.06-5.93a16.22,16.22,0,0,1,18.26,11.88l3.26,12.84Q118.11,64,128,64t19.4.93l3.26-12.84a16.21,16.21,0,0,1,18.26-11.88L205,46.14A16.07,16.07,0,0,1,218,58l29.53,116.38A15.93,15.93,0,0,1,238.45,192.9ZM232,178.28,202.47,62s0,0-.08,0L166.33,56a.17.17,0,0,0-.17,0l-2.83,11.14c5,.94,10,2.06,14.83,3.42A8,8,0,0,1,176,86.31a8.09,8.09,0,0,1-2.16-.3A172.25,172.25,0,0,0,128,80a172.25,172.25,0,0,0-45.84,6,8,8,0,1,1-4.32-15.4c4.82-1.36,9.78-2.48,14.82-3.42L89.83,56s0,0-.12,0h0L53.61,61.93a.17.17,0,0,0-.09,0L24,178.33,91,208a.23.23,0,0,0,.22,0L98,189.72a173.2,173.2,0,0,1-20.14-4.32A8,8,0,0,1,82.16,170,171.85,171.85,0,0,0,128,176a171.85,171.85,0,0,0,45.84-6,8,8,0,0,1,4.32,15.41A173.2,173.2,0,0,1,158,189.72L164.75,208a.22.22,0,0,0,.21,0Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M100,140a8,8,0,1,1-8-8A8,8,0,0,1,100,140Zm64-8a8,8,0,1,0,8,8A8,8,0,0,0,164,132Zm72.83,57.25-67,29.71a12.36,12.36,0,0,1-5,1,12.13,12.13,0,0,1-11.38-7.88l-9.15-24.81c-5.36.45-10.81.69-16.34.69s-11-.24-16.34-.69l-9.15,24.81A12.13,12.13,0,0,1,91.13,220a12.36,12.36,0,0,1-5-1l-67-29.71a12,12,0,0,1-6.8-13.88L41.9,59a12.06,12.06,0,0,1,9.77-8.91l36.06-5.92a12.18,12.18,0,0,1,13.73,8.91l4.12,16.22a195.47,195.47,0,0,1,44.84,0l4.12-16.22a12.18,12.18,0,0,1,13.73-8.91l36.06,5.92A12.06,12.06,0,0,1,214.1,59l29.53,116.38A12,12,0,0,1,236.83,189.25Zm-1-11.91L206.35,61A4.07,4.07,0,0,0,203,58L167,52.05a4.15,4.15,0,0,0-4.69,3L158.4,70.38a166.74,166.74,0,0,1,18.68,4.08,4,4,0,1,1-2.16,7.7A176.21,176.21,0,0,0,128,76a176.21,176.21,0,0,0-46.92,6.16,4,4,0,1,1-2.16-7.7A166.74,166.74,0,0,1,97.6,70.38L93.71,55a4.15,4.15,0,0,0-4.69-3L53,58a4.07,4.07,0,0,0-3.31,3L20.12,177.34a4,4,0,0,0,2.29,4.59l67,29.71a4.16,4.16,0,0,0,3.35,0A4,4,0,0,0,95,209.35l8.45-22.88a171.49,171.49,0,0,1-24.53-4.92,4,4,0,0,1,2.16-7.71A176.21,176.21,0,0,0,128,180a176.21,176.21,0,0,0,46.92-6.16,4,4,0,0,1,2.16,7.71,171.49,171.49,0,0,1-24.53,4.92L161,209.35a4,4,0,0,0,2.23,2.32,4.16,4.16,0,0,0,3.35,0l67-29.71A4,4,0,0,0,235.88,177.34Z"}))]]),fD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,96a32,32,0,1,0,32,32A32,32,0,0,0,128,96Zm0,40a8,8,0,1,1,8-8A8,8,0,0,1,128,136Zm0-56A32,32,0,1,0,96,48,32,32,0,0,0,128,80Zm0-40a8,8,0,1,1-8,8A8,8,0,0,1,128,40Zm0,136a32,32,0,1,0,32,32A32,32,0,0,0,128,176Zm0,40a8,8,0,1,1,8-8A8,8,0,0,1,128,216Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M152,128a24,24,0,1,1-24-24A24,24,0,0,1,152,128ZM128,72a24,24,0,1,0-24-24A24,24,0,0,0,128,72Zm0,112a24,24,0,1,0,24,24A24,24,0,0,0,128,184Z",opacity:"0.2"}),p.createElement("path",{d:"M128,96a32,32,0,1,0,32,32A32,32,0,0,0,128,96Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,128,144Zm0-64A32,32,0,1,0,96,48,32,32,0,0,0,128,80Zm0-48a16,16,0,1,1-16,16A16,16,0,0,1,128,32Zm0,144a32,32,0,1,0,32,32A32,32,0,0,0,128,176Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,128,224Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M156,128a28,28,0,1,1-28-28A28,28,0,0,1,156,128ZM128,76a28,28,0,1,0-28-28A28,28,0,0,0,128,76Zm0,104a28,28,0,1,0,28,28A28,28,0,0,0,128,180Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,98a30,30,0,1,0,30,30A30,30,0,0,0,128,98Zm0,48a18,18,0,1,1,18-18A18,18,0,0,1,128,146Zm0-68A30,30,0,1,0,98,48,30,30,0,0,0,128,78Zm0-48a18,18,0,1,1-18,18A18,18,0,0,1,128,30Zm0,148a30,30,0,1,0,30,30A30,30,0,0,0,128,178Zm0,48a18,18,0,1,1,18-18A18,18,0,0,1,128,226Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,96a32,32,0,1,0,32,32A32,32,0,0,0,128,96Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,128,144Zm0-64A32,32,0,1,0,96,48,32,32,0,0,0,128,80Zm0-48a16,16,0,1,1-16,16A16,16,0,0,1,128,32Zm0,144a32,32,0,1,0,32,32A32,32,0,0,0,128,176Zm0,48a16,16,0,1,1,16-16A16,16,0,0,1,128,224Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,100a28,28,0,1,0,28,28A28,28,0,0,0,128,100Zm0,48a20,20,0,1,1,20-20A20,20,0,0,1,128,148Zm0-72a28,28,0,1,0-28-28A28,28,0,0,0,128,76Zm0-48a20,20,0,1,1-20,20A20,20,0,0,1,128,28Zm0,152a28,28,0,1,0,28,28A28,28,0,0,0,128,180Zm0,48a20,20,0,1,1,20-20A20,20,0,0,1,128,228Z"}))]]),hD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm92-27.21v-1.58l14-17.51a12,12,0,0,0,2.23-10.59A111.75,111.75,0,0,0,225,71.89,12,12,0,0,0,215.89,66L193.61,63.5l-1.11-1.11L190,40.1A12,12,0,0,0,184.11,31a111.67,111.67,0,0,0-27.23-11.27A12,12,0,0,0,146.3,22L128.79,36h-1.58L109.7,22a12,12,0,0,0-10.59-2.23A111.75,111.75,0,0,0,71.89,31.05,12,12,0,0,0,66,40.11L63.5,62.39,62.39,63.5,40.1,66A12,12,0,0,0,31,71.89,111.67,111.67,0,0,0,19.77,99.12,12,12,0,0,0,22,109.7l14,17.51v1.58L22,146.3a12,12,0,0,0-2.23,10.59,111.75,111.75,0,0,0,11.29,27.22A12,12,0,0,0,40.11,190l22.28,2.48,1.11,1.11L66,215.9A12,12,0,0,0,71.89,225a111.67,111.67,0,0,0,27.23,11.27A12,12,0,0,0,109.7,234l17.51-14h1.58l17.51,14a12,12,0,0,0,10.59,2.23A111.75,111.75,0,0,0,184.11,225a12,12,0,0,0,5.91-9.06l2.48-22.28,1.11-1.11L215.9,190a12,12,0,0,0,9.06-5.91,111.67,111.67,0,0,0,11.27-27.23A12,12,0,0,0,234,146.3Zm-24.12-4.89a70.1,70.1,0,0,1,0,8.2,12,12,0,0,0,2.61,8.22l12.84,16.05A86.47,86.47,0,0,1,207,166.86l-20.43,2.27a12,12,0,0,0-7.65,4,69,69,0,0,1-5.8,5.8,12,12,0,0,0-4,7.65L166.86,207a86.47,86.47,0,0,1-10.49,4.35l-16.05-12.85a12,12,0,0,0-7.5-2.62c-.24,0-.48,0-.72,0a70.1,70.1,0,0,1-8.2,0,12.06,12.06,0,0,0-8.22,2.6L99.63,211.33A86.47,86.47,0,0,1,89.14,207l-2.27-20.43a12,12,0,0,0-4-7.65,69,69,0,0,1-5.8-5.8,12,12,0,0,0-7.65-4L49,166.86a86.47,86.47,0,0,1-4.35-10.49l12.84-16.05a12,12,0,0,0,2.61-8.22,70.1,70.1,0,0,1,0-8.2,12,12,0,0,0-2.61-8.22L44.67,99.63A86.47,86.47,0,0,1,49,89.14l20.43-2.27a12,12,0,0,0,7.65-4,69,69,0,0,1,5.8-5.8,12,12,0,0,0,4-7.65L89.14,49a86.47,86.47,0,0,1,10.49-4.35l16.05,12.85a12.06,12.06,0,0,0,8.22,2.6,70.1,70.1,0,0,1,8.2,0,12,12,0,0,0,8.22-2.6l16.05-12.85A86.47,86.47,0,0,1,166.86,49l2.27,20.43a12,12,0,0,0,4,7.65,69,69,0,0,1,5.8,5.8,12,12,0,0,0,7.65,4L207,89.14a86.47,86.47,0,0,1,4.35,10.49l-12.84,16.05A12,12,0,0,0,195.88,123.9Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M207.86,123.18l16.78-21a99.14,99.14,0,0,0-10.07-24.29l-26.7-3a81,81,0,0,0-6.81-6.81l-3-26.71a99.43,99.43,0,0,0-24.3-10l-21,16.77a81.59,81.59,0,0,0-9.64,0l-21-16.78A99.14,99.14,0,0,0,77.91,41.43l-3,26.7a81,81,0,0,0-6.81,6.81l-26.71,3a99.43,99.43,0,0,0-10,24.3l16.77,21a81.59,81.59,0,0,0,0,9.64l-16.78,21a99.14,99.14,0,0,0,10.07,24.29l26.7,3a81,81,0,0,0,6.81,6.81l3,26.71a99.43,99.43,0,0,0,24.3,10l21-16.77a81.59,81.59,0,0,0,9.64,0l21,16.78a99.14,99.14,0,0,0,24.29-10.07l3-26.7a81,81,0,0,0,6.81-6.81l26.71-3a99.43,99.43,0,0,0,10-24.3l-16.77-21A81.59,81.59,0,0,0,207.86,123.18ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"}),p.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8.06,8.06,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8.06,8.06,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,130.16q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.6,107.6,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.29,107.29,0,0,0-26.25-10.86,8,8,0,0,0-7.06,1.48L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.6,107.6,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162ZM214,130.84c.06-1.89.06-3.79,0-5.68L229.33,106a6,6,0,0,0,1.11-5.29A105.34,105.34,0,0,0,219.76,74.9a6,6,0,0,0-4.53-3l-24.45-2.71q-1.93-2.07-4-4l-2.72-24.46a6,6,0,0,0-3-4.53,105.65,105.65,0,0,0-25.77-10.66A6,6,0,0,0,150,26.68l-19.2,15.37c-1.89-.06-3.79-.06-5.68,0L106,26.67a6,6,0,0,0-5.29-1.11A105.34,105.34,0,0,0,74.9,36.24a6,6,0,0,0-3,4.53L69.23,65.22q-2.07,1.94-4,4L40.76,72a6,6,0,0,0-4.53,3,105.65,105.65,0,0,0-10.66,25.77A6,6,0,0,0,26.68,106l15.37,19.2c-.06,1.89-.06,3.79,0,5.68L26.67,150.05a6,6,0,0,0-1.11,5.29A105.34,105.34,0,0,0,36.24,181.1a6,6,0,0,0,4.53,3l24.45,2.71q1.94,2.07,4,4L72,215.24a6,6,0,0,0,3,4.53,105.65,105.65,0,0,0,25.77,10.66,6,6,0,0,0,5.29-1.11L125.16,214c1.89.06,3.79.06,5.68,0l19.21,15.38a6,6,0,0,0,3.75,1.31,6.2,6.2,0,0,0,1.54-.2,105.34,105.34,0,0,0,25.76-10.68,6,6,0,0,0,3-4.53l2.71-24.45q2.07-1.93,4-4l24.46-2.72a6,6,0,0,0,4.53-3,105.49,105.49,0,0,0,10.66-25.77,6,6,0,0,0-1.11-5.29Zm-3.1,41.63-23.64,2.63a6,6,0,0,0-3.82,2,75.14,75.14,0,0,1-6.31,6.31,6,6,0,0,0-2,3.82l-2.63,23.63A94.28,94.28,0,0,1,155.14,218l-18.57-14.86a6,6,0,0,0-3.75-1.31h-.36a78.07,78.07,0,0,1-8.92,0,6,6,0,0,0-4.11,1.3L100.87,218a94.13,94.13,0,0,1-17.34-7.17L80.9,187.21a6,6,0,0,0-2-3.82,75.14,75.14,0,0,1-6.31-6.31,6,6,0,0,0-3.82-2l-23.63-2.63A94.28,94.28,0,0,1,38,155.14l14.86-18.57a6,6,0,0,0,1.3-4.11,78.07,78.07,0,0,1,0-8.92,6,6,0,0,0-1.3-4.11L38,100.87a94.13,94.13,0,0,1,7.17-17.34L68.79,80.9a6,6,0,0,0,3.82-2,75.14,75.14,0,0,1,6.31-6.31,6,6,0,0,0,2-3.82l2.63-23.63A94.28,94.28,0,0,1,100.86,38l18.57,14.86a6,6,0,0,0,4.11,1.3,78.07,78.07,0,0,1,8.92,0,6,6,0,0,0,4.11-1.3L155.13,38a94.13,94.13,0,0,1,17.34,7.17l2.63,23.64a6,6,0,0,0,2,3.82,75.14,75.14,0,0,1,6.31,6.31,6,6,0,0,0,3.82,2l23.63,2.63A94.28,94.28,0,0,1,218,100.86l-14.86,18.57a6,6,0,0,0-1.3,4.11,78.07,78.07,0,0,1,0,8.92,6,6,0,0,0,1.3,4.11L218,155.13A94.13,94.13,0,0,1,210.85,172.47Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm83.93-32.49q.13-3.51,0-7l15.83-19.79a4,4,0,0,0,.75-3.53A103.64,103.64,0,0,0,218,75.9a4,4,0,0,0-3-2l-25.19-2.8c-1.58-1.71-3.24-3.37-4.95-4.95L182.07,41a4,4,0,0,0-2-3A104,104,0,0,0,154.82,27.5a4,4,0,0,0-3.53.74L131.51,44.07q-3.51-.14-7,0L104.7,28.24a4,4,0,0,0-3.53-.75A103.64,103.64,0,0,0,75.9,38a4,4,0,0,0-2,3l-2.8,25.19c-1.71,1.58-3.37,3.24-4.95,4.95L41,73.93a4,4,0,0,0-3,2A104,104,0,0,0,27.5,101.18a4,4,0,0,0,.74,3.53l15.83,19.78q-.14,3.51,0,7L28.24,151.3a4,4,0,0,0-.75,3.53A103.64,103.64,0,0,0,38,180.1a4,4,0,0,0,3,2l25.19,2.8c1.58,1.71,3.24,3.37,4.95,4.95l2.8,25.2a4,4,0,0,0,2,3,104,104,0,0,0,25.28,10.46,4,4,0,0,0,3.53-.74l19.78-15.83q3.51.13,7,0l19.79,15.83a4,4,0,0,0,2.5.88,4,4,0,0,0,1-.13A103.64,103.64,0,0,0,180.1,218a4,4,0,0,0,2-3l2.8-25.19c1.71-1.58,3.37-3.24,4.95-4.95l25.2-2.8a4,4,0,0,0,3-2,104,104,0,0,0,10.46-25.28,4,4,0,0,0-.74-3.53Zm.17,42.83-24.67,2.74a4,4,0,0,0-2.55,1.32,76.2,76.2,0,0,1-6.48,6.48,4,4,0,0,0-1.32,2.55l-2.74,24.66a95.45,95.45,0,0,1-19.64,8.15l-19.38-15.51a4,4,0,0,0-2.5-.87h-.24a73.67,73.67,0,0,1-9.16,0,4,4,0,0,0-2.74.87l-19.37,15.5a95.33,95.33,0,0,1-19.65-8.13l-2.74-24.67a4,4,0,0,0-1.32-2.55,76.2,76.2,0,0,1-6.48-6.48,4,4,0,0,0-2.55-1.32l-24.66-2.74a95.45,95.45,0,0,1-8.15-19.64l15.51-19.38a4,4,0,0,0,.87-2.74,77.76,77.76,0,0,1,0-9.16,4,4,0,0,0-.87-2.74l-15.5-19.37A95.33,95.33,0,0,1,43.9,81.66l24.67-2.74a4,4,0,0,0,2.55-1.32,76.2,76.2,0,0,1,6.48-6.48,4,4,0,0,0,1.32-2.55l2.74-24.66a95.45,95.45,0,0,1,19.64-8.15l19.38,15.51a4,4,0,0,0,2.74.87,73.67,73.67,0,0,1,9.16,0,4,4,0,0,0,2.74-.87l19.37-15.5a95.33,95.33,0,0,1,19.65,8.13l2.74,24.67a4,4,0,0,0,1.32,2.55,76.2,76.2,0,0,1,6.48,6.48,4,4,0,0,0,2.55,1.32l24.66,2.74a95.45,95.45,0,0,1,8.15,19.64l-15.51,19.38a4,4,0,0,0-.87,2.74,77.76,77.76,0,0,1,0,9.16,4,4,0,0,0,.87,2.74l15.5,19.37A95.33,95.33,0,0,1,212.1,174.34Z"}))]]),mD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,104v8a48,48,0,0,1-48,48H136a32,32,0,0,1,32,32v40H104V192a32,32,0,0,1,32-32H112a48,48,0,0,1-48-48v-8a49.28,49.28,0,0,1,8.51-27.3A51.92,51.92,0,0,1,76,32a52,52,0,0,1,43.83,24h32.34A52,52,0,0,1,196,32a51.92,51.92,0,0,1,3.49,44.7A49.28,49.28,0,0,1,208,104Z",opacity:"0.2"}),p.createElement("path",{d:"M208.3,75.68A59.74,59.74,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58,58,0,0,0,208.3,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.76,41.76,0,0,1,200,104Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M206.13,75.92A57.79,57.79,0,0,0,201.2,29a6,6,0,0,0-5.2-3,57.77,57.77,0,0,0-47,24H123A57.77,57.77,0,0,0,76,26a6,6,0,0,0-5.2,3,57.79,57.79,0,0,0-4.93,46.92A55.88,55.88,0,0,0,58,104v8a54.06,54.06,0,0,0,50.45,53.87A37.85,37.85,0,0,0,98,192v10H72a26,26,0,0,1-26-26A38,38,0,0,0,8,138a6,6,0,0,0,0,12,26,26,0,0,1,26,26,38,38,0,0,0,38,38H98v18a6,6,0,0,0,12,0V192a26,26,0,0,1,52,0v40a6,6,0,0,0,12,0V192a37.85,37.85,0,0,0-10.45-26.13A54.06,54.06,0,0,0,214,112v-8A55.88,55.88,0,0,0,206.13,75.92ZM202,112a42,42,0,0,1-42,42H112a42,42,0,0,1-42-42v-8a43.86,43.86,0,0,1,7.3-23.69,6,6,0,0,0,.81-5.76,45.85,45.85,0,0,1,1.43-36.42,45.85,45.85,0,0,1,35.23,21.1A6,6,0,0,0,119.83,62h32.34a6,6,0,0,0,5.06-2.76,45.83,45.83,0,0,1,35.23-21.11,45.85,45.85,0,0,1,1.43,36.42,6,6,0,0,0,.79,5.74A43.78,43.78,0,0,1,202,104Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208.31,75.68A59.78,59.78,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58.14,58.14,0,0,0,208.31,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.72,41.72,0,0,1,200,104Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M203.94,76.16A55.73,55.73,0,0,0,199.46,30,4,4,0,0,0,196,28a55.78,55.78,0,0,0-46,24H122A55.78,55.78,0,0,0,76,28a4,4,0,0,0-3.46,2,55.73,55.73,0,0,0-4.48,46.16A53.78,53.78,0,0,0,60,104v8a52.06,52.06,0,0,0,52,52h1.41A36,36,0,0,0,100,192v12H72a28,28,0,0,1-28-28A36,36,0,0,0,8,140a4,4,0,0,0,0,8,28,28,0,0,1,28,28,36,36,0,0,0,36,36h28v20a4,4,0,0,0,8,0V192a28,28,0,0,1,56,0v40a4,4,0,0,0,8,0V192a36,36,0,0,0-13.41-28H160a52.06,52.06,0,0,0,52-52v-8A53.78,53.78,0,0,0,203.94,76.16ZM204,112a44.05,44.05,0,0,1-44,44H112a44.05,44.05,0,0,1-44-44v-8a45.76,45.76,0,0,1,7.71-24.89,4,4,0,0,0,.53-3.84,47.82,47.82,0,0,1,2.1-39.21,47.8,47.8,0,0,1,38.12,22.1A4,4,0,0,0,119.83,60h32.34a4,4,0,0,0,3.37-1.84,47.8,47.8,0,0,1,38.12-22.1,47.82,47.82,0,0,1,2.1,39.21,4,4,0,0,0,.53,3.83A45.85,45.85,0,0,1,204,104Z"}))]]),pD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"}))]]),gD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,60H32A20,20,0,0,0,12,80v96a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V80A20,20,0,0,0,224,60Zm-4,112H36V84H220Zm-56-44a16,16,0,1,1,16,16A16,16,0,0,1,164,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,80v96a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H224A8,8,0,0,1,232,80Z",opacity:"0.2"}),p.createElement("path",{d:"M224,64H32A16,16,0,0,0,16,80v96a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64Zm0,112H32V80H224v96Zm-24-48a12,12,0,1,1-12-12A12,12,0,0,1,200,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H32A16,16,0,0,0,16,80v96a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64Zm-36,76a12,12,0,1,1,12-12A12,12,0,0,1,188,140Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,66H32A14,14,0,0,0,18,80v96a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V80A14,14,0,0,0,224,66Zm2,110a2,2,0,0,1-2,2H32a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2H224a2,2,0,0,1,2,2Zm-28-48a10,10,0,1,1-10-10A10,10,0,0,1,198,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H32A16,16,0,0,0,16,80v96a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64Zm0,112H32V80H224v96Zm-24-48a12,12,0,1,1-12-12A12,12,0,0,1,200,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,68H32A12,12,0,0,0,20,80v96a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V80A12,12,0,0,0,224,68Zm4,108a4,4,0,0,1-4,4H32a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H224a4,4,0,0,1,4,4Zm-32-48a8,8,0,1,1-8-8A8,8,0,0,1,196,128Z"}))]]),vD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"}),p.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"}))]]),yD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z",opacity:"0.2"}),p.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z"}))]]),bD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V216a12,12,0,0,0,17.37,10.73L64,213.42l26.63,13.31a12,12,0,0,0,10.74,0L128,213.42l26.63,13.31a12,12,0,0,0,10.74,0L192,213.42l26.63,13.31A12,12,0,0,0,236,216V56A20,20,0,0,0,216,36Zm-4,160.58-14.63-7.31a12,12,0,0,0-10.74,0L160,202.58l-26.63-13.31a12,12,0,0,0-10.74,0L96,202.58,69.37,189.27a12,12,0,0,0-10.74,0L44,196.58V60H212ZM136,108a12,12,0,0,1,12-12h36a12,12,0,0,1,0,24H148A12,12,0,0,1,136,108Zm0,40a12,12,0,0,1,12-12h36a12,12,0,0,1,0,24H148A12,12,0,0,1,136,148ZM72,172h40a12,12,0,0,0,12-12V96a12,12,0,0,0-12-12H72A12,12,0,0,0,60,96v64A12,12,0,0,0,72,172Zm12-64h16v40H84Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H40a8,8,0,0,0-8,8V216l32-16,32,16,32-16,32,16,32-16,32,16V56A8,8,0,0,0,216,48ZM112,160H64V96h48Z",opacity:"0.2"}),p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V216a8,8,0,0,0,11.58,7.15L64,208.94l28.42,14.21a8,8,0,0,0,7.16,0L128,208.94l28.42,14.21a8,8,0,0,0,7.16,0L192,208.94l28.42,14.21A8,8,0,0,0,232,216V56A16,16,0,0,0,216,40Zm0,163.06-20.42-10.22a8,8,0,0,0-7.16,0L160,207.06l-28.42-14.22a8,8,0,0,0-7.16,0L96,207.06,67.58,192.84a8,8,0,0,0-7.16,0L40,203.06V56H216ZM136,112a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H144A8,8,0,0,1,136,112Zm0,32a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H144A8,8,0,0,1,136,144ZM64,168h48a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v64A8,8,0,0,0,64,168Zm8-64h32v48H72Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V216a8,8,0,0,0,11.58,7.15L64,208.94l28.42,14.21a8,8,0,0,0,7.16,0L128,208.94l28.42,14.21a8,8,0,0,0,7.16,0L192,208.94l28.42,14.21A8,8,0,0,0,232,216V56A16,16,0,0,0,216,40ZM116,160a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm76-8H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-32H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V216a6,6,0,0,0,8.68,5.37L64,206.71l29.32,14.66a6,6,0,0,0,5.36,0L128,206.71l29.32,14.66a6,6,0,0,0,5.36,0L192,206.71l29.32,14.66A6,6,0,0,0,224,222a5.93,5.93,0,0,0,3.15-.9A6,6,0,0,0,230,216V56A14,14,0,0,0,216,42Zm2,164.29-23.32-11.66a6,6,0,0,0-5.36,0L160,209.29l-29.32-14.66a6,6,0,0,0-5.36,0L96,209.29,66.68,194.63a6,6,0,0,0-5.36,0L38,206.29V56a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2ZM198,112a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h48A6,6,0,0,1,198,112Zm0,32a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h48A6,6,0,0,1,198,144ZM112,90H64a6,6,0,0,0-6,6v64a6,6,0,0,0,6,6h48a6,6,0,0,0,6-6V96A6,6,0,0,0,112,90Zm-6,64H70V102h36Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V216a8,8,0,0,0,11.58,7.15L64,208.94l28.42,14.21a8,8,0,0,0,7.16,0L128,208.94l28.42,14.21a8,8,0,0,0,7.16,0L192,208.94l28.42,14.21A8,8,0,0,0,232,216V56A16,16,0,0,0,216,40Zm0,163.06-20.42-10.22a8,8,0,0,0-7.16,0L160,207.06l-28.42-14.22a8,8,0,0,0-7.16,0L96,207.06,67.58,192.84a8,8,0,0,0-7.16,0L40,203.06V56H216ZM136,112a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H144A8,8,0,0,1,136,112Zm0,32a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H144A8,8,0,0,1,136,144ZM64,168h48a8,8,0,0,0,8-8V96a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v64A8,8,0,0,0,64,168Zm8-64h32v48H72Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V216a4,4,0,0,0,5.79,3.58L64,204.47l30.21,15.11a4,4,0,0,0,3.58,0L128,204.47l30.21,15.11a4,4,0,0,0,3.58,0L192,204.47l30.21,15.11A4.05,4.05,0,0,0,224,220a4,4,0,0,0,4-4V56A12,12,0,0,0,216,44Zm4,165.53-26.21-13.11a4,4,0,0,0-3.58,0L160,211.53l-30.21-15.11a4,4,0,0,0-3.58,0L96,211.53,65.79,196.42a4,4,0,0,0-3.58,0L36,209.53V56a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4ZM196,112a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h48A4,4,0,0,1,196,112Zm0,32a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h48A4,4,0,0,1,196,144ZM112,92H64a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V96A4,4,0,0,0,112,92Zm-4,64H68V100h40Z"}))]]),ED=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M137,168l11.52-11.51a12,12,0,0,0-17-17L120,151l-15-15,11.52-11.51a12,12,0,0,0-17-17L88,119,72.49,103.51a12,12,0,0,0-17,17L59,124,38.54,144.49a36,36,0,0,0,0,50.91l2.55,2.54L15.51,223.51a12,12,0,0,0,17,17l25.57-25.58,2.54,2.55a36.06,36.06,0,0,0,50.91,0L132,197l3.51,3.52a12,12,0,0,0,17-17ZM94.54,200.49a12,12,0,0,1-17,0L55.51,178.43a12,12,0,0,1,0-17L76,141l39,39Zm146-185a12,12,0,0,0-17,0L197.94,41.09l-2.54-2.55a36.05,36.05,0,0,0-50.91,0L124,59l-3.51-3.52a12,12,0,0,0-17,17l80,80a12,12,0,0,0,17-17L197,132l20.49-20.49a36,36,0,0,0,0-50.91l-2.55-2.54,25.58-25.57A12,12,0,0,0,240.49,15.51Zm-40,79L180,115,141,76l20.49-20.49a12,12,0,0,1,17,0l22.06,22.06a12,12,0,0,1,0,17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M76,124l56,56-29,29a24,24,0,0,1-33.94,0L47,186.91A24,24,0,0,1,47,153ZM209,69.09,186.91,47A24,24,0,0,0,153,47L124,76l56,56,29-29A24,24,0,0,0,209,69.09Z",opacity:"0.2"}),p.createElement("path",{d:"M149.66,138.34a8,8,0,0,0-11.32,0L120,156.69,99.31,136l18.35-18.34a8,8,0,0,0-11.32-11.32L88,124.69,69.66,106.34a8,8,0,0,0-11.32,11.32L64.69,124,41.37,147.31a32,32,0,0,0,0,45.26l5.38,5.37-28.41,28.4a8,8,0,0,0,11.32,11.32l28.4-28.41,5.37,5.38a32,32,0,0,0,45.26,0L132,191.31l6.34,6.35a8,8,0,0,0,11.32-11.32L131.31,168l18.35-18.34A8,8,0,0,0,149.66,138.34Zm-52.29,65a16,16,0,0,1-22.62,0L52.69,181.25a16,16,0,0,1,0-22.62L76,135.31,120.69,180Zm140.29-185a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Zm-34.35,79L180,120.69,135.31,76l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,203.31,97.37Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M149.66,149.66,131.31,168l18.35,18.34a8,8,0,0,1-11.32,11.32L132,191.31l-23.31,23.32a32.06,32.06,0,0,1-45.26,0l-5.37-5.38-28.4,28.41a8,8,0,0,1-11.32-11.32l28.41-28.4-5.38-5.37a32,32,0,0,1,0-45.26L64.69,124l-6.35-6.34a8,8,0,0,1,11.32-11.32L88,124.69l18.34-18.35a8,8,0,0,1,11.32,11.32L99.31,136,120,156.69l18.34-18.35a8,8,0,0,1,11.32,11.32Zm88-131.32a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M148.24,139.76a6,6,0,0,0-8.48,0L120,159.51,96.49,136l19.75-19.76a6,6,0,0,0-8.48-8.48L88,127.51,68.24,107.76a6,6,0,0,0-8.48,8.48L67.51,124,42.79,148.73a30,30,0,0,0,0,42.42l6.78,6.79L19.76,227.76a6,6,0,1,0,8.48,8.48l29.82-29.81,6.79,6.78a30,30,0,0,0,42.42,0L132,188.49l7.76,7.75a6,6,0,0,0,8.48-8.48L128.49,168l19.75-19.76A6,6,0,0,0,148.24,139.76Zm-49.45,65a18,18,0,0,1-25.46,0L51.27,182.67a18,18,0,0,1,0-25.46L76,132.49,123.51,180Zm137.45-185a6,6,0,0,0-8.48,0L197.94,49.57l-6.79-6.78a30,30,0,0,0-42.42,0L124,67.51l-7.76-7.75a6,6,0,0,0-8.48,8.48l80,80a6,6,0,0,0,8.48-8.48L188.49,132l24.72-24.73a30,30,0,0,0,0-42.42l-6.78-6.79,29.81-29.82A6,6,0,0,0,236.24,19.76Zm-31.51,79L180,123.51,132.49,76l24.72-24.73a18,18,0,0,1,25.46,0l22.06,22.06a18,18,0,0,1,0,25.46Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M149.66,138.34a8,8,0,0,0-11.32,0L120,156.69,99.31,136l18.35-18.34a8,8,0,0,0-11.32-11.32L88,124.69,69.66,106.34a8,8,0,0,0-11.32,11.32L64.69,124,41.37,147.31a32,32,0,0,0,0,45.26l5.38,5.37-28.41,28.4a8,8,0,0,0,11.32,11.32l28.4-28.41,5.37,5.38a32,32,0,0,0,45.26,0L132,191.31l6.34,6.35a8,8,0,0,0,11.32-11.32L131.31,168l18.35-18.34A8,8,0,0,0,149.66,138.34Zm-52.29,65a16,16,0,0,1-22.62,0L52.69,181.25a16,16,0,0,1,0-22.62L76,135.31,120.69,180Zm140.29-185a8,8,0,0,0-11.32,0l-28.4,28.41-5.37-5.38a32.05,32.05,0,0,0-45.26,0L124,64.69l-6.34-6.35a8,8,0,0,0-11.32,11.32l80,80a8,8,0,0,0,11.32-11.32L191.31,132l23.32-23.31a32,32,0,0,0,0-45.26l-5.38-5.37,28.41-28.4A8,8,0,0,0,237.66,18.34Zm-34.35,79L180,120.69,135.31,76l23.32-23.31a16,16,0,0,1,22.62,0l22.06,22A16,16,0,0,1,203.31,97.37Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M146.83,141.17a4,4,0,0,0-5.66,0L120,162.34,93.66,136l21.17-21.17a4,4,0,0,0-5.66-5.66L88,130.34,66.83,109.17a4,4,0,0,0-5.66,5.66L70.34,124,44.2,150.14a28,28,0,0,0,0,39.6l8.2,8.2L21.17,229.17a4,4,0,0,0,5.66,5.66L58.06,203.6l8.2,8.2a28,28,0,0,0,39.6,0L132,185.66l9.17,9.17a4,4,0,0,0,5.66-5.66L125.66,168l21.17-21.17A4,4,0,0,0,146.83,141.17Zm-46.63,65a20,20,0,0,1-28.28,0L49.86,184.08a20,20,0,0,1,0-28.28L76,129.66,126.34,180Zm134.63-185a4,4,0,0,0-5.66,0L197.94,52.4l-8.2-8.2a28,28,0,0,0-39.6,0L124,70.34l-9.17-9.17a4,4,0,0,0-5.66,5.66l80,80a4,4,0,0,0,5.66-5.66L185.66,132l26.14-26.14a28,28,0,0,0,0-39.6l-8.2-8.2,31.23-31.23A4,4,0,0,0,234.83,21.17ZM212,86.06a19.86,19.86,0,0,1-5.86,14.14L180,126.34,129.66,76,155.8,49.86a20,20,0,0,1,28.28,0l22.06,22.06A19.85,19.85,0,0,1,212,86.06Z"}))]]),xD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z"}))]]),_D=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M228.75,100.05c-3.52-3.67-7.15-7.46-8.34-10.33-1.06-2.56-1.14-7.83-1.21-12.47-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21-2.87-1.19-6.66-4.82-10.33-8.34C148.87,20.46,140.05,12,128,12s-20.87,8.46-27.95,15.25c-3.67,3.52-7.46,7.15-10.33,8.34-2.56,1.06-7.83,1.14-12.47,1.21C67.25,37,54.81,37.14,46,46S37,67.25,36.8,77.25c-.07,4.64-.15,9.91-1.21,12.47-1.19,2.87-4.82,6.66-8.34,10.33C20.46,107.13,12,116,12,128S20.46,148.87,27.25,156c3.52,3.67,7.15,7.46,8.34,10.33,1.06,2.56,1.14,7.83,1.21,12.47.15,10,.34,22.44,9.18,31.27s21.27,9,31.27,9.18c4.64.07,9.91.15,12.47,1.21,2.87,1.19,6.66,4.82,10.33,8.34C107.13,235.54,116,244,128,244s20.87-8.46,27.95-15.25c3.67-3.52,7.46-7.15,10.33-8.34,2.56-1.06,7.83-1.14,12.47-1.21,10-.15,22.44-.34,31.27-9.18s9-21.27,9.18-31.27c.07-4.64.15-9.91,1.21-12.47,1.19-2.87,4.82-6.66,8.34-10.33C235.54,148.87,244,140.05,244,128S235.54,107.13,228.75,100.05Zm-17.32,39.29c-4.82,5-10.28,10.72-13.19,17.76-2.82,6.8-2.93,14.16-3,21.29-.08,5.36-.19,12.71-2.15,14.66s-9.3,2.07-14.66,2.15c-7.13.11-14.49.22-21.29,3-7,2.91-12.73,8.37-17.76,13.19C135.78,214.84,130.4,220,128,220s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.19-6.8-2.82-14.16-2.93-21.29-3-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29-2.91-7-8.37-12.73-13.19-17.76C41.16,135.78,36,130.4,36,128s5.16-7.78,8.57-11.34c4.82-5,10.28-10.72,13.19-17.76,2.82-6.8,2.93-14.16,3-21.29C60.88,72.25,61,64.9,63,63s9.3-2.07,14.66-2.15c7.13-.11,14.49-.22,21.29-3,7-2.91,12.73-8.37,17.76-13.19C120.22,41.16,125.6,36,128,36s7.78,5.16,11.34,8.57c5,4.82,10.72,10.28,17.76,13.19,6.8,2.82,14.16,2.93,21.29,3,5.36.08,12.71.19,14.66,2.15s2.07,9.3,2.15,14.66c.11,7.13.22,14.49,3,21.29,2.91,7,8.37,12.73,13.19,17.76,3.41,3.56,8.57,8.94,8.57,11.34S214.84,135.78,211.43,139.34ZM176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,128c0,12.51-17.82,21.95-22.68,33.69-4.68,11.32,1.42,30.65-7.78,39.85s-28.53,3.1-39.85,7.78C150,214.18,140.5,232,128,232s-22-17.82-33.69-22.68c-11.32-4.68-30.65,1.42-39.85-7.78s-3.1-28.53-7.78-39.85C41.82,150,24,140.5,24,128s17.82-22,22.68-33.69C51.36,83,45.26,63.66,54.46,54.46S83,51.36,94.31,46.68C106.05,41.82,115.5,24,128,24S150,41.82,161.69,46.68c11.32,4.68,30.65-1.42,39.85,7.78s3.1,28.53,7.78,39.85C214.18,106.05,232,115.5,232,128Z",opacity:"0.2"}),p.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-52.2,6.84-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224.42,104.2c-3.9-4.07-7.93-8.27-9.55-12.18-1.5-3.63-1.58-9-1.67-14.68-.14-9.38-.3-20-7.42-27.12S188,42.94,178.66,42.8c-5.68-.09-11-.17-14.68-1.67-3.91-1.62-8.11-5.65-12.18-9.55C145.16,25.22,137.64,18,128,18s-17.16,7.22-23.8,13.58c-4.07,3.9-8.27,7.93-12.18,9.55-3.63,1.5-9,1.58-14.68,1.67-9.38.14-20,.3-27.12,7.42S42.94,68,42.8,77.34c-.09,5.68-.17,11-1.67,14.68-1.62,3.91-5.65,8.11-9.55,12.18C25.22,110.84,18,118.36,18,128s7.22,17.16,13.58,23.8c3.9,4.07,7.93,8.27,9.55,12.18,1.5,3.63,1.58,9,1.67,14.68.14,9.38.3,20,7.42,27.12S68,213.06,77.34,213.2c5.68.09,11,.17,14.68,1.67,3.91,1.62,8.11,5.65,12.18,9.55C110.84,230.78,118.36,238,128,238s17.16-7.22,23.8-13.58c4.07-3.9,8.27-7.93,12.18-9.55,3.63-1.5,9-1.58,14.68-1.67,9.38-.14,20-.3,27.12-7.42s7.28-17.74,7.42-27.12c.09-5.68.17-11,1.67-14.68,1.62-3.91,5.65-8.11,9.55-12.18C230.78,145.16,238,137.64,238,128S230.78,110.84,224.42,104.2Zm-8.66,39.3c-4.67,4.86-9.5,9.9-12,15.9-2.38,5.74-2.48,12.52-2.58,19.08-.11,7.44-.23,15.14-3.9,18.82s-11.38,3.79-18.82,3.9c-6.56.1-13.34.2-19.08,2.58-6,2.48-11,7.31-15.91,12-5.25,5-10.68,10.24-15.49,10.24s-10.24-5.21-15.5-10.24c-4.86-4.67-9.9-9.5-15.9-12-5.74-2.38-12.52-2.48-19.08-2.58-7.44-.11-15.14-.23-18.82-3.9s-3.79-11.38-3.9-18.82c-.1-6.56-.2-13.34-2.58-19.08-2.48-6-7.31-11-12-15.91C35.21,138.24,30,132.81,30,128s5.21-10.24,10.24-15.5c4.67-4.86,9.5-9.9,12-15.9,2.38-5.74,2.48-12.52,2.58-19.08.11-7.44.23-15.14,3.9-18.82s11.38-3.79,18.82-3.9c6.56-.1,13.34-.2,19.08-2.58,6-2.48,11-7.31,15.91-12C117.76,35.21,123.19,30,128,30s10.24,5.21,15.5,10.24c4.86,4.67,9.9,9.5,15.9,12,5.74,2.38,12.52,2.48,19.08,2.58,7.44.11,15.14.23,18.82,3.9s3.79,11.38,3.9,18.82c.1,6.56.2,13.34,2.58,19.08,2.48,6,7.31,11,12,15.91,5,5.25,10.24,10.68,10.24,15.49S220.79,138.24,215.76,143.5ZM172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M225.86,102.82c-3.77-3.94-7.67-8-9.14-11.57-1.36-3.27-1.44-8.69-1.52-13.94-.15-9.76-.31-20.82-8-28.51s-18.75-7.85-28.51-8c-5.25-.08-10.67-.16-13.94-1.52-3.56-1.47-7.63-5.37-11.57-9.14C146.28,23.51,138.44,16,128,16s-18.27,7.51-25.18,14.14c-3.94,3.77-8,7.67-11.57,9.14C88,40.64,82.56,40.72,77.31,40.8c-9.76.15-20.82.31-28.51,8S41,67.55,40.8,77.31c-.08,5.25-.16,10.67-1.52,13.94-1.47,3.56-5.37,7.63-9.14,11.57C23.51,109.72,16,117.56,16,128s7.51,18.27,14.14,25.18c3.77,3.94,7.67,8,9.14,11.57,1.36,3.27,1.44,8.69,1.52,13.94.15,9.76.31,20.82,8,28.51s18.75,7.85,28.51,8c5.25.08,10.67.16,13.94,1.52,3.56,1.47,7.63,5.37,11.57,9.14C109.72,232.49,117.56,240,128,240s18.27-7.51,25.18-14.14c3.94-3.77,8-7.67,11.57-9.14,3.27-1.36,8.69-1.44,13.94-1.52,9.76-.15,20.82-.31,28.51-8s7.85-18.75,8-28.51c.08-5.25.16-10.67,1.52-13.94,1.47-3.56,5.37-7.63,9.14-11.57C232.49,146.28,240,138.44,240,128S232.49,109.73,225.86,102.82Zm-11.55,39.29c-4.79,5-9.75,10.17-12.38,16.52-2.52,6.1-2.63,13.07-2.73,19.82-.1,7-.21,14.33-3.32,17.43s-10.39,3.22-17.43,3.32c-6.75.1-13.72.21-19.82,2.73-6.35,2.63-11.52,7.59-16.52,12.38S132,224,128,224s-9.15-4.92-14.11-9.69-10.17-9.75-16.52-12.38c-6.1-2.52-13.07-2.63-19.82-2.73-7-.1-14.33-.21-17.43-3.32s-3.22-10.39-3.32-17.43c-.1-6.75-.21-13.72-2.73-19.82-2.63-6.35-7.59-11.52-12.38-16.52S32,132,32,128s4.92-9.15,9.69-14.11,9.75-10.17,12.38-16.52c2.52-6.1,2.63-13.07,2.73-19.82.1-7,.21-14.33,3.32-17.43S70.51,56.9,77.55,56.8c6.75-.1,13.72-.21,19.82-2.73,6.35-2.63,11.52-7.59,16.52-12.38S124,32,128,32s9.15,4.92,14.11,9.69,10.17,9.75,16.52,12.38c6.1,2.52,13.07,2.63,19.82,2.73,7,.1,14.33.21,17.43,3.32s3.22,10.39,3.32,17.43c.1,6.75.21,13.72,2.73,19.82,2.63,6.35,7.59,11.52,12.38,16.52S224,124,224,128,219.08,137.15,214.31,142.11ZM173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M223,105.58c-4-4.2-8.2-8.54-10-12.8-1.65-4-1.73-9.53-1.82-15.41-.14-9-.29-19.19-6.83-25.74s-16.74-6.69-25.74-6.83c-5.88-.09-11.43-.17-15.41-1.82-4.26-1.76-8.6-5.93-12.8-9.95-6.68-6.41-13.59-13-22.42-13s-15.74,6.62-22.42,13c-4.2,4-8.54,8.2-12.8,10-4,1.65-9.53,1.73-15.41,1.82-9,.14-19.19.29-25.74,6.83S44.94,68.37,44.8,77.37c-.09,5.88-.17,11.43-1.82,15.41-1.76,4.26-5.93,8.6-9.95,12.8-6.41,6.68-13,13.59-13,22.42s6.62,15.74,13,22.42c4,4.2,8.2,8.54,10,12.8,1.65,4,1.73,9.53,1.82,15.41.14,9,.29,19.19,6.83,25.74s16.74,6.69,25.74,6.83c5.88.09,11.43.17,15.41,1.82,4.26,1.76,8.6,5.93,12.8,9.95,6.68,6.41,13.59,13,22.42,13s15.74-6.62,22.42-13c4.2-4,8.54-8.2,12.8-10,4-1.65,9.53-1.73,15.41-1.82,9-.14,19.19-.29,25.74-6.83s6.69-16.74,6.83-25.74c.09-5.88.17-11.43,1.82-15.41,1.76-4.26,5.93-8.6,9.95-12.8,6.41-6.68,13-13.59,13-22.42S229.38,112.26,223,105.58Zm-5.78,39.3c-4.54,4.73-9.24,9.63-11.57,15.28-2.23,5.39-2.33,12-2.43,18.35-.12,8.2-.24,16-4.49,20.2s-12,4.37-20.2,4.49c-6.37.1-13,.2-18.35,2.43-5.65,2.33-10.55,7-15.28,11.57C139.09,222.75,133.62,228,128,228s-11.09-5.25-16.88-10.8c-4.73-4.54-9.63-9.24-15.28-11.57-5.39-2.23-12-2.33-18.35-2.43-8.2-.12-15.95-.24-20.2-4.49s-4.37-12-4.49-20.2c-.1-6.37-.2-13-2.43-18.35-2.33-5.65-7-10.55-11.57-15.28C33.25,139.09,28,133.62,28,128s5.25-11.09,10.8-16.88c4.54-4.73,9.24-9.63,11.57-15.28,2.23-5.39,2.33-12,2.43-18.35.12-8.2.24-15.95,4.49-20.2s12-4.37,20.2-4.49c6.37-.1,13-.2,18.35-2.43,5.65-2.33,10.55-7,15.28-11.57C116.91,33.25,122.38,28,128,28s11.09,5.25,16.88,10.8c4.73,4.54,9.63,9.24,15.28,11.57,5.39,2.23,12,2.33,18.35,2.43,8.2.12,16,.24,20.2,4.49s4.37,12,4.49,20.2c.1,6.37.2,13,2.43,18.35,2.33,5.65,7,10.55,11.57,15.28,5.55,5.79,10.8,11.26,10.8,16.88S222.75,139.09,217.2,144.88Zm-46.37-43.71a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17Z"}))]]),TD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,104H72v20H44ZM72,60V80H44V60ZM44,148H72v48H44Zm168,48H96V60H212Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M88,48V208H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"}),p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,152H56a8,8,0,0,0,0-16H40V120H56a8,8,0,0,0,0-16H40V88H56a8,8,0,0,0,0-16H40V56H80V200H40Zm176,48H96V56H216V200Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM64,152H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16ZM216,200H88V56H216V200Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM38,200V150H56a6,6,0,0,0,0-12H38V118H56a6,6,0,0,0,0-12H38V86H56a6,6,0,0,0,0-12H38V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,152H56a8,8,0,0,0,0-16H40V120H56a8,8,0,0,0,0-16H40V88H56a8,8,0,0,0,0-16H40V56H80V200H40Zm176,48H96V56H216V200Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM36,200V148H56a4,4,0,0,0,0-8H36V116H56a4,4,0,0,0,0-8H36V84H56a4,4,0,0,0,0-8H36V56a4,4,0,0,1,4-4H84V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H92V52H216a4,4,0,0,1,4,4Z"}))]]),AD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm56.49-92.49a12,12,0,0,1-17,17L162,131l-5.51,5.52a12,12,0,0,1-17-17L145,114l-5.52-5.51a12,12,0,0,1,17-17L162,97l5.51-5.52a12,12,0,0,1,17,17L179,114Zm-68,17a12,12,0,0,1-17,0L94,131l-5.51,5.52a12,12,0,0,1-17-17L77,114l-5.52-5.51a12,12,0,0,1,17-17L94,97l5.51-5.52a12,12,0,0,1,17,17L111,114l5.52,5.51A12,12,0,0,1,116.49,136.49ZM144,180a16,16,0,1,1-16-16A16,16,0,0,1,144,180Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm61.66-93.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Zm-80-20.68L99.31,112l10.35,10.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32ZM140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.13,104.13,0,0,0,128,24Zm-18.34,98.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32L99.31,112ZM128,192a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm61.66-69.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm60.24-117.76L176.49,112l11.75,11.76a6,6,0,1,1-8.48,8.48L168,120.49l-11.76,11.75a6,6,0,0,1-8.48-8.48L159.51,112l-11.75-11.76a6,6,0,0,1,8.48-8.48L168,103.51l11.76-11.75a6,6,0,0,1,8.48,8.48Zm-80,0L96.49,112l11.75,11.76a6,6,0,1,1-8.48,8.48L88,120.49,76.24,132.24a6,6,0,0,1-8.48-8.48L79.51,112,67.76,100.24a6,6,0,0,1,8.48-8.48L88,103.51,99.76,91.76a6,6,0,0,1,8.48,8.48ZM138,180a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm61.66-93.66a8,8,0,0,1-11.32,11.32L168,123.31l-10.34,10.35a8,8,0,0,1-11.32-11.32L156.69,112l-10.35-10.34a8,8,0,0,1,11.32-11.32L168,100.69l10.34-10.35a8,8,0,0,1,11.32,11.32L179.31,112Zm-80-20.68L99.31,112l10.35,10.34a8,8,0,0,1-11.32,11.32L88,123.31,77.66,133.66a8,8,0,0,1-11.32-11.32L76.69,112,66.34,101.66A8,8,0,0,1,77.66,90.34L88,100.69,98.34,90.34a8,8,0,0,1,11.32,11.32ZM140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220ZM186.83,98.83,173.66,112l13.17,13.17a4,4,0,0,1-5.66,5.66L168,117.66l-13.17,13.17a4,4,0,0,1-5.66-5.66L162.34,112,149.17,98.83a4,4,0,0,1,5.66-5.66L168,106.34l13.17-13.17a4,4,0,1,1,5.66,5.66Zm-80,0L93.66,112l13.17,13.17a4,4,0,0,1-5.66,5.66L88,117.66,74.83,130.83a4,4,0,0,1-5.66-5.66L82.34,112,69.17,98.83a4,4,0,0,1,5.66-5.66L88,106.34l13.17-13.17a4,4,0,0,1,5.66,5.66ZM136,180a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"}))]]),SD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm84,84H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),p.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm90,90H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm92,92H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"}))]]),wD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M120,137,48,201A12,12,0,1,1,32,183l61.91-55L32,73A12,12,0,1,1,48,55l72,64A12,12,0,0,1,120,137Zm96,43H120a12,12,0,0,0,0,24h96a12,12,0,0,0,0-24Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,80V192H40V64H200A16,16,0,0,1,216,80Z",opacity:"0.2"}),p.createElement("path",{d:"M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM77.66,173.66a8,8,0,0,1-11.32-11.32L100.69,128,66.34,93.66A8,8,0,0,1,77.66,82.34l40,40a8,8,0,0,1,0,11.32ZM192,176H128a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M116,132.48l-72,64a6,6,0,0,1-8-9L103,128,36,68.49a6,6,0,0,1,8-9l72,64a6,6,0,0,1,0,9ZM216,186H120a6,6,0,0,0,0,12h96a6,6,0,0,0,0-12Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M117.31,134l-72,64a8,8,0,1,1-10.63-12L100,128,34.69,70A8,8,0,1,1,45.32,58l72,64a8,8,0,0,1,0,12ZM216,184H120a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M116,128a4,4,0,0,1-1.34,3l-72,64a4,4,0,1,1-5.32-6L106,128,37.34,67a4,4,0,0,1,5.32-6l72,64A4,4,0,0,1,116,128Zm100,60H120a4,4,0,0,0,0,8h96a4,4,0,0,0,0-8Z"}))]]),CD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M212,56V88a12,12,0,0,1-24,0V68H140V188h20a12,12,0,0,1,0,24H96a12,12,0,0,1,0-24h20V68H68V88a12,12,0,0,1-24,0V56A12,12,0,0,1,56,44H200A12,12,0,0,1,212,56Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,56V184a16,16,0,0,1-16,16H72a16,16,0,0,1-16-16V56Z",opacity:"0.2"}),p.createElement("path",{d:"M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,96a8,8,0,0,1-16,0V88H136v88h12a8,8,0,0,1,0,16H108a8,8,0,0,1,0-16h12V88H88v8a8,8,0,0,1-16,0V80a8,8,0,0,1,8-8h96a8,8,0,0,1,8,8Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M206,56V88a6,6,0,0,1-12,0V62H134V194h26a6,6,0,0,1,0,12H96a6,6,0,0,1,0-12h26V62H62V88a6,6,0,0,1-12,0V56a6,6,0,0,1,6-6H200A6,6,0,0,1,206,56Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,56V88a8,8,0,0,1-16,0V64H136V192h24a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16h24V64H64V88a8,8,0,0,1-16,0V56a8,8,0,0,1,8-8H200A8,8,0,0,1,208,56Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204,56V88a4,4,0,0,1-8,0V60H132V196h28a4,4,0,0,1,0,8H96a4,4,0,0,1,0-8h28V60H60V88a4,4,0,0,1-8,0V56a4,4,0,0,1,4-4H200A4,4,0,0,1,204,56Z"}))]]),RD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H180V56a28,28,0,0,0-28-28H104A28,28,0,0,0,76,56v8H32A20,20,0,0,0,12,84V192a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V84A20,20,0,0,0,224,64ZM100,56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4v8H100ZM220,88v32H196v-4a12,12,0,0,0-24,0v4H84v-4a12,12,0,0,0-24,0v4H36V88ZM36,188V144H60v4a12,12,0,0,0,24,0v-4h88v4a12,12,0,0,0,24,0v-4h24v44Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M232,120v72a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V120Z",opacity:"0.2"}),p.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64ZM96,56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM32,80H224v32H192v-8a8,8,0,0,0-16,0v8H80v-8a8,8,0,0,0-16,0v8H32ZM224,192H32V128H64v8a8,8,0,0,0,16,0v-8h96v8a8,8,0,0,0,16,0v-8h32v64Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80v28a4,4,0,0,0,4,4H64V96.27A8.17,8.17,0,0,1,71.47,88,8,8,0,0,1,80,96v16h96V96.27A8.17,8.17,0,0,1,183.47,88,8,8,0,0,1,192,96v16h44a4,4,0,0,0,4-4V80A16,16,0,0,0,224,64Zm-64,0H96V56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Zm80,68v60a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V132a4,4,0,0,1,4-4H64v16a8,8,0,0,0,8.53,8A8.17,8.17,0,0,0,80,143.73V128h96v16a8,8,0,0,0,8.53,8,8.17,8.17,0,0,0,7.47-8.25V128h44A4,4,0,0,1,240,132Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,66H174V56a22,22,0,0,0-22-22H104A22,22,0,0,0,82,56V66H32A14,14,0,0,0,18,80V192a14,14,0,0,0,14,14H224a14,14,0,0,0,14-14V80A14,14,0,0,0,224,66ZM94,56a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V66H94ZM32,78H224a2,2,0,0,1,2,2v34H190V104a6,6,0,0,0-12,0v10H78V104a6,6,0,0,0-12,0v10H30V80A2,2,0,0,1,32,78ZM224,194H32a2,2,0,0,1-2-2V126H66v10a6,6,0,0,0,12,0V126H178v10a6,6,0,0,0,12,0V126h36v66A2,2,0,0,1,224,194Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,64H176V56a24,24,0,0,0-24-24H104A24,24,0,0,0,80,56v8H32A16,16,0,0,0,16,80V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V80A16,16,0,0,0,224,64ZM96,56a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96ZM224,80v32H192v-8a8,8,0,0,0-16,0v8H80v-8a8,8,0,0,0-16,0v8H32V80Zm0,112H32V128H64v8a8,8,0,0,0,16,0v-8h96v8a8,8,0,0,0,16,0v-8h32v64Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M224,68H172V56a20,20,0,0,0-20-20H104A20,20,0,0,0,84,56V68H32A12,12,0,0,0,20,80V192a12,12,0,0,0,12,12H224a12,12,0,0,0,12-12V80A12,12,0,0,0,224,68ZM92,56a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V68H92ZM32,76H224a4,4,0,0,1,4,4v36H188V104a4,4,0,0,0-8,0v12H76V104a4,4,0,0,0-8,0v12H28V80A4,4,0,0,1,32,76ZM224,196H32a4,4,0,0,1-4-4V124H68v12a4,4,0,0,0,8,0V124H180v12a4,4,0,0,0,8,0V124h40v68A4,4,0,0,1,224,196Z"}))]]),OD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z"}))]]),ND=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",opacity:"0.2"}),p.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z"}))]]),kD=new Map([["bold",p.createElement(p.Fragment,null,p.createElement("path",{d:"M218.12,209.56l-61-95.8,59.72-65.69a12,12,0,0,0-17.76-16.14L143.81,92.77,106.12,33.56A12,12,0,0,0,96,28H48A12,12,0,0,0,37.88,46.44l61,95.8L39.12,207.93a12,12,0,1,0,17.76,16.14l55.31-60.84,37.69,59.21A12,12,0,0,0,160,228h48a12,12,0,0,0,10.12-18.44ZM166.59,204,69.86,52H89.41l96.73,152Z"}))],["duotone",p.createElement(p.Fragment,null,p.createElement("path",{d:"M208,216H160L48,40H96Z",opacity:"0.2"}),p.createElement("path",{d:"M214.75,211.71l-62.6-98.38,61.77-67.95a8,8,0,0,0-11.84-10.76L143.24,99.34,102.75,35.71A8,8,0,0,0,96,32H48a8,8,0,0,0-6.75,12.3l62.6,98.37-61.77,68a8,8,0,1,0,11.84,10.76l58.84-64.72,40.49,63.63A8,8,0,0,0,160,224h48a8,8,0,0,0,6.75-12.29ZM164.39,208,62.57,48h29L193.43,208Z"}))],["fill",p.createElement(p.Fragment,null,p.createElement("path",{d:"M215,219.85a8,8,0,0,1-7,4.15H160a8,8,0,0,1-6.75-3.71l-40.49-63.63L53.92,221.38a8,8,0,0,1-11.84-10.76l61.77-68L41.25,44.3A8,8,0,0,1,48,32H96a8,8,0,0,1,6.75,3.71l40.49,63.63,58.84-64.72a8,8,0,0,1,11.84,10.76l-61.77,67.95,62.6,98.38A8,8,0,0,1,215,219.85Z"}))],["light",p.createElement(p.Fragment,null,p.createElement("path",{d:"M213.06,212.78l-63.42-99.66L212.44,44A6,6,0,1,0,203.56,36L143,102.62l-41.9-65.84A6,6,0,0,0,96,34H48a6,6,0,0,0-5.06,9.22l63.42,99.66L43.56,212A6,6,0,0,0,52.44,220L113,153.38l41.9,65.84A6,6,0,0,0,160,222h48a6,6,0,0,0,5.06-9.22ZM163.29,210,58.93,46H92.71L197.07,210Z"}))],["regular",p.createElement(p.Fragment,null,p.createElement("path",{d:"M214.75,211.71l-62.6-98.38,61.77-67.95a8,8,0,0,0-11.84-10.76L143.24,99.34,102.75,35.71A8,8,0,0,0,96,32H48a8,8,0,0,0-6.75,12.3l62.6,98.37-61.77,68a8,8,0,1,0,11.84,10.76l58.84-64.72,40.49,63.63A8,8,0,0,0,160,224h48a8,8,0,0,0,6.75-12.29ZM164.39,208,62.57,48h29L193.43,208Z"}))],["thin",p.createElement(p.Fragment,null,p.createElement("path",{d:"M211.37,213.85,147.13,112.9,211,42.69A4,4,0,0,0,205,37.31L142.68,105.9,99.38,37.85A4,4,0,0,0,96,36H48a4,4,0,0,0-3.37,6.15L108.87,143.1,45,213.31A4,4,0,1,0,51,218.69l62.36-68.59,43.3,68.05A4,4,0,0,0,160,220h48a4,4,0,0,0,3.37-6.15ZM162.2,212,55.29,44H93.8L200.71,212Z"}))]]),PD=p.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Mt=p.forwardRef((e,t)=>{const{alt:n,color:r,size:a,weight:i,mirrored:l,children:u,weights:d,...h}=e,{color:g="currentColor",size:m,weight:E="regular",mirrored:b=!1,...T}=p.useContext(PD);return p.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:a??m,height:a??m,fill:r??g,viewBox:"0 0 256 256",transform:l||b?"scale(-1, 1)":void 0,...T,...h},!!n&&p.createElement("title",null,n),u,d.get(i??E))});Mt.displayName="IconBase";const qT=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:KP}));qT.displayName="ArrowLeftIcon";const M6=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:XP}));M6.displayName="ArrowRightIcon";const $T=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:WP}));$T.displayName="ArrowSquareOutIcon";const QT=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:JP}));QT.displayName="ArrowUpRightIcon";const YT=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:eD}));YT.displayName="AsteriskIcon";const GT=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:tD}));GT.displayName="BookOpenIcon";const I6=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:nD}));I6.displayName="BookOpenTextIcon";const KT=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:rD}));KT.displayName="BugIcon";const B1=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:aD}));B1.displayName="CaretRightIcon";const XT=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:sD}));XT.displayName="CaretUpDownIcon";const WT=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:iD}));WT.displayName="ChatCircleDotsIcon";const JT=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:oD}));JT.displayName="CheckCircleIcon";const j6=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:lD}));j6.displayName="CircleIcon";const eA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:uD}));eA.displayName="CircleNotchIcon";const tA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:cD}));tA.displayName="CopyIcon";const nA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:dD}));nA.displayName="DiscordLogoIcon";const j0=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:fD}));j0.displayName="DotsThreeOutlineVerticalIcon";const rA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:hD}));rA.displayName="GearIcon";const H6=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:mD}));H6.displayName="GithubLogoIcon";const aA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:pD}));aA.displayName="GlobeIcon";const F6=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:gD}));F6.displayName="HardDriveIcon";const sA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:vD}));sA.displayName="LinkIcon";const iA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:yD}));iA.displayName="ListMagnifyingGlassIcon";const oA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:bD}));oA.displayName="NewspaperClippingIcon";const lA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:ED}));lA.displayName="PlugsIcon";const U6=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:xD}));U6.displayName="PlusIcon";const B6=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:_D}));B6.displayName="SealCheckIcon";const uA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:TD}));uA.displayName="SidebarIcon";const cA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:AD}));cA.displayName="SmileyXEyesIcon";const dA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:SD}));dA.displayName="SpinnerGapIcon";const fA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:wD}));fA.displayName="TerminalIcon";const hA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:CD}));hA.displayName="TextTIcon";const mA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:RD}));mA.displayName="ToolboxIcon";const V1=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:OD}));V1.displayName="TrashIcon";const z1=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:ND}));z1.displayName="XIcon";const pA=p.forwardRef((e,t)=>p.createElement(Mt,{ref:t,...e,weights:kD}));pA.displayName="XLogoIcon";function zE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Z1(...e){return t=>{let n=!1;const r=e.map(a=>{const i=zE(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():zE(e[a],null)}}}}function xn(...e){return p.useCallback(Z1(...e),e)}function Vo(e){const t=DD(e),n=p.forwardRef((r,a)=>{const{children:i,...l}=r,u=p.Children.toArray(i),d=u.find(MD);if(d){const h=d.props.children,g=u.map(m=>m===d?p.Children.count(h)>1?p.Children.only(null):p.isValidElement(h)?h.props.children:null:m);return v.jsx(t,{...l,ref:a,children:p.isValidElement(h)?p.cloneElement(h,void 0,g):null})}return v.jsx(t,{...l,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var yr=Vo("Slot");function DD(e){const t=p.forwardRef((n,r)=>{const{children:a,...i}=n;if(p.isValidElement(a)){const l=jD(a),u=ID(i,a.props);return a.type!==p.Fragment&&(u.ref=r?Z1(r,l):l),p.cloneElement(a,u)}return p.Children.count(a)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gA=Symbol("radix.slottable");function LD(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=gA,t}function MD(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gA}function ID(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...u)=>{const d=i(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function jD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function vA(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=vA(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function yA(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=vA(e))&&(r&&(r+=" "),r+=t);return r}const ZE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,qE=yA,H0=(e,t)=>n=>{var r;if(t?.variants==null)return qE(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,l=Object.keys(a).map(h=>{const g=n?.[h],m=i?.[h];if(g===null)return null;const E=ZE(g)||ZE(m);return a[h][E]}),u=n&&Object.entries(n).reduce((h,g)=>{let[m,E]=g;return E===void 0||(h[m]=E),h},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,g)=>{let{class:m,className:E,...b}=g;return Object.entries(b).every(T=>{let[A,S]=T;return Array.isArray(S)?S.includes({...i,...u}[A]):{...i,...u}[A]===S})?[...h,m,E]:h},[]);return qE(e,l,d,n?.class,n?.className)},V6="-",HD=e=>{const t=UD(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(V6);return u[0]===""&&u.length!==1&&u.shift(),bA(u,t)||FD(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},bA=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?bA(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(V6);return t.validators.find(({validator:l})=>l(i))?.classGroupId},$E=/^\[(.+)\]$/,FD=e=>{if($E.test(e)){const t=$E.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},UD=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)n8(n[a],r,a,t);return r},n8=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:QE(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(BD(a)){n8(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,l])=>{n8(l,QE(t,i),n,r)})})},QE=(e,t)=>{let n=e;return t.split(V6).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},BD=e=>e.isThemeGetter,VD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,l)=>{n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return a(i,l),l},set(i,l){n.has(i)?n.set(i,l):a(i,l)}}},r8="!",a8=":",zD=a8.length,ZD=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let l=0,u=0,d=0,h;for(let T=0;T<a.length;T++){let A=a[T];if(l===0&&u===0){if(A===a8){i.push(a.slice(d,T)),d=T+zD;continue}if(A==="/"){h=T;continue}}A==="["?l++:A==="]"?l--:A==="("?u++:A===")"&&u--}const g=i.length===0?a:a.substring(d),m=qD(g),E=m!==g,b=h&&h>d?h-d:void 0;return{modifiers:i,hasImportantModifier:E,baseClassName:m,maybePostfixModifierPosition:b}};if(t){const a=t+a8,i=r;r=l=>l.startsWith(a)?i(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},qD=e=>e.endsWith(r8)?e.substring(0,e.length-1):e.startsWith(r8)?e.substring(1):e,$D=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let i=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...i.sort(),l),i=[]):i.push(l)}),a.push(...i.sort()),a}},QD=e=>({cache:VD(e.cacheSize),parseClassName:ZD(e),sortModifiers:$D(e),...HD(e)}),YD=/\s+/,GD=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,l=[],u=e.trim().split(YD);let d="";for(let h=u.length-1;h>=0;h-=1){const g=u[h],{isExternal:m,modifiers:E,hasImportantModifier:b,baseClassName:T,maybePostfixModifierPosition:A}=n(g);if(m){d=g+(d.length>0?" "+d:d);continue}let S=!!A,w=r(S?T.substring(0,A):T);if(!w){if(!S){d=g+(d.length>0?" "+d:d);continue}if(w=r(T),!w){d=g+(d.length>0?" "+d:d);continue}S=!1}const R=i(E).join(":"),P=b?R+r8:R,M=P+w;if(l.includes(M))continue;l.push(M);const I=a(w,S);for(let N=0;N<I.length;++N){const L=I[N];l.push(P+L)}d=g+(d.length>0?" "+d:d)}return d};function KD(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=EA(t))&&(r&&(r+=" "),r+=n);return r}const EA=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=EA(e[r]))&&(n&&(n+=" "),n+=t);return n};function XD(e,...t){let n,r,a,i=l;function l(d){const h=t.reduce((g,m)=>m(g),e());return n=QD(h),r=n.cache.get,a=n.cache.set,i=u,u(d)}function u(d){const h=r(d);if(h)return h;const g=GD(d,n);return a(d,g),g}return function(){return i(KD.apply(null,arguments))}}const nr=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},xA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_A=/^\((?:(\w[\w-]*):)?(.+)\)$/i,WD=/^\d+\/\d+$/,JD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eL=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tL=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nL=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rL=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$l=e=>WD.test(e),Rt=e=>!!e&&!Number.isNaN(Number(e)),Vi=e=>!!e&&Number.isInteger(Number(e)),r2=e=>e.endsWith("%")&&Rt(e.slice(0,-1)),Gs=e=>JD.test(e),aL=()=>!0,sL=e=>eL.test(e)&&!tL.test(e),TA=()=>!1,iL=e=>nL.test(e),oL=e=>rL.test(e),lL=e=>!Ke(e)&&!Xe(e),uL=e=>Ru(e,wA,TA),Ke=e=>xA.test(e),Mo=e=>Ru(e,CA,sL),a2=e=>Ru(e,mL,Rt),YE=e=>Ru(e,AA,TA),cL=e=>Ru(e,SA,oL),yf=e=>Ru(e,RA,iL),Xe=e=>_A.test(e),Bc=e=>Ou(e,CA),dL=e=>Ou(e,pL),GE=e=>Ou(e,AA),fL=e=>Ou(e,wA),hL=e=>Ou(e,SA),bf=e=>Ou(e,RA,!0),Ru=(e,t,n)=>{const r=xA.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ou=(e,t,n=!1)=>{const r=_A.exec(e);return r?r[1]?t(r[1]):n:!1},AA=e=>e==="position"||e==="percentage",SA=e=>e==="image"||e==="url",wA=e=>e==="length"||e==="size"||e==="bg-size",CA=e=>e==="length",mL=e=>e==="number",pL=e=>e==="family-name",RA=e=>e==="shadow",gL=()=>{const e=nr("color"),t=nr("font"),n=nr("text"),r=nr("font-weight"),a=nr("tracking"),i=nr("leading"),l=nr("breakpoint"),u=nr("container"),d=nr("spacing"),h=nr("radius"),g=nr("shadow"),m=nr("inset-shadow"),E=nr("text-shadow"),b=nr("drop-shadow"),T=nr("blur"),A=nr("perspective"),S=nr("aspect"),w=nr("ease"),R=nr("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...M(),Xe,Ke],N=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],D=()=>[Xe,Ke,d],B=()=>[$l,"full","auto",...D()],k=()=>[Vi,"none","subgrid",Xe,Ke],U=()=>["auto",{span:["full",Vi,Xe,Ke]},Vi,Xe,Ke],F=()=>[Vi,"auto",Xe,Ke],Q=()=>["auto","min","max","fr",Xe,Ke],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...D()],J=()=>[$l,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],X=()=>[e,Xe,Ke],se=()=>[...M(),GE,YE,{position:[Xe,Ke]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],oe=()=>["auto","cover","contain",fL,uL,{size:[Xe,Ke]}],ge=()=>[r2,Bc,Mo],j=()=>["","none","full",h,Xe,Ke],Ee=()=>["",Rt,Bc,Mo],ke=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[Rt,r2,GE,YE],Te=()=>["","none",T,Xe,Ke],Ze=()=>["none",Rt,Xe,Ke],Ae=()=>["none",Rt,Xe,Ke],Oe=()=>[Rt,Xe,Ke],et=()=>[$l,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gs],breakpoint:[Gs],color:[aL],container:[Gs],"drop-shadow":[Gs],ease:["in","out","in-out"],font:[lL],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gs],shadow:[Gs],spacing:["px",Rt],text:[Gs],"text-shadow":[Gs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$l,Ke,Xe,S]}],container:["container"],columns:[{columns:[Rt,Ke,Xe,u]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:B()}],"inset-x":[{"inset-x":B()}],"inset-y":[{"inset-y":B()}],start:[{start:B()}],end:[{end:B()}],top:[{top:B()}],right:[{right:B()}],bottom:[{bottom:B()}],left:[{left:B()}],visibility:["visible","invisible","collapse"],z:[{z:[Vi,"auto",Xe,Ke]}],basis:[{basis:[$l,"full","auto",u,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Rt,$l,"auto","initial","none",Ke]}],grow:[{grow:["",Rt,Xe,Ke]}],shrink:[{shrink:["",Rt,Xe,Ke]}],order:[{order:[Vi,"first","last","none",Xe,Ke]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[u,"screen",...J()]}],"min-w":[{"min-w":[u,"screen","none",...J()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,Bc,Mo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Xe,a2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",r2,Ke]}],"font-family":[{font:[dL,Ke,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Xe,Ke]}],"line-clamp":[{"line-clamp":[Rt,"none",Xe,a2]}],leading:[{leading:[i,...D()]}],"list-image":[{"list-image":["none",Xe,Ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Xe,Ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[Rt,"from-font","auto",Xe,Mo]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[Rt,"auto",Xe,Ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Xe,Ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Xe,Ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vi,Xe,Ke],radial:["",Xe,Ke],conic:[Vi,Xe,Ke]},hL,cL]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:Ee()}],"border-w-x":[{"border-x":Ee()}],"border-w-y":[{"border-y":Ee()}],"border-w-s":[{"border-s":Ee()}],"border-w-e":[{"border-e":Ee()}],"border-w-t":[{"border-t":Ee()}],"border-w-r":[{"border-r":Ee()}],"border-w-b":[{"border-b":Ee()}],"border-w-l":[{"border-l":Ee()}],"divide-x":[{"divide-x":Ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Rt,Xe,Ke]}],"outline-w":[{outline:["",Rt,Bc,Mo]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",g,bf,yf]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",m,bf,yf]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[Rt,Mo]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":Ee()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",E,bf,yf]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[Rt,Xe,Ke]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[Xe,Ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Xe,Ke]}],filter:[{filter:["","none",Xe,Ke]}],blur:[{blur:Te()}],brightness:[{brightness:[Rt,Xe,Ke]}],contrast:[{contrast:[Rt,Xe,Ke]}],"drop-shadow":[{"drop-shadow":["","none",b,bf,yf]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",Rt,Xe,Ke]}],"hue-rotate":[{"hue-rotate":[Rt,Xe,Ke]}],invert:[{invert:["",Rt,Xe,Ke]}],saturate:[{saturate:[Rt,Xe,Ke]}],sepia:[{sepia:["",Rt,Xe,Ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Xe,Ke]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Rt,Xe,Ke]}],"backdrop-contrast":[{"backdrop-contrast":[Rt,Xe,Ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Rt,Xe,Ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Rt,Xe,Ke]}],"backdrop-invert":[{"backdrop-invert":["",Rt,Xe,Ke]}],"backdrop-opacity":[{"backdrop-opacity":[Rt,Xe,Ke]}],"backdrop-saturate":[{"backdrop-saturate":[Rt,Xe,Ke]}],"backdrop-sepia":[{"backdrop-sepia":["",Rt,Xe,Ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Xe,Ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Rt,"initial",Xe,Ke]}],ease:[{ease:["linear","initial",w,Xe,Ke]}],delay:[{delay:[Rt,Xe,Ke]}],animate:[{animate:["none",R,Xe,Ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Xe,Ke]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[Xe,Ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Xe,Ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Xe,Ke]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[Rt,Bc,Mo,a2]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},vL=XD(gL);function De(...e){return vL(yA(e))}const OA=H0(["inline-flex shrink-0 cursor-pointer items-center justify-center gap-x-2 whitespace-nowrap duration-200 will-change-auto","select-none font-medium font-sans tracking-[0.01em] outline-none","[&_svg]:pointer-events-none [&_svg]:size-3.5 [&_svg]:shrink-0","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"bg-fg text-surface hover:bg-fg/80 active:bg-fg/90",secondary:"bg-accent text-fg transition-opacity hover:opacity-50",inverse:"bg-surface text-fg hover:bg-surface/50",ghost:"bg-transparent text-fg-subtle transition-colors hover:bg-accent hover:text-fg focus-visible:bg-accent focus-visible:text-fg"},size:{sm:"h-6 rounded-md px-2.5 pb-0.25 text-[13px]",default:"h-7 rounded-md px-2.5 pb-0.25 text-xs",lg:"h-10 rounded-lg px-4 pb-0.25 text-base",icon:"size-6 rounded-md [&_svg]:size-5"}},defaultVariants:{variant:"default",size:"default"}});function on({className:e,variant:t,size:n,asChild:r=!1,...a}){const i=r?yr:"button";return v.jsx(i,{className:De(OA({variant:t,size:n,className:e})),...a})}function ut(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function yL(e,t){const n=p.createContext(t),r=i=>{const{children:l,...u}=i,d=p.useMemo(()=>u,Object.values(u));return v.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function a(i){const l=p.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,a]}function Qr(e,t=[]){let n=[];function r(i,l){const u=p.createContext(l),d=n.length;n=[...n,l];const h=m=>{const{scope:E,children:b,...T}=m,A=E?.[e]?.[d]||u,S=p.useMemo(()=>T,Object.values(T));return v.jsx(A.Provider,{value:S,children:b})};h.displayName=i+"Provider";function g(m,E){const b=E?.[e]?.[d]||u,T=p.useContext(b);if(T)return T;if(l!==void 0)return l;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[h,g]}const a=()=>{const i=n.map(l=>p.createContext(l));return function(u){const d=u?.[e]||i;return p.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,bL(a,...t)]}function bL(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const l=r.reduce((u,{useScope:d,scopeName:h})=>{const m=d(i)[`__scope${h}`];return{...u,...m}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Ra=globalThis?.document?p.useLayoutEffect:()=>{},EL=L6[" useInsertionEffect ".trim().toString()]||Ra;function Oa({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,l]=xL({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const g=p.useRef(e!==void 0);p.useEffect(()=>{const m=g.current;m!==u&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${u?"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.`),g.current=u},[u,r])}const h=p.useCallback(g=>{if(u){const m=_L(g)?g(e):g;m!==e&&l.current?.(m)}else i(g)},[u,e,i,l]);return[d,h]}function xL({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),a=p.useRef(n),i=p.useRef(t);return EL(()=>{i.current=t},[t]),p.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}function _L(e){return typeof e=="function"}var s2={exports:{}},_r={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var KE;function TL(){if(KE)return _r;KE=1;var e=U1();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={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},a=Symbol.for("react.portal");function i(d,h,g){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:d,containerInfo:h,implementation:g}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return _r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,_r.createPortal=function(d,h){var g=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 i(d,h,null,g)},_r.flushSync=function(d){var h=l.T,g=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=h,r.p=g,r.d.f()}},_r.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(d,h))},_r.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},_r.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var g=h.as,m=u(g,h.crossOrigin),E=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?r.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:m,integrity:E,fetchPriority:b}):g==="script"&&r.d.X(d,{crossOrigin:m,integrity:E,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},_r.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=u(h.as,h.crossOrigin);r.d.M(d,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(d)},_r.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,m=u(g,h.crossOrigin);r.d.L(d,g,{crossOrigin:m,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})}},_r.preloadModule=function(d,h){if(typeof d=="string")if(h){var g=u(h.as,h.crossOrigin);r.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(d)},_r.requestFormReset=function(d){r.d.r(d)},_r.unstable_batchedUpdates=function(d,h){return d(h)},_r.useFormState=function(d,h,g){return l.H.useFormState(d,h,g)},_r.useFormStatus=function(){return l.H.useHostTransitionStatus()},_r.version="19.1.0",_r}var XE;function NA(){if(XE)return s2.exports;XE=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(),s2.exports=TL(),s2.exports}var z6=NA();const kA=Cu(z6);var AL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xt=AL.reduce((e,t)=>{const n=Vo(`Primitive.${t}`),r=p.forwardRef((a,i)=>{const{asChild:l,...u}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(d,{...u,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function PA(e,t){e&&z6.flushSync(()=>e.dispatchEvent(t))}function Z6(e){const t=e+"CollectionProvider",[n,r]=Qr(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=A=>{const{scope:S,children:w}=A,R=me.useRef(null),P=me.useRef(new Map).current;return v.jsx(a,{scope:S,itemMap:P,collectionRef:R,children:w})};l.displayName=t;const u=e+"CollectionSlot",d=Vo(u),h=me.forwardRef((A,S)=>{const{scope:w,children:R}=A,P=i(u,w),M=xn(S,P.collectionRef);return v.jsx(d,{ref:M,children:R})});h.displayName=u;const g=e+"CollectionItemSlot",m="data-radix-collection-item",E=Vo(g),b=me.forwardRef((A,S)=>{const{scope:w,children:R,...P}=A,M=me.useRef(null),I=xn(S,M),N=i(g,w);return me.useEffect(()=>(N.itemMap.set(M,{ref:M,...P}),()=>void N.itemMap.delete(M))),v.jsx(E,{[m]:"",ref:I,children:R})});b.displayName=g;function T(A){const S=i(e+"CollectionConsumer",A);return me.useCallback(()=>{const R=S.collectionRef.current;if(!R)return[];const P=Array.from(R.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((N,L)=>P.indexOf(N.ref.current)-P.indexOf(L.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:h,ItemSlot:b},T,r]}var SL=p.createContext(void 0);function F0(e){const t=p.useContext(SL);return e||t||"ltr"}function Ts(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>t.current?.(...n),[])}function wL(e,t=globalThis?.document){const n=Ts(e);p.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var CL="DismissableLayer",s8="dismissableLayer.update",RL="dismissableLayer.pointerDownOutside",OL="dismissableLayer.focusOutside",WE,DA=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),q1=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...d}=e,h=p.useContext(DA),[g,m]=p.useState(null),E=g?.ownerDocument??globalThis?.document,[,b]=p.useState({}),T=xn(t,L=>m(L)),A=Array.from(h.layers),[S]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),w=A.indexOf(S),R=g?A.indexOf(g):-1,P=h.layersWithOutsidePointerEventsDisabled.size>0,M=R>=w,I=PL(L=>{const D=L.target,B=[...h.branches].some(k=>k.contains(D));!M||B||(a?.(L),l?.(L),L.defaultPrevented||u?.())},E),N=DL(L=>{const D=L.target;[...h.branches].some(k=>k.contains(D))||(i?.(L),l?.(L),L.defaultPrevented||u?.())},E);return wL(L=>{R===h.layers.size-1&&(r?.(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))},E),p.useEffect(()=>{if(g)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(WE=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),JE(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=WE)}},[g,E,n,h]),p.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),JE())},[g,h]),p.useEffect(()=>{const L=()=>b({});return document.addEventListener(s8,L),()=>document.removeEventListener(s8,L)},[]),v.jsx(xt.div,{...d,ref:T,style:{pointerEvents:P?M?"auto":"none":void 0,...e.style},onFocusCapture:ut(e.onFocusCapture,N.onFocusCapture),onBlurCapture:ut(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:ut(e.onPointerDownCapture,I.onPointerDownCapture)})});q1.displayName=CL;var NL="DismissableLayerBranch",kL=p.forwardRef((e,t)=>{const n=p.useContext(DA),r=p.useRef(null),a=xn(t,r);return p.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),v.jsx(xt.div,{...e,ref:a})});kL.displayName=NL;function PL(e,t=globalThis?.document){const n=Ts(e),r=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{const i=u=>{if(u.target&&!r.current){let d=function(){LA(RL,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function DL(e,t=globalThis?.document){const n=Ts(e),r=p.useRef(!1);return p.useEffect(()=>{const a=i=>{i.target&&!r.current&&LA(OL,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function JE(){const e=new CustomEvent(s8);document.dispatchEvent(e)}function LA(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?PA(a,i):a.dispatchEvent(i)}var i2=0;function q6(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ex()),document.body.insertAdjacentElement("beforeend",e[1]??ex()),i2++,()=>{i2===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),i2--}},[])}function ex(){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 o2="focusScope.autoFocusOnMount",l2="focusScope.autoFocusOnUnmount",tx={bubbles:!1,cancelable:!0},LL="FocusScope",$1=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...l}=e,[u,d]=p.useState(null),h=Ts(a),g=Ts(i),m=p.useRef(null),E=xn(t,A=>d(A)),b=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let A=function(P){if(b.paused||!u)return;const M=P.target;u.contains(M)?m.current=M:qi(m.current,{select:!0})},S=function(P){if(b.paused||!u)return;const M=P.relatedTarget;M!==null&&(u.contains(M)||qi(m.current,{select:!0}))},w=function(P){if(document.activeElement===document.body)for(const I of P)I.removedNodes.length>0&&qi(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",S);const R=new MutationObserver(w);return u&&R.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",S),R.disconnect()}}},[r,u,b.paused]),p.useEffect(()=>{if(u){rx.add(b);const A=document.activeElement;if(!u.contains(A)){const w=new CustomEvent(o2,tx);u.addEventListener(o2,h),u.dispatchEvent(w),w.defaultPrevented||(ML(UL(MA(u)),{select:!0}),document.activeElement===A&&qi(u))}return()=>{u.removeEventListener(o2,h),setTimeout(()=>{const w=new CustomEvent(l2,tx);u.addEventListener(l2,g),u.dispatchEvent(w),w.defaultPrevented||qi(A??document.body,{select:!0}),u.removeEventListener(l2,g),rx.remove(b)},0)}}},[u,h,g,b]);const T=p.useCallback(A=>{if(!n&&!r||b.paused)return;const S=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,w=document.activeElement;if(S&&w){const R=A.currentTarget,[P,M]=IL(R);P&&M?!A.shiftKey&&w===M?(A.preventDefault(),n&&qi(P,{select:!0})):A.shiftKey&&w===P&&(A.preventDefault(),n&&qi(M,{select:!0})):w===R&&A.preventDefault()}},[n,r,b.paused]);return v.jsx(xt.div,{tabIndex:-1,...l,ref:E,onKeyDown:T})});$1.displayName=LL;function ML(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qi(r,{select:t}),document.activeElement!==n)return}function IL(e){const t=MA(e),n=nx(t,e),r=nx(t.reverse(),e);return[n,r]}function MA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function nx(e,t){for(const n of e)if(!jL(n,{upTo:t}))return n}function jL(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 HL(e){return e instanceof HTMLInputElement&&"select"in e}function qi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&HL(e)&&t&&e.select()}}var rx=FL();function FL(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ax(e,t),e.unshift(t)},remove(t){e=ax(e,t),e[0]?.resume()}}}function ax(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function UL(e){return e.filter(t=>t.tagName!=="A")}var BL=L6[" useId ".trim().toString()]||(()=>{}),VL=0;function Es(e){const[t,n]=p.useState(BL());return Ra(()=>{n(r=>r??String(VL++))},[e]),e||(t?`radix-${t}`:"")}const zL=["top","right","bottom","left"],no=Math.min,ua=Math.max,Jf=Math.round,Ef=Math.floor,xs=e=>({x:e,y:e}),ZL={left:"right",right:"left",bottom:"top",top:"bottom"},qL={start:"end",end:"start"};function i8(e,t,n){return ua(e,no(t,n))}function oi(e,t){return typeof e=="function"?e(t):e}function li(e){return e.split("-")[0]}function Nu(e){return e.split("-")[1]}function $6(e){return e==="x"?"y":"x"}function Q6(e){return e==="y"?"height":"width"}const $L=new Set(["top","bottom"]);function ys(e){return $L.has(li(e))?"y":"x"}function Y6(e){return $6(ys(e))}function QL(e,t,n){n===void 0&&(n=!1);const r=Nu(e),a=Y6(e),i=Q6(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=e1(l)),[l,e1(l)]}function YL(e){const t=e1(e);return[o8(e),t,o8(t)]}function o8(e){return e.replace(/start|end/g,t=>qL[t])}const sx=["left","right"],ix=["right","left"],GL=["top","bottom"],KL=["bottom","top"];function XL(e,t,n){switch(e){case"top":case"bottom":return n?t?ix:sx:t?sx:ix;case"left":case"right":return t?GL:KL;default:return[]}}function WL(e,t,n,r){const a=Nu(e);let i=XL(li(e),n==="start",r);return a&&(i=i.map(l=>l+"-"+a),t&&(i=i.concat(i.map(o8)))),i}function e1(e){return e.replace(/left|right|bottom|top/g,t=>ZL[t])}function JL(e){return{top:0,right:0,bottom:0,left:0,...e}}function IA(e){return typeof e!="number"?JL(e):{top:e,right:e,bottom:e,left:e}}function t1(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function ox(e,t,n){let{reference:r,floating:a}=e;const i=ys(t),l=Y6(t),u=Q6(l),d=li(t),h=i==="y",g=r.x+r.width/2-a.width/2,m=r.y+r.height/2-a.height/2,E=r[u]/2-a[u]/2;let b;switch(d){case"top":b={x:g,y:r.y-a.height};break;case"bottom":b={x:g,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:m};break;case"left":b={x:r.x-a.width,y:m};break;default:b={x:r.x,y:r.y}}switch(Nu(t)){case"start":b[l]-=E*(n&&h?-1:1);break;case"end":b[l]+=E*(n&&h?-1:1);break}return b}const eM=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:g,y:m}=ox(h,r,d),E=r,b={},T=0;for(let A=0;A<u.length;A++){const{name:S,fn:w}=u[A],{x:R,y:P,data:M,reset:I}=await w({x:g,y:m,initialPlacement:r,placement:E,strategy:a,middlewareData:b,rects:h,platform:l,elements:{reference:e,floating:t}});g=R??g,m=P??m,b={...b,[S]:{...b[S],...M}},I&&T<=50&&(T++,typeof I=="object"&&(I.placement&&(E=I.placement),I.rects&&(h=I.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):I.rects),{x:g,y:m}=ox(h,E,d)),A=-1)}return{x:g,y:m,placement:E,strategy:a,middlewareData:b}};async function y0(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:l,elements:u,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:E=!1,padding:b=0}=oi(t,e),T=IA(b),S=u[E?m==="floating"?"reference":"floating":m],w=t1(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:h,rootBoundary:g,strategy:d})),R=m==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),M=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},I=t1(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:R,offsetParent:P,strategy:d}):R);return{top:(w.top-I.top+T.top)/M.y,bottom:(I.bottom-w.bottom+T.bottom)/M.y,left:(w.left-I.left+T.left)/M.x,right:(I.right-w.right+T.right)/M.x}}const tM=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:l,elements:u,middlewareData:d}=t,{element:h,padding:g=0}=oi(e,t)||{};if(h==null)return{};const m=IA(g),E={x:n,y:r},b=Y6(a),T=Q6(b),A=await l.getDimensions(h),S=b==="y",w=S?"top":"left",R=S?"bottom":"right",P=S?"clientHeight":"clientWidth",M=i.reference[T]+i.reference[b]-E[b]-i.floating[T],I=E[b]-i.reference[b],N=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let L=N?N[P]:0;(!L||!await(l.isElement==null?void 0:l.isElement(N)))&&(L=u.floating[P]||i.floating[T]);const D=M/2-I/2,B=L/2-A[T]/2-1,k=no(m[w],B),U=no(m[R],B),F=k,Q=L-A[T]-U,Y=L/2-A[T]/2+D,te=i8(F,Y,Q),V=!d.arrow&&Nu(a)!=null&&Y!==te&&i.reference[T]/2-(Y<F?k:U)-A[T]/2<0,J=V?Y<F?Y-F:Y-Q:0;return{[b]:E[b]+J,data:{[b]:te,centerOffset:Y-te-J,...V&&{alignmentOffset:J}},reset:V}}}),nM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:l,initialPlacement:u,platform:d,elements:h}=t,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:E,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:A=!0,...S}=oi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=li(a),R=ys(u),P=li(u)===u,M=await(d.isRTL==null?void 0:d.isRTL(h.floating)),I=E||(P||!A?[e1(u)]:YL(u)),N=T!=="none";!E&&N&&I.push(...WL(u,A,T,M));const L=[u,...I],D=await y0(t,S),B=[];let k=((r=i.flip)==null?void 0:r.overflows)||[];if(g&&B.push(D[w]),m){const Y=QL(a,l,M);B.push(D[Y[0]],D[Y[1]])}if(k=[...k,{placement:a,overflows:B}],!B.every(Y=>Y<=0)){var U,F;const Y=(((U=i.flip)==null?void 0:U.index)||0)+1,te=L[Y];if(te&&(!(m==="alignment"?R!==ys(te):!1)||k.every(X=>X.overflows[0]>0&&ys(X.placement)===R)))return{data:{index:Y,overflows:k},reset:{placement:te}};let V=(F=k.filter(J=>J.overflows[0]<=0).sort((J,X)=>J.overflows[1]-X.overflows[1])[0])==null?void 0:F.placement;if(!V)switch(b){case"bestFit":{var Q;const J=(Q=k.filter(X=>{if(N){const se=ys(X.placement);return se===R||se==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(se=>se>0).reduce((se,C)=>se+C,0)]).sort((X,se)=>X[1]-se[1])[0])==null?void 0:Q[0];J&&(V=J);break}case"initialPlacement":V=u;break}if(a!==V)return{reset:{placement:V}}}return{}}}};function lx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ux(e){return zL.some(t=>e[t]>=0)}const rM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=oi(e,t);switch(r){case"referenceHidden":{const i=await y0(t,{...a,elementContext:"reference"}),l=lx(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ux(l)}}}case"escaped":{const i=await y0(t,{...a,altBoundary:!0}),l=lx(i,n.floating);return{data:{escapedOffsets:l,escaped:ux(l)}}}default:return{}}}}},jA=new Set(["left","top"]);async function aM(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=li(n),u=Nu(n),d=ys(n)==="y",h=jA.has(l)?-1:1,g=i&&d?-1:1,m=oi(t,e);let{mainAxis:E,crossAxis:b,alignmentAxis:T}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return u&&typeof T=="number"&&(b=u==="end"?T*-1:T),d?{x:b*g,y:E*h}:{x:E*h,y:b*g}}const sM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:l,middlewareData:u}=t,d=await aM(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:i+d.y,data:{...d,placement:l}}}}},iM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:u={fn:S=>{let{x:w,y:R}=S;return{x:w,y:R}}},...d}=oi(e,t),h={x:n,y:r},g=await y0(t,d),m=ys(li(a)),E=$6(m);let b=h[E],T=h[m];if(i){const S=E==="y"?"top":"left",w=E==="y"?"bottom":"right",R=b+g[S],P=b-g[w];b=i8(R,b,P)}if(l){const S=m==="y"?"top":"left",w=m==="y"?"bottom":"right",R=T+g[S],P=T-g[w];T=i8(R,T,P)}const A=u.fn({...t,[E]:b,[m]:T});return{...A,data:{x:A.x-n,y:A.y-r,enabled:{[E]:i,[m]:l}}}}}},oM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:h=!0}=oi(e,t),g={x:n,y:r},m=ys(a),E=$6(m);let b=g[E],T=g[m];const A=oi(u,t),S=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const P=E==="y"?"height":"width",M=i.reference[E]-i.floating[P]+S.mainAxis,I=i.reference[E]+i.reference[P]-S.mainAxis;b<M?b=M:b>I&&(b=I)}if(h){var w,R;const P=E==="y"?"width":"height",M=jA.has(li(a)),I=i.reference[m]-i.floating[P]+(M&&((w=l.offset)==null?void 0:w[m])||0)+(M?0:S.crossAxis),N=i.reference[m]+i.reference[P]+(M?0:((R=l.offset)==null?void 0:R[m])||0)-(M?S.crossAxis:0);T<I?T=I:T>N&&(T=N)}return{[E]:b,[m]:T}}}},lM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:l,elements:u}=t,{apply:d=()=>{},...h}=oi(e,t),g=await y0(t,h),m=li(a),E=Nu(a),b=ys(a)==="y",{width:T,height:A}=i.floating;let S,w;m==="top"||m==="bottom"?(S=m,w=E===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(w=m,S=E==="end"?"top":"bottom");const R=A-g.top-g.bottom,P=T-g.left-g.right,M=no(A-g[S],R),I=no(T-g[w],P),N=!t.middlewareData.shift;let L=M,D=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=P),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=R),N&&!E){const k=ua(g.left,0),U=ua(g.right,0),F=ua(g.top,0),Q=ua(g.bottom,0);b?D=T-2*(k!==0||U!==0?k+U:ua(g.left,g.right)):L=A-2*(F!==0||Q!==0?F+Q:ua(g.top,g.bottom))}await d({...t,availableWidth:D,availableHeight:L});const B=await l.getDimensions(u.floating);return T!==B.width||A!==B.height?{reset:{rects:!0}}:{}}}};function Q1(){return typeof window<"u"}function ku(e){return HA(e)?(e.nodeName||"").toLowerCase():"#document"}function da(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ws(e){var t;return(t=(HA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function HA(e){return Q1()?e instanceof Node||e instanceof da(e).Node:!1}function Ya(e){return Q1()?e instanceof Element||e instanceof da(e).Element:!1}function As(e){return Q1()?e instanceof HTMLElement||e instanceof da(e).HTMLElement:!1}function cx(e){return!Q1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof da(e).ShadowRoot}const uM=new Set(["inline","contents"]);function U0(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Ga(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!uM.has(a)}const cM=new Set(["table","td","th"]);function dM(e){return cM.has(ku(e))}const fM=[":popover-open",":modal"];function Y1(e){return fM.some(t=>{try{return e.matches(t)}catch{return!1}})}const hM=["transform","translate","scale","rotate","perspective"],mM=["transform","translate","scale","rotate","perspective","filter"],pM=["paint","layout","strict","content"];function G6(e){const t=K6(),n=Ya(e)?Ga(e):e;return hM.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||mM.some(r=>(n.willChange||"").includes(r))||pM.some(r=>(n.contain||"").includes(r))}function gM(e){let t=ro(e);for(;As(t)&&!yu(t);){if(G6(t))return t;if(Y1(t))return null;t=ro(t)}return null}function K6(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vM=new Set(["html","body","#document"]);function yu(e){return vM.has(ku(e))}function Ga(e){return da(e).getComputedStyle(e)}function G1(e){return Ya(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ro(e){if(ku(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cx(e)&&e.host||ws(e);return cx(t)?t.host:t}function FA(e){const t=ro(e);return yu(t)?e.ownerDocument?e.ownerDocument.body:e.body:As(t)&&U0(t)?t:FA(t)}function b0(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=FA(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),l=da(a);if(i){const u=l8(l);return t.concat(l,l.visualViewport||[],U0(a)?a:[],u&&n?b0(u):[])}return t.concat(a,b0(a,[],n))}function l8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function UA(e){const t=Ga(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=As(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:r,u=Jf(n)!==i||Jf(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function X6(e){return Ya(e)?e:e.contextElement}function cu(e){const t=X6(e);if(!As(t))return xs(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=UA(t);let l=(i?Jf(n.width):n.width)/r,u=(i?Jf(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const yM=xs(0);function BA(e){const t=da(e);return!K6()||!t.visualViewport?yM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==da(e)?!1:t}function zo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=X6(e);let l=xs(1);t&&(r?Ya(r)&&(l=cu(r)):l=cu(e));const u=bM(i,n,r)?BA(i):xs(0);let d=(a.left+u.x)/l.x,h=(a.top+u.y)/l.y,g=a.width/l.x,m=a.height/l.y;if(i){const E=da(i),b=r&&Ya(r)?da(r):r;let T=E,A=l8(T);for(;A&&r&&b!==T;){const S=cu(A),w=A.getBoundingClientRect(),R=Ga(A),P=w.left+(A.clientLeft+parseFloat(R.paddingLeft))*S.x,M=w.top+(A.clientTop+parseFloat(R.paddingTop))*S.y;d*=S.x,h*=S.y,g*=S.x,m*=S.y,d+=P,h+=M,T=da(A),A=l8(T)}}return t1({width:g,height:m,x:d,y:h})}function W6(e,t){const n=G1(e).scrollLeft;return t?t.left+n:zo(ws(e)).left+n}function VA(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:W6(e,r)),i=r.top+t.scrollTop;return{x:a,y:i}}function EM(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",l=ws(r),u=t?Y1(t.floating):!1;if(r===l||u&&i)return n;let d={scrollLeft:0,scrollTop:0},h=xs(1);const g=xs(0),m=As(r);if((m||!m&&!i)&&((ku(r)!=="body"||U0(l))&&(d=G1(r)),As(r))){const b=zo(r);h=cu(r),g.x=b.x+r.clientLeft,g.y=b.y+r.clientTop}const E=l&&!m&&!i?VA(l,d,!0):xs(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+g.x+E.x,y:n.y*h.y-d.scrollTop*h.y+g.y+E.y}}function xM(e){return Array.from(e.getClientRects())}function _M(e){const t=ws(e),n=G1(e),r=e.ownerDocument.body,a=ua(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ua(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+W6(e);const u=-n.scrollTop;return Ga(r).direction==="rtl"&&(l+=ua(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:l,y:u}}function TM(e,t){const n=da(e),r=ws(e),a=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,u=0,d=0;if(a){i=a.width,l=a.height;const h=K6();(!h||h&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}return{width:i,height:l,x:u,y:d}}const AM=new Set(["absolute","fixed"]);function SM(e,t){const n=zo(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=As(e)?cu(e):xs(1),l=e.clientWidth*i.x,u=e.clientHeight*i.y,d=a*i.x,h=r*i.y;return{width:l,height:u,x:d,y:h}}function dx(e,t,n){let r;if(t==="viewport")r=TM(e,n);else if(t==="document")r=_M(ws(e));else if(Ya(t))r=SM(t,n);else{const a=BA(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return t1(r)}function zA(e,t){const n=ro(e);return n===t||!Ya(n)||yu(n)?!1:Ga(n).position==="fixed"||zA(n,t)}function wM(e,t){const n=t.get(e);if(n)return n;let r=b0(e,[],!1).filter(u=>Ya(u)&&ku(u)!=="body"),a=null;const i=Ga(e).position==="fixed";let l=i?ro(e):e;for(;Ya(l)&&!yu(l);){const u=Ga(l),d=G6(l);!d&&u.position==="fixed"&&(a=null),(i?!d&&!a:!d&&u.position==="static"&&!!a&&AM.has(a.position)||U0(l)&&!d&&zA(e,l))?r=r.filter(g=>g!==l):a=u,l=ro(l)}return t.set(e,r),r}function CM(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Y1(t)?[]:wM(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((h,g)=>{const m=dx(t,g,a);return h.top=ua(m.top,h.top),h.right=no(m.right,h.right),h.bottom=no(m.bottom,h.bottom),h.left=ua(m.left,h.left),h},dx(t,u,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function RM(e){const{width:t,height:n}=UA(e);return{width:t,height:n}}function OM(e,t,n){const r=As(t),a=ws(t),i=n==="fixed",l=zo(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const d=xs(0);function h(){d.x=W6(a)}if(r||!r&&!i)if((ku(t)!=="body"||U0(a))&&(u=G1(t)),r){const b=zo(t,!0,i,t);d.x=b.x+t.clientLeft,d.y=b.y+t.clientTop}else a&&h();i&&!r&&a&&h();const g=a&&!r&&!i?VA(a,u):xs(0),m=l.left+u.scrollLeft-d.x-g.x,E=l.top+u.scrollTop-d.y-g.y;return{x:m,y:E,width:l.width,height:l.height}}function u2(e){return Ga(e).position==="static"}function fx(e,t){if(!As(e)||Ga(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ws(e)===n&&(n=n.ownerDocument.body),n}function ZA(e,t){const n=da(e);if(Y1(e))return n;if(!As(e)){let a=ro(e);for(;a&&!yu(a);){if(Ya(a)&&!u2(a))return a;a=ro(a)}return n}let r=fx(e,t);for(;r&&dM(r)&&u2(r);)r=fx(r,t);return r&&yu(r)&&u2(r)&&!G6(r)?n:r||gM(e)||n}const NM=async function(e){const t=this.getOffsetParent||ZA,n=this.getDimensions,r=await n(e.floating);return{reference:OM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kM(e){return Ga(e).direction==="rtl"}const PM={convertOffsetParentRelativeRectToViewportRelativeRect:EM,getDocumentElement:ws,getClippingRect:CM,getOffsetParent:ZA,getElementRects:NM,getClientRects:xM,getDimensions:RM,getScale:cu,isElement:Ya,isRTL:kM};function qA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function DM(e,t){let n=null,r;const a=ws(e);function i(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const h=e.getBoundingClientRect(),{left:g,top:m,width:E,height:b}=h;if(u||t(),!E||!b)return;const T=Ef(m),A=Ef(a.clientWidth-(g+E)),S=Ef(a.clientHeight-(m+b)),w=Ef(g),P={rootMargin:-T+"px "+-A+"px "+-S+"px "+-w+"px",threshold:ua(0,no(1,d))||1};let M=!0;function I(N){const L=N[0].intersectionRatio;if(L!==d){if(!M)return l();L?l(!1,L):r=setTimeout(()=>{l(!1,1e-7)},1e3)}L===1&&!qA(h,e.getBoundingClientRect())&&l(),M=!1}try{n=new IntersectionObserver(I,{...P,root:a.ownerDocument})}catch{n=new IntersectionObserver(I,P)}n.observe(e)}return l(!0),i}function LM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=X6(e),g=a||i?[...h?b0(h):[],...b0(t)]:[];g.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const m=h&&u?DM(h,n):null;let E=-1,b=null;l&&(b=new ResizeObserver(w=>{let[R]=w;R&&R.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var P;(P=b)==null||P.observe(t)})),n()}),h&&!d&&b.observe(h),b.observe(t));let T,A=d?zo(e):null;d&&S();function S(){const w=zo(e);A&&!qA(A,w)&&n(),A=w,T=requestAnimationFrame(S)}return n(),()=>{var w;g.forEach(R=>{a&&R.removeEventListener("scroll",n),i&&R.removeEventListener("resize",n)}),m?.(),(w=b)==null||w.disconnect(),b=null,d&&cancelAnimationFrame(T)}}const MM=sM,IM=iM,jM=nM,HM=lM,FM=rM,hx=tM,UM=oM,BM=(e,t,n)=>{const r=new Map,a={platform:PM,...n},i={...a.platform,_c:r};return eM(e,t,{...a,platform:i})};var VM=typeof document<"u",zM=function(){},Hf=VM?p.useLayoutEffect:zM;function n1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!n1(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!n1(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function $A(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mx(e,t){const n=$A(e);return Math.round(t*n)/n}function c2(e){const t=p.useRef(e);return Hf(()=>{t.current=e}),t}function ZM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:l}={},transform:u=!0,whileElementsMounted:d,open:h}=e,[g,m]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[E,b]=p.useState(r);n1(E,r)||b(r);const[T,A]=p.useState(null),[S,w]=p.useState(null),R=p.useCallback(X=>{X!==N.current&&(N.current=X,A(X))},[]),P=p.useCallback(X=>{X!==L.current&&(L.current=X,w(X))},[]),M=i||T,I=l||S,N=p.useRef(null),L=p.useRef(null),D=p.useRef(g),B=d!=null,k=c2(d),U=c2(a),F=c2(h),Q=p.useCallback(()=>{if(!N.current||!L.current)return;const X={placement:t,strategy:n,middleware:E};U.current&&(X.platform=U.current),BM(N.current,L.current,X).then(se=>{const C={...se,isPositioned:F.current!==!1};Y.current&&!n1(D.current,C)&&(D.current=C,z6.flushSync(()=>{m(C)}))})},[E,t,n,U,F]);Hf(()=>{h===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,m(X=>({...X,isPositioned:!1})))},[h]);const Y=p.useRef(!1);Hf(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Hf(()=>{if(M&&(N.current=M),I&&(L.current=I),M&&I){if(k.current)return k.current(M,I,Q);Q()}},[M,I,Q,k,B]);const te=p.useMemo(()=>({reference:N,floating:L,setReference:R,setFloating:P}),[R,P]),V=p.useMemo(()=>({reference:M,floating:I}),[M,I]),J=p.useMemo(()=>{const X={position:n,left:0,top:0};if(!V.floating)return X;const se=mx(V.floating,g.x),C=mx(V.floating,g.y);return u?{...X,transform:"translate("+se+"px, "+C+"px)",...$A(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:se,top:C}},[n,u,V.floating,g.x,g.y]);return p.useMemo(()=>({...g,update:Q,refs:te,elements:V,floatingStyles:J}),[g,Q,te,V,J])}const qM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?hx({element:r.current,padding:a}).fn(n):{}:r?hx({element:r,padding:a}).fn(n):{}}}},$M=(e,t)=>({...MM(e),options:[e,t]}),QM=(e,t)=>({...IM(e),options:[e,t]}),YM=(e,t)=>({...UM(e),options:[e,t]}),GM=(e,t)=>({...jM(e),options:[e,t]}),KM=(e,t)=>({...HM(e),options:[e,t]}),XM=(e,t)=>({...FM(e),options:[e,t]}),WM=(e,t)=>({...qM(e),options:[e,t]});var JM="Arrow",QA=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return v.jsx(xt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});QA.displayName=JM;var eI=QA;function YA(e){const[t,n]=p.useState(void 0);return Ra(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let l,u;if("borderBoxSize"in i){const d=i.borderBoxSize,h=Array.isArray(d)?d[0]:d;l=h.inlineSize,u=h.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var J6="Popper",[GA,K1]=Qr(J6),[tI,KA]=GA(J6),XA=e=>{const{__scopePopper:t,children:n}=e,[r,a]=p.useState(null);return v.jsx(tI,{scope:t,anchor:r,onAnchorChange:a,children:n})};XA.displayName=J6;var WA="PopperAnchor",JA=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=KA(WA,n),l=p.useRef(null),u=xn(t,l);return p.useEffect(()=>{i.onAnchorChange(r?.current||l.current)}),r?null:v.jsx(xt.div,{...a,ref:u})});JA.displayName=WA;var ev="PopperContent",[nI,rI]=GA(ev),eS=p.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:m="partial",hideWhenDetached:E=!1,updatePositionStrategy:b="optimized",onPlaced:T,...A}=e,S=KA(ev,n),[w,R]=p.useState(null),P=xn(t,ae=>R(ae)),[M,I]=p.useState(null),N=YA(M),L=N?.width??0,D=N?.height??0,B=r+(i!=="center"?"-"+i:""),k=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},U=Array.isArray(h)?h:[h],F=U.length>0,Q={padding:k,boundary:U.filter(sI),altBoundary:F},{refs:Y,floatingStyles:te,placement:V,isPositioned:J,middlewareData:X}=ZM({strategy:"fixed",placement:B,whileElementsMounted:(...ae)=>LM(...ae,{animationFrame:b==="always"}),elements:{reference:S.anchor},middleware:[$M({mainAxis:a+D,alignmentAxis:l}),d&&QM({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?YM():void 0,...Q}),d&&GM({...Q}),KM({...Q,apply:({elements:ae,rects:Te,availableWidth:Ze,availableHeight:Ae})=>{const{width:Oe,height:et}=Te.reference,ct=ae.floating.style;ct.setProperty("--radix-popper-available-width",`${Ze}px`),ct.setProperty("--radix-popper-available-height",`${Ae}px`),ct.setProperty("--radix-popper-anchor-width",`${Oe}px`),ct.setProperty("--radix-popper-anchor-height",`${et}px`)}}),M&&WM({element:M,padding:u}),iI({arrowWidth:L,arrowHeight:D}),E&&XM({strategy:"referenceHidden",...Q})]}),[se,C]=rS(V),oe=Ts(T);Ra(()=>{J&&oe?.()},[J,oe]);const ge=X.arrow?.x,j=X.arrow?.y,Ee=X.arrow?.centerOffset!==0,[ke,Z]=p.useState();return Ra(()=>{w&&Z(window.getComputedStyle(w).zIndex)},[w]),v.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:J?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(nI,{scope:n,placedSide:se,onArrowChange:I,arrowX:ge,arrowY:j,shouldHideArrow:Ee,children:v.jsx(xt.div,{"data-side":se,"data-align":C,...A,ref:P,style:{...A.style,animation:J?void 0:"none"}})})})});eS.displayName=ev;var tS="PopperArrow",aI={top:"bottom",right:"left",bottom:"top",left:"right"},nS=p.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=rI(tS,r),l=aI[i.placedSide];return v.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:v.jsx(eI,{...a,ref:n,style:{...a.style,display:"block"}})})});nS.displayName=tS;function sI(e){return e!==null}var iI=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[h,g]=rS(n),m={start:"0%",center:"50%",end:"100%"}[g],E=(a.arrow?.x??0)+u/2,b=(a.arrow?.y??0)+d/2;let T="",A="";return h==="bottom"?(T=l?m:`${E}px`,A=`${-d}px`):h==="top"?(T=l?m:`${E}px`,A=`${r.floating.height+d}px`):h==="right"?(T=`${-d}px`,A=l?m:`${b}px`):h==="left"&&(T=`${r.floating.width+d}px`,A=l?m:`${b}px`),{data:{x:T,y:A}}}});function rS(e){const[t,n="center"]=e.split("-");return[t,n]}var aS=XA,tv=JA,sS=eS,iS=nS,oI="Portal",X1=p.forwardRef((e,t)=>{const{container:n,...r}=e,[a,i]=p.useState(!1);Ra(()=>i(!0),[]);const l=n||a&&globalThis?.document?.body;return l?kA.createPortal(v.jsx(xt.div,{...r,ref:t}),l):null});X1.displayName=oI;function lI(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Na=e=>{const{present:t,children:n}=e,r=uI(t),a=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),i=xn(r.ref,cI(a));return typeof n=="function"||r.isPresent?p.cloneElement(a,{ref:i}):null};Na.displayName="Presence";function uI(e){const[t,n]=p.useState(),r=p.useRef(null),a=p.useRef(e),i=p.useRef("none"),l=e?"mounted":"unmounted",[u,d]=lI(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const h=xf(r.current);i.current=u==="mounted"?h:"none"},[u]),Ra(()=>{const h=r.current,g=a.current;if(g!==e){const E=i.current,b=xf(h);e?d("MOUNT"):b==="none"||h?.display==="none"?d("UNMOUNT"):d(g&&E!==b?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),Ra(()=>{if(t){let h;const g=t.ownerDocument.defaultView??window,m=b=>{const A=xf(r.current).includes(b.animationName);if(b.target===t&&A&&(d("ANIMATION_END"),!a.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},E=b=>{b.target===t&&(i.current=xf(r.current))};return t.addEventListener("animationstart",E),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{g.clearTimeout(h),t.removeEventListener("animationstart",E),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:p.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function xf(e){return e?.animationName||"none"}function cI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var d2="rovingFocusGroup.onEntryFocus",dI={bubbles:!1,cancelable:!0},B0="RovingFocusGroup",[u8,oS,fI]=Z6(B0),[hI,Pu]=Qr(B0,[fI]),[mI,pI]=hI(B0),lS=p.forwardRef((e,t)=>v.jsx(u8.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(u8.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(gI,{...e,ref:t})})}));lS.displayName=B0;var gI=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...m}=e,E=p.useRef(null),b=xn(t,E),T=F0(i),[A,S]=Oa({prop:l,defaultProp:u??null,onChange:d,caller:B0}),[w,R]=p.useState(!1),P=Ts(h),M=oS(n),I=p.useRef(!1),[N,L]=p.useState(0);return p.useEffect(()=>{const D=E.current;if(D)return D.addEventListener(d2,P),()=>D.removeEventListener(d2,P)},[P]),v.jsx(mI,{scope:n,orientation:r,dir:T,loop:a,currentTabStopId:A,onItemFocus:p.useCallback(D=>S(D),[S]),onItemShiftTab:p.useCallback(()=>R(!0),[]),onFocusableItemAdd:p.useCallback(()=>L(D=>D+1),[]),onFocusableItemRemove:p.useCallback(()=>L(D=>D-1),[]),children:v.jsx(xt.div,{tabIndex:w||N===0?-1:0,"data-orientation":r,...m,ref:b,style:{outline:"none",...e.style},onMouseDown:ut(e.onMouseDown,()=>{I.current=!0}),onFocus:ut(e.onFocus,D=>{const B=!I.current;if(D.target===D.currentTarget&&B&&!w){const k=new CustomEvent(d2,dI);if(D.currentTarget.dispatchEvent(k),!k.defaultPrevented){const U=M().filter(V=>V.focusable),F=U.find(V=>V.active),Q=U.find(V=>V.id===A),te=[F,Q,...U].filter(Boolean).map(V=>V.ref.current);dS(te,g)}}I.current=!1}),onBlur:ut(e.onBlur,()=>R(!1))})})}),uS="RovingFocusGroupItem",cS=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,children:l,...u}=e,d=Es(),h=i||d,g=pI(uS,n),m=g.currentTabStopId===h,E=oS(n),{onFocusableItemAdd:b,onFocusableItemRemove:T,currentTabStopId:A}=g;return p.useEffect(()=>{if(r)return b(),()=>T()},[r,b,T]),v.jsx(u8.ItemSlot,{scope:n,id:h,focusable:r,active:a,children:v.jsx(xt.span,{tabIndex:m?0:-1,"data-orientation":g.orientation,...u,ref:t,onMouseDown:ut(e.onMouseDown,S=>{r?g.onItemFocus(h):S.preventDefault()}),onFocus:ut(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:ut(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){g.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const w=bI(S,g.orientation,g.dir);if(w!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let P=E().filter(M=>M.focusable).map(M=>M.ref.current);if(w==="last")P.reverse();else if(w==="prev"||w==="next"){w==="prev"&&P.reverse();const M=P.indexOf(S.currentTarget);P=g.loop?EI(P,M+1):P.slice(M+1)}setTimeout(()=>dS(P))}}),children:typeof l=="function"?l({isCurrentTabStop:m,hasTabStop:A!=null}):l})})});cS.displayName=uS;var vI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yI(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function bI(e,t,n){const r=yI(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return vI[r]}function dS(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function EI(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var nv=lS,rv=cS,xI=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ql=new WeakMap,_f=new WeakMap,Tf={},f2=0,fS=function(e){return e&&(e.host||fS(e.parentNode))},_I=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=fS(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},TI=function(e,t,n,r){var a=_I(t,Array.isArray(e)?e:[e]);Tf[n]||(Tf[n]=new WeakMap);var i=Tf[n],l=[],u=new Set,d=new Set(a),h=function(m){!m||u.has(m)||(u.add(m),h(m.parentNode))};a.forEach(h);var g=function(m){!m||d.has(m)||Array.prototype.forEach.call(m.children,function(E){if(u.has(E))g(E);else try{var b=E.getAttribute(r),T=b!==null&&b!=="false",A=(Ql.get(E)||0)+1,S=(i.get(E)||0)+1;Ql.set(E,A),i.set(E,S),l.push(E),A===1&&T&&_f.set(E,!0),S===1&&E.setAttribute(n,"true"),T||E.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",E,w)}})};return g(t),u.clear(),f2++,function(){l.forEach(function(m){var E=Ql.get(m)-1,b=i.get(m)-1;Ql.set(m,E),i.set(m,b),E||(_f.has(m)||m.removeAttribute(r),_f.delete(m)),b||m.removeAttribute(n)}),f2--,f2||(Ql=new WeakMap,Ql=new WeakMap,_f=new WeakMap,Tf={})}},av=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=xI(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),TI(r,a,n,"aria-hidden")):function(){return null}},gs=function(){return gs=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},gs.apply(this,arguments)};function hS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function AI(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Ff="right-scroll-bar-position",Uf="width-before-scroll-bar",SI="with-scroll-bars-hidden",wI="--removed-body-scroll-bar-size";function h2(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CI(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var RI=typeof window<"u"?p.useLayoutEffect:p.useEffect,px=new WeakMap;function OI(e,t){var n=CI(null,function(r){return e.forEach(function(a){return h2(a,r)})});return RI(function(){var r=px.get(n);if(r){var a=new Set(r),i=new Set(e),l=n.current;a.forEach(function(u){i.has(u)||h2(u,null)}),i.forEach(function(u){a.has(u)||h2(u,l)})}px.set(n,e)},[e]),n}function NI(e){return e}function kI(e,t){t===void 0&&(t=NI);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(i),l=n}var d=function(){var g=l;l=[],g.forEach(i)},h=function(){return Promise.resolve().then(d)};h(),n={push:function(g){l.push(g),h()},filter:function(g){return l=l.filter(g),n}}}};return a}function PI(e){e===void 0&&(e={});var t=kI(null);return t.options=gs({async:!0,ssr:!1},e),t}var mS=function(e){var t=e.sideCar,n=hS(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,gs({},n))};mS.isSideCarExport=!0;function DI(e,t){return e.useMedium(t),mS}var pS=PI(),m2=function(){},W1=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:m2,onWheelCapture:m2,onTouchMoveCapture:m2}),a=r[0],i=r[1],l=e.forwardProps,u=e.children,d=e.className,h=e.removeScrollBar,g=e.enabled,m=e.shards,E=e.sideCar,b=e.noRelative,T=e.noIsolation,A=e.inert,S=e.allowPinchZoom,w=e.as,R=w===void 0?"div":w,P=e.gapMode,M=hS(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=E,N=OI([n,t]),L=gs(gs({},M),a);return p.createElement(p.Fragment,null,g&&p.createElement(I,{sideCar:pS,removeScrollBar:h,shards:m,noRelative:b,noIsolation:T,inert:A,setCallbacks:i,allowPinchZoom:!!S,lockRef:n,gapMode:P}),l?p.cloneElement(p.Children.only(u),gs(gs({},L),{ref:N})):p.createElement(R,gs({},L,{className:d,ref:N}),u))});W1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};W1.classNames={fullWidth:Uf,zeroRight:Ff};var LI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function MI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=LI();return t&&e.setAttribute("nonce",t),e}function II(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var HI=function(){var e=0,t=null;return{add:function(n){e==0&&(t=MI())&&(II(t,n),jI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},FI=function(){var e=HI();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},gS=function(){var e=FI(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},UI={left:0,top:0,right:0,gap:0},p2=function(e){return parseInt(e||"",10)||0},BI=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[p2(n),p2(r),p2(a)]},VI=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return UI;var t=BI(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zI=gS(),du="data-scroll-locked",ZI=function(e,t,n,r){var a=e.left,i=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
26
|
+
.`.concat(SI,` {
|
|
27
|
+
overflow: hidden `).concat(r,`;
|
|
28
|
+
padding-right: `).concat(u,"px ").concat(r,`;
|
|
29
|
+
}
|
|
30
|
+
body[`).concat(du,`] {
|
|
31
|
+
overflow: hidden `).concat(r,`;
|
|
32
|
+
overscroll-behavior: contain;
|
|
33
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
34
|
+
padding-left: `.concat(a,`px;
|
|
35
|
+
padding-top: `).concat(i,`px;
|
|
36
|
+
padding-right: `).concat(l,`px;
|
|
37
|
+
margin-left:0;
|
|
38
|
+
margin-top:0;
|
|
39
|
+
margin-right: `).concat(u,"px ").concat(r,`;
|
|
40
|
+
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.`).concat(Ff,` {
|
|
44
|
+
right: `).concat(u,"px ").concat(r,`;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.`).concat(Uf,` {
|
|
48
|
+
margin-right: `).concat(u,"px ").concat(r,`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.`).concat(Ff," .").concat(Ff,` {
|
|
52
|
+
right: 0 `).concat(r,`;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.`).concat(Uf," .").concat(Uf,` {
|
|
56
|
+
margin-right: 0 `).concat(r,`;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
body[`).concat(du,`] {
|
|
60
|
+
`).concat(wI,": ").concat(u,`px;
|
|
61
|
+
}
|
|
62
|
+
`)},gx=function(){var e=parseInt(document.body.getAttribute(du)||"0",10);return isFinite(e)?e:0},qI=function(){p.useEffect(function(){return document.body.setAttribute(du,(gx()+1).toString()),function(){var e=gx()-1;e<=0?document.body.removeAttribute(du):document.body.setAttribute(du,e.toString())}},[])},$I=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;qI();var i=p.useMemo(function(){return VI(a)},[a]);return p.createElement(zI,{styles:ZI(i,!t,a,n?"":"!important")})},c8=!1;if(typeof window<"u")try{var Af=Object.defineProperty({},"passive",{get:function(){return c8=!0,!0}});window.addEventListener("test",Af,Af),window.removeEventListener("test",Af,Af)}catch{c8=!1}var Yl=c8?{passive:!1}:!1,QI=function(e){return e.tagName==="TEXTAREA"},vS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!QI(e)&&n[t]==="visible")},YI=function(e){return vS(e,"overflowY")},GI=function(e){return vS(e,"overflowX")},vx=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=yS(e,r);if(a){var i=bS(e,r),l=i[1],u=i[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},KI=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},XI=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},yS=function(e,t){return e==="v"?YI(t):GI(t)},bS=function(e,t){return e==="v"?KI(t):XI(t)},WI=function(e,t){return e==="h"&&t==="rtl"?-1:1},JI=function(e,t,n,r,a){var i=WI(e,window.getComputedStyle(t).direction),l=i*r,u=n.target,d=t.contains(u),h=!1,g=l>0,m=0,E=0;do{if(!u)break;var b=bS(e,u),T=b[0],A=b[1],S=b[2],w=A-S-i*T;(T||w)&&yS(e,u)&&(m+=w,E+=T);var R=u.parentNode;u=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(g&&Math.abs(m)<1||!g&&Math.abs(E)<1)&&(h=!0),h},Sf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yx=function(e){return[e.deltaX,e.deltaY]},bx=function(e){return e&&"current"in e?e.current:e},ej=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tj=function(e){return`
|
|
63
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
64
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
65
|
+
`)},nj=0,Gl=[];function rj(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),a=p.useState(nj++)[0],i=p.useState(gS)[0],l=p.useRef(e);p.useEffect(function(){l.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var A=AI([e.lockRef.current],(e.shards||[]).map(bx),!0).filter(Boolean);return A.forEach(function(S){return S.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),A.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=p.useCallback(function(A,S){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!l.current.allowPinchZoom;var w=Sf(A),R=n.current,P="deltaX"in A?A.deltaX:R[0]-w[0],M="deltaY"in A?A.deltaY:R[1]-w[1],I,N=A.target,L=Math.abs(P)>Math.abs(M)?"h":"v";if("touches"in A&&L==="h"&&N.type==="range")return!1;var D=vx(L,N);if(!D)return!0;if(D?I=L:(I=L==="v"?"h":"v",D=vx(L,N)),!D)return!1;if(!r.current&&"changedTouches"in A&&(P||M)&&(r.current=I),!I)return!0;var B=r.current||I;return JI(B,S,A,B==="h"?P:M)},[]),d=p.useCallback(function(A){var S=A;if(!(!Gl.length||Gl[Gl.length-1]!==i)){var w="deltaY"in S?yx(S):Sf(S),R=t.current.filter(function(I){return I.name===S.type&&(I.target===S.target||S.target===I.shadowParent)&&ej(I.delta,w)})[0];if(R&&R.should){S.cancelable&&S.preventDefault();return}if(!R){var P=(l.current.shards||[]).map(bx).filter(Boolean).filter(function(I){return I.contains(S.target)}),M=P.length>0?u(S,P[0]):!l.current.noIsolation;M&&S.cancelable&&S.preventDefault()}}},[]),h=p.useCallback(function(A,S,w,R){var P={name:A,delta:S,target:w,should:R,shadowParent:aj(w)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(M){return M!==P})},1)},[]),g=p.useCallback(function(A){n.current=Sf(A),r.current=void 0},[]),m=p.useCallback(function(A){h(A.type,yx(A),A.target,u(A,e.lockRef.current))},[]),E=p.useCallback(function(A){h(A.type,Sf(A),A.target,u(A,e.lockRef.current))},[]);p.useEffect(function(){return Gl.push(i),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:E}),document.addEventListener("wheel",d,Yl),document.addEventListener("touchmove",d,Yl),document.addEventListener("touchstart",g,Yl),function(){Gl=Gl.filter(function(A){return A!==i}),document.removeEventListener("wheel",d,Yl),document.removeEventListener("touchmove",d,Yl),document.removeEventListener("touchstart",g,Yl)}},[]);var b=e.removeScrollBar,T=e.inert;return p.createElement(p.Fragment,null,T?p.createElement(i,{styles:tj(a)}):null,b?p.createElement($I,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aj(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sj=DI(pS,rj);var J1=p.forwardRef(function(e,t){return p.createElement(W1,gs({},e,{ref:t,sideCar:sj}))});J1.classNames=W1.classNames;var d8=["Enter"," "],ij=["ArrowDown","PageUp","Home"],ES=["ArrowUp","PageDown","End"],oj=[...ij,...ES],lj={ltr:[...d8,"ArrowRight"],rtl:[...d8,"ArrowLeft"]},uj={ltr:["ArrowLeft"],rtl:["ArrowRight"]},V0="Menu",[E0,cj,dj]=Z6(V0),[el,xS]=Qr(V0,[dj,K1,Pu]),eh=K1(),_S=Pu(),[fj,tl]=el(V0),[hj,z0]=el(V0),TS=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:i,modal:l=!0}=e,u=eh(t),[d,h]=p.useState(null),g=p.useRef(!1),m=Ts(i),E=F0(a);return p.useEffect(()=>{const b=()=>{g.current=!0,document.addEventListener("pointerdown",T,{capture:!0,once:!0}),document.addEventListener("pointermove",T,{capture:!0,once:!0})},T=()=>g.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",T,{capture:!0}),document.removeEventListener("pointermove",T,{capture:!0})}},[]),v.jsx(aS,{...u,children:v.jsx(fj,{scope:t,open:n,onOpenChange:m,content:d,onContentChange:h,children:v.jsx(hj,{scope:t,onClose:p.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:g,dir:E,modal:l,children:r})})})};TS.displayName=V0;var mj="MenuAnchor",sv=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=eh(n);return v.jsx(tv,{...a,...r,ref:t})});sv.displayName=mj;var iv="MenuPortal",[pj,AS]=el(iv,{forceMount:void 0}),SS=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,i=tl(iv,t);return v.jsx(pj,{scope:t,forceMount:n,children:v.jsx(Na,{present:n||i.open,children:v.jsx(X1,{asChild:!0,container:a,children:r})})})};SS.displayName=iv;var Ca="MenuContent",[gj,ov]=el(Ca),wS=p.forwardRef((e,t)=>{const n=AS(Ca,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,i=tl(Ca,e.__scopeMenu),l=z0(Ca,e.__scopeMenu);return v.jsx(E0.Provider,{scope:e.__scopeMenu,children:v.jsx(Na,{present:r||i.open,children:v.jsx(E0.Slot,{scope:e.__scopeMenu,children:l.modal?v.jsx(vj,{...a,ref:t}):v.jsx(yj,{...a,ref:t})})})})}),vj=p.forwardRef((e,t)=>{const n=tl(Ca,e.__scopeMenu),r=p.useRef(null),a=xn(t,r);return p.useEffect(()=>{const i=r.current;if(i)return av(i)},[]),v.jsx(lv,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ut(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),yj=p.forwardRef((e,t)=>{const n=tl(Ca,e.__scopeMenu);return v.jsx(lv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),bj=Vo("MenuContent.ScrollLock"),lv=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:E,onDismiss:b,disableOutsideScroll:T,...A}=e,S=tl(Ca,n),w=z0(Ca,n),R=eh(n),P=_S(n),M=cj(n),[I,N]=p.useState(null),L=p.useRef(null),D=xn(t,L,S.onContentChange),B=p.useRef(0),k=p.useRef(""),U=p.useRef(0),F=p.useRef(null),Q=p.useRef("right"),Y=p.useRef(0),te=T?J1:p.Fragment,V=T?{as:bj,allowPinchZoom:!0}:void 0,J=se=>{const C=k.current+se,oe=M().filter(ae=>!ae.disabled),ge=document.activeElement,j=oe.find(ae=>ae.ref.current===ge)?.textValue,Ee=oe.map(ae=>ae.textValue),ke=kj(Ee,C,j),Z=oe.find(ae=>ae.textValue===ke)?.ref.current;(function ae(Te){k.current=Te,window.clearTimeout(B.current),Te!==""&&(B.current=window.setTimeout(()=>ae(""),1e3))})(C),Z&&setTimeout(()=>Z.focus())};p.useEffect(()=>()=>window.clearTimeout(B.current),[]),q6();const X=p.useCallback(se=>Q.current===F.current?.side&&Dj(se,F.current?.area),[]);return v.jsx(gj,{scope:n,searchRef:k,onItemEnter:p.useCallback(se=>{X(se)&&se.preventDefault()},[X]),onItemLeave:p.useCallback(se=>{X(se)||(L.current?.focus(),N(null))},[X]),onTriggerLeave:p.useCallback(se=>{X(se)&&se.preventDefault()},[X]),pointerGraceTimerRef:U,onPointerGraceIntentChange:p.useCallback(se=>{F.current=se},[]),children:v.jsx(te,{...V,children:v.jsx($1,{asChild:!0,trapped:a,onMountAutoFocus:ut(i,se=>{se.preventDefault(),L.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:v.jsx(q1,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:E,onDismiss:b,children:v.jsx(nv,{asChild:!0,...P,dir:w.dir,orientation:"vertical",loop:r,currentTabStopId:I,onCurrentTabStopIdChange:N,onEntryFocus:ut(d,se=>{w.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(sS,{role:"menu","aria-orientation":"vertical","data-state":VS(S.open),"data-radix-menu-content":"",dir:w.dir,...R,...A,ref:D,style:{outline:"none",...A.style},onKeyDown:ut(A.onKeyDown,se=>{const oe=se.target.closest("[data-radix-menu-content]")===se.currentTarget,ge=se.ctrlKey||se.altKey||se.metaKey,j=se.key.length===1;oe&&(se.key==="Tab"&&se.preventDefault(),!ge&&j&&J(se.key));const Ee=L.current;if(se.target!==Ee||!oj.includes(se.key))return;se.preventDefault();const Z=M().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);ES.includes(se.key)&&Z.reverse(),Oj(Z)}),onBlur:ut(e.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(B.current),k.current="")}),onPointerMove:ut(e.onPointerMove,x0(se=>{const C=se.target,oe=Y.current!==se.clientX;if(se.currentTarget.contains(C)&&oe){const ge=se.clientX>Y.current?"right":"left";Q.current=ge,Y.current=se.clientX}}))})})})})})})});wS.displayName=Ca;var Ej="MenuGroup",uv=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(xt.div,{role:"group",...r,ref:t})});uv.displayName=Ej;var xj="MenuLabel",CS=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(xt.div,{...r,ref:t})});CS.displayName=xj;var r1="MenuItem",Ex="menu.itemSelect",th=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,i=p.useRef(null),l=z0(r1,e.__scopeMenu),u=ov(r1,e.__scopeMenu),d=xn(t,i),h=p.useRef(!1),g=()=>{const m=i.current;if(!n&&m){const E=new CustomEvent(Ex,{bubbles:!0,cancelable:!0});m.addEventListener(Ex,b=>r?.(b),{once:!0}),PA(m,E),E.defaultPrevented?h.current=!1:l.onClose()}};return v.jsx(RS,{...a,ref:d,disabled:n,onClick:ut(e.onClick,g),onPointerDown:m=>{e.onPointerDown?.(m),h.current=!0},onPointerUp:ut(e.onPointerUp,m=>{h.current||m.currentTarget?.click()}),onKeyDown:ut(e.onKeyDown,m=>{const E=u.searchRef.current!=="";n||E&&m.key===" "||d8.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});th.displayName=r1;var RS=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...i}=e,l=ov(r1,n),u=_S(n),d=p.useRef(null),h=xn(t,d),[g,m]=p.useState(!1),[E,b]=p.useState("");return p.useEffect(()=>{const T=d.current;T&&b((T.textContent??"").trim())},[i.children]),v.jsx(E0.ItemSlot,{scope:n,disabled:r,textValue:a??E,children:v.jsx(rv,{asChild:!0,...u,focusable:!r,children:v.jsx(xt.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:h,onPointerMove:ut(e.onPointerMove,x0(T=>{r?l.onItemLeave(T):(l.onItemEnter(T),T.defaultPrevented||T.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ut(e.onPointerLeave,x0(T=>l.onItemLeave(T))),onFocus:ut(e.onFocus,()=>m(!0)),onBlur:ut(e.onBlur,()=>m(!1))})})})}),_j="MenuCheckboxItem",OS=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return v.jsx(LS,{scope:e.__scopeMenu,checked:n,children:v.jsx(th,{role:"menuitemcheckbox","aria-checked":a1(n)?"mixed":n,...a,ref:t,"data-state":dv(n),onSelect:ut(a.onSelect,()=>r?.(a1(n)?!0:!n),{checkForDefaultPrevented:!1})})})});OS.displayName=_j;var NS="MenuRadioGroup",[Tj,Aj]=el(NS,{value:void 0,onValueChange:()=>{}}),kS=p.forwardRef((e,t)=>{const{value:n,onValueChange:r,...a}=e,i=Ts(r);return v.jsx(Tj,{scope:e.__scopeMenu,value:n,onValueChange:i,children:v.jsx(uv,{...a,ref:t})})});kS.displayName=NS;var PS="MenuRadioItem",DS=p.forwardRef((e,t)=>{const{value:n,...r}=e,a=Aj(PS,e.__scopeMenu),i=n===a.value;return v.jsx(LS,{scope:e.__scopeMenu,checked:i,children:v.jsx(th,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":dv(i),onSelect:ut(r.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});DS.displayName=PS;var cv="MenuItemIndicator",[LS,Sj]=el(cv,{checked:!1}),MS=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,i=Sj(cv,n);return v.jsx(Na,{present:r||a1(i.checked)||i.checked===!0,children:v.jsx(xt.span,{...a,ref:t,"data-state":dv(i.checked)})})});MS.displayName=cv;var wj="MenuSeparator",IS=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(xt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});IS.displayName=wj;var Cj="MenuArrow",jS=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=eh(n);return v.jsx(iS,{...a,...r,ref:t})});jS.displayName=Cj;var Rj="MenuSub",[gie,HS]=el(Rj),e0="MenuSubTrigger",FS=p.forwardRef((e,t)=>{const n=tl(e0,e.__scopeMenu),r=z0(e0,e.__scopeMenu),a=HS(e0,e.__scopeMenu),i=ov(e0,e.__scopeMenu),l=p.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=i,h={__scopeMenu:e.__scopeMenu},g=p.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return p.useEffect(()=>g,[g]),p.useEffect(()=>{const m=u.current;return()=>{window.clearTimeout(m),d(null)}},[u,d]),v.jsx(sv,{asChild:!0,...h,children:v.jsx(RS,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":VS(n.open),...e,ref:Z1(t,a.onTriggerChange),onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ut(e.onPointerMove,x0(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:ut(e.onPointerLeave,x0(m=>{g();const E=n.content?.getBoundingClientRect();if(E){const b=n.content?.dataset.side,T=b==="right",A=T?-5:5,S=E[T?"left":"right"],w=E[T?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+A,y:m.clientY},{x:S,y:E.top},{x:w,y:E.top},{x:w,y:E.bottom},{x:S,y:E.bottom}],side:b}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ut(e.onKeyDown,m=>{const E=i.searchRef.current!=="";e.disabled||E&&m.key===" "||lj[r.dir].includes(m.key)&&(n.onOpenChange(!0),n.content?.focus(),m.preventDefault())})})})});FS.displayName=e0;var US="MenuSubContent",BS=p.forwardRef((e,t)=>{const n=AS(Ca,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,i=tl(Ca,e.__scopeMenu),l=z0(Ca,e.__scopeMenu),u=HS(US,e.__scopeMenu),d=p.useRef(null),h=xn(t,d);return v.jsx(E0.Provider,{scope:e.__scopeMenu,children:v.jsx(Na,{present:r||i.open,children:v.jsx(E0.Slot,{scope:e.__scopeMenu,children:v.jsx(lv,{id:u.contentId,"aria-labelledby":u.triggerId,...a,ref:h,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{l.isUsingKeyboardRef.current&&d.current?.focus(),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:ut(e.onFocusOutside,g=>{g.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ut(e.onEscapeKeyDown,g=>{l.onClose(),g.preventDefault()}),onKeyDown:ut(e.onKeyDown,g=>{const m=g.currentTarget.contains(g.target),E=uj[l.dir].includes(g.key);m&&E&&(i.onOpenChange(!1),u.trigger?.focus(),g.preventDefault())})})})})})});BS.displayName=US;function VS(e){return e?"open":"closed"}function a1(e){return e==="indeterminate"}function dv(e){return a1(e)?"indeterminate":e?"checked":"unchecked"}function Oj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Nj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function kj(e,t,n){const a=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=Nj(e,Math.max(i,0));a.length===1&&(l=l.filter(h=>h!==n));const d=l.find(h=>h.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function Pj(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const u=t[i],d=t[l],h=u.x,g=u.y,m=d.x,E=d.y;g>r!=E>r&&n<(m-h)*(r-g)/(E-g)+h&&(a=!a)}return a}function Dj(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Pj(n,t)}function x0(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Lj=TS,Mj=sv,Ij=SS,jj=wS,Hj=uv,Fj=CS,Uj=th,Bj=OS,Vj=kS,zj=DS,Zj=MS,qj=IS,$j=jS,Qj=FS,Yj=BS,nh="DropdownMenu",[Gj,vie]=Qr(nh,[xS]),Mr=xS(),[Kj,zS]=Gj(nh),ZS=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,d=Mr(t),h=p.useRef(null),[g,m]=Oa({prop:a,defaultProp:i??!1,onChange:l,caller:nh});return v.jsx(Kj,{scope:t,triggerId:Es(),triggerRef:h,contentId:Es(),open:g,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(E=>!E),[m]),modal:u,children:v.jsx(Lj,{...d,open:g,onOpenChange:m,dir:r,modal:u,children:n})})};ZS.displayName=nh;var qS="DropdownMenuTrigger",$S=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,i=zS(qS,n),l=Mr(n);return v.jsx(Mj,{asChild:!0,...l,children:v.jsx(xt.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:Z1(t,i.triggerRef),onPointerDown:ut(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:ut(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});$S.displayName=qS;var Xj="DropdownMenuPortal",QS=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Mr(t);return v.jsx(Ij,{...r,...n})};QS.displayName=Xj;var YS="DropdownMenuContent",GS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=zS(YS,n),i=Mr(n),l=p.useRef(!1);return v.jsx(jj,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...r,ref:t,onCloseAutoFocus:ut(e.onCloseAutoFocus,u=>{l.current||a.triggerRef.current?.focus(),l.current=!1,u.preventDefault()}),onInteractOutside:ut(e.onInteractOutside,u=>{const d=u.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0,g=d.button===2||h;(!a.modal||g)&&(l.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)"}})});GS.displayName=YS;var Wj="DropdownMenuGroup",KS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(Hj,{...a,...r,ref:t})});KS.displayName=Wj;var Jj="DropdownMenuLabel",eH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(Fj,{...a,...r,ref:t})});eH.displayName=Jj;var tH="DropdownMenuItem",XS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(Uj,{...a,...r,ref:t})});XS.displayName=tH;var nH="DropdownMenuCheckboxItem",rH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(Bj,{...a,...r,ref:t})});rH.displayName=nH;var aH="DropdownMenuRadioGroup",sH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(Vj,{...a,...r,ref:t})});sH.displayName=aH;var iH="DropdownMenuRadioItem",oH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(zj,{...a,...r,ref:t})});oH.displayName=iH;var lH="DropdownMenuItemIndicator",uH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(Zj,{...a,...r,ref:t})});uH.displayName=lH;var cH="DropdownMenuSeparator",WS=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(qj,{...a,...r,ref:t})});WS.displayName=cH;var dH="DropdownMenuArrow",fH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx($j,{...a,...r,ref:t})});fH.displayName=dH;var hH="DropdownMenuSubTrigger",mH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(Qj,{...a,...r,ref:t})});mH.displayName=hH;var pH="DropdownMenuSubContent",gH=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Mr(n);return v.jsx(Yj,{...a,...r,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)"}})});gH.displayName=pH;var vH=ZS,yH=$S,bH=QS,EH=GS,xH=KS,_H=XS,TH=WS;const fv=vH,hv=yH,s1=({className:e,...t})=>v.jsx(xH,{className:De("flex flex-col gap-y-px p-1",e),...t}),mv=({className:e,side:t="bottom",sideOffset:n=2,align:r="start",...a})=>v.jsx(bH,{children:v.jsx(EH,{sideOffset:n,side:t,align:r,className:De("popover","max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-48 max-w-72","radix-state-[closed]:fade-out-0 radix-state-[open]:fade-in-0 radix-state-[closed]:zoom-out-95 radix-state-[open]:zoom-in-95 radix-state-[closed]:animate-out radix-state-[open]:animate-in","radix-side-[bottom]:slide-in-from-top-2 radix-side-[left]:slide-in-from-right-2 radix-side-[right]:slide-in-from-left-2 radix-side-[top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...a})}),Gi=({className:e,inset:t,...n})=>v.jsx(_H,{className:De("relative flex h-7 w-full min-w-0 flex-row items-center gap-x-0.5 rounded-md bg-transparent px-1 text-fg-subtle","font-medium text-[13px] leading-7 tracking-[0.01em]","cursor-default select-none outline-none transition-colors duration-200 ease-in-out","radix-[highlighted]:bg-accent-subtle radix-[highlighted]:text-fg","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",t&&"pl-8",e),...n}),AH=({className:e,...t})=>v.jsx(TH,{className:De("-mx-1 h-[0.5px] bg-accent",e),...t});function SH({children:e,className:t,asChild:n,...r}){const a=n?yr:"div";return v.jsx(a,{className:De("flex flex-col gap-y-px",t),...r,children:e})}function f8({children:e,className:t,asChild:n,...r}){const a=n?yr:"div";return v.jsx(a,{className:De("flex h-7 w-full min-w-0 flex-row items-center gap-x-0.5 rounded-md bg-transparent px-1 text-fg-subtle","cursor-pointer font-medium text-[13px] leading-7 tracking-[0.01em]","cursor-default select-none outline-none transition-colors duration-200 ease-in-out hover:bg-accent","radix-[highlighted]:bg-accent radix-[highlighted]:text-fg","data-[state=active]:bg-accent data-[state=active]:text-fg","data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",t),...r,children:e})}function za({children:e,className:t,asChild:n,...r}){const a=n?yr:"span";return v.jsx(a,{className:De("block grow truncate px-1","font-medium text-[13px] leading-7 tracking-[0.01em]","last:pr-4",t),...r,children:e})}function ei({children:e,className:t,weight:n="fill",color:r="currentcolor"}){return v.jsx(yr,{className:De("size-5 shrink-0",t),weight:n,color:r,children:e})}function wH({label:e,children:t,className:n,...r}){return v.jsxs(f8,{className:De("gap-x-0.5 hover:bg-transparent",n),...r,children:[v.jsx(za,{className:"font-medium font-mono text-[11px] text-fg-subtle uppercase tracking-[0.05em]",children:e}),t]})}function JS(){return v.jsx("div",{className:"fixed right-5 bottom-5 z-50",children:v.jsxs(fv,{children:[v.jsx(hv,{asChild:!0,children:v.jsx(on,{variant:"default",size:"lg",className:"size-10 rounded-full p-0",children:v.jsx(WT,{className:"!size-5",weight:"fill"})})}),v.jsxs(mv,{align:"end",side:"top",sideOffset:8,children:[v.jsxs(s1,{children:[v.jsx(Gi,{asChild:!0,children:v.jsxs("a",{href:"https://director.run/changelog",target:"_blank",rel:"noopener noreferrer",children:[v.jsx(ei,{children:v.jsx(oA,{})}),v.jsx(za,{children:"Latest updates"})]})}),v.jsx(Gi,{asChild:!0,children:v.jsxs("a",{href:"https://github.com/director-run/director/issues/new",target:"_blank",rel:"noopener noreferrer",children:[v.jsx(ei,{children:v.jsx(KT,{})}),v.jsx(za,{children:"Report a bug"})]})})]}),v.jsx(AH,{}),v.jsxs(s1,{children:[v.jsx(Gi,{asChild:!0,children:v.jsxs("a",{href:"https://discord.gg/RT5pQRpkJx",target:"_blank",rel:"noopener noreferrer",children:[v.jsx(ei,{children:v.jsx(nA,{})}),v.jsx(za,{children:"Join Discord"})]})}),v.jsx(Gi,{asChild:!0,children:v.jsxs("a",{href:"https://github.com/director-run/director/discussions/new/choose",target:"_blank",rel:"noopener noreferrer",children:[v.jsx(ei,{children:v.jsx(H6,{})}),v.jsx(za,{children:"Start discussion"})]})}),v.jsx(Gi,{asChild:!0,children:v.jsxs("a",{href:"https://x.com/theworkingco",target:"_blank",rel:"noopener noreferrer",children:[v.jsx(ei,{children:v.jsx(pA,{})}),v.jsx(za,{children:"Follow on X/Twitter"})]})})]})]})]})})}function CH(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const RH=e=>{switch(e){case"success":return kH;case"info":return DH;case"warning":return PH;case"error":return LH;default:return null}},OH=Array(12).fill(0),NH=({visible:e,className:t})=>me.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},me.createElement("div",{className:"sonner-spinner"},OH.map((n,r)=>me.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),kH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),PH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},me.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),DH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),LH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),MH=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},me.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),me.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),IH=()=>{const[e,t]=me.useState(document.hidden);return me.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let h8=1;class jH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:h8++,l=this.toasts.find(d=>d.id===i),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(d=>d.id===i?(this.publish({...d,...t,id:i,title:r}),{...d,...t,id:i,dismissible:u,title:r}):d):this.addToast({title:r,...a,dismissible:u,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,l;const u=a.then(async h=>{if(l=["resolve",h],me.isValidElement(h))i=!1,this.create({id:r,type:"default",message:h});else if(FH(h)&&!h.ok){i=!1;const m=typeof n.error=="function"?await n.error(`HTTP error! status: ${h.status}`):n.error,E=typeof n.description=="function"?await n.description(`HTTP error! status: ${h.status}`):n.description,T=typeof m=="object"&&!me.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:E,...T})}else if(h instanceof Error){i=!1;const m=typeof n.error=="function"?await n.error(h):n.error,E=typeof n.description=="function"?await n.description(h):n.description,T=typeof m=="object"&&!me.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:E,...T})}else if(n.success!==void 0){i=!1;const m=typeof n.success=="function"?await n.success(h):n.success,E=typeof n.description=="function"?await n.description(h):n.description,T=typeof m=="object"&&!me.isValidElement(m)?m:{message:m};this.create({id:r,type:"success",description:E,...T})}}).catch(async h=>{if(l=["reject",h],n.error!==void 0){i=!1;const g=typeof n.error=="function"?await n.error(h):n.error,m=typeof n.description=="function"?await n.description(h):n.description,b=typeof g=="object"&&!me.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:m,...b})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((h,g)=>u.then(()=>l[0]==="reject"?g(l[1]):h(l[1])).catch(g));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=n?.id||h8++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Zr=new jH,HH=(e,t)=>{const n=t?.id||h8++;return Zr.addToast({title:e,...t,id:n}),n},FH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",UH=HH,BH=()=>Zr.toasts,VH=()=>Zr.getActiveToasts(),e9=Object.assign(UH,{success:Zr.success,info:Zr.info,warning:Zr.warning,error:Zr.error,custom:Zr.custom,message:Zr.message,promise:Zr.promise,dismiss:Zr.dismiss,loading:Zr.loading},{getHistory:BH,getToasts:VH});CH("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function wf(e){return e.label!==void 0}const zH=3,ZH="24px",qH="16px",xx=4e3,$H=356,QH=14,YH=45,GH=200;function ds(...e){return e.filter(Boolean).join(" ")}function KH(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const XH=e=>{var t,n,r,a,i,l,u,d,h;const{invert:g,toast:m,unstyled:E,interacting:b,setHeights:T,visibleToasts:A,heights:S,index:w,toasts:R,expanded:P,removeToast:M,defaultRichColors:I,closeButton:N,style:L,cancelButtonStyle:D,actionButtonStyle:B,className:k="",descriptionClassName:U="",duration:F,position:Q,gap:Y,expandByDefault:te,classNames:V,icons:J,closeButtonAriaLabel:X="Close toast"}=e,[se,C]=me.useState(null),[oe,ge]=me.useState(null),[j,Ee]=me.useState(!1),[ke,Z]=me.useState(!1),[ae,Te]=me.useState(!1),[Ze,Ae]=me.useState(!1),[Oe,et]=me.useState(!1),[ct,it]=me.useState(0),[Ht,_t]=me.useState(0),st=me.useRef(m.duration||F||xx),yn=me.useRef(null),bt=me.useRef(null),W=w===0,ce=w+1<=A,pe=m.type,Ne=m.dismissible!==!1,Le=m.className||"",je=m.descriptionClassName||"",ie=me.useMemo(()=>S.findIndex(dt=>dt.toastId===m.id)||0,[S,m.id]),Se=me.useMemo(()=>{var dt;return(dt=m.closeButton)!=null?dt:N},[m.closeButton,N]),Be=me.useMemo(()=>m.duration||F||xx,[m.duration,F]),qe=me.useRef(0),pt=me.useRef(0),Xt=me.useRef(0),jn=me.useRef(null),[hn,Wn]=Q.split("-"),qn=me.useMemo(()=>S.reduce((dt,Rn,On)=>On>=ie?dt:dt+Rn.height,0),[S,ie]),ln=IH(),un=m.invert||g,$n=pe==="loading";pt.current=me.useMemo(()=>ie*Y+qn,[ie,qn]),me.useEffect(()=>{st.current=Be},[Be]),me.useEffect(()=>{Ee(!0)},[]),me.useEffect(()=>{const dt=bt.current;if(dt){const Rn=dt.getBoundingClientRect().height;return _t(Rn),T(On=>[{toastId:m.id,height:Rn,position:m.position},...On]),()=>T(On=>On.filter(Jn=>Jn.toastId!==m.id))}},[T,m.id]),me.useLayoutEffect(()=>{if(!j)return;const dt=bt.current,Rn=dt.style.height;dt.style.height="auto";const On=dt.getBoundingClientRect().height;dt.style.height=Rn,_t(On),T(Jn=>Jn.find(Pn=>Pn.toastId===m.id)?Jn.map(Pn=>Pn.toastId===m.id?{...Pn,height:On}:Pn):[{toastId:m.id,height:On,position:m.position},...Jn])},[j,m.title,m.description,T,m.id,m.jsx,m.action,m.cancel]);const Kr=me.useCallback(()=>{Z(!0),it(pt.current),T(dt=>dt.filter(Rn=>Rn.toastId!==m.id)),setTimeout(()=>{M(m)},GH)},[m,M,T,pt]);me.useEffect(()=>{if(m.promise&&pe==="loading"||m.duration===1/0||m.type==="loading")return;let dt;return P||b||ln?(()=>{if(Xt.current<qe.current){const Jn=new Date().getTime()-qe.current;st.current=st.current-Jn}Xt.current=new Date().getTime()})():(()=>{st.current!==1/0&&(qe.current=new Date().getTime(),dt=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),Kr()},st.current))})(),()=>clearTimeout(dt)},[P,b,m,pe,ln,Kr]),me.useEffect(()=>{m.delete&&(Kr(),m.onDismiss==null||m.onDismiss.call(m,m))},[Kr,m.delete]);function cl(){var dt;if(J?.loading){var Rn;return me.createElement("div",{className:ds(V?.loader,m==null||(Rn=m.classNames)==null?void 0:Rn.loader,"sonner-loader"),"data-visible":pe==="loading"},J.loading)}return me.createElement(NH,{className:ds(V?.loader,m==null||(dt=m.classNames)==null?void 0:dt.loader),visible:pe==="loading"})}const go=m.icon||J?.[pe]||RH(pe);var as,dl;return me.createElement("li",{tabIndex:0,ref:bt,className:ds(k,Le,V?.toast,m==null||(t=m.classNames)==null?void 0:t.toast,V?.default,V?.[pe],m==null||(n=m.classNames)==null?void 0:n[pe]),"data-sonner-toast":"","data-rich-colors":(as=m.richColors)!=null?as:I,"data-styled":!(m.jsx||m.unstyled||E),"data-mounted":j,"data-promise":!!m.promise,"data-swiped":Oe,"data-removed":ke,"data-visible":ce,"data-y-position":hn,"data-x-position":Wn,"data-index":w,"data-front":W,"data-swiping":ae,"data-dismissible":Ne,"data-type":pe,"data-invert":un,"data-swipe-out":Ze,"data-swipe-direction":oe,"data-expanded":!!(P||te&&j),style:{"--index":w,"--toasts-before":w,"--z-index":R.length-w,"--offset":`${ke?ct:pt.current}px`,"--initial-height":te?"auto":`${Ht}px`,...L,...m.style},onDragEnd:()=>{Te(!1),C(null),jn.current=null},onPointerDown:dt=>{dt.button!==2&&($n||!Ne||(yn.current=new Date,it(pt.current),dt.target.setPointerCapture(dt.pointerId),dt.target.tagName!=="BUTTON"&&(Te(!0),jn.current={x:dt.clientX,y:dt.clientY})))},onPointerUp:()=>{var dt,Rn,On;if(Ze||!Ne)return;jn.current=null;const Jn=Number(((dt=bt.current)==null?void 0:dt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ia=Number(((Rn=bt.current)==null?void 0:Rn.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Pn=new Date().getTime()-((On=yn.current)==null?void 0:On.getTime()),Nn=se==="x"?Jn:Ia,_n=Math.abs(Nn)/Pn;if(Math.abs(Nn)>=YH||_n>.11){it(pt.current),m.onDismiss==null||m.onDismiss.call(m,m),ge(se==="x"?Jn>0?"right":"left":Ia>0?"down":"up"),Kr(),Ae(!0);return}else{var Wt,Hn;(Wt=bt.current)==null||Wt.style.setProperty("--swipe-amount-x","0px"),(Hn=bt.current)==null||Hn.style.setProperty("--swipe-amount-y","0px")}et(!1),Te(!1),C(null)},onPointerMove:dt=>{var Rn,On,Jn;if(!jn.current||!Ne||((Rn=window.getSelection())==null?void 0:Rn.toString().length)>0)return;const Pn=dt.clientY-jn.current.y,Nn=dt.clientX-jn.current.x;var _n;const Wt=(_n=e.swipeDirections)!=null?_n:KH(Q);!se&&(Math.abs(Nn)>1||Math.abs(Pn)>1)&&C(Math.abs(Nn)>Math.abs(Pn)?"x":"y");let Hn={x:0,y:0};const ee=q=>1/(1.5+Math.abs(q)/20);if(se==="y"){if(Wt.includes("top")||Wt.includes("bottom"))if(Wt.includes("top")&&Pn<0||Wt.includes("bottom")&&Pn>0)Hn.y=Pn;else{const q=Pn*ee(Pn);Hn.y=Math.abs(q)<Math.abs(Pn)?q:Pn}}else if(se==="x"&&(Wt.includes("left")||Wt.includes("right")))if(Wt.includes("left")&&Nn<0||Wt.includes("right")&&Nn>0)Hn.x=Nn;else{const q=Nn*ee(Nn);Hn.x=Math.abs(q)<Math.abs(Nn)?q:Nn}(Math.abs(Hn.x)>0||Math.abs(Hn.y)>0)&&et(!0),(On=bt.current)==null||On.style.setProperty("--swipe-amount-x",`${Hn.x}px`),(Jn=bt.current)==null||Jn.style.setProperty("--swipe-amount-y",`${Hn.y}px`)}},Se&&!m.jsx&&pe!=="loading"?me.createElement("button",{"aria-label":X,"data-disabled":$n,"data-close-button":!0,onClick:$n||!Ne?()=>{}:()=>{Kr(),m.onDismiss==null||m.onDismiss.call(m,m)},className:ds(V?.closeButton,m==null||(r=m.classNames)==null?void 0:r.closeButton)},(dl=J?.close)!=null?dl:MH):null,(pe||m.icon||m.promise)&&m.icon!==null&&(J?.[pe]!==null||m.icon)?me.createElement("div",{"data-icon":"",className:ds(V?.icon,m==null||(a=m.classNames)==null?void 0:a.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||cl():null,m.type!=="loading"?go:null):null,me.createElement("div",{"data-content":"",className:ds(V?.content,m==null||(i=m.classNames)==null?void 0:i.content)},me.createElement("div",{"data-title":"",className:ds(V?.title,m==null||(l=m.classNames)==null?void 0:l.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?me.createElement("div",{"data-description":"",className:ds(U,je,V?.description,m==null||(u=m.classNames)==null?void 0:u.description)},typeof m.description=="function"?m.description():m.description):null),me.isValidElement(m.cancel)?m.cancel:m.cancel&&wf(m.cancel)?me.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||D,onClick:dt=>{wf(m.cancel)&&Ne&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,dt),Kr())},className:ds(V?.cancelButton,m==null||(d=m.classNames)==null?void 0:d.cancelButton)},m.cancel.label):null,me.isValidElement(m.action)?m.action:m.action&&wf(m.action)?me.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||B,onClick:dt=>{wf(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,dt),!dt.defaultPrevented&&Kr())},className:ds(V?.actionButton,m==null||(h=m.classNames)==null?void 0:h.actionButton)},m.action.label):null)};function _x(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function WH(e,t){const n={};return[e,t].forEach((r,a)=>{const i=a===1,l=i?"--mobile-offset":"--offset",u=i?qH:ZH;function d(h){["top","right","bottom","left"].forEach(g=>{n[`${l}-${g}`]=typeof h=="number"?`${h}px`:h})}typeof r=="number"||typeof r=="string"?d(r):typeof r=="object"?["top","right","bottom","left"].forEach(h=>{r[h]===void 0?n[`${l}-${h}`]=u:n[`${l}-${h}`]=typeof r[h]=="number"?`${r[h]}px`:r[h]}):d(u)}),n}const JH=me.forwardRef(function(t,n){const{invert:r,position:a="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:u,className:d,offset:h,mobileOffset:g,theme:m="light",richColors:E,duration:b,style:T,visibleToasts:A=zH,toastOptions:S,dir:w=_x(),gap:R=QH,icons:P,containerAriaLabel:M="Notifications"}=t,[I,N]=me.useState([]),L=me.useMemo(()=>Array.from(new Set([a].concat(I.filter(oe=>oe.position).map(oe=>oe.position)))),[I,a]),[D,B]=me.useState([]),[k,U]=me.useState(!1),[F,Q]=me.useState(!1),[Y,te]=me.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),V=me.useRef(null),J=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),X=me.useRef(null),se=me.useRef(!1),C=me.useCallback(oe=>{N(ge=>{var j;return(j=ge.find(Ee=>Ee.id===oe.id))!=null&&j.delete||Zr.dismiss(oe.id),ge.filter(({id:Ee})=>Ee!==oe.id)})},[]);return me.useEffect(()=>Zr.subscribe(oe=>{if(oe.dismiss){requestAnimationFrame(()=>{N(ge=>ge.map(j=>j.id===oe.id?{...j,delete:!0}:j))});return}setTimeout(()=>{kA.flushSync(()=>{N(ge=>{const j=ge.findIndex(Ee=>Ee.id===oe.id);return j!==-1?[...ge.slice(0,j),{...ge[j],...oe},...ge.slice(j+1)]:[oe,...ge]})})})}),[I]),me.useEffect(()=>{if(m!=="system"){te(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const oe=window.matchMedia("(prefers-color-scheme: dark)");try{oe.addEventListener("change",({matches:ge})=>{te(ge?"dark":"light")})}catch{oe.addListener(({matches:j})=>{try{te(j?"dark":"light")}catch(Ee){console.error(Ee)}})}},[m]),me.useEffect(()=>{I.length<=1&&U(!1)},[I]),me.useEffect(()=>{const oe=ge=>{var j;if(i.every(Z=>ge[Z]||ge.code===Z)){var ke;U(!0),(ke=V.current)==null||ke.focus()}ge.code==="Escape"&&(document.activeElement===V.current||(j=V.current)!=null&&j.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",oe),()=>document.removeEventListener("keydown",oe)},[i]),me.useEffect(()=>{if(V.current)return()=>{X.current&&(X.current.focus({preventScroll:!0}),X.current=null,se.current=!1)}},[V.current]),me.createElement("section",{ref:n,"aria-label":`${M} ${J}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((oe,ge)=>{var j;const[Ee,ke]=oe.split("-");return I.length?me.createElement("ol",{key:oe,dir:w==="auto"?_x():w,tabIndex:-1,ref:V,className:d,"data-sonner-toaster":!0,"data-sonner-theme":Y,"data-y-position":Ee,"data-x-position":ke,style:{"--front-toast-height":`${((j=D[0])==null?void 0:j.height)||0}px`,"--width":`${$H}px`,"--gap":`${R}px`,...T,...WH(h,g)},onBlur:Z=>{se.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(se.current=!1,X.current&&(X.current.focus({preventScroll:!0}),X.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||se.current||(se.current=!0,X.current=Z.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{F||U(!1)},onDragEnd:()=>U(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},I.filter(Z=>!Z.position&&ge===0||Z.position===oe).map((Z,ae)=>{var Te,Ze;return me.createElement(XH,{key:Z.id,icons:P,index:ae,toast:Z,defaultRichColors:E,duration:(Te=S?.duration)!=null?Te:b,className:S?.className,descriptionClassName:S?.descriptionClassName,invert:r,visibleToasts:A,closeButton:(Ze=S?.closeButton)!=null?Ze:u,interacting:F,position:oe,style:S?.style,unstyled:S?.unstyled,classNames:S?.classNames,cancelButtonStyle:S?.cancelButtonStyle,actionButtonStyle:S?.actionButtonStyle,closeButtonAriaLabel:S?.closeButtonAriaLabel,removeToast:C,toasts:I.filter(Ae=>Ae.position==Z.position),heights:D.filter(Ae=>Ae.position==Z.position),setHeights:B,expandByDefault:l,gap:R,expanded:k,swipeDirections:t.swipeDirections})})):null}))}),eF=({...e})=>v.jsx(JH,{position:"bottom-center",toastOptions:{classNames:{toast:"w-full"}},gap:8,expand:!0,...e});function tF(e){const{id:t,title:n,description:r}=e;return v.jsxs("div",{className:"flex w-full items-start justify-between rounded-xl bg-fg p-3 text-surface",children:[v.jsxs("div",{className:"flex flex-col gap-y-1",children:[v.jsx("p",{className:"font-medium text-sm leading-tight",children:n}),v.jsx("p",{className:"text-surface/70 text-xs",children:r})]}),v.jsxs(on,{size:"icon",variant:"inverse",className:"-top-2 -right-2 relative size-6",onClick:()=>{e9.dismiss(t)},children:[v.jsx(z1,{weight:"bold",className:"!size-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})}function ur(e,t){return e9.custom(n=>v.jsx(tF,{id:n,...e}),t)}var g2={exports:{}},Vc={},v2={exports:{}},y2={};/**
|
|
66
|
+
* @license React
|
|
67
|
+
* scheduler.production.js
|
|
68
|
+
*
|
|
69
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the MIT license found in the
|
|
72
|
+
* LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/var Tx;function nF(){return Tx||(Tx=1,function(e){function t(V,J){var X=V.length;V.push(J);e:for(;0<X;){var se=X-1>>>1,C=V[se];if(0<a(C,J))V[se]=J,V[X]=C,X=se;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var J=V[0],X=V.pop();if(X!==J){V[0]=X;e:for(var se=0,C=V.length,oe=C>>>1;se<oe;){var ge=2*(se+1)-1,j=V[ge],Ee=ge+1,ke=V[Ee];if(0>a(j,X))Ee<C&&0>a(ke,j)?(V[se]=ke,V[Ee]=X,se=Ee):(V[se]=j,V[ge]=X,se=ge);else if(Ee<C&&0>a(ke,X))V[se]=ke,V[Ee]=X,se=Ee;else break e}}return J}function a(V,J){var X=V.sortIndex-J.sortIndex;return X!==0?X:V.id-J.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],h=[],g=1,m=null,E=3,b=!1,T=!1,A=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function M(V){for(var J=n(h);J!==null;){if(J.callback===null)r(h);else if(J.startTime<=V)r(h),J.sortIndex=J.expirationTime,t(d,J);else break;J=n(h)}}function I(V){if(A=!1,M(V),!T)if(n(d)!==null)T=!0,N||(N=!0,F());else{var J=n(h);J!==null&&te(I,J.startTime-V)}}var N=!1,L=-1,D=5,B=-1;function k(){return S?!0:!(e.unstable_now()-B<D)}function U(){if(S=!1,N){var V=e.unstable_now();B=V;var J=!0;try{e:{T=!1,A&&(A=!1,R(L),L=-1),b=!0;var X=E;try{t:{for(M(V),m=n(d);m!==null&&!(m.expirationTime>V&&k());){var se=m.callback;if(typeof se=="function"){m.callback=null,E=m.priorityLevel;var C=se(m.expirationTime<=V);if(V=e.unstable_now(),typeof C=="function"){m.callback=C,M(V),J=!0;break t}m===n(d)&&r(d),M(V)}else r(d);m=n(d)}if(m!==null)J=!0;else{var oe=n(h);oe!==null&&te(I,oe.startTime-V),J=!1}}break e}finally{m=null,E=X,b=!1}J=void 0}}finally{J?F():N=!1}}}var F;if(typeof P=="function")F=function(){P(U)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,Y=Q.port2;Q.port1.onmessage=U,F=function(){Y.postMessage(null)}}else F=function(){w(U,0)};function te(V,J){L=w(function(){V(e.unstable_now())},J)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_next=function(V){switch(E){case 1:case 2:case 3:var J=3;break;default:J=E}var X=E;E=J;try{return V()}finally{E=X}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(V,J){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var X=E;E=V;try{return J()}finally{E=X}},e.unstable_scheduleCallback=function(V,J,X){var se=e.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?se+X:se):X=se,V){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=X+C,V={id:g++,callback:J,priorityLevel:V,startTime:X,expirationTime:C,sortIndex:-1},X>se?(V.sortIndex=X,t(h,V),n(d)===null&&V===n(h)&&(A?(R(L),L=-1):A=!0,te(I,X-se))):(V.sortIndex=C,t(d,V),T||b||(T=!0,N||(N=!0,F()))),V},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(V){var J=E;return function(){var X=E;E=J;try{return V.apply(this,arguments)}finally{E=X}}}}(y2)),y2}var Ax;function rF(){return Ax||(Ax=1,v2.exports=nF()),v2.exports}/**
|
|
74
|
+
* @license React
|
|
75
|
+
* react-dom-client.production.js
|
|
76
|
+
*
|
|
77
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the MIT license found in the
|
|
80
|
+
* LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/var Sx;function aF(){if(Sx)return Vc;Sx=1;var e=rF(),t=U1(),n=NA();function r(s){var o="https://react.dev/errors/"+s;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function i(s){var o=s,c=s;if(s.alternate)for(;o.return;)o=o.return;else{s=o;do o=s,(o.flags&4098)!==0&&(c=o.return),s=o.return;while(s)}return o.tag===3?c:null}function l(s){if(s.tag===13){var o=s.memoizedState;if(o===null&&(s=s.alternate,s!==null&&(o=s.memoizedState)),o!==null)return o.dehydrated}return null}function u(s){if(i(s)!==s)throw Error(r(188))}function d(s){var o=s.alternate;if(!o){if(o=i(s),o===null)throw Error(r(188));return o!==s?null:s}for(var c=s,f=o;;){var y=c.return;if(y===null)break;var x=y.alternate;if(x===null){if(f=y.return,f!==null){c=f;continue}break}if(y.child===x.child){for(x=y.child;x;){if(x===c)return u(y),s;if(x===f)return u(y),o;x=x.sibling}throw Error(r(188))}if(c.return!==f.return)c=y,f=x;else{for(var O=!1,H=y.child;H;){if(H===c){O=!0,c=y,f=x;break}if(H===f){O=!0,f=y,c=x;break}H=H.sibling}if(!O){for(H=x.child;H;){if(H===c){O=!0,c=x,f=y;break}if(H===f){O=!0,f=x,c=y;break}H=H.sibling}if(!O)throw Error(r(189))}}if(c.alternate!==f)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?s:o}function h(s){var o=s.tag;if(o===5||o===26||o===27||o===6)return s;for(s=s.child;s!==null;){if(o=h(s),o!==null)return o;s=s.sibling}return null}var g=Object.assign,m=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),P=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function F(s){return s===null||typeof s!="object"?null:(s=U&&s[U]||s["@@iterator"],typeof s=="function"?s:null)}var Q=Symbol.for("react.client.reference");function Y(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===Q?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case T:return"Fragment";case S:return"Profiler";case A:return"StrictMode";case I:return"Suspense";case N:return"SuspenseList";case B:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case b:return"Portal";case P:return(s.displayName||"Context")+".Provider";case R:return(s._context.displayName||"Context")+".Consumer";case M:var o=s.render;return s=s.displayName,s||(s=o.displayName||o.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case L:return o=s.displayName||null,o!==null?o:Y(s.type)||"Memo";case D:o=s._payload,s=s._init;try{return Y(s(o))}catch{}}return null}var te=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},se=[],C=-1;function oe(s){return{current:s}}function ge(s){0>C||(s.current=se[C],se[C]=null,C--)}function j(s,o){C++,se[C]=s.current,s.current=o}var Ee=oe(null),ke=oe(null),Z=oe(null),ae=oe(null);function Te(s,o){switch(j(Z,o),j(ke,s),j(Ee,null),o.nodeType){case 9:case 11:s=(s=o.documentElement)&&(s=s.namespaceURI)?hE(s):0;break;default:if(s=o.tagName,o=o.namespaceURI)o=hE(o),s=mE(o,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}ge(Ee),j(Ee,s)}function Ze(){ge(Ee),ge(ke),ge(Z)}function Ae(s){s.memoizedState!==null&&j(ae,s);var o=Ee.current,c=mE(o,s.type);o!==c&&(j(ke,s),j(Ee,c))}function Oe(s){ke.current===s&&(ge(Ee),ge(ke)),ae.current===s&&(ge(ae),Mc._currentValue=X)}var et=Object.prototype.hasOwnProperty,ct=e.unstable_scheduleCallback,it=e.unstable_cancelCallback,Ht=e.unstable_shouldYield,_t=e.unstable_requestPaint,st=e.unstable_now,yn=e.unstable_getCurrentPriorityLevel,bt=e.unstable_ImmediatePriority,W=e.unstable_UserBlockingPriority,ce=e.unstable_NormalPriority,pe=e.unstable_LowPriority,Ne=e.unstable_IdlePriority,Le=e.log,je=e.unstable_setDisableYieldValue,ie=null,Se=null;function Be(s){if(typeof Le=="function"&&je(s),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(ie,s)}catch{}}var qe=Math.clz32?Math.clz32:jn,pt=Math.log,Xt=Math.LN2;function jn(s){return s>>>=0,s===0?32:31-(pt(s)/Xt|0)|0}var hn=256,Wn=4194304;function qn(s){var o=s&42;if(o!==0)return o;switch(s&-s){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 s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function ln(s,o,c){var f=s.pendingLanes;if(f===0)return 0;var y=0,x=s.suspendedLanes,O=s.pingedLanes;s=s.warmLanes;var H=f&134217727;return H!==0?(f=H&~x,f!==0?y=qn(f):(O&=H,O!==0?y=qn(O):c||(c=H&~s,c!==0&&(y=qn(c))))):(H=f&~x,H!==0?y=qn(H):O!==0?y=qn(O):c||(c=f&~s,c!==0&&(y=qn(c)))),y===0?0:o!==0&&o!==y&&(o&x)===0&&(x=y&-y,c=o&-o,x>=c||x===32&&(c&4194048)!==0)?o:y}function un(s,o){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&o)===0}function $n(s,o){switch(s){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 Kr(){var s=hn;return hn<<=1,(hn&4194048)===0&&(hn=256),s}function cl(){var s=Wn;return Wn<<=1,(Wn&62914560)===0&&(Wn=4194304),s}function go(s){for(var o=[],c=0;31>c;c++)o.push(s);return o}function as(s,o){s.pendingLanes|=o,o!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function dl(s,o,c,f,y,x){var O=s.pendingLanes;s.pendingLanes=c,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=c,s.entangledLanes&=c,s.errorRecoveryDisabledLanes&=c,s.shellSuspendCounter=0;var H=s.entanglements,K=s.expirationTimes,he=s.hiddenUpdates;for(c=O&~c;0<c;){var we=31-qe(c),Re=1<<we;H[we]=0,K[we]=-1;var ve=he[we];if(ve!==null)for(he[we]=null,we=0;we<ve.length;we++){var be=ve[we];be!==null&&(be.lane&=-536870913)}c&=~Re}f!==0&&dt(s,f,0),x!==0&&y===0&&s.tag!==0&&(s.suspendedLanes|=x&~(O&~o))}function dt(s,o,c){s.pendingLanes|=o,s.suspendedLanes&=~o;var f=31-qe(o);s.entangledLanes|=o,s.entanglements[f]=s.entanglements[f]|1073741824|c&4194090}function Rn(s,o){var c=s.entangledLanes|=o;for(s=s.entanglements;c;){var f=31-qe(c),y=1<<f;y&o|s[f]&o&&(s[f]|=o),c&=~y}}function On(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Jn(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Ia(){var s=J.p;return s!==0?s:(s=window.event,s===void 0?32:DE(s.type))}function Pn(s,o){var c=J.p;try{return J.p=s,o()}finally{J.p=c}}var Nn=Math.random().toString(36).slice(2),_n="__reactFiber$"+Nn,Wt="__reactProps$"+Nn,Hn="__reactContainer$"+Nn,ee="__reactEvents$"+Nn,q="__reactListeners$"+Nn,ne="__reactHandles$"+Nn,xe="__reactResources$"+Nn,ye="__reactMarker$"+Nn;function tt(s){delete s[_n],delete s[Wt],delete s[ee],delete s[q],delete s[ne]}function Je(s){var o=s[_n];if(o)return o;for(var c=s.parentNode;c;){if(o=c[Hn]||c[_n]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(s=yE(s);s!==null;){if(c=s[_n])return c;s=yE(s)}return o}s=c,c=s.parentNode}return null}function Tt(s){if(s=s[_n]||s[Hn]){var o=s.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return s}return null}function Zt(s){var o=s.tag;if(o===5||o===26||o===27||o===6)return s.stateNode;throw Error(r(33))}function Jt(s){var o=s[xe];return o||(o=s[xe]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function at(s){s[ye]=!0}var Yt=new Set,Tn={};function ot(s,o){qt(s,o),qt(s+"Capture",o)}function qt(s,o){for(Tn[s]=o,s=0;s<o.length;s++)Yt.add(o[s])}var Dn=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]*$"),cn={},ja={};function ha(s){return et.call(ja,s)?!0:et.call(cn,s)?!1:Dn.test(s)?ja[s]=!0:(cn[s]=!0,!1)}function Rr(s,o,c){if(ha(o))if(c===null)s.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":s.removeAttribute(o);return;case"boolean":var f=o.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){s.removeAttribute(o);return}}s.setAttribute(o,""+c)}}function Ha(s,o,c){if(c===null)s.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(o);return}s.setAttribute(o,""+c)}}function fr(s,o,c,f){if(f===null)s.removeAttribute(c);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttributeNS(o,c,""+f)}}var Er,Xr;function jr(s){if(Er===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);Er=o&&o[1]||"",Xr=-1<c.stack.indexOf(`
|
|
82
|
+
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
83
|
+
`+Er+s+Xr}var Wr=!1;function Ls(s,o){if(!s||Wr)return"";Wr=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(o){var Re=function(){throw Error()};if(Object.defineProperty(Re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Re,[])}catch(be){var ve=be}Reflect.construct(s,[],Re)}else{try{Re.call()}catch(be){ve=be}s.call(Re.prototype)}}else{try{throw Error()}catch(be){ve=be}(Re=s())&&typeof Re.catch=="function"&&Re.catch(function(){})}}catch(be){if(be&&ve&&typeof be.stack=="string")return[be.stack,ve.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=f.DetermineComponentFrameRoot(),O=x[0],H=x[1];if(O&&H){var K=O.split(`
|
|
84
|
+
`),he=H.split(`
|
|
85
|
+
`);for(y=f=0;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;for(;y<he.length&&!he[y].includes("DetermineComponentFrameRoot");)y++;if(f===K.length||y===he.length)for(f=K.length-1,y=he.length-1;1<=f&&0<=y&&K[f]!==he[y];)y--;for(;1<=f&&0<=y;f--,y--)if(K[f]!==he[y]){if(f!==1||y!==1)do if(f--,y--,0>y||K[f]!==he[y]){var we=`
|
|
86
|
+
`+K[f].replace(" at new "," at ");return s.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",s.displayName)),we}while(1<=f&&0<=y);break}}}finally{Wr=!1,Error.prepareStackTrace=c}return(c=s?s.displayName||s.name:"")?jr(c):""}function cd(s){switch(s.tag){case 26:case 27:case 5:return jr(s.type);case 16:return jr("Lazy");case 13:return jr("Suspense");case 19:return jr("SuspenseList");case 0:case 15:return Ls(s.type,!1);case 11:return Ls(s.type.render,!1);case 1:return Ls(s.type,!0);case 31:return jr("Activity");default:return""}}function $u(s){try{var o="";do o+=cd(s),s=s.return;while(s);return o}catch(c){return`
|
|
87
|
+
Error generating stack: `+c.message+`
|
|
88
|
+
`+c.stack}}function hr(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function vo(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function fl(s){var o=vo(s)?"checked":"value",c=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),f=""+s[o];if(!s.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,x=c.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return y.call(this)},set:function(O){f=""+O,x.call(this,O)}}),Object.defineProperty(s,o,{enumerable:c.enumerable}),{getValue:function(){return f},setValue:function(O){f=""+O},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function yo(s){s._valueTracker||(s._valueTracker=fl(s))}function Qu(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var c=o.getValue(),f="";return s&&(f=vo(s)?s.checked?"true":"false":s.value),s=f,s!==c?(o.setValue(s),!0):!1}function ss(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var VN=/[\n"\\]/g;function ma(s){return s.replace(VN,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Wh(s,o,c,f,y,x,O,H){s.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?s.type=O:s.removeAttribute("type"),o!=null?O==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+hr(o)):s.value!==""+hr(o)&&(s.value=""+hr(o)):O!=="submit"&&O!=="reset"||s.removeAttribute("value"),o!=null?Jh(s,O,hr(o)):c!=null?Jh(s,O,hr(c)):f!=null&&s.removeAttribute("value"),y==null&&x!=null&&(s.defaultChecked=!!x),y!=null&&(s.checked=y&&typeof y!="function"&&typeof y!="symbol"),H!=null&&typeof H!="function"&&typeof H!="symbol"&&typeof H!="boolean"?s.name=""+hr(H):s.removeAttribute("name")}function cy(s,o,c,f,y,x,O,H){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(s.type=x),o!=null||c!=null){if(!(x!=="submit"&&x!=="reset"||o!=null))return;c=c!=null?""+hr(c):"",o=o!=null?""+hr(o):c,H||o===s.value||(s.value=o),s.defaultValue=o}f=f??y,f=typeof f!="function"&&typeof f!="symbol"&&!!f,s.checked=H?s.checked:!!f,s.defaultChecked=!!f,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(s.name=O)}function Jh(s,o,c){o==="number"&&ss(s.ownerDocument)===s||s.defaultValue===""+c||(s.defaultValue=""+c)}function hl(s,o,c,f){if(s=s.options,o){o={};for(var y=0;y<c.length;y++)o["$"+c[y]]=!0;for(c=0;c<s.length;c++)y=o.hasOwnProperty("$"+s[c].value),s[c].selected!==y&&(s[c].selected=y),y&&f&&(s[c].defaultSelected=!0)}else{for(c=""+hr(c),o=null,y=0;y<s.length;y++){if(s[y].value===c){s[y].selected=!0,f&&(s[y].defaultSelected=!0);return}o!==null||s[y].disabled||(o=s[y])}o!==null&&(o.selected=!0)}}function dy(s,o,c){if(o!=null&&(o=""+hr(o),o!==s.value&&(s.value=o),c==null)){s.defaultValue!==o&&(s.defaultValue=o);return}s.defaultValue=c!=null?""+hr(c):""}function fy(s,o,c,f){if(o==null){if(f!=null){if(c!=null)throw Error(r(92));if(te(f)){if(1<f.length)throw Error(r(93));f=f[0]}c=f}c==null&&(c=""),o=c}c=hr(o),s.defaultValue=c,f=s.textContent,f===c&&f!==""&&f!==null&&(s.value=f)}function ml(s,o){if(o){var c=s.firstChild;if(c&&c===s.lastChild&&c.nodeType===3){c.nodeValue=o;return}}s.textContent=o}var zN=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 hy(s,o,c){var f=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?f?s.setProperty(o,""):o==="float"?s.cssFloat="":s[o]="":f?s.setProperty(o,c):typeof c!="number"||c===0||zN.has(o)?o==="float"?s.cssFloat=c:s[o]=(""+c).trim():s[o]=c+"px"}function my(s,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(s=s.style,c!=null){for(var f in c)!c.hasOwnProperty(f)||o!=null&&o.hasOwnProperty(f)||(f.indexOf("--")===0?s.setProperty(f,""):f==="float"?s.cssFloat="":s[f]="");for(var y in o)f=o[y],o.hasOwnProperty(y)&&c[y]!==f&&hy(s,y,f)}else for(var x in o)o.hasOwnProperty(x)&&hy(s,x,o[x])}function em(s){if(s.indexOf("-")===-1)return!1;switch(s){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 ZN=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"]]),qN=/^[\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 dd(s){return qN.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var tm=null;function nm(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var pl=null,gl=null;function py(s){var o=Tt(s);if(o&&(s=o.stateNode)){var c=s[Wt]||null;e:switch(s=o.stateNode,o.type){case"input":if(Wh(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=s;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+ma(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var f=c[o];if(f!==s&&f.form===s.form){var y=f[Wt]||null;if(!y)throw Error(r(90));Wh(f,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<c.length;o++)f=c[o],f.form===s.form&&Qu(f)}break e;case"textarea":dy(s,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&hl(s,!!c.multiple,o,!1)}}}var rm=!1;function gy(s,o,c){if(rm)return s(o,c);rm=!0;try{var f=s(o);return f}finally{if(rm=!1,(pl!==null||gl!==null)&&(Kd(),pl&&(o=pl,s=gl,gl=pl=null,py(o),s)))for(o=0;o<s.length;o++)py(s[o])}}function Yu(s,o){var c=s.stateNode;if(c===null)return null;var f=c[Wt]||null;if(f===null)return null;c=f[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":(f=!f.disabled)||(s=s.type,f=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!f;break e;default:s=!1}if(s)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var Ms=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),am=!1;if(Ms)try{var Gu={};Object.defineProperty(Gu,"passive",{get:function(){am=!0}}),window.addEventListener("test",Gu,Gu),window.removeEventListener("test",Gu,Gu)}catch{am=!1}var Ei=null,sm=null,fd=null;function vy(){if(fd)return fd;var s,o=sm,c=o.length,f,y="value"in Ei?Ei.value:Ei.textContent,x=y.length;for(s=0;s<c&&o[s]===y[s];s++);var O=c-s;for(f=1;f<=O&&o[c-f]===y[x-f];f++);return fd=y.slice(s,1<f?1-f:void 0)}function hd(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function md(){return!0}function yy(){return!1}function Hr(s){function o(c,f,y,x,O){this._reactName=c,this._targetInst=y,this.type=f,this.nativeEvent=x,this.target=O,this.currentTarget=null;for(var H in s)s.hasOwnProperty(H)&&(c=s[H],this[H]=c?c(x):x[H]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?md:yy,this.isPropagationStopped=yy,this}return g(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=md)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=md)},persist:function(){},isPersistent:md}),o}var bo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pd=Hr(bo),Ku=g({},bo,{view:0,detail:0}),$N=Hr(Ku),im,om,Xu,gd=g({},Ku,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:um,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Xu&&(Xu&&s.type==="mousemove"?(im=s.screenX-Xu.screenX,om=s.screenY-Xu.screenY):om=im=0,Xu=s),im)},movementY:function(s){return"movementY"in s?s.movementY:om}}),by=Hr(gd),QN=g({},gd,{dataTransfer:0}),YN=Hr(QN),GN=g({},Ku,{relatedTarget:0}),lm=Hr(GN),KN=g({},bo,{animationName:0,elapsedTime:0,pseudoElement:0}),XN=Hr(KN),WN=g({},bo,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),JN=Hr(WN),ek=g({},bo,{data:0}),Ey=Hr(ek),tk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nk={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"},rk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ak(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=rk[s])?!!o[s]:!1}function um(){return ak}var sk=g({},Ku,{key:function(s){if(s.key){var o=tk[s.key]||s.key;if(o!=="Unidentified")return o}return s.type==="keypress"?(s=hd(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?nk[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:um,charCode:function(s){return s.type==="keypress"?hd(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?hd(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),ik=Hr(sk),ok=g({},gd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xy=Hr(ok),lk=g({},Ku,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:um}),uk=Hr(lk),ck=g({},bo,{propertyName:0,elapsedTime:0,pseudoElement:0}),dk=Hr(ck),fk=g({},gd,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),hk=Hr(fk),mk=g({},bo,{newState:0,oldState:0}),pk=Hr(mk),gk=[9,13,27,32],cm=Ms&&"CompositionEvent"in window,Wu=null;Ms&&"documentMode"in document&&(Wu=document.documentMode);var vk=Ms&&"TextEvent"in window&&!Wu,_y=Ms&&(!cm||Wu&&8<Wu&&11>=Wu),Ty=" ",Ay=!1;function Sy(s,o){switch(s){case"keyup":return gk.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wy(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var vl=!1;function yk(s,o){switch(s){case"compositionend":return wy(o);case"keypress":return o.which!==32?null:(Ay=!0,Ty);case"textInput":return s=o.data,s===Ty&&Ay?null:s;default:return null}}function bk(s,o){if(vl)return s==="compositionend"||!cm&&Sy(s,o)?(s=vy(),fd=sm=Ei=null,vl=!1,s):null;switch(s){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 _y&&o.locale!=="ko"?null:o.data;default:return null}}var Ek={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 Cy(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!Ek[s.type]:o==="textarea"}function Ry(s,o,c,f){pl?gl?gl.push(f):gl=[f]:pl=f,o=nf(o,"onChange"),0<o.length&&(c=new pd("onChange","change",null,c,f),s.push({event:c,listeners:o}))}var Ju=null,ec=null;function xk(s){lE(s,0)}function vd(s){var o=Zt(s);if(Qu(o))return s}function Oy(s,o){if(s==="change")return o}var Ny=!1;if(Ms){var dm;if(Ms){var fm="oninput"in document;if(!fm){var ky=document.createElement("div");ky.setAttribute("oninput","return;"),fm=typeof ky.oninput=="function"}dm=fm}else dm=!1;Ny=dm&&(!document.documentMode||9<document.documentMode)}function Py(){Ju&&(Ju.detachEvent("onpropertychange",Dy),ec=Ju=null)}function Dy(s){if(s.propertyName==="value"&&vd(ec)){var o=[];Ry(o,ec,s,nm(s)),gy(xk,o)}}function _k(s,o,c){s==="focusin"?(Py(),Ju=o,ec=c,Ju.attachEvent("onpropertychange",Dy)):s==="focusout"&&Py()}function Tk(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return vd(ec)}function Ak(s,o){if(s==="click")return vd(o)}function Sk(s,o){if(s==="input"||s==="change")return vd(o)}function wk(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var Jr=typeof Object.is=="function"?Object.is:wk;function tc(s,o){if(Jr(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var c=Object.keys(s),f=Object.keys(o);if(c.length!==f.length)return!1;for(f=0;f<c.length;f++){var y=c[f];if(!et.call(o,y)||!Jr(s[y],o[y]))return!1}return!0}function Ly(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function My(s,o){var c=Ly(s);s=0;for(var f;c;){if(c.nodeType===3){if(f=s+c.textContent.length,s<=o&&f>=o)return{node:c,offset:o-s};s=f}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=Ly(c)}}function Iy(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?Iy(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function jy(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=ss(s.document);o instanceof s.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)s=o.contentWindow;else break;o=ss(s.document)}return o}function hm(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var Ck=Ms&&"documentMode"in document&&11>=document.documentMode,yl=null,mm=null,nc=null,pm=!1;function Hy(s,o,c){var f=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;pm||yl==null||yl!==ss(f)||(f=yl,"selectionStart"in f&&hm(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),nc&&tc(nc,f)||(nc=f,f=nf(mm,"onSelect"),0<f.length&&(o=new pd("onSelect","select",null,o,c),s.push({event:o,listeners:f}),o.target=yl)))}function Eo(s,o){var c={};return c[s.toLowerCase()]=o.toLowerCase(),c["Webkit"+s]="webkit"+o,c["Moz"+s]="moz"+o,c}var bl={animationend:Eo("Animation","AnimationEnd"),animationiteration:Eo("Animation","AnimationIteration"),animationstart:Eo("Animation","AnimationStart"),transitionrun:Eo("Transition","TransitionRun"),transitionstart:Eo("Transition","TransitionStart"),transitioncancel:Eo("Transition","TransitionCancel"),transitionend:Eo("Transition","TransitionEnd")},gm={},Fy={};Ms&&(Fy=document.createElement("div").style,"AnimationEvent"in window||(delete bl.animationend.animation,delete bl.animationiteration.animation,delete bl.animationstart.animation),"TransitionEvent"in window||delete bl.transitionend.transition);function xo(s){if(gm[s])return gm[s];if(!bl[s])return s;var o=bl[s],c;for(c in o)if(o.hasOwnProperty(c)&&c in Fy)return gm[s]=o[c];return s}var Uy=xo("animationend"),By=xo("animationiteration"),Vy=xo("animationstart"),Rk=xo("transitionrun"),Ok=xo("transitionstart"),Nk=xo("transitioncancel"),zy=xo("transitionend"),Zy=new Map,vm="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(" ");vm.push("scrollEnd");function Fa(s,o){Zy.set(s,o),ot(o,[s])}var qy=new WeakMap;function pa(s,o){if(typeof s=="object"&&s!==null){var c=qy.get(s);return c!==void 0?c:(o={value:s,source:o,stack:$u(o)},qy.set(s,o),o)}return{value:s,source:o,stack:$u(o)}}var ga=[],El=0,ym=0;function yd(){for(var s=El,o=ym=El=0;o<s;){var c=ga[o];ga[o++]=null;var f=ga[o];ga[o++]=null;var y=ga[o];ga[o++]=null;var x=ga[o];if(ga[o++]=null,f!==null&&y!==null){var O=f.pending;O===null?y.next=y:(y.next=O.next,O.next=y),f.pending=y}x!==0&&$y(c,y,x)}}function bd(s,o,c,f){ga[El++]=s,ga[El++]=o,ga[El++]=c,ga[El++]=f,ym|=f,s.lanes|=f,s=s.alternate,s!==null&&(s.lanes|=f)}function bm(s,o,c,f){return bd(s,o,c,f),Ed(s)}function xl(s,o){return bd(s,null,null,o),Ed(s)}function $y(s,o,c){s.lanes|=c;var f=s.alternate;f!==null&&(f.lanes|=c);for(var y=!1,x=s.return;x!==null;)x.childLanes|=c,f=x.alternate,f!==null&&(f.childLanes|=c),x.tag===22&&(s=x.stateNode,s===null||s._visibility&1||(y=!0)),s=x,x=x.return;return s.tag===3?(x=s.stateNode,y&&o!==null&&(y=31-qe(c),s=x.hiddenUpdates,f=s[y],f===null?s[y]=[o]:f.push(o),o.lane=c|536870912),x):null}function Ed(s){if(50<Cc)throw Cc=0,Sp=null,Error(r(185));for(var o=s.return;o!==null;)s=o,o=s.return;return s.tag===3?s.stateNode:null}var _l={};function kk(s,o,c,f){this.tag=s,this.key=c,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=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ea(s,o,c,f){return new kk(s,o,c,f)}function Em(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Is(s,o){var c=s.alternate;return c===null?(c=ea(s.tag,o,s.key,s.mode),c.elementType=s.elementType,c.type=s.type,c.stateNode=s.stateNode,c.alternate=s,s.alternate=c):(c.pendingProps=o,c.type=s.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=s.flags&65011712,c.childLanes=s.childLanes,c.lanes=s.lanes,c.child=s.child,c.memoizedProps=s.memoizedProps,c.memoizedState=s.memoizedState,c.updateQueue=s.updateQueue,o=s.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=s.sibling,c.index=s.index,c.ref=s.ref,c.refCleanup=s.refCleanup,c}function Qy(s,o){s.flags&=65011714;var c=s.alternate;return c===null?(s.childLanes=0,s.lanes=o,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,o=c.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),s}function xd(s,o,c,f,y,x){var O=0;if(f=s,typeof s=="function")Em(s)&&(O=1);else if(typeof s=="string")O=DP(s,c,Ee.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case B:return s=ea(31,c,o,y),s.elementType=B,s.lanes=x,s;case T:return _o(c.children,y,x,o);case A:O=8,y|=24;break;case S:return s=ea(12,c,o,y|2),s.elementType=S,s.lanes=x,s;case I:return s=ea(13,c,o,y),s.elementType=I,s.lanes=x,s;case N:return s=ea(19,c,o,y),s.elementType=N,s.lanes=x,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case w:case P:O=10;break e;case R:O=9;break e;case M:O=11;break e;case L:O=14;break e;case D:O=16,f=null;break e}O=29,c=Error(r(130,s===null?"null":typeof s,"")),f=null}return o=ea(O,c,o,y),o.elementType=s,o.type=f,o.lanes=x,o}function _o(s,o,c,f){return s=ea(7,s,f,o),s.lanes=c,s}function xm(s,o,c){return s=ea(6,s,null,o),s.lanes=c,s}function _m(s,o,c){return o=ea(4,s.children!==null?s.children:[],s.key,o),o.lanes=c,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}var Tl=[],Al=0,_d=null,Td=0,va=[],ya=0,To=null,js=1,Hs="";function Ao(s,o){Tl[Al++]=Td,Tl[Al++]=_d,_d=s,Td=o}function Yy(s,o,c){va[ya++]=js,va[ya++]=Hs,va[ya++]=To,To=s;var f=js;s=Hs;var y=32-qe(f)-1;f&=~(1<<y),c+=1;var x=32-qe(o)+y;if(30<x){var O=y-y%5;x=(f&(1<<O)-1).toString(32),f>>=O,y-=O,js=1<<32-qe(o)+y|c<<y|f,Hs=x+s}else js=1<<x|c<<y|f,Hs=s}function Tm(s){s.return!==null&&(Ao(s,1),Yy(s,1,0))}function Am(s){for(;s===_d;)_d=Tl[--Al],Tl[Al]=null,Td=Tl[--Al],Tl[Al]=null;for(;s===To;)To=va[--ya],va[ya]=null,Hs=va[--ya],va[ya]=null,js=va[--ya],va[ya]=null}var Or=null,Ln=null,$t=!1,So=null,is=!1,Sm=Error(r(519));function wo(s){var o=Error(r(418,""));throw sc(pa(o,s)),Sm}function Gy(s){var o=s.stateNode,c=s.type,f=s.memoizedProps;switch(o[_n]=s,o[Wt]=f,c){case"dialog":Pt("cancel",o),Pt("close",o);break;case"iframe":case"object":case"embed":Pt("load",o);break;case"video":case"audio":for(c=0;c<Oc.length;c++)Pt(Oc[c],o);break;case"source":Pt("error",o);break;case"img":case"image":case"link":Pt("error",o),Pt("load",o);break;case"details":Pt("toggle",o);break;case"input":Pt("invalid",o),cy(o,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),yo(o);break;case"select":Pt("invalid",o);break;case"textarea":Pt("invalid",o),fy(o,f.value,f.defaultValue,f.children),yo(o)}c=f.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||f.suppressHydrationWarning===!0||fE(o.textContent,c)?(f.popover!=null&&(Pt("beforetoggle",o),Pt("toggle",o)),f.onScroll!=null&&Pt("scroll",o),f.onScrollEnd!=null&&Pt("scrollend",o),f.onClick!=null&&(o.onclick=rf),o=!0):o=!1,o||wo(s)}function Ky(s){for(Or=s.return;Or;)switch(Or.tag){case 5:case 13:is=!1;return;case 27:case 3:is=!0;return;default:Or=Or.return}}function rc(s){if(s!==Or)return!1;if(!$t)return Ky(s),$t=!0,!1;var o=s.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=s.type,c=!(c!=="form"&&c!=="button")||Bp(s.type,s.memoizedProps)),c=!c),c&&Ln&&wo(s),Ky(s),o===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8)if(c=s.data,c==="/$"){if(o===0){Ln=Ba(s.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;s=s.nextSibling}Ln=null}}else o===27?(o=Ln,Ii(s.type)?(s=qp,qp=null,Ln=s):Ln=o):Ln=Or?Ba(s.stateNode.nextSibling):null;return!0}function ac(){Ln=Or=null,$t=!1}function Xy(){var s=So;return s!==null&&(Br===null?Br=s:Br.push.apply(Br,s),So=null),s}function sc(s){So===null?So=[s]:So.push(s)}var wm=oe(null),Co=null,Fs=null;function xi(s,o,c){j(wm,o._currentValue),o._currentValue=c}function Us(s){s._currentValue=wm.current,ge(wm)}function Cm(s,o,c){for(;s!==null;){var f=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,f!==null&&(f.childLanes|=o)):f!==null&&(f.childLanes&o)!==o&&(f.childLanes|=o),s===c)break;s=s.return}}function Rm(s,o,c,f){var y=s.child;for(y!==null&&(y.return=s);y!==null;){var x=y.dependencies;if(x!==null){var O=y.child;x=x.firstContext;e:for(;x!==null;){var H=x;x=y;for(var K=0;K<o.length;K++)if(H.context===o[K]){x.lanes|=c,H=x.alternate,H!==null&&(H.lanes|=c),Cm(x.return,c,s),f||(O=null);break e}x=H.next}}else if(y.tag===18){if(O=y.return,O===null)throw Error(r(341));O.lanes|=c,x=O.alternate,x!==null&&(x.lanes|=c),Cm(O,c,s),O=null}else O=y.child;if(O!==null)O.return=y;else for(O=y;O!==null;){if(O===s){O=null;break}if(y=O.sibling,y!==null){y.return=O.return,O=y;break}O=O.return}y=O}}function ic(s,o,c,f){s=null;for(var y=o,x=!1;y!==null;){if(!x){if((y.flags&524288)!==0)x=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var O=y.alternate;if(O===null)throw Error(r(387));if(O=O.memoizedProps,O!==null){var H=y.type;Jr(y.pendingProps.value,O.value)||(s!==null?s.push(H):s=[H])}}else if(y===ae.current){if(O=y.alternate,O===null)throw Error(r(387));O.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(s!==null?s.push(Mc):s=[Mc])}y=y.return}s!==null&&Rm(o,s,c,f),o.flags|=262144}function Ad(s){for(s=s.firstContext;s!==null;){if(!Jr(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Ro(s){Co=s,Fs=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function xr(s){return Wy(Co,s)}function Sd(s,o){return Co===null&&Ro(s),Wy(s,o)}function Wy(s,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},Fs===null){if(s===null)throw Error(r(308));Fs=o,s.dependencies={lanes:0,firstContext:o},s.flags|=524288}else Fs=Fs.next=o;return c}var Pk=typeof AbortController<"u"?AbortController:function(){var s=[],o=this.signal={aborted:!1,addEventListener:function(c,f){s.push(f)}};this.abort=function(){o.aborted=!0,s.forEach(function(c){return c()})}},Dk=e.unstable_scheduleCallback,Lk=e.unstable_NormalPriority,er={$$typeof:P,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Om(){return{controller:new Pk,data:new Map,refCount:0}}function oc(s){s.refCount--,s.refCount===0&&Dk(Lk,function(){s.controller.abort()})}var lc=null,Nm=0,Sl=0,wl=null;function Mk(s,o){if(lc===null){var c=lc=[];Nm=0,Sl=Pp(),wl={status:"pending",value:void 0,then:function(f){c.push(f)}}}return Nm++,o.then(Jy,Jy),o}function Jy(){if(--Nm===0&&lc!==null){wl!==null&&(wl.status="fulfilled");var s=lc;lc=null,Sl=0,wl=null;for(var o=0;o<s.length;o++)(0,s[o])()}}function Ik(s,o){var c=[],f={status:"pending",value:null,reason:null,then:function(y){c.push(y)}};return s.then(function(){f.status="fulfilled",f.value=o;for(var y=0;y<c.length;y++)(0,c[y])(o)},function(y){for(f.status="rejected",f.reason=y,y=0;y<c.length;y++)(0,c[y])(void 0)}),f}var eb=V.S;V.S=function(s,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&Mk(s,o),eb!==null&&eb(s,o)};var Oo=oe(null);function km(){var s=Oo.current;return s!==null?s:mn.pooledCache}function wd(s,o){o===null?j(Oo,Oo.current):j(Oo,o.pool)}function tb(){var s=km();return s===null?null:{parent:er._currentValue,pool:s}}var uc=Error(r(460)),nb=Error(r(474)),Cd=Error(r(542)),Pm={then:function(){}};function rb(s){return s=s.status,s==="fulfilled"||s==="rejected"}function Rd(){}function ab(s,o,c){switch(c=s[c],c===void 0?s.push(o):c!==o&&(o.then(Rd,Rd),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,ib(s),s;default:if(typeof o.status=="string")o.then(Rd,Rd);else{if(s=mn,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=o,s.status="pending",s.then(function(f){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=f}},function(f){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=f}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,ib(s),s}throw cc=o,uc}}var cc=null;function sb(){if(cc===null)throw Error(r(459));var s=cc;return cc=null,s}function ib(s){if(s===uc||s===Cd)throw Error(r(483))}var _i=!1;function Dm(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lm(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ti(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Ai(s,o,c){var f=s.updateQueue;if(f===null)return null;if(f=f.shared,(Gt&2)!==0){var y=f.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),f.pending=o,o=Ed(s),$y(s,null,c),o}return bd(s,f,o,c),Ed(s)}function dc(s,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var f=o.lanes;f&=s.pendingLanes,c|=f,o.lanes=c,Rn(s,c)}}function Mm(s,o){var c=s.updateQueue,f=s.alternate;if(f!==null&&(f=f.updateQueue,c===f)){var y=null,x=null;if(c=c.firstBaseUpdate,c!==null){do{var O={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};x===null?y=x=O:x=x.next=O,c=c.next}while(c!==null);x===null?y=x=o:x=x.next=o}else y=x=o;c={baseState:f.baseState,firstBaseUpdate:y,lastBaseUpdate:x,shared:f.shared,callbacks:f.callbacks},s.updateQueue=c;return}s=c.lastBaseUpdate,s===null?c.firstBaseUpdate=o:s.next=o,c.lastBaseUpdate=o}var Im=!1;function fc(){if(Im){var s=wl;if(s!==null)throw s}}function hc(s,o,c,f){Im=!1;var y=s.updateQueue;_i=!1;var x=y.firstBaseUpdate,O=y.lastBaseUpdate,H=y.shared.pending;if(H!==null){y.shared.pending=null;var K=H,he=K.next;K.next=null,O===null?x=he:O.next=he,O=K;var we=s.alternate;we!==null&&(we=we.updateQueue,H=we.lastBaseUpdate,H!==O&&(H===null?we.firstBaseUpdate=he:H.next=he,we.lastBaseUpdate=K))}if(x!==null){var Re=y.baseState;O=0,we=he=K=null,H=x;do{var ve=H.lane&-536870913,be=ve!==H.lane;if(be?(Ft&ve)===ve:(f&ve)===ve){ve!==0&&ve===Sl&&(Im=!0),we!==null&&(we=we.next={lane:0,tag:H.tag,payload:H.payload,callback:null,next:null});e:{var mt=s,ft=H;ve=o;var nn=c;switch(ft.tag){case 1:if(mt=ft.payload,typeof mt=="function"){Re=mt.call(nn,Re,ve);break e}Re=mt;break e;case 3:mt.flags=mt.flags&-65537|128;case 0:if(mt=ft.payload,ve=typeof mt=="function"?mt.call(nn,Re,ve):mt,ve==null)break e;Re=g({},Re,ve);break e;case 2:_i=!0}}ve=H.callback,ve!==null&&(s.flags|=64,be&&(s.flags|=8192),be=y.callbacks,be===null?y.callbacks=[ve]:be.push(ve))}else be={lane:ve,tag:H.tag,payload:H.payload,callback:H.callback,next:null},we===null?(he=we=be,K=Re):we=we.next=be,O|=ve;if(H=H.next,H===null){if(H=y.shared.pending,H===null)break;be=H,H=be.next,be.next=null,y.lastBaseUpdate=be,y.shared.pending=null}}while(!0);we===null&&(K=Re),y.baseState=K,y.firstBaseUpdate=he,y.lastBaseUpdate=we,x===null&&(y.shared.lanes=0),Pi|=O,s.lanes=O,s.memoizedState=Re}}function ob(s,o){if(typeof s!="function")throw Error(r(191,s));s.call(o)}function lb(s,o){var c=s.callbacks;if(c!==null)for(s.callbacks=null,s=0;s<c.length;s++)ob(c[s],o)}var Cl=oe(null),Od=oe(0);function ub(s,o){s=Qs,j(Od,s),j(Cl,o),Qs=s|o.baseLanes}function jm(){j(Od,Qs),j(Cl,Cl.current)}function Hm(){Qs=Od.current,ge(Cl),ge(Od)}var Si=0,Ct=null,en=null,Qn=null,Nd=!1,Rl=!1,No=!1,kd=0,mc=0,Ol=null,jk=0;function Fn(){throw Error(r(321))}function Fm(s,o){if(o===null)return!1;for(var c=0;c<o.length&&c<s.length;c++)if(!Jr(s[c],o[c]))return!1;return!0}function Um(s,o,c,f,y,x){return Si=x,Ct=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,V.H=s===null||s.memoizedState===null?$b:Qb,No=!1,x=c(f,y),No=!1,Rl&&(x=db(o,c,f,y)),cb(s),x}function cb(s){V.H=jd;var o=en!==null&&en.next!==null;if(Si=0,Qn=en=Ct=null,Nd=!1,mc=0,Ol=null,o)throw Error(r(300));s===null||sr||(s=s.dependencies,s!==null&&Ad(s)&&(sr=!0))}function db(s,o,c,f){Ct=s;var y=0;do{if(Rl&&(Ol=null),mc=0,Rl=!1,25<=y)throw Error(r(301));if(y+=1,Qn=en=null,s.updateQueue!=null){var x=s.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}V.H=Zk,x=o(c,f)}while(Rl);return x}function Hk(){var s=V.H,o=s.useState()[0];return o=typeof o.then=="function"?pc(o):o,s=s.useState()[0],(en!==null?en.memoizedState:null)!==s&&(Ct.flags|=1024),o}function Bm(){var s=kd!==0;return kd=0,s}function Vm(s,o,c){o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~c}function zm(s){if(Nd){for(s=s.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}Nd=!1}Si=0,Qn=en=Ct=null,Rl=!1,mc=kd=0,Ol=null}function Fr(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qn===null?Ct.memoizedState=Qn=s:Qn=Qn.next=s,Qn}function Yn(){if(en===null){var s=Ct.alternate;s=s!==null?s.memoizedState:null}else s=en.next;var o=Qn===null?Ct.memoizedState:Qn.next;if(o!==null)Qn=o,en=s;else{if(s===null)throw Ct.alternate===null?Error(r(467)):Error(r(310));en=s,s={memoizedState:en.memoizedState,baseState:en.baseState,baseQueue:en.baseQueue,queue:en.queue,next:null},Qn===null?Ct.memoizedState=Qn=s:Qn=Qn.next=s}return Qn}function Zm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pc(s){var o=mc;return mc+=1,Ol===null&&(Ol=[]),s=ab(Ol,s,o),o=Ct,(Qn===null?o.memoizedState:Qn.next)===null&&(o=o.alternate,V.H=o===null||o.memoizedState===null?$b:Qb),s}function Pd(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return pc(s);if(s.$$typeof===P)return xr(s)}throw Error(r(438,String(s)))}function qm(s){var o=null,c=Ct.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var f=Ct.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(o={data:f.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=Zm(),Ct.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(s),f=0;f<s;f++)c[f]=k;return o.index++,c}function Bs(s,o){return typeof o=="function"?o(s):o}function Dd(s){var o=Yn();return $m(o,en,s)}function $m(s,o,c){var f=s.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=c;var y=s.baseQueue,x=f.pending;if(x!==null){if(y!==null){var O=y.next;y.next=x.next,x.next=O}o.baseQueue=y=x,f.pending=null}if(x=s.baseState,y===null)s.memoizedState=x;else{o=y.next;var H=O=null,K=null,he=o,we=!1;do{var Re=he.lane&-536870913;if(Re!==he.lane?(Ft&Re)===Re:(Si&Re)===Re){var ve=he.revertLane;if(ve===0)K!==null&&(K=K.next={lane:0,revertLane:0,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null}),Re===Sl&&(we=!0);else if((Si&ve)===ve){he=he.next,ve===Sl&&(we=!0);continue}else Re={lane:0,revertLane:he.revertLane,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null},K===null?(H=K=Re,O=x):K=K.next=Re,Ct.lanes|=ve,Pi|=ve;Re=he.action,No&&c(x,Re),x=he.hasEagerState?he.eagerState:c(x,Re)}else ve={lane:Re,revertLane:he.revertLane,action:he.action,hasEagerState:he.hasEagerState,eagerState:he.eagerState,next:null},K===null?(H=K=ve,O=x):K=K.next=ve,Ct.lanes|=Re,Pi|=Re;he=he.next}while(he!==null&&he!==o);if(K===null?O=x:K.next=H,!Jr(x,s.memoizedState)&&(sr=!0,we&&(c=wl,c!==null)))throw c;s.memoizedState=x,s.baseState=O,s.baseQueue=K,f.lastRenderedState=x}return y===null&&(f.lanes=0),[s.memoizedState,f.dispatch]}function Qm(s){var o=Yn(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=s;var f=c.dispatch,y=c.pending,x=o.memoizedState;if(y!==null){c.pending=null;var O=y=y.next;do x=s(x,O.action),O=O.next;while(O!==y);Jr(x,o.memoizedState)||(sr=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),c.lastRenderedState=x}return[x,f]}function fb(s,o,c){var f=Ct,y=Yn(),x=$t;if(x){if(c===void 0)throw Error(r(407));c=c()}else c=o();var O=!Jr((en||y).memoizedState,c);O&&(y.memoizedState=c,sr=!0),y=y.queue;var H=pb.bind(null,f,y,s);if(gc(2048,8,H,[s]),y.getSnapshot!==o||O||Qn!==null&&Qn.memoizedState.tag&1){if(f.flags|=2048,Nl(9,Ld(),mb.bind(null,f,y,c,o),null),mn===null)throw Error(r(349));x||(Si&124)!==0||hb(f,o,c)}return c}function hb(s,o,c){s.flags|=16384,s={getSnapshot:o,value:c},o=Ct.updateQueue,o===null?(o=Zm(),Ct.updateQueue=o,o.stores=[s]):(c=o.stores,c===null?o.stores=[s]:c.push(s))}function mb(s,o,c,f){o.value=c,o.getSnapshot=f,gb(o)&&vb(s)}function pb(s,o,c){return c(function(){gb(o)&&vb(s)})}function gb(s){var o=s.getSnapshot;s=s.value;try{var c=o();return!Jr(s,c)}catch{return!0}}function vb(s){var o=xl(s,2);o!==null&&sa(o,s,2)}function Ym(s){var o=Fr();if(typeof s=="function"){var c=s;if(s=c(),No){Be(!0);try{c()}finally{Be(!1)}}}return o.memoizedState=o.baseState=s,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:s},o}function yb(s,o,c,f){return s.baseState=c,$m(s,en,typeof f=="function"?f:Bs)}function Fk(s,o,c,f,y){if(Id(s))throw Error(r(485));if(s=o.action,s!==null){var x={payload:y,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){x.listeners.push(O)}};V.T!==null?c(!0):x.isTransition=!1,f(x),c=o.pending,c===null?(x.next=o.pending=x,bb(o,x)):(x.next=c.next,o.pending=c.next=x)}}function bb(s,o){var c=o.action,f=o.payload,y=s.state;if(o.isTransition){var x=V.T,O={};V.T=O;try{var H=c(y,f),K=V.S;K!==null&&K(O,H),Eb(s,o,H)}catch(he){Gm(s,o,he)}finally{V.T=x}}else try{x=c(y,f),Eb(s,o,x)}catch(he){Gm(s,o,he)}}function Eb(s,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(f){xb(s,o,f)},function(f){return Gm(s,o,f)}):xb(s,o,c)}function xb(s,o,c){o.status="fulfilled",o.value=c,_b(o),s.state=c,o=s.pending,o!==null&&(c=o.next,c===o?s.pending=null:(c=c.next,o.next=c,bb(s,c)))}function Gm(s,o,c){var f=s.pending;if(s.pending=null,f!==null){f=f.next;do o.status="rejected",o.reason=c,_b(o),o=o.next;while(o!==f)}s.action=null}function _b(s){s=s.listeners;for(var o=0;o<s.length;o++)(0,s[o])()}function Tb(s,o){return o}function Ab(s,o){if($t){var c=mn.formState;if(c!==null){e:{var f=Ct;if($t){if(Ln){t:{for(var y=Ln,x=is;y.nodeType!==8;){if(!x){y=null;break t}if(y=Ba(y.nextSibling),y===null){y=null;break t}}x=y.data,y=x==="F!"||x==="F"?y:null}if(y){Ln=Ba(y.nextSibling),f=y.data==="F!";break e}}wo(f)}f=!1}f&&(o=c[0])}}return c=Fr(),c.memoizedState=c.baseState=o,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tb,lastRenderedState:o},c.queue=f,c=zb.bind(null,Ct,f),f.dispatch=c,f=Ym(!1),x=ep.bind(null,Ct,!1,f.queue),f=Fr(),y={state:o,dispatch:null,action:s,pending:null},f.queue=y,c=Fk.bind(null,Ct,y,x,c),y.dispatch=c,f.memoizedState=s,[o,c,!1]}function Sb(s){var o=Yn();return wb(o,en,s)}function wb(s,o,c){if(o=$m(s,o,Tb)[0],s=Dd(Bs)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var f=pc(o)}catch(O){throw O===uc?Cd:O}else f=o;o=Yn();var y=o.queue,x=y.dispatch;return c!==o.memoizedState&&(Ct.flags|=2048,Nl(9,Ld(),Uk.bind(null,y,c),null)),[f,x,s]}function Uk(s,o){s.action=o}function Cb(s){var o=Yn(),c=en;if(c!==null)return wb(o,c,s);Yn(),o=o.memoizedState,c=Yn();var f=c.queue.dispatch;return c.memoizedState=s,[o,f,!1]}function Nl(s,o,c,f){return s={tag:s,create:c,deps:f,inst:o,next:null},o=Ct.updateQueue,o===null&&(o=Zm(),Ct.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=s.next=s:(f=c.next,c.next=s,s.next=f,o.lastEffect=s),s}function Ld(){return{destroy:void 0,resource:void 0}}function Rb(){return Yn().memoizedState}function Md(s,o,c,f){var y=Fr();f=f===void 0?null:f,Ct.flags|=s,y.memoizedState=Nl(1|o,Ld(),c,f)}function gc(s,o,c,f){var y=Yn();f=f===void 0?null:f;var x=y.memoizedState.inst;en!==null&&f!==null&&Fm(f,en.memoizedState.deps)?y.memoizedState=Nl(o,x,c,f):(Ct.flags|=s,y.memoizedState=Nl(1|o,x,c,f))}function Ob(s,o){Md(8390656,8,s,o)}function Nb(s,o){gc(2048,8,s,o)}function kb(s,o){return gc(4,2,s,o)}function Pb(s,o){return gc(4,4,s,o)}function Db(s,o){if(typeof o=="function"){s=s();var c=o(s);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function Lb(s,o,c){c=c!=null?c.concat([s]):null,gc(4,4,Db.bind(null,o,s),c)}function Km(){}function Mb(s,o){var c=Yn();o=o===void 0?null:o;var f=c.memoizedState;return o!==null&&Fm(o,f[1])?f[0]:(c.memoizedState=[s,o],s)}function Ib(s,o){var c=Yn();o=o===void 0?null:o;var f=c.memoizedState;if(o!==null&&Fm(o,f[1]))return f[0];if(f=s(),No){Be(!0);try{s()}finally{Be(!1)}}return c.memoizedState=[f,o],f}function Xm(s,o,c){return c===void 0||(Si&1073741824)!==0?s.memoizedState=o:(s.memoizedState=c,s=F3(),Ct.lanes|=s,Pi|=s,c)}function jb(s,o,c,f){return Jr(c,o)?c:Cl.current!==null?(s=Xm(s,c,f),Jr(s,o)||(sr=!0),s):(Si&42)===0?(sr=!0,s.memoizedState=c):(s=F3(),Ct.lanes|=s,Pi|=s,o)}function Hb(s,o,c,f,y){var x=J.p;J.p=x!==0&&8>x?x:8;var O=V.T,H={};V.T=H,ep(s,!1,o,c);try{var K=y(),he=V.S;if(he!==null&&he(H,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var we=Ik(K,f);vc(s,o,we,aa(s))}else vc(s,o,f,aa(s))}catch(Re){vc(s,o,{then:function(){},status:"rejected",reason:Re},aa())}finally{J.p=x,V.T=O}}function Bk(){}function Wm(s,o,c,f){if(s.tag!==5)throw Error(r(476));var y=Fb(s).queue;Hb(s,y,o,X,c===null?Bk:function(){return Ub(s),c(f)})}function Fb(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:X},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bs,lastRenderedState:c},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function Ub(s){var o=Fb(s).next.queue;vc(s,o,{},aa())}function Jm(){return xr(Mc)}function Bb(){return Yn().memoizedState}function Vb(){return Yn().memoizedState}function Vk(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var c=aa();s=Ti(c);var f=Ai(o,s,c);f!==null&&(sa(f,o,c),dc(f,o,c)),o={cache:Om()},s.payload=o;return}o=o.return}}function zk(s,o,c){var f=aa();c={lane:f,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Id(s)?Zb(o,c):(c=bm(s,o,c,f),c!==null&&(sa(c,s,f),qb(c,o,f)))}function zb(s,o,c){var f=aa();vc(s,o,c,f)}function vc(s,o,c,f){var y={lane:f,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Id(s))Zb(o,y);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var O=o.lastRenderedState,H=x(O,c);if(y.hasEagerState=!0,y.eagerState=H,Jr(H,O))return bd(s,o,y,0),mn===null&&yd(),!1}catch{}finally{}if(c=bm(s,o,y,f),c!==null)return sa(c,s,f),qb(c,o,f),!0}return!1}function ep(s,o,c,f){if(f={lane:2,revertLane:Pp(),action:f,hasEagerState:!1,eagerState:null,next:null},Id(s)){if(o)throw Error(r(479))}else o=bm(s,c,f,2),o!==null&&sa(o,s,2)}function Id(s){var o=s.alternate;return s===Ct||o!==null&&o===Ct}function Zb(s,o){Rl=Nd=!0;var c=s.pending;c===null?o.next=o:(o.next=c.next,c.next=o),s.pending=o}function qb(s,o,c){if((c&4194048)!==0){var f=o.lanes;f&=s.pendingLanes,c|=f,o.lanes=c,Rn(s,c)}}var jd={readContext:xr,use:Pd,useCallback:Fn,useContext:Fn,useEffect:Fn,useImperativeHandle:Fn,useLayoutEffect:Fn,useInsertionEffect:Fn,useMemo:Fn,useReducer:Fn,useRef:Fn,useState:Fn,useDebugValue:Fn,useDeferredValue:Fn,useTransition:Fn,useSyncExternalStore:Fn,useId:Fn,useHostTransitionStatus:Fn,useFormState:Fn,useActionState:Fn,useOptimistic:Fn,useMemoCache:Fn,useCacheRefresh:Fn},$b={readContext:xr,use:Pd,useCallback:function(s,o){return Fr().memoizedState=[s,o===void 0?null:o],s},useContext:xr,useEffect:Ob,useImperativeHandle:function(s,o,c){c=c!=null?c.concat([s]):null,Md(4194308,4,Db.bind(null,o,s),c)},useLayoutEffect:function(s,o){return Md(4194308,4,s,o)},useInsertionEffect:function(s,o){Md(4,2,s,o)},useMemo:function(s,o){var c=Fr();o=o===void 0?null:o;var f=s();if(No){Be(!0);try{s()}finally{Be(!1)}}return c.memoizedState=[f,o],f},useReducer:function(s,o,c){var f=Fr();if(c!==void 0){var y=c(o);if(No){Be(!0);try{c(o)}finally{Be(!1)}}}else y=o;return f.memoizedState=f.baseState=y,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:y},f.queue=s,s=s.dispatch=zk.bind(null,Ct,s),[f.memoizedState,s]},useRef:function(s){var o=Fr();return s={current:s},o.memoizedState=s},useState:function(s){s=Ym(s);var o=s.queue,c=zb.bind(null,Ct,o);return o.dispatch=c,[s.memoizedState,c]},useDebugValue:Km,useDeferredValue:function(s,o){var c=Fr();return Xm(c,s,o)},useTransition:function(){var s=Ym(!1);return s=Hb.bind(null,Ct,s.queue,!0,!1),Fr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,c){var f=Ct,y=Fr();if($t){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),mn===null)throw Error(r(349));(Ft&124)!==0||hb(f,o,c)}y.memoizedState=c;var x={value:c,getSnapshot:o};return y.queue=x,Ob(pb.bind(null,f,x,s),[s]),f.flags|=2048,Nl(9,Ld(),mb.bind(null,f,x,c,o),null),c},useId:function(){var s=Fr(),o=mn.identifierPrefix;if($t){var c=Hs,f=js;c=(f&~(1<<32-qe(f)-1)).toString(32)+c,o="«"+o+"R"+c,c=kd++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=jk++,o="«"+o+"r"+c.toString(32)+"»";return s.memoizedState=o},useHostTransitionStatus:Jm,useFormState:Ab,useActionState:Ab,useOptimistic:function(s){var o=Fr();o.memoizedState=o.baseState=s;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=ep.bind(null,Ct,!0,c),c.dispatch=o,[s,o]},useMemoCache:qm,useCacheRefresh:function(){return Fr().memoizedState=Vk.bind(null,Ct)}},Qb={readContext:xr,use:Pd,useCallback:Mb,useContext:xr,useEffect:Nb,useImperativeHandle:Lb,useInsertionEffect:kb,useLayoutEffect:Pb,useMemo:Ib,useReducer:Dd,useRef:Rb,useState:function(){return Dd(Bs)},useDebugValue:Km,useDeferredValue:function(s,o){var c=Yn();return jb(c,en.memoizedState,s,o)},useTransition:function(){var s=Dd(Bs)[0],o=Yn().memoizedState;return[typeof s=="boolean"?s:pc(s),o]},useSyncExternalStore:fb,useId:Bb,useHostTransitionStatus:Jm,useFormState:Sb,useActionState:Sb,useOptimistic:function(s,o){var c=Yn();return yb(c,en,s,o)},useMemoCache:qm,useCacheRefresh:Vb},Zk={readContext:xr,use:Pd,useCallback:Mb,useContext:xr,useEffect:Nb,useImperativeHandle:Lb,useInsertionEffect:kb,useLayoutEffect:Pb,useMemo:Ib,useReducer:Qm,useRef:Rb,useState:function(){return Qm(Bs)},useDebugValue:Km,useDeferredValue:function(s,o){var c=Yn();return en===null?Xm(c,s,o):jb(c,en.memoizedState,s,o)},useTransition:function(){var s=Qm(Bs)[0],o=Yn().memoizedState;return[typeof s=="boolean"?s:pc(s),o]},useSyncExternalStore:fb,useId:Bb,useHostTransitionStatus:Jm,useFormState:Cb,useActionState:Cb,useOptimistic:function(s,o){var c=Yn();return en!==null?yb(c,en,s,o):(c.baseState=s,[s,c.queue.dispatch])},useMemoCache:qm,useCacheRefresh:Vb},kl=null,yc=0;function Hd(s){var o=yc;return yc+=1,kl===null&&(kl=[]),ab(kl,s,o)}function bc(s,o){o=o.props.ref,s.ref=o!==void 0?o:null}function Fd(s,o){throw o.$$typeof===m?Error(r(525)):(s=Object.prototype.toString.call(o),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s)))}function Yb(s){var o=s._init;return o(s._payload)}function Gb(s){function o(le,re){if(s){var de=le.deletions;de===null?(le.deletions=[re],le.flags|=16):de.push(re)}}function c(le,re){if(!s)return null;for(;re!==null;)o(le,re),re=re.sibling;return null}function f(le){for(var re=new Map;le!==null;)le.key!==null?re.set(le.key,le):re.set(le.index,le),le=le.sibling;return re}function y(le,re){return le=Is(le,re),le.index=0,le.sibling=null,le}function x(le,re,de){return le.index=de,s?(de=le.alternate,de!==null?(de=de.index,de<re?(le.flags|=67108866,re):de):(le.flags|=67108866,re)):(le.flags|=1048576,re)}function O(le){return s&&le.alternate===null&&(le.flags|=67108866),le}function H(le,re,de,Ce){return re===null||re.tag!==6?(re=xm(de,le.mode,Ce),re.return=le,re):(re=y(re,de),re.return=le,re)}function K(le,re,de,Ce){var Ge=de.type;return Ge===T?we(le,re,de.props.children,Ce,de.key):re!==null&&(re.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===D&&Yb(Ge)===re.type)?(re=y(re,de.props),bc(re,de),re.return=le,re):(re=xd(de.type,de.key,de.props,null,le.mode,Ce),bc(re,de),re.return=le,re)}function he(le,re,de,Ce){return re===null||re.tag!==4||re.stateNode.containerInfo!==de.containerInfo||re.stateNode.implementation!==de.implementation?(re=_m(de,le.mode,Ce),re.return=le,re):(re=y(re,de.children||[]),re.return=le,re)}function we(le,re,de,Ce,Ge){return re===null||re.tag!==7?(re=_o(de,le.mode,Ce,Ge),re.return=le,re):(re=y(re,de),re.return=le,re)}function Re(le,re,de){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=xm(""+re,le.mode,de),re.return=le,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case E:return de=xd(re.type,re.key,re.props,null,le.mode,de),bc(de,re),de.return=le,de;case b:return re=_m(re,le.mode,de),re.return=le,re;case D:var Ce=re._init;return re=Ce(re._payload),Re(le,re,de)}if(te(re)||F(re))return re=_o(re,le.mode,de,null),re.return=le,re;if(typeof re.then=="function")return Re(le,Hd(re),de);if(re.$$typeof===P)return Re(le,Sd(le,re),de);Fd(le,re)}return null}function ve(le,re,de,Ce){var Ge=re!==null?re.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return Ge!==null?null:H(le,re,""+de,Ce);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case E:return de.key===Ge?K(le,re,de,Ce):null;case b:return de.key===Ge?he(le,re,de,Ce):null;case D:return Ge=de._init,de=Ge(de._payload),ve(le,re,de,Ce)}if(te(de)||F(de))return Ge!==null?null:we(le,re,de,Ce,null);if(typeof de.then=="function")return ve(le,re,Hd(de),Ce);if(de.$$typeof===P)return ve(le,re,Sd(le,de),Ce);Fd(le,de)}return null}function be(le,re,de,Ce,Ge){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return le=le.get(de)||null,H(re,le,""+Ce,Ge);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case E:return le=le.get(Ce.key===null?de:Ce.key)||null,K(re,le,Ce,Ge);case b:return le=le.get(Ce.key===null?de:Ce.key)||null,he(re,le,Ce,Ge);case D:var Ot=Ce._init;return Ce=Ot(Ce._payload),be(le,re,de,Ce,Ge)}if(te(Ce)||F(Ce))return le=le.get(de)||null,we(re,le,Ce,Ge,null);if(typeof Ce.then=="function")return be(le,re,de,Hd(Ce),Ge);if(Ce.$$typeof===P)return be(le,re,de,Sd(re,Ce),Ge);Fd(re,Ce)}return null}function mt(le,re,de,Ce){for(var Ge=null,Ot=null,rt=re,ht=re=0,or=null;rt!==null&&ht<de.length;ht++){rt.index>ht?(or=rt,rt=null):or=rt.sibling;var Vt=ve(le,rt,de[ht],Ce);if(Vt===null){rt===null&&(rt=or);break}s&&rt&&Vt.alternate===null&&o(le,rt),re=x(Vt,re,ht),Ot===null?Ge=Vt:Ot.sibling=Vt,Ot=Vt,rt=or}if(ht===de.length)return c(le,rt),$t&&Ao(le,ht),Ge;if(rt===null){for(;ht<de.length;ht++)rt=Re(le,de[ht],Ce),rt!==null&&(re=x(rt,re,ht),Ot===null?Ge=rt:Ot.sibling=rt,Ot=rt);return $t&&Ao(le,ht),Ge}for(rt=f(rt);ht<de.length;ht++)or=be(rt,le,ht,de[ht],Ce),or!==null&&(s&&or.alternate!==null&&rt.delete(or.key===null?ht:or.key),re=x(or,re,ht),Ot===null?Ge=or:Ot.sibling=or,Ot=or);return s&&rt.forEach(function(Bi){return o(le,Bi)}),$t&&Ao(le,ht),Ge}function ft(le,re,de,Ce){if(de==null)throw Error(r(151));for(var Ge=null,Ot=null,rt=re,ht=re=0,or=null,Vt=de.next();rt!==null&&!Vt.done;ht++,Vt=de.next()){rt.index>ht?(or=rt,rt=null):or=rt.sibling;var Bi=ve(le,rt,Vt.value,Ce);if(Bi===null){rt===null&&(rt=or);break}s&&rt&&Bi.alternate===null&&o(le,rt),re=x(Bi,re,ht),Ot===null?Ge=Bi:Ot.sibling=Bi,Ot=Bi,rt=or}if(Vt.done)return c(le,rt),$t&&Ao(le,ht),Ge;if(rt===null){for(;!Vt.done;ht++,Vt=de.next())Vt=Re(le,Vt.value,Ce),Vt!==null&&(re=x(Vt,re,ht),Ot===null?Ge=Vt:Ot.sibling=Vt,Ot=Vt);return $t&&Ao(le,ht),Ge}for(rt=f(rt);!Vt.done;ht++,Vt=de.next())Vt=be(rt,le,ht,Vt.value,Ce),Vt!==null&&(s&&Vt.alternate!==null&&rt.delete(Vt.key===null?ht:Vt.key),re=x(Vt,re,ht),Ot===null?Ge=Vt:Ot.sibling=Vt,Ot=Vt);return s&&rt.forEach(function(qP){return o(le,qP)}),$t&&Ao(le,ht),Ge}function nn(le,re,de,Ce){if(typeof de=="object"&&de!==null&&de.type===T&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case E:e:{for(var Ge=de.key;re!==null;){if(re.key===Ge){if(Ge=de.type,Ge===T){if(re.tag===7){c(le,re.sibling),Ce=y(re,de.props.children),Ce.return=le,le=Ce;break e}}else if(re.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===D&&Yb(Ge)===re.type){c(le,re.sibling),Ce=y(re,de.props),bc(Ce,de),Ce.return=le,le=Ce;break e}c(le,re);break}else o(le,re);re=re.sibling}de.type===T?(Ce=_o(de.props.children,le.mode,Ce,de.key),Ce.return=le,le=Ce):(Ce=xd(de.type,de.key,de.props,null,le.mode,Ce),bc(Ce,de),Ce.return=le,le=Ce)}return O(le);case b:e:{for(Ge=de.key;re!==null;){if(re.key===Ge)if(re.tag===4&&re.stateNode.containerInfo===de.containerInfo&&re.stateNode.implementation===de.implementation){c(le,re.sibling),Ce=y(re,de.children||[]),Ce.return=le,le=Ce;break e}else{c(le,re);break}else o(le,re);re=re.sibling}Ce=_m(de,le.mode,Ce),Ce.return=le,le=Ce}return O(le);case D:return Ge=de._init,de=Ge(de._payload),nn(le,re,de,Ce)}if(te(de))return mt(le,re,de,Ce);if(F(de)){if(Ge=F(de),typeof Ge!="function")throw Error(r(150));return de=Ge.call(de),ft(le,re,de,Ce)}if(typeof de.then=="function")return nn(le,re,Hd(de),Ce);if(de.$$typeof===P)return nn(le,re,Sd(le,de),Ce);Fd(le,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(de=""+de,re!==null&&re.tag===6?(c(le,re.sibling),Ce=y(re,de),Ce.return=le,le=Ce):(c(le,re),Ce=xm(de,le.mode,Ce),Ce.return=le,le=Ce),O(le)):c(le,re)}return function(le,re,de,Ce){try{yc=0;var Ge=nn(le,re,de,Ce);return kl=null,Ge}catch(rt){if(rt===uc||rt===Cd)throw rt;var Ot=ea(29,rt,null,le.mode);return Ot.lanes=Ce,Ot.return=le,Ot}finally{}}}var Pl=Gb(!0),Kb=Gb(!1),ba=oe(null),os=null;function wi(s){var o=s.alternate;j(tr,tr.current&1),j(ba,s),os===null&&(o===null||Cl.current!==null||o.memoizedState!==null)&&(os=s)}function Xb(s){if(s.tag===22){if(j(tr,tr.current),j(ba,s),os===null){var o=s.alternate;o!==null&&o.memoizedState!==null&&(os=s)}}else Ci()}function Ci(){j(tr,tr.current),j(ba,ba.current)}function Vs(s){ge(ba),os===s&&(os=null),ge(tr)}var tr=oe(0);function Ud(s){for(var o=s;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||Zp(c)))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===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function tp(s,o,c,f){o=s.memoizedState,c=c(f,o),c=c==null?o:g({},o,c),s.memoizedState=c,s.lanes===0&&(s.updateQueue.baseState=c)}var np={enqueueSetState:function(s,o,c){s=s._reactInternals;var f=aa(),y=Ti(f);y.payload=o,c!=null&&(y.callback=c),o=Ai(s,y,f),o!==null&&(sa(o,s,f),dc(o,s,f))},enqueueReplaceState:function(s,o,c){s=s._reactInternals;var f=aa(),y=Ti(f);y.tag=1,y.payload=o,c!=null&&(y.callback=c),o=Ai(s,y,f),o!==null&&(sa(o,s,f),dc(o,s,f))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var c=aa(),f=Ti(c);f.tag=2,o!=null&&(f.callback=o),o=Ai(s,f,c),o!==null&&(sa(o,s,c),dc(o,s,c))}};function Wb(s,o,c,f,y,x,O){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(f,x,O):o.prototype&&o.prototype.isPureReactComponent?!tc(c,f)||!tc(y,x):!0}function Jb(s,o,c,f){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,f),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,f),o.state!==s&&np.enqueueReplaceState(o,o.state,null)}function ko(s,o){var c=o;if("ref"in o){c={};for(var f in o)f!=="ref"&&(c[f]=o[f])}if(s=s.defaultProps){c===o&&(c=g({},c));for(var y in s)c[y]===void 0&&(c[y]=s[y])}return c}var Bd=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function e3(s){Bd(s)}function t3(s){console.error(s)}function n3(s){Bd(s)}function Vd(s,o){try{var c=s.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(f){setTimeout(function(){throw f})}}function r3(s,o,c){try{var f=s.onCaughtError;f(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function rp(s,o,c){return c=Ti(c),c.tag=3,c.payload={element:null},c.callback=function(){Vd(s,o)},c}function a3(s){return s=Ti(s),s.tag=3,s}function s3(s,o,c,f){var y=c.type.getDerivedStateFromError;if(typeof y=="function"){var x=f.value;s.payload=function(){return y(x)},s.callback=function(){r3(o,c,f)}}var O=c.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(s.callback=function(){r3(o,c,f),typeof y!="function"&&(Di===null?Di=new Set([this]):Di.add(this));var H=f.stack;this.componentDidCatch(f.value,{componentStack:H!==null?H:""})})}function qk(s,o,c,f,y){if(c.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(o=c.alternate,o!==null&&ic(o,c,y,!0),c=ba.current,c!==null){switch(c.tag){case 13:return os===null?Cp():c.alternate===null&&Mn===0&&(Mn=3),c.flags&=-257,c.flags|=65536,c.lanes=y,f===Pm?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([f]):o.add(f),Op(s,f,y)),!1;case 22:return c.flags|=65536,f===Pm?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([f])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([f]):c.add(f)),Op(s,f,y)),!1}throw Error(r(435,c.tag))}return Op(s,f,y),Cp(),!1}if($t)return o=ba.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,f!==Sm&&(s=Error(r(422),{cause:f}),sc(pa(s,c)))):(f!==Sm&&(o=Error(r(423),{cause:f}),sc(pa(o,c))),s=s.current.alternate,s.flags|=65536,y&=-y,s.lanes|=y,f=pa(f,c),y=rp(s.stateNode,f,y),Mm(s,y),Mn!==4&&(Mn=2)),!1;var x=Error(r(520),{cause:f});if(x=pa(x,c),wc===null?wc=[x]:wc.push(x),Mn!==4&&(Mn=2),o===null)return!0;f=pa(f,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,s=y&-y,c.lanes|=s,s=rp(c.stateNode,f,s),Mm(c,s),!1;case 1:if(o=c.type,x=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Di===null||!Di.has(x))))return c.flags|=65536,y&=-y,c.lanes|=y,y=a3(y),s3(y,s,c,f),Mm(c,y),!1}c=c.return}while(c!==null);return!1}var i3=Error(r(461)),sr=!1;function mr(s,o,c,f){o.child=s===null?Kb(o,null,c,f):Pl(o,s.child,c,f)}function o3(s,o,c,f,y){c=c.render;var x=o.ref;if("ref"in f){var O={};for(var H in f)H!=="ref"&&(O[H]=f[H])}else O=f;return Ro(o),f=Um(s,o,c,O,x,y),H=Bm(),s!==null&&!sr?(Vm(s,o,y),zs(s,o,y)):($t&&H&&Tm(o),o.flags|=1,mr(s,o,f,y),o.child)}function l3(s,o,c,f,y){if(s===null){var x=c.type;return typeof x=="function"&&!Em(x)&&x.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=x,u3(s,o,x,f,y)):(s=xd(c.type,null,f,o,o.mode,y),s.ref=o.ref,s.return=o,o.child=s)}if(x=s.child,!dp(s,y)){var O=x.memoizedProps;if(c=c.compare,c=c!==null?c:tc,c(O,f)&&s.ref===o.ref)return zs(s,o,y)}return o.flags|=1,s=Is(x,f),s.ref=o.ref,s.return=o,o.child=s}function u3(s,o,c,f,y){if(s!==null){var x=s.memoizedProps;if(tc(x,f)&&s.ref===o.ref)if(sr=!1,o.pendingProps=f=x,dp(s,y))(s.flags&131072)!==0&&(sr=!0);else return o.lanes=s.lanes,zs(s,o,y)}return ap(s,o,c,f,y)}function c3(s,o,c){var f=o.pendingProps,y=f.children,x=s!==null?s.memoizedState:null;if(f.mode==="hidden"){if((o.flags&128)!==0){if(f=x!==null?x.baseLanes|c:c,s!==null){for(y=o.child=s.child,x=0;y!==null;)x=x|y.lanes|y.childLanes,y=y.sibling;o.childLanes=x&~f}else o.childLanes=0,o.child=null;return d3(s,o,f,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},s!==null&&wd(o,x!==null?x.cachePool:null),x!==null?ub(o,x):jm(),Xb(o);else return o.lanes=o.childLanes=536870912,d3(s,o,x!==null?x.baseLanes|c:c,c)}else x!==null?(wd(o,x.cachePool),ub(o,x),Ci(),o.memoizedState=null):(s!==null&&wd(o,null),jm(),Ci());return mr(s,o,y,c),o.child}function d3(s,o,c,f){var y=km();return y=y===null?null:{parent:er._currentValue,pool:y},o.memoizedState={baseLanes:c,cachePool:y},s!==null&&wd(o,null),jm(),Xb(o),s!==null&&ic(s,o,f,!0),null}function zd(s,o){var c=o.ref;if(c===null)s!==null&&s.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(s===null||s.ref!==c)&&(o.flags|=4194816)}}function ap(s,o,c,f,y){return Ro(o),c=Um(s,o,c,f,void 0,y),f=Bm(),s!==null&&!sr?(Vm(s,o,y),zs(s,o,y)):($t&&f&&Tm(o),o.flags|=1,mr(s,o,c,y),o.child)}function f3(s,o,c,f,y,x){return Ro(o),o.updateQueue=null,c=db(o,f,c,y),cb(s),f=Bm(),s!==null&&!sr?(Vm(s,o,x),zs(s,o,x)):($t&&f&&Tm(o),o.flags|=1,mr(s,o,c,x),o.child)}function h3(s,o,c,f,y){if(Ro(o),o.stateNode===null){var x=_l,O=c.contextType;typeof O=="object"&&O!==null&&(x=xr(O)),x=new c(f,x),o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=np,o.stateNode=x,x._reactInternals=o,x=o.stateNode,x.props=f,x.state=o.memoizedState,x.refs={},Dm(o),O=c.contextType,x.context=typeof O=="object"&&O!==null?xr(O):_l,x.state=o.memoizedState,O=c.getDerivedStateFromProps,typeof O=="function"&&(tp(o,c,O,f),x.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(O=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),O!==x.state&&np.enqueueReplaceState(x,x.state,null),hc(o,f,x,y),fc(),x.state=o.memoizedState),typeof x.componentDidMount=="function"&&(o.flags|=4194308),f=!0}else if(s===null){x=o.stateNode;var H=o.memoizedProps,K=ko(c,H);x.props=K;var he=x.context,we=c.contextType;O=_l,typeof we=="object"&&we!==null&&(O=xr(we));var Re=c.getDerivedStateFromProps;we=typeof Re=="function"||typeof x.getSnapshotBeforeUpdate=="function",H=o.pendingProps!==H,we||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(H||he!==O)&&Jb(o,x,f,O),_i=!1;var ve=o.memoizedState;x.state=ve,hc(o,f,x,y),fc(),he=o.memoizedState,H||ve!==he||_i?(typeof Re=="function"&&(tp(o,c,Re,f),he=o.memoizedState),(K=_i||Wb(o,c,K,f,ve,he,O))?(we||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(o.flags|=4194308)):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=f,o.memoizedState=he),x.props=f,x.state=he,x.context=O,f=K):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),f=!1)}else{x=o.stateNode,Lm(s,o),O=o.memoizedProps,we=ko(c,O),x.props=we,Re=o.pendingProps,ve=x.context,he=c.contextType,K=_l,typeof he=="object"&&he!==null&&(K=xr(he)),H=c.getDerivedStateFromProps,(he=typeof H=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(O!==Re||ve!==K)&&Jb(o,x,f,K),_i=!1,ve=o.memoizedState,x.state=ve,hc(o,f,x,y),fc();var be=o.memoizedState;O!==Re||ve!==be||_i||s!==null&&s.dependencies!==null&&Ad(s.dependencies)?(typeof H=="function"&&(tp(o,c,H,f),be=o.memoizedState),(we=_i||Wb(o,c,we,f,ve,be,K)||s!==null&&s.dependencies!==null&&Ad(s.dependencies))?(he||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,be,K),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,be,K)),typeof x.componentDidUpdate=="function"&&(o.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof x.componentDidUpdate!="function"||O===s.memoizedProps&&ve===s.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||O===s.memoizedProps&&ve===s.memoizedState||(o.flags|=1024),o.memoizedProps=f,o.memoizedState=be),x.props=f,x.state=be,x.context=K,f=we):(typeof x.componentDidUpdate!="function"||O===s.memoizedProps&&ve===s.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||O===s.memoizedProps&&ve===s.memoizedState||(o.flags|=1024),f=!1)}return x=f,zd(s,o),f=(o.flags&128)!==0,x||f?(x=o.stateNode,c=f&&typeof c.getDerivedStateFromError!="function"?null:x.render(),o.flags|=1,s!==null&&f?(o.child=Pl(o,s.child,null,y),o.child=Pl(o,null,c,y)):mr(s,o,c,y),o.memoizedState=x.state,s=o.child):s=zs(s,o,y),s}function m3(s,o,c,f){return ac(),o.flags|=256,mr(s,o,c,f),o.child}var sp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ip(s){return{baseLanes:s,cachePool:tb()}}function op(s,o,c){return s=s!==null?s.childLanes&~c:0,o&&(s|=Ea),s}function p3(s,o,c){var f=o.pendingProps,y=!1,x=(o.flags&128)!==0,O;if((O=x)||(O=s!==null&&s.memoizedState===null?!1:(tr.current&2)!==0),O&&(y=!0,o.flags&=-129),O=(o.flags&32)!==0,o.flags&=-33,s===null){if($t){if(y?wi(o):Ci(),$t){var H=Ln,K;if(K=H){e:{for(K=H,H=is;K.nodeType!==8;){if(!H){H=null;break e}if(K=Ba(K.nextSibling),K===null){H=null;break e}}H=K}H!==null?(o.memoizedState={dehydrated:H,treeContext:To!==null?{id:js,overflow:Hs}:null,retryLane:536870912,hydrationErrors:null},K=ea(18,null,null,0),K.stateNode=H,K.return=o,o.child=K,Or=o,Ln=null,K=!0):K=!1}K||wo(o)}if(H=o.memoizedState,H!==null&&(H=H.dehydrated,H!==null))return Zp(H)?o.lanes=32:o.lanes=536870912,null;Vs(o)}return H=f.children,f=f.fallback,y?(Ci(),y=o.mode,H=Zd({mode:"hidden",children:H},y),f=_o(f,y,c,null),H.return=o,f.return=o,H.sibling=f,o.child=H,y=o.child,y.memoizedState=ip(c),y.childLanes=op(s,O,c),o.memoizedState=sp,f):(wi(o),lp(o,H))}if(K=s.memoizedState,K!==null&&(H=K.dehydrated,H!==null)){if(x)o.flags&256?(wi(o),o.flags&=-257,o=up(s,o,c)):o.memoizedState!==null?(Ci(),o.child=s.child,o.flags|=128,o=null):(Ci(),y=f.fallback,H=o.mode,f=Zd({mode:"visible",children:f.children},H),y=_o(y,H,c,null),y.flags|=2,f.return=o,y.return=o,f.sibling=y,o.child=f,Pl(o,s.child,null,c),f=o.child,f.memoizedState=ip(c),f.childLanes=op(s,O,c),o.memoizedState=sp,o=y);else if(wi(o),Zp(H)){if(O=H.nextSibling&&H.nextSibling.dataset,O)var he=O.dgst;O=he,f=Error(r(419)),f.stack="",f.digest=O,sc({value:f,source:null,stack:null}),o=up(s,o,c)}else if(sr||ic(s,o,c,!1),O=(c&s.childLanes)!==0,sr||O){if(O=mn,O!==null&&(f=c&-c,f=(f&42)!==0?1:On(f),f=(f&(O.suspendedLanes|c))!==0?0:f,f!==0&&f!==K.retryLane))throw K.retryLane=f,xl(s,f),sa(O,s,f),i3;H.data==="$?"||Cp(),o=up(s,o,c)}else H.data==="$?"?(o.flags|=192,o.child=s.child,o=null):(s=K.treeContext,Ln=Ba(H.nextSibling),Or=o,$t=!0,So=null,is=!1,s!==null&&(va[ya++]=js,va[ya++]=Hs,va[ya++]=To,js=s.id,Hs=s.overflow,To=o),o=lp(o,f.children),o.flags|=4096);return o}return y?(Ci(),y=f.fallback,H=o.mode,K=s.child,he=K.sibling,f=Is(K,{mode:"hidden",children:f.children}),f.subtreeFlags=K.subtreeFlags&65011712,he!==null?y=Is(he,y):(y=_o(y,H,c,null),y.flags|=2),y.return=o,f.return=o,f.sibling=y,o.child=f,f=y,y=o.child,H=s.child.memoizedState,H===null?H=ip(c):(K=H.cachePool,K!==null?(he=er._currentValue,K=K.parent!==he?{parent:he,pool:he}:K):K=tb(),H={baseLanes:H.baseLanes|c,cachePool:K}),y.memoizedState=H,y.childLanes=op(s,O,c),o.memoizedState=sp,f):(wi(o),c=s.child,s=c.sibling,c=Is(c,{mode:"visible",children:f.children}),c.return=o,c.sibling=null,s!==null&&(O=o.deletions,O===null?(o.deletions=[s],o.flags|=16):O.push(s)),o.child=c,o.memoizedState=null,c)}function lp(s,o){return o=Zd({mode:"visible",children:o},s.mode),o.return=s,s.child=o}function Zd(s,o){return s=ea(22,s,null,o),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function up(s,o,c){return Pl(o,s.child,null,c),s=lp(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function g3(s,o,c){s.lanes|=o;var f=s.alternate;f!==null&&(f.lanes|=o),Cm(s.return,o,c)}function cp(s,o,c,f,y){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:f,tail:c,tailMode:y}:(x.isBackwards=o,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=c,x.tailMode=y)}function v3(s,o,c){var f=o.pendingProps,y=f.revealOrder,x=f.tail;if(mr(s,o,f.children,c),f=tr.current,(f&2)!==0)f=f&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&g3(s,c,o);else if(s.tag===19)g3(s,c,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}f&=1}switch(j(tr,f),y){case"forwards":for(c=o.child,y=null;c!==null;)s=c.alternate,s!==null&&Ud(s)===null&&(y=c),c=c.sibling;c=y,c===null?(y=o.child,o.child=null):(y=c.sibling,c.sibling=null),cp(o,!1,y,c,x);break;case"backwards":for(c=null,y=o.child,o.child=null;y!==null;){if(s=y.alternate,s!==null&&Ud(s)===null){o.child=y;break}s=y.sibling,y.sibling=c,c=y,y=s}cp(o,!0,c,null,x);break;case"together":cp(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function zs(s,o,c){if(s!==null&&(o.dependencies=s.dependencies),Pi|=o.lanes,(c&o.childLanes)===0)if(s!==null){if(ic(s,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(s!==null&&o.child!==s.child)throw Error(r(153));if(o.child!==null){for(s=o.child,c=Is(s,s.pendingProps),o.child=c,c.return=o;s.sibling!==null;)s=s.sibling,c=c.sibling=Is(s,s.pendingProps),c.return=o;c.sibling=null}return o.child}function dp(s,o){return(s.lanes&o)!==0?!0:(s=s.dependencies,!!(s!==null&&Ad(s)))}function $k(s,o,c){switch(o.tag){case 3:Te(o,o.stateNode.containerInfo),xi(o,er,s.memoizedState.cache),ac();break;case 27:case 5:Ae(o);break;case 4:Te(o,o.stateNode.containerInfo);break;case 10:xi(o,o.type,o.memoizedProps.value);break;case 13:var f=o.memoizedState;if(f!==null)return f.dehydrated!==null?(wi(o),o.flags|=128,null):(c&o.child.childLanes)!==0?p3(s,o,c):(wi(o),s=zs(s,o,c),s!==null?s.sibling:null);wi(o);break;case 19:var y=(s.flags&128)!==0;if(f=(c&o.childLanes)!==0,f||(ic(s,o,c,!1),f=(c&o.childLanes)!==0),y){if(f)return v3(s,o,c);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),j(tr,tr.current),f)break;return null;case 22:case 23:return o.lanes=0,c3(s,o,c);case 24:xi(o,er,s.memoizedState.cache)}return zs(s,o,c)}function y3(s,o,c){if(s!==null)if(s.memoizedProps!==o.pendingProps)sr=!0;else{if(!dp(s,c)&&(o.flags&128)===0)return sr=!1,$k(s,o,c);sr=(s.flags&131072)!==0}else sr=!1,$t&&(o.flags&1048576)!==0&&Yy(o,Td,o.index);switch(o.lanes=0,o.tag){case 16:e:{s=o.pendingProps;var f=o.elementType,y=f._init;if(f=y(f._payload),o.type=f,typeof f=="function")Em(f)?(s=ko(f,s),o.tag=1,o=h3(null,o,f,s,c)):(o.tag=0,o=ap(null,o,f,s,c));else{if(f!=null){if(y=f.$$typeof,y===M){o.tag=11,o=o3(null,o,f,s,c);break e}else if(y===L){o.tag=14,o=l3(null,o,f,s,c);break e}}throw o=Y(f)||f,Error(r(306,o,""))}}return o;case 0:return ap(s,o,o.type,o.pendingProps,c);case 1:return f=o.type,y=ko(f,o.pendingProps),h3(s,o,f,y,c);case 3:e:{if(Te(o,o.stateNode.containerInfo),s===null)throw Error(r(387));f=o.pendingProps;var x=o.memoizedState;y=x.element,Lm(s,o),hc(o,f,null,c);var O=o.memoizedState;if(f=O.cache,xi(o,er,f),f!==x.cache&&Rm(o,[er],c,!0),fc(),f=O.element,x.isDehydrated)if(x={element:f,isDehydrated:!1,cache:O.cache},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){o=m3(s,o,f,c);break e}else if(f!==y){y=pa(Error(r(424)),o),sc(y),o=m3(s,o,f,c);break e}else{switch(s=o.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(Ln=Ba(s.firstChild),Or=o,$t=!0,So=null,is=!0,c=Kb(o,null,f,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(ac(),f===y){o=zs(s,o,c);break e}mr(s,o,f,c)}o=o.child}return o;case 26:return zd(s,o),s===null?(c=_E(o.type,null,o.pendingProps,null))?o.memoizedState=c:$t||(c=o.type,s=o.pendingProps,f=af(Z.current).createElement(c),f[_n]=o,f[Wt]=s,gr(f,c,s),at(f),o.stateNode=f):o.memoizedState=_E(o.type,s.memoizedProps,o.pendingProps,s.memoizedState),null;case 27:return Ae(o),s===null&&$t&&(f=o.stateNode=bE(o.type,o.pendingProps,Z.current),Or=o,is=!0,y=Ln,Ii(o.type)?(qp=y,Ln=Ba(f.firstChild)):Ln=y),mr(s,o,o.pendingProps.children,c),zd(s,o),s===null&&(o.flags|=4194304),o.child;case 5:return s===null&&$t&&((y=f=Ln)&&(f=EP(f,o.type,o.pendingProps,is),f!==null?(o.stateNode=f,Or=o,Ln=Ba(f.firstChild),is=!1,y=!0):y=!1),y||wo(o)),Ae(o),y=o.type,x=o.pendingProps,O=s!==null?s.memoizedProps:null,f=x.children,Bp(y,x)?f=null:O!==null&&Bp(y,O)&&(o.flags|=32),o.memoizedState!==null&&(y=Um(s,o,Hk,null,null,c),Mc._currentValue=y),zd(s,o),mr(s,o,f,c),o.child;case 6:return s===null&&$t&&((s=c=Ln)&&(c=xP(c,o.pendingProps,is),c!==null?(o.stateNode=c,Or=o,Ln=null,s=!0):s=!1),s||wo(o)),null;case 13:return p3(s,o,c);case 4:return Te(o,o.stateNode.containerInfo),f=o.pendingProps,s===null?o.child=Pl(o,null,f,c):mr(s,o,f,c),o.child;case 11:return o3(s,o,o.type,o.pendingProps,c);case 7:return mr(s,o,o.pendingProps,c),o.child;case 8:return mr(s,o,o.pendingProps.children,c),o.child;case 12:return mr(s,o,o.pendingProps.children,c),o.child;case 10:return f=o.pendingProps,xi(o,o.type,f.value),mr(s,o,f.children,c),o.child;case 9:return y=o.type._context,f=o.pendingProps.children,Ro(o),y=xr(y),f=f(y),o.flags|=1,mr(s,o,f,c),o.child;case 14:return l3(s,o,o.type,o.pendingProps,c);case 15:return u3(s,o,o.type,o.pendingProps,c);case 19:return v3(s,o,c);case 31:return f=o.pendingProps,c=o.mode,f={mode:f.mode,children:f.children},s===null?(c=Zd(f,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=Is(s.child,f),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return c3(s,o,c);case 24:return Ro(o),f=xr(er),s===null?(y=km(),y===null&&(y=mn,x=Om(),y.pooledCache=x,x.refCount++,x!==null&&(y.pooledCacheLanes|=c),y=x),o.memoizedState={parent:f,cache:y},Dm(o),xi(o,er,y)):((s.lanes&c)!==0&&(Lm(s,o),hc(o,null,null,c),fc()),y=s.memoizedState,x=o.memoizedState,y.parent!==f?(y={parent:f,cache:f},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),xi(o,er,f)):(f=x.cache,xi(o,er,f),f!==y.cache&&Rm(o,[er],c,!0))),mr(s,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Zs(s){s.flags|=4}function b3(s,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!CE(o)){if(o=ba.current,o!==null&&((Ft&4194048)===Ft?os!==null:(Ft&62914560)!==Ft&&(Ft&536870912)===0||o!==os))throw cc=Pm,nb;s.flags|=8192}}function qd(s,o){o!==null&&(s.flags|=4),s.flags&16384&&(o=s.tag!==22?cl():536870912,s.lanes|=o,Il|=o)}function Ec(s,o){if(!$t)switch(s.tailMode){case"hidden":o=s.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?s.tail=null:c.sibling=null;break;case"collapsed":c=s.tail;for(var f=null;c!==null;)c.alternate!==null&&(f=c),c=c.sibling;f===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:f.sibling=null}}function kn(s){var o=s.alternate!==null&&s.alternate.child===s.child,c=0,f=0;if(o)for(var y=s.child;y!==null;)c|=y.lanes|y.childLanes,f|=y.subtreeFlags&65011712,f|=y.flags&65011712,y.return=s,y=y.sibling;else for(y=s.child;y!==null;)c|=y.lanes|y.childLanes,f|=y.subtreeFlags,f|=y.flags,y.return=s,y=y.sibling;return s.subtreeFlags|=f,s.childLanes=c,o}function Qk(s,o,c){var f=o.pendingProps;switch(Am(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kn(o),null;case 1:return kn(o),null;case 3:return c=o.stateNode,f=null,s!==null&&(f=s.memoizedState.cache),o.memoizedState.cache!==f&&(o.flags|=2048),Us(er),Ze(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(s===null||s.child===null)&&(rc(o)?Zs(o):s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Xy())),kn(o),null;case 26:return c=o.memoizedState,s===null?(Zs(o),c!==null?(kn(o),b3(o,c)):(kn(o),o.flags&=-16777217)):c?c!==s.memoizedState?(Zs(o),kn(o),b3(o,c)):(kn(o),o.flags&=-16777217):(s.memoizedProps!==f&&Zs(o),kn(o),o.flags&=-16777217),null;case 27:Oe(o),c=Z.current;var y=o.type;if(s!==null&&o.stateNode!=null)s.memoizedProps!==f&&Zs(o);else{if(!f){if(o.stateNode===null)throw Error(r(166));return kn(o),null}s=Ee.current,rc(o)?Gy(o):(s=bE(y,f,c),o.stateNode=s,Zs(o))}return kn(o),null;case 5:if(Oe(o),c=o.type,s!==null&&o.stateNode!=null)s.memoizedProps!==f&&Zs(o);else{if(!f){if(o.stateNode===null)throw Error(r(166));return kn(o),null}if(s=Ee.current,rc(o))Gy(o);else{switch(y=af(Z.current),s){case 1:s=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:s=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":s=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":s=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":s=y.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof f.is=="string"?y.createElement("select",{is:f.is}):y.createElement("select"),f.multiple?s.multiple=!0:f.size&&(s.size=f.size);break;default:s=typeof f.is=="string"?y.createElement(c,{is:f.is}):y.createElement(c)}}s[_n]=o,s[Wt]=f;e:for(y=o.child;y!==null;){if(y.tag===5||y.tag===6)s.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===o)break e;for(;y.sibling===null;){if(y.return===null||y.return===o)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}o.stateNode=s;e:switch(gr(s,c,f),c){case"button":case"input":case"select":case"textarea":s=!!f.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Zs(o)}}return kn(o),o.flags&=-16777217,null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==f&&Zs(o);else{if(typeof f!="string"&&o.stateNode===null)throw Error(r(166));if(s=Z.current,rc(o)){if(s=o.stateNode,c=o.memoizedProps,f=null,y=Or,y!==null)switch(y.tag){case 27:case 5:f=y.memoizedProps}s[_n]=o,s=!!(s.nodeValue===c||f!==null&&f.suppressHydrationWarning===!0||fE(s.nodeValue,c)),s||wo(o)}else s=af(s).createTextNode(f),s[_n]=o,o.stateNode=s}return kn(o),null;case 13:if(f=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(y=rc(o),f!==null&&f.dehydrated!==null){if(s===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[_n]=o}else ac(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;kn(o),y=!1}else y=Xy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?(Vs(o),o):(Vs(o),null)}if(Vs(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=f!==null,s=s!==null&&s.memoizedState!==null,c){f=o.child,y=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(y=f.alternate.memoizedState.cachePool.pool);var x=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(x=f.memoizedState.cachePool.pool),x!==y&&(f.flags|=2048)}return c!==s&&c&&(o.child.flags|=8192),qd(o,o.updateQueue),kn(o),null;case 4:return Ze(),s===null&&Ip(o.stateNode.containerInfo),kn(o),null;case 10:return Us(o.type),kn(o),null;case 19:if(ge(tr),y=o.memoizedState,y===null)return kn(o),null;if(f=(o.flags&128)!==0,x=y.rendering,x===null)if(f)Ec(y,!1);else{if(Mn!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(x=Ud(s),x!==null){for(o.flags|=128,Ec(y,!1),s=x.updateQueue,o.updateQueue=s,qd(o,s),o.subtreeFlags=0,s=c,c=o.child;c!==null;)Qy(c,s),c=c.sibling;return j(tr,tr.current&1|2),o.child}s=s.sibling}y.tail!==null&&st()>Yd&&(o.flags|=128,f=!0,Ec(y,!1),o.lanes=4194304)}else{if(!f)if(s=Ud(x),s!==null){if(o.flags|=128,f=!0,s=s.updateQueue,o.updateQueue=s,qd(o,s),Ec(y,!0),y.tail===null&&y.tailMode==="hidden"&&!x.alternate&&!$t)return kn(o),null}else 2*st()-y.renderingStartTime>Yd&&c!==536870912&&(o.flags|=128,f=!0,Ec(y,!1),o.lanes=4194304);y.isBackwards?(x.sibling=o.child,o.child=x):(s=y.last,s!==null?s.sibling=x:o.child=x,y.last=x)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=st(),o.sibling=null,s=tr.current,j(tr,f?s&1|2:s&1),o):(kn(o),null);case 22:case 23:return Vs(o),Hm(),f=o.memoizedState!==null,s!==null?s.memoizedState!==null!==f&&(o.flags|=8192):f&&(o.flags|=8192),f?(c&536870912)!==0&&(o.flags&128)===0&&(kn(o),o.subtreeFlags&6&&(o.flags|=8192)):kn(o),c=o.updateQueue,c!==null&&qd(o,c.retryQueue),c=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==c&&(o.flags|=2048),s!==null&&ge(Oo),null;case 24:return c=null,s!==null&&(c=s.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),Us(er),kn(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function Yk(s,o){switch(Am(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return Us(er),Ze(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return Oe(o),null;case 13:if(Vs(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(r(340));ac()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ge(tr),null;case 4:return Ze(),null;case 10:return Us(o.type),null;case 22:case 23:return Vs(o),Hm(),s!==null&&ge(Oo),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return Us(er),null;case 25:return null;default:return null}}function E3(s,o){switch(Am(o),o.tag){case 3:Us(er),Ze();break;case 26:case 27:case 5:Oe(o);break;case 4:Ze();break;case 13:Vs(o);break;case 19:ge(tr);break;case 10:Us(o.type);break;case 22:case 23:Vs(o),Hm(),s!==null&&ge(Oo);break;case 24:Us(er)}}function xc(s,o){try{var c=o.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var y=f.next;c=y;do{if((c.tag&s)===s){f=void 0;var x=c.create,O=c.inst;f=x(),O.destroy=f}c=c.next}while(c!==y)}}catch(H){dn(o,o.return,H)}}function Ri(s,o,c){try{var f=o.updateQueue,y=f!==null?f.lastEffect:null;if(y!==null){var x=y.next;f=x;do{if((f.tag&s)===s){var O=f.inst,H=O.destroy;if(H!==void 0){O.destroy=void 0,y=o;var K=c,he=H;try{he()}catch(we){dn(y,K,we)}}}f=f.next}while(f!==x)}}catch(we){dn(o,o.return,we)}}function x3(s){var o=s.updateQueue;if(o!==null){var c=s.stateNode;try{lb(o,c)}catch(f){dn(s,s.return,f)}}}function _3(s,o,c){c.props=ko(s.type,s.memoizedProps),c.state=s.memoizedState;try{c.componentWillUnmount()}catch(f){dn(s,o,f)}}function _c(s,o){try{var c=s.ref;if(c!==null){switch(s.tag){case 26:case 27:case 5:var f=s.stateNode;break;case 30:f=s.stateNode;break;default:f=s.stateNode}typeof c=="function"?s.refCleanup=c(f):c.current=f}}catch(y){dn(s,o,y)}}function ls(s,o){var c=s.ref,f=s.refCleanup;if(c!==null)if(typeof f=="function")try{f()}catch(y){dn(s,o,y)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(y){dn(s,o,y)}else c.current=null}function T3(s){var o=s.type,c=s.memoizedProps,f=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&f.focus();break e;case"img":c.src?f.src=c.src:c.srcSet&&(f.srcset=c.srcSet)}}catch(y){dn(s,s.return,y)}}function fp(s,o,c){try{var f=s.stateNode;pP(f,s.type,c,o),f[Wt]=o}catch(y){dn(s,s.return,y)}}function A3(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Ii(s.type)||s.tag===4}function hp(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||A3(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Ii(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function mp(s,o,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(s,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(s),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=rf));else if(f!==4&&(f===27&&Ii(s.type)&&(c=s.stateNode,o=null),s=s.child,s!==null))for(mp(s,o,c),s=s.sibling;s!==null;)mp(s,o,c),s=s.sibling}function $d(s,o,c){var f=s.tag;if(f===5||f===6)s=s.stateNode,o?c.insertBefore(s,o):c.appendChild(s);else if(f!==4&&(f===27&&Ii(s.type)&&(c=s.stateNode),s=s.child,s!==null))for($d(s,o,c),s=s.sibling;s!==null;)$d(s,o,c),s=s.sibling}function S3(s){var o=s.stateNode,c=s.memoizedProps;try{for(var f=s.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);gr(o,f,c),o[_n]=s,o[Wt]=c}catch(x){dn(s,s.return,x)}}var qs=!1,Un=!1,pp=!1,w3=typeof WeakSet=="function"?WeakSet:Set,ir=null;function Gk(s,o){if(s=s.containerInfo,Fp=df,s=jy(s),hm(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{c=(c=s.ownerDocument)&&c.defaultView||window;var f=c.getSelection&&c.getSelection();if(f&&f.rangeCount!==0){c=f.anchorNode;var y=f.anchorOffset,x=f.focusNode;f=f.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var O=0,H=-1,K=-1,he=0,we=0,Re=s,ve=null;t:for(;;){for(var be;Re!==c||y!==0&&Re.nodeType!==3||(H=O+y),Re!==x||f!==0&&Re.nodeType!==3||(K=O+f),Re.nodeType===3&&(O+=Re.nodeValue.length),(be=Re.firstChild)!==null;)ve=Re,Re=be;for(;;){if(Re===s)break t;if(ve===c&&++he===y&&(H=O),ve===x&&++we===f&&(K=O),(be=Re.nextSibling)!==null)break;Re=ve,ve=Re.parentNode}Re=be}c=H===-1||K===-1?null:{start:H,end:K}}else c=null}c=c||{start:0,end:0}}else c=null;for(Up={focusedElem:s,selectionRange:c},df=!1,ir=o;ir!==null;)if(o=ir,s=o.child,(o.subtreeFlags&1024)!==0&&s!==null)s.return=o,ir=s;else for(;ir!==null;){switch(o=ir,x=o.alternate,s=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&x!==null){s=void 0,c=o,y=x.memoizedProps,x=x.memoizedState,f=c.stateNode;try{var mt=ko(c.type,y,c.elementType===c.type);s=f.getSnapshotBeforeUpdate(mt,x),f.__reactInternalSnapshotBeforeUpdate=s}catch(ft){dn(c,c.return,ft)}}break;case 3:if((s&1024)!==0){if(s=o.stateNode.containerInfo,c=s.nodeType,c===9)zp(s);else if(c===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":zp(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=o.sibling,s!==null){s.return=o.return,ir=s;break}ir=o.return}}function C3(s,o,c){var f=c.flags;switch(c.tag){case 0:case 11:case 15:Oi(s,c),f&4&&xc(5,c);break;case 1:if(Oi(s,c),f&4)if(s=c.stateNode,o===null)try{s.componentDidMount()}catch(O){dn(c,c.return,O)}else{var y=ko(c.type,o.memoizedProps);o=o.memoizedState;try{s.componentDidUpdate(y,o,s.__reactInternalSnapshotBeforeUpdate)}catch(O){dn(c,c.return,O)}}f&64&&x3(c),f&512&&_c(c,c.return);break;case 3:if(Oi(s,c),f&64&&(s=c.updateQueue,s!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{lb(s,o)}catch(O){dn(c,c.return,O)}}break;case 27:o===null&&f&4&&S3(c);case 26:case 5:Oi(s,c),o===null&&f&4&&T3(c),f&512&&_c(c,c.return);break;case 12:Oi(s,c);break;case 13:Oi(s,c),f&4&&N3(s,c),f&64&&(s=c.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(c=aP.bind(null,c),_P(s,c))));break;case 22:if(f=c.memoizedState!==null||qs,!f){o=o!==null&&o.memoizedState!==null||Un,y=qs;var x=Un;qs=f,(Un=o)&&!x?Ni(s,c,(c.subtreeFlags&8772)!==0):Oi(s,c),qs=y,Un=x}break;case 30:break;default:Oi(s,c)}}function R3(s){var o=s.alternate;o!==null&&(s.alternate=null,R3(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&tt(o)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var An=null,Ur=!1;function $s(s,o,c){for(c=c.child;c!==null;)O3(s,o,c),c=c.sibling}function O3(s,o,c){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(ie,c)}catch{}switch(c.tag){case 26:Un||ls(c,o),$s(s,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Un||ls(c,o);var f=An,y=Ur;Ii(c.type)&&(An=c.stateNode,Ur=!1),$s(s,o,c),kc(c.stateNode),An=f,Ur=y;break;case 5:Un||ls(c,o);case 6:if(f=An,y=Ur,An=null,$s(s,o,c),An=f,Ur=y,An!==null)if(Ur)try{(An.nodeType===9?An.body:An.nodeName==="HTML"?An.ownerDocument.body:An).removeChild(c.stateNode)}catch(x){dn(c,o,x)}else try{An.removeChild(c.stateNode)}catch(x){dn(c,o,x)}break;case 18:An!==null&&(Ur?(s=An,vE(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,c.stateNode),Fc(s)):vE(An,c.stateNode));break;case 4:f=An,y=Ur,An=c.stateNode.containerInfo,Ur=!0,$s(s,o,c),An=f,Ur=y;break;case 0:case 11:case 14:case 15:Un||Ri(2,c,o),Un||Ri(4,c,o),$s(s,o,c);break;case 1:Un||(ls(c,o),f=c.stateNode,typeof f.componentWillUnmount=="function"&&_3(c,o,f)),$s(s,o,c);break;case 21:$s(s,o,c);break;case 22:Un=(f=Un)||c.memoizedState!==null,$s(s,o,c),Un=f;break;default:$s(s,o,c)}}function N3(s,o){if(o.memoizedState===null&&(s=o.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Fc(s)}catch(c){dn(o,o.return,c)}}function Kk(s){switch(s.tag){case 13:case 19:var o=s.stateNode;return o===null&&(o=s.stateNode=new w3),o;case 22:return s=s.stateNode,o=s._retryCache,o===null&&(o=s._retryCache=new w3),o;default:throw Error(r(435,s.tag))}}function gp(s,o){var c=Kk(s);o.forEach(function(f){var y=sP.bind(null,s,f);c.has(f)||(c.add(f),f.then(y,y))})}function ta(s,o){var c=o.deletions;if(c!==null)for(var f=0;f<c.length;f++){var y=c[f],x=s,O=o,H=O;e:for(;H!==null;){switch(H.tag){case 27:if(Ii(H.type)){An=H.stateNode,Ur=!1;break e}break;case 5:An=H.stateNode,Ur=!1;break e;case 3:case 4:An=H.stateNode.containerInfo,Ur=!0;break e}H=H.return}if(An===null)throw Error(r(160));O3(x,O,y),An=null,Ur=!1,x=y.alternate,x!==null&&(x.return=null),y.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)k3(o,s),o=o.sibling}var Ua=null;function k3(s,o){var c=s.alternate,f=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:ta(o,s),na(s),f&4&&(Ri(3,s,s.return),xc(3,s),Ri(5,s,s.return));break;case 1:ta(o,s),na(s),f&512&&(Un||c===null||ls(c,c.return)),f&64&&qs&&(s=s.updateQueue,s!==null&&(f=s.callbacks,f!==null&&(c=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=c===null?f:c.concat(f))));break;case 26:var y=Ua;if(ta(o,s),na(s),f&512&&(Un||c===null||ls(c,c.return)),f&4){var x=c!==null?c.memoizedState:null;if(f=s.memoizedState,c===null)if(f===null)if(s.stateNode===null){e:{f=s.type,c=s.memoizedProps,y=y.ownerDocument||y;t:switch(f){case"title":x=y.getElementsByTagName("title")[0],(!x||x[ye]||x[_n]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=y.createElement(f),y.head.insertBefore(x,y.querySelector("head > title"))),gr(x,f,c),x[_n]=s,at(x),f=x;break e;case"link":var O=SE("link","href",y).get(f+(c.href||""));if(O){for(var H=0;H<O.length;H++)if(x=O[H],x.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&x.getAttribute("rel")===(c.rel==null?null:c.rel)&&x.getAttribute("title")===(c.title==null?null:c.title)&&x.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){O.splice(H,1);break t}}x=y.createElement(f),gr(x,f,c),y.head.appendChild(x);break;case"meta":if(O=SE("meta","content",y).get(f+(c.content||""))){for(H=0;H<O.length;H++)if(x=O[H],x.getAttribute("content")===(c.content==null?null:""+c.content)&&x.getAttribute("name")===(c.name==null?null:c.name)&&x.getAttribute("property")===(c.property==null?null:c.property)&&x.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&x.getAttribute("charset")===(c.charSet==null?null:c.charSet)){O.splice(H,1);break t}}x=y.createElement(f),gr(x,f,c),y.head.appendChild(x);break;default:throw Error(r(468,f))}x[_n]=s,at(x),f=x}s.stateNode=f}else wE(y,s.type,s.stateNode);else s.stateNode=AE(y,f,s.memoizedProps);else x!==f?(x===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):x.count--,f===null?wE(y,s.type,s.stateNode):AE(y,f,s.memoizedProps)):f===null&&s.stateNode!==null&&fp(s,s.memoizedProps,c.memoizedProps)}break;case 27:ta(o,s),na(s),f&512&&(Un||c===null||ls(c,c.return)),c!==null&&f&4&&fp(s,s.memoizedProps,c.memoizedProps);break;case 5:if(ta(o,s),na(s),f&512&&(Un||c===null||ls(c,c.return)),s.flags&32){y=s.stateNode;try{ml(y,"")}catch(be){dn(s,s.return,be)}}f&4&&s.stateNode!=null&&(y=s.memoizedProps,fp(s,y,c!==null?c.memoizedProps:y)),f&1024&&(pp=!0);break;case 6:if(ta(o,s),na(s),f&4){if(s.stateNode===null)throw Error(r(162));f=s.memoizedProps,c=s.stateNode;try{c.nodeValue=f}catch(be){dn(s,s.return,be)}}break;case 3:if(lf=null,y=Ua,Ua=sf(o.containerInfo),ta(o,s),Ua=y,na(s),f&4&&c!==null&&c.memoizedState.isDehydrated)try{Fc(o.containerInfo)}catch(be){dn(s,s.return,be)}pp&&(pp=!1,P3(s));break;case 4:f=Ua,Ua=sf(s.stateNode.containerInfo),ta(o,s),na(s),Ua=f;break;case 12:ta(o,s),na(s);break;case 13:ta(o,s),na(s),s.child.flags&8192&&s.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(_p=st()),f&4&&(f=s.updateQueue,f!==null&&(s.updateQueue=null,gp(s,f)));break;case 22:y=s.memoizedState!==null;var K=c!==null&&c.memoizedState!==null,he=qs,we=Un;if(qs=he||y,Un=we||K,ta(o,s),Un=we,qs=he,na(s),f&8192)e:for(o=s.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(c===null||K||qs||Un||Po(s)),c=null,o=s;;){if(o.tag===5||o.tag===26){if(c===null){K=c=o;try{if(x=K.stateNode,y)O=x.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{H=K.stateNode;var Re=K.memoizedProps.style,ve=Re!=null&&Re.hasOwnProperty("display")?Re.display:null;H.style.display=ve==null||typeof ve=="boolean"?"":(""+ve).trim()}}catch(be){dn(K,K.return,be)}}}else if(o.tag===6){if(c===null){K=o;try{K.stateNode.nodeValue=y?"":K.memoizedProps}catch(be){dn(K,K.return,be)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===s)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}f&4&&(f=s.updateQueue,f!==null&&(c=f.retryQueue,c!==null&&(f.retryQueue=null,gp(s,c))));break;case 19:ta(o,s),na(s),f&4&&(f=s.updateQueue,f!==null&&(s.updateQueue=null,gp(s,f)));break;case 30:break;case 21:break;default:ta(o,s),na(s)}}function na(s){var o=s.flags;if(o&2){try{for(var c,f=s.return;f!==null;){if(A3(f)){c=f;break}f=f.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var y=c.stateNode,x=hp(s);$d(s,x,y);break;case 5:var O=c.stateNode;c.flags&32&&(ml(O,""),c.flags&=-33);var H=hp(s);$d(s,H,O);break;case 3:case 4:var K=c.stateNode.containerInfo,he=hp(s);mp(s,he,K);break;default:throw Error(r(161))}}catch(we){dn(s,s.return,we)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function P3(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var o=s;P3(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),s=s.sibling}}function Oi(s,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)C3(s,o.alternate,o),o=o.sibling}function Po(s){for(s=s.child;s!==null;){var o=s;switch(o.tag){case 0:case 11:case 14:case 15:Ri(4,o,o.return),Po(o);break;case 1:ls(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&_3(o,o.return,c),Po(o);break;case 27:kc(o.stateNode);case 26:case 5:ls(o,o.return),Po(o);break;case 22:o.memoizedState===null&&Po(o);break;case 30:Po(o);break;default:Po(o)}s=s.sibling}}function Ni(s,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var f=o.alternate,y=s,x=o,O=x.flags;switch(x.tag){case 0:case 11:case 15:Ni(y,x,c),xc(4,x);break;case 1:if(Ni(y,x,c),f=x,y=f.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(he){dn(f,f.return,he)}if(f=x,y=f.updateQueue,y!==null){var H=f.stateNode;try{var K=y.shared.hiddenCallbacks;if(K!==null)for(y.shared.hiddenCallbacks=null,y=0;y<K.length;y++)ob(K[y],H)}catch(he){dn(f,f.return,he)}}c&&O&64&&x3(x),_c(x,x.return);break;case 27:S3(x);case 26:case 5:Ni(y,x,c),c&&f===null&&O&4&&T3(x),_c(x,x.return);break;case 12:Ni(y,x,c);break;case 13:Ni(y,x,c),c&&O&4&&N3(y,x);break;case 22:x.memoizedState===null&&Ni(y,x,c),_c(x,x.return);break;case 30:break;default:Ni(y,x,c)}o=o.sibling}}function vp(s,o){var c=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==c&&(s!=null&&s.refCount++,c!=null&&oc(c))}function yp(s,o){s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&oc(s))}function us(s,o,c,f){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)D3(s,o,c,f),o=o.sibling}function D3(s,o,c,f){var y=o.flags;switch(o.tag){case 0:case 11:case 15:us(s,o,c,f),y&2048&&xc(9,o);break;case 1:us(s,o,c,f);break;case 3:us(s,o,c,f),y&2048&&(s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&oc(s)));break;case 12:if(y&2048){us(s,o,c,f),s=o.stateNode;try{var x=o.memoizedProps,O=x.id,H=x.onPostCommit;typeof H=="function"&&H(O,o.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(K){dn(o,o.return,K)}}else us(s,o,c,f);break;case 13:us(s,o,c,f);break;case 23:break;case 22:x=o.stateNode,O=o.alternate,o.memoizedState!==null?x._visibility&2?us(s,o,c,f):Tc(s,o):x._visibility&2?us(s,o,c,f):(x._visibility|=2,Dl(s,o,c,f,(o.subtreeFlags&10256)!==0)),y&2048&&vp(O,o);break;case 24:us(s,o,c,f),y&2048&&yp(o.alternate,o);break;default:us(s,o,c,f)}}function Dl(s,o,c,f,y){for(y=y&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var x=s,O=o,H=c,K=f,he=O.flags;switch(O.tag){case 0:case 11:case 15:Dl(x,O,H,K,y),xc(8,O);break;case 23:break;case 22:var we=O.stateNode;O.memoizedState!==null?we._visibility&2?Dl(x,O,H,K,y):Tc(x,O):(we._visibility|=2,Dl(x,O,H,K,y)),y&&he&2048&&vp(O.alternate,O);break;case 24:Dl(x,O,H,K,y),y&&he&2048&&yp(O.alternate,O);break;default:Dl(x,O,H,K,y)}o=o.sibling}}function Tc(s,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=s,f=o,y=f.flags;switch(f.tag){case 22:Tc(c,f),y&2048&&vp(f.alternate,f);break;case 24:Tc(c,f),y&2048&&yp(f.alternate,f);break;default:Tc(c,f)}o=o.sibling}}var Ac=8192;function Ll(s){if(s.subtreeFlags&Ac)for(s=s.child;s!==null;)L3(s),s=s.sibling}function L3(s){switch(s.tag){case 26:Ll(s),s.flags&Ac&&s.memoizedState!==null&&MP(Ua,s.memoizedState,s.memoizedProps);break;case 5:Ll(s);break;case 3:case 4:var o=Ua;Ua=sf(s.stateNode.containerInfo),Ll(s),Ua=o;break;case 22:s.memoizedState===null&&(o=s.alternate,o!==null&&o.memoizedState!==null?(o=Ac,Ac=16777216,Ll(s),Ac=o):Ll(s));break;default:Ll(s)}}function M3(s){var o=s.alternate;if(o!==null&&(s=o.child,s!==null)){o.child=null;do o=s.sibling,s.sibling=null,s=o;while(s!==null)}}function Sc(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var f=o[c];ir=f,j3(f,s)}M3(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)I3(s),s=s.sibling}function I3(s){switch(s.tag){case 0:case 11:case 15:Sc(s),s.flags&2048&&Ri(9,s,s.return);break;case 3:Sc(s);break;case 12:Sc(s);break;case 22:var o=s.stateNode;s.memoizedState!==null&&o._visibility&2&&(s.return===null||s.return.tag!==13)?(o._visibility&=-3,Qd(s)):Sc(s);break;default:Sc(s)}}function Qd(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var f=o[c];ir=f,j3(f,s)}M3(s)}for(s=s.child;s!==null;){switch(o=s,o.tag){case 0:case 11:case 15:Ri(8,o,o.return),Qd(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,Qd(o));break;default:Qd(o)}s=s.sibling}}function j3(s,o){for(;ir!==null;){var c=ir;switch(c.tag){case 0:case 11:case 15:Ri(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var f=c.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:oc(c.memoizedState.cache)}if(f=c.child,f!==null)f.return=c,ir=f;else e:for(c=s;ir!==null;){f=ir;var y=f.sibling,x=f.return;if(R3(f),f===c){ir=null;break e}if(y!==null){y.return=x,ir=y;break e}ir=x}}}var Xk={getCacheForType:function(s){var o=xr(er),c=o.data.get(s);return c===void 0&&(c=s(),o.data.set(s,c)),c}},Wk=typeof WeakMap=="function"?WeakMap:Map,Gt=0,mn=null,kt=null,Ft=0,Kt=0,ra=null,ki=!1,Ml=!1,bp=!1,Qs=0,Mn=0,Pi=0,Do=0,Ep=0,Ea=0,Il=0,wc=null,Br=null,xp=!1,_p=0,Yd=1/0,Gd=null,Di=null,pr=0,Li=null,jl=null,Hl=0,Tp=0,Ap=null,H3=null,Cc=0,Sp=null;function aa(){if((Gt&2)!==0&&Ft!==0)return Ft&-Ft;if(V.T!==null){var s=Sl;return s!==0?s:Pp()}return Ia()}function F3(){Ea===0&&(Ea=(Ft&536870912)===0||$t?Kr():536870912);var s=ba.current;return s!==null&&(s.flags|=32),Ea}function sa(s,o,c){(s===mn&&(Kt===2||Kt===9)||s.cancelPendingCommit!==null)&&(Fl(s,0),Mi(s,Ft,Ea,!1)),as(s,c),((Gt&2)===0||s!==mn)&&(s===mn&&((Gt&2)===0&&(Do|=c),Mn===4&&Mi(s,Ft,Ea,!1)),cs(s))}function U3(s,o,c){if((Gt&6)!==0)throw Error(r(327));var f=!c&&(o&124)===0&&(o&s.expiredLanes)===0||un(s,o),y=f?tP(s,o):Rp(s,o,!0),x=f;do{if(y===0){Ml&&!f&&Mi(s,o,0,!1);break}else{if(c=s.current.alternate,x&&!Jk(c)){y=Rp(s,o,!1),x=!1;continue}if(y===2){if(x=o,s.errorRecoveryDisabledLanes&x)var O=0;else O=s.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){o=O;e:{var H=s;y=wc;var K=H.current.memoizedState.isDehydrated;if(K&&(Fl(H,O).flags|=256),O=Rp(H,O,!1),O!==2){if(bp&&!K){H.errorRecoveryDisabledLanes|=x,Do|=x,y=4;break e}x=Br,Br=y,x!==null&&(Br===null?Br=x:Br.push.apply(Br,x))}y=O}if(x=!1,y!==2)continue}}if(y===1){Fl(s,0),Mi(s,o,0,!0);break}e:{switch(f=s,x=y,x){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Mi(f,o,Ea,!ki);break e;case 2:Br=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(y=_p+300-st(),10<y)){if(Mi(f,o,Ea,!ki),ln(f,0,!0)!==0)break e;f.timeoutHandle=pE(B3.bind(null,f,c,Br,Gd,xp,o,Ea,Do,Il,ki,x,2,-0,0),y);break e}B3(f,c,Br,Gd,xp,o,Ea,Do,Il,ki,x,0,-0,0)}}break}while(!0);cs(s)}function B3(s,o,c,f,y,x,O,H,K,he,we,Re,ve,be){if(s.timeoutHandle=-1,Re=o.subtreeFlags,(Re&8192||(Re&16785408)===16785408)&&(Lc={stylesheets:null,count:0,unsuspend:LP},L3(o),Re=IP(),Re!==null)){s.cancelPendingCommit=Re(Y3.bind(null,s,o,x,c,f,y,O,H,K,we,1,ve,be)),Mi(s,x,O,!he);return}Y3(s,o,x,c,f,y,O,H,K)}function Jk(s){for(var o=s;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var f=0;f<c.length;f++){var y=c[f],x=y.getSnapshot;y=y.value;try{if(!Jr(x(),y))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Mi(s,o,c,f){o&=~Ep,o&=~Do,s.suspendedLanes|=o,s.pingedLanes&=~o,f&&(s.warmLanes|=o),f=s.expirationTimes;for(var y=o;0<y;){var x=31-qe(y),O=1<<x;f[x]=-1,y&=~O}c!==0&&dt(s,c,o)}function Kd(){return(Gt&6)===0?(Rc(0),!1):!0}function wp(){if(kt!==null){if(Kt===0)var s=kt.return;else s=kt,Fs=Co=null,zm(s),kl=null,yc=0,s=kt;for(;s!==null;)E3(s.alternate,s),s=s.return;kt=null}}function Fl(s,o){var c=s.timeoutHandle;c!==-1&&(s.timeoutHandle=-1,vP(c)),c=s.cancelPendingCommit,c!==null&&(s.cancelPendingCommit=null,c()),wp(),mn=s,kt=c=Is(s.current,null),Ft=o,Kt=0,ra=null,ki=!1,Ml=un(s,o),bp=!1,Il=Ea=Ep=Do=Pi=Mn=0,Br=wc=null,xp=!1,(o&8)!==0&&(o|=o&32);var f=s.entangledLanes;if(f!==0)for(s=s.entanglements,f&=o;0<f;){var y=31-qe(f),x=1<<y;o|=s[y],f&=~x}return Qs=o,yd(),c}function V3(s,o){Ct=null,V.H=jd,o===uc||o===Cd?(o=sb(),Kt=3):o===nb?(o=sb(),Kt=4):Kt=o===i3?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,ra=o,kt===null&&(Mn=1,Vd(s,pa(o,s.current)))}function z3(){var s=V.H;return V.H=jd,s===null?jd:s}function Z3(){var s=V.A;return V.A=Xk,s}function Cp(){Mn=4,ki||(Ft&4194048)!==Ft&&ba.current!==null||(Ml=!0),(Pi&134217727)===0&&(Do&134217727)===0||mn===null||Mi(mn,Ft,Ea,!1)}function Rp(s,o,c){var f=Gt;Gt|=2;var y=z3(),x=Z3();(mn!==s||Ft!==o)&&(Gd=null,Fl(s,o)),o=!1;var O=Mn;e:do try{if(Kt!==0&&kt!==null){var H=kt,K=ra;switch(Kt){case 8:wp(),O=6;break e;case 3:case 2:case 9:case 6:ba.current===null&&(o=!0);var he=Kt;if(Kt=0,ra=null,Ul(s,H,K,he),c&&Ml){O=0;break e}break;default:he=Kt,Kt=0,ra=null,Ul(s,H,K,he)}}eP(),O=Mn;break}catch(we){V3(s,we)}while(!0);return o&&s.shellSuspendCounter++,Fs=Co=null,Gt=f,V.H=y,V.A=x,kt===null&&(mn=null,Ft=0,yd()),O}function eP(){for(;kt!==null;)q3(kt)}function tP(s,o){var c=Gt;Gt|=2;var f=z3(),y=Z3();mn!==s||Ft!==o?(Gd=null,Yd=st()+500,Fl(s,o)):Ml=un(s,o);e:do try{if(Kt!==0&&kt!==null){o=kt;var x=ra;t:switch(Kt){case 1:Kt=0,ra=null,Ul(s,o,x,1);break;case 2:case 9:if(rb(x)){Kt=0,ra=null,$3(o);break}o=function(){Kt!==2&&Kt!==9||mn!==s||(Kt=7),cs(s)},x.then(o,o);break e;case 3:Kt=7;break e;case 4:Kt=5;break e;case 7:rb(x)?(Kt=0,ra=null,$3(o)):(Kt=0,ra=null,Ul(s,o,x,7));break;case 5:var O=null;switch(kt.tag){case 26:O=kt.memoizedState;case 5:case 27:var H=kt;if(!O||CE(O)){Kt=0,ra=null;var K=H.sibling;if(K!==null)kt=K;else{var he=H.return;he!==null?(kt=he,Xd(he)):kt=null}break t}}Kt=0,ra=null,Ul(s,o,x,5);break;case 6:Kt=0,ra=null,Ul(s,o,x,6);break;case 8:wp(),Mn=6;break e;default:throw Error(r(462))}}nP();break}catch(we){V3(s,we)}while(!0);return Fs=Co=null,V.H=f,V.A=y,Gt=c,kt!==null?0:(mn=null,Ft=0,yd(),Mn)}function nP(){for(;kt!==null&&!Ht();)q3(kt)}function q3(s){var o=y3(s.alternate,s,Qs);s.memoizedProps=s.pendingProps,o===null?Xd(s):kt=o}function $3(s){var o=s,c=o.alternate;switch(o.tag){case 15:case 0:o=f3(c,o,o.pendingProps,o.type,void 0,Ft);break;case 11:o=f3(c,o,o.pendingProps,o.type.render,o.ref,Ft);break;case 5:zm(o);default:E3(c,o),o=kt=Qy(o,Qs),o=y3(c,o,Qs)}s.memoizedProps=s.pendingProps,o===null?Xd(s):kt=o}function Ul(s,o,c,f){Fs=Co=null,zm(o),kl=null,yc=0;var y=o.return;try{if(qk(s,y,o,c,Ft)){Mn=1,Vd(s,pa(c,s.current)),kt=null;return}}catch(x){if(y!==null)throw kt=y,x;Mn=1,Vd(s,pa(c,s.current)),kt=null;return}o.flags&32768?($t||f===1?s=!0:Ml||(Ft&536870912)!==0?s=!1:(ki=s=!0,(f===2||f===9||f===3||f===6)&&(f=ba.current,f!==null&&f.tag===13&&(f.flags|=16384))),Q3(o,s)):Xd(o)}function Xd(s){var o=s;do{if((o.flags&32768)!==0){Q3(o,ki);return}s=o.return;var c=Qk(o.alternate,o,Qs);if(c!==null){kt=c;return}if(o=o.sibling,o!==null){kt=o;return}kt=o=s}while(o!==null);Mn===0&&(Mn=5)}function Q3(s,o){do{var c=Yk(s.alternate,s);if(c!==null){c.flags&=32767,kt=c;return}if(c=s.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(s=s.sibling,s!==null)){kt=s;return}kt=s=c}while(s!==null);Mn=6,kt=null}function Y3(s,o,c,f,y,x,O,H,K){s.cancelPendingCommit=null;do Wd();while(pr!==0);if((Gt&6)!==0)throw Error(r(327));if(o!==null){if(o===s.current)throw Error(r(177));if(x=o.lanes|o.childLanes,x|=ym,dl(s,c,x,O,H,K),s===mn&&(kt=mn=null,Ft=0),jl=o,Li=s,Hl=c,Tp=x,Ap=y,H3=f,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,iP(ce,function(){return J3(),null})):(s.callbackNode=null,s.callbackPriority=0),f=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||f){f=V.T,V.T=null,y=J.p,J.p=2,O=Gt,Gt|=4;try{Gk(s,o,c)}finally{Gt=O,J.p=y,V.T=f}}pr=1,G3(),K3(),X3()}}function G3(){if(pr===1){pr=0;var s=Li,o=jl,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=V.T,V.T=null;var f=J.p;J.p=2;var y=Gt;Gt|=4;try{k3(o,s);var x=Up,O=jy(s.containerInfo),H=x.focusedElem,K=x.selectionRange;if(O!==H&&H&&H.ownerDocument&&Iy(H.ownerDocument.documentElement,H)){if(K!==null&&hm(H)){var he=K.start,we=K.end;if(we===void 0&&(we=he),"selectionStart"in H)H.selectionStart=he,H.selectionEnd=Math.min(we,H.value.length);else{var Re=H.ownerDocument||document,ve=Re&&Re.defaultView||window;if(ve.getSelection){var be=ve.getSelection(),mt=H.textContent.length,ft=Math.min(K.start,mt),nn=K.end===void 0?ft:Math.min(K.end,mt);!be.extend&&ft>nn&&(O=nn,nn=ft,ft=O);var le=My(H,ft),re=My(H,nn);if(le&&re&&(be.rangeCount!==1||be.anchorNode!==le.node||be.anchorOffset!==le.offset||be.focusNode!==re.node||be.focusOffset!==re.offset)){var de=Re.createRange();de.setStart(le.node,le.offset),be.removeAllRanges(),ft>nn?(be.addRange(de),be.extend(re.node,re.offset)):(de.setEnd(re.node,re.offset),be.addRange(de))}}}}for(Re=[],be=H;be=be.parentNode;)be.nodeType===1&&Re.push({element:be,left:be.scrollLeft,top:be.scrollTop});for(typeof H.focus=="function"&&H.focus(),H=0;H<Re.length;H++){var Ce=Re[H];Ce.element.scrollLeft=Ce.left,Ce.element.scrollTop=Ce.top}}df=!!Fp,Up=Fp=null}finally{Gt=y,J.p=f,V.T=c}}s.current=o,pr=2}}function K3(){if(pr===2){pr=0;var s=Li,o=jl,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=V.T,V.T=null;var f=J.p;J.p=2;var y=Gt;Gt|=4;try{C3(s,o.alternate,o)}finally{Gt=y,J.p=f,V.T=c}}pr=3}}function X3(){if(pr===4||pr===3){pr=0,_t();var s=Li,o=jl,c=Hl,f=H3;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?pr=5:(pr=0,jl=Li=null,W3(s,s.pendingLanes));var y=s.pendingLanes;if(y===0&&(Di=null),Jn(c),o=o.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(ie,o,void 0,(o.current.flags&128)===128)}catch{}if(f!==null){o=V.T,y=J.p,J.p=2,V.T=null;try{for(var x=s.onRecoverableError,O=0;O<f.length;O++){var H=f[O];x(H.value,{componentStack:H.stack})}}finally{V.T=o,J.p=y}}(Hl&3)!==0&&Wd(),cs(s),y=s.pendingLanes,(c&4194090)!==0&&(y&42)!==0?s===Sp?Cc++:(Cc=0,Sp=s):Cc=0,Rc(0)}}function W3(s,o){(s.pooledCacheLanes&=o)===0&&(o=s.pooledCache,o!=null&&(s.pooledCache=null,oc(o)))}function Wd(s){return G3(),K3(),X3(),J3()}function J3(){if(pr!==5)return!1;var s=Li,o=Tp;Tp=0;var c=Jn(Hl),f=V.T,y=J.p;try{J.p=32>c?32:c,V.T=null,c=Ap,Ap=null;var x=Li,O=Hl;if(pr=0,jl=Li=null,Hl=0,(Gt&6)!==0)throw Error(r(331));var H=Gt;if(Gt|=4,I3(x.current),D3(x,x.current,O,c),Gt=H,Rc(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(ie,x)}catch{}return!0}finally{J.p=y,V.T=f,W3(s,o)}}function eE(s,o,c){o=pa(c,o),o=rp(s.stateNode,o,2),s=Ai(s,o,2),s!==null&&(as(s,2),cs(s))}function dn(s,o,c){if(s.tag===3)eE(s,s,c);else for(;o!==null;){if(o.tag===3){eE(o,s,c);break}else if(o.tag===1){var f=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Di===null||!Di.has(f))){s=pa(c,s),c=a3(2),f=Ai(o,c,2),f!==null&&(s3(c,f,o,s),as(f,2),cs(f));break}}o=o.return}}function Op(s,o,c){var f=s.pingCache;if(f===null){f=s.pingCache=new Wk;var y=new Set;f.set(o,y)}else y=f.get(o),y===void 0&&(y=new Set,f.set(o,y));y.has(c)||(bp=!0,y.add(c),s=rP.bind(null,s,o,c),o.then(s,s))}function rP(s,o,c){var f=s.pingCache;f!==null&&f.delete(o),s.pingedLanes|=s.suspendedLanes&c,s.warmLanes&=~c,mn===s&&(Ft&c)===c&&(Mn===4||Mn===3&&(Ft&62914560)===Ft&&300>st()-_p?(Gt&2)===0&&Fl(s,0):Ep|=c,Il===Ft&&(Il=0)),cs(s)}function tE(s,o){o===0&&(o=cl()),s=xl(s,o),s!==null&&(as(s,o),cs(s))}function aP(s){var o=s.memoizedState,c=0;o!==null&&(c=o.retryLane),tE(s,c)}function sP(s,o){var c=0;switch(s.tag){case 13:var f=s.stateNode,y=s.memoizedState;y!==null&&(c=y.retryLane);break;case 19:f=s.stateNode;break;case 22:f=s.stateNode._retryCache;break;default:throw Error(r(314))}f!==null&&f.delete(o),tE(s,c)}function iP(s,o){return ct(s,o)}var Jd=null,Bl=null,Np=!1,ef=!1,kp=!1,Lo=0;function cs(s){s!==Bl&&s.next===null&&(Bl===null?Jd=Bl=s:Bl=Bl.next=s),ef=!0,Np||(Np=!0,lP())}function Rc(s,o){if(!kp&&ef){kp=!0;do for(var c=!1,f=Jd;f!==null;){if(s!==0){var y=f.pendingLanes;if(y===0)var x=0;else{var O=f.suspendedLanes,H=f.pingedLanes;x=(1<<31-qe(42|s)+1)-1,x&=y&~(O&~H),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(c=!0,sE(f,x))}else x=Ft,x=ln(f,f===mn?x:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(x&3)===0||un(f,x)||(c=!0,sE(f,x));f=f.next}while(c);kp=!1}}function oP(){nE()}function nE(){ef=Np=!1;var s=0;Lo!==0&&(gP()&&(s=Lo),Lo=0);for(var o=st(),c=null,f=Jd;f!==null;){var y=f.next,x=rE(f,o);x===0?(f.next=null,c===null?Jd=y:c.next=y,y===null&&(Bl=c)):(c=f,(s!==0||(x&3)!==0)&&(ef=!0)),f=y}Rc(s)}function rE(s,o){for(var c=s.suspendedLanes,f=s.pingedLanes,y=s.expirationTimes,x=s.pendingLanes&-62914561;0<x;){var O=31-qe(x),H=1<<O,K=y[O];K===-1?((H&c)===0||(H&f)!==0)&&(y[O]=$n(H,o)):K<=o&&(s.expiredLanes|=H),x&=~H}if(o=mn,c=Ft,c=ln(s,s===o?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),f=s.callbackNode,c===0||s===o&&(Kt===2||Kt===9)||s.cancelPendingCommit!==null)return f!==null&&f!==null&&it(f),s.callbackNode=null,s.callbackPriority=0;if((c&3)===0||un(s,c)){if(o=c&-c,o===s.callbackPriority)return o;switch(f!==null&&it(f),Jn(c)){case 2:case 8:c=W;break;case 32:c=ce;break;case 268435456:c=Ne;break;default:c=ce}return f=aE.bind(null,s),c=ct(c,f),s.callbackPriority=o,s.callbackNode=c,o}return f!==null&&f!==null&&it(f),s.callbackPriority=2,s.callbackNode=null,2}function aE(s,o){if(pr!==0&&pr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var c=s.callbackNode;if(Wd()&&s.callbackNode!==c)return null;var f=Ft;return f=ln(s,s===mn?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),f===0?null:(U3(s,f,o),rE(s,st()),s.callbackNode!=null&&s.callbackNode===c?aE.bind(null,s):null)}function sE(s,o){if(Wd())return null;U3(s,o,!0)}function lP(){yP(function(){(Gt&6)!==0?ct(bt,oP):nE()})}function Pp(){return Lo===0&&(Lo=Kr()),Lo}function iE(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:dd(""+s)}function oE(s,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,s.id&&c.setAttribute("form",s.id),o.parentNode.insertBefore(c,o),s=new FormData(s),c.parentNode.removeChild(c),s}function uP(s,o,c,f,y){if(o==="submit"&&c&&c.stateNode===y){var x=iE((y[Wt]||null).action),O=f.submitter;O&&(o=(o=O[Wt]||null)?iE(o.formAction):O.getAttribute("formAction"),o!==null&&(x=o,O=null));var H=new pd("action","action",null,f,y);s.push({event:H,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Lo!==0){var K=O?oE(y,O):new FormData(y);Wm(c,{pending:!0,data:K,method:y.method,action:x},null,K)}}else typeof x=="function"&&(H.preventDefault(),K=O?oE(y,O):new FormData(y),Wm(c,{pending:!0,data:K,method:y.method,action:x},x,K))},currentTarget:y}]})}}for(var Dp=0;Dp<vm.length;Dp++){var Lp=vm[Dp],cP=Lp.toLowerCase(),dP=Lp[0].toUpperCase()+Lp.slice(1);Fa(cP,"on"+dP)}Fa(Uy,"onAnimationEnd"),Fa(By,"onAnimationIteration"),Fa(Vy,"onAnimationStart"),Fa("dblclick","onDoubleClick"),Fa("focusin","onFocus"),Fa("focusout","onBlur"),Fa(Rk,"onTransitionRun"),Fa(Ok,"onTransitionStart"),Fa(Nk,"onTransitionCancel"),Fa(zy,"onTransitionEnd"),qt("onMouseEnter",["mouseout","mouseover"]),qt("onMouseLeave",["mouseout","mouseover"]),qt("onPointerEnter",["pointerout","pointerover"]),qt("onPointerLeave",["pointerout","pointerover"]),ot("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ot("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ot("onBeforeInput",["compositionend","keypress","textInput","paste"]),ot("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ot("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ot("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oc="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(" "),fP=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oc));function lE(s,o){o=(o&4)!==0;for(var c=0;c<s.length;c++){var f=s[c],y=f.event;f=f.listeners;e:{var x=void 0;if(o)for(var O=f.length-1;0<=O;O--){var H=f[O],K=H.instance,he=H.currentTarget;if(H=H.listener,K!==x&&y.isPropagationStopped())break e;x=H,y.currentTarget=he;try{x(y)}catch(we){Bd(we)}y.currentTarget=null,x=K}else for(O=0;O<f.length;O++){if(H=f[O],K=H.instance,he=H.currentTarget,H=H.listener,K!==x&&y.isPropagationStopped())break e;x=H,y.currentTarget=he;try{x(y)}catch(we){Bd(we)}y.currentTarget=null,x=K}}}}function Pt(s,o){var c=o[ee];c===void 0&&(c=o[ee]=new Set);var f=s+"__bubble";c.has(f)||(uE(o,s,2,!1),c.add(f))}function Mp(s,o,c){var f=0;o&&(f|=4),uE(c,s,f,o)}var tf="_reactListening"+Math.random().toString(36).slice(2);function Ip(s){if(!s[tf]){s[tf]=!0,Yt.forEach(function(c){c!=="selectionchange"&&(fP.has(c)||Mp(c,!1,s),Mp(c,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[tf]||(o[tf]=!0,Mp("selectionchange",!1,o))}}function uE(s,o,c,f){switch(DE(o)){case 2:var y=FP;break;case 8:y=UP;break;default:y=Kp}c=y.bind(null,o,c,s),y=void 0,!am||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),f?y!==void 0?s.addEventListener(o,c,{capture:!0,passive:y}):s.addEventListener(o,c,!0):y!==void 0?s.addEventListener(o,c,{passive:y}):s.addEventListener(o,c,!1)}function jp(s,o,c,f,y){var x=f;if((o&1)===0&&(o&2)===0&&f!==null)e:for(;;){if(f===null)return;var O=f.tag;if(O===3||O===4){var H=f.stateNode.containerInfo;if(H===y)break;if(O===4)for(O=f.return;O!==null;){var K=O.tag;if((K===3||K===4)&&O.stateNode.containerInfo===y)return;O=O.return}for(;H!==null;){if(O=Je(H),O===null)return;if(K=O.tag,K===5||K===6||K===26||K===27){f=x=O;continue e}H=H.parentNode}}f=f.return}gy(function(){var he=x,we=nm(c),Re=[];e:{var ve=Zy.get(s);if(ve!==void 0){var be=pd,mt=s;switch(s){case"keypress":if(hd(c)===0)break e;case"keydown":case"keyup":be=ik;break;case"focusin":mt="focus",be=lm;break;case"focusout":mt="blur",be=lm;break;case"beforeblur":case"afterblur":be=lm;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":be=by;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":be=YN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":be=uk;break;case Uy:case By:case Vy:be=XN;break;case zy:be=dk;break;case"scroll":case"scrollend":be=$N;break;case"wheel":be=hk;break;case"copy":case"cut":case"paste":be=JN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":be=xy;break;case"toggle":case"beforetoggle":be=pk}var ft=(o&4)!==0,nn=!ft&&(s==="scroll"||s==="scrollend"),le=ft?ve!==null?ve+"Capture":null:ve;ft=[];for(var re=he,de;re!==null;){var Ce=re;if(de=Ce.stateNode,Ce=Ce.tag,Ce!==5&&Ce!==26&&Ce!==27||de===null||le===null||(Ce=Yu(re,le),Ce!=null&&ft.push(Nc(re,Ce,de))),nn)break;re=re.return}0<ft.length&&(ve=new be(ve,mt,null,c,we),Re.push({event:ve,listeners:ft}))}}if((o&7)===0){e:{if(ve=s==="mouseover"||s==="pointerover",be=s==="mouseout"||s==="pointerout",ve&&c!==tm&&(mt=c.relatedTarget||c.fromElement)&&(Je(mt)||mt[Hn]))break e;if((be||ve)&&(ve=we.window===we?we:(ve=we.ownerDocument)?ve.defaultView||ve.parentWindow:window,be?(mt=c.relatedTarget||c.toElement,be=he,mt=mt?Je(mt):null,mt!==null&&(nn=i(mt),ft=mt.tag,mt!==nn||ft!==5&&ft!==27&&ft!==6)&&(mt=null)):(be=null,mt=he),be!==mt)){if(ft=by,Ce="onMouseLeave",le="onMouseEnter",re="mouse",(s==="pointerout"||s==="pointerover")&&(ft=xy,Ce="onPointerLeave",le="onPointerEnter",re="pointer"),nn=be==null?ve:Zt(be),de=mt==null?ve:Zt(mt),ve=new ft(Ce,re+"leave",be,c,we),ve.target=nn,ve.relatedTarget=de,Ce=null,Je(we)===he&&(ft=new ft(le,re+"enter",mt,c,we),ft.target=de,ft.relatedTarget=nn,Ce=ft),nn=Ce,be&&mt)t:{for(ft=be,le=mt,re=0,de=ft;de;de=Vl(de))re++;for(de=0,Ce=le;Ce;Ce=Vl(Ce))de++;for(;0<re-de;)ft=Vl(ft),re--;for(;0<de-re;)le=Vl(le),de--;for(;re--;){if(ft===le||le!==null&&ft===le.alternate)break t;ft=Vl(ft),le=Vl(le)}ft=null}else ft=null;be!==null&&cE(Re,ve,be,ft,!1),mt!==null&&nn!==null&&cE(Re,nn,mt,ft,!0)}}e:{if(ve=he?Zt(he):window,be=ve.nodeName&&ve.nodeName.toLowerCase(),be==="select"||be==="input"&&ve.type==="file")var Ge=Oy;else if(Cy(ve))if(Ny)Ge=Sk;else{Ge=Tk;var Ot=_k}else be=ve.nodeName,!be||be.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?he&&em(he.elementType)&&(Ge=Oy):Ge=Ak;if(Ge&&(Ge=Ge(s,he))){Ry(Re,Ge,c,we);break e}Ot&&Ot(s,ve,he),s==="focusout"&&he&&ve.type==="number"&&he.memoizedProps.value!=null&&Jh(ve,"number",ve.value)}switch(Ot=he?Zt(he):window,s){case"focusin":(Cy(Ot)||Ot.contentEditable==="true")&&(yl=Ot,mm=he,nc=null);break;case"focusout":nc=mm=yl=null;break;case"mousedown":pm=!0;break;case"contextmenu":case"mouseup":case"dragend":pm=!1,Hy(Re,c,we);break;case"selectionchange":if(Ck)break;case"keydown":case"keyup":Hy(Re,c,we)}var rt;if(cm)e:{switch(s){case"compositionstart":var ht="onCompositionStart";break e;case"compositionend":ht="onCompositionEnd";break e;case"compositionupdate":ht="onCompositionUpdate";break e}ht=void 0}else vl?Sy(s,c)&&(ht="onCompositionEnd"):s==="keydown"&&c.keyCode===229&&(ht="onCompositionStart");ht&&(_y&&c.locale!=="ko"&&(vl||ht!=="onCompositionStart"?ht==="onCompositionEnd"&&vl&&(rt=vy()):(Ei=we,sm="value"in Ei?Ei.value:Ei.textContent,vl=!0)),Ot=nf(he,ht),0<Ot.length&&(ht=new Ey(ht,s,null,c,we),Re.push({event:ht,listeners:Ot}),rt?ht.data=rt:(rt=wy(c),rt!==null&&(ht.data=rt)))),(rt=vk?yk(s,c):bk(s,c))&&(ht=nf(he,"onBeforeInput"),0<ht.length&&(Ot=new Ey("onBeforeInput","beforeinput",null,c,we),Re.push({event:Ot,listeners:ht}),Ot.data=rt)),uP(Re,s,he,c,we)}lE(Re,o)})}function Nc(s,o,c){return{instance:s,listener:o,currentTarget:c}}function nf(s,o){for(var c=o+"Capture",f=[];s!==null;){var y=s,x=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||x===null||(y=Yu(s,c),y!=null&&f.unshift(Nc(s,y,x)),y=Yu(s,o),y!=null&&f.push(Nc(s,y,x))),s.tag===3)return f;s=s.return}return[]}function Vl(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function cE(s,o,c,f,y){for(var x=o._reactName,O=[];c!==null&&c!==f;){var H=c,K=H.alternate,he=H.stateNode;if(H=H.tag,K!==null&&K===f)break;H!==5&&H!==26&&H!==27||he===null||(K=he,y?(he=Yu(c,x),he!=null&&O.unshift(Nc(c,he,K))):y||(he=Yu(c,x),he!=null&&O.push(Nc(c,he,K)))),c=c.return}O.length!==0&&s.push({event:o,listeners:O})}var hP=/\r\n?/g,mP=/\u0000|\uFFFD/g;function dE(s){return(typeof s=="string"?s:""+s).replace(hP,`
|
|
89
|
+
`).replace(mP,"")}function fE(s,o){return o=dE(o),dE(s)===o}function rf(){}function tn(s,o,c,f,y,x){switch(c){case"children":typeof f=="string"?o==="body"||o==="textarea"&&f===""||ml(s,f):(typeof f=="number"||typeof f=="bigint")&&o!=="body"&&ml(s,""+f);break;case"className":Ha(s,"class",f);break;case"tabIndex":Ha(s,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Ha(s,c,f);break;case"style":my(s,f,x);break;case"data":if(o!=="object"){Ha(s,"data",f);break}case"src":case"href":if(f===""&&(o!=="a"||c!=="href")){s.removeAttribute(c);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){s.removeAttribute(c);break}f=dd(""+f),s.setAttribute(c,f);break;case"action":case"formAction":if(typeof f=="function"){s.setAttribute(c,"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 x=="function"&&(c==="formAction"?(o!=="input"&&tn(s,o,"name",y.name,y,null),tn(s,o,"formEncType",y.formEncType,y,null),tn(s,o,"formMethod",y.formMethod,y,null),tn(s,o,"formTarget",y.formTarget,y,null)):(tn(s,o,"encType",y.encType,y,null),tn(s,o,"method",y.method,y,null),tn(s,o,"target",y.target,y,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){s.removeAttribute(c);break}f=dd(""+f),s.setAttribute(c,f);break;case"onClick":f!=null&&(s.onclick=rf);break;case"onScroll":f!=null&&Pt("scroll",s);break;case"onScrollEnd":f!=null&&Pt("scrollend",s);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(c=f.__html,c!=null){if(y.children!=null)throw Error(r(60));s.innerHTML=c}}break;case"multiple":s.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":s.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){s.removeAttribute("xlink:href");break}c=dd(""+f),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,""+f):s.removeAttribute(c);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":f&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,""):s.removeAttribute(c);break;case"capture":case"download":f===!0?s.setAttribute(c,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?s.setAttribute(c,f):s.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?s.setAttribute(c,f):s.removeAttribute(c);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?s.removeAttribute(c):s.setAttribute(c,f);break;case"popover":Pt("beforetoggle",s),Pt("toggle",s),Rr(s,"popover",f);break;case"xlinkActuate":fr(s,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":fr(s,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":fr(s,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":fr(s,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":fr(s,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":fr(s,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":fr(s,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":fr(s,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":fr(s,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Rr(s,"is",f);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=ZN.get(c)||c,Rr(s,c,f))}}function Hp(s,o,c,f,y,x){switch(c){case"style":my(s,f,x);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(c=f.__html,c!=null){if(y.children!=null)throw Error(r(60));s.innerHTML=c}}break;case"children":typeof f=="string"?ml(s,f):(typeof f=="number"||typeof f=="bigint")&&ml(s,""+f);break;case"onScroll":f!=null&&Pt("scroll",s);break;case"onScrollEnd":f!=null&&Pt("scrollend",s);break;case"onClick":f!=null&&(s.onclick=rf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tn.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(y=c.endsWith("Capture"),o=c.slice(2,y?c.length-7:void 0),x=s[Wt]||null,x=x!=null?x[c]:null,typeof x=="function"&&s.removeEventListener(o,x,y),typeof f=="function")){typeof x!="function"&&x!==null&&(c in s?s[c]=null:s.hasAttribute(c)&&s.removeAttribute(c)),s.addEventListener(o,f,y);break e}c in s?s[c]=f:f===!0?s.setAttribute(c,""):Rr(s,c,f)}}}function gr(s,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pt("error",s),Pt("load",s);var f=!1,y=!1,x;for(x in c)if(c.hasOwnProperty(x)){var O=c[x];if(O!=null)switch(x){case"src":f=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:tn(s,o,x,O,c,null)}}y&&tn(s,o,"srcSet",c.srcSet,c,null),f&&tn(s,o,"src",c.src,c,null);return;case"input":Pt("invalid",s);var H=x=O=y=null,K=null,he=null;for(f in c)if(c.hasOwnProperty(f)){var we=c[f];if(we!=null)switch(f){case"name":y=we;break;case"type":O=we;break;case"checked":K=we;break;case"defaultChecked":he=we;break;case"value":x=we;break;case"defaultValue":H=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,o));break;default:tn(s,o,f,we,c,null)}}cy(s,x,H,K,he,O,y,!1),yo(s);return;case"select":Pt("invalid",s),f=O=x=null;for(y in c)if(c.hasOwnProperty(y)&&(H=c[y],H!=null))switch(y){case"value":x=H;break;case"defaultValue":O=H;break;case"multiple":f=H;default:tn(s,o,y,H,c,null)}o=x,c=O,s.multiple=!!f,o!=null?hl(s,!!f,o,!1):c!=null&&hl(s,!!f,c,!0);return;case"textarea":Pt("invalid",s),x=y=f=null;for(O in c)if(c.hasOwnProperty(O)&&(H=c[O],H!=null))switch(O){case"value":f=H;break;case"defaultValue":y=H;break;case"children":x=H;break;case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(91));break;default:tn(s,o,O,H,c,null)}fy(s,f,y,x),yo(s);return;case"option":for(K in c)if(c.hasOwnProperty(K)&&(f=c[K],f!=null))switch(K){case"selected":s.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:tn(s,o,K,f,c,null)}return;case"dialog":Pt("beforetoggle",s),Pt("toggle",s),Pt("cancel",s),Pt("close",s);break;case"iframe":case"object":Pt("load",s);break;case"video":case"audio":for(f=0;f<Oc.length;f++)Pt(Oc[f],s);break;case"image":Pt("error",s),Pt("load",s);break;case"details":Pt("toggle",s);break;case"embed":case"source":case"link":Pt("error",s),Pt("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(he in c)if(c.hasOwnProperty(he)&&(f=c[he],f!=null))switch(he){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:tn(s,o,he,f,c,null)}return;default:if(em(o)){for(we in c)c.hasOwnProperty(we)&&(f=c[we],f!==void 0&&Hp(s,o,we,f,c,void 0));return}}for(H in c)c.hasOwnProperty(H)&&(f=c[H],f!=null&&tn(s,o,H,f,c,null))}function pP(s,o,c,f){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,x=null,O=null,H=null,K=null,he=null,we=null;for(be in c){var Re=c[be];if(c.hasOwnProperty(be)&&Re!=null)switch(be){case"checked":break;case"value":break;case"defaultValue":K=Re;default:f.hasOwnProperty(be)||tn(s,o,be,null,f,Re)}}for(var ve in f){var be=f[ve];if(Re=c[ve],f.hasOwnProperty(ve)&&(be!=null||Re!=null))switch(ve){case"type":x=be;break;case"name":y=be;break;case"checked":he=be;break;case"defaultChecked":we=be;break;case"value":O=be;break;case"defaultValue":H=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(r(137,o));break;default:be!==Re&&tn(s,o,ve,be,f,Re)}}Wh(s,O,H,K,he,we,x,y);return;case"select":be=O=H=ve=null;for(x in c)if(K=c[x],c.hasOwnProperty(x)&&K!=null)switch(x){case"value":break;case"multiple":be=K;default:f.hasOwnProperty(x)||tn(s,o,x,null,f,K)}for(y in f)if(x=f[y],K=c[y],f.hasOwnProperty(y)&&(x!=null||K!=null))switch(y){case"value":ve=x;break;case"defaultValue":H=x;break;case"multiple":O=x;default:x!==K&&tn(s,o,y,x,f,K)}o=H,c=O,f=be,ve!=null?hl(s,!!c,ve,!1):!!f!=!!c&&(o!=null?hl(s,!!c,o,!0):hl(s,!!c,c?[]:"",!1));return;case"textarea":be=ve=null;for(H in c)if(y=c[H],c.hasOwnProperty(H)&&y!=null&&!f.hasOwnProperty(H))switch(H){case"value":break;case"children":break;default:tn(s,o,H,null,f,y)}for(O in f)if(y=f[O],x=c[O],f.hasOwnProperty(O)&&(y!=null||x!=null))switch(O){case"value":ve=y;break;case"defaultValue":be=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==x&&tn(s,o,O,y,f,x)}dy(s,ve,be);return;case"option":for(var mt in c)if(ve=c[mt],c.hasOwnProperty(mt)&&ve!=null&&!f.hasOwnProperty(mt))switch(mt){case"selected":s.selected=!1;break;default:tn(s,o,mt,null,f,ve)}for(K in f)if(ve=f[K],be=c[K],f.hasOwnProperty(K)&&ve!==be&&(ve!=null||be!=null))switch(K){case"selected":s.selected=ve&&typeof ve!="function"&&typeof ve!="symbol";break;default:tn(s,o,K,ve,f,be)}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 ft in c)ve=c[ft],c.hasOwnProperty(ft)&&ve!=null&&!f.hasOwnProperty(ft)&&tn(s,o,ft,null,f,ve);for(he in f)if(ve=f[he],be=c[he],f.hasOwnProperty(he)&&ve!==be&&(ve!=null||be!=null))switch(he){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,o));break;default:tn(s,o,he,ve,f,be)}return;default:if(em(o)){for(var nn in c)ve=c[nn],c.hasOwnProperty(nn)&&ve!==void 0&&!f.hasOwnProperty(nn)&&Hp(s,o,nn,void 0,f,ve);for(we in f)ve=f[we],be=c[we],!f.hasOwnProperty(we)||ve===be||ve===void 0&&be===void 0||Hp(s,o,we,ve,f,be);return}}for(var le in c)ve=c[le],c.hasOwnProperty(le)&&ve!=null&&!f.hasOwnProperty(le)&&tn(s,o,le,null,f,ve);for(Re in f)ve=f[Re],be=c[Re],!f.hasOwnProperty(Re)||ve===be||ve==null&&be==null||tn(s,o,Re,ve,f,be)}var Fp=null,Up=null;function af(s){return s.nodeType===9?s:s.ownerDocument}function hE(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function mE(s,o){if(s===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&o==="foreignObject"?0:s}function Bp(s,o){return s==="textarea"||s==="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 Vp=null;function gP(){var s=window.event;return s&&s.type==="popstate"?s===Vp?!1:(Vp=s,!0):(Vp=null,!1)}var pE=typeof setTimeout=="function"?setTimeout:void 0,vP=typeof clearTimeout=="function"?clearTimeout:void 0,gE=typeof Promise=="function"?Promise:void 0,yP=typeof queueMicrotask=="function"?queueMicrotask:typeof gE<"u"?function(s){return gE.resolve(null).then(s).catch(bP)}:pE;function bP(s){setTimeout(function(){throw s})}function Ii(s){return s==="head"}function vE(s,o){var c=o,f=0,y=0;do{var x=c.nextSibling;if(s.removeChild(c),x&&x.nodeType===8)if(c=x.data,c==="/$"){if(0<f&&8>f){c=f;var O=s.ownerDocument;if(c&1&&kc(O.documentElement),c&2&&kc(O.body),c&4)for(c=O.head,kc(c),O=c.firstChild;O;){var H=O.nextSibling,K=O.nodeName;O[ye]||K==="SCRIPT"||K==="STYLE"||K==="LINK"&&O.rel.toLowerCase()==="stylesheet"||c.removeChild(O),O=H}}if(y===0){s.removeChild(x),Fc(o);return}y--}else c==="$"||c==="$?"||c==="$!"?y++:f=c.charCodeAt(0)-48;else f=0;c=x}while(c);Fc(o)}function zp(s){var o=s.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":zp(c),tt(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}s.removeChild(c)}}function EP(s,o,c,f){for(;s.nodeType===1;){var y=c;if(s.nodeName.toLowerCase()!==o.toLowerCase()){if(!f&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(f){if(!s[ye])switch(o){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(x=s.getAttribute("rel"),x==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(x!==y.rel||s.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||s.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||s.getAttribute("title")!==(y.title==null?null:y.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(x=s.getAttribute("src"),(x!==(y.src==null?null:y.src)||s.getAttribute("type")!==(y.type==null?null:y.type)||s.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&x&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(o==="input"&&s.type==="hidden"){var x=y.name==null?null:""+y.name;if(y.type==="hidden"&&s.getAttribute("name")===x)return s}else return s;if(s=Ba(s.nextSibling),s===null)break}return null}function xP(s,o,c){if(o==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!c||(s=Ba(s.nextSibling),s===null))return null;return s}function Zp(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function _P(s,o){var c=s.ownerDocument;if(s.data!=="$?"||c.readyState==="complete")o();else{var f=function(){o(),c.removeEventListener("DOMContentLoaded",f)};c.addEventListener("DOMContentLoaded",f),s._reactRetry=f}}function Ba(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return s}var qp=null;function yE(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var c=s.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return s;o--}else c==="/$"&&o++}s=s.previousSibling}return null}function bE(s,o,c){switch(o=af(c),s){case"html":if(s=o.documentElement,!s)throw Error(r(452));return s;case"head":if(s=o.head,!s)throw Error(r(453));return s;case"body":if(s=o.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function kc(s){for(var o=s.attributes;o.length;)s.removeAttributeNode(o[0]);tt(s)}var xa=new Map,EE=new Set;function sf(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Ys=J.d;J.d={f:TP,r:AP,D:SP,C:wP,L:CP,m:RP,X:NP,S:OP,M:kP};function TP(){var s=Ys.f(),o=Kd();return s||o}function AP(s){var o=Tt(s);o!==null&&o.tag===5&&o.type==="form"?Ub(o):Ys.r(s)}var zl=typeof document>"u"?null:document;function xE(s,o,c){var f=zl;if(f&&typeof o=="string"&&o){var y=ma(o);y='link[rel="'+s+'"][href="'+y+'"]',typeof c=="string"&&(y+='[crossorigin="'+c+'"]'),EE.has(y)||(EE.add(y),s={rel:s,crossOrigin:c,href:o},f.querySelector(y)===null&&(o=f.createElement("link"),gr(o,"link",s),at(o),f.head.appendChild(o)))}}function SP(s){Ys.D(s),xE("dns-prefetch",s,null)}function wP(s,o){Ys.C(s,o),xE("preconnect",s,o)}function CP(s,o,c){Ys.L(s,o,c);var f=zl;if(f&&s&&o){var y='link[rel="preload"][as="'+ma(o)+'"]';o==="image"&&c&&c.imageSrcSet?(y+='[imagesrcset="'+ma(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(y+='[imagesizes="'+ma(c.imageSizes)+'"]')):y+='[href="'+ma(s)+'"]';var x=y;switch(o){case"style":x=Zl(s);break;case"script":x=ql(s)}xa.has(x)||(s=g({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:s,as:o},c),xa.set(x,s),f.querySelector(y)!==null||o==="style"&&f.querySelector(Pc(x))||o==="script"&&f.querySelector(Dc(x))||(o=f.createElement("link"),gr(o,"link",s),at(o),f.head.appendChild(o)))}}function RP(s,o){Ys.m(s,o);var c=zl;if(c&&s){var f=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+ma(f)+'"][href="'+ma(s)+'"]',x=y;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=ql(s)}if(!xa.has(x)&&(s=g({rel:"modulepreload",href:s},o),xa.set(x,s),c.querySelector(y)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Dc(x)))return}f=c.createElement("link"),gr(f,"link",s),at(f),c.head.appendChild(f)}}}function OP(s,o,c){Ys.S(s,o,c);var f=zl;if(f&&s){var y=Jt(f).hoistableStyles,x=Zl(s);o=o||"default";var O=y.get(x);if(!O){var H={loading:0,preload:null};if(O=f.querySelector(Pc(x)))H.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":o},c),(c=xa.get(x))&&$p(s,c);var K=O=f.createElement("link");at(K),gr(K,"link",s),K._p=new Promise(function(he,we){K.onload=he,K.onerror=we}),K.addEventListener("load",function(){H.loading|=1}),K.addEventListener("error",function(){H.loading|=2}),H.loading|=4,of(O,o,f)}O={type:"stylesheet",instance:O,count:1,state:H},y.set(x,O)}}}function NP(s,o){Ys.X(s,o);var c=zl;if(c&&s){var f=Jt(c).hoistableScripts,y=ql(s),x=f.get(y);x||(x=c.querySelector(Dc(y)),x||(s=g({src:s,async:!0},o),(o=xa.get(y))&&Qp(s,o),x=c.createElement("script"),at(x),gr(x,"link",s),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(y,x))}}function kP(s,o){Ys.M(s,o);var c=zl;if(c&&s){var f=Jt(c).hoistableScripts,y=ql(s),x=f.get(y);x||(x=c.querySelector(Dc(y)),x||(s=g({src:s,async:!0,type:"module"},o),(o=xa.get(y))&&Qp(s,o),x=c.createElement("script"),at(x),gr(x,"link",s),c.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(y,x))}}function _E(s,o,c,f){var y=(y=Z.current)?sf(y):null;if(!y)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=Zl(c.href),c=Jt(y).hoistableStyles,f=c.get(o),f||(f={type:"style",instance:null,count:0,state:null},c.set(o,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){s=Zl(c.href);var x=Jt(y).hoistableStyles,O=x.get(s);if(O||(y=y.ownerDocument||y,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(s,O),(x=y.querySelector(Pc(s)))&&!x._p&&(O.instance=x,O.state.loading=5),xa.has(s)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},xa.set(s,c),x||PP(y,s,c,O.state))),o&&f===null)throw Error(r(528,""));return O}if(o&&f!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=ql(c),c=Jt(y).hoistableScripts,f=c.get(o),f||(f={type:"script",instance:null,count:0,state:null},c.set(o,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function Zl(s){return'href="'+ma(s)+'"'}function Pc(s){return'link[rel="stylesheet"]['+s+"]"}function TE(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function PP(s,o,c,f){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?f.loading=1:(o=s.createElement("link"),f.preload=o,o.addEventListener("load",function(){return f.loading|=1}),o.addEventListener("error",function(){return f.loading|=2}),gr(o,"link",c),at(o),s.head.appendChild(o))}function ql(s){return'[src="'+ma(s)+'"]'}function Dc(s){return"script[async]"+s}function AE(s,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var f=s.querySelector('style[data-href~="'+ma(c.href)+'"]');if(f)return o.instance=f,at(f),f;var y=g({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return f=(s.ownerDocument||s).createElement("style"),at(f),gr(f,"style",y),of(f,c.precedence,s),o.instance=f;case"stylesheet":y=Zl(c.href);var x=s.querySelector(Pc(y));if(x)return o.state.loading|=4,o.instance=x,at(x),x;f=TE(c),(y=xa.get(y))&&$p(f,y),x=(s.ownerDocument||s).createElement("link"),at(x);var O=x;return O._p=new Promise(function(H,K){O.onload=H,O.onerror=K}),gr(x,"link",f),o.state.loading|=4,of(x,c.precedence,s),o.instance=x;case"script":return x=ql(c.src),(y=s.querySelector(Dc(x)))?(o.instance=y,at(y),y):(f=c,(y=xa.get(x))&&(f=g({},c),Qp(f,y)),s=s.ownerDocument||s,y=s.createElement("script"),at(y),gr(y,"link",f),s.head.appendChild(y),o.instance=y);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(f=o.instance,o.state.loading|=4,of(f,c.precedence,s));return o.instance}function of(s,o,c){for(var f=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=f.length?f[f.length-1]:null,x=y,O=0;O<f.length;O++){var H=f[O];if(H.dataset.precedence===o)x=H;else if(x!==y)break}x?x.parentNode.insertBefore(s,x.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(s,o.firstChild))}function $p(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.title==null&&(s.title=o.title)}function Qp(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.integrity==null&&(s.integrity=o.integrity)}var lf=null;function SE(s,o,c){if(lf===null){var f=new Map,y=lf=new Map;y.set(c,f)}else y=lf,f=y.get(c),f||(f=new Map,y.set(c,f));if(f.has(s))return f;for(f.set(s,null),c=c.getElementsByTagName(s),y=0;y<c.length;y++){var x=c[y];if(!(x[ye]||x[_n]||s==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var O=x.getAttribute(o)||"";O=s+O;var H=f.get(O);H?H.push(x):f.set(O,[x])}}return f}function wE(s,o,c){s=s.ownerDocument||s,s.head.insertBefore(c,o==="title"?s.querySelector("head > title"):null)}function DP(s,o,c){if(c===1||o.itemProp!=null)return!1;switch(s){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 s=o.disabled,typeof o.precedence=="string"&&s==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 CE(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Lc=null;function LP(){}function MP(s,o,c){if(Lc===null)throw Error(r(475));var f=Lc;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var y=Zl(c.href),x=s.querySelector(Pc(y));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(f.count++,f=uf.bind(f),s.then(f,f)),o.state.loading|=4,o.instance=x,at(x);return}x=s.ownerDocument||s,c=TE(c),(y=xa.get(y))&&$p(c,y),x=x.createElement("link"),at(x);var O=x;O._p=new Promise(function(H,K){O.onload=H,O.onerror=K}),gr(x,"link",c),o.instance=x}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(f.count++,o=uf.bind(f),s.addEventListener("load",o),s.addEventListener("error",o))}}function IP(){if(Lc===null)throw Error(r(475));var s=Lc;return s.stylesheets&&s.count===0&&Yp(s,s.stylesheets),0<s.count?function(o){var c=setTimeout(function(){if(s.stylesheets&&Yp(s,s.stylesheets),s.unsuspend){var f=s.unsuspend;s.unsuspend=null,f()}},6e4);return s.unsuspend=o,function(){s.unsuspend=null,clearTimeout(c)}}:null}function uf(){if(this.count--,this.count===0){if(this.stylesheets)Yp(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var cf=null;function Yp(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,cf=new Map,o.forEach(jP,s),cf=null,uf.call(s))}function jP(s,o){if(!(o.state.loading&4)){var c=cf.get(s);if(c)var f=c.get(null);else{c=new Map,cf.set(s,c);for(var y=s.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<y.length;x++){var O=y[x];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(c.set(O.dataset.precedence,O),f=O)}f&&c.set(null,f)}y=o.instance,O=y.getAttribute("data-precedence"),x=c.get(O)||f,x===f&&c.set(null,y),c.set(O,y),this.count++,f=uf.bind(this),y.addEventListener("load",f),y.addEventListener("error",f),x?x.parentNode.insertBefore(y,x.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(y,s.firstChild)),o.state.loading|=4}}var Mc={$$typeof:P,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function HP(s,o,c,f,y,x,O,H){this.tag=1,this.containerInfo=s,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=go(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.hiddenUpdates=go(null),this.identifierPrefix=f,this.onUncaughtError=y,this.onCaughtError=x,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function RE(s,o,c,f,y,x,O,H,K,he,we,Re){return s=new HP(s,o,c,O,H,K,he,Re),o=1,x===!0&&(o|=24),x=ea(3,null,null,o),s.current=x,x.stateNode=s,o=Om(),o.refCount++,s.pooledCache=o,o.refCount++,x.memoizedState={element:f,isDehydrated:c,cache:o},Dm(x),s}function OE(s){return s?(s=_l,s):_l}function NE(s,o,c,f,y,x){y=OE(y),f.context===null?f.context=y:f.pendingContext=y,f=Ti(o),f.payload={element:c},x=x===void 0?null:x,x!==null&&(f.callback=x),c=Ai(s,f,o),c!==null&&(sa(c,s,o),dc(c,s,o))}function kE(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var c=s.retryLane;s.retryLane=c!==0&&c<o?c:o}}function Gp(s,o){kE(s,o),(s=s.alternate)&&kE(s,o)}function PE(s){if(s.tag===13){var o=xl(s,67108864);o!==null&&sa(o,s,67108864),Gp(s,67108864)}}var df=!0;function FP(s,o,c,f){var y=V.T;V.T=null;var x=J.p;try{J.p=2,Kp(s,o,c,f)}finally{J.p=x,V.T=y}}function UP(s,o,c,f){var y=V.T;V.T=null;var x=J.p;try{J.p=8,Kp(s,o,c,f)}finally{J.p=x,V.T=y}}function Kp(s,o,c,f){if(df){var y=Xp(f);if(y===null)jp(s,o,f,ff,c),LE(s,f);else if(VP(y,s,o,c,f))f.stopPropagation();else if(LE(s,f),o&4&&-1<BP.indexOf(s)){for(;y!==null;){var x=Tt(y);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var O=qn(x.pendingLanes);if(O!==0){var H=x;for(H.pendingLanes|=2,H.entangledLanes|=2;O;){var K=1<<31-qe(O);H.entanglements[1]|=K,O&=~K}cs(x),(Gt&6)===0&&(Yd=st()+500,Rc(0))}}break;case 13:H=xl(x,2),H!==null&&sa(H,x,2),Kd(),Gp(x,2)}if(x=Xp(f),x===null&&jp(s,o,f,ff,c),x===y)break;y=x}y!==null&&f.stopPropagation()}else jp(s,o,f,null,c)}}function Xp(s){return s=nm(s),Wp(s)}var ff=null;function Wp(s){if(ff=null,s=Je(s),s!==null){var o=i(s);if(o===null)s=null;else{var c=o.tag;if(c===13){if(s=l(o),s!==null)return s;s=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return ff=s,null}function DE(s){switch(s){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(yn()){case bt:return 2;case W:return 8;case ce:case pe:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var Jp=!1,ji=null,Hi=null,Fi=null,Ic=new Map,jc=new Map,Ui=[],BP="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 LE(s,o){switch(s){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":Fi=null;break;case"pointerover":case"pointerout":Ic.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(o.pointerId)}}function Hc(s,o,c,f,y,x){return s===null||s.nativeEvent!==x?(s={blockedOn:o,domEventName:c,eventSystemFlags:f,nativeEvent:x,targetContainers:[y]},o!==null&&(o=Tt(o),o!==null&&PE(o)),s):(s.eventSystemFlags|=f,o=s.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),s)}function VP(s,o,c,f,y){switch(o){case"focusin":return ji=Hc(ji,s,o,c,f,y),!0;case"dragenter":return Hi=Hc(Hi,s,o,c,f,y),!0;case"mouseover":return Fi=Hc(Fi,s,o,c,f,y),!0;case"pointerover":var x=y.pointerId;return Ic.set(x,Hc(Ic.get(x)||null,s,o,c,f,y)),!0;case"gotpointercapture":return x=y.pointerId,jc.set(x,Hc(jc.get(x)||null,s,o,c,f,y)),!0}return!1}function ME(s){var o=Je(s.target);if(o!==null){var c=i(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){s.blockedOn=o,Pn(s.priority,function(){if(c.tag===13){var f=aa();f=On(f);var y=xl(c,f);y!==null&&sa(y,c,f),Gp(c,f)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){s.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}s.blockedOn=null}function hf(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var c=Xp(s.nativeEvent);if(c===null){c=s.nativeEvent;var f=new c.constructor(c.type,c);tm=f,c.target.dispatchEvent(f),tm=null}else return o=Tt(c),o!==null&&PE(o),s.blockedOn=c,!1;o.shift()}return!0}function IE(s,o,c){hf(s)&&c.delete(o)}function zP(){Jp=!1,ji!==null&&hf(ji)&&(ji=null),Hi!==null&&hf(Hi)&&(Hi=null),Fi!==null&&hf(Fi)&&(Fi=null),Ic.forEach(IE),jc.forEach(IE)}function mf(s,o){s.blockedOn===o&&(s.blockedOn=null,Jp||(Jp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,zP)))}var pf=null;function jE(s){pf!==s&&(pf=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){pf===s&&(pf=null);for(var o=0;o<s.length;o+=3){var c=s[o],f=s[o+1],y=s[o+2];if(typeof f!="function"){if(Wp(f||c)===null)continue;break}var x=Tt(c);x!==null&&(s.splice(o,3),o-=3,Wm(x,{pending:!0,data:y,method:c.method,action:f},f,y))}}))}function Fc(s){function o(K){return mf(K,s)}ji!==null&&mf(ji,s),Hi!==null&&mf(Hi,s),Fi!==null&&mf(Fi,s),Ic.forEach(o),jc.forEach(o);for(var c=0;c<Ui.length;c++){var f=Ui[c];f.blockedOn===s&&(f.blockedOn=null)}for(;0<Ui.length&&(c=Ui[0],c.blockedOn===null);)ME(c),c.blockedOn===null&&Ui.shift();if(c=(s.ownerDocument||s).$$reactFormReplay,c!=null)for(f=0;f<c.length;f+=3){var y=c[f],x=c[f+1],O=y[Wt]||null;if(typeof x=="function")O||jE(c);else if(O){var H=null;if(x&&x.hasAttribute("formAction")){if(y=x,O=x[Wt]||null)H=O.formAction;else if(Wp(y)!==null)continue}else H=O.action;typeof H=="function"?c[f+1]=H:(c.splice(f,3),f-=3),jE(c)}}}function e2(s){this._internalRoot=s}gf.prototype.render=e2.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,f=aa();NE(c,f,s,o,null,null)},gf.prototype.unmount=e2.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;NE(s.current,2,null,s,null,null),Kd(),o[Hn]=null}};function gf(s){this._internalRoot=s}gf.prototype.unstable_scheduleHydration=function(s){if(s){var o=Ia();s={blockedOn:null,target:s,priority:o};for(var c=0;c<Ui.length&&o!==0&&o<Ui[c].priority;c++);Ui.splice(c,0,s),c===0&&ME(s)}};var HE=t.version;if(HE!=="19.1.0")throw Error(r(527,HE,"19.1.0"));J.findDOMNode=function(s){var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=d(o),s=s!==null?h(s):null,s=s===null?null:s.stateNode,s};var ZP={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vf.isDisabled&&vf.supportsFiber)try{ie=vf.inject(ZP),Se=vf}catch{}}return Vc.createRoot=function(s,o){if(!a(s))throw Error(r(299));var c=!1,f="",y=e3,x=t3,O=n3,H=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(O=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(H=o.unstable_transitionCallbacks)),o=RE(s,1,!1,null,null,c,f,y,x,O,H,null),s[Hn]=o.current,Ip(s),new e2(o)},Vc.hydrateRoot=function(s,o,c){if(!a(s))throw Error(r(299));var f=!1,y="",x=e3,O=t3,H=n3,K=null,he=null;return c!=null&&(c.unstable_strictMode===!0&&(f=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(x=c.onUncaughtError),c.onCaughtError!==void 0&&(O=c.onCaughtError),c.onRecoverableError!==void 0&&(H=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(K=c.unstable_transitionCallbacks),c.formState!==void 0&&(he=c.formState)),o=RE(s,1,!0,o,c??null,f,y,x,O,H,K,he),o.context=OE(null),c=o.current,f=aa(),f=On(f),y=Ti(f),y.callback=null,Ai(c,y,f),c=f,o.current.lanes=c,as(o,c),cs(o),s[Hn]=o.current,Ip(s),new gf(o)},Vc.version="19.1.0",Vc}var wx;function sF(){if(wx)return g2.exports;wx=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(),g2.exports=aF(),g2.exports}var iF=sF();const oF=Cu(iF);/**
|
|
90
|
+
* react-router v7.9.1
|
|
91
|
+
*
|
|
92
|
+
* Copyright (c) Remix Software Inc.
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the MIT license found in the
|
|
95
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
96
|
+
*
|
|
97
|
+
* @license MIT
|
|
98
|
+
*/var Cx="popstate";function lF(e={}){function t(r,a){let{pathname:i,search:l,hash:u}=r.location;return m8("",{pathname:i,search:l,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:_0(a)}return cF(t,n,null,e)}function Cn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ka(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uF(){return Math.random().toString(36).substring(2,10)}function Rx(e,t){return{usr:e.state,key:e.key,idx:t}}function m8(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Du(t):t,state:n,key:t&&t.key||r||uF()}}function _0({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Du(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function cF(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,l=a.history,u="POP",d=null,h=g();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function g(){return(l.state||{idx:null}).idx}function m(){u="POP";let S=g(),w=S==null?null:S-h;h=S,d&&d({action:u,location:A.location,delta:w})}function E(S,w){u="PUSH";let R=m8(A.location,S,w);h=g()+1;let P=Rx(R,h),M=A.createHref(R);try{l.pushState(P,"",M)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(M)}i&&d&&d({action:u,location:A.location,delta:1})}function b(S,w){u="REPLACE";let R=m8(A.location,S,w);h=g();let P=Rx(R,h),M=A.createHref(R);l.replaceState(P,"",M),i&&d&&d({action:u,location:A.location,delta:0})}function T(S){return dF(S)}let A={get action(){return u},get location(){return e(a,l)},listen(S){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(Cx,m),d=S,()=>{a.removeEventListener(Cx,m),d=null}},createHref(S){return t(a,S)},createURL:T,encodeLocation(S){let w=T(S);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:E,replace:b,go(S){return l.go(S)}};return A}function dF(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Cn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:_0(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function t9(e,t,n="/"){return fF(e,t,n,!1)}function fF(e,t,n,r){let a=typeof t=="string"?Du(t):t,i=ui(a.pathname||"/",n);if(i==null)return null;let l=n9(e);hF(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let h=AF(i);u=_F(l[d],h,r)}return u}function n9(e,t=[],n=[],r="",a=!1){let i=(l,u,d=a,h)=>{let g={relativePath:h===void 0?l.path||"":h,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(r)&&d)return;Cn(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length)}let m=ai([r,g.relativePath]),E=n.concat(g);l.children&&l.children.length>0&&(Cn(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),n9(l.children,t,E,m,d)),!(l.path==null&&!l.index)&&t.push({path:m,score:EF(m,l.index),routesMeta:E})};return e.forEach((l,u)=>{if(l.path===""||!l.path?.includes("?"))i(l,u);else for(let d of r9(l.path))i(l,u,!0,d)}),t}function r9(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let l=r9(r.join("/")),u=[];return u.push(...l.map(d=>d===""?i:[i,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function hF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var mF=/^:[\w-]+$/,pF=3,gF=2,vF=1,yF=10,bF=-2,Ox=e=>e==="*";function EF(e,t){let n=e.split("/"),r=n.length;return n.some(Ox)&&(r+=bF),t&&(r+=gF),n.filter(a=>!Ox(a)).reduce((a,i)=>a+(mF.test(i)?pF:i===""?vF:yF),r)}function xF(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function _F(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],h=u===r.length-1,g=i==="/"?t:t.slice(i.length)||"/",m=i1({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},g),E=d.route;if(!m&&h&&n&&!r[r.length-1].route.index&&(m=i1({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},g)),!m)return null;Object.assign(a,m.params),l.push({params:a,pathname:ai([i,m.pathname]),pathnameBase:RF(ai([i,m.pathnameBase])),route:E}),m.pathnameBase!=="/"&&(i=ai([i,m.pathnameBase]))}return l}function i1(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TF(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((h,{paramName:g,isOptional:m},E)=>{if(g==="*"){let T=u[E]||"";l=i.slice(0,i.length-T.length).replace(/(.)\/+$/,"$1")}const b=u[E];return m&&!b?h[g]=void 0:h[g]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:i,pathnameBase:l,pattern:e}}function TF(e,t=!1,n=!0){Ka(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function AF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ka(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ui(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function SF(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Du(e):e;return{pathname:n?n.startsWith("/")?n:wF(n,t):t,search:OF(r),hash:NF(a)}}function wF(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function b2(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function CF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function pv(e){let t=CF(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function gv(e,t,n,r=!1){let a;typeof e=="string"?a=Du(e):(a={...e},Cn(!a.pathname||!a.pathname.includes("?"),b2("?","pathname","search",a)),Cn(!a.pathname||!a.pathname.includes("#"),b2("#","pathname","hash",a)),Cn(!a.search||!a.search.includes("#"),b2("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,u;if(l==null)u=n;else{let m=t.length-1;if(!r&&l.startsWith("..")){let E=l.split("/");for(;E[0]==="..";)E.shift(),m-=1;a.pathname=E.join("/")}u=m>=0?t[m]:"/"}let d=SF(a,u),h=l&&l!=="/"&&l.endsWith("/"),g=(i||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(h||g)&&(d.pathname+="/"),d}var ai=e=>e.join("/").replace(/\/\/+/g,"/"),RF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var a9=["POST","PUT","PATCH","DELETE"];new Set(a9);var PF=["GET",...a9];new Set(PF);var Lu=p.createContext(null);Lu.displayName="DataRouter";var rh=p.createContext(null);rh.displayName="DataRouterState";p.createContext(!1);var s9=p.createContext({isTransitioning:!1});s9.displayName="ViewTransition";var DF=p.createContext(new Map);DF.displayName="Fetchers";var LF=p.createContext(null);LF.displayName="Await";var Xa=p.createContext(null);Xa.displayName="Navigation";var Z0=p.createContext(null);Z0.displayName="Location";var ka=p.createContext({outlet:null,matches:[],isDataRoute:!1});ka.displayName="Route";var vv=p.createContext(null);vv.displayName="RouteError";function MF(e,{relative:t}={}){Cn(Mu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=p.useContext(Xa),{hash:a,pathname:i,search:l}=q0(e,{relative:t}),u=i;return n!=="/"&&(u=i==="/"?n:ai([n,i])),r.createHref({pathname:u,search:l,hash:a})}function Mu(){return p.useContext(Z0)!=null}function mi(){return Cn(Mu(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Z0).location}var i9="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function o9(e){p.useContext(Xa).static||p.useLayoutEffect(e)}function Cs(){let{isDataRoute:e}=p.useContext(ka);return e?KF():IF()}function IF(){Cn(Mu(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(Lu),{basename:t,navigator:n}=p.useContext(Xa),{matches:r}=p.useContext(ka),{pathname:a}=mi(),i=JSON.stringify(pv(r)),l=p.useRef(!1);return o9(()=>{l.current=!0}),p.useCallback((d,h={})=>{if(Ka(l.current,i9),!l.current)return;if(typeof d=="number"){n.go(d);return}let g=gv(d,JSON.parse(i),a,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:ai([t,g.pathname])),(h.replace?n.replace:n.push)(g,h.state,h)},[t,n,i,a,e])}var jF=p.createContext(null);function HF(e){let t=p.useContext(ka).outlet;return t&&p.createElement(jF.Provider,{value:e},t)}function yv(){let{matches:e}=p.useContext(ka),t=e[e.length-1];return t?t.params:{}}function q0(e,{relative:t}={}){let{matches:n}=p.useContext(ka),{pathname:r}=mi(),a=JSON.stringify(pv(n));return p.useMemo(()=>gv(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function FF(e,t){return l9(e,t)}function l9(e,t,n,r,a){Cn(Mu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=p.useContext(Xa),{matches:l}=p.useContext(ka),u=l[l.length-1],d=u?u.params:{},h=u?u.pathname:"/",g=u?u.pathnameBase:"/",m=u&&u.route;{let R=m&&m.path||"";u9(h,!m||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
99
|
+
|
|
100
|
+
Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let E=mi(),b;if(t){let R=typeof t=="string"?Du(t):t;Cn(g==="/"||R.pathname?.startsWith(g),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${R.pathname}" was given in the \`location\` prop.`),b=R}else b=E;let T=b.pathname||"/",A=T;if(g!=="/"){let R=g.replace(/^\//,"").split("/");A="/"+T.replace(/^\//,"").split("/").slice(R.length).join("/")}let S=t9(e,{pathname:A});Ka(m||S!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Ka(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=ZF(S&&S.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:ai([g,i.encodeLocation?i.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:ai([g,i.encodeLocation?i.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),l,n,r,a);return t&&w?p.createElement(Z0.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},w):w}function UF(){let e=GF(),t=kF(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:i},"ErrorBoundary")," or"," ",p.createElement("code",{style:i},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:a},n):null,l)}var BF=p.createElement(UF,null),VF=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?p.createElement(ka.Provider,{value:this.props.routeContext},p.createElement(vv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zF({routeContext:e,match:t,children:n}){let r=p.useContext(Lu);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(ka.Provider,{value:e},n)}function ZF(e,t=[],n=null,r=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=n?.errors;if(l!=null){let h=i.findIndex(g=>g.route.id&&l?.[g.route.id]!==void 0);Cn(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let u=!1,d=-1;if(n)for(let h=0;h<i.length;h++){let g=i[h];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=h),g.route.id){let{loaderData:m,errors:E}=n,b=g.route.loader&&!m.hasOwnProperty(g.route.id)&&(!E||E[g.route.id]===void 0);if(g.route.lazy||b){u=!0,d>=0?i=i.slice(0,d+1):i=[i[0]];break}}}return i.reduceRight((h,g,m)=>{let E,b=!1,T=null,A=null;n&&(E=l&&g.route.id?l[g.route.id]:void 0,T=g.route.errorElement||BF,u&&(d<0&&m===0?(u9("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,A=null):d===m&&(b=!0,A=g.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,m+1)),w=()=>{let R;return E?R=T:b?R=A:g.route.Component?R=p.createElement(g.route.Component,null):g.route.element?R=g.route.element:R=h,p.createElement(zF,{match:g,routeContext:{outlet:h,matches:S,isDataRoute:n!=null},children:R})};return n&&(g.route.ErrorBoundary||g.route.errorElement||m===0)?p.createElement(VF,{location:n.location,revalidation:n.revalidation,component:T,error:E,children:w(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):w()},null)}function bv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qF(e){let t=p.useContext(Lu);return Cn(t,bv(e)),t}function $F(e){let t=p.useContext(rh);return Cn(t,bv(e)),t}function QF(e){let t=p.useContext(ka);return Cn(t,bv(e)),t}function Ev(e){let t=QF(e),n=t.matches[t.matches.length-1];return Cn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function YF(){return Ev("useRouteId")}function GF(){let e=p.useContext(vv),t=$F("useRouteError"),n=Ev("useRouteError");return e!==void 0?e:t.errors?.[n]}function KF(){let{router:e}=qF("useNavigate"),t=Ev("useNavigate"),n=p.useRef(!1);return o9(()=>{n.current=!0}),p.useCallback(async(a,i={})=>{Ka(n.current,i9),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var Nx={};function u9(e,t,n){!t&&!Nx[e]&&(Nx[e]=!0,Ka(!1,n))}p.memo(XF);function XF({routes:e,future:t,state:n,unstable_onError:r}){return l9(e,void 0,n,r,t)}function kx({to:e,replace:t,state:n,relative:r}){Cn(Mu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=p.useContext(Xa);Ka(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=p.useContext(ka),{pathname:l}=mi(),u=Cs(),d=gv(e,pv(i),l,r==="path"),h=JSON.stringify(d);return p.useEffect(()=>{u(JSON.parse(h),{replace:t,state:n,relative:r})},[u,h,r,t,n]),null}function WF(e){return HF(e.context)}function Xs(e){Cn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function JF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1}){Cn(!Mu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:l,navigator:a,static:i,future:{}}),[l,a,i]);typeof n=="string"&&(n=Du(n));let{pathname:d="/",search:h="",hash:g="",state:m=null,key:E="default"}=n,b=p.useMemo(()=>{let T=ui(d,l);return T==null?null:{location:{pathname:T,search:h,hash:g,state:m,key:E},navigationType:r}},[l,d,h,g,m,E,r]);return Ka(b!=null,`<Router basename="${l}"> is not able to match the URL "${d}${h}${g}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:p.createElement(Xa.Provider,{value:u},p.createElement(Z0.Provider,{children:t,value:b}))}function eU({children:e,location:t}){return FF(p8(e),t)}function p8(e,t=[]){let n=[];return p.Children.forEach(e,(r,a)=>{if(!p.isValidElement(r))return;let i=[...t,a];if(r.type===p.Fragment){n.push.apply(n,p8(r.props.children,i));return}Cn(r.type===Xs,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Cn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=p8(r.props.children,i)),n.push(l)}),n}var Bf="get",Vf="application/x-www-form-urlencoded";function ah(e){return e!=null&&typeof e.tagName=="string"}function tU(e){return ah(e)&&e.tagName.toLowerCase()==="button"}function nU(e){return ah(e)&&e.tagName.toLowerCase()==="form"}function rU(e){return ah(e)&&e.tagName.toLowerCase()==="input"}function aU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sU(e,t){return e.button===0&&(!t||t==="_self")&&!aU(e)}var Cf=null;function iU(){if(Cf===null)try{new FormData(document.createElement("form"),0),Cf=!1}catch{Cf=!0}return Cf}var oU=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function E2(e){return e!=null&&!oU.has(e)?(Ka(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vf}"`),null):e}function lU(e,t){let n,r,a,i,l;if(nU(e)){let u=e.getAttribute("action");r=u?ui(u,t):null,n=e.getAttribute("method")||Bf,a=E2(e.getAttribute("enctype"))||Vf,i=new FormData(e)}else if(tU(e)||rU(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?ui(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Bf,a=E2(e.getAttribute("formenctype"))||E2(u.getAttribute("enctype"))||Vf,i=new FormData(u,e),!iU()){let{name:h,type:g,value:m}=e;if(g==="image"){let E=h?`${h}.`:"";i.append(`${E}x`,"0"),i.append(`${E}y`,"0")}else h&&i.append(h,m)}}else{if(ah(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Bf,r=null,a=Vf,l=e}return i&&a==="text/plain"&&(l=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function uU(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ui(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function cU(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function dU(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function fU(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let l=await cU(i,n);return l.links?l.links():[]}return[]}));return gU(r.flat(1).filter(dU).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Px(e,t,n,r,a,i){let l=(d,h)=>n[h]?d.route.id!==n[h].route.id:!0,u=(d,h)=>n[h].pathname!==d.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==d.params["*"];return i==="assets"?t.filter((d,h)=>l(d,h)||u(d,h)):i==="data"?t.filter((d,h)=>{let g=r.routes[d.route.id];if(!g||!g.hasLoader)return!1;if(l(d,h)||u(d,h))return!0;if(d.route.shouldRevalidate){let m=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function hU(e,t,{includeHydrateFallback:n}={}){return mU(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function mU(e){return[...new Set(e)]}function pU(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function gU(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(pU(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function c9(){let e=p.useContext(Lu);return xv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function vU(){let e=p.useContext(rh);return xv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var _v=p.createContext(void 0);_v.displayName="FrameworkContext";function d9(){let e=p.useContext(_v);return xv(e,"You must render this element inside a <HydratedRouter> element"),e}function yU(e,t){let n=p.useContext(_v),[r,a]=p.useState(!1),[i,l]=p.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:h,onMouseLeave:g,onTouchStart:m}=t,E=p.useRef(null);p.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let A=w=>{w.forEach(R=>{l(R.isIntersecting)})},S=new IntersectionObserver(A,{threshold:.5});return E.current&&S.observe(E.current),()=>{S.disconnect()}}},[e]),p.useEffect(()=>{if(r){let A=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(A)}}},[r]);let b=()=>{a(!0)},T=()=>{a(!1),l(!1)};return n?e!=="intent"?[i,E,{}]:[i,E,{onFocus:zc(u,b),onBlur:zc(d,T),onMouseEnter:zc(h,b),onMouseLeave:zc(g,T),onTouchStart:zc(m,b)}]:[!1,E,{}]}function zc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function bU({page:e,...t}){let{router:n}=c9(),r=p.useMemo(()=>t9(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?p.createElement(xU,{page:e,matches:r,...t}):null}function EU(e){let{manifest:t,routeModules:n}=d9(),[r,a]=p.useState([]);return p.useEffect(()=>{let i=!1;return fU(e,t,n).then(l=>{i||a(l)}),()=>{i=!0}},[e,t,n]),r}function xU({page:e,matches:t,...n}){let r=mi(),{manifest:a,routeModules:i}=d9(),{basename:l}=c9(),{loaderData:u,matches:d}=vU(),h=p.useMemo(()=>Px(e,t,d,a,r,"data"),[e,t,d,a,r]),g=p.useMemo(()=>Px(e,t,d,a,r,"assets"),[e,t,d,a,r]),m=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let T=new Set,A=!1;if(t.forEach(w=>{let R=a.routes[w.route.id];!R||!R.hasLoader||(!h.some(P=>P.route.id===w.route.id)&&w.route.id in u&&i[w.route.id]?.shouldRevalidate||R.hasClientLoader?A=!0:T.add(w.route.id))}),T.size===0)return[];let S=uU(e,l,"data");return A&&T.size>0&&S.searchParams.set("_routes",t.filter(w=>T.has(w.route.id)).map(w=>w.route.id).join(",")),[S.pathname+S.search]},[l,u,r,a,h,t,e,i]),E=p.useMemo(()=>hU(g,a),[g,a]),b=EU(g);return p.createElement(p.Fragment,null,m.map(T=>p.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...n})),E.map(T=>p.createElement("link",{key:T,rel:"modulepreload",href:T,...n})),b.map(({key:T,link:A})=>p.createElement("link",{key:T,nonce:n.nonce,...A})))}function _U(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var f9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{f9&&(window.__reactRouterVersion="7.9.1")}catch{}function TU({basename:e,children:t,window:n}){let r=p.useRef();r.current==null&&(r.current=lF({window:n,v5Compat:!0}));let a=r.current,[i,l]=p.useState({action:a.action,location:a.location}),u=p.useCallback(d=>{p.startTransition(()=>l(d))},[l]);return p.useLayoutEffect(()=>a.listen(u),[a,u]),p.createElement(JF,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:a})}var h9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,m9=p.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:l,state:u,target:d,to:h,preventScrollReset:g,viewTransition:m,...E},b){let{basename:T}=p.useContext(Xa),A=typeof h=="string"&&h9.test(h),S,w=!1;if(typeof h=="string"&&A&&(S=h,f9))try{let B=new URL(window.location.href),k=h.startsWith("//")?new URL(B.protocol+h):new URL(h),U=ui(k.pathname,T);k.origin===B.origin&&U!=null?h=U+k.search+k.hash:w=!0}catch{Ka(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=MF(h,{relative:a}),[P,M,I]=yU(r,E),N=CU(h,{replace:l,state:u,target:d,preventScrollReset:g,relative:a,viewTransition:m});function L(B){t&&t(B),B.defaultPrevented||N(B)}let D=p.createElement("a",{...E,...I,href:S||R,onClick:w||i?t:L,ref:_U(b,M),target:d,"data-discover":!A&&n==="render"?"true":void 0});return P&&!A?p.createElement(p.Fragment,null,D,p.createElement(bU,{page:R})):D});m9.displayName="Link";var AU=p.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:l,viewTransition:u,children:d,...h},g){let m=q0(l,{relative:h.relative}),E=mi(),b=p.useContext(rh),{navigator:T,basename:A}=p.useContext(Xa),S=b!=null&&PU(m)&&u===!0,w=T.encodeLocation?T.encodeLocation(m).pathname:m.pathname,R=E.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;n||(R=R.toLowerCase(),P=P?P.toLowerCase():null,w=w.toLowerCase()),P&&A&&(P=ui(P,A)||P);const M=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let I=R===w||!a&&R.startsWith(w)&&R.charAt(M)==="/",N=P!=null&&(P===w||!a&&P.startsWith(w)&&P.charAt(w.length)==="/"),L={isActive:I,isPending:N,isTransitioning:S},D=I?t:void 0,B;typeof r=="function"?B=r(L):B=[r,I?"active":null,N?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let k=typeof i=="function"?i(L):i;return p.createElement(m9,{...h,"aria-current":D,className:B,ref:g,style:k,to:l,viewTransition:u},typeof d=="function"?d(L):d)});AU.displayName="NavLink";var SU=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:l=Bf,action:u,onSubmit:d,relative:h,preventScrollReset:g,viewTransition:m,...E},b)=>{let T=NU(),A=kU(u,{relative:h}),S=l.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&h9.test(u),R=P=>{if(d&&d(P),P.defaultPrevented)return;P.preventDefault();let M=P.nativeEvent.submitter,I=M?.getAttribute("formmethod")||l;T(M||P.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:a,state:i,relative:h,preventScrollReset:g,viewTransition:m})};return p.createElement("form",{ref:b,method:S,action:A,onSubmit:r?d:R,...E,"data-discover":!w&&e==="render"?"true":void 0})});SU.displayName="Form";function wU(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p9(e){let t=p.useContext(Lu);return Cn(t,wU(e)),t}function CU(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:i,viewTransition:l}={}){let u=Cs(),d=mi(),h=q0(e,{relative:i});return p.useCallback(g=>{if(sU(g,t)){g.preventDefault();let m=n!==void 0?n:_0(d)===_0(h);u(e,{replace:m,state:r,preventScrollReset:a,relative:i,viewTransition:l})}},[d,u,h,n,r,t,e,a,i,l])}var RU=0,OU=()=>`__${String(++RU)}__`;function NU(){let{router:e}=p9("useSubmit"),{basename:t}=p.useContext(Xa),n=YF();return p.useCallback(async(r,a={})=>{let{action:i,method:l,encType:u,formData:d,body:h}=lU(r,t);if(a.navigate===!1){let g=a.fetcherKey||OU();await e.fetch(g,n,a.action||i,{preventScrollReset:a.preventScrollReset,formData:d,body:h,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:d,body:h,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function kU(e,{relative:t}={}){let{basename:n}=p.useContext(Xa),r=p.useContext(ka);Cn(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...q0(e||".",{relative:t})},l=mi();if(e==null){i.search=l.search;let u=new URLSearchParams(i.search),d=u.getAll("index");if(d.some(g=>g==="")){u.delete("index"),d.filter(m=>m).forEach(m=>u.append("index",m));let g=u.toString();i.search=g?`?${g}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:ai([n,i.pathname])),_0(i)}function PU(e,{relative:t}={}){let n=p.useContext(s9);Cn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=p9("useViewTransitionState"),a=q0(e,{relative:t});if(!n.isTransitioning)return!1;let i=ui(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ui(n.nextLocation.pathname,r)||n.nextLocation.pathname;return i1(a.pathname,l)!=null||i1(a.pathname,i)!=null}const Tv=window.__APP_CONFIG__,Iu=Tv?.gatewayUrl||"http://localhost:3673",g9=Tv?.registryUrl||"https://registry.director.run",v9=Tv?.basePath||"/";console.log("config is",{GATEWAY_URL:Iu,REGISTRY_URL:g9,BASE_PATH:v9});const y9=p.createContext({user:null,isAuthenticated:!1,login:async()=>{},logout:()=>{},isInitializing:!1}),DU=()=>{const e=p.useContext(y9);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};async function LU(){await new Promise(e=>setTimeout(e,1e3))}const MU=({children:e})=>{const[t,n]=p.useState(null),[r,a]=p.useState(!0);p.useEffect(()=>{i()},[]);const i=async()=>{{a(!1),n({id:1,email:"anonymous@example.com"});return}},d={user:t,isAuthenticated:!!t,isInitializing:r,login:async h=>{if(await LU(),h.email==="barnaby@example.com"&&h.password==="password"){const g={id:1,email:h.email};n(g),localStorage.setItem("user",JSON.stringify(g))}else throw new Error("Invalid email or password")},logout:()=>{n(null),localStorage.removeItem("user")}};return v.jsx(y9.Provider,{value:d,children:e})};function b9(e,t){return new URL(t,e).toString()}var IU=Object.create,E9=Object.defineProperty,jU=Object.getOwnPropertyDescriptor,x9=Object.getOwnPropertyNames,HU=Object.getPrototypeOf,FU=Object.prototype.hasOwnProperty,Rs=(e,t)=>function(){return t||(0,e[x9(e)[0]])((t={exports:{}}).exports,t),t.exports},UU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=x9(t),i=0,l=a.length,u;i<l;i++)u=a[i],!FU.call(e,u)&&u!==n&&E9(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=jU(t,u))||r.enumerable});return e},Zn=(e,t,n)=>(n=e!=null?IU(HU(e)):{},UU(E9(n,"default",{value:e,enumerable:!0}),e)),_9=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),BU=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=_9().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),VU=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=_9().default,r=BU();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),nl=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=VU();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wa=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=nl();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);l&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),u.push.apply(u,d)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(d){n(i,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(u,d))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function sh(e){const t={subscribe(n){let r=null,a=!1,i=!1,l=!1;function u(){if(r===null){l=!0;return}i||(i=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(d){var h;a||(h=n.next)===null||h===void 0||h.call(n,d)},error(d){var h;a||(a=!0,(h=n.error)===null||h===void 0||h.call(n,d),u())},complete(){var d;a||(a=!0,(d=n.complete)===null||d===void 0||d.call(n),u())}}),l&&u(),{unsubscribe:u}},pipe(...n){return n.reduce(zU,t)}};return t}function zU(e,t){return t(e)}function ZU(e){const t=new AbortController;return new Promise((r,a)=>{let i=!1;function l(){i||(i=!0,u.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const u=e.subscribe({next(d){i=!0,r(d),l()},error(d){a(d)},complete(){t.abort(),l()}})})}function qU(e){return t=>{let n=0,r=null;const a=[];function i(){r||(r=t.subscribe({next(u){for(const h of a){var d;(d=h.next)===null||d===void 0||d.call(h,u)}},error(u){for(const h of a){var d;(d=h.error)===null||d===void 0||d.call(h,u)}},complete(){for(const d of a){var u;(u=d.complete)===null||u===void 0||u.call(d)}}}))}function l(){if(n===0&&r){const u=r;r=null,u.unsubscribe()}}return sh(u=>(n++,a.push(u),i(),{unsubscribe(){n--,l();const d=a.findIndex(h=>h===u);d>-1&&a.splice(d,1)}}))}}function $U(e){let t=e;const n=[],r=l=>{t!==void 0&&l.next(t),n.push(l)},a=l=>{n.splice(n.indexOf(l),1)},i=sh(l=>(r(l),()=>{a(l)}));return i.next=l=>{if(t!==l){t=l;for(const u of n)u.next(l)}},i.get=()=>t,i}function QU(e){return sh(t=>{function n(a=0,i=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:i,next(d){return n(a+1,d)}})}return n().subscribe(t)})}function Zo(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const YU=typeof Symbol=="function"&&!!Symbol.asyncIterator;function T9(e){return YU&&Zo(e)&&Symbol.asyncIterator in e}var GU=Object.create,A9=Object.defineProperty,KU=Object.getOwnPropertyDescriptor,S9=Object.getOwnPropertyNames,XU=Object.getPrototypeOf,WU=Object.prototype.hasOwnProperty,$0=(e,t)=>function(){return t||(0,e[S9(e)[0]])((t={exports:{}}).exports,t),t.exports},JU=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=S9(t),i=0,l=a.length,u;i<l;i++)u=a[i],!WU.call(e,u)&&u!==n&&A9(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=KU(t,u))||r.enumerable});return e},ih=(e,t,n)=>(n=e!=null?GU(XU(e)):{},JU(A9(n,"default",{value:e,enumerable:!0}),e));const w9=()=>{},Dx=e=>{Object.freeze&&Object.freeze(e)};function C9(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(w9,{get(i,l){if(!(typeof l!="string"||l==="then"))return C9(e,[...t,l],n)},apply(i,l,u){const d=t[t.length-1];let h={args:u,path:t};return d==="call"?h={args:u.length>=2?[u[1]]:[],path:t.slice(0,-1)}:d==="apply"&&(h={args:u.length>=2?u[1]:[],path:t.slice(0,-1)}),Dx(h.args),Dx(h.path),e(h)}})),n[a]}const oh=e=>C9(e,[],Object.create(null)),Av=e=>new Proxy(w9,{get(t,n){if(n!=="then")return e(n)}});var R9=$0({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),eB=$0({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=R9().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),tB=$0({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=R9().default,r=eB();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),O9=$0({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=tB();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Sv=$0({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=O9();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);l&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),u.push.apply(u,d)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(d){n(i,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(u,d))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});ih(Sv());ih(O9());var Rf=ih(Sv());function nB(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,Rf.default)((0,Rf.default)({},e),{},{error:r})}}return{ok:!0,result:(0,Rf.default)((0,Rf.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var x2=class extends Error{constructor(){super("Unable to transform response from server")}};function rB(e,t){let n;try{n=nB(e,t)}catch{throw new x2}if(!n.ok&&(!Zo(n.error.error)||typeof n.error.error.code!="number"))throw new x2;if(n.ok&&!Zo(n.result))throw new x2;return n}ih(Sv());var Of=Zn(nl()),Kl=Zn(Wa());function aB(e){return e instanceof o1}function sB(e){return Zo(e)&&Zo(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function iB(e,t){return typeof e=="string"?e:Zo(e)&&typeof e.message=="string"?e.message:t}var o1=class zf extends Error{constructor(t,n){var r,a;const i=n?.cause;super(t,{cause:i}),(0,Of.default)(this,"cause",void 0),(0,Of.default)(this,"shape",void 0),(0,Of.default)(this,"data",void 0),(0,Of.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=i,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,zf.prototype)}static from(t,n={}){const r=t;return aB(r)?(n.meta&&(r.meta=(0,Kl.default)((0,Kl.default)({},r.meta),n.meta)),r):sB(r)?new zf(r.error.message,(0,Kl.default)((0,Kl.default)({},n),{},{result:r})):new zf(iB(r,"Unknown error"),(0,Kl.default)((0,Kl.default)({},n),{},{cause:r}))}};function oB(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const Lx=e=>typeof e=="function";function lB(e){if(e)return e;if(typeof window<"u"&&Lx(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Lx(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var i0=Zn(Wa());function uB(e){return{url:e.url.toString(),fetch:e.fetch,transformer:oB(e.transformer),methodOverride:e.methodOverride}}function cB(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const dB={query:"GET",mutation:"POST",subscription:"PATCH"};function N9(e){return"input"in e?e.transformer.input.serialize(e.input):cB(e.inputs.map(t=>e.transformer.input.serialize(t)))}const k9=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=N9(e);i!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return a.length&&(r+="?"+a.join("&")),r},fB=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=N9(e);return t!==void 0?JSON.stringify(t):void 0},hB=e=>vB((0,i0.default)((0,i0.default)({},e),{},{contentTypeHeader:"application/json",getUrl:k9,getBody:fB}));var mB=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const pB=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new mB};async function gB(e){var t;pB(e.signal);const n=e.getUrl(e),r=e.getBody(e),{type:a}=e,i=await(async()=>{const u=await e.headers();return Symbol.iterator in u?Object.fromEntries(u):u})(),l=(0,i0.default)((0,i0.default)((0,i0.default)({},e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return lB(e.fetch)(n,{method:(t=e.methodOverride)!==null&&t!==void 0?t:dB[a],signal:e.signal,body:r,headers:l})}async function vB(e){const t={},n=await gB(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}Zn(Wa());const Mx=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Ix(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(u){const d=[[]];let h=0;for(;;){const E=u[h];if(!E)break;const b=d[d.length-1];if(E.aborted){var g;(g=E.reject)===null||g===void 0||g.call(E,new Error("Aborted")),h++;continue}if(e.validate(b.concat(E).map(A=>A.key))){b.push(E),h++;continue}if(b.length===0){var m;(m=E.reject)===null||m===void 0||m.call(E,new Error("Input is too big for a single dispatch")),h++;continue}d.push([])}return d}function i(){const u=a(t);r();for(const d of u){if(!d.length)continue;const h={items:d};for(const m of d)m.batch=h;e.fetch(h.items.map(m=>m.key)).then(async m=>{await Promise.all(m.map(async(b,T)=>{const A=h.items[T];try{var S;const R=await Promise.resolve(b);(S=A.resolve)===null||S===void 0||S.call(A,R)}catch(R){var w;(w=A.reject)===null||w===void 0||w.call(A,R)}A.batch=null,A.reject=null,A.resolve=null}));for(const b of h.items){var E;(E=b.reject)===null||E===void 0||E.call(b,new Error("Missing result")),b.batch=null}}).catch(m=>{for(const b of h.items){var E;(E=b.reject)===null||E===void 0||E.call(b,m),b.batch=null}})}}function l(u){var d;const h={aborted:!1,key:u,batch:null,resolve:Mx,reject:Mx},g=new Promise((m,E)=>{var b;h.reject=E,h.resolve=m,(b=t)!==null&&b!==void 0||(t=[]),t.push(h)});return(d=n)!==null&&d!==void 0||(n=setTimeout(i)),g}return{load:l}}function yB(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const i of e)i?.aborted?a():i?.addEventListener("abort",a,{once:!0});return t.signal}var Nf=Zn(Wa());function P9(e){var t,n;const r=uB(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const l=g=>({validate(m){if(a===1/0&&i===1/0)return!0;if(m.length>i)return!1;const E=m.map(A=>A.path).join(","),b=m.map(A=>A.input);return k9((0,Nf.default)((0,Nf.default)({},r),{},{type:g,path:E,inputs:b,signal:null})).length<=a},async fetch(m){const E=m.map(R=>R.path).join(","),b=m.map(R=>R.input),T=yB(...m.map(R=>R.signal)),A=await hB((0,Nf.default)((0,Nf.default)({},r),{},{path:E,inputs:b,type:g,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:m}):e.headers:{}},signal:T}));return(Array.isArray(A.json)?A.json:m.map(()=>A.json)).map(R=>({meta:A.meta,json:R}))}}),u=Ix(l("query")),d=Ix(l("mutation")),h={query:u,mutation:d};return({op:g})=>sh(m=>{/* istanbul ignore if -- @preserve */if(g.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const b=h[g.type].load(g);let T;return b.then(A=>{T=A;const S=rB(A.json,r.transformer.output);if(!S.ok){m.error(o1.from(S.error,{meta:A.meta}));return}m.next({context:A.meta,result:S.result}),m.complete()}).catch(A=>{m.error(o1.from(A,{meta:T?.meta}))}),()=>{}})}}Zn(Wa());const D9=(e,...t)=>typeof e=="function"?e(...t):e;Zn(nl());function bB(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function EB(e){const t=await D9(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function xB(e){const t={method:"connectionParams",data:await D9(e)};return JSON.stringify(t)}Zn(nl());var jo=Zn(nl());function _B(e){const{promise:t,resolve:n,reject:r}=bB();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function TB(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function i(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function l(){clearTimeout(r),i()}function u(){clearTimeout(a),l()}e.addEventListener("open",i),e.addEventListener("message",({data:d})=>{clearTimeout(r),i(),d==="PONG"&&u()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var AB=class g8{constructor(t){var n;if((0,jo.default)(this,"id",++g8.connectCount),(0,jo.default)(this,"WebSocketPonyfill",void 0),(0,jo.default)(this,"urlOptions",void 0),(0,jo.default)(this,"keepAliveOpts",void 0),(0,jo.default)(this,"wsObservable",$U(null)),(0,jo.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++g8.connectCount;const n=EB(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&TB(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await _B(r),t.urlOptions.connectionParams&&r.send(await xB(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,jo.default)(AB,"connectCount",0);Zn(nl());Zn(Wa());var _2=Zn(nl()),jx=Zn(Wa()),lh=class{constructor(e){(0,_2.default)(this,"links",void 0),(0,_2.default)(this,"runtime",void 0),(0,_2.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return QU({links:this.links,op:(0,jx.default)((0,jx.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(qU())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await ZU(n)).result.data}catch(n){throw o1.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var i;(i=n.onConnectionStateChange)===null||i===void 0||i.call(n,a.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:a.context});break}case"stopped":{var u;(u=n.onStopped)===null||u===void 0||u.call(n);break}case"data":case void 0:{var d;(d=n.onData)===null||d===void 0||d.call(n,a.result.data);break}}},error(a){var i;(i=n.onError)===null||i===void 0||i.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const L9=Symbol.for("trpc_untypedClient"),SB={query:"query",mutate:"mutation",subscribe:"subscription"},wB=e=>SB[e];function M9(e){const t=oh(({path:n,args:r})=>{const a=[...n],i=wB(a.pop()),l=a.join(".");return e[i](l,...r)});return Av(n=>n===L9?e:t[n])}function wv(e){const t=new lh(e);return M9(t)}function Cv(e){return e[L9]}Zn(Wa());Zn(Wa());var CB=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var i,l,u,d=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,u=Symbol.iterator);d--;){if(l&&(i=a[l])!=null)return i.call(a);if(u&&(i=a[u])!=null)return new r(i.call(a));l="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function i(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var u=l.done;return Promise.resolve(l.value).then(function(d){return{value:d,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(u){var d=this.s.return;return d===void 0?Promise.resolve({value:u,done:!0}):i(d.apply(this.s,arguments))},throw:function(u){var d=this.s.return;return d===void 0?Promise.reject(u):i(d.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Zn(CB());Zn(Wa());var RB=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(u,d){var h=Error();return h.name="SuppressedError",h.error=u,h.suppressed=d,h},a={},i=[];function l(u,d){if(d!=null){if(Object(d)!==d)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(u)var h=d[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(h===void 0&&(h=d[Symbol.dispose||Symbol.for("Symbol.dispose")],u))var g=h;if(typeof h!="function")throw new TypeError("Object is not disposable.");g&&(h=function(){try{g.call(d)}catch(E){return Promise.reject(E)}}),i.push({v:d,d:h,a:u})}else u&&i.push({d,a:u});return d}return{e:a,u:l.bind(null,!1),a:l.bind(null,!0),d:function(){var d,h=this.e,g=0;function m(){for(;d=i.pop();)try{if(!d.a&&g===1)return g=0,i.push(d),Promise.resolve().then(m);if(d.d){var b=d.d.call(d.v);if(d.a)return g|=2,Promise.resolve(b).then(m,E)}else g|=1}catch(T){return E(T)}if(g===1)return h!==a?Promise.reject(h):Promise.resolve();if(h!==a)throw h}function E(b){return h=h!==a?new r(b,h):b,m()}return m()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),I9=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),OB=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=I9();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),NB=Rs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=I9();function r(i){return function(){return new a(i.apply(this,arguments))}}function a(i){var l,u;function d(g,m){try{var E=i[g](m),b=E.value,T=b instanceof n;Promise.resolve(T?b.v:b).then(function(A){if(T){var S=g==="return"?"return":"next";if(!b.k||A.done)return d(S,A);A=i[S](A).value}h(E.done?"return":"normal",A)},function(A){d("throw",A)})}catch(A){h("throw",A)}}function h(g,m){switch(g){case"return":l.resolve({value:m,done:!0});break;case"throw":l.reject(m);break;default:l.resolve({value:m,done:!1})}(l=l.next)?d(l.key,l.arg):u=null}this._invoke=function(g,m){return new Promise(function(E,b){var T={key:g,arg:m,resolve:E,reject:b,next:null};u?u=u.next=T:(l=u=T,d(g,m))})},typeof i.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(i){return this._invoke("next",i)},a.prototype.throw=function(i){return this._invoke("throw",i)},a.prototype.return=function(i){return this._invoke("return",i)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Zn(RB());Zn(OB());Zn(NB());Zn(Wa());class kB{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class j9{constructor(t){this.generateIdentifier=t,this.kv=new kB}register(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}}class PB extends j9{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),super.register(t,n.identifier)):super.register(t,n)}getAllowedProps(t){return this.classToAllowedProps.get(t)}}function DB(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function LB(e,t){const n=DB(e);if("find"in n)return n.find(t);const r=n;for(let a=0;a<r.length;a++){const i=r[a];if(t(i))return i}}function bu(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Zf(e,t){return e.indexOf(t)!==-1}function Hx(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}class MB{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return LB(this.transfomers,n=>n.isApplicable(t))}findByName(t){return this.transfomers[t]}}const IB=e=>Object.prototype.toString.call(e).slice(8,-1),H9=e=>typeof e>"u",jB=e=>e===null,T0=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,v8=e=>T0(e)&&Object.keys(e).length===0,ao=e=>Array.isArray(e),HB=e=>typeof e=="string",FB=e=>typeof e=="number"&&!isNaN(e),UB=e=>typeof e=="boolean",BB=e=>e instanceof RegExp,A0=e=>e instanceof Map,S0=e=>e instanceof Set,F9=e=>IB(e)==="Symbol",VB=e=>e instanceof Date&&!isNaN(e.valueOf()),zB=e=>e instanceof Error,Fx=e=>typeof e=="number"&&isNaN(e),ZB=e=>UB(e)||jB(e)||H9(e)||FB(e)||HB(e)||F9(e),qB=e=>typeof e=="bigint",$B=e=>e===1/0||e===-1/0,QB=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),YB=e=>e instanceof URL,U9=e=>e.replace(/\./g,"\\."),T2=e=>e.map(String).map(U9).join("."),o0=e=>{const t=[];let n="";for(let a=0;a<e.length;a++){let i=e.charAt(a);if(i==="\\"&&e.charAt(a+1)==="."){n+=".",a++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const r=n;return t.push(r),t};function fs(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const B9=[fs(H9,"undefined",()=>null,()=>{}),fs(qB,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),fs(VB,"Date",e=>e.toISOString(),e=>new Date(e)),fs(zB,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),fs(BB,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),fs(S0,"set",e=>[...e.values()],e=>new Set(e)),fs(A0,"map",e=>[...e.entries()],e=>new Map(e)),fs(e=>Fx(e)||$B(e),"number",e=>Fx(e)?"NaN":e>0?"Infinity":"-Infinity",Number),fs(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),fs(YB,"URL",e=>e.toString(),e=>new URL(e))];function uh(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const V9=uh((e,t)=>F9(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),GB=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),z9=uh(QB,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=GB[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Z9(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const q9=uh(Z9,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(a=>{r[a]=e[a]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),$9=uh((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),KB=[q9,V9,$9,z9],Ux=(e,t)=>{const n=Hx(KB,a=>a.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Hx(B9,a=>a.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Q9={};B9.forEach(e=>{Q9[e.annotation]=e});const XB=(e,t,n)=>{if(ao(t))switch(t[0]){case"symbol":return V9.untransform(e,t,n);case"class":return q9.untransform(e,t,n);case"custom":return $9.untransform(e,t,n);case"typed-array":return z9.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=Q9[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},su=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Y9(e){if(Zf(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Zf(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Zf(e,"constructor"))throw new Error("constructor is not allowed as a property")}const WB=(e,t)=>{Y9(t);for(let n=0;n<t.length;n++){const r=t[n];if(S0(e))e=su(e,+r);else if(A0(e)){const a=+r,i=+t[++n]==0?"key":"value",l=su(e,a);switch(i){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[r]}return e},y8=(e,t,n)=>{if(Y9(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){const l=t[i];if(ao(r)){const u=+l;r=r[u]}else if(T0(r))r=r[l];else if(S0(r)){const u=+l;r=su(r,u)}else if(A0(r)){if(i===t.length-2)break;const d=+l,h=+t[++i]==0?"key":"value",g=su(r,d);switch(h){case"key":r=g;break;case"value":r=r.get(g);break}}}const a=t[t.length-1];if(ao(r)?r[+a]=n(r[+a]):T0(r)&&(r[a]=n(r[a])),S0(r)){const i=su(r,+a),l=n(i);i!==l&&(r.delete(i),r.add(l))}if(A0(r)){const i=+t[t.length-2],l=su(r,i);switch(+a==0?"key":"value"){case"key":{const d=n(l);r.set(d,r.get(l)),d!==l&&r.delete(l);break}case"value":{r.set(l,n(r.get(l)));break}}}return e};function b8(e,t,n=[]){if(!e)return;if(!ao(e)){bu(e,(i,l)=>b8(i,t,[...n,...o0(l)]));return}const[r,a]=e;a&&bu(a,(i,l)=>{b8(i,t,[...n,...o0(l)])}),t(r,n)}function JB(e,t,n){return b8(t,(r,a)=>{e=y8(e,a,i=>XB(i,r,n))}),e}function eV(e,t){function n(r,a){const i=WB(e,o0(a));r.map(o0).forEach(l=>{e=y8(e,l,()=>i)})}if(ao(t)){const[r,a]=t;r.forEach(i=>{e=y8(e,o0(i),()=>e)}),a&&bu(a,n)}else bu(t,n);return e}const tV=(e,t)=>T0(e)||ao(e)||A0(e)||S0(e)||Z9(e,t);function nV(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function rV(e,t){const n={};let r;return e.forEach(a=>{if(a.length<=1)return;t||(a=a.map(u=>u.map(String)).sort((u,d)=>u.length-d.length));const[i,...l]=a;i.length===0?r=l.map(T2):n[T2(i)]=l.map(T2)}),r?v8(n)?[r]:[r,n]:v8(n)?void 0:n}const G9=(e,t,n,r,a=[],i=[],l=new Map)=>{const u=ZB(e);if(!u){nV(e,a,t);const b=l.get(e);if(b)return r?{transformedValue:null}:b}if(!tV(e,n)){const b=Ux(e,n),T=b?{transformedValue:b.value,annotations:[b.type]}:{transformedValue:e};return u||l.set(e,T),T}if(Zf(i,e))return{transformedValue:null};const d=Ux(e,n),h=d?.value??e,g=ao(h)?[]:{},m={};bu(h,(b,T)=>{if(T==="__proto__"||T==="constructor"||T==="prototype")throw new Error(`Detected property ${T}. This is a prototype pollution risk, please remove it from your object.`);const A=G9(b,t,n,r,[...a,T],[...i,e],l);g[T]=A.transformedValue,ao(A.annotations)?m[T]=A.annotations:T0(A.annotations)&&bu(A.annotations,(S,w)=>{m[U9(T)+"."+w]=S})});const E=v8(m)?{transformedValue:g,annotations:d?[d.type]:void 0}:{transformedValue:g,annotations:d?[d.type,m]:m};return u||l.set(e,E),E};function K9(e){return Object.prototype.toString.call(e).slice(8,-1)}function Bx(e){return K9(e)==="Array"}function aV(e){if(K9(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function sV(e,t,n,r,a){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),a&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function E8(e,t={}){if(Bx(e))return e.map(a=>E8(a,t));if(!aV(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((a,i)=>{if(Bx(t.props)&&!t.props.includes(i))return a;const l=e[i],u=E8(l,t);return sV(a,i,u,e,t.nonenumerable),a},{})}class It{constructor({dedupe:t=!1}={}){this.classRegistry=new PB,this.symbolRegistry=new j9(n=>n.description??""),this.customTransformerRegistry=new MB,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const n=new Map,r=G9(t,n,this,this.dedupe),a={json:r.transformedValue};r.annotations&&(a.meta={...a.meta,values:r.annotations});const i=rV(n,this.dedupe);return i&&(a.meta={...a.meta,referentialEqualities:i}),a}deserialize(t){const{json:n,meta:r}=t;let a=E8(n);return r?.values&&(a=JB(a,r.values,this)),r?.referentialEqualities&&(a=eV(a,r.referentialEqualities)),a}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,n){this.classRegistry.register(t,n)}registerSymbol(t,n){this.symbolRegistry.register(t,n)}registerCustom(t,n){this.customTransformerRegistry.register({name:n,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}}It.defaultInstance=new It;It.serialize=It.defaultInstance.serialize.bind(It.defaultInstance);It.deserialize=It.defaultInstance.deserialize.bind(It.defaultInstance);It.stringify=It.defaultInstance.stringify.bind(It.defaultInstance);It.parse=It.defaultInstance.parse.bind(It.defaultInstance);It.registerClass=It.defaultInstance.registerClass.bind(It.defaultInstance);It.registerSymbol=It.defaultInstance.registerSymbol.bind(It.defaultInstance);It.registerCustom=It.defaultInstance.registerCustom.bind(It.defaultInstance);It.allowErrorProps=It.defaultInstance.allowErrorProps.bind(It.defaultInstance);It.serialize;It.deserialize;It.stringify;It.parse;It.registerClass;It.registerCustom;It.registerSymbol;It.allowErrorProps;function iV(e){const t=b9(e,"/trpc");return wv({links:[P9({url:t,transformer:It,async fetch(n,r){return fetch(n,r).catch(a=>{throw a.code==="ConnectionRefused"?new Error(`Could not connect to the gateway service on ${e}. Is it running?`):a})}})]})}function oV(e,{apiKey:t}={}){const n=b9(e,"/trpc");return wv({links:[P9({url:n,transformer:It,async fetch(r,a){return fetch(r,{...a,headers:t?{...a?.headers,"x-api-key":t}:a?.headers}).catch(i=>{throw i.code==="ConnectionRefused"?new Error(`Could not connect to the registry service on ${e}. Is it running?`):i})}})]})}var rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},qo=typeof window>"u"||"Deno"in globalThis;function Tr(){}function lV(e,t){return typeof e=="function"?e(t):e}function x8(e){return typeof e=="number"&&e>=0&&e!==1/0}function X9(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eo(e,t){return typeof e=="function"?e(t):e}function _a(e,t){return typeof e=="function"?e(t):e}function Vx(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:l,stale:u}=e;if(l){if(r){if(t.queryHash!==Rv(l,t.options))return!1}else if(!w0(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||i&&!i(t))}function zx(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(so(t.options.mutationKey)!==so(i))return!1}else if(!w0(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Rv(e,t){return(t?.queryKeyHashFn||so)(e)}function so(e){return JSON.stringify(e,(t,n)=>_8(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function w0(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>w0(e[n],t[n])):!1}function Ov(e,t){if(e===t)return e;const n=Zx(e)&&Zx(t);if(n||_8(e)&&_8(t)){const r=n?e:Object.keys(e),a=r.length,i=n?t:Object.keys(t),l=i.length,u=n?[]:{},d=new Set(r);let h=0;for(let g=0;g<l;g++){const m=n?g:i[g];(!n&&d.has(m)||n)&&e[m]===void 0&&t[m]===void 0?(u[m]=void 0,h++):(u[m]=Ov(e[m],t[m]),u[m]===e[m]&&e[m]!==void 0&&h++)}return a===l&&h===a?e:u}return t}function l1(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Zx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _8(e){if(!qx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qx(e){return Object.prototype.toString.call(e)==="[object Object]"}function uV(e){return new Promise(t=>{setTimeout(t,e)})}function T8(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ov(e,t):t}function cV(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function dV(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ca=Symbol();function W9(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ca?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function J9(e,t){return typeof e=="function"?e(...t):!!e}var fV=class extends rl{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!qo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Nv=new fV,hV=class extends rl{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!qo&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},u1=new hV;function A8(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}function mV(e){return Math.min(1e3*2**e,3e4)}function e7(e){return(e??"online")==="online"?u1.isOnline():!0}var t7=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function A2(e){return e instanceof t7}function n7(e){let t=!1,n=0,r=!1,a;const i=A8(),l=A=>{r||(E(new t7(A)),e.abort?.())},u=()=>{t=!0},d=()=>{t=!1},h=()=>Nv.isFocused()&&(e.networkMode==="always"||u1.isOnline())&&e.canRun(),g=()=>e7(e.networkMode)&&e.canRun(),m=A=>{r||(r=!0,e.onSuccess?.(A),a?.(),i.resolve(A))},E=A=>{r||(r=!0,e.onError?.(A),a?.(),i.reject(A))},b=()=>new Promise(A=>{a=S=>{(r||h())&&A(S)},e.onPause?.()}).then(()=>{a=void 0,r||e.onContinue?.()}),T=()=>{if(r)return;let A;const S=n===0?e.initialPromise:void 0;try{A=S??e.fn()}catch(w){A=Promise.reject(w)}Promise.resolve(A).then(m).catch(w=>{if(r)return;const R=e.retry??(qo?0:3),P=e.retryDelay??mV,M=typeof P=="function"?P(n,w):P,I=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,w);if(t||!I){E(w);return}n++,e.onFail?.(n,w),uV(M).then(()=>h()?void 0:b()).then(()=>{t?E(w):T()})})};return{promise:i,cancel:l,continue:()=>(a?.(),i),cancelRetry:u,continueRetry:d,canStart:g,start:()=>(g()?T():b().then(T),i)}}var pV=e=>setTimeout(e,0);function gV(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=pV;const i=u=>{t?e.push(u):a(()=>{n(u)})},l=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||l()}return d},batchCalls:u=>(...d)=>{i(()=>{u(...d)})},schedule:i,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var In=gV(),r7=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),x8(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qo?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},vV=class extends r7{#t;#e;#n;#r;#a;#s;#o;constructor(e){super(),this.#o=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=yV(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=T8(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Tr).catch(Tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>_a(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ca||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>eo(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!X9(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const n=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const d=W9(this.options,t),g=(()=>{const m={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#o=!1,this.options.persister?this.options.persister(d,g,this):d(g)},l=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(d),d})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta});const u=d=>{A2(d)&&d.silent||this.#i({type:"error",error:d}),A2(d)||(this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return this.#a=n7({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:n.abort.bind(n),onSuccess:d=>{if(d===void 0){u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(h){u(h);return}this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,h)=>{this.#i({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...a7(n.data,this.options),fetchMeta:e.meta??null};case"success":return this.#e=void 0,{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return A2(r)&&r.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),In.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function a7(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:e7(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yV(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var bV=class extends rl{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??Rv(r,t);let i=this.get(a);return i||(i=new vV({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){In.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Vx(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Vx(e,n)):t}notify(e){In.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){In.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){In.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},EV=class extends r7{#t;#e;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#t=[],this.state=e.state||s7(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=n7({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(a,i)=>{this.#r({type:"failed",failureCount:a,error:i})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#e.config.onMutate?.(e,this);const i=await this.options.onMutate?.(e);i!==this.state.context&&this.#r({type:"pending",context:i,variables:e,isPaused:r})}const a=await this.#n.start();return await this.#e.config.onSuccess?.(a,e,this.state.context,this),await this.options.onSuccess?.(a,e,this.state.context),await this.#e.config.onSettled?.(a,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(a,null,e,this.state.context),this.#r({type:"success",data:a}),a}catch(a){try{throw await this.#e.config.onError?.(a,e,this.state.context,this),await this.options.onError?.(a,e,this.state.context),await this.#e.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,a,e,this.state.context),a}finally{this.#r({type:"error",error:a})}}finally{this.#e.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),In.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function s7(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xV=class extends rl{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new EV({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=kf(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=kf(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=kf(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=kf(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){In.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>zx(t,n))}findAll(e={}){return this.getAll().filter(t=>zx(e,t))}notify(e){In.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return In.batch(()=>Promise.all(e.map(t=>t.continue().catch(Tr))))}};function kf(e){return e.options.scope?.id}function c1(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let g=!1;const m=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},E=W9(t.options,t.fetchOptions),b=async(T,A,S)=>{if(g)return Promise.reject();if(A==null&&T.pages.length)return Promise.resolve(T);const R=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:A,direction:S?"backward":"forward",meta:t.options.meta};return m(N),N})(),P=await E(R),{maxPages:M}=t.options,I=S?dV:cV;return{pages:I(T.pages,P,M),pageParams:I(T.pageParams,A,M)}};if(a&&i.length){const T=a==="backward",A=T?i7:S8,S={pages:i,pageParams:l},w=A(r,S);u=await b(S,w,T)}else{const T=e??i.length;do{const A=d===0?l[0]??r.initialPageParam:S8(r,u);if(d>0&&A==null)break;u=await b(u,A),d++}while(d<T)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function S8(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function i7(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function _V(e,t){return t?S8(e,t)!=null:!1}function TV(e,t){return!t||!e.getPreviousPageParam?!1:i7(e,t)!=null}var o7=class{#t;#e;#n;#r;#a;#s;#o;#i;constructor(e={}){this.#t=e.queryCache||new bV,this.#e=e.mutationCache||new xV,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=Nv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=u1.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(eo(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(r.queryHash)?.state.data,l=lV(t,i);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return In.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;In.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return In.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=In.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Tr).catch(Tr)}invalidateQueries(e,t={}){return In.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=In.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Tr)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Tr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(eo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Tr).catch(Tr)}fetchInfiniteQuery(e){return e.behavior=c1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Tr).catch(Tr)}ensureInfiniteQueryData(e){return e.behavior=c1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return u1.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(so(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{w0(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#a.set(so(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{w0(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Rv(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ca&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Q0=class extends rl{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=A8(),this.options.experimental_prefetchInRender||this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#s;#o;#i;#h;#d;#f;#u;#c;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),$x(this.#e,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return w8(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return w8(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#x(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _a(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),t._defaulted&&!l1(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&Qx(this.#e,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#e!==n||_a(this.options.enabled,this.#e)!==_a(t.enabled,this.#e)||eo(this.options.staleTime,this.#e)!==eo(t.staleTime,this.#e))&&this.#g();const a=this.#v();r&&(this.#e!==n||_a(this.options.enabled,this.#e)!==_a(t.enabled,this.#e)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return SV(this,n)&&(this.#r=n,this.#s=this.options,this.#a=this.#e.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#_();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Tr)),t}#g(){this.#E();const e=eo(this.options.staleTime,this.#e);if(qo||this.#r.isStale||!x8(e))return;const n=X9(this.#r.dataUpdatedAt,e)+1;this.#u=setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#x(),this.#l=e,!(qo||_a(this.options.enabled,this.#e)===!1||!x8(this.#l)||this.#l===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Nv.isFocused())&&this.#m()},this.#l))}#b(){this.#g(),this.#y(this.#v())}#E(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#x(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#r,i=this.#a,l=this.#s,d=e!==n?e.state:this.#n,{state:h}=e;let g={...h},m=!1,E;if(t._optimisticResults){const D=this.hasListeners(),B=!D&&$x(e,t),k=D&&Qx(e,n,t,r);(B||k)&&(g={...g,...a7(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:T,status:A}=g;E=g.data;let S=!1;if(t.placeholderData!==void 0&&E===void 0&&A==="pending"){let D;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(D=a.data,S=!0):D=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,D!==void 0&&(A="success",E=T8(a?.data,D,t),m=!0)}if(t.select&&E!==void 0&&!S)if(a&&E===i?.data&&t.select===this.#h)E=this.#d;else try{this.#h=t.select,E=t.select(E),E=T8(a?.data,E,t),this.#d=E,this.#i=null}catch(D){this.#i=D}this.#i&&(b=this.#i,E=this.#d,T=Date.now(),A="error");const w=g.fetchStatus==="fetching",R=A==="pending",P=A==="error",M=R&&w,I=E!==void 0,L={status:A,fetchStatus:g.fetchStatus,isPending:R,isSuccess:A==="success",isError:P,isInitialLoading:M,isLoading:M,data:E,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:T,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!R,isLoadingError:P&&!I,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:P&&I,isStale:kv(e,t),refetch:this.refetch,promise:this.#o,isEnabled:_a(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=U=>{L.status==="error"?U.reject(L.error):L.data!==void 0&&U.resolve(L.data)},B=()=>{const U=this.#o=L.promise=A8();D(U)},k=this.#o;switch(k.status){case"pending":e.queryHash===n.queryHash&&D(k);break;case"fulfilled":(L.status==="error"||L.data!==k.value)&&B();break;case"rejected":(L.status!=="error"||L.error!==k.reason)&&B();break}}return L}updateResult(){const e=this.#r,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#s=this.options,this.#a.data!==void 0&&(this.#f=this.#e),l1(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const i=new Set(a??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#r).some(l=>{const u=l;return this.#r[u]!==e[u]&&i.has(u)})};this.#T({listeners:n()})}#_(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#T(e){In.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function AV(e,t){return _a(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function $x(e,t){return AV(e,t)||e.state.data!==void 0&&w8(e,t,t.refetchOnMount)}function w8(e,t,n){if(_a(t.enabled,e)!==!1&&eo(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&kv(e,t)}return!1}function Qx(e,t,n,r){return(e!==t||_a(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&kv(e,n)}function kv(e,t){return _a(t.enabled,e)!==!1&&e.isStaleByTime(eo(t.staleTime,e))}function SV(e,t){return!l1(e.getCurrentResult(),t)}function Yx(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function wV(e,t,n){const r=e.slice(0);return r[t]=n,r}var CV=class extends rl{#t;#e;#n;#r;#a;#s;#o;#i;#h=[];constructor(e,t,n){super(),this.#t=e,this.#r=n,this.#n=[],this.#a=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,In.batch(()=>{const n=this.#a,r=this.#u(this.#n);this.#h=r,r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const a=r.map(u=>u.observer),i=a.map(u=>u.getCurrentResult()),l=a.some((u,d)=>u!==n[d]);n.length===a.length&&!l||(this.#a=a,this.#e=i,this.hasListeners()&&(Yx(n,a).forEach(u=>{u.destroy()}),Yx(a,n).forEach(u=>{u.subscribe(d=>{this.#c(u,d)})}),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(e=>e.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(e,t){const n=this.#u(e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>this.#f(a??r,t),()=>this.#d(r,n)]}#d(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,i=>{t.forEach(l=>{l.observer.trackProp(i)})})})}#f(e,t){return t?((!this.#s||this.#e!==this.#i||t!==this.#o)&&(this.#o=t,this.#i=this.#e,this.#s=Ov(this.#s,t(e))),this.#s):e}#u(e){const t=new Map(this.#a.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),i=t.get(a.queryHash);i?n.push({defaultedQueryOptions:a,observer:i}):n.push({defaultedQueryOptions:a,observer:new Q0(this.#t,a)})}),n}#c(e,t){const n=this.#a.indexOf(e);n!==-1&&(this.#e=wV(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#s,t=this.#d(this.#e,this.#h),n=this.#f(t,this.#r?.combine);e!==n&&In.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},l7=class extends Q0{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:c1()})}getOptimisticResult(e){return e.behavior=c1(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:i,isError:l,isRefetchError:u}=r,d=n.fetchMeta?.fetchMore?.direction,h=l&&d==="forward",g=a&&d==="forward",m=l&&d==="backward",E=a&&d==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:_V(t,n.data),hasPreviousPage:TV(t,n.data),isFetchNextPageError:h,isFetchingNextPage:g,isFetchPreviousPageError:m,isFetchingPreviousPage:E,isRefetchError:u&&!h&&!m,isRefetching:i&&!g&&!E}}},RV=class extends rl{#t;#e=void 0;#n;#r;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),l1(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&so(n.mutationKey)!==so(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#s(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??s7();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#s(t){In.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context;t?.type==="success"?(this.#r.onSuccess?.(t.data,n,r),this.#r.onSettled?.(t.data,null,n,r)):t?.type==="error"&&(this.#r.onError?.(t.error,n,r),this.#r.onSettled?.(void 0,t.error,n,r))}this.listeners.forEach(n=>{n(this.#e)})})}},u7=p.createContext(void 0),Y0=e=>{const t=p.useContext(u7);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Gx=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(u7.Provider,{value:e,children:t})),c7=p.createContext(!1),d7=()=>p.useContext(c7);c7.Provider;function OV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var NV=p.createContext(OV()),f7=()=>p.useContext(NV),h7=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},m7=e=>{p.useEffect(()=>{e.clearReset()},[e])},p7=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||J9(n,[e.error,r])),Pv=(e,t)=>t.state.data===void 0,g7=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},v7=(e,t)=>e.isLoading&&e.isFetching&&!t,C8=(e,t)=>e?.suspense&&t.isPending,d1=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function y7({queries:e,...t},n){const r=Y0(n),a=d7(),i=f7(),l=p.useMemo(()=>e.map(A=>{const S=r.defaultQueryOptions(A);return S._optimisticResults=a?"isRestoring":"optimistic",S}),[e,r,a]);l.forEach(A=>{g7(A),h7(A,i)}),m7(i);const[u]=p.useState(()=>new CV(r,l,t)),[d,h,g]=u.getOptimisticResult(l,t.combine),m=!a&&t.subscribed!==!1;p.useSyncExternalStore(p.useCallback(A=>m?u.subscribe(In.batchCalls(A)):Tr,[u,m]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p.useEffect(()=>{u.setQueries(l,t)},[l,t,u]);const b=d.some((A,S)=>C8(l[S],A))?d.flatMap((A,S)=>{const w=l[S];if(w){const R=new Q0(r,w);if(C8(w,A))return d1(w,R,i);v7(A,a)&&d1(w,R,i)}return[]}):[];if(b.length>0)throw Promise.all(b);const T=d.find((A,S)=>{const w=l[S];return w&&p7({result:A,errorResetBoundary:i,throwOnError:w.throwOnError,query:r.getQueryCache().get(w.queryHash),suspense:w.suspense})});if(T?.error)throw T.error;return h(g())}function ch(e,t,n){const r=d7(),a=f7(),i=Y0(n),l=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",g7(l),h7(l,a),m7(a);const u=!i.getQueryCache().get(l.queryHash),[d]=p.useState(()=>new t(i,l)),h=d.getOptimisticResult(l),g=!r&&e.subscribed!==!1;if(p.useSyncExternalStore(p.useCallback(m=>{const E=g?d.subscribe(In.batchCalls(m)):Tr;return d.updateResult(),E},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),p.useEffect(()=>{d.setOptions(l)},[l,d]),C8(l,h))throw d1(l,d,a);if(p7({result:h,errorResetBoundary:a,throwOnError:l.throwOnError,query:i.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw h.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(l,h),l.experimental_prefetchInRender&&!qo&&v7(h,r)&&(u?d1(l,d,a):i.getQueryCache().get(l.queryHash)?.promise)?.catch(Tr).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?h:d.trackResult(h)}function kV(e,t){return ch(e,Q0,t)}function PV(e,t){return ch({...e,enabled:!0,suspense:!0,throwOnError:Pv,placeholderData:void 0},Q0,t)}function DV(e,t){return ch({...e,enabled:!0,suspense:!0,throwOnError:Pv},l7,t)}function LV(e,t){return y7({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:Pv,enabled:!0,placeholderData:void 0}))},t)}function MV(e,t){const n=Y0(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function IV(e,t){const n=Y0(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function jV(e,t){const n=Y0(t),[r]=p.useState(()=>new RV(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);const a=p.useSyncExternalStore(p.useCallback(l=>r.subscribe(In.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=p.useCallback((l,u)=>{r.mutate(l,u).catch(Tr)},[r]);if(a.error&&J9(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}function HV(e,t){return ch(e,l7,t)}var FV=Object.create,b7=Object.defineProperty,UV=Object.getOwnPropertyDescriptor,E7=Object.getOwnPropertyNames,BV=Object.getPrototypeOf,VV=Object.prototype.hasOwnProperty,co=(e,t)=>function(){return t||(0,e[E7(e)[0]])((t={exports:{}}).exports,t),t.exports},zV=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=E7(t),i=0,l=a.length,u;i<l;i++)u=a[i],!VV.call(e,u)&&u!==n&&b7(e,u,{get:(d=>t[d]).bind(null,u),enumerable:!(r=UV(t,u))||r.enumerable});return e},al=(e,t,n)=>(n=e!=null?FV(BV(e)):{},zV(t||!e||!e.__esModule?b7(n,"default",{value:e,enumerable:!0}):n,e)),ZV=co({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var i={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(a.includes(l))continue;i[l]=r[l]}return i}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),qV=co({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=ZV();function r(a,i){if(a==null)return{};var l,u,d=n(a,i);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(a);for(u=0;u<h.length;u++)l=h[u],i.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(d[l]=a[l])}return d}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),x7=co({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),$V=co({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=x7().default;function r(a,i){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var u=l.call(a,i||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),QV=co({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=x7().default,r=$V();function a(i){var l=r(i,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),YV=co({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=QV();function r(a,i,l){return(i=n(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),G0=co({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=YV();function r(i,l){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);l&&(d=d.filter(function(h){return Object.getOwnPropertyDescriptor(i,h).enumerable})),u.push.apply(u,d)}return u}function a(i){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?r(Object(u),!0).forEach(function(d){n(i,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(d){Object.defineProperty(i,d,Object.getOwnPropertyDescriptor(u,d))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),GV=al(qV(),1),Kx=al(G0(),1);const KV=["cursor","direction"];function ms(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&Zo(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:i}=t,l=(0,GV.default)(t,KV);return[r,{input:l,type:"infinite"}]}return[r,(0,Kx.default)((0,Kx.default)({},typeof t<"u"&&t!==ca&&{input:t}),n&&n!=="any"&&{type:n})]}function qf(e){return ms(e,void 0,"any")}function XV(e){return oh(({path:t,args:n})=>{var r;const a=[...t],i=a.pop();if(i==="useMutation")return e[i](a,...n);if(i==="_def")return{path:a};const[l,...u]=n,d=(r=u[0])!==null&&r!==void 0?r:{};return e[i](a,l,d)})}var S2;const WV=["client","ssrContext","ssrState","abortOnUnmount"],JV=(S2=p.createContext)===null||S2===void 0?void 0:S2.call(L6,null),ez=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function tz(e){return oh(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],i=a.shift(),l=ez(r),u=ms(n,i,l);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,u,a[0]),queryOptions:()=>e.queryOptions(n,u,...a),fetch:()=>e.fetchQuery(u,...a),fetchInfinite:()=>e.fetchInfiniteQuery(u,a[0]),prefetch:()=>e.prefetchQuery(u,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(u,a[0]),ensureData:()=>e.ensureQueryData(u,...a),invalidate:()=>e.invalidateQueries(u,...a),reset:()=>e.resetQueries(u,...a),refetch:()=>e.refetchQueries(u,...a),cancel:()=>e.cancelQuery(u,...a),setData:()=>{e.setQueryData(u,a[0],a[1])},setQueriesData:()=>e.setQueriesData(u,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(u,a[0],a[1])},getData:()=>e.getQueryData(u),getInfiniteData:()=>e.getInfiniteQueryData(u),setMutationDefaults:()=>e.setMutationDefaults(qf(n),i),getMutationDefaults:()=>e.getMutationDefaults(qf(n)),isMutating:()=>e.isMutating({mutationKey:qf(n)})}[r]()})}function nz(e){const t=M9(e.client),n=tz(e);return Av(r=>{const a=r;return a==="client"?t:WV.includes(a)?e[a]:n[r]})}var rz=al(G0(),1);function Xx(e){const t=e instanceof lh?e:Cv(e);return oh(n=>{const r=n.path,a=r.join("."),[i,l]=n.args;return(0,rz.default)({queryKey:ms(r,i,"query"),queryFn:()=>t.query(a,i,l?.trpc)},l)})}var w2=al(G0(),1);function kr(e,t,n){var r;const a=e[0];let i=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var l;i=(0,w2.default)((0,w2.default)((0,w2.default)({},(l=i)!==null&&l!==void 0?l:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),i,t?.trpc]}var az=co({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var i,l,u,d=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,u=Symbol.iterator);d--;){if(l&&(i=a[l])!=null)return i.call(a);if(u&&(i=a[u])!=null)return new r(i.call(a));l="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function i(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var u=l.done;return Promise.resolve(l.value).then(function(d){return{value:d,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(u){var d=this.s.return;return d===void 0?Promise.resolve({value:u,done:!0}):i(d.apply(this.s,arguments))},throw:function(u){var d=this.s.return;return d===void 0?Promise.reject(u):i(d.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),sz=al(az(),1);function R8(e){return{path:e.path.join(".")}}function Zc(e){const t=R8(e);return p.useMemo(()=>t,[t])}async function _7(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const i=[];var l=!1,u=!1,d;try{for(var h=(0,sz.default)(e),g;l=!(g=await h.next()).done;l=!1){const m=g.value;i.push(m),a.setState({data:[...i]})}}catch(m){u=!0,d=m}finally{try{l&&h.return!=null&&await h.return()}finally{if(u)throw d}}return i}var zt=al(G0(),1);function iz(e){const{client:t,queryClient:n}=e,r=t instanceof lh?t:Cv(t);return{infiniteQueryOptions:(a,i,l)=>{var u,d;const h=((u=i[1])===null||u===void 0?void 0:u.input)===ca,g=async m=>{var E;const b=(0,zt.default)((0,zt.default)({},l),{},{trpc:(0,zt.default)((0,zt.default)({},l?.trpc),!(l==null||(E=l.trpc)===null||E===void 0)&&E.abortOnUnmount?{signal:m.signal}:{signal:null})});return await r.query(...kr(i,b,{direction:m.direction,pageParam:m.pageParam}))};return Object.assign((0,zt.default)((0,zt.default)({},l),{},{initialData:l?.initialData,queryKey:i,queryFn:h?ca:g,initialPageParam:(d=l?.initialCursor)!==null&&d!==void 0?d:null}),{trpc:R8({path:a})})},queryOptions:(a,i,l)=>{var u;const d=((u=i[1])===null||u===void 0?void 0:u.input)===ca,h=async g=>{var m;const E=(0,zt.default)((0,zt.default)({},l),{},{trpc:(0,zt.default)((0,zt.default)({},l?.trpc),!(l==null||(m=l.trpc)===null||m===void 0)&&m.abortOnUnmount?{signal:g.signal}:{signal:null})}),b=await r.query(...kr(i,E));return T9(b)?_7(b,n,i):b};return Object.assign((0,zt.default)((0,zt.default)({},l),{},{initialData:l?.initialData,queryKey:i,queryFn:d?ca:h}),{trpc:R8({path:a})})},fetchQuery:(a,i)=>n.fetchQuery((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...kr(a,i))})),fetchInfiniteQuery:(a,i)=>{var l;return n.fetchInfiniteQuery((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:({pageParam:u,direction:d})=>r.query(...kr(a,i,{pageParam:u,direction:d})),initialPageParam:(l=i?.initialCursor)!==null&&l!==void 0?l:null}))},prefetchQuery:(a,i)=>n.prefetchQuery((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...kr(a,i))})),prefetchInfiniteQuery:(a,i)=>{var l;return n.prefetchInfiniteQuery((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:({pageParam:u,direction:d})=>r.query(...kr(a,i,{pageParam:u,direction:d})),initialPageParam:(l=i?.initialCursor)!==null&&l!==void 0?l:null}))},ensureQueryData:(a,i)=>n.ensureQueryData((0,zt.default)((0,zt.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...kr(a,i))})),invalidateQueries:(a,i,l)=>n.invalidateQueries((0,zt.default)((0,zt.default)({},i),{},{queryKey:a}),l),resetQueries:(a,i,l)=>n.resetQueries((0,zt.default)((0,zt.default)({},i),{},{queryKey:a}),l),refetchQueries:(a,i,l)=>n.refetchQueries((0,zt.default)((0,zt.default)({},i),{},{queryKey:a}),l),cancelQuery:(a,i)=>n.cancelQueries({queryKey:a},i),setQueryData:(a,i,l)=>n.setQueryData(a,i,l),setQueriesData:(a,i,l,u)=>n.setQueriesData((0,zt.default)((0,zt.default)({},i),{},{queryKey:a}),l,u),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,i,l)=>n.setQueryData(a,i,l),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,i)=>{const l=a[0],u=d=>r.mutation(...kr([l,{input:d}],e));return n.setMutationDefaults(a,typeof i=="function"?i({canonicalMutationFn:u}):i)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,zt.default)((0,zt.default)({},a),{},{exact:!0}))}}var Qe=al(G0());const Wx=(e,t)=>new Proxy(e,{get(r,a){return t(a),r[a]}});function oz(e){var t,n,r;const a=(t=e==null||(n=e.overrides)===null||n===void 0||(n=n.useMutation)===null||n===void 0?void 0:n.onSuccess)!==null&&t!==void 0?t:N=>N.originalFn(),i=(r=e?.context)!==null&&r!==void 0?r:JV,l=wv,u=N=>{var L;const{abortOnUnmount:D=!1,queryClient:B,ssrContext:k}=N,[U,F]=p.useState((L=N.ssrState)!==null&&L!==void 0?L:!1),Q=N.client instanceof lh?N.client:Cv(N.client),Y=p.useMemo(()=>iz({client:Q,queryClient:B}),[Q,B]),te=p.useMemo(()=>(0,Qe.default)({abortOnUnmount:D,queryClient:B,client:Q,ssrContext:k??null,ssrState:U},Y),[D,Q,Y,B,k,U]);return p.useEffect(()=>{F(V=>V?"mounted":!1)},[]),v.jsx(i.Provider,{value:te,children:N.children})};function d(){const N=p.useContext(i);if(!N)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return N}function h(N,L){var D;const{queryClient:B,ssrState:k}=d();return k&&k!=="mounted"&&((D=B.getQueryCache().find({queryKey:N}))===null||D===void 0?void 0:D.state.status)==="error"?(0,Qe.default)({retryOnMount:!1},L):L}function g(N,L,D){var B,k,U,F,Q;const Y=d(),{abortOnUnmount:te,client:V,ssrState:J,queryClient:X,prefetchQuery:se}=Y,C=ms(N,L,"query"),oe=X.getQueryDefaults(C),ge=L===ca;typeof window>"u"&&J==="prepass"&&(D==null||(B=D.trpc)===null||B===void 0?void 0:B.ssr)!==!1&&((k=D?.enabled)!==null&&k!==void 0?k:oe?.enabled)!==!1&&!ge&&!X.getQueryCache().find({queryKey:C})&&se(C,D);const j=h(C,(0,Qe.default)((0,Qe.default)({},oe),D)),Ee=(U=(F=D==null||(Q=D.trpc)===null||Q===void 0?void 0:Q.abortOnUnmount)!==null&&F!==void 0?F:e?.abortOnUnmount)!==null&&U!==void 0?U:te,ke=kV((0,Qe.default)((0,Qe.default)({},j),{},{queryKey:C,queryFn:ge?L:async Z=>{const ae=(0,Qe.default)((0,Qe.default)({},j),{},{trpc:(0,Qe.default)((0,Qe.default)({},j?.trpc),Ee?{signal:Z.signal}:{signal:null})}),Te=await V.query(...kr(C,ae));return T9(Te)?_7(Te,X,C):Te}}),X);return ke.trpc=Zc({path:N}),ke}function m(N,L,D){var B,k,U;const F=d(),Q=ms(N,L,"query"),Y=L===ca,te=(B=(k=D==null||(U=D.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&k!==void 0?k:e?.abortOnUnmount)!==null&&B!==void 0?B:F.abortOnUnmount;MV((0,Qe.default)((0,Qe.default)({},D),{},{queryKey:Q,queryFn:Y?L:V=>{const J={trpc:(0,Qe.default)((0,Qe.default)({},D?.trpc),te?{signal:V.signal}:{})};return F.client.query(...kr(Q,J))}}))}function E(N,L,D){var B,k,U;const F=d(),Q=ms(N,L,"query"),Y=(B=(k=D==null||(U=D.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&k!==void 0?k:e?.abortOnUnmount)!==null&&B!==void 0?B:F.abortOnUnmount,te=PV((0,Qe.default)((0,Qe.default)({},D),{},{queryKey:Q,queryFn:V=>{const J=(0,Qe.default)((0,Qe.default)({},D),{},{trpc:(0,Qe.default)((0,Qe.default)({},D?.trpc),Y?{signal:V.signal}:{signal:null})});return F.client.query(...kr(Q,J))}}),F.queryClient);return te.trpc=Zc({path:N}),[te.data,te]}function b(N,L){const{client:D,queryClient:B}=d(),k=qf(N),U=B.defaultMutationOptions(B.getMutationDefaults(k)),F=jV((0,Qe.default)((0,Qe.default)({},L),{},{mutationKey:k,mutationFn:Q=>D.mutation(...kr([N,{input:Q}],L)),onSuccess(...Q){var Y,te;return a({originalFn:()=>{var J,X,se;return(J=L==null||(X=L.onSuccess)===null||X===void 0?void 0:X.call(L,...Q))!==null&&J!==void 0?J:U==null||(se=U.onSuccess)===null||se===void 0?void 0:se.call(U,...Q)},queryClient:B,meta:(Y=(te=L?.meta)!==null&&te!==void 0?te:U?.meta)!==null&&Y!==void 0?Y:{}})}}),B);return F.trpc=Zc({path:N}),F}const T={data:void 0,error:null,status:"idle"},A={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function S(N,L,D){var B;const k=(B=D?.enabled)!==null&&B!==void 0?B:L!==ca,U=so(ms(N,L,"any")),{client:F}=d(),Q=p.useRef(D);p.useEffect(()=>{Q.current=D});const[Y]=p.useState(new Set([])),te=p.useCallback(ge=>{Y.add(ge)},[Y]),V=p.useRef(null),J=p.useCallback(ge=>{const j=se.current,Ee=se.current=ge(j);let ke=!1;for(const Z of Y)if(j[Z]!==Ee[Z]){ke=!0;break}ke&&oe(Wx(Ee,te))},[te,Y]),X=p.useCallback(()=>{var ge;if((ge=V.current)===null||ge===void 0||ge.unsubscribe(),!k){J(()=>(0,Qe.default)((0,Qe.default)({},T),{},{reset:X}));return}J(()=>(0,Qe.default)((0,Qe.default)({},A),{},{reset:X}));const j=F.subscription(N.join("."),L??void 0,{onStarted:()=>{var Ee,ke;(Ee=(ke=Q.current).onStarted)===null||Ee===void 0||Ee.call(ke),J(Z=>(0,Qe.default)((0,Qe.default)({},Z),{},{status:"pending",error:null}))},onData:Ee=>{var ke,Z;(ke=(Z=Q.current).onData)===null||ke===void 0||ke.call(Z,Ee),J(ae=>(0,Qe.default)((0,Qe.default)({},ae),{},{status:"pending",data:Ee,error:null}))},onError:Ee=>{var ke,Z;(ke=(Z=Q.current).onError)===null||ke===void 0||ke.call(Z,Ee),J(ae=>(0,Qe.default)((0,Qe.default)({},ae),{},{status:"error",error:Ee}))},onConnectionStateChange:Ee=>{J(ke=>{switch(Ee.state){case"idle":return(0,Qe.default)((0,Qe.default)({},ke),{},{status:Ee.state,error:null,data:void 0});case"connecting":return(0,Qe.default)((0,Qe.default)({},ke),{},{error:Ee.error,status:Ee.state});case"pending":return ke}})},onComplete:()=>{var Ee,ke;(Ee=(ke=Q.current).onComplete)===null||Ee===void 0||Ee.call(ke),J(Z=>(0,Qe.default)((0,Qe.default)({},Z),{},{status:"idle",error:null,data:void 0}))}});V.current=j},[F,U,k,J]);p.useEffect(()=>(X(),()=>{var ge;(ge=V.current)===null||ge===void 0||ge.unsubscribe()}),[X]);const se=p.useRef(k?(0,Qe.default)((0,Qe.default)({},A),{},{reset:X}):(0,Qe.default)((0,Qe.default)({},T),{},{reset:X})),[C,oe]=p.useState(Wx(se.current,te));return C}function w(N,L,D){var B,k,U,F,Q;const{client:Y,ssrState:te,prefetchInfiniteQuery:V,queryClient:J,abortOnUnmount:X}=d(),se=ms(N,L,"infinite"),C=J.getQueryDefaults(se),oe=L===ca;typeof window>"u"&&te==="prepass"&&(D==null||(B=D.trpc)===null||B===void 0?void 0:B.ssr)!==!1&&((k=D?.enabled)!==null&&k!==void 0?k:C?.enabled)!==!1&&!oe&&!J.getQueryCache().find({queryKey:se})&&V(se,(0,Qe.default)((0,Qe.default)({},C),D));const ge=h(se,(0,Qe.default)((0,Qe.default)({},C),D)),j=(U=D==null||(F=D.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&U!==void 0?U:X,Ee=HV((0,Qe.default)((0,Qe.default)({},ge),{},{initialPageParam:(Q=D.initialCursor)!==null&&Q!==void 0?Q:null,persister:D.persister,queryKey:se,queryFn:oe?L:ke=>{var Z;const ae=(0,Qe.default)((0,Qe.default)({},ge),{},{trpc:(0,Qe.default)((0,Qe.default)({},ge?.trpc),j?{signal:ke.signal}:{signal:null})});return Y.query(...kr(se,ae,{pageParam:(Z=ke.pageParam)!==null&&Z!==void 0?Z:D.initialCursor,direction:ke.direction}))}}),J);return Ee.trpc=Zc({path:N}),Ee}function R(N,L,D){var B,k,U;const F=d(),Q=ms(N,L,"infinite"),Y=F.queryClient.getQueryDefaults(Q),te=L===ca,V=h(Q,(0,Qe.default)((0,Qe.default)({},Y),D)),J=(B=D==null||(k=D.trpc)===null||k===void 0?void 0:k.abortOnUnmount)!==null&&B!==void 0?B:F.abortOnUnmount;IV((0,Qe.default)((0,Qe.default)({},D),{},{initialPageParam:(U=D.initialCursor)!==null&&U!==void 0?U:null,queryKey:Q,queryFn:te?L:X=>{var se;const C=(0,Qe.default)((0,Qe.default)({},V),{},{trpc:(0,Qe.default)((0,Qe.default)({},V?.trpc),J?{signal:X.signal}:{})});return F.client.query(...kr(Q,C,{pageParam:(se=X.pageParam)!==null&&se!==void 0?se:D.initialCursor,direction:X.direction}))}}))}function P(N,L,D){var B,k,U;const F=d(),Q=ms(N,L,"infinite"),Y=F.queryClient.getQueryDefaults(Q),te=h(Q,(0,Qe.default)((0,Qe.default)({},Y),D)),V=(B=D==null||(k=D.trpc)===null||k===void 0?void 0:k.abortOnUnmount)!==null&&B!==void 0?B:F.abortOnUnmount,J=DV((0,Qe.default)((0,Qe.default)({},D),{},{initialPageParam:(U=D.initialCursor)!==null&&U!==void 0?U:null,queryKey:Q,queryFn:X=>{var se;const C=(0,Qe.default)((0,Qe.default)({},te),{},{trpc:(0,Qe.default)((0,Qe.default)({},te?.trpc),V?{signal:X.signal}:{})});return F.client.query(...kr(Q,C,{pageParam:(se=X.pageParam)!==null&&se!==void 0?se:D.initialCursor,direction:X.direction}))}}),F.queryClient);return J.trpc=Zc({path:N}),[J.data,J]}return{Provider:u,createClient:l,useContext:d,useUtils:d,useQuery:g,usePrefetchQuery:m,useSuspenseQuery:E,useQueries:(N,L)=>{const{ssrState:D,queryClient:B,prefetchQuery:k,client:U}=d(),F=Xx(U),Q=N(F);if(typeof window>"u"&&D==="prepass")for(const te of Q){var Y;const V=te;((Y=V.trpc)===null||Y===void 0?void 0:Y.ssr)!==!1&&!B.getQueryCache().find({queryKey:V.queryKey})&&k(V.queryKey,V)}return y7({queries:Q.map(te=>(0,Qe.default)((0,Qe.default)({},te),{},{queryKey:te.queryKey})),combine:L?.combine},B)},useSuspenseQueries:N=>{const{queryClient:L,client:D}=d(),B=Xx(D),k=N(B),U=LV({queries:k.map(F=>(0,Qe.default)((0,Qe.default)({},F),{},{queryFn:F.queryFn,queryKey:F.queryKey}))},L);return[U.map(F=>F.data),U]},useMutation:b,useSubscription:S,useInfiniteQuery:w,usePrefetchInfiniteQuery:R,useSuspenseInfiniteQuery:P}}function lz(e){const t=XV(e);return Av(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return p.useMemo(()=>nz(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function T7(e){const t=oz(e);return lz(t)}const vn=T7({}),dh=T7({context:p.createContext(null)}),Jx=new o7,e_=new o7;function uz(e){const[t]=p.useState(()=>iV(`${e.gatewayUrl}/trpc`)),[n]=p.useState(()=>oV(e.registryUrl));return v.jsx(vn.Provider,{queryClient:Jx,client:t,children:v.jsx(Gx,{client:Jx,children:v.jsx(dh.Provider,{queryClient:e_,client:n,children:v.jsx(Gx,{client:e_,children:e.children})})})})}const cz=H0(["grid w-full auto-rows-min","gap-x-4 gap-y-12 md:gap-x-8 lg:gap-x-12 lg:gap-y-16","*:col-span-1 *:col-start-2"],{variants:{size:{xs:["grid-cols-[1fr_min(24rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(24rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(24rem,_calc(100%-3rem*2))_1fr]"],sm:["grid-cols-[1fr_min(30rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(30rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(30rem,_calc(100%-3rem*2))_1fr]"],md:["grid-cols-[1fr_min(40rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(40rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(40rem,_calc(100%-3rem*2))_1fr]"],lg:["grid-cols-[1fr_min(50rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(50rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(50rem,_calc(100%-3rem*2))_1fr]"],xl:["grid-cols-[1fr_min(70rem,_calc(100%-1rem*2))_1fr]","md:grid-cols-[1fr_min(70rem,_calc(100%-2rem*2))_1fr]","lg:grid-cols-[1fr_min(70rem,_calc(100%-3rem*2))_1fr]"]}},defaultVariants:{size:"md"}});function Ja({children:e,className:t,asChild:n,size:r,...a}){const i=n?yr:"div";return v.jsx(i,{className:De(cz({size:r}),t),...a,children:e})}function fh({className:e,...t}){return v.jsx("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:De("-rotate-8 size-8 shrink-0 origin-center",e),...t,children:v.jsx("path",{d:"M22 0C28.3006 0 31.4509 0.00038593 33.8574 1.22656C35.9741 2.30511 37.6949 4.0259 38.7734 6.14258C39.9996 8.54909 40 11.6994 40 18V22C40 28.3006 39.9996 31.4509 38.7734 33.8574C37.6949 35.9741 35.9741 37.6949 33.8574 38.7734C31.4509 39.9996 28.3006 40 22 40H18C11.6994 40 8.54908 39.9996 6.14258 38.7734C4.0259 37.6949 2.30511 35.9741 1.22656 33.8574C0.00038593 31.4509 0 28.3006 0 22L0 18C0 11.6994 0.00038593 8.54908 1.22656 6.14258C2.30511 4.0259 4.0259 2.30511 6.14258 1.22656C8.54909 0.000385852 11.6994 0 18 0L22 0ZM31.373 17.5C30.7509 17.5002 30.2471 18.0048 30.2471 18.627V28.6533L19.4229 17.8301C18.9829 17.3903 18.27 17.3902 17.8301 17.8301C17.3902 18.27 17.3903 18.9829 17.8301 19.4229L28.6533 30.2471H18.627C18.0048 30.2471 17.5002 30.7509 17.5 31.373C17.5 31.9952 18.0047 32.5 18.627 32.5H31.373C31.6718 32.5 31.9586 32.3812 32.1699 32.1699C32.3812 31.9586 32.5 31.6718 32.5 31.373V18.627C32.5 18.0047 31.9952 17.5 31.373 17.5Z",fill:"currentcolor"})})}var dz="Separator",t_="horizontal",fz=["horizontal","vertical"],A7=p.forwardRef((e,t)=>{const{decorative:n,orientation:r=t_,...a}=e,i=hz(r)?r:t_,u=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return v.jsx(xt.div,{"data-orientation":i,...u,...a,ref:t})});A7.displayName=dz;function hz(e){return fz.includes(e)}var mz=A7;function S7({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return v.jsx(mz,{"data-slot":"separator-root",decorative:n,orientation:t,className:De("shrink-0 bg-accent","data-[orientation=horizontal]:h-[0.5px] data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-[0.5px]",e),...r})}const pi=H0("",{variants:{variant:{h1:"text-balance font-medium font-sans text-[25px] leading-tight tracking-[0.01em]",h2:"text-balance font-medium font-sans text-[17px] leading-6 tracking-[0.01em]",h3:"text-balance font-medium font-sans text-[15px] leading-tight",h4:"text-balance font-normal font-sans text-base leading-tight",p:"text-pretty text-[15px] leading-6",inlineLink:"text-inherit underline decoration-gray-10 decoration-dashed underline-offset-3 hover:decoration-gray-12"},invisibles:{false:"",true:"[&:not(p)]:before:mr-2 [&:not(p)]:before:text-gray-8 [&:not(p)]:before:tracking-widest"}},defaultVariants:{variant:"p",invisibles:!1},compoundVariants:[{variant:"h1",invisibles:!0,className:"before:content-['#']"},{variant:"h2",invisibles:!0,className:"before:content-['##']"},{variant:"h3",invisibles:!0,className:"before:content-['###']"},{variant:"h4",invisibles:!0,className:"before:content-['####']"}]});function rn({children:e,className:t,asChild:n,...r}){const a=n?yr:"section";return v.jsx(a,{"data-slot":"section",className:De("relative flex scroll-m-20 flex-col gap-y-3",t),...r,children:e})}function an({children:e,className:t,...n}){return v.jsx("header",{"data-slot":"section-header",className:De("flex flex-col gap-1",t),...n,children:e})}function sn({children:e,className:t,asChild:n,invisibles:r,variant:a="h1",...i}){const l=n?yr:"h1";return v.jsx(l,{"data-slot":"section-title",className:De(pi({variant:a,invisibles:r}),t),...i,children:e})}function Os({children:e,className:t,asChild:n,invisibles:r,...a}){const i=n?yr:"p";return v.jsx(i,{"data-slot":"section-description",className:De(pi({variant:"p",invisibles:r}),"max-w-md text-fg-subtle",t),...a,children:e})}const si=e=>v.jsx(S7,{"data-slot":"section-separator",...e});function hh({icon:e="director",fullScreen:t=!1,title:n,subtitle:r,data:a}){return v.jsx("div",{className:t?"flex min-h-dvh w-full items-center justify-center":"",children:v.jsx(Ja,{size:"sm",className:"w-full py-12 lg:py-16",children:v.jsxs(rn,{className:"gap-y-8",children:[pz(e),v.jsxs(an,{className:"items-center gap-y-1.5 text-center",children:[n&&v.jsx(sn,{className:"font-medium text-2xl",children:n}),r&&v.jsx(Os,{className:"text-base",children:r})]}),a&&v.jsx("pre",{className:"max-h-[300px] w-full overflow-y-auto rounded-xl bg-accent p-4 text-left font-mono text-sm",children:v.jsx("code",{children:a?typeof a=="string"?a:JSON.stringify(a,null,2):""})})]})})})}function pz(e){switch(e){case"dead-smiley":return v.jsx(cA,{weight:"fill",className:"mx-auto size-10"});case"plugs":return v.jsx(lA,{weight:"fill",className:"mx-auto size-10"});case"director":return v.jsx(fh,{className:"mx-auto"})}}class gz extends p.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){console.error("❌ Error caught by boundary:",t),console.error("❌ Component stack:",n.componentStack)}render(){return this.state.error?v.jsx(hh,{title:"Unexpected Error",icon:"dead-smiley",fullScreen:!0,subtitle:this.state.error.message}):this.props.children}}function K0(){return vn.store.getAll.useQuery()}var mh="Dialog",[w7,C7]=Qr(mh),[vz,es]=w7(mh),R7=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,u=p.useRef(null),d=p.useRef(null),[h,g]=Oa({prop:r,defaultProp:a??!1,onChange:i,caller:mh});return v.jsx(vz,{scope:t,triggerRef:u,contentRef:d,contentId:Es(),titleId:Es(),descriptionId:Es(),open:h,onOpenChange:g,onOpenToggle:p.useCallback(()=>g(m=>!m),[g]),modal:l,children:n})};R7.displayName=mh;var O7="DialogTrigger",N7=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=es(O7,n),i=xn(t,a.triggerRef);return v.jsx(xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":jv(a.open),...r,ref:i,onClick:ut(e.onClick,a.onOpenToggle)})});N7.displayName=O7;var Dv="DialogPortal",[yz,k7]=w7(Dv,{forceMount:void 0}),P7=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=es(Dv,t);return v.jsx(yz,{scope:t,forceMount:n,children:p.Children.map(r,l=>v.jsx(Na,{present:n||i.open,children:v.jsx(X1,{asChild:!0,container:a,children:l})}))})};P7.displayName=Dv;var f1="DialogOverlay",D7=p.forwardRef((e,t)=>{const n=k7(f1,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=es(f1,e.__scopeDialog);return i.modal?v.jsx(Na,{present:r||i.open,children:v.jsx(Ez,{...a,ref:t})}):null});D7.displayName=f1;var bz=Vo("DialogOverlay.RemoveScroll"),Ez=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=es(f1,n);return v.jsx(J1,{as:bz,allowPinchZoom:!0,shards:[a.contentRef],children:v.jsx(xt.div,{"data-state":jv(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),$o="DialogContent",L7=p.forwardRef((e,t)=>{const n=k7($o,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=es($o,e.__scopeDialog);return v.jsx(Na,{present:r||i.open,children:i.modal?v.jsx(xz,{...a,ref:t}):v.jsx(_z,{...a,ref:t})})});L7.displayName=$o;var xz=p.forwardRef((e,t)=>{const n=es($o,e.__scopeDialog),r=p.useRef(null),a=xn(t,n.contentRef,r);return p.useEffect(()=>{const i=r.current;if(i)return av(i)},[]),v.jsx(M7,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ut(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ut(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&i.preventDefault()}),onFocusOutside:ut(e.onFocusOutside,i=>i.preventDefault())})}),_z=p.forwardRef((e,t)=>{const n=es($o,e.__scopeDialog),r=p.useRef(!1),a=p.useRef(!1);return v.jsx(M7,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;n.triggerRef.current?.contains(l)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),M7=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...l}=e,u=es($o,n),d=p.useRef(null),h=xn(t,d);return q6(),v.jsxs(v.Fragment,{children:[v.jsx($1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:v.jsx(q1,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":jv(u.open),...l,ref:h,onDismiss:()=>u.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(Az,{titleId:u.titleId}),v.jsx(wz,{contentRef:d,descriptionId:u.descriptionId})]})]})}),Lv="DialogTitle",Mv=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=es(Lv,n);return v.jsx(xt.h2,{id:a.titleId,...r,ref:t})});Mv.displayName=Lv;var I7="DialogDescription",Iv=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=es(I7,n);return v.jsx(xt.p,{id:a.descriptionId,...r,ref:t})});Iv.displayName=I7;var j7="DialogClose",H7=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=es(j7,n);return v.jsx(xt.button,{type:"button",...r,ref:t,onClick:ut(e.onClick,()=>a.onOpenChange(!1))})});H7.displayName=j7;function jv(e){return e?"open":"closed"}var F7="DialogTitleWarning",[Tz,U7]=yL(F7,{contentName:$o,titleName:Lv,docsSlug:"dialog"}),Az=({titleId:e})=>{const t=U7(F7),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
101
|
+
|
|
102
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
103
|
+
|
|
104
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Sz="DialogDescriptionWarning",wz=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${U7(Sz).contentName}}.`;return p.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Hv=R7,Fv=N7,Uv=P7,ph=D7,gh=L7,Bv=Mv,Vv=Iv,vh=H7,B7="AlertDialog",[Cz,bie]=Qr(B7,[C7]),gi=C7(),V7=e=>{const{__scopeAlertDialog:t,...n}=e,r=gi(t);return v.jsx(Hv,{...r,...n,modal:!0})};V7.displayName=B7;var Rz="AlertDialogTrigger",z7=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=gi(n);return v.jsx(Fv,{...a,...r,ref:t})});z7.displayName=Rz;var Oz="AlertDialogPortal",Z7=e=>{const{__scopeAlertDialog:t,...n}=e,r=gi(t);return v.jsx(Uv,{...r,...n})};Z7.displayName=Oz;var Nz="AlertDialogOverlay",q7=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=gi(n);return v.jsx(ph,{...a,...r,ref:t})});q7.displayName=Nz;var fu="AlertDialogContent",[kz,Pz]=Cz(fu),Dz=LD("AlertDialogContent"),$7=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,i=gi(n),l=p.useRef(null),u=xn(t,l),d=p.useRef(null);return v.jsx(Tz,{contentName:fu,titleName:Q7,docsSlug:"alert-dialog",children:v.jsx(kz,{scope:n,cancelRef:d,children:v.jsxs(gh,{role:"alertdialog",...i,...a,ref:u,onOpenAutoFocus:ut(a.onOpenAutoFocus,h=>{h.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[v.jsx(Dz,{children:r}),v.jsx(Iz,{contentRef:l})]})})})});$7.displayName=fu;var Q7="AlertDialogTitle",Y7=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=gi(n);return v.jsx(Bv,{...a,...r,ref:t})});Y7.displayName=Q7;var G7="AlertDialogDescription",K7=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=gi(n);return v.jsx(Vv,{...a,...r,ref:t})});K7.displayName=G7;var Lz="AlertDialogAction",Mz=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=gi(n);return v.jsx(vh,{...a,...r,ref:t})});Mz.displayName=Lz;var X7="AlertDialogCancel",W7=p.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=Pz(X7,n),i=gi(n),l=xn(t,a);return v.jsx(vh,{...i,...r,ref:l})});W7.displayName=X7;var Iz=({contentRef:e})=>{const t=`\`${fu}\` requires a description for the component to be accessible for screen reader users.
|
|
105
|
+
|
|
106
|
+
You can add a description to the \`${fu}\` by passing a \`${G7}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
107
|
+
|
|
108
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${fu}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
109
|
+
|
|
110
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},jz=V7,Hz=z7,Fz=Z7,Uz=q7,Bz=$7,Vz=W7,zz=Y7,Zz=K7;const J7=jz,qz=Hz,$z=Fz;function Qz({className:e,...t}){return v.jsx(Uz,{className:De("overlay",e),...t})}function ew({className:e,...t}){return v.jsxs($z,{children:[v.jsx(Qz,{}),v.jsx(Bz,{className:De("popover rounded-xl","fixed top-12 left-[50%] z-50 grid w-full max-w-[90%] translate-x-[-50%] outline-none duration-200 sm:max-w-md","radix-state-[closed]:fade-out-0 radix-state-[open]:fade-in-0 radix-state-[closed]:zoom-out-95 radix-state-[open]:zoom-in-95 radix-state-[closed]:slide-out-to-top-[48%] radix-state-[open]:slide-in-from-top-[48%] radix-state-[closed]:animate-out radix-state-[open]:animate-in",e),...t})]})}function tw({className:e,...t}){return v.jsx("div",{className:De("flex flex-col gap-y-1 p-5 text-start",e),...t})}function Yz({className:e,...t}){return v.jsx("div",{className:De("flex flex-col-reverse gap-1 border-accent border-t-[0.5px] px-5 py-3 sm:flex-row sm:justify-end",e),...t})}function nw({className:e,...t}){return v.jsx(zz,{className:De(pi({variant:"h2"}),"text-fg",e),...t})}function rw({className:e,...t}){return v.jsx(Zz,{className:De(pi({variant:"p"}),"text-fg-subtle",e),...t})}function Gz({className:e,...t}){return v.jsx(Vz,{className:De(OA({variant:"ghost"}),e),...t})}var Kz="Label",aw=p.forwardRef((e,t)=>v.jsx(xt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));aw.displayName=Kz;var Xz=aw;const Wz=H0("font-medium font-mono text-[11px] uppercase leading-none tracking-widest peer-disabled:cursor-not-allowed peer-disabled:opacity-70");function sl({className:e,...t}){return v.jsx(Xz,{className:De(Wz(),e),...t})}function Jz(e){const{onClickLibrary:t,onClickWorkspace:n,...r}=e;return v.jsx(J7,{...r,children:v.jsxs(ew,{children:[v.jsxs(tw,{className:"gap-y-0.5",children:[v.jsx(nw,{className:"text-xl",children:"You're all set!"}),v.jsx(rw,{children:"Why not try calling your new MCP server from the installed client?"})]}),v.jsxs("div",{className:"flex flex-col gap-1 border-accent border-t-[0.5px] p-5",children:[v.jsx(sl,{className:"pb-1",children:"Next steps"}),v.jsxs(C2,{href:"/library",onClick:t,children:[v.jsx(iA,{className:"text-fg-subtle",weight:"fill"}),v.jsx("span",{children:"Discover more MCP servers"})]}),v.jsxs(C2,{href:"https://docs.director.run",children:[v.jsx(GT,{className:"text-fg-subtle",weight:"fill"}),v.jsx("span",{children:"Explore our documentation"})]}),v.jsxs(C2,{className:"bg-fg text-surface hover:bg-fg-subtle",href:"/",onClick:n,children:[v.jsx(F6,{weight:"fill"}),v.jsx("span",{children:"Continue to your proxy"})]})]})]})})}function C2({className:e,children:t,href:n,onClick:r}){const a=()=>{r?r():n.startsWith("http")?window.open(n,"_blank","noopener,noreferrer"):window.location.href=n};return v.jsxs("button",{type:"button",className:De("group grid grid-cols-[24px_1fr_24px] items-center gap-2","h-9 rounded-md bg-accent pr-1.5 pl-3 font-[450] text-[15px]","outline-none hover:bg-accent-subtle","[&>svg]:size-5",e),onClick:a,children:[t,v.jsx(M6,{weight:"bold",className:"opacity-0 transition-opacity duration-200 group-hover:opacity-60"})]})}var eZ=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"}),tZ="VisuallyHidden",zv=p.forwardRef((e,t)=>v.jsx(xt.span,{...e,ref:t,style:{...eZ,...e.style}}));zv.displayName=tZ;var R2={exports:{}},O2={};/**
|
|
111
|
+
* @license React
|
|
112
|
+
* use-sync-external-store-shim.production.js
|
|
113
|
+
*
|
|
114
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the MIT license found in the
|
|
117
|
+
* LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/var n_;function nZ(){if(n_)return O2;n_=1;var e=U1();function t(m,E){return m===E&&(m!==0||1/m===1/E)||m!==m&&E!==E}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function u(m,E){var b=E(),T=r({inst:{value:b,getSnapshot:E}}),A=T[0].inst,S=T[1];return i(function(){A.value=b,A.getSnapshot=E,d(A)&&S({inst:A})},[m,b,E]),a(function(){return d(A)&&S({inst:A}),m(function(){d(A)&&S({inst:A})})},[m]),l(b),b}function d(m){var E=m.getSnapshot;m=m.value;try{var b=E();return!n(m,b)}catch{return!0}}function h(m,E){return E()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return O2.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,O2}var r_;function rZ(){return r_||(r_=1,R2.exports=nZ()),R2.exports}var aZ=rZ();function sZ(){return aZ.useSyncExternalStore(iZ,()=>!0,()=>!1)}function iZ(){return()=>{}}var Zv="Avatar",[oZ,Eie]=Qr(Zv),[lZ,sw]=oZ(Zv),iw=p.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,i]=p.useState("idle");return v.jsx(lZ,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:v.jsx(xt.span,{...r,ref:t})})});iw.displayName=Zv;var ow="AvatarImage",lw=p.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...i}=e,l=sw(ow,n),u=uZ(r,i),d=Ts(h=>{a(h),l.onImageLoadingStatusChange(h)});return Ra(()=>{u!=="idle"&&d(u)},[u,d]),u==="loaded"?v.jsx(xt.img,{...i,ref:t,src:r}):null});lw.displayName=ow;var uw="AvatarFallback",cw=p.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,i=sw(uw,n),[l,u]=p.useState(r===void 0);return p.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(d)}},[r]),l&&i.imageLoadingStatus!=="loaded"?v.jsx(xt.span,{...a,ref:t}):null});cw.displayName=uw;function a_(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function uZ(e,{referrerPolicy:t,crossOrigin:n}){const r=sZ(),a=p.useRef(null),i=r?(a.current||(a.current=new window.Image),a.current):null,[l,u]=p.useState(()=>a_(i,e));return Ra(()=>{u(a_(i,e))},[i,e]),Ra(()=>{const d=m=>()=>{u(m)};if(!i)return;const h=d("loaded"),g=d("error");return i.addEventListener("load",h),i.addEventListener("error",g),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",h),i.removeEventListener("error",g)}},[i,n,t]),l}var cZ=iw,dZ=lw,fZ=cw;function dw({className:e,...t}){return v.jsx("svg",{viewBox:"0 0 20 20",fill:"none",className:De("size-full",e),...t,children:v.jsx("path",{d:"M9.22783 1.84903C10.438 0.698788 12.3519 0.717222 13.5394 1.9047L13.595 1.96134C14.2699 2.67128 14.5382 3.62317 14.4085 4.52872C15.3143 4.39869 16.2666 4.66906 16.9769 5.34415L17.0335 5.39982L17.0706 5.43595L17.1263 5.49259C18.2584 6.68354 18.2583 8.55649 17.1263 9.74747L17.0706 9.80411L10.7483 16.1264L10.722 16.1586C10.6694 16.2385 10.6781 16.3471 10.7483 16.4174L12.0472 17.7152C12.2882 17.9565 12.2882 18.3481 12.0472 18.5893C11.806 18.8305 11.4144 18.8303 11.1731 18.5893L9.87529 17.2904C9.32116 16.7363 9.31205 15.8434 9.84892 15.2787L16.1966 8.93107L16.2298 8.89689C16.92 8.17086 16.9089 7.0225 16.1966 6.30997L16.1604 6.27286L16.1263 6.23966C15.4027 5.55186 14.2593 5.56013 13.5462 6.26505L13.5394 6.27286L8.26005 11.5522L8.23759 11.5736C7.99507 11.7928 7.61976 11.7859 7.38603 11.5522C7.14492 11.311 7.14501 10.9194 7.38603 10.6781L12.6653 5.39982L12.6985 5.36564C13.3887 4.63962 13.3776 3.49123 12.6653 2.77872V2.77775C11.953 2.06552 10.8045 2.05457 10.0784 2.74454L10.0442 2.77872L3.054 9.76798L3.03154 9.78946C2.78907 10.0085 2.41469 10.0016 2.18095 9.76798C1.93968 9.52671 1.93968 9.13523 2.18095 8.89396L9.17021 1.9047L9.22783 1.84903ZM10.9407 3.63028C11.1832 3.41123 11.5576 3.41825 11.7913 3.65177C12.0326 3.89304 12.0326 4.28452 11.7913 4.52579L6.62236 9.69474C5.8986 10.4185 5.89854 11.593 6.62236 12.3168C7.34618 13.0402 8.51976 13.0404 9.24345 12.3168L14.4124 7.14689C14.6537 6.90563 15.0452 6.90562 15.2864 7.14689C15.5276 7.38816 15.5277 7.77965 15.2864 8.02091L10.1165 13.1899C8.92901 14.3772 7.01516 14.3958 5.80498 13.2455L5.74834 13.1899C4.54215 11.9835 4.5421 10.028 5.74834 8.82169L10.9173 3.65177L10.9407 3.63028Z",fill:"currentcolor"})})}function yh({src:e,className:t,...n}){return v.jsxs(cZ,{"data-slot":"avatar",className:De("relative flex size-8 shrink-0",t),"aria-hidden":!0,...n,children:[v.jsx(dZ,{"data-slot":"avatar-image",className:De("aspect-square size-full",t),src:e??""}),v.jsx(fZ,{"data-slot":"avatar-fallback",className:De("flex size-full items-center justify-center rounded-full bg-fg/10 p-1.5",t),children:v.jsx(dw,{})})]})}const hZ=H0(["inline-flex shrink-0 select-none items-center justify-center gap-x-0 whitespace-nowrap rounded-md","font-medium font-mono tracking-[0.05em]"],{variants:{variant:{default:"bg-accent text-fg-subtle",success:"bg-success text-success-fg",destructive:"bg-destructive text-destructive-fg"},size:{default:"h-6 px-[3px] text-[11px] leading-6"}},defaultVariants:{variant:"default",size:"default"}});function vr({className:e,variant:t,size:n,asChild:r,...a}){const i=r?yr:"div";return v.jsx(i,{className:De(hZ({variant:t,size:n}),e),...a})}function Ar({children:e,className:t,uppercase:n,...r}){return v.jsx("span",{className:De("px-1",n&&"uppercase",t),...r,children:e})}function io({children:e,className:t,weight:n="fill",color:r="currentcolor"}){return v.jsx(yr,{className:De("size-5 shrink-0",t),weight:n,color:r,children:e})}function ci({className:e,...t}){return v.jsx("div",{className:De("flex flex-row flex-wrap gap-1",e),...t})}function oo({asChild:e,className:t,...n}){const r=e?yr:"div";return v.jsx(r,{className:De("flex flex-col border-accent border-y-[0.5px]",t),...n})}function ni({asChild:e,className:t,...n}){const r=e?yr:"div";return v.jsx(r,{className:De("flex flex-row items-start gap-x-8 border-accent border-b-[0.5px] py-3 outline-none last:border-b-0","[a&]:hover:bg-accent-subtle/50 [a&]:focus-visible:bg-accent-subtle/50",t),...n})}function qa({className:e,...t}){return v.jsx("div",{className:De("flex grow flex-col gap-y-0.5 py-0.5 *:max-w-[56ch]",e),...t})}function wa({className:e,...t}){return v.jsx("span",{className:De("font-medium text-[14px] leading-5 tracking-[0.01em]",e),...t})}function X0({className:e,...t}){return v.jsx("span",{className:De("line-clamp-1 text-[13px] text-fg-subtle leading-5 tracking-[0.01em]",e),...t})}function fw({transport:e,...t}){switch(e.type){case"http":return v.jsx(pZ,{transport:e,...t});case"stdio":return v.jsx(mZ,{transport:e,...t});case"mem":return v.jsx("div",{children:"In Memory Special Case"});default:gZ()}}function mZ({transport:e,...t}){if(e.type!=="stdio")return null;const n=e.args??[],r=e.env??[];return v.jsxs(oo,{...t,children:[v.jsxs(ni,{children:[v.jsx(qa,{children:v.jsx(wa,{children:"Type"})}),v.jsxs(vr,{className:"ml-auto",children:[v.jsx(io,{children:v.jsx(fA,{})}),v.jsx(Ar,{children:"STDIO"})]})]}),v.jsxs(ni,{children:[v.jsx(qa,{children:v.jsx(wa,{children:"Command"})}),v.jsx(vr,{className:"ml-auto",children:v.jsx(Ar,{children:e.command})})]}),n.length>0&&v.jsxs(ni,{children:[v.jsx(qa,{children:v.jsx(wa,{children:"Arguments"})}),v.jsx(ci,{className:"ml-auto justify-end",children:n.map(a=>v.jsx(vr,{children:v.jsx(Ar,{children:a})},a))})]}),Object.keys(r).length>0&&v.jsxs(ni,{children:[v.jsx(qa,{children:v.jsx(wa,{children:"Environment"})}),v.jsx(ci,{className:"ml-auto justify-end",children:Object.entries(r).map(([a,i])=>v.jsx(vr,{children:v.jsx(Ar,{children:`${a}=${i}`})},a))})]})]})}function pZ({transport:e,...t}){return e.type!=="http"?null:v.jsxs(oo,{...t,children:[v.jsxs(ni,{children:[v.jsx(qa,{children:v.jsx(wa,{children:"Type"})}),v.jsxs(vr,{className:"ml-auto",children:[v.jsx(io,{children:v.jsx(aA,{})}),v.jsx(Ar,{children:e.type})]})]}),v.jsxs(ni,{children:[v.jsx(qa,{children:v.jsx(wa,{children:"URL"})}),v.jsx(X0,{className:"ml-auto",children:e.url})]})]})}function gZ(e){throw new Error("Didn't expect to get here")}function Ns({children:e,className:t,asChild:n,...r}){const a=n?yr:"div";return v.jsx(a,{className:De("flex flex-col items-center justify-center gap-y-1 rounded-xl bg-accent-subtle px-4 py-6 text-center text-fg",t),...r,children:e})}function vi({children:e,className:t,...n}){return v.jsx("h3",{className:De(pi({variant:"h3"}),t),...n,children:e})}function ju({children:e,className:t,...n}){return v.jsx("p",{className:De("text-[13px] text-fg-subtle",t),...n,children:e})}function vZ({parameters:e,...t}){return e.length===0?v.jsxs(Ns,{children:[v.jsx(vi,{children:"No parameters"}),v.jsx(ju,{children:"This MCP server does not have any parameters."})]}):v.jsx(oo,{...t,children:e.filter((n,r,a)=>a.findIndex(i=>i.name===n.name)===r).map(n=>v.jsxs(ni,{children:[v.jsxs(qa,{children:[v.jsx(wa,{className:"font-mono",children:n.name}),n.description&&v.jsx(X0,{children:n.description})]}),v.jsxs(ci,{children:[n.required&&v.jsxs(vr,{variant:"destructive",children:[v.jsx(io,{children:v.jsx(YT,{weight:"bold"})}),v.jsx(Ar,{uppercase:!0,children:"Required"})]}),n.type==="string"&&v.jsxs(vr,{children:[v.jsx(io,{children:v.jsx(hA,{})}),v.jsx(Ar,{uppercase:!0,children:"String"})]})]})]},n.name))})}const s_="░▒▓█",i_=e=>e.split("").map(t=>s_[Math.floor(Math.random()*s_.length)]).join(""),$a=({text:e,scrambleSpeed:t=250,className:n,...r})=>{const[a,i]=p.useState(i_(e));return p.useEffect(()=>{let l;return l=setInterval(()=>{i(i_(e))},t),()=>{l&&clearInterval(l)}},[e,t]),v.jsxs("span",{className:De("inline-block whitespace-pre-wrap",n),...r,children:[v.jsx("span",{className:"sr-only",children:e}),v.jsx("span",{"aria-hidden":"true",suppressHydrationWarning:!0,children:a})]})};function yZ(){return v.jsxs(ni,{children:[v.jsxs(qa,{children:[v.jsx(wa,{children:v.jsx($a,{text:"Loading title"})}),v.jsx(X0,{children:v.jsx($a,{text:"Loading subtitle"})})]}),v.jsx(ci,{children:v.jsx(vr,{children:v.jsx(Ar,{children:v.jsx($a,{text:"Loading badge"})})})})]})}function bZ({link:e}){return v.jsxs(ni,{onClick:e.onClick,className:e.onClick?"cursor-pointer hover:bg-accent-subtle/50 focus-visible:bg-accent-subtle/50":void 0,children:[v.jsxs(qa,{children:[v.jsx(wa,{children:e.title}),e.subtitle&&v.jsx(X0,{children:e.subtitle})]}),e.badges&&v.jsx(ci,{className:"ml-auto",children:e.badges})]})}function to({links:e,isLoading:t,className:n}){return t?v.jsx("div",{className:"flex flex-col border-accent border-y-[0.5px] opacity-50",children:new Array(3).fill(0).map((r,a)=>v.jsx(yZ,{},`loading-${a}`))}):e.length===0?v.jsxs(Ns,{children:[v.jsx(vi,{children:"No items"}),v.jsx(ju,{children:"This list is empty."})]}):v.jsx(oo,{className:n,children:e.map(r=>v.jsx(bZ,{link:r},`li-${r.title}`))})}function EZ({links:e}){return v.jsx(to,{isLoading:!1,links:e})}function o_(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const l=n.slice(a,r).trim();(l||!i)&&t.push(l),a=r+1,r=n.indexOf(",",a)}return t}function hw(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const xZ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_Z=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,TZ={};function l_(e,t){return(TZ.jsx?_Z:xZ).test(e)}const AZ=/[ \t\n\f\r]/g;function SZ(e){return typeof e=="object"?e.type==="text"?u_(e.value):!1:u_(e)}function u_(e){return e.replace(AZ,"")===""}let W0=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};W0.prototype.normal={};W0.prototype.property={};W0.prototype.space=void 0;function mw(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new W0(n,r,t)}function C0(e){return e.toLowerCase()}let Yr=class{constructor(t,n){this.attribute=n,this.property=t}};Yr.prototype.attribute="";Yr.prototype.booleanish=!1;Yr.prototype.boolean=!1;Yr.prototype.commaOrSpaceSeparated=!1;Yr.prototype.commaSeparated=!1;Yr.prototype.defined=!1;Yr.prototype.mustUseProperty=!1;Yr.prototype.number=!1;Yr.prototype.overloadedBoolean=!1;Yr.prototype.property="";Yr.prototype.spaceSeparated=!1;Yr.prototype.space=void 0;let wZ=0;const St=il(),Gn=il(),O8=il(),He=il(),pn=il(),hu=il(),ia=il();function il(){return 2**++wZ}const N8=Object.freeze(Object.defineProperty({__proto__:null,boolean:St,booleanish:Gn,commaOrSpaceSeparated:ia,commaSeparated:hu,number:He,overloadedBoolean:O8,spaceSeparated:pn},Symbol.toStringTag,{value:"Module"})),N2=Object.keys(N8);let qv=class extends Yr{constructor(t,n,r,a){let i=-1;if(super(t,n),c_(this,"space",a),typeof r=="number")for(;++i<N2.length;){const l=N2[i];c_(this,N2[i],(r&N8[l])===N8[l])}}};qv.prototype.defined=!0;function c_(e,t,n){n&&(e[t]=n)}function Hu(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new qv(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[C0(r)]=r,n[C0(i.attribute)]=r}return new W0(t,n,e.space)}const pw=Hu({properties:{ariaActiveDescendant:null,ariaAtomic:Gn,ariaAutoComplete:null,ariaBusy:Gn,ariaChecked:Gn,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:pn,ariaCurrent:null,ariaDescribedBy:pn,ariaDetails:null,ariaDisabled:Gn,ariaDropEffect:pn,ariaErrorMessage:null,ariaExpanded:Gn,ariaFlowTo:pn,ariaGrabbed:Gn,ariaHasPopup:null,ariaHidden:Gn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:pn,ariaLevel:He,ariaLive:null,ariaModal:Gn,ariaMultiLine:Gn,ariaMultiSelectable:Gn,ariaOrientation:null,ariaOwns:pn,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:Gn,ariaReadOnly:Gn,ariaRelevant:null,ariaRequired:Gn,ariaRoleDescription:pn,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:Gn,ariaSetSize:He,ariaSort:null,ariaValueMax:He,ariaValueMin:He,ariaValueNow:He,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function gw(e,t){return t in e?e[t]:t}function vw(e,t){return gw(e,t.toLowerCase())}const CZ=Hu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hu,acceptCharset:pn,accessKey:pn,action:null,allow:null,allowFullScreen:St,allowPaymentRequest:St,allowUserMedia:St,alt:null,as:null,async:St,autoCapitalize:null,autoComplete:pn,autoFocus:St,autoPlay:St,blocking:pn,capture:null,charSet:null,checked:St,cite:null,className:pn,cols:He,colSpan:null,content:null,contentEditable:Gn,controls:St,controlsList:pn,coords:He|hu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:St,defer:St,dir:null,dirName:null,disabled:St,download:O8,draggable:Gn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:St,formTarget:null,headers:pn,height:He,hidden:O8,high:He,href:null,hrefLang:null,htmlFor:pn,httpEquiv:pn,id:null,imageSizes:null,imageSrcSet:null,inert:St,inputMode:null,integrity:null,is:null,isMap:St,itemId:null,itemProp:pn,itemRef:pn,itemScope:St,itemType:pn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:St,low:He,manifest:null,max:null,maxLength:He,media:null,method:null,min:null,minLength:He,multiple:St,muted:St,name:null,nonce:null,noModule:St,noValidate:St,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:St,optimum:He,pattern:null,ping:pn,placeholder:null,playsInline:St,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:St,referrerPolicy:null,rel:pn,required:St,reversed:St,rows:He,rowSpan:He,sandbox:pn,scope:null,scoped:St,seamless:St,selected:St,shadowRootClonable:St,shadowRootDelegatesFocus:St,shadowRootMode:null,shape:null,size:He,sizes:null,slot:null,span:He,spellCheck:Gn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:He,step:null,style:null,tabIndex:He,target:null,title:null,translate:null,type:null,typeMustMatch:St,useMap:null,value:Gn,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:pn,axis:null,background:null,bgColor:null,border:He,borderColor:null,bottomMargin:He,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:St,declare:St,event:null,face:null,frame:null,frameBorder:null,hSpace:He,leftMargin:He,link:null,longDesc:null,lowSrc:null,marginHeight:He,marginWidth:He,noResize:St,noHref:St,noShade:St,noWrap:St,object:null,profile:null,prompt:null,rev:null,rightMargin:He,rules:null,scheme:null,scrolling:Gn,standby:null,summary:null,text:null,topMargin:He,valueType:null,version:null,vAlign:null,vLink:null,vSpace:He,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:St,disableRemotePlayback:St,prefix:null,property:null,results:He,security:null,unselectable:null},space:"html",transform:vw}),RZ=Hu({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ia,accentHeight:He,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:He,amplitude:He,arabicForm:null,ascent:He,attributeName:null,attributeType:null,azimuth:He,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:He,by:null,calcMode:null,capHeight:He,className:pn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:He,diffuseConstant:He,direction:null,display:null,dur:null,divisor:He,dominantBaseline:null,download:St,dx:null,dy:null,edgeMode:null,editable:null,elevation:He,enableBackground:null,end:null,event:null,exponent:He,externalResourcesRequired:null,fill:null,fillOpacity:He,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hu,g2:hu,glyphName:hu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:He,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:He,horizOriginX:He,horizOriginY:He,id:null,ideographic:He,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:He,k:He,k1:He,k2:He,k3:He,k4:He,kernelMatrix:ia,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:He,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:He,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:He,overlineThickness:He,paintOrder:null,panose1:null,path:null,pathLength:He,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:pn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ia,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ia,rev:ia,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ia,requiredFeatures:ia,requiredFonts:ia,requiredFormats:ia,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:He,specularExponent:He,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:He,strikethroughThickness:He,string:null,stroke:null,strokeDashArray:ia,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:He,strokeOpacity:He,strokeWidth:null,style:null,surfaceScale:He,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ia,tabIndex:He,tableValues:null,target:null,targetX:He,targetY:He,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ia,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:He,underlineThickness:He,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:He,values:null,vAlphabetic:He,vMathematical:He,vectorEffect:null,vHanging:He,vIdeographic:He,version:null,vertAdvY:He,vertOriginX:He,vertOriginY:He,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:He,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:gw}),yw=Hu({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bw=Hu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vw}),Ew=Hu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),OZ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},NZ=/[A-Z]/g,d_=/-[a-z]/g,kZ=/^data[-\w.:]+$/i;function $v(e,t){const n=C0(t);let r=t,a=Yr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&kZ.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(d_,DZ);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!d_.test(i)){let l=i.replace(NZ,PZ);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=qv}return new a(r,t)}function PZ(e){return"-"+e.toLowerCase()}function DZ(e){return e.charAt(1).toUpperCase()}const bh=mw([pw,CZ,yw,bw,Ew],"html"),Fu=mw([pw,RZ,yw,bw,Ew],"svg");function f_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function xw(e){return e.join(" ").trim()}var Xl={},k2,h_;function LZ(){if(h_)return k2;h_=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,d=`
|
|
119
|
+
`,h="/",g="*",m="",E="comment",b="declaration";k2=function(A,S){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];S=S||{};var w=1,R=1;function P(Q){var Y=Q.match(t);Y&&(w+=Y.length);var te=Q.lastIndexOf(d);R=~te?Q.length-te:R+Q.length}function M(){var Q={line:w,column:R};return function(Y){return Y.position=new I(Q),D(),Y}}function I(Q){this.start=Q,this.end={line:w,column:R},this.source=S.source}I.prototype.content=A;function N(Q){var Y=new Error(S.source+":"+w+":"+R+": "+Q);if(Y.reason=Q,Y.filename=S.source,Y.line=w,Y.column=R,Y.source=A,!S.silent)throw Y}function L(Q){var Y=Q.exec(A);if(Y){var te=Y[0];return P(te),A=A.slice(te.length),Y}}function D(){L(n)}function B(Q){var Y;for(Q=Q||[];Y=k();)Y!==!1&&Q.push(Y);return Q}function k(){var Q=M();if(!(h!=A.charAt(0)||g!=A.charAt(1))){for(var Y=2;m!=A.charAt(Y)&&(g!=A.charAt(Y)||h!=A.charAt(Y+1));)++Y;if(Y+=2,m===A.charAt(Y-1))return N("End of comment missing");var te=A.slice(2,Y-2);return R+=2,P(te),A=A.slice(Y),R+=2,Q({type:E,comment:te})}}function U(){var Q=M(),Y=L(r);if(Y){if(k(),!L(a))return N("property missing ':'");var te=L(i),V=Q({type:b,property:T(Y[0].replace(e,m)),value:te?T(te[0].replace(e,m)):m});return L(l),V}}function F(){var Q=[];B(Q);for(var Y;Y=U();)Y!==!1&&(Q.push(Y),B(Q));return Q}return D(),F()};function T(A){return A?A.replace(u,m):m}return k2}var m_;function MZ(){if(m_)return Xl;m_=1;var e=Xl&&Xl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.default=n;var t=e(LZ());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var l=(0,t.default)(r),u=typeof a=="function";return l.forEach(function(d){if(d.type==="declaration"){var h=d.property,g=d.value;u?a(h,g,d):g&&(i=i||{},i[h]=g)}}),i}return Xl}var qc={},p_;function IZ(){if(p_)return qc;p_=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(h){return!h||n.test(h)||e.test(h)},l=function(h,g){return g.toUpperCase()},u=function(h,g){return"".concat(g,"-")},d=function(h,g){return g===void 0&&(g={}),i(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(a,u):h=h.replace(r,u),h.replace(t,l))};return qc.camelCase=d,qc}var $c,g_;function jZ(){if(g_)return $c;g_=1;var e=$c&&$c.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(MZ()),n=IZ();function r(a,i){var l={};return!a||typeof a!="string"||(0,t.default)(a,function(u,d){u&&d&&(l[(0,n.camelCase)(u,i)]=d)}),l}return r.default=r,$c=r,$c}var HZ=jZ();const FZ=Cu(HZ),Eh=_w("end"),ks=_w("start");function _w(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function UZ(e){const t=ks(e),n=Eh(e);if(t&&n)return{start:t,end:n}}function l0(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?v_(e.position):"start"in e||"end"in e?v_(e):"line"in e||"column"in e?k8(e):""}function k8(e){return y_(e&&e.line)+":"+y_(e&&e.column)}function v_(e){return k8(e&&e.start)+"-"+k8(e&&e.end)}function y_(e){return e&&typeof e=="number"?e:1}class wr extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(l=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?i.ruleId=r:(i.source=r.slice(0,d),i.ruleId=r.slice(d+1))}if(!i.place&&i.ancestors&&i.ancestors){const d=i.ancestors[i.ancestors.length-1];d&&(i.place=d.position)}const u=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=u?u.line:void 0,this.name=l0(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}wr.prototype.file="";wr.prototype.name="";wr.prototype.reason="";wr.prototype.message="";wr.prototype.stack="";wr.prototype.column=void 0;wr.prototype.line=void 0;wr.prototype.ancestors=void 0;wr.prototype.cause=void 0;wr.prototype.fatal=void 0;wr.prototype.place=void 0;wr.prototype.ruleId=void 0;wr.prototype.source=void 0;const Qv={}.hasOwnProperty,BZ=new Map,VZ=/[A-Z]/g,zZ=new Set(["table","tbody","thead","tfoot","tr"]),ZZ=new Set(["td","th"]),Tw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qZ(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=JZ(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=WZ(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fu:bh,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Aw(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Aw(e,t,n){if(t.type==="element")return $Z(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return QZ(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return GZ(e,t,n);if(t.type==="mdxjsEsm")return YZ(e,t);if(t.type==="root")return KZ(e,t,n);if(t.type==="text")return XZ(e,t)}function $Z(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Fu,e.schema=a),e.ancestors.push(t);const i=ww(e,t.tagName,!1),l=eq(e,t);let u=Gv(e,t);return zZ.has(t.tagName)&&(u=u.filter(function(d){return typeof d=="string"?!SZ(d):!0})),Sw(e,l,i,t),Yv(l,u),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function QZ(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}R0(e,t.position)}function YZ(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);R0(e,t.position)}function GZ(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Fu,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:ww(e,t.name,!0),l=tq(e,t),u=Gv(e,t);return Sw(e,l,i,t),Yv(l,u),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function KZ(e,t,n){const r={};return Yv(r,Gv(e,t)),e.create(t,e.Fragment,r,n)}function XZ(e,t){return t.value}function Sw(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Yv(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function WZ(e,t,n){return r;function r(a,i,l,u){const h=Array.isArray(l.children)?n:t;return u?h(i,l,u):h(i,l)}}function JZ(e,t){return n;function n(r,a,i,l){const u=Array.isArray(i.children),d=ks(r);return t(a,i,l,u,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function eq(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Qv.call(t.properties,a)){const i=nq(e,a,t.properties[a]);if(i){const[l,u]=i;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&ZZ.has(t.tagName)?r=u:n[l]=u}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function tq(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const l=i.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else R0(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,i=e.evaluater.evaluateExpression(u.expression)}else R0(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Gv(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:BZ;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const d=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(d){const h=a.get(d)||0;l=d+"-"+h,a.set(d,h+1)}}const u=Aw(e,i,l);u!==void 0&&n.push(u)}return n}function nq(e,t,n){const r=$v(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?hw(n):xw(n)),r.property==="style"){let a=typeof n=="object"?n:rq(e,String(n));return e.stylePropertyNameCase==="css"&&(a=aq(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?OZ[r.property]||r.property:r.attribute,n]}}function rq(e,t){try{return FZ(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new wr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Tw+"#cannot-parse-style-attribute",a}}function ww(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,l;for(;++i<a.length;){const u=l_(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(i&&u.type==="Literal"),optional:!1}:u}r=l}else r=l_(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Qv.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);R0(e)}function R0(e,t){const n=new wr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Tw+"#cannot-handle-mdx-estrees-without-createevaluater",n}function aq(e){const t={};let n;for(n in e)Qv.call(e,n)&&(t[sq(n)]=e[n]);return t}function sq(e){let t=e.replace(VZ,iq);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function iq(e){return"-"+e.toLowerCase()}const P2={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},oq={};function Kv(e,t){const n=oq,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Cw(e,r,a)}function Cw(e,t,n){if(lq(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return b_(e.children,t,n)}return Array.isArray(e)?b_(e,t,n):""}function b_(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Cw(e[a],t,n);return r.join("")}function lq(e){return!!(e&&typeof e=="object")}const E_=document.createElement("i");function Xv(e){const t="&"+e+";";E_.innerHTML=t;const n=E_.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function fa(e,t,n,r){const a=e.length;let i=0,l;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);i<r.length;)l=r.slice(i,i+1e4),l.unshift(t,0),e.splice(...l),i+=1e4,t+=1e4}function Ta(e,t){return e.length>0?(fa(e,e.length,0,t),e):t}const x_={}.hasOwnProperty;function Rw(e){const t={};let n=-1;for(;++n<e.length;)uq(t,e[n]);return t}function uq(e,t){let n;for(n in t){const a=(x_.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let l;if(i)for(l in i){x_.call(a,l)||(a[l]=[]);const u=i[l];cq(a[l],Array.isArray(u)?u:u?[u]:[])}}}function cq(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);fa(e,0,0,r)}function Ow(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dr=fo(/[A-Za-z]/),Sr=fo(/[\dA-Za-z]/),dq=fo(/[#-'*+\--9=?A-Z^-~]/);function h1(e){return e!==null&&(e<32||e===127)}const P8=fo(/\d/),fq=fo(/[\dA-Fa-f]/),hq=fo(/[!-/:-@[-`{-~]/);function lt(e){return e!==null&&e<-2}function fn(e){return e!==null&&(e<0||e===32)}function Lt(e){return e===-2||e===-1||e===32}const xh=fo(new RegExp("\\p{P}|\\p{S}","u")),Qo=fo(/\s/);function fo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Uu(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&Sr(e.charCodeAt(n+1))&&Sr(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const u=e.charCodeAt(n+1);i<56320&&u>56319&&u<57344?(l=String.fromCharCode(i,u),a=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+a+1,l=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Ut(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(d){return Lt(d)?(e.enter(n),u(d)):t(d)}function u(d){return Lt(d)&&i++<a?(e.consume(d),u):(e.exit(n),t(d))}}const mq={tokenize:pq};function pq(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ut(e,t,"linePrefix")}function a(u){return e.enter("paragraph"),i(u)}function i(u){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return lt(u)?(e.consume(u),e.exit("chunkText"),i):(e.consume(u),l)}}const gq={tokenize:vq},__={tokenize:yq};function vq(e){const t=this,n=[];let r=0,a,i,l;return u;function u(P){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,d,h)(P)}return h(P)}function d(P){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&R();const M=t.events.length;let I=M,N;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){N=t.events[I][1].end;break}w(r);let L=M;for(;L<t.events.length;)t.events[L][1].end={...N},L++;return fa(t.events,I+1,0,t.events.slice(M)),t.events.length=L,h(P)}return u(P)}function h(P){if(r===n.length){if(!a)return E(P);if(a.currentConstruct&&a.currentConstruct.concrete)return T(P);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(__,g,m)(P)}function g(P){return a&&R(),w(r),E(P)}function m(P){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,T(P)}function E(P){return t.containerState={},e.attempt(__,b,T)(P)}function b(P){return r++,n.push([t.currentConstruct,t.containerState]),E(P)}function T(P){if(P===null){a&&R(),w(0),e.consume(P);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),A(P)}function A(P){if(P===null){S(e.exit("chunkFlow"),!0),w(0),e.consume(P);return}return lt(P)?(e.consume(P),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(P),A)}function S(P,M){const I=t.sliceStream(P);if(M&&I.push(null),P.previous=i,i&&(i.next=P),i=P,a.defineSkip(P.start),a.write(I),t.parser.lazy[P.start.line]){let N=a.events.length;for(;N--;)if(a.events[N][1].start.offset<l&&(!a.events[N][1].end||a.events[N][1].end.offset>l))return;const L=t.events.length;let D=L,B,k;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(B){k=t.events[D][1].end;break}B=!0}for(w(r),N=L;N<t.events.length;)t.events[N][1].end={...k},N++;fa(t.events,D+1,0,t.events.slice(L)),t.events.length=N}}function w(P){let M=n.length;for(;M-- >P;){const I=n[M];t.containerState=I[1],I[0].exit.call(t,e)}n.length=P}function R(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function yq(e,t,n){return Ut(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Eu(e){if(e===null||fn(e)||Qo(e))return 1;if(xh(e))return 2}function _h(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const D8={name:"attention",resolveAll:bq,tokenize:Eq};function bq(e,t){let n=-1,r,a,i,l,u,d,h,g;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[r][1].end},E={...e[n][1].start};T_(m,-d),T_(E,d),l={type:d>1?"strongSequence":"emphasisSequence",start:m,end:{...e[r][1].end}},u={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:E},i={type:d>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:d>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},e[r][1].end={...l.start},e[n][1].start={...u.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Ta(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=Ta(h,[["enter",a,t],["enter",l,t],["exit",l,t],["enter",i,t]]),h=Ta(h,_h(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=Ta(h,[["exit",i,t],["enter",u,t],["exit",u,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(g=2,h=Ta(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):g=0,fa(e,r-1,n-r+3,h),n=r+h.length-g-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Eq(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Eu(r);let i;return l;function l(d){return i=d,e.enter("attentionSequence"),u(d)}function u(d){if(d===i)return e.consume(d),u;const h=e.exit("attentionSequence"),g=Eu(d),m=!g||g===2&&a||n.includes(d),E=!a||a===2&&g||n.includes(r);return h._open=!!(i===42?m:m&&(a||!E)),h._close=!!(i===42?E:E&&(g||!m)),t(d)}}function T_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const xq={name:"autolink",tokenize:_q};function _q(e,t,n){let r=0;return a;function a(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(b){return Dr(b)?(e.consume(b),l):b===64?n(b):h(b)}function l(b){return b===43||b===45||b===46||Sr(b)?(r=1,u(b)):h(b)}function u(b){return b===58?(e.consume(b),r=0,d):(b===43||b===45||b===46||Sr(b))&&r++<32?(e.consume(b),u):(r=0,h(b))}function d(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||h1(b)?n(b):(e.consume(b),d)}function h(b){return b===64?(e.consume(b),g):dq(b)?(e.consume(b),h):n(b)}function g(b){return Sr(b)?m(b):n(b)}function m(b){return b===46?(e.consume(b),r=0,g):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):E(b)}function E(b){if((b===45||Sr(b))&&r++<63){const T=b===45?E:m;return e.consume(b),T}return n(b)}}const J0={partial:!0,tokenize:Tq};function Tq(e,t,n){return r;function r(i){return Lt(i)?Ut(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||lt(i)?t(i):n(i)}}const Nw={continuation:{tokenize:Sq},exit:wq,name:"blockQuote",tokenize:Aq};function Aq(e,t,n){const r=this;return a;function a(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),i}return n(l)}function i(l){return Lt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Sq(e,t,n){const r=this;return a;function a(l){return Lt(l)?Ut(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(Nw,t,n)(l)}}function wq(e){e.exit("blockQuote")}const kw={name:"characterEscape",tokenize:Cq};function Cq(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return hq(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Pw={name:"characterReference",tokenize:Rq};function Rq(e,t,n){const r=this;let a=0,i,l;return u;function u(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),d}function d(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),i=31,l=Sr,g(m))}function h(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,l=fq,g):(e.enter("characterReferenceValue"),i=7,l=P8,g(m))}function g(m){if(m===59&&a){const E=e.exit("characterReferenceValue");return l===Sr&&!Xv(r.sliceSerialize(E))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(m)&&a++<i?(e.consume(m),g):n(m)}}const A_={partial:!0,tokenize:Nq},S_={concrete:!0,name:"codeFenced",tokenize:Oq};function Oq(e,t,n){const r=this,a={partial:!0,tokenize:I};let i=0,l=0,u;return d;function d(N){return h(N)}function h(N){const L=r.events[r.events.length-1];return i=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,u=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(N)}function g(N){return N===u?(l++,e.consume(N),g):l<3?n(N):(e.exit("codeFencedFenceSequence"),Lt(N)?Ut(e,m,"whitespace")(N):m(N))}function m(N){return N===null||lt(N)?(e.exit("codeFencedFence"),r.interrupt?t(N):e.check(A_,A,M)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),E(N))}function E(N){return N===null||lt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(N)):Lt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ut(e,b,"whitespace")(N)):N===96&&N===u?n(N):(e.consume(N),E)}function b(N){return N===null||lt(N)?m(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),T(N))}function T(N){return N===null||lt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(N)):N===96&&N===u?n(N):(e.consume(N),T)}function A(N){return e.attempt(a,M,S)(N)}function S(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),w}function w(N){return i>0&&Lt(N)?Ut(e,R,"linePrefix",i+1)(N):R(N)}function R(N){return N===null||lt(N)?e.check(A_,A,M)(N):(e.enter("codeFlowValue"),P(N))}function P(N){return N===null||lt(N)?(e.exit("codeFlowValue"),R(N)):(e.consume(N),P)}function M(N){return e.exit("codeFenced"),t(N)}function I(N,L,D){let B=0;return k;function k(te){return N.enter("lineEnding"),N.consume(te),N.exit("lineEnding"),U}function U(te){return N.enter("codeFencedFence"),Lt(te)?Ut(N,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(te):F(te)}function F(te){return te===u?(N.enter("codeFencedFenceSequence"),Q(te)):D(te)}function Q(te){return te===u?(B++,N.consume(te),Q):B>=l?(N.exit("codeFencedFenceSequence"),Lt(te)?Ut(N,Y,"whitespace")(te):Y(te)):D(te)}function Y(te){return te===null||lt(te)?(N.exit("codeFencedFence"),L(te)):D(te)}}}function Nq(e,t,n){const r=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const D2={name:"codeIndented",tokenize:Pq},kq={partial:!0,tokenize:Dq};function Pq(e,t,n){const r=this;return a;function a(h){return e.enter("codeIndented"),Ut(e,i,"linePrefix",5)(h)}function i(h){const g=r.events[r.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?d(h):lt(h)?e.attempt(kq,l,d)(h):(e.enter("codeFlowValue"),u(h))}function u(h){return h===null||lt(h)?(e.exit("codeFlowValue"),l(h)):(e.consume(h),u)}function d(h){return e.exit("codeIndented"),t(h)}}function Dq(e,t,n){const r=this;return a;function a(l){return r.parser.lazy[r.now().line]?n(l):lt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):Ut(e,i,"linePrefix",5)(l)}function i(l){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):lt(l)?a(l):n(l)}}const Lq={name:"codeText",previous:Iq,resolve:Mq,tokenize:jq};function Mq(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function Iq(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function jq(e,t,n){let r=0,a,i;return l;function l(m){return e.enter("codeText"),e.enter("codeTextSequence"),u(m)}function u(m){return m===96?(e.consume(m),r++,u):(e.exit("codeTextSequence"),d(m))}function d(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),d):m===96?(i=e.enter("codeTextSequence"),a=0,g(m)):lt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(m))}function h(m){return m===null||m===32||m===96||lt(m)?(e.exit("codeTextData"),d(m)):(e.consume(m),h)}function g(m){return m===96?(e.consume(m),a++,g):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(i.type="codeTextData",h(m))}}class Hq{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Qc(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Qc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Qc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Qc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Qc(this.left,n.reverse())}}}function Qc(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Dw(e){const t={};let n=-1,r,a,i,l,u,d,h;const g=new Hq(e);for(;++n<g.length;){for(;n in t;)n=t[n];if(r=g.get(n),n&&r[1].type==="chunkFlow"&&g.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,i=0,i<d.length&&d[i][1].type==="lineEndingBlank"&&(i+=2),i<d.length&&d[i][1].type==="content"))for(;++i<d.length&&d[i][1].type!=="content";)d[i][1].type==="chunkText"&&(d[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Fq(g,n)),n=t[n],h=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(l=g.get(i),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(a&&(g.get(a)[1].type="lineEndingBlank"),l[1].type="lineEnding",a=i);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;a&&(r[1].end={...g.get(a)[1].start},u=g.slice(a,n),u.unshift(r),g.splice(a,n-a+1,u))}}return fa(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function Fq(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,d=[],h={};let g,m,E=-1,b=n,T=0,A=0;const S=[A];for(;b;){for(;e.get(++a)[1]!==b;);i.push(a),b._tokenizer||(g=r.sliceStream(b),b.next||g.push(null),m&&l.defineSkip(b.start),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(g),b._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),m=b,b=b.next}for(b=n;++E<u.length;)u[E][0]==="exit"&&u[E-1][0]==="enter"&&u[E][1].type===u[E-1][1].type&&u[E][1].start.line!==u[E][1].end.line&&(A=E+1,S.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(l.events=[],b?(b._tokenizer=void 0,b.previous=void 0):S.pop(),E=S.length;E--;){const w=u.slice(S[E],S[E+1]),R=i.pop();d.push([R,R+w.length-1]),e.splice(R,2,w)}for(d.reverse(),E=-1;++E<d.length;)h[T+d[E][0]]=T+d[E][1],T+=d[E][1]-d[E][0]-1;return h}const Uq={resolve:Vq,tokenize:zq},Bq={partial:!0,tokenize:Zq};function Vq(e){return Dw(e),e}function zq(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(u)}function a(u){return u===null?i(u):lt(u)?e.check(Bq,l,i)(u):(e.consume(u),a)}function i(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function Zq(e,t,n){const r=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Ut(e,i,"linePrefix")}function i(l){if(l===null||lt(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Lw(e,t,n,r,a,i,l,u,d){const h=d||Number.POSITIVE_INFINITY;let g=0;return m;function m(w){return w===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(w),e.exit(i),E):w===null||w===32||w===41||h1(w)?n(w):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),A(w))}function E(w){return w===62?(e.enter(i),e.consume(w),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),b(w))}function b(w){return w===62?(e.exit("chunkString"),e.exit(u),E(w)):w===null||w===60||lt(w)?n(w):(e.consume(w),w===92?T:b)}function T(w){return w===60||w===62||w===92?(e.consume(w),b):b(w)}function A(w){return!g&&(w===null||w===41||fn(w))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(w)):g<h&&w===40?(e.consume(w),g++,A):w===41?(e.consume(w),g--,A):w===null||w===32||w===40||h1(w)?n(w):(e.consume(w),w===92?S:A)}function S(w){return w===40||w===41||w===92?(e.consume(w),A):A(w)}}function Mw(e,t,n,r,a,i){const l=this;let u=0,d;return h;function h(b){return e.enter(r),e.enter(a),e.consume(b),e.exit(a),e.enter(i),g}function g(b){return u>999||b===null||b===91||b===93&&!d||b===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(b):b===93?(e.exit(i),e.enter(a),e.consume(b),e.exit(a),e.exit(r),t):lt(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===null||b===91||b===93||lt(b)||u++>999?(e.exit("chunkString"),g(b)):(e.consume(b),d||(d=!Lt(b)),b===92?E:m)}function E(b){return b===91||b===92||b===93?(e.consume(b),u++,m):m(b)}}function Iw(e,t,n,r,a,i){let l;return u;function u(E){return E===34||E===39||E===40?(e.enter(r),e.enter(a),e.consume(E),e.exit(a),l=E===40?41:E,d):n(E)}function d(E){return E===l?(e.enter(a),e.consume(E),e.exit(a),e.exit(r),t):(e.enter(i),h(E))}function h(E){return E===l?(e.exit(i),d(l)):E===null?n(E):lt(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),Ut(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===l||E===null||lt(E)?(e.exit("chunkString"),h(E)):(e.consume(E),E===92?m:g)}function m(E){return E===l||E===92?(e.consume(E),g):g(E)}}function u0(e,t){let n;return r;function r(a){return lt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Lt(a)?Ut(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const qq={name:"definition",tokenize:Qq},$q={partial:!0,tokenize:Yq};function Qq(e,t,n){const r=this;let a;return i;function i(b){return e.enter("definition"),l(b)}function l(b){return Mw.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function u(b){return a=Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):n(b)}function d(b){return fn(b)?u0(e,h)(b):h(b)}function h(b){return Lw(e,g,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function g(b){return e.attempt($q,m,m)(b)}function m(b){return Lt(b)?Ut(e,E,"whitespace")(b):E(b)}function E(b){return b===null||lt(b)?(e.exit("definition"),r.parser.defined.push(a),t(b)):n(b)}}function Yq(e,t,n){return r;function r(u){return fn(u)?u0(e,a)(u):n(u)}function a(u){return Iw(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function i(u){return Lt(u)?Ut(e,l,"whitespace")(u):l(u)}function l(u){return u===null||lt(u)?t(u):n(u)}}const Gq={name:"hardBreakEscape",tokenize:Kq};function Kq(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return lt(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const Xq={name:"headingAtx",resolve:Wq,tokenize:Jq};function Wq(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},fa(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Jq(e,t,n){let r=0;return a;function a(g){return e.enter("atxHeading"),i(g)}function i(g){return e.enter("atxHeadingSequence"),l(g)}function l(g){return g===35&&r++<6?(e.consume(g),l):g===null||fn(g)?(e.exit("atxHeadingSequence"),u(g)):n(g)}function u(g){return g===35?(e.enter("atxHeadingSequence"),d(g)):g===null||lt(g)?(e.exit("atxHeading"),t(g)):Lt(g)?Ut(e,u,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function d(g){return g===35?(e.consume(g),d):(e.exit("atxHeadingSequence"),u(g))}function h(g){return g===null||g===35||fn(g)?(e.exit("atxHeadingText"),u(g)):(e.consume(g),h)}}const e$=["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"],w_=["pre","script","style","textarea"],t$={concrete:!0,name:"htmlFlow",resolveTo:a$,tokenize:s$},n$={partial:!0,tokenize:o$},r$={partial:!0,tokenize:i$};function a$(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function s$(e,t,n){const r=this;let a,i,l,u,d;return h;function h(j){return g(j)}function g(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),m}function m(j){return j===33?(e.consume(j),E):j===47?(e.consume(j),i=!0,A):j===63?(e.consume(j),a=3,r.interrupt?t:C):Dr(j)?(e.consume(j),l=String.fromCharCode(j),S):n(j)}function E(j){return j===45?(e.consume(j),a=2,b):j===91?(e.consume(j),a=5,u=0,T):Dr(j)?(e.consume(j),a=4,r.interrupt?t:C):n(j)}function b(j){return j===45?(e.consume(j),r.interrupt?t:C):n(j)}function T(j){const Ee="CDATA[";return j===Ee.charCodeAt(u++)?(e.consume(j),u===Ee.length?r.interrupt?t:F:T):n(j)}function A(j){return Dr(j)?(e.consume(j),l=String.fromCharCode(j),S):n(j)}function S(j){if(j===null||j===47||j===62||fn(j)){const Ee=j===47,ke=l.toLowerCase();return!Ee&&!i&&w_.includes(ke)?(a=1,r.interrupt?t(j):F(j)):e$.includes(l.toLowerCase())?(a=6,Ee?(e.consume(j),w):r.interrupt?t(j):F(j)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(j):i?R(j):P(j))}return j===45||Sr(j)?(e.consume(j),l+=String.fromCharCode(j),S):n(j)}function w(j){return j===62?(e.consume(j),r.interrupt?t:F):n(j)}function R(j){return Lt(j)?(e.consume(j),R):k(j)}function P(j){return j===47?(e.consume(j),k):j===58||j===95||Dr(j)?(e.consume(j),M):Lt(j)?(e.consume(j),P):k(j)}function M(j){return j===45||j===46||j===58||j===95||Sr(j)?(e.consume(j),M):I(j)}function I(j){return j===61?(e.consume(j),N):Lt(j)?(e.consume(j),I):P(j)}function N(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),d=j,L):Lt(j)?(e.consume(j),N):D(j)}function L(j){return j===d?(e.consume(j),d=null,B):j===null||lt(j)?n(j):(e.consume(j),L)}function D(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||fn(j)?I(j):(e.consume(j),D)}function B(j){return j===47||j===62||Lt(j)?P(j):n(j)}function k(j){return j===62?(e.consume(j),U):n(j)}function U(j){return j===null||lt(j)?F(j):Lt(j)?(e.consume(j),U):n(j)}function F(j){return j===45&&a===2?(e.consume(j),V):j===60&&a===1?(e.consume(j),J):j===62&&a===4?(e.consume(j),oe):j===63&&a===3?(e.consume(j),C):j===93&&a===5?(e.consume(j),se):lt(j)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(n$,ge,Q)(j)):j===null||lt(j)?(e.exit("htmlFlowData"),Q(j)):(e.consume(j),F)}function Q(j){return e.check(r$,Y,ge)(j)}function Y(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),te}function te(j){return j===null||lt(j)?Q(j):(e.enter("htmlFlowData"),F(j))}function V(j){return j===45?(e.consume(j),C):F(j)}function J(j){return j===47?(e.consume(j),l="",X):F(j)}function X(j){if(j===62){const Ee=l.toLowerCase();return w_.includes(Ee)?(e.consume(j),oe):F(j)}return Dr(j)&&l.length<8?(e.consume(j),l+=String.fromCharCode(j),X):F(j)}function se(j){return j===93?(e.consume(j),C):F(j)}function C(j){return j===62?(e.consume(j),oe):j===45&&a===2?(e.consume(j),C):F(j)}function oe(j){return j===null||lt(j)?(e.exit("htmlFlowData"),ge(j)):(e.consume(j),oe)}function ge(j){return e.exit("htmlFlow"),t(j)}}function i$(e,t,n){const r=this;return a;function a(l){return lt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function o$(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(J0,t,n)}}const l$={name:"htmlText",tokenize:u$};function u$(e,t,n){const r=this;let a,i,l;return u;function u(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),d}function d(C){return C===33?(e.consume(C),h):C===47?(e.consume(C),I):C===63?(e.consume(C),P):Dr(C)?(e.consume(C),D):n(C)}function h(C){return C===45?(e.consume(C),g):C===91?(e.consume(C),i=0,T):Dr(C)?(e.consume(C),R):n(C)}function g(C){return C===45?(e.consume(C),b):n(C)}function m(C){return C===null?n(C):C===45?(e.consume(C),E):lt(C)?(l=m,J(C)):(e.consume(C),m)}function E(C){return C===45?(e.consume(C),b):m(C)}function b(C){return C===62?V(C):C===45?E(C):m(C)}function T(C){const oe="CDATA[";return C===oe.charCodeAt(i++)?(e.consume(C),i===oe.length?A:T):n(C)}function A(C){return C===null?n(C):C===93?(e.consume(C),S):lt(C)?(l=A,J(C)):(e.consume(C),A)}function S(C){return C===93?(e.consume(C),w):A(C)}function w(C){return C===62?V(C):C===93?(e.consume(C),w):A(C)}function R(C){return C===null||C===62?V(C):lt(C)?(l=R,J(C)):(e.consume(C),R)}function P(C){return C===null?n(C):C===63?(e.consume(C),M):lt(C)?(l=P,J(C)):(e.consume(C),P)}function M(C){return C===62?V(C):P(C)}function I(C){return Dr(C)?(e.consume(C),N):n(C)}function N(C){return C===45||Sr(C)?(e.consume(C),N):L(C)}function L(C){return lt(C)?(l=L,J(C)):Lt(C)?(e.consume(C),L):V(C)}function D(C){return C===45||Sr(C)?(e.consume(C),D):C===47||C===62||fn(C)?B(C):n(C)}function B(C){return C===47?(e.consume(C),V):C===58||C===95||Dr(C)?(e.consume(C),k):lt(C)?(l=B,J(C)):Lt(C)?(e.consume(C),B):V(C)}function k(C){return C===45||C===46||C===58||C===95||Sr(C)?(e.consume(C),k):U(C)}function U(C){return C===61?(e.consume(C),F):lt(C)?(l=U,J(C)):Lt(C)?(e.consume(C),U):B(C)}function F(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),a=C,Q):lt(C)?(l=F,J(C)):Lt(C)?(e.consume(C),F):(e.consume(C),Y)}function Q(C){return C===a?(e.consume(C),a=void 0,te):C===null?n(C):lt(C)?(l=Q,J(C)):(e.consume(C),Q)}function Y(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||fn(C)?B(C):(e.consume(C),Y)}function te(C){return C===47||C===62||fn(C)?B(C):n(C)}function V(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function J(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),X}function X(C){return Lt(C)?Ut(e,se,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):se(C)}function se(C){return e.enter("htmlTextData"),l(C)}}const Wv={name:"labelEnd",resolveAll:h$,resolveTo:m$,tokenize:p$},c$={tokenize:g$},d$={tokenize:v$},f$={tokenize:y$};function h$(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&fa(e,0,e.length,n),e}function m$(e,t){let n=e.length,r=0,a,i,l,u;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(l=n);const d={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[i][1].start},end:{...e[l][1].end}},g={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[l-2][1].start}};return u=[["enter",d,t],["enter",h,t]],u=Ta(u,e.slice(i+1,i+r+3)),u=Ta(u,[["enter",g,t]]),u=Ta(u,_h(t.parser.constructs.insideSpan.null,e.slice(i+r+4,l-3),t)),u=Ta(u,[["exit",g,t],e[l-2],e[l-1],["exit",h,t]]),u=Ta(u,e.slice(l+1)),u=Ta(u,[["exit",d,t]]),fa(e,i,e.length,u),e}function p$(e,t,n){const r=this;let a=r.events.length,i,l;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return u;function u(E){return i?i._inactive?m(E):(l=r.parser.defined.includes(Qa(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(E),e.exit("labelMarker"),e.exit("labelEnd"),d):n(E)}function d(E){return E===40?e.attempt(c$,g,l?g:m)(E):E===91?e.attempt(d$,g,l?h:m)(E):l?g(E):m(E)}function h(E){return e.attempt(f$,g,m)(E)}function g(E){return t(E)}function m(E){return i._balanced=!0,n(E)}}function g$(e,t,n){return r;function r(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),a}function a(m){return fn(m)?u0(e,i)(m):i(m)}function i(m){return m===41?g(m):Lw(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function l(m){return fn(m)?u0(e,d)(m):g(m)}function u(m){return n(m)}function d(m){return m===34||m===39||m===40?Iw(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):g(m)}function h(m){return fn(m)?u0(e,g)(m):g(m)}function g(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function v$(e,t,n){const r=this;return a;function a(u){return Mw.call(r,e,i,l,"reference","referenceMarker","referenceString")(u)}function i(u){return r.parser.defined.includes(Qa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function y$(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const b$={name:"labelStartImage",resolveAll:Wv.resolveAll,tokenize:E$};function E$(e,t,n){const r=this;return a;function a(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),i}function i(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),l):n(u)}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const x$={name:"labelStartLink",resolveAll:Wv.resolveAll,tokenize:_$};function _$(e,t,n){const r=this;return a;function a(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const L2={name:"lineEnding",tokenize:T$};function T$(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Ut(e,t,"linePrefix")}}const $f={name:"thematicBreak",tokenize:A$};function A$(e,t,n){let r=0,a;return i;function i(h){return e.enter("thematicBreak"),l(h)}function l(h){return a=h,u(h)}function u(h){return h===a?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||lt(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===a?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),Lt(h)?Ut(e,u,"whitespace")(h):u(h))}}const zr={continuation:{tokenize:R$},exit:N$,name:"list",tokenize:C$},S$={partial:!0,tokenize:k$},w$={partial:!0,tokenize:O$};function C$(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return u;function u(b){const T=r.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!r.containerState.marker||b===r.containerState.marker:P8(b)){if(r.containerState.type||(r.containerState.type=T,e.enter(T,{_container:!0})),T==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check($f,n,h)(b):h(b);if(!r.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return n(b)}function d(b){return P8(b)&&++l<10?(e.consume(b),d):(!r.interrupt||l<2)&&(r.containerState.marker?b===r.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):n(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||b,e.check(J0,r.interrupt?n:g,e.attempt(S$,E,m))}function g(b){return r.containerState.initialBlankLine=!0,i++,E(b)}function m(b){return Lt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),E):n(b)}function E(b){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function R$(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(J0,a,i);function a(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ut(e,t,"listItemIndent",r.containerState.size+1)(u)}function i(u){return r.containerState.furtherBlankLines||!Lt(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(w$,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ut(e,e.attempt(zr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function O$(e,t,n){const r=this;return Ut(e,a,"listItemIndent",r.containerState.size+1);function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(i):n(i)}}function N$(e){e.exit(this.containerState.type)}function k$(e,t,n){const r=this;return Ut(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const l=r.events[r.events.length-1];return!Lt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const C_={name:"setextUnderline",resolveTo:P$,tokenize:D$};function P$(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",l,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function D$(e,t,n){const r=this;let a;return i;function i(h){let g=r.events.length,m;for(;g--;)if(r.events[g][1].type!=="lineEnding"&&r.events[g][1].type!=="linePrefix"&&r.events[g][1].type!=="content"){m=r.events[g][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||m)?(e.enter("setextHeadingLine"),a=h,l(h)):n(h)}function l(h){return e.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===a?(e.consume(h),u):(e.exit("setextHeadingLineSequence"),Lt(h)?Ut(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||lt(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const L$={tokenize:M$};function M$(e){const t=this,n=e.attempt(J0,r,e.attempt(this.parser.constructs.flowInitial,a,Ut(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Uq,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const I$={resolveAll:Hw()},j$=jw("string"),H$=jw("text");function jw(e){return{resolveAll:Hw(e==="text"?F$:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,l,u);return l;function l(g){return h(g)?i(g):u(g)}function u(g){if(g===null){n.consume(g);return}return n.enter("data"),n.consume(g),d}function d(g){return h(g)?(n.exit("data"),i(g)):(n.consume(g),d)}function h(g){if(g===null)return!0;const m=a[g];let E=-1;if(m)for(;++E<m.length;){const b=m[E];if(!b.previous||b.previous.call(r,r.previous))return!0}return!1}}}function Hw(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function F$(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,l=-1,u=0,d;for(;i--;){const h=a[i];if(typeof h=="string"){for(l=h.length;h.charCodeAt(l-1)===32;)u++,l--;if(l)break;l=-1}else if(h===-2)d=!0,u++;else if(h!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const h={type:n===e.length||d||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const U$={42:zr,43:zr,45:zr,48:zr,49:zr,50:zr,51:zr,52:zr,53:zr,54:zr,55:zr,56:zr,57:zr,62:Nw},B$={91:qq},V$={[-2]:D2,[-1]:D2,32:D2},z$={35:Xq,42:$f,45:[C_,$f],60:t$,61:C_,95:$f,96:S_,126:S_},Z$={38:Pw,92:kw},q$={[-5]:L2,[-4]:L2,[-3]:L2,33:b$,38:Pw,42:D8,60:[xq,l$],91:x$,92:[Gq,kw],93:Wv,95:D8,96:Lq},$$={null:[D8,I$]},Q$={null:[42,95]},Y$={null:[]},G$=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Q$,contentInitial:B$,disable:Y$,document:U$,flow:z$,flowInitial:V$,insideSpan:$$,string:Z$,text:q$},Symbol.toStringTag,{value:"Module"}));function K$(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let l=[],u=[];const d={attempt:L(I),check:L(N),consume:R,enter:P,exit:M,interrupt:L(N,{interrupt:!0})},h={code:null,containerState:{},defineSkip:A,events:[],now:T,parser:e,previous:null,sliceSerialize:E,sliceStream:b,write:m};let g=t.tokenize.call(h,d);return t.resolveAll&&i.push(t),h;function m(U){return l=Ta(l,U),S(),l[l.length-1]!==null?[]:(D(t,0),h.events=_h(i,h.events,h),h.events)}function E(U,F){return W$(b(U),F)}function b(U){return X$(l,U)}function T(){const{_bufferIndex:U,_index:F,line:Q,column:Y,offset:te}=r;return{_bufferIndex:U,_index:F,line:Q,column:Y,offset:te}}function A(U){a[U.line]=U.column,k()}function S(){let U;for(;r._index<l.length;){const F=l[r._index];if(typeof F=="string")for(U=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===U&&r._bufferIndex<F.length;)w(F.charCodeAt(r._bufferIndex));else w(F)}}function w(U){g=g(U)}function R(U){lt(U)?(r.line++,r.column=1,r.offset+=U===-3?2:1,k()):U!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=U}function P(U,F){const Q=F||{};return Q.type=U,Q.start=T(),h.events.push(["enter",Q,h]),u.push(Q),Q}function M(U){const F=u.pop();return F.end=T(),h.events.push(["exit",F,h]),F}function I(U,F){D(U,F.from)}function N(U,F){F.restore()}function L(U,F){return Q;function Q(Y,te,V){let J,X,se,C;return Array.isArray(Y)?ge(Y):"tokenize"in Y?ge([Y]):oe(Y);function oe(Z){return ae;function ae(Te){const Ze=Te!==null&&Z[Te],Ae=Te!==null&&Z.null,Oe=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(Ae)?Ae:Ae?[Ae]:[]];return ge(Oe)(Te)}}function ge(Z){return J=Z,X=0,Z.length===0?V:j(Z[X])}function j(Z){return ae;function ae(Te){return C=B(),se=Z,Z.partial||(h.currentConstruct=Z),Z.name&&h.parser.constructs.disable.null.includes(Z.name)?ke():Z.tokenize.call(F?Object.assign(Object.create(h),F):h,d,Ee,ke)(Te)}}function Ee(Z){return U(se,C),te}function ke(Z){return C.restore(),++X<J.length?j(J[X]):V}}}function D(U,F){U.resolveAll&&!i.includes(U)&&i.push(U),U.resolve&&fa(h.events,F,h.events.length-F,U.resolve(h.events.slice(F),h)),U.resolveTo&&(h.events=U.resolveTo(h.events,h))}function B(){const U=T(),F=h.previous,Q=h.currentConstruct,Y=h.events.length,te=Array.from(u);return{from:Y,restore:V};function V(){r=U,h.previous=F,h.currentConstruct=Q,h.events.length=Y,u=te,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function X$(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let l;if(n===a)l=[e[n].slice(r,i)];else{if(l=e.slice(n,a),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}i>0&&l.push(e[a].slice(0,i))}return l}function W$(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
|
|
120
|
+
`;break}case-3:{l=`\r
|
|
121
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&a)continue;l=" ";break}default:l=String.fromCharCode(i)}a=i===-2,r.push(l)}return r.join("")}function J$(e){const r={constructs:Rw([G$,...(e||{}).extensions||[]]),content:a(mq),defined:[],document:a(gq),flow:a(L$),lazy:{},string:a(j$),text:a(H$)};return r;function a(i){return l;function l(u){return K$(r,i,u)}}}function eQ(e){for(;!Dw(e););return e}const R_=/[\0\t\n\r]/g;function tQ(){let e=1,t="",n=!0,r;return a;function a(i,l,u){const d=[];let h,g,m,E,b;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(l||void 0).decode(i)),m=0,t="",n&&(i.charCodeAt(0)===65279&&m++,n=void 0);m<i.length;){if(R_.lastIndex=m,h=R_.exec(i),E=h&&h.index!==void 0?h.index:i.length,b=i.charCodeAt(E),!h){t=i.slice(m);break}if(b===10&&m===E&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),m<E&&(d.push(i.slice(m,E)),e+=E-m),b){case 0:{d.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,d.push(-2);e++<g;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}m=E+1}return u&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const nQ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rQ(e){return e.replace(nQ,aQ)}function aQ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return Ow(n.slice(i?2:1),i?16:10)}return Xv(n)||e}const Fw={}.hasOwnProperty;function sQ(e,t,n){return typeof t!="string"&&(n=t,t=void 0),iQ(n)(eQ(J$(n).document().write(tQ()(e,t,!0))))}function iQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(bt),autolinkProtocol:B,autolinkEmail:B,atxHeading:i(Ht),blockQuote:i(Ae),characterEscape:B,characterReference:B,codeFenced:i(Oe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(Oe,l),codeText:i(et,l),codeTextData:B,data:B,codeFlowValue:B,definition:i(ct),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(it),hardBreakEscape:i(_t),hardBreakTrailing:i(_t),htmlFlow:i(st,l),htmlFlowData:B,htmlText:i(st,l),htmlTextData:B,image:i(yn),label:l,link:i(bt),listItem:i(ce),listItemValue:E,listOrdered:i(W,m),listUnordered:i(W),paragraph:i(pe),reference:j,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(Ht),strong:i(Ne),thematicBreak:i(je)},exit:{atxHeading:d(),atxHeadingSequence:I,autolink:d(),autolinkEmail:Ze,autolinkProtocol:Te,blockQuote:d(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:Z,characterReference:ae,codeFenced:d(S),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:T,codeFlowValue:k,codeIndented:d(w),codeText:d(te),codeTextData:k,data:k,definition:d(),definitionDestinationString:M,definitionLabelString:R,definitionTitleString:P,emphasis:d(),hardBreakEscape:d(F),hardBreakTrailing:d(F),htmlFlow:d(Q),htmlFlowData:k,htmlText:d(Y),htmlTextData:k,image:d(J),label:se,labelText:X,lineEnding:U,link:d(V),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:Ee,resourceDestinationString:C,resourceTitleString:oe,resource:ge,setextHeading:d(D),setextHeadingLineSequence:L,setextHeadingText:N,strong:d(),thematicBreak:d()}};Uw(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ie){let Se={type:"root",children:[]};const Be={stack:[Se],tokenStack:[],config:t,enter:u,exit:h,buffer:l,resume:g,data:n},qe=[];let pt=-1;for(;++pt<ie.length;)if(ie[pt][1].type==="listOrdered"||ie[pt][1].type==="listUnordered")if(ie[pt][0]==="enter")qe.push(pt);else{const Xt=qe.pop();pt=a(ie,Xt,pt)}for(pt=-1;++pt<ie.length;){const Xt=t[ie[pt][0]];Fw.call(Xt,ie[pt][1].type)&&Xt[ie[pt][1].type].call(Object.assign({sliceSerialize:ie[pt][2].sliceSerialize},Be),ie[pt][1])}if(Be.tokenStack.length>0){const Xt=Be.tokenStack[Be.tokenStack.length-1];(Xt[1]||O_).call(Be,void 0,Xt[0])}for(Se.position={start:zi(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:zi(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},pt=-1;++pt<t.transforms.length;)Se=t.transforms[pt](Se)||Se;return Se}function a(ie,Se,Be){let qe=Se-1,pt=-1,Xt=!1,jn,hn,Wn,qn;for(;++qe<=Be;){const ln=ie[qe];switch(ln[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ln[0]==="enter"?pt++:pt--,qn=void 0;break}case"lineEndingBlank":{ln[0]==="enter"&&(jn&&!qn&&!pt&&!Wn&&(Wn=qe),qn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qn=void 0}if(!pt&&ln[0]==="enter"&&ln[1].type==="listItemPrefix"||pt===-1&&ln[0]==="exit"&&(ln[1].type==="listUnordered"||ln[1].type==="listOrdered")){if(jn){let un=qe;for(hn=void 0;un--;){const $n=ie[un];if($n[1].type==="lineEnding"||$n[1].type==="lineEndingBlank"){if($n[0]==="exit")continue;hn&&(ie[hn][1].type="lineEndingBlank",Xt=!0),$n[1].type="lineEnding",hn=un}else if(!($n[1].type==="linePrefix"||$n[1].type==="blockQuotePrefix"||$n[1].type==="blockQuotePrefixWhitespace"||$n[1].type==="blockQuoteMarker"||$n[1].type==="listItemIndent"))break}Wn&&(!hn||Wn<hn)&&(jn._spread=!0),jn.end=Object.assign({},hn?ie[hn][1].start:ln[1].end),ie.splice(hn||qe,0,["exit",jn,ln[2]]),qe++,Be++}if(ln[1].type==="listItemPrefix"){const un={type:"listItem",_spread:!1,start:Object.assign({},ln[1].start),end:void 0};jn=un,ie.splice(qe,0,["enter",un,ln[2]]),qe++,Be++,Wn=void 0,qn=!0}}}return ie[Se][1]._spread=Xt,Be}function i(ie,Se){return Be;function Be(qe){u.call(this,ie(qe),qe),Se&&Se.call(this,qe)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(ie,Se,Be){this.stack[this.stack.length-1].children.push(ie),this.stack.push(ie),this.tokenStack.push([Se,Be||void 0]),ie.position={start:zi(Se.start),end:void 0}}function d(ie){return Se;function Se(Be){ie&&ie.call(this,Be),h.call(this,Be)}}function h(ie,Se){const Be=this.stack.pop(),qe=this.tokenStack.pop();if(qe)qe[0].type!==ie.type&&(Se?Se.call(this,ie,qe[0]):(qe[1]||O_).call(this,ie,qe[0]));else throw new Error("Cannot close `"+ie.type+"` ("+l0({start:ie.start,end:ie.end})+"): it’s not open");Be.position.end=zi(ie.end)}function g(){return Kv(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function E(ie){if(this.data.expectingFirstListItemValue){const Se=this.stack[this.stack.length-2];Se.start=Number.parseInt(this.sliceSerialize(ie),10),this.data.expectingFirstListItemValue=void 0}}function b(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.lang=ie}function T(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.meta=ie}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie.replace(/(\r?\n|\r)$/g,"")}function R(ie){const Se=this.resume(),Be=this.stack[this.stack.length-1];Be.label=Se,Be.identifier=Qa(this.sliceSerialize(ie)).toLowerCase()}function P(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.title=ie}function M(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.url=ie}function I(ie){const Se=this.stack[this.stack.length-1];if(!Se.depth){const Be=this.sliceSerialize(ie).length;Se.depth=Be}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function L(ie){const Se=this.stack[this.stack.length-1];Se.depth=this.sliceSerialize(ie).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function B(ie){const Be=this.stack[this.stack.length-1].children;let qe=Be[Be.length-1];(!qe||qe.type!=="text")&&(qe=Le(),qe.position={start:zi(ie.start),end:void 0},Be.push(qe)),this.stack.push(qe)}function k(ie){const Se=this.stack.pop();Se.value+=this.sliceSerialize(ie),Se.position.end=zi(ie.end)}function U(ie){const Se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Be=Se.children[Se.children.length-1];Be.position.end=zi(ie.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Se.type)&&(B.call(this,ie),k.call(this,ie))}function F(){this.data.atHardBreak=!0}function Q(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie}function Y(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie}function te(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.value=ie}function V(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=Se,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function J(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const Se=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=Se,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function X(ie){const Se=this.sliceSerialize(ie),Be=this.stack[this.stack.length-2];Be.label=rQ(Se),Be.identifier=Qa(Se).toLowerCase()}function se(){const ie=this.stack[this.stack.length-1],Se=this.resume(),Be=this.stack[this.stack.length-1];if(this.data.inReference=!0,Be.type==="link"){const qe=ie.children;Be.children=qe}else Be.alt=Se}function C(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.url=ie}function oe(){const ie=this.resume(),Se=this.stack[this.stack.length-1];Se.title=ie}function ge(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function Ee(ie){const Se=this.resume(),Be=this.stack[this.stack.length-1];Be.label=Se,Be.identifier=Qa(this.sliceSerialize(ie)).toLowerCase(),this.data.referenceType="full"}function ke(ie){this.data.characterReferenceType=ie.type}function Z(ie){const Se=this.sliceSerialize(ie),Be=this.data.characterReferenceType;let qe;Be?(qe=Ow(Se,Be==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):qe=Xv(Se);const pt=this.stack[this.stack.length-1];pt.value+=qe}function ae(ie){const Se=this.stack.pop();Se.position.end=zi(ie.end)}function Te(ie){k.call(this,ie);const Se=this.stack[this.stack.length-1];Se.url=this.sliceSerialize(ie)}function Ze(ie){k.call(this,ie);const Se=this.stack[this.stack.length-1];Se.url="mailto:"+this.sliceSerialize(ie)}function Ae(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function et(){return{type:"inlineCode",value:""}}function ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function it(){return{type:"emphasis",children:[]}}function Ht(){return{type:"heading",depth:0,children:[]}}function _t(){return{type:"break"}}function st(){return{type:"html",value:""}}function yn(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function W(ie){return{type:"list",ordered:ie.type==="listOrdered",start:null,spread:ie._spread,children:[]}}function ce(ie){return{type:"listItem",spread:ie._spread,checked:null,children:[]}}function pe(){return{type:"paragraph",children:[]}}function Ne(){return{type:"strong",children:[]}}function Le(){return{type:"text",value:""}}function je(){return{type:"thematicBreak"}}}function zi(e){return{line:e.line,column:e.column,offset:e.offset}}function Uw(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Uw(e,r):oQ(e,r)}}function oQ(e,t){let n;for(n in t)if(Fw.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function O_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+l0({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+l0({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+l0({start:t.start,end:t.end})+") is still open")}function lQ(e){const t=this;t.parser=n;function n(r){return sQ(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function uQ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function cQ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
122
|
+
`}]}function dQ(e,t){const n=t.value?t.value+`
|
|
123
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function fQ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hQ(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mQ(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Uu(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,u+=1,e.footnoteCounts.set(r,u);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function pQ(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gQ(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Bw(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=r:a.push({type:"text",value:r}),a}function vQ(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bw(e,t);const a={src:Uu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function yQ(e,t){const n={src:Uu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function bQ(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function EQ(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Bw(e,t);const a={href:Uu(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function xQ(e,t){const n={href:Uu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _Q(e,t,n){const r=e.all(t),a=n?TQ(n):Vw(t),i={},l=[];if(typeof t.checked=="boolean"){const g=r[0];let m;g&&g.type==="element"&&g.tagName==="p"?m=g:(m={type:"element",tagName:"p",properties:{},children:[]},r.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const g=r[u];(a||u!==0||g.type!=="element"||g.tagName!=="p")&&l.push({type:"text",value:`
|
|
124
|
+
`}),g.type==="element"&&g.tagName==="p"&&!a?l.push(...g.children):l.push(g)}const d=r[r.length-1];d&&(a||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
|
|
125
|
+
`});const h={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,h),e.applyData(t,h)}function TQ(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Vw(n[r])}return t}function Vw(e){const t=e.spread;return t??e.children.length>1}function AQ(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const l=r[a];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function SQ(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wQ(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function CQ(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RQ(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),a.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=ks(t.children[1]),d=Eh(t.children[t.children.length-1]);u&&d&&(l.position={start:u,end:d}),a.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function OQ(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,u=l?l.length:t.children.length;let d=-1;const h=[];for(;++d<u;){const m=t.children[d],E={},b=l?l[d]:void 0;b&&(E.align=b);let T={type:"element",tagName:i,properties:E,children:[]};m&&(T.children=e.all(m),e.patch(m,T),T=e.applyData(m,T)),h.push(T)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,g),e.applyData(t,g)}function NQ(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const N_=9,k_=32;function kQ(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(P_(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(P_(t.slice(a),a>0,!1)),i.join("")}function P_(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===N_||i===k_;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===N_||i===k_;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function PQ(e,t){const n={type:"text",value:kQ(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function DQ(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const LQ={blockquote:uQ,break:cQ,code:dQ,delete:fQ,emphasis:hQ,footnoteReference:mQ,heading:pQ,html:gQ,imageReference:vQ,image:yQ,inlineCode:bQ,linkReference:EQ,link:xQ,listItem:_Q,list:AQ,paragraph:SQ,root:wQ,strong:CQ,table:RQ,tableCell:NQ,tableRow:OQ,text:PQ,thematicBreak:DQ,toml:Pf,yaml:Pf,definition:Pf,footnoteDefinition:Pf};function Pf(){}const zw=-1,Th=0,c0=1,m1=2,Jv=3,e4=4,t4=5,n4=6,Zw=7,qw=8,D_=typeof self=="object"?self:globalThis,MQ=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,l]=t[a];switch(i){case Th:case zw:return n(l,a);case c0:{const u=n([],a);for(const d of l)u.push(r(d));return u}case m1:{const u=n({},a);for(const[d,h]of l)u[r(d)]=r(h);return u}case Jv:return n(new Date(l),a);case e4:{const{source:u,flags:d}=l;return n(new RegExp(u,d),a)}case t4:{const u=n(new Map,a);for(const[d,h]of l)u.set(r(d),r(h));return u}case n4:{const u=n(new Set,a);for(const d of l)u.add(r(d));return u}case Zw:{const{name:u,message:d}=l;return n(new D_[u](d),a)}case qw:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return n(new DataView(u),l)}}return n(new D_[i](l),a)};return r},L_=e=>MQ(new Map,e)(0),Wl="",{toString:IQ}={},{keys:jQ}=Object,Yc=e=>{const t=typeof e;if(t!=="object"||!e)return[Th,t];const n=IQ.call(e).slice(8,-1);switch(n){case"Array":return[c0,Wl];case"Object":return[m1,Wl];case"Date":return[Jv,Wl];case"RegExp":return[e4,Wl];case"Map":return[t4,Wl];case"Set":return[n4,Wl];case"DataView":return[c0,n]}return n.includes("Array")?[c0,n]:n.includes("Error")?[Zw,n]:[m1,n]},Df=([e,t])=>e===Th&&(t==="function"||t==="symbol"),HQ=(e,t,n,r)=>{const a=(l,u)=>{const d=r.push(l)-1;return n.set(u,d),d},i=l=>{if(n.has(l))return n.get(l);let[u,d]=Yc(l);switch(u){case Th:{let g=l;switch(d){case"bigint":u=qw,g=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);g=null;break;case"undefined":return a([zw],l)}return a([u,g],l)}case c0:{if(d){let E=l;return d==="DataView"?E=new Uint8Array(l.buffer):d==="ArrayBuffer"&&(E=new Uint8Array(l)),a([d,[...E]],l)}const g=[],m=a([u,g],l);for(const E of l)g.push(i(E));return m}case m1:{if(d)switch(d){case"BigInt":return a([d,l.toString()],l);case"Boolean":case"Number":case"String":return a([d,l.valueOf()],l)}if(t&&"toJSON"in l)return i(l.toJSON());const g=[],m=a([u,g],l);for(const E of jQ(l))(e||!Df(Yc(l[E])))&&g.push([i(E),i(l[E])]);return m}case Jv:return a([u,l.toISOString()],l);case e4:{const{source:g,flags:m}=l;return a([u,{source:g,flags:m}],l)}case t4:{const g=[],m=a([u,g],l);for(const[E,b]of l)(e||!(Df(Yc(E))||Df(Yc(b))))&&g.push([i(E),i(b)]);return m}case n4:{const g=[],m=a([u,g],l);for(const E of l)(e||!Df(Yc(E)))&&g.push(i(E));return m}}const{message:h}=l;return a([u,{name:d,message:h}],l)};return i},M_=(e,{json:t,lossy:n}={})=>{const r=[];return HQ(!(t||n),!!t,new Map,r)(e),r},xu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?L_(M_(e,t)):structuredClone(e):(e,t)=>L_(M_(e,t));function FQ(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function UQ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function BQ(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||FQ,r=e.options.footnoteBackLabel||UQ,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const g=e.all(h),m=String(h.identifier).toUpperCase(),E=Uu(m.toLowerCase());let b=0;const T=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++b<=A;){T.length>0&&T.push({type:"text",value:" "});let R=typeof n=="string"?n:n(d,b);typeof R=="string"&&(R={type:"text",value:R}),T.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+E+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,b),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const S=g[g.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const R=S.children[S.children.length-1];R&&R.type==="text"?R.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...T)}else g.push(...T);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+E},children:e.wrap(g,!0)};e.patch(h,w),u.push(w)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xu(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
126
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
127
|
+
`}]}}const Ah=function(e){if(e==null)return qQ;if(typeof e=="function")return Sh(e);if(typeof e=="object")return Array.isArray(e)?VQ(e):zQ(e);if(typeof e=="string")return ZQ(e);throw new Error("Expected function, string, or object as test")};function VQ(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ah(e[n]);return Sh(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function zQ(e){const t=e;return Sh(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function ZQ(e){return Sh(t);function t(n){return n&&n.type===e}}function Sh(e){return t;function t(n,r,a){return!!($Q(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function qQ(){return!0}function $Q(e){return e!==null&&typeof e=="object"&&"type"in e}const $w=[],QQ=!0,L8=!1,YQ="skip";function Qw(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=Ah(a),l=r?-1:1;u(e,void 0,[])();function u(d,h,g){const m=d&&typeof d=="object"?d:{};if(typeof m.type=="string"){const b=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(E,"name",{value:"node ("+(d.type+(b?"<"+b+">":""))+")"})}return E;function E(){let b=$w,T,A,S;if((!t||i(d,h,g[g.length-1]||void 0))&&(b=GQ(n(d,g)),b[0]===L8))return b;if("children"in d&&d.children){const w=d;if(w.children&&b[0]!==YQ)for(A=(r?w.children.length:-1)+l,S=g.concat(w);A>-1&&A<w.children.length;){const R=w.children[A];if(T=u(R,A,S)(),T[0]===L8)return T;A=typeof T[1]=="number"?T[1]:A+l}}return b}}}function GQ(e){return Array.isArray(e)?e:typeof e=="number"?[QQ,e]:e==null?$w:[e]}function wh(e,t,n,r){let a,i,l;typeof t=="function"&&typeof n!="function"?(i=void 0,l=t,a=n):(i=t,l=n,a=r),Qw(e,i,u,a);function u(d,h){const g=h[h.length-1],m=g?g.children.indexOf(d):void 0;return l(d,m,g)}}const M8={}.hasOwnProperty,KQ={};function XQ(e,t){const n=t||KQ,r=new Map,a=new Map,i=new Map,l={...LQ,...n.handlers},u={all:h,applyData:JQ,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:l,one:d,options:n,patch:WQ,wrap:tY};return wh(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const m=g.type==="definition"?r:a,E=String(g.identifier).toUpperCase();m.has(E)||m.set(E,g)}}),u;function d(g,m){const E=g.type,b=u.handlers[E];if(M8.call(u.handlers,E)&&b)return b(u,g,m);if(u.options.passThrough&&u.options.passThrough.includes(E)){if("children"in g){const{children:A,...S}=g,w=xu(S);return w.children=u.all(g),w}return xu(g)}return(u.options.unknownHandler||eY)(u,g,m)}function h(g){const m=[];if("children"in g){const E=g.children;let b=-1;for(;++b<E.length;){const T=u.one(E[b],g);if(T){if(b&&E[b-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=I_(T.value)),!Array.isArray(T)&&T.type==="element")){const A=T.children[0];A&&A.type==="text"&&(A.value=I_(A.value))}Array.isArray(T)?m.push(...T):m.push(T)}}}return m}}function WQ(e,t){e.position&&(t.position=UZ(e))}function JQ(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&i&&Object.assign(n.properties,xu(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function eY(e,t){const n=t.data||{},r="value"in t&&!(M8.call(n,"hProperties")||M8.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tY(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
128
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
129
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
130
|
+
`}),n}function I_(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function j_(e,t){const n=XQ(e,t),r=n.one(e,void 0),a=BQ(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
131
|
+
`},a),i}function nY(e,t){return e&&"run"in e?async function(n,r){const a=j_(n,{file:r,...t});await e.run(a,r)}:function(n,r){return j_(n,{file:r,...e||t})}}function H_(e){if(e)throw e}var M2,F_;function rY(){if(F_)return M2;F_=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},i=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!m)return!1;var E;for(E in h);return typeof E>"u"||e.call(h,E)},l=function(h,g){n&&g.name==="__proto__"?n(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},u=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(r)return r(h,g).value}else return;return h[g]};return M2=function d(){var h,g,m,E,b,T,A=arguments[0],S=1,w=arguments.length,R=!1;for(typeof A=="boolean"&&(R=A,A=arguments[1]||{},S=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});S<w;++S)if(h=arguments[S],h!=null)for(g in h)m=u(A,g),E=u(h,g),A!==E&&(R&&E&&(i(E)||(b=a(E)))?(b?(b=!1,T=m&&a(m)?m:[]):T=m&&i(m)?m:{},l(A,{name:g,newValue:d(R,T,E)})):typeof E<"u"&&l(A,{name:g,newValue:E}));return A},M2}var aY=rY();const I2=Cu(aY);function I8(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function sY(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const l=a.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...a);function u(d,...h){const g=e[++i];let m=-1;if(d){l(d);return}for(;++m<a.length;)(h[m]===null||h[m]===void 0)&&(h[m]=a[m]);a=h,g?iY(g,u)(...h):l(null,...h)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function iY(e,t){let n;return r;function r(...l){const u=e.length>l.length;let d;u&&l.push(a);try{d=e.apply(this,l)}catch(h){const g=h;if(u&&n)throw g;return a(g)}u||(d&&d.then&&typeof d.then=="function"?d.then(i,a):d instanceof Error?a(d):i(d))}function a(l,...u){n||(n=!0,t(l,...u))}function i(l){a(null,l)}}const hs={basename:oY,dirname:lY,extname:uY,join:cY,sep:"/"};function oY(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ed(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,u=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1),u>-1&&(e.codePointAt(a)===t.codePointAt(u--)?u<0&&(r=a):(u=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function lY(e){if(ed(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function uY(e){ed(e);let t=e.length,n=-1,r=0,a=-1,i=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),u===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function cY(...e){let t=-1,n;for(;++t<e.length;)ed(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":dY(n)}function dY(e){ed(e);const t=e.codePointAt(0)===47;let n=fY(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function fY(e,t){let n="",r=0,a=-1,i=0,l=-1,u,d;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(a===l-1||i===1))if(a!==l-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),a=l,i=0;continue}}else if(n.length>0){n="",r=0,a=l,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),r=l-a-1;a=l,i=0}else u===46&&i>-1?i++:i=-1}return n}function ed(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const hY={cwd:mY};function mY(){return"/"}function j8(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function pY(e){if(typeof e=="string")e=new URL(e);else if(!j8(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return gY(e)}function gY(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const j2=["history","path","basename","stem","extname","dirname"];class Yw{constructor(t){let n;t?j8(t)?n={path:t}:typeof t=="string"||vY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":hY.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<j2.length;){const i=j2[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)j2.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?hs.basename(this.path):void 0}set basename(t){F2(t,"basename"),H2(t,"basename"),this.path=hs.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?hs.dirname(this.path):void 0}set dirname(t){U_(this.basename,"dirname"),this.path=hs.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?hs.extname(this.path):void 0}set extname(t){if(H2(t,"extname"),U_(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hs.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){j8(t)&&(t=pY(t)),F2(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?hs.basename(this.path,this.extname):void 0}set stem(t){F2(t,"stem"),H2(t,"stem"),this.path=hs.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new wr(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function H2(e,t){if(e&&e.includes(hs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+hs.sep+"`")}function F2(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function U_(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function vY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yY=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},bY={}.hasOwnProperty;class r4 extends yY{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=sY()}copy(){const t=new r4;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(I2(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(V2("data",this.frozen),this.namespace[t]=n,this):bY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(V2("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Lf(t),r=this.parser||this.Parser;return U2("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),U2("process",this.parser||this.Parser),B2("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,l){const u=Lf(t),d=r.parse(u);r.run(d,u,function(g,m,E){if(g||!m||!E)return h(g);const b=m,T=r.stringify(b,E);_Y(T)?E.value=T:E.result=T,h(g,E)});function h(g,m){g||!m?l(g):i?i(m):n(void 0,m)}}}processSync(t){let n=!1,r;return this.freeze(),U2("processSync",this.parser||this.Parser),B2("processSync",this.compiler||this.Compiler),this.process(t,a),V_("processSync","process",n),r;function a(i,l){n=!0,H_(i),r=l}}run(t,n,r){B_(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(l,u){const d=Lf(n);a.run(t,d,h);function h(g,m,E){const b=m||t;g?u(g):l?l(b):r(void 0,b,E)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),V_("runSync","run",r),a;function i(l,u){H_(l),a=u,r=!0}}stringify(t,n){this.freeze();const r=Lf(n),a=this.compiler||this.Compiler;return B2("stringify",a),B_(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(V2("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...m]=h;d(g,m)}else l(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function l(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(h.plugins),h.settings&&(a.settings=I2(!0,a.settings,h.settings))}function u(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const m=h[g];i(m)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,g){let m=-1,E=-1;for(;++m<r.length;)if(r[m][0]===h){E=m;break}if(E===-1)r.push([h,...g]);else if(g.length>0){let[b,...T]=g;const A=r[E][1];I8(A)&&I8(b)&&(b=I2(!0,A,b)),r[E]=[h,b,...T]}}}}const EY=new r4().freeze();function U2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function B2(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function V2(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function B_(e){if(!I8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function V_(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Lf(e){return xY(e)?e:new Yw(e)}function xY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _Y(e){return typeof e=="string"||TY(e)}function TY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const AY="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",z_=[],Z_={allowDangerousHtml:!0},SY=/^(https?|ircs?|mailto|xmpp)$/i,wY=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Gw(e){const t=CY(e),n=RY(e);return OY(t.runSync(t.parse(n),n),e)}function CY(e){const t=e.rehypePlugins||z_,n=e.remarkPlugins||z_,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Z_}:Z_;return EY().use(lQ).use(n).use(nY,r).use(t)}function RY(e){const t=e.children||"",n=new Yw;return typeof t=="string"&&(n.value=t),n}function OY(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,l=t.skipHtml,u=t.unwrapDisallowed,d=t.urlTransform||NY;for(const g of wY)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+AY+g.id,void 0);return wh(e,h),qZ(e,{Fragment:v.Fragment,components:a,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function h(g,m,E){if(g.type==="raw"&&E&&typeof m=="number")return l?E.children.splice(m,1):E.children[m]={type:"text",value:g.value},m;if(g.type==="element"){let b;for(b in P2)if(Object.hasOwn(P2,b)&&Object.hasOwn(g.properties,b)){const T=g.properties[b],A=P2[b];(A===null||A.includes(g.tagName))&&(g.properties[b]=d(String(T||""),b,g))}}if(g.type==="element"){let b=n?!n.includes(g.tagName):i?i.includes(g.tagName):!1;if(!b&&r&&typeof m=="number"&&(b=!r(g,m,E)),b&&E&&typeof m=="number")return u&&g.children?E.children.splice(m,1,...g.children):E.children.splice(m,1),m}}}function NY(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||SY.test(e.slice(0,t))?e:""}const q_=/[#.]/g;function kY(e,t){const n=e||"",r={};let a=0,i,l;for(;a<n.length;){q_.lastIndex=a;const u=q_.exec(n),d=n.slice(a,u?u.index:n.length);d&&(i?i==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:l=d,a+=d.length),u&&(i=u[0],a++)}return{type:"element",tagName:l||t||"div",properties:r,children:[]}}function Kw(e,t,n){const r=n?MY(n):void 0;function a(i,l,...u){let d;if(i==null){d={type:"root",children:[]};const h=l;u.unshift(h)}else{d=kY(i,t);const h=d.tagName.toLowerCase(),g=r?r.get(h):void 0;if(d.tagName=g||h,PY(l))u.unshift(l);else for(const[m,E]of Object.entries(l))DY(e,d.properties,m,E)}for(const h of u)H8(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return a}function PY(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const l of i)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function DY(e,t,n,r){const a=$v(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=f_(r):a.commaSeparated?i=o_(r):a.commaOrSpaceSeparated?i=f_(o_(r).join(" ")):i=$_(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?LY(r):String(r);if(Array.isArray(i)){const l=[];for(const u of i)l.push($_(a,a.property,u));i=l}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function H8(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)H8(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?H8(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function $_(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||C0(n)===C0(t)))return!0}return n}function LY(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function MY(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const IY=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],jY=Kw(bh,"div"),HY=Kw(Fu,"g",IY);function FY(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let l=0;for(;;){let u=n[l];if(u===void 0){const d=Q_(t,n[l-1]);u=d===-1?t.length+1:d+1,n[l]=u}if(u>i)return{line:l+1,column:i-(l>0?n[l-1]:0)+1,offset:i};l++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const u=n[n.length-1],d=Q_(t,u),h=d===-1?t.length+1:d+1;if(u===h)break;n.push(h)}const l=(i.line>1?n[i.line-2]:0)+i.column-1;if(l<n[i.line-1])return l}}}function Q_(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
132
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Fo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Xw={}.hasOwnProperty,UY=Object.prototype;function BY(e,t){const n=t||{};return a4({file:n.file||void 0,location:!1,schema:n.space==="svg"?Fu:bh,verbose:n.verbose||!1},e)}function a4(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Qf(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Ww(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),l=FY(i),u=l.toPoint(0),d=l.toPoint(i.length);n.position={start:u,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Qf(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Qf(e,r,n),n}default:return n=VY(e,t),n}}function Ww(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=a4(e,t[n]);r.push(a)}return r}function VY(e,t){const n=e.schema;e.schema=t.namespaceURI===Fo.svg?Fu:bh;let r=-1;const a={};for(;++r<t.attrs.length;){const u=t.attrs[r],d=(u.prefix?u.prefix+":":"")+u.name;Xw.call(UY,d)||(a[d]=u.value)}const l=(e.schema.space==="svg"?HY:jY)(t.tagName,a,Ww(e,t.childNodes));if(Qf(e,t,l),l.tagName==="template"){const u=t,d=u.sourceCodeLocation,h=d&&d.startTag&&iu(d.startTag),g=d&&d.endTag&&iu(d.endTag),m=a4(e,u.content);h&&g&&e.file&&(m.position={start:h.end,end:g.start}),l.content=m}return e.schema=n,l}function Qf(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=zY(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function zY(e,t,n){const r=iu(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let l;if(n.attrs)for(l in n.attrs)Xw.call(n.attrs,l)&&(i[$v(e.schema,l).property]=iu(n.attrs[l]));n.startTag;const u=iu(n.startTag),d=n.endTag?iu(n.endTag):void 0,h={opening:u};d&&(h.closing=d),h.properties=i,t.data={position:h}}}return r}function iu(e){const t=Y_({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Y_({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Y_(e){return e.line&&e.column?e:void 0}class td{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}td.prototype.property={};td.prototype.normal={};td.prototype.space=null;function Jw(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new td(n,r,t)}function F8(e){return e.toLowerCase()}class Pa{constructor(t,n){this.property=t,this.attribute=n}}Pa.prototype.space=null;Pa.prototype.boolean=!1;Pa.prototype.booleanish=!1;Pa.prototype.overloadedBoolean=!1;Pa.prototype.number=!1;Pa.prototype.commaSeparated=!1;Pa.prototype.spaceSeparated=!1;Pa.prototype.commaOrSpaceSeparated=!1;Pa.prototype.mustUseProperty=!1;Pa.prototype.defined=!1;let ZY=0;const Et=ol(),Kn=ol(),eC=ol(),Fe=ol(),gn=ol(),mu=ol(),oa=ol();function ol(){return 2**++ZY}const U8=Object.freeze(Object.defineProperty({__proto__:null,boolean:Et,booleanish:Kn,commaOrSpaceSeparated:oa,commaSeparated:mu,number:Fe,overloadedBoolean:eC,spaceSeparated:gn},Symbol.toStringTag,{value:"Module"})),z2=Object.keys(U8);class s4 extends Pa{constructor(t,n,r,a){let i=-1;if(super(t,n),G_(this,"space",a),typeof r=="number")for(;++i<z2.length;){const l=z2[i];G_(this,z2[i],(r&U8[l])===U8[l])}}}s4.prototype.defined=!0;function G_(e,t,n){n&&(e[t]=n)}const qY={}.hasOwnProperty;function Bu(e){const t={},n={};let r;for(r in e.properties)if(qY.call(e.properties,r)){const a=e.properties[r],i=new s4(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[F8(r)]=r,n[F8(i.attribute)]=r}return new td(t,n,e.space)}const tC=Bu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),nC=Bu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function rC(e,t){return t in e?e[t]:t}function aC(e,t){return rC(e,t.toLowerCase())}const sC=Bu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:aC,properties:{xmlns:null,xmlnsXLink:null}}),iC=Bu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Kn,ariaAutoComplete:null,ariaBusy:Kn,ariaChecked:Kn,ariaColCount:Fe,ariaColIndex:Fe,ariaColSpan:Fe,ariaControls:gn,ariaCurrent:null,ariaDescribedBy:gn,ariaDetails:null,ariaDisabled:Kn,ariaDropEffect:gn,ariaErrorMessage:null,ariaExpanded:Kn,ariaFlowTo:gn,ariaGrabbed:Kn,ariaHasPopup:null,ariaHidden:Kn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:gn,ariaLevel:Fe,ariaLive:null,ariaModal:Kn,ariaMultiLine:Kn,ariaMultiSelectable:Kn,ariaOrientation:null,ariaOwns:gn,ariaPlaceholder:null,ariaPosInSet:Fe,ariaPressed:Kn,ariaReadOnly:Kn,ariaRelevant:null,ariaRequired:Kn,ariaRoleDescription:gn,ariaRowCount:Fe,ariaRowIndex:Fe,ariaRowSpan:Fe,ariaSelected:Kn,ariaSetSize:Fe,ariaSort:null,ariaValueMax:Fe,ariaValueMin:Fe,ariaValueNow:Fe,ariaValueText:null,role:null}}),$Y=Bu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:aC,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mu,acceptCharset:gn,accessKey:gn,action:null,allow:null,allowFullScreen:Et,allowPaymentRequest:Et,allowUserMedia:Et,alt:null,as:null,async:Et,autoCapitalize:null,autoComplete:gn,autoFocus:Et,autoPlay:Et,blocking:gn,capture:null,charSet:null,checked:Et,cite:null,className:gn,cols:Fe,colSpan:null,content:null,contentEditable:Kn,controls:Et,controlsList:gn,coords:Fe|mu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Et,defer:Et,dir:null,dirName:null,disabled:Et,download:eC,draggable:Kn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Et,formTarget:null,headers:gn,height:Fe,hidden:Et,high:Fe,href:null,hrefLang:null,htmlFor:gn,httpEquiv:gn,id:null,imageSizes:null,imageSrcSet:null,inert:Et,inputMode:null,integrity:null,is:null,isMap:Et,itemId:null,itemProp:gn,itemRef:gn,itemScope:Et,itemType:gn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Et,low:Fe,manifest:null,max:null,maxLength:Fe,media:null,method:null,min:null,minLength:Fe,multiple:Et,muted:Et,name:null,nonce:null,noModule:Et,noValidate:Et,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Et,optimum:Fe,pattern:null,ping:gn,placeholder:null,playsInline:Et,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Et,referrerPolicy:null,rel:gn,required:Et,reversed:Et,rows:Fe,rowSpan:Fe,sandbox:gn,scope:null,scoped:Et,seamless:Et,selected:Et,shadowRootClonable:Et,shadowRootDelegatesFocus:Et,shadowRootMode:null,shape:null,size:Fe,sizes:null,slot:null,span:Fe,spellCheck:Kn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fe,step:null,style:null,tabIndex:Fe,target:null,title:null,translate:null,type:null,typeMustMatch:Et,useMap:null,value:Kn,width:Fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:gn,axis:null,background:null,bgColor:null,border:Fe,borderColor:null,bottomMargin:Fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Et,declare:Et,event:null,face:null,frame:null,frameBorder:null,hSpace:Fe,leftMargin:Fe,link:null,longDesc:null,lowSrc:null,marginHeight:Fe,marginWidth:Fe,noResize:Et,noHref:Et,noShade:Et,noWrap:Et,object:null,profile:null,prompt:null,rev:null,rightMargin:Fe,rules:null,scheme:null,scrolling:Kn,standby:null,summary:null,text:null,topMargin:Fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Et,disableRemotePlayback:Et,prefix:null,property:null,results:Fe,security:null,unselectable:null}}),QY=Bu({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:rC,properties:{about:oa,accentHeight:Fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fe,amplitude:Fe,arabicForm:null,ascent:Fe,attributeName:null,attributeType:null,azimuth:Fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fe,by:null,calcMode:null,capHeight:Fe,className:gn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Fe,diffuseConstant:Fe,direction:null,display:null,dur:null,divisor:Fe,dominantBaseline:null,download:Et,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fe,enableBackground:null,end:null,event:null,exponent:Fe,externalResourcesRequired:null,fill:null,fillOpacity:Fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:mu,g2:mu,glyphName:mu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fe,horizOriginX:Fe,horizOriginY:Fe,id:null,ideographic:Fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fe,k:Fe,k1:Fe,k2:Fe,k3:Fe,k4:Fe,kernelMatrix:oa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Fe,overlineThickness:Fe,paintOrder:null,panose1:null,path:null,pathLength:Fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:gn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fe,pointsAtY:Fe,pointsAtZ:Fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oa,rev:oa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oa,requiredFeatures:oa,requiredFonts:oa,requiredFormats:oa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Fe,specularExponent:Fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fe,strikethroughThickness:Fe,string:null,stroke:null,strokeDashArray:oa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fe,strokeOpacity:Fe,strokeWidth:null,style:null,surfaceScale:Fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oa,tabIndex:Fe,tableValues:null,target:null,targetX:Fe,targetY:Fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fe,underlineThickness:Fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fe,values:null,vAlphabetic:Fe,vMathematical:Fe,vectorEffect:null,vHanging:Fe,vIdeographic:Fe,version:null,vertAdvY:Fe,vertOriginX:Fe,vertOriginY:Fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),YY=/^data[-\w.:]+$/i,K_=/-[a-z]/g,GY=/[A-Z]/g;function KY(e,t){const n=F8(t);let r=t,a=Pa;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&YY.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(K_,WY);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!K_.test(i)){let l=i.replace(GY,XY);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=s4}return new a(r,t)}function XY(e){return"-"+e.toLowerCase()}function WY(e){return e.charAt(1).toUpperCase()}const JY=Jw([nC,tC,sC,iC,$Y],"html"),oC=Jw([nC,tC,sC,iC,QY],"svg"),X_={}.hasOwnProperty;function lC(e,t){const n=t||{};function r(a,...i){let l=r.invalid;const u=r.handlers;if(a&&X_.call(a,e)){const d=String(a[e]);l=X_.call(u,d)?u[d]:r.unknown}if(l)return l.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const eG={},tG={}.hasOwnProperty,uC=lC("type",{handlers:{root:rG,element:lG,text:iG,comment:oG,doctype:sG}});function nG(e,t){const r=(t||eG).space;return uC(e,r==="svg"?oC:JY)}function rG(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=i4(e.children,n,t),Vu(e,n),n}function aG(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=i4(e.children,n,t),Vu(e,n),n}function sG(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Vu(e,t),t}function iG(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Vu(e,t),t}function oG(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Vu(e,t),t}function lG(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=oC);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&tG.call(e.properties,i)){const d=uG(r,i,e.properties[i]);d&&a.push(d)}}const l=r.space,u={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Fo[l],childNodes:[],parentNode:null};return u.childNodes=i4(e.children,u,r),Vu(e,u),e.tagName==="template"&&e.content&&(u.content=aG(e.content,r)),u}function uG(e,t,n){const r=KY(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?hw(n):xw(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Fo[r.space]}return a}function i4(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=uC(e[r],n);i.parentNode=t,a.push(i)}return a}function Vu(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const cG=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],dG=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Sn="�";var z;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(z||(z={}));const Vr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function cC(e){return e>=55296&&e<=57343}function fG(e){return e>=56320&&e<=57343}function hG(e,t){return(e-55296)*1024+9216+t}function dC(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function fC(e){return e>=64976&&e<=65007||dG.has(e)}var _e;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(_e||(_e={}));const mG=65536;class pG{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=mG,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,l=a+n,u=i+n;return{code:t,startLine:r,endLine:r,startCol:l,endCol:l,startOffset:u,endOffset:u}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(fG(n))return this.pos++,this._addGap(),hG(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,z.EOF;return this._err(_e.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,z.EOF;const r=this.html.charCodeAt(n);return r===z.CARRIAGE_RETURN?z.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,z.EOF;let t=this.html.charCodeAt(this.pos);return t===z.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,z.LINE_FEED):t===z.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,cC(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===z.LINE_FEED||t===z.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){dC(t)?this._err(_e.controlCharacterInInputStream):fC(t)&&this._err(_e.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Nt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Nt||(Nt={}));function hC(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const gG=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))),vG=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]]);function yG(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vG.get(e))!==null&&t!==void 0?t:e}var cr;(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"})(cr||(cr={}));const bG=32;var Wi;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Wi||(Wi={}));function B8(e){return e>=cr.ZERO&&e<=cr.NINE}function EG(e){return e>=cr.UPPER_A&&e<=cr.UPPER_F||e>=cr.LOWER_A&&e<=cr.LOWER_F}function xG(e){return e>=cr.UPPER_A&&e<=cr.UPPER_Z||e>=cr.LOWER_A&&e<=cr.LOWER_Z||B8(e)}function _G(e){return e===cr.EQUALS||xG(e)}var lr;(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"})(lr||(lr={}));var ti;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ti||(ti={}));class TG{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=lr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ti.Strict}startEntity(t){this.decodeMode=t,this.state=lr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case lr.EntityStart:return t.charCodeAt(n)===cr.NUM?(this.state=lr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=lr.NamedEntity,this.stateNamedEntity(t,n));case lr.NumericStart:return this.stateNumericStart(t,n);case lr.NumericDecimal:return this.stateNumericDecimal(t,n);case lr.NumericHex:return this.stateNumericHex(t,n);case lr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|bG)===cr.LOWER_X?(this.state=lr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=lr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(B8(a)||EG(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(B8(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===cr.SEMI)this.consumed+=1;else if(this.decodeMode===ti.Strict)return 0;return this.emitCodePoint(yG(this.result),this.consumed),this.errors&&(t!==cr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&Wi.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const l=t.charCodeAt(n);if(this.treeIndex=AG(r,a,this.treeIndex+Math.max(1,i),l),this.treeIndex<0)return this.result===0||this.decodeMode===ti.Attribute&&(i===0||_G(l))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&Wi.VALUE_LENGTH)>>14,i!==0){if(l===cr.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ti.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Wi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Wi.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case lr.NamedEntity:return this.result!==0&&(this.decodeMode!==ti.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case lr.NumericDecimal:return this.emitNumericEntity(0,2);case lr.NumericHex:return this.emitNumericEntity(0,3);case lr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case lr.EntityStart:return 0}}}function AG(e,t,n,r){const a=(t&Wi.BRANCH_LENGTH)>>7,i=t&Wi.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const d=r-i;return d<0||d>=a?-1:e[n+d]-1}let l=n,u=l+a-1;for(;l<=u;){const d=l+u>>>1,h=e[d];if(h<r)l=d+1;else if(h>r)u=d-1;else return e[d+a]}return-1}var Pe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Pe||(Pe={}));var Bo;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Bo||(Bo={}));var Aa;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Aa||(Aa={}));var fe;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(fe||(fe={}));var _;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(_||(_={}));const SG=new Map([[fe.A,_.A],[fe.ADDRESS,_.ADDRESS],[fe.ANNOTATION_XML,_.ANNOTATION_XML],[fe.APPLET,_.APPLET],[fe.AREA,_.AREA],[fe.ARTICLE,_.ARTICLE],[fe.ASIDE,_.ASIDE],[fe.B,_.B],[fe.BASE,_.BASE],[fe.BASEFONT,_.BASEFONT],[fe.BGSOUND,_.BGSOUND],[fe.BIG,_.BIG],[fe.BLOCKQUOTE,_.BLOCKQUOTE],[fe.BODY,_.BODY],[fe.BR,_.BR],[fe.BUTTON,_.BUTTON],[fe.CAPTION,_.CAPTION],[fe.CENTER,_.CENTER],[fe.CODE,_.CODE],[fe.COL,_.COL],[fe.COLGROUP,_.COLGROUP],[fe.DD,_.DD],[fe.DESC,_.DESC],[fe.DETAILS,_.DETAILS],[fe.DIALOG,_.DIALOG],[fe.DIR,_.DIR],[fe.DIV,_.DIV],[fe.DL,_.DL],[fe.DT,_.DT],[fe.EM,_.EM],[fe.EMBED,_.EMBED],[fe.FIELDSET,_.FIELDSET],[fe.FIGCAPTION,_.FIGCAPTION],[fe.FIGURE,_.FIGURE],[fe.FONT,_.FONT],[fe.FOOTER,_.FOOTER],[fe.FOREIGN_OBJECT,_.FOREIGN_OBJECT],[fe.FORM,_.FORM],[fe.FRAME,_.FRAME],[fe.FRAMESET,_.FRAMESET],[fe.H1,_.H1],[fe.H2,_.H2],[fe.H3,_.H3],[fe.H4,_.H4],[fe.H5,_.H5],[fe.H6,_.H6],[fe.HEAD,_.HEAD],[fe.HEADER,_.HEADER],[fe.HGROUP,_.HGROUP],[fe.HR,_.HR],[fe.HTML,_.HTML],[fe.I,_.I],[fe.IMG,_.IMG],[fe.IMAGE,_.IMAGE],[fe.INPUT,_.INPUT],[fe.IFRAME,_.IFRAME],[fe.KEYGEN,_.KEYGEN],[fe.LABEL,_.LABEL],[fe.LI,_.LI],[fe.LINK,_.LINK],[fe.LISTING,_.LISTING],[fe.MAIN,_.MAIN],[fe.MALIGNMARK,_.MALIGNMARK],[fe.MARQUEE,_.MARQUEE],[fe.MATH,_.MATH],[fe.MENU,_.MENU],[fe.META,_.META],[fe.MGLYPH,_.MGLYPH],[fe.MI,_.MI],[fe.MO,_.MO],[fe.MN,_.MN],[fe.MS,_.MS],[fe.MTEXT,_.MTEXT],[fe.NAV,_.NAV],[fe.NOBR,_.NOBR],[fe.NOFRAMES,_.NOFRAMES],[fe.NOEMBED,_.NOEMBED],[fe.NOSCRIPT,_.NOSCRIPT],[fe.OBJECT,_.OBJECT],[fe.OL,_.OL],[fe.OPTGROUP,_.OPTGROUP],[fe.OPTION,_.OPTION],[fe.P,_.P],[fe.PARAM,_.PARAM],[fe.PLAINTEXT,_.PLAINTEXT],[fe.PRE,_.PRE],[fe.RB,_.RB],[fe.RP,_.RP],[fe.RT,_.RT],[fe.RTC,_.RTC],[fe.RUBY,_.RUBY],[fe.S,_.S],[fe.SCRIPT,_.SCRIPT],[fe.SEARCH,_.SEARCH],[fe.SECTION,_.SECTION],[fe.SELECT,_.SELECT],[fe.SOURCE,_.SOURCE],[fe.SMALL,_.SMALL],[fe.SPAN,_.SPAN],[fe.STRIKE,_.STRIKE],[fe.STRONG,_.STRONG],[fe.STYLE,_.STYLE],[fe.SUB,_.SUB],[fe.SUMMARY,_.SUMMARY],[fe.SUP,_.SUP],[fe.TABLE,_.TABLE],[fe.TBODY,_.TBODY],[fe.TEMPLATE,_.TEMPLATE],[fe.TEXTAREA,_.TEXTAREA],[fe.TFOOT,_.TFOOT],[fe.TD,_.TD],[fe.TH,_.TH],[fe.THEAD,_.THEAD],[fe.TITLE,_.TITLE],[fe.TR,_.TR],[fe.TRACK,_.TRACK],[fe.TT,_.TT],[fe.U,_.U],[fe.UL,_.UL],[fe.SVG,_.SVG],[fe.VAR,_.VAR],[fe.WBR,_.WBR],[fe.XMP,_.XMP]]);function zu(e){var t;return(t=SG.get(e))!==null&&t!==void 0?t:_.UNKNOWN}const Ie=_,wG={[Pe.HTML]:new Set([Ie.ADDRESS,Ie.APPLET,Ie.AREA,Ie.ARTICLE,Ie.ASIDE,Ie.BASE,Ie.BASEFONT,Ie.BGSOUND,Ie.BLOCKQUOTE,Ie.BODY,Ie.BR,Ie.BUTTON,Ie.CAPTION,Ie.CENTER,Ie.COL,Ie.COLGROUP,Ie.DD,Ie.DETAILS,Ie.DIR,Ie.DIV,Ie.DL,Ie.DT,Ie.EMBED,Ie.FIELDSET,Ie.FIGCAPTION,Ie.FIGURE,Ie.FOOTER,Ie.FORM,Ie.FRAME,Ie.FRAMESET,Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6,Ie.HEAD,Ie.HEADER,Ie.HGROUP,Ie.HR,Ie.HTML,Ie.IFRAME,Ie.IMG,Ie.INPUT,Ie.LI,Ie.LINK,Ie.LISTING,Ie.MAIN,Ie.MARQUEE,Ie.MENU,Ie.META,Ie.NAV,Ie.NOEMBED,Ie.NOFRAMES,Ie.NOSCRIPT,Ie.OBJECT,Ie.OL,Ie.P,Ie.PARAM,Ie.PLAINTEXT,Ie.PRE,Ie.SCRIPT,Ie.SECTION,Ie.SELECT,Ie.SOURCE,Ie.STYLE,Ie.SUMMARY,Ie.TABLE,Ie.TBODY,Ie.TD,Ie.TEMPLATE,Ie.TEXTAREA,Ie.TFOOT,Ie.TH,Ie.THEAD,Ie.TITLE,Ie.TR,Ie.TRACK,Ie.UL,Ie.WBR,Ie.XMP]),[Pe.MATHML]:new Set([Ie.MI,Ie.MO,Ie.MN,Ie.MS,Ie.MTEXT,Ie.ANNOTATION_XML]),[Pe.SVG]:new Set([Ie.TITLE,Ie.FOREIGN_OBJECT,Ie.DESC]),[Pe.XLINK]:new Set,[Pe.XML]:new Set,[Pe.XMLNS]:new Set},V8=new Set([Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6]);fe.STYLE,fe.SCRIPT,fe.XMP,fe.IFRAME,fe.NOEMBED,fe.NOFRAMES,fe.PLAINTEXT;var $;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})($||($={}));const Vn={DATA:$.DATA,RCDATA:$.RCDATA,RAWTEXT:$.RAWTEXT,SCRIPT_DATA:$.SCRIPT_DATA,PLAINTEXT:$.PLAINTEXT,CDATA_SECTION:$.CDATA_SECTION};function CG(e){return e>=z.DIGIT_0&&e<=z.DIGIT_9}function t0(e){return e>=z.LATIN_CAPITAL_A&&e<=z.LATIN_CAPITAL_Z}function RG(e){return e>=z.LATIN_SMALL_A&&e<=z.LATIN_SMALL_Z}function $i(e){return RG(e)||t0(e)}function W_(e){return $i(e)||CG(e)}function Mf(e){return e+32}function mC(e){return e===z.SPACE||e===z.LINE_FEED||e===z.TABULATION||e===z.FORM_FEED}function J_(e){return mC(e)||e===z.SOLIDUS||e===z.GREATER_THAN_SIGN}function OG(e){return e===z.NULL?_e.nullCharacterReference:e>1114111?_e.characterReferenceOutsideUnicodeRange:cC(e)?_e.surrogateCharacterReference:fC(e)?_e.noncharacterCharacterReference:dC(e)||e===z.CARRIAGE_RETURN?_e.controlCharacterReference:null}class NG{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=$.DATA,this.returnState=$.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new pG(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new TG(gG,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(_e.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(_e.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=OG(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Nt.START_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Nt.END_TAG,tagName:"",tagID:_.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Nt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Nt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(hC(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(_e.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=zu(t.tagName),t.type===Nt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(_e.endTagWithAttributes),t.selfClosing&&this._err(_e.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Nt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Nt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Nt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Nt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=mC(t)?Nt.WHITESPACE_CHARACTER:t===z.NULL?Nt.NULL_CHARACTER:Nt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Nt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=$.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ti.Attribute:ti.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===$.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===$.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===$.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case $.DATA:{this._stateData(t);break}case $.RCDATA:{this._stateRcdata(t);break}case $.RAWTEXT:{this._stateRawtext(t);break}case $.SCRIPT_DATA:{this._stateScriptData(t);break}case $.PLAINTEXT:{this._statePlaintext(t);break}case $.TAG_OPEN:{this._stateTagOpen(t);break}case $.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case $.TAG_NAME:{this._stateTagName(t);break}case $.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case $.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case $.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case $.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case $.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case $.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case $.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case $.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case $.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case $.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case $.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case $.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case $.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case $.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case $.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case $.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case $.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case $.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case $.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case $.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case $.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case $.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case $.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case $.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case $.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case $.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case $.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case $.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case $.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case $.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case $.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case $.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case $.BOGUS_COMMENT:{this._stateBogusComment(t);break}case $.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case $.COMMENT_START:{this._stateCommentStart(t);break}case $.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case $.COMMENT:{this._stateComment(t);break}case $.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case $.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case $.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case $.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case $.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case $.COMMENT_END:{this._stateCommentEnd(t);break}case $.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case $.DOCTYPE:{this._stateDoctype(t);break}case $.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case $.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case $.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case $.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case $.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case $.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case $.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case $.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case $.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case $.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case $.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case $.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case $.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case $.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case $.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case $.CDATA_SECTION:{this._stateCdataSection(t);break}case $.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case $.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case $.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case $.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case z.LESS_THAN_SIGN:{this.state=$.TAG_OPEN;break}case z.AMPERSAND:{this._startCharacterReference();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitCodePoint(t);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case z.AMPERSAND:{this._startCharacterReference();break}case z.LESS_THAN_SIGN:{this.state=$.RCDATA_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case z.LESS_THAN_SIGN:{this.state=$.RAWTEXT_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case z.LESS_THAN_SIGN:{this.state=$.SCRIPT_DATA_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if($i(t))this._createStartTagToken(),this.state=$.TAG_NAME,this._stateTagName(t);else switch(t){case z.EXCLAMATION_MARK:{this.state=$.MARKUP_DECLARATION_OPEN;break}case z.SOLIDUS:{this.state=$.END_TAG_OPEN;break}case z.QUESTION_MARK:{this._err(_e.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=$.BOGUS_COMMENT,this._stateBogusComment(t);break}case z.EOF:{this._err(_e.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(_e.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=$.DATA,this._stateData(t)}}_stateEndTagOpen(t){if($i(t))this._createEndTagToken(),this.state=$.TAG_NAME,this._stateTagName(t);else switch(t){case z.GREATER_THAN_SIGN:{this._err(_e.missingEndTagName),this.state=$.DATA;break}case z.EOF:{this._err(_e.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(_e.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=$.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=$.BEFORE_ATTRIBUTE_NAME;break}case z.SOLIDUS:{this.state=$.SELF_CLOSING_START_TAG;break}case z.GREATER_THAN_SIGN:{this.state=$.DATA,this.emitCurrentTagToken();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.tagName+=Sn;break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(t0(t)?Mf(t):t)}}_stateRcdataLessThanSign(t){t===z.SOLIDUS?this.state=$.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=$.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){$i(t)?(this.state=$.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=$.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=$.BEFORE_ATTRIBUTE_NAME,!1;case z.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=$.SELF_CLOSING_START_TAG,!1;case z.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=$.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=$.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===z.SOLIDUS?this.state=$.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=$.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){$i(t)?(this.state=$.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=$.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=$.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case z.SOLIDUS:{this.state=$.SCRIPT_DATA_END_TAG_OPEN;break}case z.EXCLAMATION_MARK:{this.state=$.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=$.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){$i(t)?(this.state=$.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=$.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=$.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===z.HYPHEN_MINUS?(this.state=$.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=$.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===z.HYPHEN_MINUS?(this.state=$.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=$.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case z.HYPHEN_MINUS:{this.state=$.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=$.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case z.HYPHEN_MINUS:{this.state=$.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=$.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.state=$.SCRIPT_DATA_ESCAPED,this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=$.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case z.HYPHEN_MINUS:{this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=$.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case z.GREATER_THAN_SIGN:{this.state=$.SCRIPT_DATA,this._emitChars(">");break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.state=$.SCRIPT_DATA_ESCAPED,this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=$.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===z.SOLIDUS?this.state=$.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:$i(t)?(this._emitChars("<"),this.state=$.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=$.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){$i(t)?(this.state=$.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=$.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=$.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Vr.SCRIPT,!1)&&J_(this.preprocessor.peek(Vr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Vr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=$.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case z.HYPHEN_MINUS:{this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case z.HYPHEN_MINUS:{this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case z.HYPHEN_MINUS:{this._emitChars("-");break}case z.LESS_THAN_SIGN:{this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case z.GREATER_THAN_SIGN:{this.state=$.SCRIPT_DATA,this._emitChars(">");break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Sn);break}case z.EOF:{this._err(_e.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===z.SOLIDUS?(this.state=$.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Vr.SCRIPT,!1)&&J_(this.preprocessor.peek(Vr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Vr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=$.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=$.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.SOLIDUS:case z.GREATER_THAN_SIGN:case z.EOF:{this.state=$.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case z.EQUALS_SIGN:{this._err(_e.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=$.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=$.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:case z.SOLIDUS:case z.GREATER_THAN_SIGN:case z.EOF:{this._leaveAttrName(),this.state=$.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case z.EQUALS_SIGN:{this._leaveAttrName(),this.state=$.BEFORE_ATTRIBUTE_VALUE;break}case z.QUOTATION_MARK:case z.APOSTROPHE:case z.LESS_THAN_SIGN:{this._err(_e.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.name+=Sn;break}default:this.currentAttr.name+=String.fromCodePoint(t0(t)?Mf(t):t)}}_stateAfterAttributeName(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.SOLIDUS:{this.state=$.SELF_CLOSING_START_TAG;break}case z.EQUALS_SIGN:{this.state=$.BEFORE_ATTRIBUTE_VALUE;break}case z.GREATER_THAN_SIGN:{this.state=$.DATA,this.emitCurrentTagToken();break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=$.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:{this.state=$.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case z.APOSTROPHE:{this.state=$.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingAttributeValue),this.state=$.DATA,this.emitCurrentTagToken();break}default:this.state=$.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case z.QUOTATION_MARK:{this.state=$.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case z.AMPERSAND:{this._startCharacterReference();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case z.APOSTROPHE:{this.state=$.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case z.AMPERSAND:{this._startCharacterReference();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this._leaveAttrValue(),this.state=$.BEFORE_ATTRIBUTE_NAME;break}case z.AMPERSAND:{this._startCharacterReference();break}case z.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=$.DATA,this.emitCurrentTagToken();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),this.currentAttr.value+=Sn;break}case z.QUOTATION_MARK:case z.APOSTROPHE:case z.LESS_THAN_SIGN:case z.EQUALS_SIGN:case z.GRAVE_ACCENT:{this._err(_e.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this._leaveAttrValue(),this.state=$.BEFORE_ATTRIBUTE_NAME;break}case z.SOLIDUS:{this._leaveAttrValue(),this.state=$.SELF_CLOSING_START_TAG;break}case z.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=$.DATA,this.emitCurrentTagToken();break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._err(_e.missingWhitespaceBetweenAttributes),this.state=$.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case z.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=$.DATA,this.emitCurrentTagToken();break}case z.EOF:{this._err(_e.eofInTag),this._emitEOFToken();break}default:this._err(_e.unexpectedSolidusInTag),this.state=$.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case z.GREATER_THAN_SIGN:{this.state=$.DATA,this.emitCurrentComment(n);break}case z.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.data+=Sn;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Vr.DASH_DASH,!0)?(this._createCommentToken(Vr.DASH_DASH.length+1),this.state=$.COMMENT_START):this._consumeSequenceIfMatch(Vr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Vr.DOCTYPE.length+1),this.state=$.DOCTYPE):this._consumeSequenceIfMatch(Vr.CDATA_START,!0)?this.inForeignNode?this.state=$.CDATA_SECTION:(this._err(_e.cdataInHtmlContent),this._createCommentToken(Vr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=$.BOGUS_COMMENT):this._ensureHibernation()||(this._err(_e.incorrectlyOpenedComment),this._createCommentToken(2),this.state=$.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case z.HYPHEN_MINUS:{this.state=$.COMMENT_START_DASH;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptClosingOfEmptyComment),this.state=$.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=$.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case z.HYPHEN_MINUS:{this.state=$.COMMENT_END;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptClosingOfEmptyComment),this.state=$.DATA,this.emitCurrentComment(n);break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=$.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case z.HYPHEN_MINUS:{this.state=$.COMMENT_END_DASH;break}case z.LESS_THAN_SIGN:{n.data+="<",this.state=$.COMMENT_LESS_THAN_SIGN;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.data+=Sn;break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case z.EXCLAMATION_MARK:{n.data+="!",this.state=$.COMMENT_LESS_THAN_SIGN_BANG;break}case z.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=$.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===z.HYPHEN_MINUS?this.state=$.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=$.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===z.HYPHEN_MINUS?this.state=$.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=$.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==z.GREATER_THAN_SIGN&&t!==z.EOF&&this._err(_e.nestedComment),this.state=$.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case z.HYPHEN_MINUS:{this.state=$.COMMENT_END;break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=$.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case z.GREATER_THAN_SIGN:{this.state=$.DATA,this.emitCurrentComment(n);break}case z.EXCLAMATION_MARK:{this.state=$.COMMENT_END_BANG;break}case z.HYPHEN_MINUS:{n.data+="-";break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=$.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case z.HYPHEN_MINUS:{n.data+="--!",this.state=$.COMMENT_END_DASH;break}case z.GREATER_THAN_SIGN:{this._err(_e.incorrectlyClosedComment),this.state=$.DATA,this.emitCurrentComment(n);break}case z.EOF:{this._err(_e.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=$.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=$.BEFORE_DOCTYPE_NAME;break}case z.GREATER_THAN_SIGN:{this.state=$.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case z.EOF:{this._err(_e.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingWhitespaceBeforeDoctypeName),this.state=$.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(t0(t))this._createDoctypeToken(String.fromCharCode(Mf(t))),this.state=$.DOCTYPE_NAME;else switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.NULL:{this._err(_e.unexpectedNullCharacter),this._createDoctypeToken(Sn),this.state=$.DOCTYPE_NAME;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=$.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=$.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=$.AFTER_DOCTYPE_NAME;break}case z.GREATER_THAN_SIGN:{this.state=$.DATA,this.emitCurrentDoctype(n);break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.name+=Sn;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(t0(t)?Mf(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:{this.state=$.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Vr.PUBLIC,!1)?this.state=$.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Vr.SYSTEM,!1)?this.state=$.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(_e.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=$.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=$.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case z.QUOTATION_MARK:{this._err(_e.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=$.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{this._err(_e.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=$.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=$.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=$.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:{n.publicId="",this.state=$.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{n.publicId="",this.state=$.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=$.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=$.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case z.QUOTATION_MARK:{this.state=$.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.publicId+=Sn;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=$.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case z.APOSTROPHE:{this.state=$.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.publicId+=Sn;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=$.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=$.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case z.GREATER_THAN_SIGN:{this.state=$.DATA,this.emitCurrentDoctype(n);break}case z.QUOTATION_MARK:{this._err(_e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=$.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{this._err(_e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=$.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=$.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=$.DATA;break}case z.QUOTATION_MARK:{n.systemId="",this.state=$.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{n.systemId="",this.state=$.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=$.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:{this.state=$.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case z.QUOTATION_MARK:{this._err(_e.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=$.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{this._err(_e.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=$.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=$.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=$.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.QUOTATION_MARK:{n.systemId="",this.state=$.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case z.APOSTROPHE:{n.systemId="",this.state=$.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case z.GREATER_THAN_SIGN:{this._err(_e.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=$.DATA,this.emitCurrentDoctype(n);break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=$.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case z.QUOTATION_MARK:{this.state=$.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.systemId+=Sn;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=$.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case z.APOSTROPHE:{this.state=$.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case z.NULL:{this._err(_e.unexpectedNullCharacter),n.systemId+=Sn;break}case z.GREATER_THAN_SIGN:{this._err(_e.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=$.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case z.SPACE:case z.LINE_FEED:case z.TABULATION:case z.FORM_FEED:break;case z.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=$.DATA;break}case z.EOF:{this._err(_e.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(_e.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=$.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case z.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=$.DATA;break}case z.NULL:{this._err(_e.unexpectedNullCharacter);break}case z.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case z.RIGHT_SQUARE_BRACKET:{this.state=$.CDATA_SECTION_BRACKET;break}case z.EOF:{this._err(_e.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===z.RIGHT_SQUARE_BRACKET?this.state=$.CDATA_SECTION_END:(this._emitChars("]"),this.state=$.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case z.GREATER_THAN_SIGN:{this.state=$.DATA;break}case z.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=$.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(z.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&W_(this.preprocessor.peek(1))?$.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){W_(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===z.SEMICOLON&&this._err(_e.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const pC=new Set([_.DD,_.DT,_.LI,_.OPTGROUP,_.OPTION,_.P,_.RB,_.RP,_.RT,_.RTC]),e5=new Set([...pC,_.CAPTION,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]),p1=new Set([_.APPLET,_.CAPTION,_.HTML,_.MARQUEE,_.OBJECT,_.TABLE,_.TD,_.TEMPLATE,_.TH]),kG=new Set([...p1,_.OL,_.UL]),PG=new Set([...p1,_.BUTTON]),t5=new Set([_.ANNOTATION_XML,_.MI,_.MN,_.MO,_.MS,_.MTEXT]),n5=new Set([_.DESC,_.FOREIGN_OBJECT,_.TITLE]),DG=new Set([_.TR,_.TEMPLATE,_.HTML]),LG=new Set([_.TBODY,_.TFOOT,_.THEAD,_.TEMPLATE,_.HTML]),MG=new Set([_.TABLE,_.TEMPLATE,_.HTML]),IG=new Set([_.TD,_.TH]);class jG{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=_.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===_.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Pe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Pe.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(V8,Pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(IG,Pe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(MG,Pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(LG,Pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(DG,Pe.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===_.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===_.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Pe.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Pe.SVG:{if(n5.has(a))return!1;break}case Pe.MATHML:{if(t5.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,p1)}hasInListItemScope(t){return this.hasInDynamicScope(t,kG)}hasInButtonScope(t){return this.hasInDynamicScope(t,PG)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Pe.HTML:{if(V8.has(n))return!0;if(p1.has(n))return!1;break}case Pe.SVG:{if(n5.has(n))return!1;break}case Pe.MATHML:{if(t5.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Pe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Pe.HTML)switch(this.tagIDs[t]){case _.TBODY:case _.THEAD:case _.TFOOT:return!0;case _.TABLE:case _.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Pe.HTML)switch(this.tagIDs[n]){case t:return!0;case _.OPTION:case _.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&pC.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&e5.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&e5.has(this.currentTagId);)this.pop()}}const Z2=3;var ps;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ps||(ps={}));const r5={type:ps.Marker};class HG{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),l=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){const d=this.entries[u];if(d.type===ps.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===i&&this.treeAdapter.getNamespaceURI(h)===l){const g=this.treeAdapter.getAttrList(h);g.length===a&&r.push({idx:u,attrs:g})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Z2)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Z2)return;const a=new Map(n.map(l=>[l.name,l.value]));let i=0;for(let l=0;l<r.length;l++){const u=r[l];u.attrs.every(d=>a.get(d.name)===d.value)&&(i+=1,i>=Z2&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(r5)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ps.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ps.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(r5);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ps.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ps.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ps.Element&&n.element===t)}}const Qi={createDocument(){return{nodeName:"#document",mode:Aa.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Qi.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Qi.isTextNode(n)){n.value+=t;return}}Qi.appendChild(e,Qi.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Qi.isTextNode(r)?r.value+=t:Qi.insertBefore(e,Qi.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},gC="html",FG="about:legacy-compat",UG="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",vC=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],BG=[...vC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],VG=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),yC=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],zG=[...yC,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function a5(e,t){return t.some(n=>e.startsWith(n))}function ZG(e){return e.name===gC&&e.publicId===null&&(e.systemId===null||e.systemId===FG)}function qG(e){if(e.name!==gC)return Aa.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===UG)return Aa.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),VG.has(n))return Aa.QUIRKS;let r=t===null?BG:vC;if(a5(n,r))return Aa.QUIRKS;if(r=t===null?yC:zG,a5(n,r))return Aa.LIMITED_QUIRKS}return Aa.NO_QUIRKS}const s5={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},$G="definitionurl",QG="definitionURL",YG=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),GG=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Pe.XMLNS}]]),KG=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),XG=new Set([_.B,_.BIG,_.BLOCKQUOTE,_.BODY,_.BR,_.CENTER,_.CODE,_.DD,_.DIV,_.DL,_.DT,_.EM,_.EMBED,_.H1,_.H2,_.H3,_.H4,_.H5,_.H6,_.HEAD,_.HR,_.I,_.IMG,_.LI,_.LISTING,_.MENU,_.META,_.NOBR,_.OL,_.P,_.PRE,_.RUBY,_.S,_.SMALL,_.SPAN,_.STRONG,_.STRIKE,_.SUB,_.SUP,_.TABLE,_.TT,_.U,_.UL,_.VAR]);function WG(e){const t=e.tagID;return t===_.FONT&&e.attrs.some(({name:r})=>r===Bo.COLOR||r===Bo.SIZE||r===Bo.FACE)||XG.has(t)}function bC(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===$G){e.attrs[t].name=QG;break}}function EC(e){for(let t=0;t<e.attrs.length;t++){const n=YG.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function o4(e){for(let t=0;t<e.attrs.length;t++){const n=GG.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function JG(e){const t=KG.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=zu(e.tagName))}function eK(e,t){return t===Pe.MATHML&&(e===_.MI||e===_.MO||e===_.MN||e===_.MS||e===_.MTEXT)}function tK(e,t,n){if(t===Pe.MATHML&&e===_.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Bo.ENCODING){const a=n[r].value.toLowerCase();return a===s5.TEXT_HTML||a===s5.APPLICATION_XML}}return t===Pe.SVG&&(e===_.FOREIGN_OBJECT||e===_.DESC||e===_.TITLE)}function nK(e,t,n,r){return(!r||r===Pe.HTML)&&tK(e,t,n)||(!r||r===Pe.MATHML)&&eK(e,t)}const rK="hidden",aK=8,sK=3;var G;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(G||(G={}));const iK={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},xC=new Set([_.TABLE,_.TBODY,_.TFOOT,_.THEAD,_.TR]),i5={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Qi,onParseError:null};class o5{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=G.INITIAL,this.originalInsertionMode=G.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...i5,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new NG(this.options,this),this.activeFormattingElements=new HG(this.treeAdapter),this.fragmentContextID=r?zu(this.treeAdapter.getTagName(r)):_.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new jG(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...i5,...n};t??(t=r.treeAdapter.createElement(fe.TEMPLATE,Pe.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Pe.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===_.TEMPLATE&&i.tmplInsertionModeStack.unshift(G.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:iK,l={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(l)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,l;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,l=this.fragmentContextID):{current:i,currentTagId:l}=this.openElements,this._setContextModes(i,l)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Pe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Pe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=G.TEXT}switchToPlaintextParsing(){this.insertionMode=G.TEXT,this.originalInsertionMode=G.IN_BODY,this.tokenizer.state=Vn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===fe.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Pe.HTML))switch(this.fragmentContextID){case _.TITLE:case _.TEXTAREA:{this.tokenizer.state=Vn.RCDATA;break}case _.STYLE:case _.XMP:case _.IFRAME:case _.NOEMBED:case _.NOFRAMES:case _.NOSCRIPT:{this.tokenizer.state=Vn.RAWTEXT;break}case _.SCRIPT:{this.tokenizer.state=Vn.SCRIPT_DATA;break}case _.PLAINTEXT:{this.tokenizer.state=Vn.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const l=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));l&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Pe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Pe.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(fe.HTML,Pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,_.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,l=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:d,endCol:h,endOffset:g}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:d,endCol:h,endOffset:g})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(l,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===Nt.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===_.SVG&&this.treeAdapter.getTagName(n)===fe.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===_.MGLYPH||t.tagID===_.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Pe.HTML)}_processToken(t){switch(t.type){case Nt.CHARACTER:{this.onCharacter(t);break}case Nt.NULL_CHARACTER:{this.onNullCharacter(t);break}case Nt.COMMENT:{this.onComment(t);break}case Nt.DOCTYPE:{this.onDoctype(t);break}case Nt.START_TAG:{this._processStartTag(t);break}case Nt.END_TAG:{this.onEndTag(t);break}case Nt.EOF:{this.onEof(t);break}case Nt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return nK(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ps.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=G.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(_.P),this.openElements.popUntilTagNamePopped(_.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case _.TR:{this.insertionMode=G.IN_ROW;return}case _.TBODY:case _.THEAD:case _.TFOOT:{this.insertionMode=G.IN_TABLE_BODY;return}case _.CAPTION:{this.insertionMode=G.IN_CAPTION;return}case _.COLGROUP:{this.insertionMode=G.IN_COLUMN_GROUP;return}case _.TABLE:{this.insertionMode=G.IN_TABLE;return}case _.BODY:{this.insertionMode=G.IN_BODY;return}case _.FRAMESET:{this.insertionMode=G.IN_FRAMESET;return}case _.SELECT:{this._resetInsertionModeForSelect(t);return}case _.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case _.HTML:{this.insertionMode=this.headElement?G.AFTER_HEAD:G.BEFORE_HEAD;return}case _.TD:case _.TH:{if(t>0){this.insertionMode=G.IN_CELL;return}break}case _.HEAD:{if(t>0){this.insertionMode=G.IN_HEAD;return}break}}this.insertionMode=G.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===_.TEMPLATE)break;if(r===_.TABLE){this.insertionMode=G.IN_SELECT_IN_TABLE;return}}this.insertionMode=G.IN_SELECT}_isElementCausesFosterParenting(t){return xC.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case _.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Pe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case _.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return wG[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){IX(this,t);return}switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{d0(this,t);break}case G.BEFORE_HEAD:{f0(this,t);break}case G.IN_HEAD:{h0(this,t);break}case G.IN_HEAD_NO_SCRIPT:{m0(this,t);break}case G.AFTER_HEAD:{p0(this,t);break}case G.IN_BODY:case G.IN_CAPTION:case G.IN_CELL:case G.IN_TEMPLATE:{TC(this,t);break}case G.TEXT:case G.IN_SELECT:case G.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case G.IN_TABLE:case G.IN_TABLE_BODY:case G.IN_ROW:{q2(this,t);break}case G.IN_TABLE_TEXT:{OC(this,t);break}case G.IN_COLUMN_GROUP:{g1(this,t);break}case G.AFTER_BODY:{v1(this,t);break}case G.AFTER_AFTER_BODY:{Yf(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){MX(this,t);return}switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{d0(this,t);break}case G.BEFORE_HEAD:{f0(this,t);break}case G.IN_HEAD:{h0(this,t);break}case G.IN_HEAD_NO_SCRIPT:{m0(this,t);break}case G.AFTER_HEAD:{p0(this,t);break}case G.TEXT:{this._insertCharacters(t);break}case G.IN_TABLE:case G.IN_TABLE_BODY:case G.IN_ROW:{q2(this,t);break}case G.IN_COLUMN_GROUP:{g1(this,t);break}case G.AFTER_BODY:{v1(this,t);break}case G.AFTER_AFTER_BODY:{Yf(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){z8(this,t);return}switch(this.insertionMode){case G.INITIAL:case G.BEFORE_HTML:case G.BEFORE_HEAD:case G.IN_HEAD:case G.IN_HEAD_NO_SCRIPT:case G.AFTER_HEAD:case G.IN_BODY:case G.IN_TABLE:case G.IN_CAPTION:case G.IN_COLUMN_GROUP:case G.IN_TABLE_BODY:case G.IN_ROW:case G.IN_CELL:case G.IN_SELECT:case G.IN_SELECT_IN_TABLE:case G.IN_TEMPLATE:case G.IN_FRAMESET:case G.AFTER_FRAMESET:{z8(this,t);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}case G.AFTER_BODY:{hK(this,t);break}case G.AFTER_AFTER_BODY:case G.AFTER_AFTER_FRAMESET:{mK(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case G.INITIAL:{pK(this,t);break}case G.BEFORE_HEAD:case G.IN_HEAD:case G.IN_HEAD_NO_SCRIPT:case G.AFTER_HEAD:{this._err(t,_e.misplacedDoctype);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,_e.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?jX(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{gK(this,t);break}case G.BEFORE_HEAD:{yK(this,t);break}case G.IN_HEAD:{ts(this,t);break}case G.IN_HEAD_NO_SCRIPT:{xK(this,t);break}case G.AFTER_HEAD:{TK(this,t);break}case G.IN_BODY:{Cr(this,t);break}case G.IN_TABLE:{_u(this,t);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}case G.IN_CAPTION:{bX(this,t);break}case G.IN_COLUMN_GROUP:{c4(this,t);break}case G.IN_TABLE_BODY:{Oh(this,t);break}case G.IN_ROW:{Nh(this,t);break}case G.IN_CELL:{_X(this,t);break}case G.IN_SELECT:{PC(this,t);break}case G.IN_SELECT_IN_TABLE:{AX(this,t);break}case G.IN_TEMPLATE:{wX(this,t);break}case G.AFTER_BODY:{RX(this,t);break}case G.IN_FRAMESET:{OX(this,t);break}case G.AFTER_FRAMESET:{kX(this,t);break}case G.AFTER_AFTER_BODY:{DX(this,t);break}case G.AFTER_AFTER_FRAMESET:{LX(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?HX(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{vK(this,t);break}case G.BEFORE_HEAD:{bK(this,t);break}case G.IN_HEAD:{EK(this,t);break}case G.IN_HEAD_NO_SCRIPT:{_K(this,t);break}case G.AFTER_HEAD:{AK(this,t);break}case G.IN_BODY:{Rh(this,t);break}case G.TEXT:{uX(this,t);break}case G.IN_TABLE:{O0(this,t);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}case G.IN_CAPTION:{EX(this,t);break}case G.IN_COLUMN_GROUP:{xX(this,t);break}case G.IN_TABLE_BODY:{Z8(this,t);break}case G.IN_ROW:{kC(this,t);break}case G.IN_CELL:{TX(this,t);break}case G.IN_SELECT:{DC(this,t);break}case G.IN_SELECT_IN_TABLE:{SX(this,t);break}case G.IN_TEMPLATE:{CX(this,t);break}case G.AFTER_BODY:{MC(this,t);break}case G.IN_FRAMESET:{NX(this,t);break}case G.AFTER_FRAMESET:{PX(this,t);break}case G.AFTER_AFTER_BODY:{Yf(this,t);break}}}onEof(t){switch(this.insertionMode){case G.INITIAL:{Gc(this,t);break}case G.BEFORE_HTML:{d0(this,t);break}case G.BEFORE_HEAD:{f0(this,t);break}case G.IN_HEAD:{h0(this,t);break}case G.IN_HEAD_NO_SCRIPT:{m0(this,t);break}case G.AFTER_HEAD:{p0(this,t);break}case G.IN_BODY:case G.IN_TABLE:case G.IN_CAPTION:case G.IN_COLUMN_GROUP:case G.IN_TABLE_BODY:case G.IN_ROW:case G.IN_CELL:case G.IN_SELECT:case G.IN_SELECT_IN_TABLE:{CC(this,t);break}case G.TEXT:{cX(this,t);break}case G.IN_TABLE_TEXT:{Kc(this,t);break}case G.IN_TEMPLATE:{LC(this,t);break}case G.AFTER_BODY:case G.IN_FRAMESET:case G.AFTER_FRAMESET:case G.AFTER_AFTER_BODY:case G.AFTER_AFTER_FRAMESET:{u4(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===z.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case G.IN_HEAD:case G.IN_HEAD_NO_SCRIPT:case G.AFTER_HEAD:case G.TEXT:case G.IN_COLUMN_GROUP:case G.IN_SELECT:case G.IN_SELECT_IN_TABLE:case G.IN_FRAMESET:case G.AFTER_FRAMESET:{this._insertCharacters(t);break}case G.IN_BODY:case G.IN_CAPTION:case G.IN_CELL:case G.IN_TEMPLATE:case G.AFTER_BODY:case G.AFTER_AFTER_BODY:case G.AFTER_AFTER_FRAMESET:{_C(this,t);break}case G.IN_TABLE:case G.IN_TABLE_BODY:case G.IN_ROW:{q2(this,t);break}case G.IN_TABLE_TEXT:{RC(this,t);break}}}}function oK(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):wC(e,t),n}function lK(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function uK(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,l=a;l!==n;i++,l=a){a=e.openElements.getCommonAncestor(l);const u=e.activeFormattingElements.getElementEntry(l),d=u&&i>=sK;!u||d?(d&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(l)):(l=cK(e,u),r===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(l,r),r=l)}return r}function cK(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function dK(e,t,n){const r=e.treeAdapter.getTagName(t),a=zu(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===_.TEMPLATE&&i===Pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function fK(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function l4(e,t){for(let n=0;n<aK;n++){const r=oK(e,t);if(!r)break;const a=lK(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=uK(e,a,r.element),l=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),l&&dK(e,l,i),fK(e,a,r)}}function z8(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function hK(e,t){e._appendCommentNode(t,e.openElements.items[0])}function mK(e,t){e._appendCommentNode(t,e.document)}function u4(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],l=e.treeAdapter.getNodeSourceCodeLocation(i);l&&!l.endTag&&e._setEndLocation(i,t)}}}}function pK(e,t){e._setDocumentType(t);const n=t.forceQuirks?Aa.QUIRKS:qG(t);ZG(t)||e._err(t,_e.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=G.BEFORE_HTML}function Gc(e,t){e._err(t,_e.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Aa.QUIRKS),e.insertionMode=G.BEFORE_HTML,e._processToken(t)}function gK(e,t){t.tagID===_.HTML?(e._insertElement(t,Pe.HTML),e.insertionMode=G.BEFORE_HEAD):d0(e,t)}function vK(e,t){const n=t.tagID;(n===_.HTML||n===_.HEAD||n===_.BODY||n===_.BR)&&d0(e,t)}function d0(e,t){e._insertFakeRootElement(),e.insertionMode=G.BEFORE_HEAD,e._processToken(t)}function yK(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.HEAD:{e._insertElement(t,Pe.HTML),e.headElement=e.openElements.current,e.insertionMode=G.IN_HEAD;break}default:f0(e,t)}}function bK(e,t){const n=t.tagID;n===_.HEAD||n===_.BODY||n===_.HTML||n===_.BR?f0(e,t):e._err(t,_e.endTagWithoutMatchingOpenElement)}function f0(e,t){e._insertFakeElement(fe.HEAD,_.HEAD),e.headElement=e.openElements.current,e.insertionMode=G.IN_HEAD,e._processToken(t)}function ts(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case _.TITLE:{e._switchToTextParsing(t,Vn.RCDATA);break}case _.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Vn.RAWTEXT):(e._insertElement(t,Pe.HTML),e.insertionMode=G.IN_HEAD_NO_SCRIPT);break}case _.NOFRAMES:case _.STYLE:{e._switchToTextParsing(t,Vn.RAWTEXT);break}case _.SCRIPT:{e._switchToTextParsing(t,Vn.SCRIPT_DATA);break}case _.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=G.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(G.IN_TEMPLATE);break}case _.HEAD:{e._err(t,_e.misplacedStartTagForHeadElement);break}default:h0(e,t)}}function EK(e,t){switch(t.tagID){case _.HEAD:{e.openElements.pop(),e.insertionMode=G.AFTER_HEAD;break}case _.BODY:case _.BR:case _.HTML:{h0(e,t);break}case _.TEMPLATE:{ll(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function ll(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==_.TEMPLATE&&e._err(t,_e.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,_e.endTagWithoutMatchingOpenElement)}function h0(e,t){e.openElements.pop(),e.insertionMode=G.AFTER_HEAD,e._processToken(t)}function xK(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.BASEFONT:case _.BGSOUND:case _.HEAD:case _.LINK:case _.META:case _.NOFRAMES:case _.STYLE:{ts(e,t);break}case _.NOSCRIPT:{e._err(t,_e.nestedNoscriptInHead);break}default:m0(e,t)}}function _K(e,t){switch(t.tagID){case _.NOSCRIPT:{e.openElements.pop(),e.insertionMode=G.IN_HEAD;break}case _.BR:{m0(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function m0(e,t){const n=t.type===Nt.EOF?_e.openElementsLeftAfterEof:_e.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=G.IN_HEAD,e._processToken(t)}function TK(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.BODY:{e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=G.IN_BODY;break}case _.FRAMESET:{e._insertElement(t,Pe.HTML),e.insertionMode=G.IN_FRAMESET;break}case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{e._err(t,_e.abandonedHeadElementChild),e.openElements.push(e.headElement,_.HEAD),ts(e,t),e.openElements.remove(e.headElement);break}case _.HEAD:{e._err(t,_e.misplacedStartTagForHeadElement);break}default:p0(e,t)}}function AK(e,t){switch(t.tagID){case _.BODY:case _.HTML:case _.BR:{p0(e,t);break}case _.TEMPLATE:{ll(e,t);break}default:e._err(t,_e.endTagWithoutMatchingOpenElement)}}function p0(e,t){e._insertFakeElement(fe.BODY,_.BODY),e.insertionMode=G.IN_BODY,Ch(e,t)}function Ch(e,t){switch(t.type){case Nt.CHARACTER:{TC(e,t);break}case Nt.WHITESPACE_CHARACTER:{_C(e,t);break}case Nt.COMMENT:{z8(e,t);break}case Nt.START_TAG:{Cr(e,t);break}case Nt.END_TAG:{Rh(e,t);break}case Nt.EOF:{CC(e,t);break}}}function _C(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function TC(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function SK(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function wK(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function CK(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Pe.HTML),e.insertionMode=G.IN_FRAMESET)}function RK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function OK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&V8.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Pe.HTML)}function NK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function kK(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),n||(e.formElement=e.openElements.current))}function PK(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===_.LI&&a===_.LI||(n===_.DD||n===_.DT)&&(a===_.DD||a===_.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==_.ADDRESS&&a!==_.DIV&&a!==_.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Pe.HTML)}function DK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.tokenizer.state=Vn.PLAINTEXT}function LK(e,t){e.openElements.hasInScope(_.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1}function MK(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(fe.A);n&&(l4(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function IK(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jK(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(_.NOBR)&&(l4(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function HK(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function FK(e,t){e.treeAdapter.getDocumentMode(e.document)!==Aa.QUIRKS&&e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=G.IN_TABLE}function AC(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function SC(e){const t=hC(e,Bo.TYPE);return t!=null&&t.toLowerCase()===rK}function UK(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Pe.HTML),SC(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function BK(e,t){e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0}function VK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._appendElement(t,Pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zK(e,t){t.tagName=fe.IMG,t.tagID=_.IMG,AC(e,t)}function ZK(e,t){e._insertElement(t,Pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Vn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=G.TEXT}function qK(e,t){e.openElements.hasInButtonScope(_.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Vn.RAWTEXT)}function $K(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Vn.RAWTEXT)}function l5(e,t){e._switchToTextParsing(t,Vn.RAWTEXT)}function QK(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===G.IN_TABLE||e.insertionMode===G.IN_CAPTION||e.insertionMode===G.IN_TABLE_BODY||e.insertionMode===G.IN_ROW||e.insertionMode===G.IN_CELL?G.IN_SELECT_IN_TABLE:G.IN_SELECT}function YK(e,t){e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function GK(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Pe.HTML)}function KK(e,t){e.openElements.hasInScope(_.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(_.RTC),e._insertElement(t,Pe.HTML)}function XK(e,t){e._reconstructActiveFormattingElements(),bC(t),o4(t),t.selfClosing?e._appendElement(t,Pe.MATHML):e._insertElement(t,Pe.MATHML),t.ackSelfClosing=!0}function WK(e,t){e._reconstructActiveFormattingElements(),EC(t),o4(t),t.selfClosing?e._appendElement(t,Pe.SVG):e._insertElement(t,Pe.SVG),t.ackSelfClosing=!0}function u5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Pe.HTML)}function Cr(e,t){switch(t.tagID){case _.I:case _.S:case _.B:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.SMALL:case _.STRIKE:case _.STRONG:{IK(e,t);break}case _.A:{MK(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{OK(e,t);break}case _.P:case _.DL:case _.OL:case _.UL:case _.DIV:case _.DIR:case _.NAV:case _.MAIN:case _.MENU:case _.ASIDE:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.DETAILS:case _.ADDRESS:case _.ARTICLE:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{RK(e,t);break}case _.LI:case _.DD:case _.DT:{PK(e,t);break}case _.BR:case _.IMG:case _.WBR:case _.AREA:case _.EMBED:case _.KEYGEN:{AC(e,t);break}case _.HR:{VK(e,t);break}case _.RB:case _.RTC:{GK(e,t);break}case _.RT:case _.RP:{KK(e,t);break}case _.PRE:case _.LISTING:{NK(e,t);break}case _.XMP:{qK(e,t);break}case _.SVG:{WK(e,t);break}case _.HTML:{SK(e,t);break}case _.BASE:case _.LINK:case _.META:case _.STYLE:case _.TITLE:case _.SCRIPT:case _.BGSOUND:case _.BASEFONT:case _.TEMPLATE:{ts(e,t);break}case _.BODY:{wK(e,t);break}case _.FORM:{kK(e,t);break}case _.NOBR:{jK(e,t);break}case _.MATH:{XK(e,t);break}case _.TABLE:{FK(e,t);break}case _.INPUT:{UK(e,t);break}case _.PARAM:case _.TRACK:case _.SOURCE:{BK(e,t);break}case _.IMAGE:{zK(e,t);break}case _.BUTTON:{LK(e,t);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{HK(e,t);break}case _.IFRAME:{$K(e,t);break}case _.SELECT:{QK(e,t);break}case _.OPTION:case _.OPTGROUP:{YK(e,t);break}case _.NOEMBED:case _.NOFRAMES:{l5(e,t);break}case _.FRAMESET:{CK(e,t);break}case _.TEXTAREA:{ZK(e,t);break}case _.NOSCRIPT:{e.options.scriptingEnabled?l5(e,t):u5(e,t);break}case _.PLAINTEXT:{DK(e,t);break}case _.COL:case _.TH:case _.TD:case _.TR:case _.HEAD:case _.FRAME:case _.TBODY:case _.TFOOT:case _.THEAD:case _.CAPTION:case _.COLGROUP:break;default:u5(e,t)}}function JK(e,t){if(e.openElements.hasInScope(_.BODY)&&(e.insertionMode=G.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function eX(e,t){e.openElements.hasInScope(_.BODY)&&(e.insertionMode=G.AFTER_BODY,MC(e,t))}function tX(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function nX(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(_.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(_.FORM):n&&e.openElements.remove(n))}function rX(e){e.openElements.hasInButtonScope(_.P)||e._insertFakeElement(fe.P,_.P),e._closePElement()}function aX(e){e.openElements.hasInListItemScope(_.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(_.LI),e.openElements.popUntilTagNamePopped(_.LI))}function sX(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function iX(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function oX(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function lX(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(fe.BR,_.BR),e.openElements.pop(),e.framesetOk=!1}function wC(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],l=e.openElements.tagIDs[a];if(r===l&&(r!==_.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,l))break}}function Rh(e,t){switch(t.tagID){case _.A:case _.B:case _.I:case _.S:case _.U:case _.EM:case _.TT:case _.BIG:case _.CODE:case _.FONT:case _.NOBR:case _.SMALL:case _.STRIKE:case _.STRONG:{l4(e,t);break}case _.P:{rX(e);break}case _.DL:case _.UL:case _.OL:case _.DIR:case _.DIV:case _.NAV:case _.PRE:case _.MAIN:case _.MENU:case _.ASIDE:case _.BUTTON:case _.CENTER:case _.FIGURE:case _.FOOTER:case _.HEADER:case _.HGROUP:case _.DIALOG:case _.ADDRESS:case _.ARTICLE:case _.DETAILS:case _.SEARCH:case _.SECTION:case _.SUMMARY:case _.LISTING:case _.FIELDSET:case _.BLOCKQUOTE:case _.FIGCAPTION:{tX(e,t);break}case _.LI:{aX(e);break}case _.DD:case _.DT:{sX(e,t);break}case _.H1:case _.H2:case _.H3:case _.H4:case _.H5:case _.H6:{iX(e);break}case _.BR:{lX(e);break}case _.BODY:{JK(e,t);break}case _.HTML:{eX(e,t);break}case _.FORM:{nX(e);break}case _.APPLET:case _.OBJECT:case _.MARQUEE:{oX(e,t);break}case _.TEMPLATE:{ll(e,t);break}default:wC(e,t)}}function CC(e,t){e.tmplInsertionModeStack.length>0?LC(e,t):u4(e,t)}function uX(e,t){var n;t.tagID===_.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function cX(e,t){e._err(t,_e.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function q2(e,t){if(e.openElements.currentTagId!==void 0&&xC.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=G.IN_TABLE_TEXT,t.type){case Nt.CHARACTER:{OC(e,t);break}case Nt.WHITESPACE_CHARACTER:{RC(e,t);break}}else nd(e,t)}function dX(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Pe.HTML),e.insertionMode=G.IN_CAPTION}function fX(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=G.IN_COLUMN_GROUP}function hX(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.COLGROUP,_.COLGROUP),e.insertionMode=G.IN_COLUMN_GROUP,c4(e,t)}function mX(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Pe.HTML),e.insertionMode=G.IN_TABLE_BODY}function pX(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(fe.TBODY,_.TBODY),e.insertionMode=G.IN_TABLE_BODY,Oh(e,t)}function gX(e,t){e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function vX(e,t){SC(t)?e._appendElement(t,Pe.HTML):nd(e,t),t.ackSelfClosing=!0}function yX(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function _u(e,t){switch(t.tagID){case _.TD:case _.TH:case _.TR:{pX(e,t);break}case _.STYLE:case _.SCRIPT:case _.TEMPLATE:{ts(e,t);break}case _.COL:{hX(e,t);break}case _.FORM:{yX(e,t);break}case _.TABLE:{gX(e,t);break}case _.TBODY:case _.TFOOT:case _.THEAD:{mX(e,t);break}case _.INPUT:{vX(e,t);break}case _.CAPTION:{dX(e,t);break}case _.COLGROUP:{fX(e,t);break}default:nd(e,t)}}function O0(e,t){switch(t.tagID){case _.TABLE:{e.openElements.hasInTableScope(_.TABLE)&&(e.openElements.popUntilTagNamePopped(_.TABLE),e._resetInsertionMode());break}case _.TEMPLATE:{ll(e,t);break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:nd(e,t)}}function nd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Ch(e,t),e.fosterParentingEnabled=n}function RC(e,t){e.pendingCharacterTokens.push(t)}function OC(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Kc(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)nd(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const NC=new Set([_.CAPTION,_.COL,_.COLGROUP,_.TBODY,_.TD,_.TFOOT,_.TH,_.THEAD,_.TR]);function bX(e,t){const n=t.tagID;NC.has(n)?e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=G.IN_TABLE,_u(e,t)):Cr(e,t)}function EX(e,t){const n=t.tagID;switch(n){case _.CAPTION:case _.TABLE:{e.openElements.hasInTableScope(_.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(_.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=G.IN_TABLE,n===_.TABLE&&O0(e,t));break}case _.BODY:case _.COL:case _.COLGROUP:case _.HTML:case _.TBODY:case _.TD:case _.TFOOT:case _.TH:case _.THEAD:case _.TR:break;default:Rh(e,t)}}function c4(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.COL:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case _.TEMPLATE:{ts(e,t);break}default:g1(e,t)}}function xX(e,t){switch(t.tagID){case _.COLGROUP:{e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=G.IN_TABLE);break}case _.TEMPLATE:{ll(e,t);break}case _.COL:break;default:g1(e,t)}}function g1(e,t){e.openElements.currentTagId===_.COLGROUP&&(e.openElements.pop(),e.insertionMode=G.IN_TABLE,e._processToken(t))}function Oh(e,t){switch(t.tagID){case _.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Pe.HTML),e.insertionMode=G.IN_ROW;break}case _.TH:case _.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(fe.TR,_.TR),e.insertionMode=G.IN_ROW,Nh(e,t);break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE,_u(e,t));break}default:_u(e,t)}}function Z8(e,t){const n=t.tagID;switch(t.tagID){case _.TBODY:case _.TFOOT:case _.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE);break}case _.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE,O0(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:case _.TR:break;default:O0(e,t)}}function Nh(e,t){switch(t.tagID){case _.TH:case _.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Pe.HTML),e.insertionMode=G.IN_CELL,e.activeFormattingElements.insertMarker();break}case _.CAPTION:case _.COL:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE_BODY,Oh(e,t));break}default:_u(e,t)}}function kC(e,t){switch(t.tagID){case _.TR:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE_BODY);break}case _.TABLE:{e.openElements.hasInTableScope(_.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE_BODY,Z8(e,t));break}case _.TBODY:case _.TFOOT:case _.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(_.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=G.IN_TABLE_BODY,Z8(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:case _.TD:case _.TH:break;default:O0(e,t)}}function _X(e,t){const n=t.tagID;NC.has(n)?(e.openElements.hasInTableScope(_.TD)||e.openElements.hasInTableScope(_.TH))&&(e._closeTableCell(),Nh(e,t)):Cr(e,t)}function TX(e,t){const n=t.tagID;switch(n){case _.TD:case _.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=G.IN_ROW);break}case _.TABLE:case _.TBODY:case _.TFOOT:case _.THEAD:case _.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),kC(e,t));break}case _.BODY:case _.CAPTION:case _.COL:case _.COLGROUP:case _.HTML:break;default:Rh(e,t)}}function PC(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case _.OPTGROUP:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Pe.HTML);break}case _.HR:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case _.INPUT:case _.KEYGEN:case _.TEXTAREA:case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),t.tagID!==_.SELECT&&e._processStartTag(t));break}case _.SCRIPT:case _.TEMPLATE:{ts(e,t);break}}}function DC(e,t){switch(t.tagID){case _.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===_.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===_.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===_.OPTGROUP&&e.openElements.pop();break}case _.OPTION:{e.openElements.currentTagId===_.OPTION&&e.openElements.pop();break}case _.SELECT:{e.openElements.hasInSelectScope(_.SELECT)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode());break}case _.TEMPLATE:{ll(e,t);break}}}function AX(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e._processStartTag(t)):PC(e,t)}function SX(e,t){const n=t.tagID;n===_.CAPTION||n===_.TABLE||n===_.TBODY||n===_.TFOOT||n===_.THEAD||n===_.TR||n===_.TD||n===_.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(_.SELECT),e._resetInsertionMode(),e.onEndTag(t)):DC(e,t)}function wX(e,t){switch(t.tagID){case _.BASE:case _.BASEFONT:case _.BGSOUND:case _.LINK:case _.META:case _.NOFRAMES:case _.SCRIPT:case _.STYLE:case _.TEMPLATE:case _.TITLE:{ts(e,t);break}case _.CAPTION:case _.COLGROUP:case _.TBODY:case _.TFOOT:case _.THEAD:{e.tmplInsertionModeStack[0]=G.IN_TABLE,e.insertionMode=G.IN_TABLE,_u(e,t);break}case _.COL:{e.tmplInsertionModeStack[0]=G.IN_COLUMN_GROUP,e.insertionMode=G.IN_COLUMN_GROUP,c4(e,t);break}case _.TR:{e.tmplInsertionModeStack[0]=G.IN_TABLE_BODY,e.insertionMode=G.IN_TABLE_BODY,Oh(e,t);break}case _.TD:case _.TH:{e.tmplInsertionModeStack[0]=G.IN_ROW,e.insertionMode=G.IN_ROW,Nh(e,t);break}default:e.tmplInsertionModeStack[0]=G.IN_BODY,e.insertionMode=G.IN_BODY,Cr(e,t)}}function CX(e,t){t.tagID===_.TEMPLATE&&ll(e,t)}function LC(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(_.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):u4(e,t)}function RX(e,t){t.tagID===_.HTML?Cr(e,t):v1(e,t)}function MC(e,t){var n;if(t.tagID===_.HTML){if(e.fragmentContext||(e.insertionMode=G.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===_.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else v1(e,t)}function v1(e,t){e.insertionMode=G.IN_BODY,Ch(e,t)}function OX(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.FRAMESET:{e._insertElement(t,Pe.HTML);break}case _.FRAME:{e._appendElement(t,Pe.HTML),t.ackSelfClosing=!0;break}case _.NOFRAMES:{ts(e,t);break}}}function NX(e,t){t.tagID===_.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==_.FRAMESET&&(e.insertionMode=G.AFTER_FRAMESET))}function kX(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.NOFRAMES:{ts(e,t);break}}}function PX(e,t){t.tagID===_.HTML&&(e.insertionMode=G.AFTER_AFTER_FRAMESET)}function DX(e,t){t.tagID===_.HTML?Cr(e,t):Yf(e,t)}function Yf(e,t){e.insertionMode=G.IN_BODY,Ch(e,t)}function LX(e,t){switch(t.tagID){case _.HTML:{Cr(e,t);break}case _.NOFRAMES:{ts(e,t);break}}}function MX(e,t){t.chars=Sn,e._insertCharacters(t)}function IX(e,t){e._insertCharacters(t),e.framesetOk=!1}function IC(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Pe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function jX(e,t){if(WG(t))IC(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Pe.MATHML?bC(t):r===Pe.SVG&&(JG(t),EC(t)),o4(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function HX(e,t){if(t.tagID===_.P||t.tagID===_.BR){IC(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Pe.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}fe.AREA,fe.BASE,fe.BASEFONT,fe.BGSOUND,fe.BR,fe.COL,fe.EMBED,fe.FRAME,fe.HR,fe.IMG,fe.INPUT,fe.KEYGEN,fe.LINK,fe.META,fe.PARAM,fe.SOURCE,fe.TRACK,fe.WBR;const FX=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,UX=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),c5={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function jC(e,t){const n=KX(e),r=lC("type",{handlers:{root:BX,element:VX,text:zX,comment:FC,doctype:ZX,raw:$X},unknown:QX}),a={parser:n?new o5(c5):o5.getFragmentParser(void 0,c5),handle(u){r(u,a)},stitches:!1,options:t||{}};r(e,a),Zu(a,ks());const i=n?a.parser.document:a.parser.getFragment(),l=BY(i,{file:a.options.file});return a.stitches&&wh(l,"comment",function(u,d,h){const g=u;if(g.value.stitch&&h&&d!==void 0){const m=h.children;return m[d]=g.value.stitch,d}}),l.type==="root"&&l.children.length===1&&l.children[0].type===e.type?l.children[0]:l}function HC(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function BX(e,t){HC(e.children,t)}function VX(e,t){YX(e,t),HC(e.children,t),GX(e,t)}function zX(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Nt.CHARACTER,chars:e.value,location:rd(e)};Zu(t,ks(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ZX(e,t){const n={type:Nt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:rd(e)};Zu(t,ks(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function qX(e,t){t.stitches=!0;const n=XX(e);if("children"in e&&"children"in n){const r=jC({type:"root",children:e.children},t.options);n.children=r.children}FC({type:"comment",value:{stitch:n}},t)}function FC(e,t){const n=e.value,r={type:Nt.COMMENT,data:n,location:rd(e)};Zu(t,ks(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function $X(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,UC(t,ks(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(FX,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function QX(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))qX(n,t);else{let r="";throw UX.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Zu(e,t){UC(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Vn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function UC(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function YX(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Vn.PLAINTEXT)return;Zu(t,ks(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Fo.html;a===Fo.html&&n==="svg"&&(a=Fo.svg);const i=nG({...e,children:[]},{space:a===Fo.svg?"svg":"html"}),l={type:Nt.START_TAG,tagName:n,tagID:zu(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:rd(e)};t.parser.currentToken=l,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function GX(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&cG.includes(n)||t.parser.tokenizer.state===Vn.PLAINTEXT)return;Zu(t,Eh(e));const r={type:Nt.END_TAG,tagName:n,tagID:zu(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:rd(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Vn.RCDATA||t.parser.tokenizer.state===Vn.RAWTEXT||t.parser.tokenizer.state===Vn.SCRIPT_DATA)&&(t.parser.tokenizer.state=Vn.DATA)}function KX(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function rd(e){const t=ks(e)||{line:void 0,column:void 0,offset:void 0},n=Eh(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function XX(e){return"children"in e?xu({...e,children:[]}):xu(e)}function BC(e){return function(t,n){return jC(t,{...e,file:n})}}function d5(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function WX(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function JX(e,t,n){const a=Ah((n||{}).ignore||[]),i=eW(t);let l=-1;for(;++l<i.length;)Qw(e,"text",u);function u(h,g){let m=-1,E;for(;++m<g.length;){const b=g[m],T=E?E.children:void 0;if(a(b,T?T.indexOf(b):void 0,E))return;E=b}if(E)return d(h,g)}function d(h,g){const m=g[g.length-1],E=i[l][0],b=i[l][1];let T=0;const S=m.children.indexOf(h);let w=!1,R=[];E.lastIndex=0;let P=E.exec(h.value);for(;P;){const M=P.index,I={index:P.index,input:P.input,stack:[...g,h]};let N=b(...P,I);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?E.lastIndex=M+1:(T!==M&&R.push({type:"text",value:h.value.slice(T,M)}),Array.isArray(N)?R.push(...N):N&&R.push(N),T=M+P[0].length,w=!0),!E.global)break;P=E.exec(h.value)}return w?(T<h.value.length&&R.push({type:"text",value:h.value.slice(T)}),m.children.splice(S,1,...R)):R=[h],S+R.length}}function eW(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([tW(a[0]),nW(a[1])])}return t}function tW(e){return typeof e=="string"?new RegExp(WX(e),"g"):e}function nW(e){return typeof e=="function"?e:function(){return e}}const $2="phrasing",Q2=["autolink","link","image","label"];function rW(){return{transforms:[cW],enter:{literalAutolink:sW,literalAutolinkEmail:Y2,literalAutolinkHttp:Y2,literalAutolinkWww:Y2},exit:{literalAutolink:uW,literalAutolinkEmail:lW,literalAutolinkHttp:iW,literalAutolinkWww:oW}}}function aW(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$2,notInConstruct:Q2},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$2,notInConstruct:Q2},{character:":",before:"[ps]",after:"\\/",inConstruct:$2,notInConstruct:Q2}]}}function sW(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Y2(e){this.config.enter.autolinkProtocol.call(this,e)}function iW(e){this.config.exit.autolinkProtocol.call(this,e)}function oW(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lW(e){this.config.exit.autolinkEmail.call(this,e)}function uW(e){this.exit(e)}function cW(e){JX(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dW],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),fW]],{ignore:["link","linkReference"]})}function dW(e,t,n,r,a){let i="";if(!VC(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!hW(n)))return!1;const l=mW(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:i+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function fW(e,t,n,r){return!VC(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function hW(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function mW(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=d5(e,"(");let i=d5(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function VC(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Qo(n)||xh(n))&&(!t||n!==47)}zC.peek=TW;function pW(){this.buffer()}function gW(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function vW(){this.buffer()}function yW(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bW(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function EW(e){this.exit(e)}function xW(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qa(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _W(e){this.exit(e)}function TW(){return"["}function zC(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const l=n.enter("footnoteReference"),u=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),u(),l(),i+=a.move("]"),i}function AW(){return{enter:{gfmFootnoteCallString:pW,gfmFootnoteCall:gW,gfmFootnoteDefinitionLabelString:vW,gfmFootnoteDefinition:yW},exit:{gfmFootnoteCallString:bW,gfmFootnoteCall:EW,gfmFootnoteDefinitionLabelString:xW,gfmFootnoteDefinition:_W}}}function SW(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:zC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,l){const u=i.createTracker(l);let d=u.move("[^");const h=i.enter("footnoteDefinition"),g=i.enter("label");return d+=u.move(i.safe(i.associationId(r),{before:d,after:"]"})),g(),d+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),d+=u.move((t?`
|
|
133
|
+
`:" ")+i.indentLines(i.containerFlow(r,u.current()),t?ZC:wW))),h(),d}}function wW(e,t,n){return t===0?e:ZC(e,t,n)}function ZC(e,t,n){return(n?"":" ")+e}const CW=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qC.peek=PW;function RW(){return{canContainEols:["delete"],enter:{strikethrough:NW},exit:{strikethrough:kW}}}function OW(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CW}],handlers:{delete:qC}}}function NW(e){this.enter({type:"delete",children:[]},e)}function kW(e){this.exit(e)}function qC(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),i(),l}function PW(){return"~"}function DW(e){return e.length}function LW(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||DW,i=[],l=[],u=[],d=[];let h=0,g=-1;for(;++g<e.length;){const A=[],S=[];let w=-1;for(e[g].length>h&&(h=e[g].length);++w<e[g].length;){const R=MW(e[g][w]);if(n.alignDelimiters!==!1){const P=a(R);S[w]=P,(d[w]===void 0||P>d[w])&&(d[w]=P)}A.push(R)}l[g]=A,u[g]=S}let m=-1;if(typeof r=="object"&&"length"in r)for(;++m<h;)i[m]=f5(r[m]);else{const A=f5(r);for(;++m<h;)i[m]=A}m=-1;const E=[],b=[];for(;++m<h;){const A=i[m];let S="",w="";A===99?(S=":",w=":"):A===108?S=":":A===114&&(w=":");let R=n.alignDelimiters===!1?1:Math.max(1,d[m]-S.length-w.length);const P=S+"-".repeat(R)+w;n.alignDelimiters!==!1&&(R=S.length+R+w.length,R>d[m]&&(d[m]=R),b[m]=R),E[m]=P}l.splice(1,0,E),u.splice(1,0,b),g=-1;const T=[];for(;++g<l.length;){const A=l[g],S=u[g];m=-1;const w=[];for(;++m<h;){const R=A[m]||"";let P="",M="";if(n.alignDelimiters!==!1){const I=d[m]-(S[m]||0),N=i[m];N===114?P=" ".repeat(I):N===99?I%2?(P=" ".repeat(I/2+.5),M=" ".repeat(I/2-.5)):(P=" ".repeat(I/2),M=P):M=" ".repeat(I)}n.delimiterStart!==!1&&!m&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&R==="")&&(n.delimiterStart!==!1||m)&&w.push(" "),n.alignDelimiters!==!1&&w.push(P),w.push(R),n.alignDelimiters!==!1&&w.push(M),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||m!==h-1)&&w.push("|")}T.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return T.join(`
|
|
134
|
+
`)}function MW(e){return e==null?"":String(e)}function f5(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function IW(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),jW);return a(),l}function jW(e,t,n){return">"+(n?"":" ")+e}function HW(e,t){return h5(e,t.inConstruct,!0)&&!h5(e,t.notInConstruct,!1)}function h5(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function m5(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
135
|
+
`&&HW(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
136
|
+
`}function FW(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>l&&(l=i):i=1,a=r+t.length,r=n.indexOf(t,a);return l}function UW(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function BW(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function VW(e,t,n,r){const a=BW(n),i=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(UW(e,n)){const m=n.enter("codeIndented"),E=n.indentLines(i,zW);return m(),E}const u=n.createTracker(r),d=a.repeat(Math.max(FW(i,a)+1,3)),h=n.enter("codeFenced");let g=u.move(d);if(e.lang){const m=n.enter(`codeFencedLang${l}`);g+=u.move(n.safe(e.lang,{before:g,after:" ",encode:["`"],...u.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${l}`);g+=u.move(" "),g+=u.move(n.safe(e.meta,{before:g,after:`
|
|
137
|
+
`,encode:["`"],...u.current()})),m()}return g+=u.move(`
|
|
138
|
+
`),i&&(g+=u.move(i+`
|
|
139
|
+
`)),g+=u.move(d),h(),g}function zW(e,t,n){return(n?"":" ")+e}function d4(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ZW(e,t,n,r){const a=d4(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let u=n.enter("label");const d=n.createTracker(r);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(u=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":`
|
|
140
|
+
`,...d.current()}))),u(),e.title&&(u=n.enter(`title${i}`),h+=d.move(" "+a),h+=d.move(n.safe(e.title,{before:h,after:a,...d.current()})),h+=d.move(a),u()),l(),h}function qW(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function N0(e){return"&#x"+e.toString(16).toUpperCase()+";"}function y1(e,t,n){const r=Eu(e),a=Eu(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}$C.peek=$W;function $C(e,t,n,r){const a=qW(n),i=n.enter("emphasis"),l=n.createTracker(r),u=l.move(a);let d=l.move(n.containerPhrasing(e,{after:a,before:u,...l.current()}));const h=d.charCodeAt(0),g=y1(r.before.charCodeAt(r.before.length-1),h,a);g.inside&&(d=N0(h)+d.slice(1));const m=d.charCodeAt(d.length-1),E=y1(r.after.charCodeAt(0),m,a);E.inside&&(d=d.slice(0,-1)+N0(m));const b=l.move(a);return i(),n.attentionEncodeSurroundingInfo={after:E.outside,before:g.outside},u+d+b}function $W(e,t,n){return n.options.emphasis||"*"}function QW(e,t){let n=!1;return wh(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,L8}),!!((!e.depth||e.depth<3)&&Kv(e)&&(t.options.setext||n))}function YW(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(QW(e,n)){const g=n.enter("headingSetext"),m=n.enter("phrasing"),E=n.containerPhrasing(e,{...i.current(),before:`
|
|
141
|
+
`,after:`
|
|
142
|
+
`});return m(),g(),E+`
|
|
143
|
+
`+(a===1?"=":"-").repeat(E.length-(Math.max(E.lastIndexOf("\r"),E.lastIndexOf(`
|
|
144
|
+
`))+1))}const l="#".repeat(a),u=n.enter("headingAtx"),d=n.enter("phrasing");i.move(l+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
|
|
145
|
+
`,...i.current()});return/^[\t ]/.test(h)&&(h=N0(h.charCodeAt(0))+h.slice(1)),h=h?l+" "+h:l,n.options.closeAtx&&(h+=" "+l),d(),u(),h}QC.peek=GW;function QC(e){return e.value||""}function GW(){return"<"}YC.peek=KW;function YC(e,t,n,r){const a=d4(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const d=n.createTracker(r);let h=d.move("![");return h+=d.move(n.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(u=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),u(),e.title&&(u=n.enter(`title${i}`),h+=d.move(" "+a),h+=d.move(n.safe(e.title,{before:h,after:a,...d.current()})),h+=d.move(a),u()),h+=d.move(")"),l(),h}function KW(){return"!"}GC.peek=XW;function GC(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("![");const h=n.safe(e.alt,{before:d,after:"]",...u.current()});d+=u.move(h+"]["),l();const g=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...u.current()});return l(),n.stack=g,i(),a==="full"||!h||h!==m?d+=u.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=u.move("]"),d}function XW(){return"!"}KC.peek=WW;function KC(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const l=n.unsafe[i],u=n.compilePattern(l);let d;if(l.atBreak)for(;d=u.exec(r);){let h=d.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(d.index+1)}}return a+r+a}function WW(){return"`"}function XC(e,t){const n=Kv(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}WC.peek=JW;function WC(e,t,n,r){const a=d4(n),i=a==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let u,d;if(XC(e,n)){const g=n.stack;n.stack=[],u=n.enter("autolink");let m=l.move("<");return m+=l.move(n.containerPhrasing(e,{before:m,after:">",...l.current()})),m+=l.move(">"),u(),n.stack=g,m}u=n.enter("link"),d=n.enter("label");let h=l.move("[");return h+=l.move(n.containerPhrasing(e,{before:h,after:"](",...l.current()})),h+=l.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=l.move("<"),h+=l.move(n.safe(e.url,{before:h,after:">",...l.current()})),h+=l.move(">")):(d=n.enter("destinationRaw"),h+=l.move(n.safe(e.url,{before:h,after:e.title?" ":")",...l.current()}))),d(),e.title&&(d=n.enter(`title${i}`),h+=l.move(" "+a),h+=l.move(n.safe(e.title,{before:h,after:a,...l.current()})),h+=l.move(a),d()),h+=l.move(")"),u(),h}function JW(e,t,n){return XC(e,n)?"<":"["}JC.peek=eJ;function JC(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let d=u.move("[");const h=n.containerPhrasing(e,{before:d,after:"]",...u.current()});d+=u.move(h+"]["),l();const g=n.stack;n.stack=[],l=n.enter("reference");const m=n.safe(n.associationId(e),{before:d,after:"]",...u.current()});return l(),n.stack=g,i(),a==="full"||!h||h!==m?d+=u.move(m+"]"):a==="shortcut"?d=d.slice(0,-1):d+=u.move("]"),d}function eJ(){return"["}function f4(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function tJ(e){const t=f4(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function nJ(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function eR(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function rJ(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?nJ(n):f4(n);const u=e.ordered?l==="."?")":".":tJ(n);let d=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&g&&(!g.children||!g.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),eR(n)===l&&g){let m=-1;for(;++m<e.children.length;){const E=e.children[m];if(E&&E.type==="listItem"&&E.children&&E.children[0]&&E.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(l=u),n.bulletCurrent=l;const h=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=i,a(),h}function aJ(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function sJ(e,t,n,r){const a=aJ(n);let i=n.bulletCurrent||f4(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let l=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=n.createTracker(r);u.move(i+" ".repeat(l-i.length)),u.shift(l);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,u.current()),g);return d(),h;function g(m,E,b){return E?(b?"":" ".repeat(l))+m:(b?i:i+" ".repeat(l-i.length))+m}}function iJ(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,r);return i(),a(),l}const oJ=Ah(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lJ(e,t,n,r){return(e.children.some(function(l){return oJ(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function uJ(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}tR.peek=cJ;function tR(e,t,n,r){const a=uJ(n),i=n.enter("strong"),l=n.createTracker(r),u=l.move(a+a);let d=l.move(n.containerPhrasing(e,{after:a,before:u,...l.current()}));const h=d.charCodeAt(0),g=y1(r.before.charCodeAt(r.before.length-1),h,a);g.inside&&(d=N0(h)+d.slice(1));const m=d.charCodeAt(d.length-1),E=y1(r.after.charCodeAt(0),m,a);E.inside&&(d=d.slice(0,-1)+N0(m));const b=l.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:E.outside,before:g.outside},u+d+b}function cJ(e,t,n){return n.options.strong||"*"}function dJ(e,t,n,r){return n.safe(e.value,r)}function fJ(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function hJ(e,t,n){const r=(eR(n)+(n.options.ruleSpaces?" ":"")).repeat(fJ(n));return n.options.ruleSpaces?r.slice(0,-1):r}const nR={blockquote:IW,break:m5,code:VW,definition:ZW,emphasis:$C,hardBreak:m5,heading:YW,html:QC,image:YC,imageReference:GC,inlineCode:KC,link:WC,linkReference:JC,list:rJ,listItem:sJ,paragraph:iJ,root:lJ,strong:tR,text:dJ,thematicBreak:hJ};function mJ(){return{enter:{table:pJ,tableData:p5,tableHeader:p5,tableRow:vJ},exit:{codeText:yJ,table:gJ,tableData:G2,tableHeader:G2,tableRow:G2}}}function pJ(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function gJ(e){this.exit(e),this.data.inTable=void 0}function vJ(e){this.enter({type:"tableRow",children:[]},e)}function G2(e){this.exit(e)}function p5(e){this.enter({type:"tableCell",children:[]},e)}function yJ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bJ));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bJ(e,t){return t==="|"?t:e}function EJ(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
146
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:E,table:l,tableCell:d,tableRow:u}};function l(b,T,A,S){return h(g(b,A,S),b.align)}function u(b,T,A,S){const w=m(b,A,S),R=h([w]);return R.slice(0,R.indexOf(`
|
|
147
|
+
`))}function d(b,T,A,S){const w=A.enter("tableCell"),R=A.enter("phrasing"),P=A.containerPhrasing(b,{...S,before:i,after:i});return R(),w(),P}function h(b,T){return LW(b,{align:T,alignDelimiters:r,padding:n,stringLength:a})}function g(b,T,A){const S=b.children;let w=-1;const R=[],P=T.enter("table");for(;++w<S.length;)R[w]=m(S[w],T,A);return P(),R}function m(b,T,A){const S=b.children;let w=-1;const R=[],P=T.enter("tableRow");for(;++w<S.length;)R[w]=d(S[w],b,T,A);return P(),R}function E(b,T,A){let S=nR.inlineCode(b,T,A);return A.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function xJ(){return{exit:{taskListCheckValueChecked:g5,taskListCheckValueUnchecked:g5,paragraph:TJ}}}function _J(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:AJ}}}function g5(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function TJ(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,l;for(;++i<a.length;){const u=a[i];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function AJ(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);i&&u.move(l);let d=nR.listItem(e,t,n,{...r,...u.current()});return i&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(g){return g+l}}function SJ(){return[rW(),AW(),RW(),mJ(),xJ()]}function wJ(e){return{extensions:[aW(),SW(e),OW(),EJ(e),_J()]}}const CJ={tokenize:DJ,partial:!0},rR={tokenize:LJ,partial:!0},aR={tokenize:MJ,partial:!0},sR={tokenize:IJ,partial:!0},RJ={tokenize:jJ,partial:!0},iR={name:"wwwAutolink",tokenize:kJ,previous:lR},oR={name:"protocolAutolink",tokenize:PJ,previous:uR},yi={name:"emailAutolink",tokenize:NJ,previous:cR},Ps={};function OJ(){return{text:Ps}}let Io=48;for(;Io<123;)Ps[Io]=yi,Io++,Io===58?Io=65:Io===91&&(Io=97);Ps[43]=yi;Ps[45]=yi;Ps[46]=yi;Ps[95]=yi;Ps[72]=[yi,oR];Ps[104]=[yi,oR];Ps[87]=[yi,iR];Ps[119]=[yi,iR];function NJ(e,t,n){const r=this;let a,i;return l;function l(m){return!q8(m)||!cR.call(r,r.previous)||h4(r.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(m))}function u(m){return q8(m)?(e.consume(m),u):m===64?(e.consume(m),d):n(m)}function d(m){return m===46?e.check(RJ,g,h)(m):m===45||m===95||Sr(m)?(i=!0,e.consume(m),d):g(m)}function h(m){return e.consume(m),a=!0,d}function g(m){return i&&a&&Dr(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function kJ(e,t,n){const r=this;return a;function a(l){return l!==87&&l!==119||!lR.call(r,r.previous)||h4(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(CJ,e.attempt(rR,e.attempt(aR,i),n),n)(l))}function i(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function PJ(e,t,n){const r=this;let a="",i=!1;return l;function l(m){return(m===72||m===104)&&uR.call(r,r.previous)&&!h4(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(m),e.consume(m),u):n(m)}function u(m){if(Dr(m)&&a.length<5)return a+=String.fromCodePoint(m),e.consume(m),u;if(m===58){const E=a.toLowerCase();if(E==="http"||E==="https")return e.consume(m),d}return n(m)}function d(m){return m===47?(e.consume(m),i?h:(i=!0,d)):n(m)}function h(m){return m===null||h1(m)||fn(m)||Qo(m)||xh(m)?n(m):e.attempt(rR,e.attempt(aR,g),n)(m)}function g(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function DJ(e,t,n){let r=0;return a;function a(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),a):l===46&&r===3?(e.consume(l),i):n(l)}function i(l){return l===null?n(l):t(l)}}function LJ(e,t,n){let r,a,i;return l;function l(h){return h===46||h===95?e.check(sR,d,u)(h):h===null||fn(h)||Qo(h)||h!==45&&xh(h)?d(h):(i=!0,e.consume(h),l)}function u(h){return h===95?r=!0:(a=r,r=void 0),e.consume(h),l}function d(h){return a||r||!i?n(h):t(h)}}function MJ(e,t){let n=0,r=0;return a;function a(l){return l===40?(n++,e.consume(l),a):l===41&&r<n?i(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(sR,t,i)(l):l===null||fn(l)||Qo(l)?t(l):(e.consume(l),a)}function i(l){return l===41&&r++,e.consume(l),a}}function IJ(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),i):u===93?(e.consume(u),a):u===60||u===null||fn(u)||Qo(u)?t(u):n(u)}function a(u){return u===null||u===40||u===91||fn(u)||Qo(u)?t(u):r(u)}function i(u){return Dr(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):Dr(u)?(e.consume(u),l):n(u)}}function jJ(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Sr(i)?n(i):t(i)}}function lR(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||fn(e)}function uR(e){return!Dr(e)}function cR(e){return!(e===47||q8(e))}function q8(e){return e===43||e===45||e===46||e===95||Sr(e)}function h4(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const HJ={tokenize:$J,partial:!0};function FJ(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:zJ,continuation:{tokenize:ZJ},exit:qJ}},text:{91:{name:"gfmFootnoteCall",tokenize:VJ},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:UJ,resolveTo:BJ}}}}function UJ(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;a--;){const d=r.events[a][1];if(d.type==="labelImage"){l=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return u;function u(d){if(!l||!l._balanced)return n(d);const h=Qa(r.sliceSerialize({start:l.end,end:r.now()}));return h.codePointAt(0)!==94||!i.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function BJ(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function VJ(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,l;return u;function u(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),d}function d(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(m){if(i>999||m===93&&!l||m===null||m===91||fn(m))return n(m);if(m===93){e.exit("chunkString");const E=e.exit("gfmFootnoteCallString");return a.includes(Qa(r.sliceSerialize(E)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return fn(m)||(l=!0),i++,e.consume(m),m===92?g:h}function g(m){return m===91||m===92||m===93?(e.consume(m),i++,h):h(m)}}function zJ(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,l=0,u;return d;function d(T){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(T){return T===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):n(T)}function g(T){if(l>999||T===93&&!u||T===null||T===91||fn(T))return n(T);if(T===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return i=Qa(r.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(T),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),E}return fn(T)||(u=!0),l++,e.consume(T),T===92?m:g}function m(T){return T===91||T===92||T===93?(e.consume(T),l++,g):g(T)}function E(T){return T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),a.includes(i)||a.push(i),Ut(e,b,"gfmFootnoteDefinitionWhitespace")):n(T)}function b(T){return t(T)}}function ZJ(e,t,n){return e.check(J0,t,e.attempt(HJ,t,n))}function qJ(e){e.exit("gfmFootnoteDefinition")}function $J(e,t,n){const r=this;return Ut(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(i):n(i)}}function QJ(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(l,u){let d=-1;for(;++d<l.length;)if(l[d][0]==="enter"&&l[d][1].type==="strikethroughSequenceTemporary"&&l[d][1]._close){let h=d;for(;h--;)if(l[h][0]==="exit"&&l[h][1].type==="strikethroughSequenceTemporary"&&l[h][1]._open&&l[d][1].end.offset-l[d][1].start.offset===l[h][1].end.offset-l[h][1].start.offset){l[d][1].type="strikethroughSequence",l[h][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},l[h][1].start),end:Object.assign({},l[d][1].end)},m={type:"strikethroughText",start:Object.assign({},l[h][1].end),end:Object.assign({},l[d][1].start)},E=[["enter",g,u],["enter",l[h][1],u],["exit",l[h][1],u],["enter",m,u]],b=u.parser.constructs.insideSpan.null;b&&fa(E,E.length,0,_h(b,l.slice(h+1,d),u)),fa(E,E.length,0,[["exit",m,u],["enter",l[d][1],u],["exit",l[d][1],u],["exit",g,u]]),fa(l,h-1,d-h+3,E),d=h+E.length-2;break}}for(d=-1;++d<l.length;)l[d][1].type==="strikethroughSequenceTemporary"&&(l[d][1].type="data");return l}function i(l,u,d){const h=this.previous,g=this.events;let m=0;return E;function E(T){return h===126&&g[g.length-1][1].type!=="characterEscape"?d(T):(l.enter("strikethroughSequenceTemporary"),b(T))}function b(T){const A=Eu(h);if(T===126)return m>1?d(T):(l.consume(T),m++,b);if(m<2&&!n)return d(T);const S=l.exit("strikethroughSequenceTemporary"),w=Eu(T);return S._open=!w||w===2&&!!A,S._close=!A||A===2&&!!w,u(T)}}}class YJ{constructor(){this.map=[]}add(t,n,r){GJ(this,t,n,r)}consume(t){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function GJ(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function KJ(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function XJ(){return{flow:{null:{name:"table",tokenize:WJ,resolveAll:JJ}}}}function WJ(e,t,n){const r=this;let a=0,i=0,l;return u;function u(k){let U=r.events.length-1;for(;U>-1;){const Y=r.events[U][1].type;if(Y==="lineEnding"||Y==="linePrefix")U--;else break}const F=U>-1?r.events[U][1].type:null,Q=F==="tableHead"||F==="tableRow"?N:d;return Q===N&&r.parser.lazy[r.now().line]?n(k):Q(k)}function d(k){return e.enter("tableHead"),e.enter("tableRow"),h(k)}function h(k){return k===124||(l=!0,i+=1),g(k)}function g(k){return k===null?n(k):lt(k)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),b):n(k):Lt(k)?Ut(e,g,"whitespace")(k):(i+=1,l&&(l=!1,a+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,g):(e.enter("data"),m(k)))}function m(k){return k===null||k===124||fn(k)?(e.exit("data"),g(k)):(e.consume(k),k===92?E:m)}function E(k){return k===92||k===124?(e.consume(k),m):m(k)}function b(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,Lt(k)?Ut(e,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):T(k))}function T(k){return k===45||k===58?S(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),A):I(k)}function A(k){return Lt(k)?Ut(e,S,"whitespace")(k):S(k)}function S(k){return k===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),w):k===45?(i+=1,w(k)):k===null||lt(k)?M(k):I(k)}function w(k){return k===45?(e.enter("tableDelimiterFiller"),R(k)):I(k)}function R(k){return k===45?(e.consume(k),R):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),P):(e.exit("tableDelimiterFiller"),P(k))}function P(k){return Lt(k)?Ut(e,M,"whitespace")(k):M(k)}function M(k){return k===124?T(k):k===null||lt(k)?!l||a!==i?I(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):I(k)}function I(k){return n(k)}function N(k){return e.enter("tableRow"),L(k)}function L(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),L):k===null||lt(k)?(e.exit("tableRow"),t(k)):Lt(k)?Ut(e,L,"whitespace")(k):(e.enter("data"),D(k))}function D(k){return k===null||k===124||fn(k)?(e.exit("data"),L(k)):(e.consume(k),k===92?B:D)}function B(k){return k===92||k===124?(e.consume(k),D):D(k)}}function JJ(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],l=[0,0,0,0],u=!1,d=0,h,g,m;const E=new YJ;for(;++n<e.length;){const b=e[n],T=b[1];b[0]==="enter"?T.type==="tableHead"?(u=!1,d!==0&&(v5(E,t,d,h,g),g=void 0,d=0),h={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},E.add(n,0,[["enter",h,t]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(r=!0,m=void 0,i=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,g={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},E.add(n,0,[["enter",g,t]])),a=T.type==="tableDelimiterRow"?2:g?3:1):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(i[1]!==0&&(l[0]=l[1],m=If(E,t,i,a,void 0,m),i=[0,0,0,0]),l[2]=n)):T.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(l[0]=l[1],m=If(E,t,i,a,void 0,m)),i=l,l=[i[1],n,0,0])):T.type==="tableHead"?(u=!0,d=n):T.type==="tableRow"||T.type==="tableDelimiterRow"?(d=n,i[1]!==0?(l[0]=l[1],m=If(E,t,i,a,n,m)):l[1]!==0&&(m=If(E,t,l,a,n,m)),a=0):a&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(l[3]=n)}for(d!==0&&v5(E,t,d,h,g),E.consume(t.events),n=-1;++n<t.events.length;){const b=t.events[n];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=KJ(t.events,n))}return e}function If(e,t,n,r,a,i){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(i.end=Object.assign({},eu(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const d=eu(t.events,n[1]);if(i={type:l,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const h=eu(t.events,n[2]),g=eu(t.events,n[3]),m={type:u,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(n[2],0,[["enter",m,t]]),r!==2){const E=t.events[n[2]],b=t.events[n[3]];if(E[1].end=Object.assign({},b[1].end),E[1].type="chunkText",E[1].contentType="text",n[3]>n[2]+1){const T=n[2]+1,A=n[3]-n[2]-1;e.add(T,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return a!==void 0&&(i.end=Object.assign({},eu(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function v5(e,t,n,r,a){const i=[],l=eu(t.events,n);a&&(a.end=Object.assign({},l),i.push(["exit",a,t])),r.end=Object.assign({},l),i.push(["exit",r,t]),e.add(n+1,0,i)}function eu(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const eee={name:"tasklistCheck",tokenize:nee};function tee(){return{text:{91:eee}}}function nee(e,t,n){const r=this;return a;function a(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),i)}function i(d){return fn(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),l):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),l):n(d)}function l(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(d)}function u(d){return lt(d)?t(d):Lt(d)?e.check({tokenize:ree},t,n)(d):n(d)}}function ree(e,t,n){return Ut(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function aee(e){return Rw([OJ(),FJ(),QJ(e),XJ(),tee()])}const see={};function dR(e){const t=this,n=e||see,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(aee(n)),i.push(SJ()),l.push(wJ(n))}function iee({children:e}){return v.jsx(Gw,{remarkPlugins:[dR],rehypePlugins:[BC],allowElement:t=>!!["a","p","strong","i","u","s","code"].includes(t.tagName),components:{p:({children:t})=>v.jsx(v.Fragment,{children:t}),a:({children:t,href:n})=>v.jsx("a",{className:"text-fg underline",href:n,target:"_blank",rel:"noopener noreferrer",children:t}),strong:({children:t})=>v.jsx("strong",{className:"font-[450]",children:t}),i:({children:t})=>v.jsx("i",{className:"text-fg",children:t}),u:({children:t})=>v.jsx("u",{className:"underline",children:t}),s:({children:t})=>v.jsx("s",{className:"line-through",children:t}),code:({children:t})=>v.jsx("code",{className:"rounded-md bg-accent px-1 font-mono",children:t})},children:e.replaceAll(`
|
|
148
|
+
`," ")})}function Yo({children:e,className:t}){return v.jsx("div",{className:De("prose",t),children:v.jsx(Gw,{remarkPlugins:[dR],rehypePlugins:[BC],components:{table:({children:n})=>v.jsx("div",{className:"max-w-full overflow-x-auto overflow-y-auto",children:v.jsx("table",{children:n})})},children:e})})}var kh="Tabs",[oee,Aie]=Qr(kh,[Pu]),fR=Pu(),[lee,m4]=oee(kh),hR=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:l="horizontal",dir:u,activationMode:d="automatic",...h}=e,g=F0(u),[m,E]=Oa({prop:r,onChange:a,defaultProp:i??"",caller:kh});return v.jsx(lee,{scope:n,baseId:Es(),value:m,onValueChange:E,orientation:l,dir:g,activationMode:d,children:v.jsx(xt.div,{dir:g,"data-orientation":l,...h,ref:t})})});hR.displayName=kh;var mR="TabsList",pR=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,i=m4(mR,n),l=fR(n);return v.jsx(nv,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:v.jsx(xt.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});pR.displayName=mR;var gR="TabsTrigger",vR=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,l=m4(gR,n),u=fR(n),d=ER(l.baseId,r),h=xR(l.baseId,r),g=r===l.value;return v.jsx(rv,{asChild:!0,...u,focusable:!a,active:g,children:v.jsx(xt.button,{type:"button",role:"tab","aria-selected":g,"aria-controls":h,"data-state":g?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:ut(e.onMouseDown,m=>{!a&&m.button===0&&m.ctrlKey===!1?l.onValueChange(r):m.preventDefault()}),onKeyDown:ut(e.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&l.onValueChange(r)}),onFocus:ut(e.onFocus,()=>{const m=l.activationMode!=="manual";!g&&!a&&m&&l.onValueChange(r)})})})});vR.displayName=gR;var yR="TabsContent",bR=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:i,...l}=e,u=m4(yR,n),d=ER(u.baseId,r),h=xR(u.baseId,r),g=r===u.value,m=p.useRef(g);return p.useEffect(()=>{const E=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(E)},[]),v.jsx(Na,{present:a||g,children:({present:E})=>v.jsx(xt.div,{"data-state":g?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!E,id:h,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:E&&i})})});bR.displayName=yR;function ER(e,t){return`${e}-trigger-${t}`}function xR(e,t){return`${e}-content-${t}`}var uee=hR,cee=pR,dee=vR,fee=bR;function hee({className:e,...t}){return v.jsx(uee,{"data-slot":"tabs",className:De("flex flex-col gap-4",e),...t})}function mee({className:e,...t}){return v.jsx(cee,{"data-slot":"tabs-list",className:De("inline-flex w-fit items-center justify-center gap-x-0.5 rounded-lg border-[0.5px] border-fg/15 bg-accent-subtle p-1 text-fg-subtle",e),...t})}function K2({className:e,...t}){return v.jsx(dee,{"data-slot":"tabs-trigger",className:De("inline-flex flex-1 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-3 py-1 font-[450] text-fg text-sm transition-[color,box-shadow]","radix-state-[active]:bg-surface radix-state-[active]:shadow-[0_3px_9px_0px_rgba(55,50,46,0.07),_0_0_0_0.5px_rgba(55,50,46,0.15)]","radix-state-[inactive]:hover:bg-surface/50 radix-state-[inactive]:hover:shadow-[0_0_0_0.5px_rgba(55,50,46,0.15)]","disabled:pointer-events-none disabled:opacity-50 has-[svg:first-child]:pl-2.5","[&_svg:not([class*='size-'])]:size-4.5 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),...t})}function X2({className:e,...t}){return v.jsx(fee,{"data-slot":"tabs-content",className:De("flex-1 outline-none",e),...t})}function _R({entry:e,onToolClick:t}){return v.jsxs(rn,{className:"gap-y-8",children:[v.jsx(yh,{src:e.icon,className:"size-9"}),v.jsxs(an,{children:[v.jsx(sn,{children:e.title}),v.jsx(Os,{children:e.description})]}),v.jsxs(ci,{children:[e.isOfficial&&v.jsxs(vr,{variant:"success",children:[v.jsx(io,{children:v.jsx(B6,{})}),v.jsx(Ar,{uppercase:!0,children:"Official"})]}),e.homepage&&v.jsx(vr,{className:"transition-opacity duration-200 hover:opacity-50",asChild:!0,children:v.jsxs("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",children:[v.jsx(io,{children:v.jsx($T,{weight:"bold"})}),v.jsx(Ar,{uppercase:!0,children:"Homepage"})]})})]}),v.jsxs(hee,{defaultValue:"readme",children:[v.jsxs(mee,{children:[v.jsxs(K2,{value:"readme",children:[v.jsx(I6,{})," Readme"]}),v.jsxs(K2,{value:"tools",children:[v.jsx(mA,{})," Tools"]}),v.jsxs(K2,{value:"transport",children:[v.jsx(F6,{})," Transport"]})]}),v.jsx(X2,{value:"readme",children:e.readme?v.jsx(Yo,{className:"!max-w-none rounded-xl border-[0.5px] bg-accent-subtle/20 p-6",children:e.readme}):v.jsx(Ns,{children:v.jsx(vi,{children:"No readme found"})})}),v.jsx(X2,{value:"tools",className:"rounded-xl border-[0.5px] bg-accent-subtle/20 p-6",children:v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Tools"})})}),v.jsx(EZ,{links:(e.tools??[]).sort((n,r)=>n.name.localeCompare(r.name)).map(n=>({title:n.name,subtitle:n.description?.replace(/\[([^\]]+)\]/g,""),scroll:!1,href:"#",onClick:()=>t?.(n)}))})]})}),v.jsxs(X2,{value:"transport",className:"flex flex-col gap-y-10 rounded-xl border-[0.5px] bg-accent-subtle/20 p-6",children:[v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Overview"})})}),v.jsx(fw,{transport:e.transport})]}),v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Parameters"})})}),v.jsx(vZ,{parameters:e.parameters??[]})]})]})]})]})}var Bt;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const l of a)i[l]=l;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),l={};for(const u of i)l[u]=a[u];return e.objectValues(l)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&i.push(l);return i},e.find=(a,i)=>{for(const l of a)if(i(l))return l},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(l=>typeof l=="string"?`'${l}'`:l).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(Bt||(Bt={}));var y5;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(y5||(y5={}));const Ye=Bt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yi=e=>{switch(typeof e){case"undefined":return Ye.undefined;case"string":return Ye.string;case"number":return Number.isNaN(e)?Ye.nan:Ye.number;case"boolean":return Ye.boolean;case"function":return Ye.function;case"bigint":return Ye.bigint;case"symbol":return Ye.symbol;case"object":return Array.isArray(e)?Ye.array:e===null?Ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ye.promise:typeof Map<"u"&&e instanceof Map?Ye.map:typeof Set<"u"&&e instanceof Set?Ye.set:typeof Date<"u"&&e instanceof Date?Ye.date:Ye.object;default:return Ye.unknown}},Ue=Bt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class di extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const l of i.issues)if(l.code==="invalid_union")l.unionErrors.map(a);else if(l.code==="invalid_return_type")a(l.returnTypeError);else if(l.code==="invalid_arguments")a(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let u=r,d=0;for(;d<l.path.length;){const h=l.path[d];d===l.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(n(l))):u[h]=u[h]||{_errors:[]},u=u[h],d++}}};return a(this),r}static assert(t){if(!(t instanceof di))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Bt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];n[i]=n[i]||[],n[i].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}di.create=e=>new di(e);const $8=(e,t)=>{let n;switch(e.code){case Ue.invalid_type:e.received===Ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ue.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Bt.jsonStringifyReplacer)}`;break;case Ue.unrecognized_keys:n=`Unrecognized key(s) in object: ${Bt.joinValues(e.keys,", ")}`;break;case Ue.invalid_union:n="Invalid input";break;case Ue.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Bt.joinValues(e.options)}`;break;case Ue.invalid_enum_value:n=`Invalid enum value. Expected ${Bt.joinValues(e.options)}, received '${e.received}'`;break;case Ue.invalid_arguments:n="Invalid function arguments";break;case Ue.invalid_return_type:n="Invalid function return type";break;case Ue.invalid_date:n="Invalid date";break;case Ue.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Bt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ue.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ue.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ue.custom:n="Invalid input";break;case Ue.invalid_intersection_types:n="Intersection results could not be merged";break;case Ue.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ue.not_finite:n="Number must be finite";break;default:n=t.defaultError,Bt.assertNever(e)}return{message:n}};let pee=$8;function gee(){return pee}const vee=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],l={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let u="";const d=r.filter(h=>!!h).slice().reverse();for(const h of d)u=h(l,{data:t,defaultError:u}).message;return{...a,path:i,message:u}};function $e(e,t){const n=gee(),r=vee({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===$8?void 0:$8].filter(a=>!!a)});e.common.issues.push(r)}class Lr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return gt;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,l=await a.value;r.push({key:i,value:l})}return Lr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:l}=a;if(i.status==="aborted"||l.status==="aborted")return gt;i.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof l.value<"u"||a.alwaysSet)&&(r[i.value]=l.value)}return{status:t.value,value:r}}}const gt=Object.freeze({status:"aborted"}),n0=e=>({status:"dirty",value:e}),Da=e=>({status:"valid",value:e}),b5=e=>e.status==="aborted",E5=e=>e.status==="dirty",Tu=e=>e.status==="valid",b1=e=>typeof Promise<"u"&&e instanceof Promise;var nt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(nt||(nt={}));class Ss{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const x5=(e,t)=>{if(Tu(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new di(e.common.issues);return this._error=n,this._error}}};function wt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(l,u)=>{const{message:d}=e;return l.code==="invalid_enum_value"?{message:d??u.defaultError}:typeof u.data>"u"?{message:d??r??u.defaultError}:l.code!=="invalid_type"?{message:u.defaultError}:{message:d??n??u.defaultError}},description:a}}class jt{get description(){return this._def.description}_getType(t){return Yi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Yi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Lr,ctx:{common:t.parent.common,data:t.data,parsedType:Yi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(b1(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yi(t)},a=this._parseSync({data:t,path:r.path,parent:r});return x5(r,a)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yi(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return Tu(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Tu(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yi(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(b1(a)?a:Promise.resolve(a));return x5(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const l=t(a),u=()=>i.addIssue({code:Ue.custom,...r(a)});return typeof Promise<"u"&&l instanceof Promise?l.then(d=>d?!0:(u(),!1)):l?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new Xo({schema:this,typeName:vt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ii.create(this,this._def)}nullable(){return Wo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return _s.create(this)}promise(){return S1.create(this,this._def)}or(t){return x1.create([this,t],this._def)}and(t){return _1.create(this,t,this._def)}transform(t){return new Xo({...wt(this._def),schema:this,typeName:vt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new w1({...wt(this._def),innerType:this,defaultValue:n,typeName:vt.ZodDefault})}brand(){return new wR({typeName:vt.ZodBranded,type:this,...wt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new C1({...wt(this._def),innerType:this,catchValue:n,typeName:vt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return g4.create(this,t)}readonly(){return R1.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const yee=/^c[^\s-]{8,}$/i,bee=/^[0-9a-z]+$/,Eee=/^[0-9A-HJKMNP-TV-Z]{26}$/i,xee=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,_ee=/^[a-z0-9_-]{21}$/i,Tee=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Aee=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,See=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wee="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let W2;const Cee=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ree=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Oee=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Nee=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kee=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Pee=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,TR="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Dee=new RegExp(`^${TR}$`);function AR(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Lee(e){return new RegExp(`^${AR(e)}$`)}function Mee(e){let t=`${TR}T${AR(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Iee(e,t){return!!((t==="v4"||!t)&&Cee.test(e)||(t==="v6"||!t)&&Oee.test(e))}function jee(e,t){if(!Tee.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function Hee(e,t){return!!((t==="v4"||!t)&&Ree.test(e)||(t==="v6"||!t)&&Nee.test(e))}class ri extends jt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ye.string){const i=this._getOrReturnCtx(t);return $e(i,{code:Ue.invalid_type,expected:Ye.string,received:i.parsedType}),gt}const r=new Lr;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const l=t.data.length>i.value,u=t.data.length<i.value;(l||u)&&(a=this._getOrReturnCtx(t,a),l?$e(a,{code:Ue.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):u&&$e(a,{code:Ue.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")See.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"email",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")W2||(W2=new RegExp(wee,"u")),W2.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"emoji",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")xee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"uuid",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")_ee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"nanoid",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")yee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"cuid",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")bee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"cuid2",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")Eee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"ulid",code:Ue.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),$e(a,{validation:"url",code:Ue.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"regex",code:Ue.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Mee(i).test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?Dee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?Lee(i).test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Aee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"duration",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?Iee(t.data,i.version)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"ip",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?jee(t.data,i.alg)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"jwt",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?Hee(t.data,i.version)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"cidr",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?kee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"base64",code:Ue.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?Pee.test(t.data)||(a=this._getOrReturnCtx(t,a),$e(a,{validation:"base64url",code:Ue.invalid_string,message:i.message}),r.dirty()):Bt.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:Ue.invalid_string,...nt.errToObj(r)})}_addCheck(t){return new ri({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...nt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...nt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...nt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...nt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...nt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...nt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...nt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...nt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...nt.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...nt.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...nt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...nt.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...nt.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...nt.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...nt.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...nt.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...nt.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...nt.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...nt.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...nt.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...nt.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...nt.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...nt.errToObj(n)})}nonempty(t){return this.min(1,nt.errToObj(t))}trim(){return new ri({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ri({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ri({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ri.create=e=>new ri({checks:[],typeName:vt.ZodString,coerce:e?.coerce??!1,...wt(e)});function Fee(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=Number.parseInt(e.toFixed(a).replace(".","")),l=Number.parseInt(t.toFixed(a).replace(".",""));return i%l/10**a}class Au extends jt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ye.number){const i=this._getOrReturnCtx(t);return $e(i,{code:Ue.invalid_type,expected:Ye.number,received:i.parsedType}),gt}let r;const a=new Lr;for(const i of this._def.checks)i.kind==="int"?Bt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),$e(r,{code:Ue.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),$e(r,{code:Ue.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),$e(r,{code:Ue.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?Fee(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),$e(r,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),$e(r,{code:Ue.not_finite,message:i.message}),a.dirty()):Bt.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,nt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,nt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,nt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,nt.toString(n))}setLimit(t,n,r,a){return new Au({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:nt.toString(a)}]})}_addCheck(t){return new Au({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:nt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:nt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:nt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:nt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:nt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:nt.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:nt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:nt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:nt.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Bt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Au.create=e=>new Au({checks:[],typeName:vt.ZodNumber,coerce:e?.coerce||!1,...wt(e)});class k0 extends jt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ye.bigint)return this._getInvalidInput(t);let r;const a=new Lr;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),$e(r,{code:Ue.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),$e(r,{code:Ue.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),$e(r,{code:Ue.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):Bt.assertNever(i);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return $e(n,{code:Ue.invalid_type,expected:Ye.bigint,received:n.parsedType}),gt}gte(t,n){return this.setLimit("min",t,!0,nt.toString(n))}gt(t,n){return this.setLimit("min",t,!1,nt.toString(n))}lte(t,n){return this.setLimit("max",t,!0,nt.toString(n))}lt(t,n){return this.setLimit("max",t,!1,nt.toString(n))}setLimit(t,n,r,a){return new k0({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:nt.toString(a)}]})}_addCheck(t){return new k0({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:nt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:nt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:nt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:nt.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:nt.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}k0.create=e=>new k0({checks:[],typeName:vt.ZodBigInt,coerce:e?.coerce??!1,...wt(e)});class Q8 extends jt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ye.boolean){const r=this._getOrReturnCtx(t);return $e(r,{code:Ue.invalid_type,expected:Ye.boolean,received:r.parsedType}),gt}return Da(t.data)}}Q8.create=e=>new Q8({typeName:vt.ZodBoolean,coerce:e?.coerce||!1,...wt(e)});class E1 extends jt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ye.date){const i=this._getOrReturnCtx(t);return $e(i,{code:Ue.invalid_type,expected:Ye.date,received:i.parsedType}),gt}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return $e(i,{code:Ue.invalid_date}),gt}const r=new Lr;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),$e(a,{code:Ue.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):Bt.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new E1({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:nt.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:nt.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}E1.create=e=>new E1({checks:[],coerce:e?.coerce||!1,typeName:vt.ZodDate,...wt(e)});class _5 extends jt{_parse(t){if(this._getType(t)!==Ye.symbol){const r=this._getOrReturnCtx(t);return $e(r,{code:Ue.invalid_type,expected:Ye.symbol,received:r.parsedType}),gt}return Da(t.data)}}_5.create=e=>new _5({typeName:vt.ZodSymbol,...wt(e)});class Y8 extends jt{_parse(t){if(this._getType(t)!==Ye.undefined){const r=this._getOrReturnCtx(t);return $e(r,{code:Ue.invalid_type,expected:Ye.undefined,received:r.parsedType}),gt}return Da(t.data)}}Y8.create=e=>new Y8({typeName:vt.ZodUndefined,...wt(e)});class G8 extends jt{_parse(t){if(this._getType(t)!==Ye.null){const r=this._getOrReturnCtx(t);return $e(r,{code:Ue.invalid_type,expected:Ye.null,received:r.parsedType}),gt}return Da(t.data)}}G8.create=e=>new G8({typeName:vt.ZodNull,...wt(e)});class K8 extends jt{constructor(){super(...arguments),this._any=!0}_parse(t){return Da(t.data)}}K8.create=e=>new K8({typeName:vt.ZodAny,...wt(e)});class X8 extends jt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Da(t.data)}}X8.create=e=>new X8({typeName:vt.ZodUnknown,...wt(e)});class lo extends jt{_parse(t){const n=this._getOrReturnCtx(t);return $e(n,{code:Ue.invalid_type,expected:Ye.never,received:n.parsedType}),gt}}lo.create=e=>new lo({typeName:vt.ZodNever,...wt(e)});class T5 extends jt{_parse(t){if(this._getType(t)!==Ye.undefined){const r=this._getOrReturnCtx(t);return $e(r,{code:Ue.invalid_type,expected:Ye.void,received:r.parsedType}),gt}return Da(t.data)}}T5.create=e=>new T5({typeName:vt.ZodVoid,...wt(e)});class _s extends jt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Ye.array)return $e(n,{code:Ue.invalid_type,expected:Ye.array,received:n.parsedType}),gt;if(a.exactLength!==null){const l=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(l||u)&&($e(n,{code:l?Ue.too_big:Ue.too_small,minimum:u?a.exactLength.value:void 0,maximum:l?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&($e(n,{code:Ue.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&($e(n,{code:Ue.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,u)=>a.type._parseAsync(new Ss(n,l,n.path,u)))).then(l=>Lr.mergeArray(r,l));const i=[...n.data].map((l,u)=>a.type._parseSync(new Ss(n,l,n.path,u)));return Lr.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new _s({...this._def,minLength:{value:t,message:nt.toString(n)}})}max(t,n){return new _s({...this._def,maxLength:{value:t,message:nt.toString(n)}})}length(t,n){return new _s({...this._def,exactLength:{value:t,message:nt.toString(n)}})}nonempty(t){return this.min(1,t)}}_s.create=(e,t)=>new _s({type:e,minLength:null,maxLength:null,exactLength:null,typeName:vt.ZodArray,...wt(t)});function tu(e){if(e instanceof Xn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ii.create(tu(r))}return new Xn({...e._def,shape:()=>t})}else return e instanceof _s?new _s({...e._def,type:tu(e.element)}):e instanceof ii?ii.create(tu(e.unwrap())):e instanceof Wo?Wo.create(tu(e.unwrap())):e instanceof Go?Go.create(e.items.map(t=>tu(t))):e}class Xn extends jt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Bt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ye.object){const h=this._getOrReturnCtx(t);return $e(h,{code:Ue.invalid_type,expected:Ye.object,received:h.parsedType}),gt}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof lo&&this._def.unknownKeys==="strip"))for(const h in a.data)l.includes(h)||u.push(h);const d=[];for(const h of l){const g=i[h],m=a.data[h];d.push({key:{status:"valid",value:h},value:g._parse(new Ss(a,m,a.path,h)),alwaysSet:h in a.data})}if(this._def.catchall instanceof lo){const h=this._def.unknownKeys;if(h==="passthrough")for(const g of u)d.push({key:{status:"valid",value:g},value:{status:"valid",value:a.data[g]}});else if(h==="strict")u.length>0&&($e(a,{code:Ue.unrecognized_keys,keys:u}),r.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const g of u){const m=a.data[g];d.push({key:{status:"valid",value:g},value:h._parse(new Ss(a,m,a.path,g)),alwaysSet:g in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const h=[];for(const g of d){const m=await g.key,E=await g.value;h.push({key:m,value:E,alwaysSet:g.alwaysSet})}return h}).then(h=>Lr.mergeObjectSync(r,h)):Lr.mergeObjectSync(r,d)}get shape(){return this._def.shape()}strict(t){return nt.errToObj,new Xn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:nt.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Xn({...this._def,unknownKeys:"strip"})}passthrough(){return new Xn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Xn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Xn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:vt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Xn({...this._def,catchall:t})}pick(t){const n={};for(const r of Bt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Xn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of Bt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Xn({...this._def,shape:()=>n})}deepPartial(){return tu(this)}partial(t){const n={};for(const r of Bt.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new Xn({...this._def,shape:()=>n})}required(t){const n={};for(const r of Bt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof ii;)i=i._def.innerType;n[r]=i}return new Xn({...this._def,shape:()=>n})}keyof(){return SR(Bt.objectKeys(this.shape))}}Xn.create=(e,t)=>new Xn({shape:()=>e,unknownKeys:"strip",catchall:lo.create(),typeName:vt.ZodObject,...wt(t)});Xn.strictCreate=(e,t)=>new Xn({shape:()=>e,unknownKeys:"strict",catchall:lo.create(),typeName:vt.ZodObject,...wt(t)});Xn.lazycreate=(e,t)=>new Xn({shape:e,unknownKeys:"strip",catchall:lo.create(),typeName:vt.ZodObject,...wt(t)});class x1 extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const u of i)if(u.result.status==="valid")return u.result;for(const u of i)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const l=i.map(u=>new di(u.ctx.common.issues));return $e(n,{code:Ue.invalid_union,unionErrors:l}),gt}if(n.common.async)return Promise.all(r.map(async i=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(a);{let i;const l=[];for(const d of r){const h={...n,common:{...n.common,issues:[]},parent:null},g=d._parseSync({data:n.data,path:n.path,parent:h});if(g.status==="valid")return g;g.status==="dirty"&&!i&&(i={result:g,ctx:h}),h.common.issues.length&&l.push(h.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const u=l.map(d=>new di(d));return $e(n,{code:Ue.invalid_union,unionErrors:u}),gt}}get options(){return this._def.options}}x1.create=(e,t)=>new x1({options:e,typeName:vt.ZodUnion,...wt(t)});const Ws=e=>e instanceof J8?Ws(e.schema):e instanceof Xo?Ws(e.innerType()):e instanceof A1?[e.value]:e instanceof Ko?e.options:e instanceof e6?Bt.objectValues(e.enum):e instanceof w1?Ws(e._def.innerType):e instanceof Y8?[void 0]:e instanceof G8?[null]:e instanceof ii?[void 0,...Ws(e.unwrap())]:e instanceof Wo?[null,...Ws(e.unwrap())]:e instanceof wR||e instanceof R1?Ws(e.unwrap()):e instanceof C1?Ws(e._def.innerType):[];class p4 extends jt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ye.object)return $e(n,{code:Ue.invalid_type,expected:Ye.object,received:n.parsedType}),gt;const r=this.discriminator,a=n.data[r],i=this.optionsMap.get(a);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):($e(n,{code:Ue.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),gt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const i of n){const l=Ws(i.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const u of l){if(a.has(u))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(u)}`);a.set(u,i)}}return new p4({typeName:vt.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...wt(r)})}}function W8(e,t){const n=Yi(e),r=Yi(t);if(e===t)return{valid:!0,data:e};if(n===Ye.object&&r===Ye.object){const a=Bt.objectKeys(t),i=Bt.objectKeys(e).filter(u=>a.indexOf(u)!==-1),l={...e,...t};for(const u of i){const d=W8(e[u],t[u]);if(!d.valid)return{valid:!1};l[u]=d.data}return{valid:!0,data:l}}else if(n===Ye.array&&r===Ye.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const l=e[i],u=t[i],d=W8(l,u);if(!d.valid)return{valid:!1};a.push(d.data)}return{valid:!0,data:a}}else return n===Ye.date&&r===Ye.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class _1 extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,l)=>{if(b5(i)||b5(l))return gt;const u=W8(i.value,l.value);return u.valid?((E5(i)||E5(l))&&n.dirty(),{status:n.value,value:u.data}):($e(r,{code:Ue.invalid_intersection_types}),gt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,l])=>a(i,l)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}_1.create=(e,t,n)=>new _1({left:e,right:t,typeName:vt.ZodIntersection,...wt(n)});class Go extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.array)return $e(r,{code:Ue.invalid_type,expected:Ye.array,received:r.parsedType}),gt;if(r.data.length<this._def.items.length)return $e(r,{code:Ue.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),gt;!this._def.rest&&r.data.length>this._def.items.length&&($e(r,{code:Ue.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((l,u)=>{const d=this._def.items[u]||this._def.rest;return d?d._parse(new Ss(r,l,r.path,u)):null}).filter(l=>!!l);return r.common.async?Promise.all(i).then(l=>Lr.mergeArray(n,l)):Lr.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Go({...this._def,rest:t})}}Go.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Go({items:e,typeName:vt.ZodTuple,rest:null,...wt(t)})};class T1 extends jt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.object)return $e(r,{code:Ue.invalid_type,expected:Ye.object,received:r.parsedType}),gt;const a=[],i=this._def.keyType,l=this._def.valueType;for(const u in r.data)a.push({key:i._parse(new Ss(r,u,r.path,u)),value:l._parse(new Ss(r,r.data[u],r.path,u)),alwaysSet:u in r.data});return r.common.async?Lr.mergeObjectAsync(n,a):Lr.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof jt?new T1({keyType:t,valueType:n,typeName:vt.ZodRecord,...wt(r)}):new T1({keyType:ri.create(),valueType:t,typeName:vt.ZodRecord,...wt(n)})}}class A5 extends jt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.map)return $e(r,{code:Ue.invalid_type,expected:Ye.map,received:r.parsedType}),gt;const a=this._def.keyType,i=this._def.valueType,l=[...r.data.entries()].map(([u,d],h)=>({key:a._parse(new Ss(r,u,r.path,[h,"key"])),value:i._parse(new Ss(r,d,r.path,[h,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const d of l){const h=await d.key,g=await d.value;if(h.status==="aborted"||g.status==="aborted")return gt;(h.status==="dirty"||g.status==="dirty")&&n.dirty(),u.set(h.value,g.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const d of l){const h=d.key,g=d.value;if(h.status==="aborted"||g.status==="aborted")return gt;(h.status==="dirty"||g.status==="dirty")&&n.dirty(),u.set(h.value,g.value)}return{status:n.value,value:u}}}}A5.create=(e,t,n)=>new A5({valueType:t,keyType:e,typeName:vt.ZodMap,...wt(n)});class P0 extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ye.set)return $e(r,{code:Ue.invalid_type,expected:Ye.set,received:r.parsedType}),gt;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&($e(r,{code:Ue.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&($e(r,{code:Ue.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function l(d){const h=new Set;for(const g of d){if(g.status==="aborted")return gt;g.status==="dirty"&&n.dirty(),h.add(g.value)}return{status:n.value,value:h}}const u=[...r.data.values()].map((d,h)=>i._parse(new Ss(r,d,r.path,h)));return r.common.async?Promise.all(u).then(d=>l(d)):l(u)}min(t,n){return new P0({...this._def,minSize:{value:t,message:nt.toString(n)}})}max(t,n){return new P0({...this._def,maxSize:{value:t,message:nt.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}P0.create=(e,t)=>new P0({valueType:e,minSize:null,maxSize:null,typeName:vt.ZodSet,...wt(t)});class J8 extends jt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}J8.create=(e,t)=>new J8({getter:e,typeName:vt.ZodLazy,...wt(t)});class A1 extends jt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return $e(n,{received:n.data,code:Ue.invalid_literal,expected:this._def.value}),gt}return{status:"valid",value:t.data}}get value(){return this._def.value}}A1.create=(e,t)=>new A1({value:e,typeName:vt.ZodLiteral,...wt(t)});function SR(e,t){return new Ko({values:e,typeName:vt.ZodEnum,...wt(t)})}class Ko extends jt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return $e(n,{expected:Bt.joinValues(r),received:n.parsedType,code:Ue.invalid_type}),gt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return $e(n,{received:n.data,code:Ue.invalid_enum_value,options:r}),gt}return Da(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ko.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ko.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ko.create=SR;class e6 extends jt{_parse(t){const n=Bt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ye.string&&r.parsedType!==Ye.number){const a=Bt.objectValues(n);return $e(r,{expected:Bt.joinValues(a),received:r.parsedType,code:Ue.invalid_type}),gt}if(this._cache||(this._cache=new Set(Bt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=Bt.objectValues(n);return $e(r,{received:r.data,code:Ue.invalid_enum_value,options:a}),gt}return Da(t.data)}get enum(){return this._def.values}}e6.create=(e,t)=>new e6({values:e,typeName:vt.ZodNativeEnum,...wt(t)});class S1 extends jt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ye.promise&&n.common.async===!1)return $e(n,{code:Ue.invalid_type,expected:Ye.promise,received:n.parsedType}),gt;const r=n.parsedType===Ye.promise?n.data:Promise.resolve(n.data);return Da(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}S1.create=(e,t)=>new S1({type:e,typeName:vt.ZodPromise,...wt(t)});class Xo extends jt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===vt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:l=>{$e(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const l=a.transform(r.data,i);if(r.common.async)return Promise.resolve(l).then(async u=>{if(n.value==="aborted")return gt;const d=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return d.status==="aborted"?gt:d.status==="dirty"||n.value==="dirty"?n0(d.value):d});{if(n.value==="aborted")return gt;const u=this._def.schema._parseSync({data:l,path:r.path,parent:r});return u.status==="aborted"?gt:u.status==="dirty"||n.value==="dirty"?n0(u.value):u}}if(a.type==="refinement"){const l=u=>{const d=a.refinement(u,i);if(r.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?gt:(u.status==="dirty"&&n.dirty(),l(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?gt:(u.status==="dirty"&&n.dirty(),l(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Tu(l))return gt;const u=a.transform(l.value,i);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Tu(l)?Promise.resolve(a.transform(l.value,i)).then(u=>({status:n.value,value:u})):gt);Bt.assertNever(a)}}Xo.create=(e,t,n)=>new Xo({schema:e,typeName:vt.ZodEffects,effect:t,...wt(n)});Xo.createWithPreprocess=(e,t,n)=>new Xo({schema:t,effect:{type:"preprocess",transform:e},typeName:vt.ZodEffects,...wt(n)});class ii extends jt{_parse(t){return this._getType(t)===Ye.undefined?Da(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ii.create=(e,t)=>new ii({innerType:e,typeName:vt.ZodOptional,...wt(t)});class Wo extends jt{_parse(t){return this._getType(t)===Ye.null?Da(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Wo.create=(e,t)=>new Wo({innerType:e,typeName:vt.ZodNullable,...wt(t)});class w1 extends jt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ye.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}w1.create=(e,t)=>new w1({innerType:e,typeName:vt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...wt(t)});class C1 extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return b1(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new di(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new di(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}C1.create=(e,t)=>new C1({innerType:e,typeName:vt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...wt(t)});class S5 extends jt{_parse(t){if(this._getType(t)!==Ye.nan){const r=this._getOrReturnCtx(t);return $e(r,{code:Ue.invalid_type,expected:Ye.nan,received:r.parsedType}),gt}return{status:"valid",value:t.data}}}S5.create=e=>new S5({typeName:vt.ZodNaN,...wt(e)});class wR extends jt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class g4 extends jt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?gt:i.status==="dirty"?(n.dirty(),n0(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?gt:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new g4({in:t,out:n,typeName:vt.ZodPipeline})}}class R1 extends jt{_parse(t){const n=this._def.innerType._parse(t),r=a=>(Tu(a)&&(a.value=Object.freeze(a.value)),a);return b1(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}R1.create=(e,t)=>new R1({innerType:e,typeName:vt.ZodReadonly,...wt(t)});var vt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(vt||(vt={}));const ue=ri.create,dr=Au.create,ar=Q8.create,Uee=K8.create,ad=X8.create;lo.create;const We=_s.create,Ve=Xn.create,Ir=x1.create,CR=p4.create;_1.create;Go.create;const ul=T1.create,yt=A1.create,fi=Ko.create;S1.create;const Me=ii.create;Wo.create;var sd=e=>e.type==="checkbox",Uo=e=>e instanceof Date,Pr=e=>e==null;const RR=e=>typeof e=="object";var zn=e=>!Pr(e)&&!Array.isArray(e)&&RR(e)&&!Uo(e),OR=e=>zn(e)&&e.target?sd(e.target)?e.target.checked:e.target.value:e,Bee=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,NR=(e,t)=>e.has(Bee(t)),Vee=e=>{const t=e.constructor&&e.constructor.prototype;return zn(t)&&t.hasOwnProperty("isPrototypeOf")},v4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function bn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(v4&&(e instanceof Blob||r))&&(n||zn(e)))if(t=n?[]:{},!n&&!Vee(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=bn(e[a]));else return e;return t}var Ph=e=>/^\w*$/.test(e),En=e=>e===void 0,Dh=e=>Array.isArray(e)?e.filter(Boolean):[],y4=e=>Dh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ze=(e,t,n)=>{if(!t||!zn(e))return n;const r=(Ph(t)?[t]:y4(t)).reduce((a,i)=>Pr(a)?a:a[i],e);return En(r)||r===e?En(e[t])?n:e[t]:r},la=e=>typeof e=="boolean",Qt=(e,t,n)=>{let r=-1;const a=Ph(t)?[t]:y4(t),i=a.length,l=i-1;for(;++r<i;){const u=a[r];let d=n;if(r!==l){const h=e[u];d=zn(h)||Array.isArray(h)?h:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const O1={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Sa={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ks={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},b4=me.createContext(null);b4.displayName="HookFormContext";const ns=()=>me.useContext(b4),kR=e=>{const{children:t,...n}=e;return me.createElement(b4.Provider,{value:n},t)};var PR=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const l=i;return t._proxyFormState[l]!==Sa.all&&(t._proxyFormState[l]=!r||Sa.all),n&&(n[l]=!0),e[l]}});return a};const Lh=typeof window<"u"?p.useLayoutEffect:p.useEffect;function zee(e){const t=ns(),{control:n=t.control,disabled:r,name:a,exact:i}=e||{},[l,u]=me.useState(n._formState),d=me.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Lh(()=>n._subscribe({name:a,formState:d.current,exact:i,callback:h=>{!r&&u({...n._formState,...h})}}),[a,r,i]),me.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),me.useMemo(()=>PR(l,n,d.current,!1),[l,n])}var bs=e=>typeof e=="string",DR=(e,t,n,r,a)=>bs(e)?(r&&t.watch.add(e),ze(n,e,a)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),ze(n,i))):(r&&(t.watchAll=!0),n);function LR(e){const t=ns(),{control:n=t.control,name:r,defaultValue:a,disabled:i,exact:l}=e||{},u=me.useRef(a),[d,h]=me.useState(n._getWatch(r,u.current));return Lh(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:g=>!i&&h(DR(r,n._names,g.values||n._formValues,!1,u.current))}),[r,n,i,l]),me.useEffect(()=>n._removeUnmounted()),d}function Zee(e){const t=ns(),{name:n,disabled:r,control:a=t.control,shouldUnregister:i}=e,l=NR(a._names.array,n),u=LR({control:a,name:n,defaultValue:ze(a._formValues,n,ze(a._defaultValues,n,e.defaultValue)),exact:!0}),d=zee({control:a,name:n,exact:!0}),h=me.useRef(e),g=me.useRef(a.register(n,{...e.rules,value:u,...la(e.disabled)?{disabled:e.disabled}:{}})),m=me.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ze(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!ze(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ze(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ze(d.validatingFields,n)},error:{enumerable:!0,get:()=>ze(d.errors,n)}}),[d,n]),E=me.useCallback(S=>g.current.onChange({target:{value:OR(S),name:n},type:O1.CHANGE}),[n]),b=me.useCallback(()=>g.current.onBlur({target:{value:ze(a._formValues,n),name:n},type:O1.BLUR}),[n,a._formValues]),T=me.useCallback(S=>{const w=ze(a._fields,n);w&&S&&(w._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:R=>S.setCustomValidity(R),reportValidity:()=>S.reportValidity()})},[a._fields,n]),A=me.useMemo(()=>({name:n,value:u,...la(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:E,onBlur:b,ref:T}),[n,r,d.disabled,E,b,T,u]);return me.useEffect(()=>{const S=a._options.shouldUnregister||i;a.register(n,{...h.current.rules,...la(h.current.disabled)?{disabled:h.current.disabled}:{}});const w=(R,P)=>{const M=ze(a._fields,R);M&&M._f&&(M._f.mount=P)};if(w(n,!0),S){const R=bn(ze(a._options.defaultValues,n));Qt(a._defaultValues,n,R),En(ze(a._formValues,n))&&Qt(a._formValues,n,R)}return!l&&a.register(n),()=>{(l?S&&!a._state.action:S)?a.unregister(n):w(n,!1)}},[n,a,l,i]),me.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),me.useMemo(()=>({field:A,formState:d,fieldState:m}),[A,d,m])}const qee=e=>e.render(Zee(e));var E4=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},$r=e=>Array.isArray(e)?e:[e],w5=()=>{let e=[];return{get observers(){return e},next:a=>{for(const i of e)i.next&&i.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(i=>i!==a)}}),unsubscribe:()=>{e=[]}}},t6=e=>Pr(e)||!RR(e);function Ki(e,t,n=new WeakSet){if(t6(e)||t6(t))return e===t;if(Uo(e)&&Uo(t))return e.getTime()===t.getTime();const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const l=e[i];if(!a.includes(i))return!1;if(i!=="ref"){const u=t[i];if(Uo(l)&&Uo(u)||zn(l)&&zn(u)||Array.isArray(l)&&Array.isArray(u)?!Ki(l,u,n):l!==u)return!1}}return!0}var Nr=e=>zn(e)&&!Object.keys(e).length,x4=e=>e.type==="file",Za=e=>typeof e=="function",N1=e=>{if(!v4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},MR=e=>e.type==="select-multiple",_4=e=>e.type==="radio",$ee=e=>_4(e)||sd(e),J2=e=>N1(e)&&e.isConnected;function Qee(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=En(e)?r++:e[t[r++]];return e}function Yee(e){for(const t in e)if(e.hasOwnProperty(t)&&!En(e[t]))return!1;return!0}function Bn(e,t){const n=Array.isArray(t)?t:Ph(t)?[t]:y4(t),r=n.length===1?e:Qee(e,n),a=n.length-1,i=n[a];return r&&delete r[i],a!==0&&(zn(r)&&Nr(r)||Array.isArray(r)&&Yee(r))&&Bn(e,n.slice(0,-1)),e}var IR=e=>{for(const t in e)if(Za(e[t]))return!0;return!1};function k1(e,t={}){const n=Array.isArray(e);if(zn(e)||n)for(const r in e)Array.isArray(e[r])||zn(e[r])&&!IR(e[r])?(t[r]=Array.isArray(e[r])?[]:{},k1(e[r],t[r])):Pr(e[r])||(t[r]=!0);return t}function jR(e,t,n){const r=Array.isArray(e);if(zn(e)||r)for(const a in e)Array.isArray(e[a])||zn(e[a])&&!IR(e[a])?En(t)||t6(n[a])?n[a]=Array.isArray(e[a])?k1(e[a],[]):{...k1(e[a])}:jR(e[a],Pr(t)?{}:t[a],n[a]):n[a]=!Ki(e[a],t[a]);return n}var Xc=(e,t)=>jR(e,t,k1(t));const C5={value:!1,isValid:!1},R5={value:!0,isValid:!0};var HR=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!En(e[0].attributes.value)?En(e[0].value)||e[0].value===""?R5:{value:e[0].value,isValid:!0}:R5:C5}return C5},FR=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>En(e)?e:t?e===""?NaN:e&&+e:n&&bs(e)?new Date(e):r?r(e):e;const O5={isValid:!1,value:null};var UR=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,O5):O5;function N5(e){const t=e.ref;return x4(t)?t.files:_4(t)?UR(e.refs).value:MR(t)?[...t.selectedOptions].map(({value:n})=>n):sd(t)?HR(e.refs).value:FR(En(t.value)?e.ref.value:t.value,e)}var Gee=(e,t,n,r)=>{const a={};for(const i of e){const l=ze(t,i);l&&Qt(a,i,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},P1=e=>e instanceof RegExp,Wc=e=>En(e)?e:P1(e)?e.source:zn(e)?P1(e.value)?e.value.source:e.value:e,ou=e=>({isOnSubmit:!e||e===Sa.onSubmit,isOnBlur:e===Sa.onBlur,isOnChange:e===Sa.onChange,isOnAll:e===Sa.all,isOnTouch:e===Sa.onTouched});const k5="AsyncFunction";var Kee=e=>!!e&&!!e.validate&&!!(Za(e.validate)&&e.validate.constructor.name===k5||zn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===k5)),Xee=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),n6=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const pu=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const i=ze(e,a);if(i){const{_f:l,...u}=i;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],a)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(pu(u,t))break}else if(zn(u)&&pu(u,t))break}}};function P5(e,t,n){const r=ze(e,n);if(r||Ph(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const i=a.join("."),l=ze(t,i),u=ze(e,i);if(l&&!Array.isArray(l)&&n!==i)return{name:n};if(u&&u.type)return{name:i,error:u};if(u&&u.root&&u.root.type)return{name:`${i}.root`,error:u.root};a.pop()}return{name:n}}var Wee=(e,t,n,r)=>{n(e);const{name:a,...i}=e;return Nr(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(l=>t[l]===(!r||Sa.all))},Jee=(e,t,n)=>!e||!t||e===t||$r(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),ete=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,tte=(e,t)=>!Dh(ze(e,t)).length&&Bn(e,t),BR=(e,t,n)=>{const r=$r(ze(e,n));return Qt(r,"root",t[n]),Qt(e,n,r),e},Gf=e=>bs(e);function D5(e,t,n="validate"){if(Gf(e)||Array.isArray(e)&&e.every(Gf)||la(e)&&!e)return{type:n,message:Gf(e)?e:"",ref:t}}var Jl=e=>zn(e)&&!P1(e)?e:{value:e,message:""},r6=async(e,t,n,r,a,i)=>{const{ref:l,refs:u,required:d,maxLength:h,minLength:g,min:m,max:E,pattern:b,validate:T,name:A,valueAsNumber:S,mount:w}=e._f,R=ze(n,A);if(!w||t.has(A))return{};const P=u?u[0]:l,M=F=>{a&&P.reportValidity&&(P.setCustomValidity(la(F)?"":F||""),P.reportValidity())},I={},N=_4(l),L=sd(l),D=N||L,B=(S||x4(l))&&En(l.value)&&En(R)||N1(l)&&l.value===""||R===""||Array.isArray(R)&&!R.length,k=E4.bind(null,A,r,I),U=(F,Q,Y,te=Ks.maxLength,V=Ks.minLength)=>{const J=F?Q:Y;I[A]={type:F?te:V,message:J,ref:l,...k(F?te:V,J)}};if(i?!Array.isArray(R)||!R.length:d&&(!D&&(B||Pr(R))||la(R)&&!R||L&&!HR(u).isValid||N&&!UR(u).isValid)){const{value:F,message:Q}=Gf(d)?{value:!!d,message:d}:Jl(d);if(F&&(I[A]={type:Ks.required,message:Q,ref:P,...k(Ks.required,Q)},!r))return M(Q),I}if(!B&&(!Pr(m)||!Pr(E))){let F,Q;const Y=Jl(E),te=Jl(m);if(!Pr(R)&&!isNaN(R)){const V=l.valueAsNumber||R&&+R;Pr(Y.value)||(F=V>Y.value),Pr(te.value)||(Q=V<te.value)}else{const V=l.valueAsDate||new Date(R),J=C=>new Date(new Date().toDateString()+" "+C),X=l.type=="time",se=l.type=="week";bs(Y.value)&&R&&(F=X?J(R)>J(Y.value):se?R>Y.value:V>new Date(Y.value)),bs(te.value)&&R&&(Q=X?J(R)<J(te.value):se?R<te.value:V<new Date(te.value))}if((F||Q)&&(U(!!F,Y.message,te.message,Ks.max,Ks.min),!r))return M(I[A].message),I}if((h||g)&&!B&&(bs(R)||i&&Array.isArray(R))){const F=Jl(h),Q=Jl(g),Y=!Pr(F.value)&&R.length>+F.value,te=!Pr(Q.value)&&R.length<+Q.value;if((Y||te)&&(U(Y,F.message,Q.message),!r))return M(I[A].message),I}if(b&&!B&&bs(R)){const{value:F,message:Q}=Jl(b);if(P1(F)&&!R.match(F)&&(I[A]={type:Ks.pattern,message:Q,ref:l,...k(Ks.pattern,Q)},!r))return M(Q),I}if(T){if(Za(T)){const F=await T(R,n),Q=D5(F,P);if(Q&&(I[A]={...Q,...k(Ks.validate,Q.message)},!r))return M(Q.message),I}else if(zn(T)){let F={};for(const Q in T){if(!Nr(F)&&!r)break;const Y=D5(await T[Q](R,n),P,Q);Y&&(F={...Y,...k(Q,Y.message)},M(Y.message),r&&(I[A]=F))}if(!Nr(F)&&(I[A]={ref:P,...F},!r))return I}}return M(!0),I};const nte={mode:Sa.onSubmit,reValidateMode:Sa.onChange,shouldFocusError:!0};function rte(e={}){let t={...nte,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Za(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=zn(t.defaultValues)||zn(t.values)?bn(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:bn(a),l={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,h=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...g};const E={array:w5(),state:w5()},b=t.criteriaMode===Sa.all,T=W=>ce=>{clearTimeout(h),h=setTimeout(W,ce)},A=async W=>{if(!t.disabled&&(g.isValid||m.isValid||W)){const ce=t.resolver?Nr((await L()).errors):await B(r,!0);ce!==n.isValid&&E.state.next({isValid:ce})}},S=(W,ce)=>{!t.disabled&&(g.isValidating||g.validatingFields||m.isValidating||m.validatingFields)&&((W||Array.from(u.mount)).forEach(pe=>{pe&&(ce?Qt(n.validatingFields,pe,ce):Bn(n.validatingFields,pe))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Nr(n.validatingFields)}))},w=(W,ce=[],pe,Ne,Le=!0,je=!0)=>{if(Ne&&pe&&!t.disabled){if(l.action=!0,je&&Array.isArray(ze(r,W))){const ie=pe(ze(r,W),Ne.argA,Ne.argB);Le&&Qt(r,W,ie)}if(je&&Array.isArray(ze(n.errors,W))){const ie=pe(ze(n.errors,W),Ne.argA,Ne.argB);Le&&Qt(n.errors,W,ie),tte(n.errors,W)}if((g.touchedFields||m.touchedFields)&&je&&Array.isArray(ze(n.touchedFields,W))){const ie=pe(ze(n.touchedFields,W),Ne.argA,Ne.argB);Le&&Qt(n.touchedFields,W,ie)}(g.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Xc(a,i)),E.state.next({name:W,isDirty:U(W,ce),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Qt(i,W,ce)},R=(W,ce)=>{Qt(n.errors,W,ce),E.state.next({errors:n.errors})},P=W=>{n.errors=W,E.state.next({errors:n.errors,isValid:!1})},M=(W,ce,pe,Ne)=>{const Le=ze(r,W);if(Le){const je=ze(i,W,En(pe)?ze(a,W):pe);En(je)||Ne&&Ne.defaultChecked||ce?Qt(i,W,ce?je:N5(Le._f)):Y(W,je),l.mount&&A()}},I=(W,ce,pe,Ne,Le)=>{let je=!1,ie=!1;const Se={name:W};if(!t.disabled){if(!pe||Ne){(g.isDirty||m.isDirty)&&(ie=n.isDirty,n.isDirty=Se.isDirty=U(),je=ie!==Se.isDirty);const Be=Ki(ze(a,W),ce);ie=!!ze(n.dirtyFields,W),Be?Bn(n.dirtyFields,W):Qt(n.dirtyFields,W,!0),Se.dirtyFields=n.dirtyFields,je=je||(g.dirtyFields||m.dirtyFields)&&ie!==!Be}if(pe){const Be=ze(n.touchedFields,W);Be||(Qt(n.touchedFields,W,pe),Se.touchedFields=n.touchedFields,je=je||(g.touchedFields||m.touchedFields)&&Be!==pe)}je&&Le&&E.state.next(Se)}return je?Se:{}},N=(W,ce,pe,Ne)=>{const Le=ze(n.errors,W),je=(g.isValid||m.isValid)&&la(ce)&&n.isValid!==ce;if(t.delayError&&pe?(d=T(()=>R(W,pe)),d(t.delayError)):(clearTimeout(h),d=null,pe?Qt(n.errors,W,pe):Bn(n.errors,W)),(pe?!Ki(Le,pe):Le)||!Nr(Ne)||je){const ie={...Ne,...je&&la(ce)?{isValid:ce}:{},errors:n.errors,name:W};n={...n,...ie},E.state.next(ie)}},L=async W=>{S(W,!0);const ce=await t.resolver(i,t.context,Gee(W||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return S(W),ce},D=async W=>{const{errors:ce}=await L(W);if(W)for(const pe of W){const Ne=ze(ce,pe);Ne?Qt(n.errors,pe,Ne):Bn(n.errors,pe)}else n.errors=ce;return ce},B=async(W,ce,pe={valid:!0})=>{for(const Ne in W){const Le=W[Ne];if(Le){const{_f:je,...ie}=Le;if(je){const Se=u.array.has(je.name),Be=Le._f&&Kee(Le._f);Be&&g.validatingFields&&S([Ne],!0);const qe=await r6(Le,u.disabled,i,b,t.shouldUseNativeValidation&&!ce,Se);if(Be&&g.validatingFields&&S([Ne]),qe[je.name]&&(pe.valid=!1,ce))break;!ce&&(ze(qe,je.name)?Se?BR(n.errors,qe,je.name):Qt(n.errors,je.name,qe[je.name]):Bn(n.errors,je.name))}!Nr(ie)&&await B(ie,ce,pe)}}return pe.valid},k=()=>{for(const W of u.unMount){const ce=ze(r,W);ce&&(ce._f.refs?ce._f.refs.every(pe=>!J2(pe)):!J2(ce._f.ref))&&ae(W)}u.unMount=new Set},U=(W,ce)=>!t.disabled&&(W&&ce&&Qt(i,W,ce),!Ki(C(),a)),F=(W,ce,pe)=>DR(W,u,{...l.mount?i:En(ce)?a:bs(W)?{[W]:ce}:ce},pe,ce),Q=W=>Dh(ze(l.mount?i:a,W,t.shouldUnregister?ze(a,W,[]):[])),Y=(W,ce,pe={})=>{const Ne=ze(r,W);let Le=ce;if(Ne){const je=Ne._f;je&&(!je.disabled&&Qt(i,W,FR(ce,je)),Le=N1(je.ref)&&Pr(ce)?"":ce,MR(je.ref)?[...je.ref.options].forEach(ie=>ie.selected=Le.includes(ie.value)):je.refs?sd(je.ref)?je.refs.forEach(ie=>{(!ie.defaultChecked||!ie.disabled)&&(Array.isArray(Le)?ie.checked=!!Le.find(Se=>Se===ie.value):ie.checked=Le===ie.value||!!Le)}):je.refs.forEach(ie=>ie.checked=ie.value===Le):x4(je.ref)?je.ref.value="":(je.ref.value=Le,je.ref.type||E.state.next({name:W,values:bn(i)})))}(pe.shouldDirty||pe.shouldTouch)&&I(W,Le,pe.shouldTouch,pe.shouldDirty,!0),pe.shouldValidate&&se(W)},te=(W,ce,pe)=>{for(const Ne in ce){if(!ce.hasOwnProperty(Ne))return;const Le=ce[Ne],je=W+"."+Ne,ie=ze(r,je);(u.array.has(W)||zn(Le)||ie&&!ie._f)&&!Uo(Le)?te(je,Le,pe):Y(je,Le,pe)}},V=(W,ce,pe={})=>{const Ne=ze(r,W),Le=u.array.has(W),je=bn(ce);Qt(i,W,je),Le?(E.array.next({name:W,values:bn(i)}),(g.isDirty||g.dirtyFields||m.isDirty||m.dirtyFields)&&pe.shouldDirty&&E.state.next({name:W,dirtyFields:Xc(a,i),isDirty:U(W,je)})):Ne&&!Ne._f&&!Pr(je)?te(W,je,pe):Y(W,je,pe),n6(W,u)&&E.state.next({...n}),E.state.next({name:l.mount?W:void 0,values:bn(i)})},J=async W=>{l.mount=!0;const ce=W.target;let pe=ce.name,Ne=!0;const Le=ze(r,pe),je=Be=>{Ne=Number.isNaN(Be)||Uo(Be)&&isNaN(Be.getTime())||Ki(Be,ze(i,pe,Be))},ie=ou(t.mode),Se=ou(t.reValidateMode);if(Le){let Be,qe;const pt=ce.type?N5(Le._f):OR(W),Xt=W.type===O1.BLUR||W.type===O1.FOCUS_OUT,jn=!Xee(Le._f)&&!t.resolver&&!ze(n.errors,pe)&&!Le._f.deps||ete(Xt,ze(n.touchedFields,pe),n.isSubmitted,Se,ie),hn=n6(pe,u,Xt);Qt(i,pe,pt),Xt?(Le._f.onBlur&&Le._f.onBlur(W),d&&d(0)):Le._f.onChange&&Le._f.onChange(W);const Wn=I(pe,pt,Xt),qn=!Nr(Wn)||hn;if(!Xt&&E.state.next({name:pe,type:W.type,values:bn(i)}),jn)return(g.isValid||m.isValid)&&(t.mode==="onBlur"?Xt&&A():Xt||A()),qn&&E.state.next({name:pe,...hn?{}:Wn});if(!Xt&&hn&&E.state.next({...n}),t.resolver){const{errors:ln}=await L([pe]);if(je(pt),Ne){const un=P5(n.errors,r,pe),$n=P5(ln,r,un.name||pe);Be=$n.error,pe=$n.name,qe=Nr(ln)}}else S([pe],!0),Be=(await r6(Le,u.disabled,i,b,t.shouldUseNativeValidation))[pe],S([pe]),je(pt),Ne&&(Be?qe=!1:(g.isValid||m.isValid)&&(qe=await B(r,!0)));Ne&&(Le._f.deps&&se(Le._f.deps),N(pe,qe,Be,Wn))}},X=(W,ce)=>{if(ze(n.errors,ce)&&W.focus)return W.focus(),1},se=async(W,ce={})=>{let pe,Ne;const Le=$r(W);if(t.resolver){const je=await D(En(W)?W:Le);pe=Nr(je),Ne=W?!Le.some(ie=>ze(je,ie)):pe}else W?(Ne=(await Promise.all(Le.map(async je=>{const ie=ze(r,je);return await B(ie&&ie._f?{[je]:ie}:ie)}))).every(Boolean),!(!Ne&&!n.isValid)&&A()):Ne=pe=await B(r);return E.state.next({...!bs(W)||(g.isValid||m.isValid)&&pe!==n.isValid?{}:{name:W},...t.resolver||!W?{isValid:pe}:{},errors:n.errors}),ce.shouldFocus&&!Ne&&pu(r,X,W?Le:u.mount),Ne},C=W=>{const ce={...l.mount?i:a};return En(W)?ce:bs(W)?ze(ce,W):W.map(pe=>ze(ce,pe))},oe=(W,ce)=>({invalid:!!ze((ce||n).errors,W),isDirty:!!ze((ce||n).dirtyFields,W),error:ze((ce||n).errors,W),isValidating:!!ze(n.validatingFields,W),isTouched:!!ze((ce||n).touchedFields,W)}),ge=W=>{W&&$r(W).forEach(ce=>Bn(n.errors,ce)),E.state.next({errors:W?n.errors:{}})},j=(W,ce,pe)=>{const Ne=(ze(r,W,{_f:{}})._f||{}).ref,Le=ze(n.errors,W)||{},{ref:je,message:ie,type:Se,...Be}=Le;Qt(n.errors,W,{...Be,...ce,ref:Ne}),E.state.next({name:W,errors:n.errors,isValid:!1}),pe&&pe.shouldFocus&&Ne&&Ne.focus&&Ne.focus()},Ee=(W,ce)=>Za(W)?E.state.subscribe({next:pe=>W(F(void 0,ce),pe)}):F(W,ce,!0),ke=W=>E.state.subscribe({next:ce=>{Jee(W.name,ce.name,W.exact)&&Wee(ce,W.formState||g,st,W.reRenderRoot)&&W.callback({values:{...i},...n,...ce})}}).unsubscribe,Z=W=>(l.mount=!0,m={...m,...W.formState},ke({...W,formState:m})),ae=(W,ce={})=>{for(const pe of W?$r(W):u.mount)u.mount.delete(pe),u.array.delete(pe),ce.keepValue||(Bn(r,pe),Bn(i,pe)),!ce.keepError&&Bn(n.errors,pe),!ce.keepDirty&&Bn(n.dirtyFields,pe),!ce.keepTouched&&Bn(n.touchedFields,pe),!ce.keepIsValidating&&Bn(n.validatingFields,pe),!t.shouldUnregister&&!ce.keepDefaultValue&&Bn(a,pe);E.state.next({values:bn(i)}),E.state.next({...n,...ce.keepDirty?{isDirty:U()}:{}}),!ce.keepIsValid&&A()},Te=({disabled:W,name:ce})=>{(la(W)&&l.mount||W||u.disabled.has(ce))&&(W?u.disabled.add(ce):u.disabled.delete(ce))},Ze=(W,ce={})=>{let pe=ze(r,W);const Ne=la(ce.disabled)||la(t.disabled);return Qt(r,W,{...pe||{},_f:{...pe&&pe._f?pe._f:{ref:{name:W}},name:W,mount:!0,...ce}}),u.mount.add(W),pe?Te({disabled:la(ce.disabled)?ce.disabled:t.disabled,name:W}):M(W,!0,ce.value),{...Ne?{disabled:ce.disabled||t.disabled}:{},...t.progressive?{required:!!ce.required,min:Wc(ce.min),max:Wc(ce.max),minLength:Wc(ce.minLength),maxLength:Wc(ce.maxLength),pattern:Wc(ce.pattern)}:{},name:W,onChange:J,onBlur:J,ref:Le=>{if(Le){Ze(W,ce),pe=ze(r,W);const je=En(Le.value)&&Le.querySelectorAll&&Le.querySelectorAll("input,select,textarea")[0]||Le,ie=$ee(je),Se=pe._f.refs||[];if(ie?Se.find(Be=>Be===je):je===pe._f.ref)return;Qt(r,W,{_f:{...pe._f,...ie?{refs:[...Se.filter(J2),je,...Array.isArray(ze(a,W))?[{}]:[]],ref:{type:je.type,name:W}}:{ref:je}}}),M(W,!1,void 0,je)}else pe=ze(r,W,{}),pe._f&&(pe._f.mount=!1),(t.shouldUnregister||ce.shouldUnregister)&&!(NR(u.array,W)&&l.action)&&u.unMount.add(W)}}},Ae=()=>t.shouldFocusError&&pu(r,X,u.mount),Oe=W=>{la(W)&&(E.state.next({disabled:W}),pu(r,(ce,pe)=>{const Ne=ze(r,pe);Ne&&(ce.disabled=Ne._f.disabled||W,Array.isArray(Ne._f.refs)&&Ne._f.refs.forEach(Le=>{Le.disabled=Ne._f.disabled||W}))},0,!1))},et=(W,ce)=>async pe=>{let Ne;pe&&(pe.preventDefault&&pe.preventDefault(),pe.persist&&pe.persist());let Le=bn(i);if(E.state.next({isSubmitting:!0}),t.resolver){const{errors:je,values:ie}=await L();n.errors=je,Le=bn(ie)}else await B(r);if(u.disabled.size)for(const je of u.disabled)Bn(Le,je);if(Bn(n.errors,"root"),Nr(n.errors)){E.state.next({errors:{}});try{await W(Le,pe)}catch(je){Ne=je}}else ce&&await ce({...n.errors},pe),Ae(),setTimeout(Ae);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nr(n.errors)&&!Ne,submitCount:n.submitCount+1,errors:n.errors}),Ne)throw Ne},ct=(W,ce={})=>{ze(r,W)&&(En(ce.defaultValue)?V(W,bn(ze(a,W))):(V(W,ce.defaultValue),Qt(a,W,bn(ce.defaultValue))),ce.keepTouched||Bn(n.touchedFields,W),ce.keepDirty||(Bn(n.dirtyFields,W),n.isDirty=ce.defaultValue?U(W,bn(ze(a,W))):U()),ce.keepError||(Bn(n.errors,W),g.isValid&&A()),E.state.next({...n}))},it=(W,ce={})=>{const pe=W?bn(W):a,Ne=bn(pe),Le=Nr(W),je=Le?a:Ne;if(ce.keepDefaultValues||(a=pe),!ce.keepValues){if(ce.keepDirtyValues){const ie=new Set([...u.mount,...Object.keys(Xc(a,i))]);for(const Se of Array.from(ie))ze(n.dirtyFields,Se)?Qt(je,Se,ze(i,Se)):V(Se,ze(je,Se))}else{if(v4&&En(W))for(const ie of u.mount){const Se=ze(r,ie);if(Se&&Se._f){const Be=Array.isArray(Se._f.refs)?Se._f.refs[0]:Se._f.ref;if(N1(Be)){const qe=Be.closest("form");if(qe){qe.reset();break}}}}if(ce.keepFieldsRef)for(const ie of u.mount)V(ie,ze(je,ie));else r={}}i=t.shouldUnregister?ce.keepDefaultValues?bn(a):{}:bn(je),E.array.next({values:{...je}}),E.state.next({values:{...je}})}u={mount:ce.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!g.isValid||!!ce.keepIsValid||!!ce.keepDirtyValues,l.watch=!!t.shouldUnregister,E.state.next({submitCount:ce.keepSubmitCount?n.submitCount:0,isDirty:Le?!1:ce.keepDirty?n.isDirty:!!(ce.keepDefaultValues&&!Ki(W,a)),isSubmitted:ce.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Le?{}:ce.keepDirtyValues?ce.keepDefaultValues&&i?Xc(a,i):n.dirtyFields:ce.keepDefaultValues&&W?Xc(a,W):ce.keepDirty?n.dirtyFields:{},touchedFields:ce.keepTouched?n.touchedFields:{},errors:ce.keepErrors?n.errors:{},isSubmitSuccessful:ce.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Ht=(W,ce)=>it(Za(W)?W(i):W,ce),_t=(W,ce={})=>{const pe=ze(r,W),Ne=pe&&pe._f;if(Ne){const Le=Ne.refs?Ne.refs[0]:Ne.ref;Le.focus&&(Le.focus(),ce.shouldSelect&&Za(Le.select)&&Le.select())}},st=W=>{n={...n,...W}},bt={control:{register:Ze,unregister:ae,getFieldState:oe,handleSubmit:et,setError:j,_subscribe:ke,_runSchema:L,_focusError:Ae,_getWatch:F,_getDirty:U,_setValid:A,_setFieldArray:w,_setDisabledField:Te,_setErrors:P,_getFieldArray:Q,_reset:it,_resetDefaultValues:()=>Za(t.defaultValues)&&t.defaultValues().then(W=>{Ht(W,t.resetOptions),E.state.next({isLoading:!1})}),_removeUnmounted:k,_disableForm:Oe,_subjects:E,_proxyFormState:g,get _fields(){return r},get _formValues(){return i},get _state(){return l},set _state(W){l=W},get _defaultValues(){return a},get _names(){return u},set _names(W){u=W},get _formState(){return n},get _options(){return t},set _options(W){t={...t,...W}}},subscribe:Z,trigger:se,register:Ze,handleSubmit:et,watch:Ee,setValue:V,getValues:C,reset:Ht,resetField:ct,clearErrors:ge,unregister:ae,setError:j,setFocus:_t,getFieldState:oe};return{...bt,formControl:bt}}var Zi=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},eg=(e,t,n={})=>n.shouldFocus||En(n.shouldFocus)?n.focusName||`${e}.${En(n.focusIndex)?t:n.focusIndex}.`:"",tg=(e,t)=>[...e,...$r(t)],ng=e=>Array.isArray(e)?e.map(()=>{}):void 0;function rg(e,t,n){return[...e.slice(0,t),...$r(n),...e.slice(t)]}var ag=(e,t,n)=>Array.isArray(e)?(En(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],sg=(e,t)=>[...$r(t),...$r(e)];function ate(e,t){let n=0;const r=[...e];for(const a of t)r.splice(a-n,1),n++;return Dh(r).length?r:[]}var ig=(e,t)=>En(t)?[]:ate(e,$r(t).sort((n,r)=>n-r)),og=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},L5=(e,t,n)=>(e[t]=n,e);function ste(e){const t=ns(),{control:n=t.control,name:r,keyName:a="id",shouldUnregister:i,rules:l}=e,[u,d]=me.useState(n._getFieldArray(r)),h=me.useRef(n._getFieldArray(r).map(Zi)),g=me.useRef(u),m=me.useRef(r),E=me.useRef(!1);m.current=r,g.current=u,n._names.array.add(r),l&&n.register(r,l),Lh(()=>n._subjects.array.subscribe({next:({values:N,name:L})=>{if(L===m.current||!L){const D=ze(N,m.current);Array.isArray(D)&&(d(D),h.current=D.map(Zi))}}}).unsubscribe,[n]);const b=me.useCallback(N=>{E.current=!0,n._setFieldArray(r,N)},[n,r]),T=(N,L)=>{const D=$r(bn(N)),B=tg(n._getFieldArray(r),D);n._names.focus=eg(r,B.length-1,L),h.current=tg(h.current,D.map(Zi)),b(B),d(B),n._setFieldArray(r,B,tg,{argA:ng(N)})},A=(N,L)=>{const D=$r(bn(N)),B=sg(n._getFieldArray(r),D);n._names.focus=eg(r,0,L),h.current=sg(h.current,D.map(Zi)),b(B),d(B),n._setFieldArray(r,B,sg,{argA:ng(N)})},S=N=>{const L=ig(n._getFieldArray(r),N);h.current=ig(h.current,N),b(L),d(L),!Array.isArray(ze(n._fields,r))&&Qt(n._fields,r,void 0),n._setFieldArray(r,L,ig,{argA:N})},w=(N,L,D)=>{const B=$r(bn(L)),k=rg(n._getFieldArray(r),N,B);n._names.focus=eg(r,N,D),h.current=rg(h.current,N,B.map(Zi)),b(k),d(k),n._setFieldArray(r,k,rg,{argA:N,argB:ng(L)})},R=(N,L)=>{const D=n._getFieldArray(r);og(D,N,L),og(h.current,N,L),b(D),d(D),n._setFieldArray(r,D,og,{argA:N,argB:L},!1)},P=(N,L)=>{const D=n._getFieldArray(r);ag(D,N,L),ag(h.current,N,L),b(D),d(D),n._setFieldArray(r,D,ag,{argA:N,argB:L},!1)},M=(N,L)=>{const D=bn(L),B=L5(n._getFieldArray(r),N,D);h.current=[...B].map((k,U)=>!k||U===N?Zi():h.current[U]),b(B),d([...B]),n._setFieldArray(r,B,L5,{argA:N,argB:D},!0,!1)},I=N=>{const L=$r(bn(N));h.current=L.map(Zi),b([...L]),d([...L]),n._setFieldArray(r,[...L],D=>D,{},!0,!1)};return me.useEffect(()=>{if(n._state.action=!1,n6(r,n._names)&&n._subjects.state.next({...n._formState}),E.current&&(!ou(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!ou(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(N=>{const L=ze(N.errors,r),D=ze(n._formState.errors,r);(D?!L&&D.type||L&&(D.type!==L.type||D.message!==L.message):L&&L.type)&&(L?Qt(n._formState.errors,r,L):Bn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const N=ze(n._fields,r);N&&N._f&&!(ou(n._options.reValidateMode).isOnSubmit&&ou(n._options.mode).isOnSubmit)&&r6(N,n._names.disabled,n._formValues,n._options.criteriaMode===Sa.all,n._options.shouldUseNativeValidation,!0).then(L=>!Nr(L)&&n._subjects.state.next({errors:BR(n._formState.errors,L,r)}))}n._subjects.state.next({name:r,values:bn(n._formValues)}),n._names.focus&&pu(n._fields,(N,L)=>{if(n._names.focus&&L.startsWith(n._names.focus)&&N.focus)return N.focus(),1}),n._names.focus="",n._setValid(),E.current=!1},[u,r,n]),me.useEffect(()=>(!ze(n._formValues,r)&&n._setFieldArray(r),()=>{const N=(L,D)=>{const B=ze(n._fields,L);B&&B._f&&(B._f.mount=D)};n._options.shouldUnregister||i?n.unregister(r):N(r,!1)}),[r,n,a,i]),{swap:me.useCallback(R,[b,r,n]),move:me.useCallback(P,[b,r,n]),prepend:me.useCallback(A,[b,r,n]),append:me.useCallback(T,[b,r,n]),remove:me.useCallback(S,[b,r,n]),insert:me.useCallback(w,[b,r,n]),update:me.useCallback(M,[b,r,n]),replace:me.useCallback(I,[b,r,n]),fields:me.useMemo(()=>u.map((N,L)=>({...N,[a]:h.current[L]||Zi()})),[u,a])}}function ite(e={}){const t=me.useRef(void 0),n=me.useRef(void 0),[r,a]=me.useState({isDirty:!1,isValidating:!1,isLoading:Za(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Za(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Za(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=rte(e);t.current={...u,formState:r}}const i=t.current.control;return i._options=e,Lh(()=>{const l=i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}),reRenderRoot:!0});return a(u=>({...u,isReady:!0})),i._formState.isReady=!0,l},[i]),me.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),me.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),me.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),me.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),me.useEffect(()=>{if(i._proxyFormState.isDirty){const l=i._getDirty();l!==r.isDirty&&i._subjects.state.next({isDirty:l})}},[i,r.isDirty]),me.useEffect(()=>{e.values&&!Ki(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,a(l=>({...l}))):i._resetDefaultValues()},[i,e.values]),me.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=PR(r,i),t.current}const M5=(e,t,n)=>{if(e&&"reportValidity"in e){const r=ze(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},a6=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?M5(r.ref,n,e):r&&r.refs&&r.refs.forEach(a=>M5(a,n,e))}},I5=(e,t)=>{t.shouldUseNativeValidation&&a6(e,t);const n={};for(const r in e){const a=ze(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(ote(t.names||Object.keys(e),r)){const l=Object.assign({},ze(n,r));Qt(l,"root",i),Qt(n,r,l)}else Qt(n,r,i)}return n},ote=(e,t)=>{const n=j5(t);return e.some(r=>j5(r).match(`^${n}\\.\\d+`))};function j5(e){return e.replace(/\]|\[/g,"")}function VR(e,t,n){function r(u,d){var h;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(h=u._zod).traits??(h.traits=new Set),u._zod.traits.add(e),t(u,d);for(const g in l.prototype)g in u||Object.defineProperty(u,g,{value:l.prototype[g].bind(u)});u._zod.constr=l,u._zod.def=d}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function l(u){var d;const h=n?.Parent?new i:this;r(h,u),(d=h._zod).deferred??(d.deferred=[]);for(const g of h._zod.deferred)g();return h}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(l,"name",{value:e}),l}class lte extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const ute={};function zR(e){return ute}function cte(e,t){return typeof t=="bigint"?t.toString():t}const ZR=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function jf(e){return typeof e=="string"?e:e?.message}function qR(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=jf(e.inst?._zod.def?.error?.(e))??jf(t?.error?.(e))??jf(n.customError?.(e))??jf(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}const $R=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,cte,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},dte=VR("$ZodError",$R),QR=VR("$ZodError",$R,{Parent:Error}),fte=e=>(t,n,r,a)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw new lte;if(l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>qR(d,i,zR())));throw ZR(u,a?.callee),u}return l.value},hte=fte(QR),mte=e=>async(t,n,r,a)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},i);if(l instanceof Promise&&(l=await l),l.issues.length){const u=new(a?.Err??e)(l.issues.map(d=>qR(d,i,zR())));throw ZR(u,a?.callee),u}return l.value},pte=mte(QR);function H5(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function gte(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var u=r.unionErrors[0].errors[0];n[l]={message:u.message,type:u.code}}else n[l]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(g){return g.errors.forEach(function(m){return e.push(m)})}),t){var d=n[l].types,h=d&&d[r.code];n[l]=E4(l,t,n,a,h?[].concat(h,r.message):r.message)}e.shift()}return n}function vte(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,l=r.path.join(".");if(!n[l])if(r.code==="invalid_union"){var u=r.errors[0][0];n[l]={message:u.message,type:u.code}}else n[l]={message:i,type:a};if(r.code==="invalid_union"&&r.errors.forEach(function(g){return g.forEach(function(m){return e.push(m)})}),t){var d=n[l].types,h=d&&d[r.code];n[l]=E4(l,t,n,a,h?[].concat(h,r.message):r.message)}e.shift()}return n}function yte(e,t,n){if(n===void 0&&(n={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,a,i){try{return Promise.resolve(H5(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return i.shouldUseNativeValidation&&a6({},i),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(u){return Array.isArray(u?.issues)}(l))return{values:{},errors:I5(gte(l.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw l}))}catch(l){return Promise.reject(l)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,a,i){try{return Promise.resolve(H5(function(){return Promise.resolve((n.mode==="sync"?hte:pte)(e,r,t)).then(function(l){return i.shouldUseNativeValidation&&a6({},i),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(u){return u instanceof dte}(l))return{values:{},errors:I5(vte(l.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}function Mh(e){return ite({...e,resolver:yte(e.schema,void 0)})}function YR({form:e,className:t,children:n,onSubmit:r}){return v.jsx(kR,{...e,children:v.jsx("form",{onSubmit:e.handleSubmit(r),className:De("flex w-full flex-col gap-y-8",t),children:n})})}function T4({schema:e,defaultValues:t,className:n,children:r,onSubmit:a}){const i=Mh({schema:e,defaultValues:t});return v.jsx(kR,{...i,children:v.jsx("form",{onSubmit:i.handleSubmit(a),className:De("flex w-full flex-col gap-y-8",n),children:r})})}const GR=p.createContext({}),Ih=({...e})=>v.jsx(GR.Provider,{value:{name:e.name},children:v.jsx(qee,{...e})}),jh=()=>{const e=p.useContext(GR),t=p.useContext(KR),{getFieldState:n,formState:r}=ns(),a=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},KR=p.createContext({});function A4(e){const{className:t,...n}=e,r=p.useId();return v.jsx(KR.Provider,{value:{id:r},children:v.jsx("div",{className:De("flex flex-col gap-y-2",t),...n})})}function S4(e){const{className:t,...n}=e,{error:r,formItemId:a}=jh();return v.jsx(sl,{className:De(r&&"text-destructive",t),htmlFor:a,...n})}function w4(e){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=jh();return v.jsx(yr,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})}function C4(e){const{className:t,...n}=e,{formDescriptionId:r}=jh();return v.jsx("p",{id:r,className:De("text-fg-subtle text-xs",t),...n})}function R4(e){const{className:t,children:n,...r}=e,{error:a,formMessageId:i}=jh(),l=a?String(a?.message??""):n;return l?v.jsx("p",{id:i,className:De("text-accent-red text-sm",t),...r,children:l}):null}function id({className:e,type:t,...n}){return v.jsx("input",{type:t,className:De("flex h-8 w-full min-w-0 rounded-md border border-input bg-surface px-3 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground/70 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",t==="search"&&"[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none",t==="file"&&"p-0 pr-3 text-muted-foreground/70 italic file:me-3 file:h-full file:border-0 file:border-input file:border-r file:border-solid file:bg-transparent file:px-3 file:font-medium file:text-foreground file:text-sm file:not-italic",e),...n})}function Jo({description:e,label:t,name:n,helperLabel:r,hideErrors:a=!1,...i}){const l=ns();return v.jsx(Ih,{control:l.control,name:n,render:({field:u})=>v.jsx(A4,{children:v.jsxs("div",{className:"flex flex-col gap-1",children:[(t||r)&&v.jsxs("div",{className:"flex flex-row items-center",children:[t&&v.jsx(S4,{children:t}),r&&v.jsx(sl,{className:"ml-auto text-fg-subtle/70",children:r})]}),v.jsx(w4,{children:v.jsx(id,{...i,...u})}),e&&v.jsx(C4,{children:e}),!a&&v.jsx(R4,{})]})})})}const XR=({className:e,children:t,...n})=>v.jsxs("div",{className:"relative flex w-full",children:[v.jsx("select",{"data-slot":"select-native",className:De("peer inline-flex cursor-pointer appearance-none items-center rounded-md border border-input bg-surface text-foreground text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 has-[option[disabled]:checked]:text-muted-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",n.multiple?"py-1 *:px-3 *:py-1 [&_option:checked]:bg-accent":"h-8 ps-3 pe-8",e),...n,children:t}),!n.multiple&&v.jsx("span",{className:"pointer-events-none absolute inset-y-0 end-2 flex h-full items-center justify-center text-muted-foreground/80 peer-disabled:opacity-50 peer-aria-invalid:text-destructive/80",children:v.jsx(XT,{className:"size-3",weight:"bold","aria-hidden":"true"})})]});function s6({className:e,description:t,label:n,name:r,helperLabel:a,hideErrors:i=!1,...l}){const u=ns();return v.jsx(Ih,{control:u.control,name:r,render:({field:d})=>v.jsx(A4,{children:v.jsxs("div",{className:"flex flex-col gap-1",children:[(n||a)&&v.jsxs("div",{className:"flex flex-row items-center",children:[n&&v.jsx(S4,{children:n}),a&&v.jsx(sl,{className:"ml-auto text-fg-subtle/70",children:a})]}),v.jsx(w4,{children:v.jsx(XR,{className:De("w-full",e),...l,...d})}),t&&v.jsx(C4,{children:t}),!i&&v.jsx(R4,{})]})})})}function D1({registryEntry:e,proxies:t,defaultProxyId:n,onClickCancel:r,onSubmit:a,isSubmitting:i=!1}){const l=(e.parameters??[]).filter((m,E,b)=>b.findIndex(T=>T.name===m.name)===E),u=(t??[]).filter(m=>m.servers.some(E=>E.name===e.name)).map(m=>m.id),d=t?.filter(m=>!u.includes(m.id));if(t&&t.length>0&&u.length===t.length)return v.jsx(Ns,{children:v.jsx(ju,{children:"This MCP has already been installed on all your proxies."})});const h=Ve({...d&&d.length>0&&{proxyId:ue()},parameters:Ve(l.reduce((m,E)=>(m[E.name]=ue().trim().min(1,"Required"),m),{}))}),g={...d&&d.length>0&&{proxyId:n??d[0]?.id??""},parameters:l.reduce((m,E)=>(m[E.name]="",m),{})};return v.jsxs(T4,{schema:h,defaultValues:g,className:"gap-y-0 overflow-hidden rounded-xl bg-accent-subtle shadow-[0_0_0_0.5px_rgba(55,50,46,0.15)]",onSubmit:m=>{a({proxyId:d&&d.length>0?m.proxyId:void 0,entryId:e.id,parameters:m.parameters})},children:[v.jsxs("div",{className:"flex flex-col gap-y-4 p-4",children:[d&&d.length>0&&v.jsx(s6,{name:"proxyId",label:"Select a proxy",children:d.map(m=>v.jsx("option",{value:m.id,children:m.name},m.id))}),l.map(m=>v.jsx(Jo,{type:m.password?"password":"text",name:`parameters.${m.name}`,label:m.name,helperLabel:m.required?void 0:"Optional",description:v.jsx(iee,{children:m.description}),autoCorrect:"off",spellCheck:!1},m.name))]}),v.jsxs("div",{className:"border-fg/7 border-t-[0.5px] bg-accent px-4 py-2.5",children:[v.jsx(on,{type:"submit",disabled:i,className:"w-full",children:i?"Installing...":"Add to proxy"}),r&&v.jsx(on,{className:"mt-2 w-full bg-surface/50",variant:"secondary",onClick:r,disabled:i,type:"button",children:"Cancel"})]})]})}const WR=({children:e})=>v.jsx("div",{className:"flex flex-row gap-x-8",children:e}),JR=({children:e})=>v.jsx("div",{className:"flex min-w-0 grow flex-col gap-y-12 lg:gap-y-16",children:e}),eO=({children:e})=>v.jsx("div",{className:"hidden w-xs shrink-0 flex-col lg:flex",children:v.jsx("div",{className:"sticky top-0 flex flex-col gap-y-8",children:e})}),tO=Hv,bte=Fv,Ete=Uv;function xte({className:e,...t}){return v.jsx(ph,{className:De("overlay",e),...t})}function nO({className:e,children:t,dismissable:n=!0,...r}){return v.jsxs(Ete,{children:[v.jsx(xte,{}),v.jsxs(gh,{className:De("popover rounded-xl","fixed inset-x-1 top-1 z-50 grid outline-none duration-200","sm:top-12 sm:left-[50%] sm:w-full sm:max-w-md sm:translate-x-[-50%]","radix-state-[open]:fade-in-0 radix-state-[open]:zoom-in-95 radix-state-[open]:slide-in-from-top-[48%] radix-state-[open]:animate-in","radix-state-[closed]:fade-out-0 radix-state-[closed]:zoom-out-95 radix-state-[closed]:slide-out-to-top-[48%] radix-state-[closed]:animate-out",e),...r,children:[t,n&&v.jsx(vh,{className:De("absolute top-1 right-1 rounded-lg"),asChild:!0,children:v.jsxs(on,{variant:"secondary",size:"icon",children:[v.jsx(z1,{className:"size-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})})]})]})}function _te({className:e,...t}){return v.jsx("div",{className:De("flex flex-col gap-y-1 p-5 text-start",e),...t})}function rO({className:e,...t}){return v.jsx(Bv,{className:De(pi({variant:"h2"}),"text-fg",e),...t})}function aO({className:e,...t}){return v.jsx(Vv,{className:De(pi({variant:"p"}),"text-fg-subtle",e),...t})}function Tte({registryEntry:e,isRegistryEntryLoading:t,proxies:n,entryInstalledOn:r=[],onClickInstall:a,isInstalling:i,open:l,onOpenChange:u}){const d=e;return v.jsx(tO,{open:l,onOpenChange:u,children:v.jsxs(nO,{className:"!max-w-none !inset-1 !translate-0 !w-auto flex flex-col py-10",children:[v.jsxs(zv,{children:[v.jsxs(rO,{className:"pt-4",children:["Install ",d?.title]}),v.jsx(aO,{children:d?.description})]}),v.jsx(Ja,{size:"xl",children:v.jsxs(WR,{children:[v.jsx(JR,{children:d&&v.jsx(_R,{entry:d,onToolClick:()=>{}})}),v.jsx(eO,{children:v.jsx("div",{className:"sticky top-0 flex flex-col gap-y-8",children:v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h3",asChild:!0,children:v.jsx("h3",{children:"Add to proxy"})})}),d&&v.jsx(D1,{registryEntry:d,proxies:n,onSubmit:a,isSubmitting:i,onClickCancel:()=>u(!1)})]})})})]})}),v.jsx("div",{className:"-bottom-5 sticky inset-x-0 px-4 pt-4 md:hidden",children:v.jsx("div",{className:"rounded-xl bg-accent-subtle p-4 shadow-[0_0_0_0.5px_rgba(55,50,46,0.2)]",children:d&&v.jsx(D1,{registryEntry:d,proxies:n,onSubmit:a,isSubmitting:i,onClickCancel:()=>u(!1)})})})]})})}function Ate({registryEntry:e,isRegistryEntryLoading:t,proxies:n,entryInstalledOn:r=[],onClickInstall:a,isInstalling:i,open:l,onOpenChange:u}){return v.jsx(Tte,{registryEntry:e,isRegistryEntryLoading:t,proxies:n,entryInstalledOn:r,onClickInstall:a,isInstalling:i,open:l,onOpenChange:u})}function Ste({name:e,...t}){const n=ns();return v.jsx(Ih,{control:n.control,name:e,render:({field:r})=>v.jsx(id,{type:"hidden",...t,...r})})}function O4({className:e,...t}){const n="\\|/—",[r,a]=p.useState(0);return wte(()=>{a(i=>(i+1)%n.length)},100),v.jsxs("span",{className:De("font-mono",e),...t,children:["[",n[r],"]"]})}function wte(e,t){const n=p.useRef(e);Cte(()=>{n.current=e},[e]),p.useEffect(()=>{const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}const Cte=typeof window<"u"?p.useLayoutEffect:p.useEffect,sO=Ve({name:ue().trim().min(1,"Required"),description:ue().trim().optional().transform(e=>e===""?void 0:e)});function Rte({form:e,isPending:t,onSubmit:n}){return v.jsxs(YR,{className:"gap-y-4",form:e,onSubmit:async r=>{await n(r)},children:[v.jsx(Jo,{label:"Name",name:"name",placeholder:"My Proxy"}),v.jsx(Ste,{name:"description"}),v.jsx(on,{size:"default",className:"self-start",type:"submit",disabled:t,children:t?v.jsx(O4,{className:"text-fg-subtle"}):"Create proxy"})]})}function Ote({title:e="Get started",description:t="Let's get your started with MCP using Director."}){return v.jsxs(v.Fragment,{children:[v.jsx(fh,{className:"mx-auto"}),v.jsxs(an,{className:"items-center gap-y-1.5 text-center",children:[v.jsx(sn,{className:"font-medium text-2xl",children:e}),v.jsx(Os,{className:"text-base",children:t})]})]})}var iO="Toggle",oO=p.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:a,...i}=e,[l,u]=Oa({prop:n,onChange:a,defaultProp:r??!1,caller:iO});return v.jsx(xt.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:ut(e.onClick,()=>{e.disabled||u(!l)})})});oO.displayName=iO;var ho="ToggleGroup",[lO,Sie]=Qr(ho,[Pu]),uO=Pu(),N4=me.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const a=r;return v.jsx(Nte,{...a,ref:t})}if(n==="multiple"){const a=r;return v.jsx(kte,{...a,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${ho}\``)});N4.displayName=ho;var[cO,dO]=lO(ho),Nte=me.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[l,u]=Oa({prop:n,defaultProp:r??"",onChange:a,caller:ho});return v.jsx(cO,{scope:e.__scopeToggleGroup,type:"single",value:me.useMemo(()=>l?[l]:[],[l]),onItemActivate:u,onItemDeactivate:me.useCallback(()=>u(""),[u]),children:v.jsx(fO,{...i,ref:t})})}),kte=me.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[l,u]=Oa({prop:n,defaultProp:r??[],onChange:a,caller:ho}),d=me.useCallback(g=>u((m=[])=>[...m,g]),[u]),h=me.useCallback(g=>u((m=[])=>m.filter(E=>E!==g)),[u]);return v.jsx(cO,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:d,onItemDeactivate:h,children:v.jsx(fO,{...i,ref:t})})});N4.displayName=ho;var[Pte,Dte]=lO(ho),fO=me.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:a=!0,orientation:i,dir:l,loop:u=!0,...d}=e,h=uO(n),g=F0(l),m={role:"group",dir:g,...d};return v.jsx(Pte,{scope:n,rovingFocus:a,disabled:r,children:a?v.jsx(nv,{asChild:!0,...h,orientation:i,dir:g,loop:u,children:v.jsx(xt.div,{...m,ref:t})}):v.jsx(xt.div,{...m,ref:t})})}),L1="ToggleGroupItem",hO=me.forwardRef((e,t)=>{const n=dO(L1,e.__scopeToggleGroup),r=Dte(L1,e.__scopeToggleGroup),a=uO(e.__scopeToggleGroup),i=n.value.includes(e.value),l=r.disabled||e.disabled,u={...e,pressed:i,disabled:l},d=me.useRef(null);return r.rovingFocus?v.jsx(rv,{asChild:!0,...a,focusable:!l,active:i,ref:d,children:v.jsx(F5,{...u,ref:t})}):v.jsx(F5,{...u,ref:t})});hO.displayName=L1;var F5=me.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...a}=e,i=dO(L1,n),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},u=i.type==="single"?l:void 0;return v.jsx(oO,{...u,...a,ref:t,onPressedChange:d=>{d?i.onItemActivate(r):i.onItemDeactivate(r)}})}),Lte=N4,Mte=hO;function Ite({selectedClient:e,onClientSelect:t,clients:n,isLoading:r,isInstalling:a,onInstall:i}){return v.jsxs("div",{className:"flex flex-col gap-y-4 p-4",children:[v.jsx(Lte,{type:"single",value:e,onValueChange:l=>{t(l)},className:"group flex flex-row items-center justify-center gap-x-2",children:p.Children.toArray(n.filter(l=>l.type==="installer").map(l=>{const u=l.installed;return v.jsxs(Mte,{value:l.id,className:De("group relative flex flex-1 flex-col items-center gap-y-1 overflow-hidden rounded-lg bg-accent p-3","cursor-pointer hover:bg-accent-subtle","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-accent","outline-none ring-2 ring-transparent ring-offset-2 ring-offset-surface","focus-visible:bg-accent-subtle focus-visible:ring-accent","radix-state-[on]:ring-fg"),disabled:a||r||!u,children:[v.jsx("img",{src:l.image,alt:"Claude",width:64,height:64}),v.jsx(wa,{className:"font-[450] text-fg/80 capitalize",children:l.label})]},l.id)}))}),v.jsx(on,{className:"self-end",disabled:!e||a,onClick:()=>{e&&i(e)},children:a?"Connecting…":"Connect"})]})}var Hh="Collapsible",[jte,mO]=Qr(Hh),[Hte,k4]=jte(Hh),pO=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:i,onOpenChange:l,...u}=e,[d,h]=Oa({prop:r,defaultProp:a??!1,onChange:l,caller:Hh});return v.jsx(Hte,{scope:n,disabled:i,contentId:Es(),open:d,onOpenToggle:p.useCallback(()=>h(g=>!g),[h]),children:v.jsx(xt.div,{"data-state":D4(d),"data-disabled":i?"":void 0,...u,ref:t})})});pO.displayName=Hh;var gO="CollapsibleTrigger",vO=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=k4(gO,n);return v.jsx(xt.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":D4(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:ut(e.onClick,a.onOpenToggle)})});vO.displayName=gO;var P4="CollapsibleContent",yO=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=k4(P4,e.__scopeCollapsible);return v.jsx(Na,{present:n||a.open,children:({present:i})=>v.jsx(Fte,{...r,ref:t,present:i})})});yO.displayName=P4;var Fte=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...i}=e,l=k4(P4,n),[u,d]=p.useState(r),h=p.useRef(null),g=xn(t,h),m=p.useRef(0),E=m.current,b=p.useRef(0),T=b.current,A=l.open||u,S=p.useRef(A),w=p.useRef(void 0);return p.useEffect(()=>{const R=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(R)},[]),Ra(()=>{const R=h.current;if(R){w.current=w.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const P=R.getBoundingClientRect();m.current=P.height,b.current=P.width,S.current||(R.style.transitionDuration=w.current.transitionDuration,R.style.animationName=w.current.animationName),d(r)}},[l.open,r]),v.jsx(xt.div,{"data-state":D4(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!A,...i,ref:g,style:{"--radix-collapsible-content-height":E?`${E}px`:void 0,"--radix-collapsible-content-width":T?`${T}px`:void 0,...e.style},children:A&&a})});function D4(e){return e?"open":"closed"}var bO=pO,EO=vO,xO=yO;function Ute({className:e,children:t,...n}){return v.jsx("div",{"data-slot":"get-started-list",className:De("flex flex-col gap-y-3",e),...n,children:t})}function lg({className:e,children:t,title:n,status:r="not-started",...a}){return v.jsxs(bO,{"data-slot":"get-started-list-item",className:De("rounded-2xl",a.disabled?"bg-accent":"popover",e),...a,children:[v.jsxs(EO,{"data-slot":"get-started-list-item-trigger",tabIndex:-1,className:"group flex w-full flex-row items-center justify-between gap-x-2 py-3.5 pr-3.5 pl-3.5 text-start outline-none disabled:cursor-default",children:[(()=>{switch(r){case"completed":return v.jsx(JT,{weight:"fill",className:"size-6 text-success-fg"});case"in-progress":return v.jsx(eA,{weight:"fill",className:"size-6 text-fg/75"});case"not-started":return v.jsx(j6,{weight:"fill",className:"size-6 text-fg/30"})}})(),v.jsx("span",{className:"flex-1 font-[450] text-[15px] leading-6 tracking-[0.01em]",children:n})]}),v.jsx(xO,{"data-slot":"get-started-list-item-content",className:"border-t-[0.5px]",children:t})]})}function Bte({searchQuery:e,onSearchQueryChange:t,registryEntries:n,onMcpSelect:r}){return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"relative z-10 px-2 pt-2",children:v.jsx(id,{type:"text",placeholder:"Search MCP servers...",value:e,onChange:a=>t(a.target.value)})}),v.jsxs("div",{className:"grid max-h-[320px] grid-cols-1 gap-1 overflow-y-auto p-2",children:[n.sort((a,i)=>a.title.localeCompare(i.title)).map(a=>v.jsxs("div",{className:"flex cursor-pointer flex-row items-center gap-x-3 rounded-lg bg-accent-subtle/60 px-2.5 py-1.5 hover:bg-accent",onClick:()=>r(a),children:[v.jsx(yh,{src:a.icon}),v.jsxs(qa,{children:[v.jsx(wa,{children:a.title}),v.jsx(X0,{children:a.description})]})]},a.id)),n.length===0&&v.jsx(Ns,{className:"bg-accent-subtle/60",children:v.jsx(vi,{children:"No MCP servers found"})})]})]})}function Vte(e){const{currentWorkspace:t,registryEntries:n,clientStatuses:r,isAddingWorkspaceToClient:a,isCreateWorkspaceLoading:i,onCreateWorkspace:l,searchQuery:u,onSearchQueryChange:d,onClickRegistryEntry:h,onAddWorkspaceToClient:g}=e,[m,E]=p.useState(),b=Mh({schema:sO,defaultValues:{name:"",description:"A proxy for getting started"}}),T=!!t,A=(t?.servers?.length??0)>0,S=p.useMemo(()=>({create:T?"completed":"in-progress",add:T?A?"completed":"in-progress":"not-started",connect:T&&A?"in-progress":"not-started"}),[T,A]);return v.jsx(Ja,{size:"sm",className:"py-12 lg:py-16",children:v.jsxs(rn,{className:"gap-y-8",children:[v.jsx(Ote,{title:"Get started",description:"Let's get you started with MCP using Director."}),v.jsxs(Ute,{children:[v.jsx(lg,{status:S.create,title:"Create an MCP Proxy Server",disabled:S.create==="completed",open:S.create==="in-progress",children:v.jsx("div",{className:"py-4 pr-4 pl-11.5",children:v.jsx(Rte,{form:b,isPending:i,onSubmit:l})})}),v.jsx(lg,{status:S.add,title:"Add your first MCP server",open:S.add==="in-progress",disabled:S.add!=="in-progress",children:v.jsx(Bte,{searchQuery:u,onSearchQueryChange:d,registryEntries:n,onMcpSelect:h})}),v.jsx(lg,{status:S.connect,title:"Connect your first client",open:S.connect==="in-progress",disabled:S.connect!=="in-progress",children:v.jsx(Ite,{selectedClient:m,onClientSelect:E,clients:r,isLoading:!1,isInstalling:a,onInstall:g})})]})]})})}const _O=()=>v.jsx("div",{className:"flex h-screen w-screen items-center justify-center",children:v.jsx(fh,{className:"size-10 animate-pulse"})}),U5=[{id:"claude",label:"Claude",image:new URL("/studio/assets/claude-icon-C3oFA7Zy.png",import.meta.url).href,type:"installer"},{id:"cursor",label:"Cursor",image:new URL("/studio/assets/cursor-icon-BKdzddOD.png",import.meta.url).href,type:"installer"},{id:"vscode",label:"VSCode",image:new URL("/studio/assets/code-icon-BlGhXKkY.png",import.meta.url).href,type:"installer"},{id:"goose",label:"Goose",image:new URL("/studio/assets/goose-icon-CLHAMlFc.png",import.meta.url).href,type:"deep-link"},{id:"raycast",label:"Raycast",image:new URL("/studio/assets/raycast-icon-CDiKLAih.png",import.meta.url).href,type:"deep-link"}];function TO(e){const[t,n]=vn.useQueries(u=>[u.installer.byProxy.list({proxyId:e}),u.installer.allClients()]),r=n.isLoading||t.isLoading,a=r?null:n.data?.map(u=>{const d=U5.find(h=>h.id===u.name);return!d||d.type!=="installer"?null:{id:d.id,label:d.label,image:d.image,type:d.type,installed:u.installed,present:!!t?.data?.[u.name]}}).filter(u=>u!==null)??[],i=U5.filter(u=>u.type==="deep-link").map(u=>({...u}));return{data:(r?null:[...a??[],...i])??void 0,isLoading:r}}function AO(e){return dh.entries.getEntries.useQuery({pageIndex:e.pageIndex,pageSize:e.pageSize,searchQuery:e.searchQuery},{placeholderData:t=>t})}function zte(){const e=Cs(),[t,n]=p.useState(""),[r,a]=p.useState(null),[i,l]=p.useState(null),[u,d]=p.useState(!1),[h,g]=p.useState(!1),m=vn.useUtils(),E=K0(),b=AO({pageIndex:0,pageSize:20,searchQuery:t}),T=vn.installer.byProxy.list.useQuery({proxyId:r},{enabled:!!r}),A=TO(r),S=vn.registry.getEntryByName.useQuery({name:i||""},{enabled:!!i&&u});Mh({schema:sO,defaultValues:{name:"",description:"A proxy for getting started"}});const w=vn.store.create.useMutation({onSuccess:async()=>{await m.store.getAll.refetch(),ur({title:"Proxy created",description:"This proxy was successfully created."})}}),R=vn.installer.byProxy.install.useMutation({onSuccess:()=>{m.installer.byProxy.list.invalidate(),ur({title:"Proxy installed",description:"This proxy was successfully installed"}),g(!0)},onError:F=>{ur({title:"Error",description:F.message})}}),P=vn.registry.getTransportForEntry.useMutation(),M=vn.store.addServer.useMutation({onError:F=>{ur({title:"Error",description:F.message})},onSuccess:F=>{m.store.getAll.invalidate(),ur({title:"Proxy installed",description:"This proxy was successfully installed."}),d(!1)}});p.useEffect(()=>{E.data&&E.data.length===1&&a(E.data[0].id)},[E.data]);const I=E.data&&b.data,L=E.data&&E.data.length>0?E.data[0]:null;T.data&&Object.values(T.data).some(Boolean);const D=async F=>{await w.mutateAsync({...F,servers:[]})},B=F=>{L?.id&&R.mutate({proxyId:L.id,client:F,baseUrl:Iu})},k=F=>{l(F.name),d(!0)},U=async F=>{if(!i)return;const Q=await P.mutateAsync({entryName:i,parameters:F.parameters??{}});F.proxyId&&M.mutate({proxyId:F.proxyId,server:{name:i,transport:Q}})};return I?v.jsxs(v.Fragment,{children:[v.jsx(Vte,{currentWorkspace:L,registryEntries:b.data?.entries??[],clientStatuses:A.data??[],isAddingWorkspaceToClient:R.isPending,isCreateWorkspaceLoading:w.isPending,onCreateWorkspace:D,searchQuery:t,onSearchQueryChange:n,onClickRegistryEntry:k,onAddWorkspaceToClient:B}),i&&v.jsx(Ate,{registryEntry:S.data,isRegistryEntryLoading:S.isLoading,proxies:E.data,entryInstalledOn:[],onClickInstall:U,isInstalling:M.isPending,open:u,onOpenChange:d}),v.jsx(Jz,{open:h,onClickLibrary:()=>e("/library"),onClickWorkspace:()=>e("/")})]}):v.jsx(_O,{})}const Fh=p.forwardRef(({...e},t)=>v.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Fh.displayName="Breadcrumb";const Uh=p.forwardRef(({className:e,...t},n)=>v.jsx("ol",{ref:n,className:De("flex flex-wrap items-center gap-1.5 break-words text-[13px] text-fg-subtle",e),...t}));Uh.displayName="BreadcrumbList";const D0=p.forwardRef(({className:e,...t},n)=>v.jsx("li",{ref:n,className:De("inline-flex min-w-0 max-w-[16ch] items-center gap-1.5 overflow-hidden",e),...t}));D0.displayName="BreadcrumbItem";const SO=p.forwardRef(({asChild:e,className:t,...n},r)=>{const a=e?yr:"a";return v.jsx(a,{ref:r,className:De("truncate font-normal text-fg transition-colors hover:text-fg-subtle",t),...n})});SO.displayName="BreadcrumbLink";const L0=p.forwardRef(({className:e,...t},n)=>v.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:De("truncate font-medium text-fg",e),...t}));L0.displayName="BreadcrumbPage";const Bh=({children:e,className:t,...n})=>v.jsx("li",{role:"presentation","aria-hidden":"true",className:De("[&>svg]:size-3",t),...n,children:e??v.jsx(B1,{weight:"bold"})});Bh.displayName="BreadcrumbSeparator";const Vh=Hv,Zte=Fv,qte=vh,wO=Uv;function $te({className:e,...t}){return v.jsx(ph,{className:De("overlay",e),...t})}function L4({className:e,children:t,...n}){return v.jsxs(wO,{children:[v.jsx($te,{}),v.jsx(gh,{className:De("popover fixed inset-y-1 right-1 z-50 flex w-[calc(100%-0.5rem)] flex-col overflow-hidden rounded-xl transition ease-in-out sm:max-w-xl","shadow-[0_0_10px_6px_rgba(55,50,46,0.13),_0_0_0_0.5px_rgba(55,50,46,0.25)]","radix-state-[open]:slide-in-from-right radix-state-[open]:animate-in radix-state-[open]:duration-300","radix-state-[closed]:slide-out-to-right radix-state-[closed]:animate-out radix-state-[closed]:duration-200",e),...n,children:t})]})}function M4({className:e,...t}){return v.jsx("div",{className:De("flex flex-1 flex-col gap-y-10 overflow-y-auto overflow-x-hidden p-6 pt-10",e),...t})}function I4({className:e,children:t,...n}){return v.jsxs("div",{className:De("flex flex-row-reverse items-center justify-start gap-x-1 border-accent border-b-[0.5px] px-3 py-2",e),...n,children:[v.jsx(qte,{asChild:!0,children:v.jsxs(on,{size:"icon",variant:"secondary",children:[v.jsx(z1,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})}),t]})}const j4=({className:e,...t})=>v.jsx("div",{className:De("flex flex-col gap-y-2 text-left",e),...t});function H4({className:e,...t}){return v.jsx(Bv,{className:De(pi({variant:"h1"}),e),...t})}function F4({className:e,...t}){return v.jsx(Vv,{className:De(pi({variant:"p"}),"text-fg-subtle",e),...t})}function CO({sections:e}){return v.jsxs("div",{className:"flex h-full w-full shrink-0 flex-col gap-y-6 px-4 pt-6 *:last:pb-4",children:[v.jsx("div",{className:"px-2",children:v.jsx(fh,{className:"size-6"})}),e.map((t,n)=>v.jsxs(SH,{className:De(t.className,n===e.length-1?"mt-auto":void 0),children:[t.label&&v.jsx(wH,{label:t.label}),t.isLoading?new Array(3).fill(0).map((r,a)=>v.jsx(f8,{className:"bg-accent-subtle",children:v.jsx(za,{className:"opacity-50",children:v.jsx($a,{text:"Loading"})})},`loading-${a}`)):t.items.map(r=>v.jsxs(f8,{"data-state":r.isActive?"active":"inactive",onClick:r.onClick,children:[r.icon&&v.jsx(ei,{children:r.icon}),v.jsx(za,{children:r.label})]},r.id))]},t.id))]})}const RO=p.createContext([]);function Qte({className:e,children:t,sections:n=[],...r}){return v.jsx(RO.Provider,{value:n,children:v.jsxs("div",{"data-slot":"layout",className:De("flex h-screen w-screen flex-row overflow-hidden bg-bg text-fg",e),...r,children:[v.jsx("div",{"data-slot":"layout-sidebar",className:De("hidden w-full max-w-[220px] shrink-0 overflow-y-auto overflow-x-hidden md:flex"),children:v.jsx(CO,{sections:n})}),v.jsx("div",{"data-slot":"layout-content",className:"flex grow flex-col overflow-hidden p-2 md:pl-px",children:t})]})})}function uo({className:e,children:t,...n}){return v.jsx("div",{className:De("@container/page overflow-hidden text-fg","flex grow flex-col rounded-md bg-surface shadow-[0_0_0_0.5px_rgba(55,50,46,0.2)]",e),...n,children:t})}function Yte({className:e,children:t,...n}){const r=p.useContext(RO);return v.jsxs("div",{className:De("flex shrink-0 flex-row items-center gap-x-2","h-13 border-accent border-b-[0.5px] bg-surface px-4 md:px-8 lg:px-12",e),...n,children:[v.jsxs(Vh,{children:[v.jsx(Zte,{asChild:!0,children:v.jsxs(on,{size:"icon",variant:"ghost",className:"md:hidden",children:[v.jsx(uA,{weight:"fill",className:"!size-5 shrink-0"}),v.jsx("span",{className:"sr-only",children:"Open sidebar"})]})}),v.jsxs(wO,{children:[v.jsx(ph,{className:"overlay"}),v.jsxs(gh,{className:De("fixed inset-y-0 left-0 z-50 h-full w-full max-w-[220px] bg-bg text-fg transition ease-in-out","shadow-[0_0_10px_3px_rgba(55,50,46,0.13),_0_0_0_0.5px_rgba(55,50,46,0.2)] outline-none","overflow-y-auto overflow-x-hidden","radix-state-[closed]:slide-out-to-left radix-state-[closed]:animate-out radix-state-[closed]:duration-200","radix-state-[open]:slide-in-from-left radix-state-[open]:animate-in radix-state-[open]:duration-300"),children:[v.jsxs(zv,{children:[v.jsx(Mv,{children:"Navigation"}),v.jsx(Iv,{children:"A sidebar containing global navigation for Director studio."})]}),v.jsx(CO,{sections:r})]})]})]}),t]})}function hi({className:e,children:t,...n}){return v.jsx("div",{className:De("flex grow flex-col overflow-y-auto overflow-x-hidden py-8 md:py-12 lg:py-16",e),...n,children:t})}function mo({breadcrumbs:e,loading:t=!1,children:n}){return v.jsxs(Yte,{children:[v.jsx(Fh,{className:"grow",children:v.jsx(Uh,{children:e.map((r,a)=>{const i=a===e.length-1,l=!!r.onClick;return v.jsxs(p.Fragment,{children:[a>0&&v.jsx(Bh,{}),v.jsx(D0,{children:l?v.jsx(SO,{onClick:r.onClick,className:"cursor-pointer",children:i&&t?v.jsx($a,{text:r.title}):r.title}):v.jsx(L0,{children:i&&t?v.jsx($a,{text:r.title}):r.title})})]},r.title)})})}),n]})}function Gte({entry:e,proxies:t,onClickInstall:n,onClickCancel:r,isInstalling:a=!1}){const i=(t??[]).filter(l=>l.servers.some(u=>u.name===e.name)).map(l=>l.id);return v.jsxs(v.Fragment,{children:[i.length>0&&v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h3",asChild:!0,children:v.jsx("h3",{children:"Installed on"})})}),v.jsx(ci,{children:i.map(l=>v.jsx(vr,{className:"cursor-pointer",children:v.jsx(Ar,{children:l})},l))})]}),v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h3",asChild:!0,children:v.jsx("h3",{children:"Add to proxy"})})}),v.jsx(D1,{registryEntry:e,proxies:t,onSubmit:n,isSubmitting:a,onClickCancel:r})]})]})}function Kte({children:e}){return v.jsxs(uo,{className:"pointer-events-none relative select-none",children:[e,v.jsx(mo,{breadcrumbs:[{title:"Library"},{title:"Loading"}],loading:!0,children:v.jsx(on,{disabled:!0,className:"ml-auto",children:"Add to proxy"})}),v.jsx(hi,{"aria-hidden":!0,children:v.jsxs(Ja,{size:"lg",children:[v.jsxs(rn,{className:"gap-y-6",children:[v.jsxs(an,{className:"opacity-50",children:[v.jsx(sn,{children:v.jsx($a,{text:"Title"})}),v.jsx(Os,{children:v.jsx($a,{text:"Description"})})]}),v.jsxs(ci,{children:[v.jsxs(vr,{className:"opacity-50",children:[v.jsx(io,{children:v.jsx(dA,{weight:"bold"})}),v.jsx(Ar,{uppercase:!0,children:v.jsx($a,{text:"Badge"})})]}),v.jsxs(vr,{className:"ml-auto opacity-50",children:[v.jsx(io,{children:v.jsx(sA,{weight:"bold"})}),v.jsx(Ar,{uppercase:!0,children:"Homepage"})]})]})]}),v.jsx(si,{}),v.jsxs(rn,{children:[v.jsx(an,{className:"opacity-50",children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Transport"})})}),v.jsx(to,{isLoading:!0,links:[]})]}),v.jsx(si,{}),v.jsxs(rn,{children:[v.jsx(an,{className:"opacity-50",children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Parameters"})})}),v.jsx(to,{isLoading:!0,links:[]})]}),v.jsx(si,{}),v.jsxs(rn,{children:[v.jsx(an,{className:"opacity-50",children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Tools"})})}),v.jsx(to,{isLoading:!0,links:[]})]})]})})]})}var rs="Accordion",Xte=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[U4,Wte,Jte]=Z6(rs),[zh,wie]=Qr(rs,[Jte,mO]),B4=mO(),V4=me.forwardRef((e,t)=>{const{type:n,...r}=e,a=r,i=r;return v.jsx(U4.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?v.jsx(rne,{...i,ref:t}):v.jsx(nne,{...a,ref:t})})});V4.displayName=rs;var[OO,ene]=zh(rs),[NO,tne]=zh(rs,{collapsible:!1}),nne=me.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},collapsible:i=!1,...l}=e,[u,d]=Oa({prop:n,defaultProp:r??"",onChange:a,caller:rs});return v.jsx(OO,{scope:e.__scopeAccordion,value:me.useMemo(()=>u?[u]:[],[u]),onItemOpen:d,onItemClose:me.useCallback(()=>i&&d(""),[i,d]),children:v.jsx(NO,{scope:e.__scopeAccordion,collapsible:i,children:v.jsx(kO,{...l,ref:t})})})}),rne=me.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[l,u]=Oa({prop:n,defaultProp:r??[],onChange:a,caller:rs}),d=me.useCallback(g=>u((m=[])=>[...m,g]),[u]),h=me.useCallback(g=>u((m=[])=>m.filter(E=>E!==g)),[u]);return v.jsx(OO,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:h,children:v.jsx(NO,{scope:e.__scopeAccordion,collapsible:!0,children:v.jsx(kO,{...i,ref:t})})})}),[ane,Zh]=zh(rs),kO=me.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:a,orientation:i="vertical",...l}=e,u=me.useRef(null),d=xn(u,t),h=Wte(n),m=F0(a)==="ltr",E=ut(e.onKeyDown,b=>{if(!Xte.includes(b.key))return;const T=b.target,A=h().filter(D=>!D.ref.current?.disabled),S=A.findIndex(D=>D.ref.current===T),w=A.length;if(S===-1)return;b.preventDefault();let R=S;const P=0,M=w-1,I=()=>{R=S+1,R>M&&(R=P)},N=()=>{R=S-1,R<P&&(R=M)};switch(b.key){case"Home":R=P;break;case"End":R=M;break;case"ArrowRight":i==="horizontal"&&(m?I():N());break;case"ArrowDown":i==="vertical"&&I();break;case"ArrowLeft":i==="horizontal"&&(m?N():I());break;case"ArrowUp":i==="vertical"&&N();break}const L=R%w;A[L].ref.current?.focus()});return v.jsx(ane,{scope:n,disabled:r,direction:a,orientation:i,children:v.jsx(U4.Slot,{scope:n,children:v.jsx(xt.div,{...l,"data-orientation":i,ref:d,onKeyDown:r?void 0:E})})})}),M1="AccordionItem",[sne,z4]=zh(M1),Z4=me.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...a}=e,i=Zh(M1,n),l=ene(M1,n),u=B4(n),d=Es(),h=r&&l.value.includes(r)||!1,g=i.disabled||e.disabled;return v.jsx(sne,{scope:n,open:h,disabled:g,triggerId:d,children:v.jsx(bO,{"data-orientation":i.orientation,"data-state":LO(h),...u,...a,ref:t,disabled:g,open:h,onOpenChange:m=>{m?l.onItemOpen(r):l.onItemClose(r)}})})});Z4.displayName=M1;var PO="AccordionHeader",ine=me.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=Zh(rs,n),i=z4(PO,n);return v.jsx(xt.h3,{"data-orientation":a.orientation,"data-state":LO(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});ine.displayName=PO;var i6="AccordionTrigger",q4=me.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=Zh(rs,n),i=z4(i6,n),l=tne(i6,n),u=B4(n);return v.jsx(U4.ItemSlot,{scope:n,children:v.jsx(EO,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":a.orientation,id:i.triggerId,...u,...r,ref:t})})});q4.displayName=i6;var DO="AccordionContent",$4=me.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,a=Zh(rs,n),i=z4(DO,n),l=B4(n);return v.jsx(xO,{role:"region","aria-labelledby":i.triggerId,"data-orientation":a.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});$4.displayName=DO;function LO(e){return e?"open":"closed"}const o6=(e,t)=>{if(!e)return"any";const n=Array.isArray(e)?e.join(" | "):e;return t?`${n} (${t})`:n},MO=e=>!(e.oneOf||e.anyOf||e.allOf||e.properties&&Object.keys(e.properties).length>0||e.type==="array"||e.type==="object"),one=e=>e.type!=="array"||!e.items?o6(e.type,e.format):MO(e.items)?`${o6(e.items.type,e.items.format)}[]`:"array",lne=(e,t)=>e.const!==void 0?String(e.const):e.properties?.type?.const!==void 0?String(e.properties.type.const):e.enum&&e.enum.length===1?String(e.enum[0]):e.title?e.title:e.description?e.description.slice(0,50)+(e.description.length>50?"...":""):!e.type&&!e.properties&&!e.oneOf&&!e.anyOf&&!e.allOf?"Any value":`Schema ${t+1}`,une=e=>!e.type&&!e.properties&&!e.oneOf&&!e.anyOf&&!e.allOf&&!e.const&&!e.enum&&!e.items,gu=({unionType:e,schemas:t,level:n})=>{const r=a=>{switch(a){case"oneOf":return"Must match exactly one of the following schemas:";case"anyOf":return"Must match at least one of the following schemas:";case"allOf":return"Must match all of the following schemas:";default:return"Union type:"}};return v.jsxs("div",{className:"mt-4",children:[v.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[v.jsx(vr,{className:"font-mono text-xs",children:e}),v.jsx("span",{className:"text-gray-600 text-sm",children:r(e)})]}),v.jsx(oo,{asChild:!0,children:v.jsx(V4,{type:"multiple",children:t.map((a,i)=>{const l=lne(a,i),u=a.properties&&Object.keys(a.properties).length>0;return une(a)?null:v.jsx(Z4,{value:`option-${i}`,asChild:!0,children:v.jsxs(c6,{children:[v.jsx(d6,{name:l,required:!1,type:o6(a.type,a.format),children:v.jsx(q4,{className:"flex size-6 cursor-pointer items-center justify-center rounded-lg bg-accent text-fg-subtle transition-opacity duration-200 hover:opacity-80 [&[data-state=open]>svg]:rotate-90",children:v.jsx(B1,{weight:"bold",className:"size-4 transition-transform duration-200"})})}),v.jsxs(f6,{children:[a.description&&v.jsx(Yo,{children:a.description}),v.jsx(Kf,{property:a}),v.jsx(l6,{property:a}),v.jsx(u6,{property:a}),v.jsxs($4,{children:[u&&v.jsx(oo,{children:Object.entries(a.properties||{}).map(([d,h])=>v.jsx(M0,{name:d,property:h,required:Array.isArray(a.required)?a.required.includes(d):!1,level:n+1},d))}),a.oneOf&&v.jsx(gu,{unionType:"oneOf",schemas:a.oneOf,level:n+1}),a.anyOf&&v.jsx(gu,{unionType:"anyOf",schemas:a.anyOf,level:n+1}),a.allOf&&v.jsx(gu,{unionType:"allOf",schemas:a.allOf,level:n+1}),a.type==="array"&&a.items&&v.jsx(M0,{name:"items",property:a.items,required:!1,level:n+1})]})]})]})},i)})})})]})};function Kf({property:e}){if(!(e.minimum!==void 0||e.maximum!==void 0||e.minLength!==void 0||e.maxLength!==void 0||e.pattern!==void 0||e.enum!==void 0||e.const!==void 0))return null;const n=[];return e.minimum!==void 0&&n.push(["min",String(e.minimum)]),e.maximum!==void 0&&n.push(["max",String(e.maximum)]),e.minLength!==void 0&&n.push(["minLength",String(e.minLength)]),e.maxLength!==void 0&&n.push(["maxLength",String(e.maxLength)]),e.pattern&&n.push(["pattern",e.pattern]),e.enum&&n.push(["enum",e.enum.join(", ")]),e.const!==void 0&&n.push(["const",JSON.stringify(e.const)]),v.jsx("div",{className:"mb-2 text-gray-500 text-sm",children:n.map(([r,a])=>v.jsxs("div",{children:[v.jsxs("span",{className:"font-medium",children:[r,":"]})," ",a]},r))})}function l6({property:e}){return e.default?v.jsxs("div",{className:"text-gray-600 text-sm",children:[v.jsx("span",{className:"font-medium",children:"Default:"})," ",JSON.stringify(e.default)]}):null}function u6({property:e}){return e.example?v.jsxs("div",{className:"text-gray-600 text-sm",children:[v.jsx("span",{className:"font-medium",children:"Example:"})," ",JSON.stringify(e.example)]}):null}function M0({name:e,property:t,required:n=!1,level:r=0,hideHeader:a=!1}){const i=t.properties&&Object.keys(t.properties).length>0,l=t.type==="array"&&t.items,u=l&&t.items&&!MO(t.items),d=t.oneOf||t.anyOf||t.allOf,h=()=>{if(d){const E=[];return t.oneOf&&E.push("oneOf"),t.anyOf&&E.push("anyOf"),t.allOf&&E.push("allOf"),E.join(" & ")}return one(t)};if(i||u||d)return v.jsx(Z4,{value:e,asChild:!0,children:v.jsxs(c6,{children:[!a&&v.jsx(d6,{name:e,required:n,type:h(),children:v.jsx(q4,{className:"flex size-6 cursor-pointer items-center justify-center rounded-lg bg-accent text-fg-subtle transition-opacity duration-200 hover:opacity-80 [&[data-state=open]>svg]:rotate-90",children:v.jsx(B1,{weight:"bold",className:"size-4 transition-transform duration-200"})})}),v.jsxs(f6,{className:a?"ml-0":"ml-8",children:[t.description&&v.jsx(Yo,{children:t.description}),v.jsx(Kf,{property:t}),v.jsx(l6,{property:t}),v.jsx(u6,{property:t}),l&&!u&&t.items&&v.jsx(Kf,{property:t.items}),v.jsxs($4,{children:[t.oneOf&&v.jsx(gu,{unionType:"oneOf",schemas:t.oneOf,level:r}),t.anyOf&&v.jsx(gu,{unionType:"anyOf",schemas:t.anyOf,level:r}),t.allOf&&v.jsx(gu,{unionType:"allOf",schemas:t.allOf,level:r}),i&&v.jsx(oo,{children:Object.entries(t.properties||{}).map(([E,b])=>v.jsx(M0,{name:`${e}.${E}`,property:b,required:!1,level:r+1},E))}),u&&t.items&&v.jsx(M0,{name:e,property:t.items,required:!1,level:r+1,hideHeader:!0})]})]})]})});const g=t.minimum!==void 0&&t.maximum!==void 0&&t.minLength!==void 0&&t.maxLength!==void 0&&t.pattern!==void 0&&t.enum!==void 0&&t.const!==void 0,m=!t.description&&!t.default&&!t.example&&!g;return v.jsxs(c6,{children:[v.jsx(d6,{name:e,required:n,type:h()}),!m&&v.jsxs(f6,{children:[t.description&&v.jsx(Yo,{children:t.description}),v.jsx(Kf,{property:t}),v.jsx(l6,{property:t}),v.jsx(u6,{property:t})]})]})}function c6({children:e,className:t,asChild:n,...r}){const a=n?yr:"div";return v.jsx(a,{"data-slot":"property-item",className:De("flex flex-col border-accent border-b-[0.5px] py-3 outline-none last:border-b-0",t),...r,children:e})}function d6({children:e,className:t,name:n,required:r,type:a,...i}){return v.jsxs("div",{className:De("grid grid-cols-[24px_1fr_auto] gap-2",t),...i,children:[v.jsx("div",{className:"shrink-0",children:e??v.jsx("div",{className:"flex size-6 items-center justify-center",children:v.jsx(j6,{weight:"fill",className:"size-2 text-fg-subtle"})})}),v.jsx(qa,{className:"flex-row",children:v.jsx(wa,{className:"font-mono",children:n})}),v.jsxs(ci,{children:[v.jsx(vr,{children:v.jsx(Ar,{uppercase:!0,children:a})}),r&&v.jsx(vr,{children:v.jsx(Ar,{uppercase:!0,children:"required"})})]})]})}function f6({children:e,className:t,...n}){return v.jsx("div",{className:De("ml-8 flex flex-col gap-y-3",t),...n,children:e})}const cne=({schema:e})=>{const t=e.required||[];return!e.properties||Object.keys(e.properties).length===0?v.jsxs(Ns,{children:[v.jsx(vi,{children:"No parameters defined"}),v.jsx(ju,{children:"This tool does not require any parameters."})]}):v.jsx(oo,{asChild:!0,children:v.jsx(V4,{type:"multiple",children:Object.entries(e.properties).map(([n,r])=>v.jsx(M0,{name:n,property:r,required:t.includes(n)},n))})})};function IO({tool:e,mcpName:t,onClose:n}){return v.jsx(Vh,{open:!!e,onOpenChange:n,children:v.jsxs(L4,{children:[v.jsx(I4,{children:v.jsx(Fh,{className:"grow",children:v.jsxs(Uh,{children:[v.jsx(D0,{children:t}),v.jsx(Bh,{}),v.jsx(L0,{children:e.name})]})})}),v.jsxs(M4,{children:[v.jsxs(j4,{children:[v.jsx(H4,{children:e.name}),v.jsxs(F4,{className:"text-sm",children:["From"," ",v.jsx("button",{className:"cursor-pointer text-fg underline",children:t})]})]}),v.jsx(Yo,{children:e.description}),v.jsx(si,{}),v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Input schema"})})}),e.inputSchema?v.jsx(cne,{schema:e.inputSchema}):v.jsxs(Ns,{children:[v.jsx(vi,{children:"No input schema"}),v.jsx(ju,{children:"This tool does not require any parameters."})]})]})]})]})})}var qh="Popover",[jO,Cie]=Qr(qh,[K1]),od=K1(),[dne,po]=jO(qh),HO=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:l=!1}=e,u=od(t),d=p.useRef(null),[h,g]=p.useState(!1),[m,E]=Oa({prop:r,defaultProp:a??!1,onChange:i,caller:qh});return v.jsx(aS,{...u,children:v.jsx(dne,{scope:t,contentId:Es(),triggerRef:d,open:m,onOpenChange:E,onOpenToggle:p.useCallback(()=>E(b=>!b),[E]),hasCustomAnchor:h,onCustomAnchorAdd:p.useCallback(()=>g(!0),[]),onCustomAnchorRemove:p.useCallback(()=>g(!1),[]),modal:l,children:n})})};HO.displayName=qh;var FO="PopoverAnchor",fne=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=po(FO,n),i=od(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=a;return p.useEffect(()=>(l(),()=>u()),[l,u]),v.jsx(tv,{...i,...r,ref:t})});fne.displayName=FO;var UO="PopoverTrigger",BO=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=po(UO,n),i=od(n),l=xn(t,a.triggerRef),u=v.jsx(xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":$O(a.open),...r,ref:l,onClick:ut(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:v.jsx(tv,{asChild:!0,...i,children:u})});BO.displayName=UO;var Q4="PopoverPortal",[hne,mne]=jO(Q4,{forceMount:void 0}),VO=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,i=po(Q4,t);return v.jsx(hne,{scope:t,forceMount:n,children:v.jsx(Na,{present:n||i.open,children:v.jsx(X1,{asChild:!0,container:a,children:r})})})};VO.displayName=Q4;var Su="PopoverContent",zO=p.forwardRef((e,t)=>{const n=mne(Su,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,i=po(Su,e.__scopePopover);return v.jsx(Na,{present:r||i.open,children:i.modal?v.jsx(gne,{...a,ref:t}):v.jsx(vne,{...a,ref:t})})});zO.displayName=Su;var pne=Vo("PopoverContent.RemoveScroll"),gne=p.forwardRef((e,t)=>{const n=po(Su,e.__scopePopover),r=p.useRef(null),a=xn(t,r),i=p.useRef(!1);return p.useEffect(()=>{const l=r.current;if(l)return av(l)},[]),v.jsx(J1,{as:pne,allowPinchZoom:!0,children:v.jsx(ZO,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ut(e.onCloseAutoFocus,l=>{l.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ut(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,h=u.button===2||d;i.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:ut(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),vne=p.forwardRef((e,t)=>{const n=po(Su,e.__scopePopover),r=p.useRef(!1),a=p.useRef(!1);return v.jsx(ZO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;n.triggerRef.current?.contains(l)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),ZO=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:g,...m}=e,E=po(Su,n),b=od(n);return q6(),v.jsx($1,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:v.jsx(q1,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:h,onDismiss:()=>E.onOpenChange(!1),children:v.jsx(sS,{"data-state":$O(E.open),role:"dialog",id:E.contentId,...b,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),qO="PopoverClose",yne=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=po(qO,n);return v.jsx(xt.button,{type:"button",...r,ref:t,onClick:ut(e.onClick,()=>a.onOpenChange(!1))})});yne.displayName=qO;var bne="PopoverArrow",Ene=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=od(n);return v.jsx(iS,{...a,...r,ref:t})});Ene.displayName=bne;function $O(e){return e?"open":"closed"}var xne=HO,_ne=BO,Tne=VO,Ane=zO;const Sne=xne,wne=_ne;function Cne({className:e,align:t="center",sideOffset:n=2,...r}){return v.jsx(Tne,{children:v.jsx(Ane,{align:t,sideOffset:n,className:De("popover p-2","origin-[--radix-popover-content-transform-origin]","radix-state-[closed]:fade-out-0 radix-state-[open]:fade-in-0 radix-state-[closed]:zoom-out-95 radix-state-[open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 radix-state-[closed]:animate-out radix-state-[open]:animate-in",e),...r})})}function Rne(e){const t=vn.useUtils(),n=dh.useUtils(),r=vn.store.addServer.useMutation({async onSuccess(i,l,u){await t.store.getAll.invalidate(),l?.proxyId&&await t.store.get.invalidate({proxyId:l.proxyId}),e&&e.onSuccess&&await e.onSuccess(i,l,u)},onError(i,l,u){e&&e.onError&&e.onError(i,l,u)}});return{install:async i=>{const l=await n.entries.getTransportForEntry.fetch({entryName:i.entryName,parameters:i.parameters??{}}),u={proxyId:i.proxyId,server:{name:i.entryName,transport:l}};return await r.mutateAsync(u)},isPending:r.isPending}}function QO(e){return dh.entries.getEntryByName.useQuery({name:e.entryName??""},{enabled:!!e.entryName})}function One(){const e=Cs(),{entryName:t}=yv(),[n,r]=p.useState(null),[a,i]=p.useState(!1),l=QO({entryName:t}),u=K0(),{install:d,isPending:h}=Rne({onError:T=>{ur({title:"Error",description:T.message})},onSuccess:(T,A)=>{ur({title:"Proxy installed",description:"This proxy was successfully installed."}),e(`/${A.proxyId}`)}}),g=l.isLoading||u.isLoading,m=l.data,E=async T=>{m&&T.proxyId&&t&&await d({proxyId:T.proxyId,entryName:t,parameters:T.parameters??{}})};if(p.useEffect(()=>{!g&&!m&&(ur({title:"Library entry not found",description:"The library entry you are looking for does not exist."}),e("/library"))},[m,g,e]),g||!m)return v.jsx(Kte,{});const b=u.data??[];return v.jsxs(uo,{children:[v.jsx(mo,{breadcrumbs:[{title:"Library",onClick:()=>e("/library")},{title:m.title}],children:v.jsxs(Sne,{open:a,onOpenChange:i,children:[v.jsx(wne,{asChild:!0,children:v.jsx(on,{className:"ml-auto lg:hidden",children:"Add to proxy"})}),v.jsx(Cne,{side:"bottom",align:"end",sideOffset:8,className:"w-sm max-w-[80dvw] rounded-[20px] lg:hidden",children:v.jsx(D1,{registryEntry:m,proxies:b,onSubmit:E,isSubmitting:h})})]})}),v.jsxs(hi,{children:[v.jsx(Ja,{size:"xl",children:v.jsxs(WR,{children:[v.jsx(JR,{children:v.jsx(_R,{entry:m,onToolClick:T=>r(T)})}),v.jsx(eO,{children:v.jsx(Gte,{entry:m,proxies:b,onClickInstall:E,isInstalling:h})})]})}),n&&v.jsx(IO,{tool:n,mcpName:m.title,onClose:()=>r(null)})]})]})}const I0=ue().trim().min(1,"Required");I0.optional();const YO=ue().trim().min(1,"Required").regex(/^[a-z0-9._-]+$/,"Only lowercase ASCII letters, digits, and characters ., -, _ are allowed");function Nne({className:e,...t}){return v.jsx("textarea",{"data-slot":"textarea",className:De("field-sizing-content flex min-h-19.5 w-full resize-none rounded-md border border-input bg-surface px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",e),...t})}function GO({description:e,label:t,name:n,helperLabel:r,hideErrors:a=!1,...i}){const l=ns();return v.jsx(Ih,{control:l.control,name:n,render:({field:u})=>v.jsx(A4,{children:v.jsxs("div",{className:"flex flex-col gap-2",children:[(t||r)&&v.jsxs("div",{className:"flex flex-row items-center",children:[t&&v.jsx(S4,{children:t}),r&&v.jsx(sl,{className:"ml-auto text-fg-subtle/70",children:r})]}),v.jsx(w4,{children:v.jsx(Nne,{...i,...u})}),e&&v.jsx(C4,{children:e}),!a&&v.jsx(R4,{})]})})})}function kne({open:e,onOpenChange:t,workspaces:n,onSubmit:r,isSubmitting:a=!1,...i}){const l={workspaceId:n?.[0]?.id??void 0,server:{name:"",type:"stdio",command:"",args:[],env:{}}};return v.jsx(Vh,{open:e,onOpenChange:t,...i,children:v.jsxs(L4,{children:[v.jsx(I4,{children:v.jsx(Fh,{className:"grow",children:v.jsxs(Uh,{children:[v.jsx(D0,{children:v.jsx(L0,{children:"Library"})}),v.jsx(Bh,{}),v.jsx(D0,{children:v.jsx(L0,{children:"Add MCP server"})})]})})}),v.jsxs(M4,{children:[v.jsxs(j4,{children:[v.jsx(H4,{children:"Add an MCP server"}),v.jsx(F4,{className:"text-sm",children:"Manually add an MCP server to one of your proxies."})]}),v.jsx(si,{}),v.jsx(Pne,{defaultValues:l,proxies:n,onSubmit:r,isSubmitting:a})]})]})})}function Pne({defaultValues:e,proxies:t,onSubmit:n,isSubmitting:r=!1}){return v.jsx(T4,{schema:Hne,defaultValues:{...e,_env:[{key:"",value:""}],_headers:[{key:"",value:""}]},onSubmit:a=>{a.server.type==="stdio"?n({workspaceId:a.workspaceId,server:{...a.server,command:a.server.command.split(" ")[0],args:a.server.command.split(" ").slice(1),env:a._env.reduce((i,{key:l,value:u})=>(l&&(i[l]=u),i),{})}}):a.server.type==="http"&&n({workspaceId:a.workspaceId,server:{...a.server,headers:a._headers.reduce((i,{key:l,value:u})=>(l&&(i[l]=u),i),{})}})},children:v.jsx(Dne,{proxies:t,isSubmitting:r})})}function Dne({proxies:e,isSubmitting:t=!1}){const{control:n}=ns(),r=LR({control:n,name:"server.type",defaultValue:"stdio"});return v.jsxs(v.Fragment,{children:[e&&v.jsx(s6,{name:"workspaceId",label:"Proxy",children:e.map(a=>v.jsx("option",{value:a.id,children:a.name},a.id))}),v.jsxs("div",{className:"flex flex-row gap-x-2 [&>div]:flex-1",children:[v.jsx(Jo,{label:"Name",name:"server.name",placeholder:"Enter server name…"}),v.jsxs(s6,{label:"Transport",name:"server.type",children:[v.jsx("option",{value:"stdio",children:"STDIO"}),v.jsx("option",{value:"http",children:"HTTP"})]})]}),r==="stdio"&&v.jsx(Lne,{}),r==="http"&&v.jsx(Mne,{}),v.jsx(on,{type:"submit",disabled:t,children:t?"Adding...":"Add MCP Server"})]})}function Lne(){return v.jsxs("div",{className:"space-y-4",children:[v.jsx(GO,{className:"min-h-auto",label:"Command",name:"server.command",placeholder:"e.g. npx -y @modelcontextprotocol/my-server <filepath>"}),v.jsxs("div",{className:"flex flex-col gap-y-2",children:[v.jsx(sl,{children:"Environment variables"}),v.jsx(KO,{name:"_env",keyPlaceholder:"Variable name",valuePlaceholder:"Value",addSrText:"Add environment variable"})," "]})]})}function Mne(){return v.jsxs("div",{className:"space-y-4",children:[v.jsx(Jo,{label:"URL",name:"server.url",placeholder:"Enter server URL…"}),v.jsxs("div",{className:"flex flex-col gap-y-2",children:[v.jsx(sl,{children:"Headers"}),v.jsx(KO,{name:"_headers",keyPlaceholder:"Header name",valuePlaceholder:"Value",addSrText:"Add header"})]})]})}function KO({name:e,keyPlaceholder:t,valuePlaceholder:n,addSrText:r}){const{control:a}=ns(),{fields:i,append:l,remove:u}=ste({control:a,name:e}),d=()=>{l({key:"",value:""})};return v.jsx("div",{className:"space-y-2",children:i.map((h,g)=>v.jsxs("div",{className:"flex flex-row gap-x-2 [&>div]:flex-1",children:[v.jsx(Jo,{name:`${e}.${g}.key`,placeholder:t}),v.jsx(Jo,{name:`${e}.${g}.value`,placeholder:n}),g<i.length-1?v.jsxs(on,{className:"size-8 leading-8",type:"button",variant:"secondary",size:"icon",onClick:()=>u(g),children:[v.jsx(V1,{}),v.jsx("div",{className:"sr-only",children:"Remove"})]}):v.jsxs(on,{className:"size-8 leading-8",type:"button",variant:"secondary",size:"icon",onClick:d,children:[v.jsx(U6,{}),v.jsx("div",{className:"sr-only",children:r})]})]},h.id))})}const Ine=Ve({name:YO,type:yt("stdio"),command:I0,args:We(ue()),env:ul(I0,ue()).optional()}),jne=Ve({name:YO,type:yt("http"),url:I0.url(),headers:ul(I0,ue()).optional()}),Hne=Ve({workspaceId:ue().optional(),server:CR("type",[Ine,jne]),_env:We(Ve({key:ue(),value:ue()})),_headers:We(Ve({key:ue(),value:ue()}))});function XO({className:e,entry:t,onClick:n}){return v.jsxs("div",{className:De("flex h-40 cursor-pointer flex-col justify-between gap-y-6 rounded-lg bg-accent-subtle p-4 transition-colors duration-200 ease-in-out hover:bg-accent",e),onClick:n,children:[v.jsx(yh,{src:t.icon,className:"size-8"}),v.jsxs("div",{className:"flex flex-col gap-y-1",children:[v.jsxs("div",{className:"flex items-center gap-x-1 font-[450] text-[17px]",children:[t.title," ",t.isOfficial&&v.jsx(B6,{weight:"fill"})]}),t.description&&v.jsx("div",{className:"line-clamp-2 text-pretty text-[14px] text-fg-subtle",children:t.description})]})]})}function WO({className:e,...t}){return v.jsx("div",{className:De("@container grid @2xl:grid-cols-2 grid-cols-1 gap-3",e),...t})}function Fne({entries:e,pagination:t,searchQuery:n,onSearchQueryChange:r,onPageChange:a,onManualAddClick:i,onEntryClick:l}){return v.jsx(Ja,{size:"lg",children:v.jsxs(rn,{className:"gap-y-6",children:[v.jsxs(an,{children:[v.jsx(sn,{children:"Discover MCP servers"}),v.jsx(Os,{children:"Find MCP servers for your favourite tools and install them directly to your Director proxies."})]}),v.jsxs("div",{className:"flex flex-col gap-y-4",children:[v.jsxs("div",{className:"flex flex-row items-center justify-between",children:[v.jsx(id,{type:"text",placeholder:"Search MCP servers...",value:n,onChange:u=>r(u.target.value),className:"max-w-md"}),v.jsx(on,{onClick:i,children:"Add manually"})]}),v.jsxs(WO,{children:[e.sort((u,d)=>u.title.localeCompare(d.title)).map(u=>v.jsx(XO,{entry:u,onClick:()=>l?.(u.name)},u.id)),e.length===0&&v.jsx(Ns,{className:"col-span-2",children:v.jsx(vi,{children:"No MCP servers found"})})]})]}),t.totalItems>0&&v.jsxs("div",{className:"grid grid-cols-3 items-center gap-2",children:[v.jsx("div",{children:v.jsxs(on,{className:De(!t.hasPreviousPage&&"hidden"),variant:"secondary",onClick:()=>a(t.pageIndex-1),children:[v.jsx(qT,{})," Previous"]})}),v.jsxs("span",{className:"text-center text-fg-subtle text-sm leading-7",children:["Page ",t.pageIndex+1," of ",t.totalPages]}),v.jsx("div",{className:"flex justify-end",children:v.jsxs(on,{className:De(!t.hasNextPage&&"hidden"),variant:"secondary",onClick:()=>a(t.pageIndex+1),children:["Next ",v.jsx(M6,{})]})})]})]})})}function Une({children:e}){return v.jsxs(uo,{className:"pointer-events-none relative select-none",children:[e,v.jsx(mo,{breadcrumbs:[{title:"Loading proxy…"}],loading:!0,children:v.jsxs(on,{size:"icon",variant:"ghost",className:"radix-state-[open]:bg-accent-subtle",disabled:!0,children:[v.jsx(j0,{weight:"fill",className:"!size-4"}),v.jsx("span",{className:"sr-only",children:"Settings"})]})}),v.jsx(hi,{"aria-hidden":!0,children:v.jsx(Ja,{size:"lg",children:v.jsxs(rn,{className:"gap-y-6",children:[v.jsxs(an,{children:[v.jsx(sn,{children:"Discover MCP servers"}),v.jsx(Os,{children:"Find MCP servers for your favourite tools and install them directly to your Director proxies."})]}),v.jsx(to,{isLoading:!0,links:[]})]})})})]})}function Bne(e){const t=vn.useUtils(),n=vn.store.addServer.useMutation({...e,async onSuccess(r,a,i){await t.store.getAll.invalidate(),await t.store.get.invalidate({proxyId:a.proxyId}),await e?.onSuccess?.(r,a,i)}});return{addServer:n.mutateAsync,isPending:n.isPending}}const Vne=()=>{const e=Cs(),[t,n]=p.useState(0),[r,a]=p.useState(""),[i,l]=p.useState(!1),{data:u}=K0(),{data:d,isLoading:h,error:g}=AO({pageIndex:t,pageSize:20,searchQuery:r}),{addServer:m,isPending:E}=Bne({onSuccess:(b,T)=>{ur({title:"Server added",description:"The server has been added to the proxy"}),l(!1),e(`/${T.proxyId}`)},onError:()=>{ur({title:"Failed to add server",description:"Please check Director CLI logs for more information."})}});return h?v.jsx(Une,{}):!d||g?v.jsx(uo,{children:v.jsx(hi,{children:v.jsx("div",{className:"inset-0 grid place-items-center",children:v.jsxs(Ns,{children:[v.jsx(vi,{children:"Something went wrong."}),v.jsx(ju,{children:"Please try again"})]})})})}):v.jsxs(uo,{children:[v.jsx(mo,{breadcrumbs:[{title:"Library"}]}),v.jsxs(hi,{children:[v.jsx(Fne,{entries:d.entries,pagination:d.pagination,searchQuery:r,onSearchQueryChange:a,onPageChange:n,onManualAddClick:()=>l(!0),onEntryClick:b=>e(`/library/mcp/${b}`)}),v.jsx(kne,{open:i,onOpenChange:l,workspaces:u,onSubmit:async b=>{if(!b.workspaceId){ur({title:"No workspace selected",description:"Please select a proxy before adding a server."});return}await m({proxyId:b.workspaceId,server:{name:b.server.name,transport:b.server}})},isSubmitting:E})]})]})},zne=Ve({name:ue().trim().min(1,"Required"),description:ue().trim().optional().transform(e=>e===""?void 0:e)});function JO({children:e,onSubmit:t,defaultValues:n,isSubmitting:r=!1}){const a={name:n?.name??"",description:n?.description??""};return v.jsxs(T4,{schema:zne,defaultValues:a,onSubmit:t,children:[v.jsxs("div",{className:"flex w-full flex-col gap-y-6",children:[v.jsx(Jo,{label:"Name",name:"name",placeholder:"My Proxy"}),v.jsx(GO,{label:"Description",name:"description",helperLabel:"Optional",placeholder:"A description of the proxy"})]}),e]})}function Zne({isSubmitting:e=!1,children:t,className:n="self-start"}){return v.jsx(on,{size:"lg",className:n,type:"submit",disabled:e,children:e?v.jsx(O4,{className:"text-fg-subtle"}):t})}function qne({onSubmit:e,isSubmitting:t}){return v.jsx(Ja,{size:"sm",children:v.jsxs(rn,{className:"gap-y-8",children:[v.jsxs(an,{children:[v.jsx(sn,{children:"New proxy"}),v.jsx(Os,{children:"Create a new proxy to start using MCP."})]}),v.jsx(si,{}),v.jsx(JO,{onSubmit:async n=>{await e(n)},isSubmitting:t,children:v.jsx(Zne,{isSubmitting:t,children:"Create proxy"})})]})})}function $ne(e){const t=vn.useUtils(),n=vn.store.create.useMutation({async onSuccess(r,a,i){await t.store.getAll.refetch(),e&&e.onSuccess&&await e.onSuccess(r,a,i)},onError(r,a,i){e&&e.onError&&e.onError(r,a,i)}});return{createProxy:n.mutateAsync,isPending:n.isPending}}function Qne(){const e=Cs(),{createProxy:t,isPending:n}=$ne({onSuccess:a=>{ur({title:"Proxy created",description:"This proxy was successfully created."}),e(`/${a.id}`)}}),r=async a=>{await t({...a,servers:[]})};return v.jsxs(v.Fragment,{children:[v.jsx(mo,{breadcrumbs:[{title:"New proxy"}]}),v.jsx(hi,{children:v.jsx(qne,{onSubmit:r,isSubmitting:n})})]})}function Yne({onSettingsClick:e,onDeleteClick:t}){return v.jsxs(fv,{children:[v.jsx(hv,{asChild:!0,children:v.jsxs(on,{size:"icon",variant:"ghost",className:"radix-state-[open]:bg-accent-subtle",children:[v.jsx(j0,{weight:"fill",className:"!size-4"}),v.jsx("span",{className:"sr-only",children:"Settings"})]})}),v.jsx(mv,{align:"end",children:v.jsxs(s1,{children:[v.jsxs(Gi,{onSelect:e,children:[v.jsx(ei,{children:v.jsx(rA,{})}),v.jsx(za,{children:"Settings"})]}),v.jsxs(Gi,{onSelect:t,children:[v.jsx(ei,{children:v.jsx(V1,{})}),v.jsx(za,{children:"Delete"})]})]})})]})}function eN({children:e,title:t,description:n,open:r,onOpenChange:a,onConfirm:i}){const l=Mh({schema:Ve({}),defaultValues:{}});return p.useEffect(()=>{!r&&l.formState.isSubmitSuccessful&&l.reset()},[r,l.formState.isSubmitSuccessful]),v.jsxs(J7,{open:r,onOpenChange:a,children:[e&&v.jsx(qz,{asChild:!0,children:e}),v.jsxs(ew,{children:[v.jsxs(tw,{children:[v.jsx(nw,{children:t}),v.jsx(rw,{children:n})]}),v.jsxs(Yz,{children:[v.jsx(Gz,{children:"Cancel"}),v.jsx(YR,{form:l,onSubmit:i,className:"sm:w-fit",children:v.jsx(on,{type:"submit",disabled:l.formState.isSubmitting,children:l.formState.isSubmitting?v.jsx(O4,{className:"text-fg-subtle"}):"Confirm"})})]})]})]})}function Gne({onConfirm:e,open:t,onOpenChange:n}){return v.jsx(eN,{title:"Delete proxy server",description:"Are you sure you want to delete this proxy server? This action cannot be undone.",open:t,onOpenChange:n,onConfirm:e})}function Kne({proxy:e,onSubmit:t,isSubmitting:n=!1,open:r,onOpenChange:a}){return v.jsx(Vh,{open:r,onOpenChange:a,children:v.jsxs(L4,{children:[v.jsx(I4,{}),v.jsxs(M4,{children:[v.jsxs(j4,{children:[v.jsx(H4,{children:"Settings"}),v.jsx(F4,{children:"Update the name and description of the proxy."})]}),v.jsx(S7,{}),v.jsx(JO,{defaultValues:{name:e.name,description:e.description??void 0},onSubmit:t,isSubmitting:n,children:v.jsx(on,{children:"Save changes"})})]})]})})}function tN({children:e}){return v.jsxs(uo,{className:"pointer-events-none relative select-none",children:[e,v.jsx(mo,{breadcrumbs:[{title:"Loading proxy…"}],loading:!0,children:v.jsxs(on,{size:"icon",variant:"ghost",className:"radix-state-[open]:bg-accent-subtle",disabled:!0,children:[v.jsx(j0,{weight:"fill",className:"!size-4"}),v.jsx("span",{className:"sr-only",children:"Settings"})]})}),v.jsx(hi,{"aria-hidden":!0,children:v.jsxs(Ja,{size:"lg",children:[v.jsx(rn,{children:v.jsxs(an,{className:"opacity-50",children:[v.jsx(sn,{children:v.jsx($a,{text:"Loading proxy name"})}),v.jsx(Os,{children:v.jsx($a,{text:"Loading proxy description"})})]})}),v.jsx(rn,{children:v.jsx(an,{className:"opacity-50",children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h2",{children:"Usage"})})})}),v.jsxs(rn,{children:[v.jsxs(an,{className:"flex flex-row items-center justify-between opacity-50",children:[v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h2",{children:"MCP Servers"})}),v.jsx(on,{disabled:!0,children:"Add"})]}),v.jsx(to,{isLoading:!0,links:[]})]}),v.jsxs(rn,{children:[v.jsx(an,{className:"opacity-50",children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h2",{children:"Tools"})})}),v.jsx(to,{isLoading:!0,links:[]})]})]})})]})}function Xne(){const[e,t]=p.useState(null),n=p.useCallback(async r=>{if(!navigator?.clipboard)return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),t(r),!0}catch(a){return console.warn("Copy failed",a),t(null),!1}},[]);return[e,n]}function Wne(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var $h="Switch",[Jne,Rie]=Qr($h),[ere,tre]=Jne($h),nN=p.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:i,required:l,disabled:u,value:d="on",onCheckedChange:h,form:g,...m}=e,[E,b]=p.useState(null),T=xn(t,P=>b(P)),A=p.useRef(!1),S=E?g||!!E.closest("form"):!0,[w,R]=Oa({prop:a,defaultProp:i??!1,onChange:h,caller:$h});return v.jsxs(ere,{scope:n,checked:w,disabled:u,children:[v.jsx(xt.button,{type:"button",role:"switch","aria-checked":w,"aria-required":l,"data-state":iN(w),"data-disabled":u?"":void 0,disabled:u,value:d,...m,ref:T,onClick:ut(e.onClick,P=>{R(M=>!M),S&&(A.current=P.isPropagationStopped(),A.current||P.stopPropagation())})}),S&&v.jsx(sN,{control:E,bubbles:!A.current,name:r,value:d,checked:w,required:l,disabled:u,form:g,style:{transform:"translateX(-100%)"}})]})});nN.displayName=$h;var rN="SwitchThumb",aN=p.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,a=tre(rN,n);return v.jsx(xt.span,{"data-state":iN(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});aN.displayName=rN;var nre="SwitchBubbleInput",sN=p.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...a},i)=>{const l=p.useRef(null),u=xn(l,i),d=Wne(n),h=YA(t);return p.useEffect(()=>{const g=l.current;if(!g)return;const m=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(m,"checked").set;if(d!==n&&b){const T=new Event("click",{bubbles:r});b.call(g,n),g.dispatchEvent(T)}},[d,n,r]),v.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:u,style:{...a.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});sN.displayName=nre;function iN(e){return e?"checked":"unchecked"}var rre=nN,are=aN;function sre({className:e,...t}){return v.jsx(rre,{"data-slot":"switch",className:De("peer inline-flex w-9 shrink-0 items-center rounded-full border border-fg/10 p-0.5 outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-success data-[state=unchecked]:bg-fg/20",e),...t,children:v.jsx(are,{"data-slot":"switch-thumb",className:De("pointer-events-none block size-4 rounded-full bg-success-fg ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0","radix-state-[unchecked]:bg-fg/80")})})}function ire({proxyId:e,gatewayBaseUrl:t,clients:n,isLoading:r,onChangeInstall:a,isChanging:i}){return v.jsx("div",{className:"grid grid-cols-1 gap-1 sm:grid-cols-2 lg:grid-cols-3",children:n.map(l=>{if(l.type==="deep-link"){const d=`goose://extension?url=${encodeURIComponent(`${t}/${e}/sse`)}&id=${e}&name=director__${e}`,h=`raycast://mcp/install?${encodeURIComponent(JSON.stringify({name:`director__${e}`,type:"stdio",command:"npx",args:["@director.run/cli http2stdio",`${t}/${e}/sse`]}))}`;return v.jsxs("a",{href:l.id==="goose"?d:h,className:"flex cursor-pointer flex-row items-center justify-between rounded-lg bg-accent-subtle p-1 pr-2.5 transition-colors duration-200 ease-in-out hover:bg-accent",children:[v.jsxs("div",{className:"flex grow flex-row items-center gap-x-1",children:[v.jsx("img",{src:l.image,alt:`${l.label} icon`,height:32,width:32}),v.jsx("span",{className:"font-medium text-[15px]",children:l.label})]}),v.jsx(QT,{weight:"bold",className:"size-5 text-fg-subtle/50"})]},l.id)}const u=!!l.installed;return v.jsxs("label",{htmlFor:l.id,className:De("flex cursor-pointer flex-row items-center justify-between rounded-lg bg-accent-subtle p-1 pr-2.5 transition-colors duration-200 ease-in-out hover:bg-accent",!u&&"opacity-50 hover:cursor-not-allowed hover:bg-accent-subtle"),children:[v.jsxs("div",{className:"flex grow flex-row items-center gap-x-1",children:[v.jsx("img",{src:l.image,alt:`${l.label} icon`,height:32,width:32}),v.jsx("span",{className:"font-medium text-[15px]",children:l.label})]}),v.jsx(sre,{id:l.id,checked:!!l.present,onCheckedChange:d=>{a(l.id,d)},disabled:i||r||!u})]},l.id)})})}function ore({id:e,gatewayBaseUrl:t,onCopy:n}){const[r,a]=p.useState("http"),i={http:`${t}/${e}/mcp`,sse:`${t}/${e}/sse`,stdio:`director http2stdio ${t}/${e}/sse`};return v.jsxs("div",{className:"relative flex",children:[v.jsx("div",{className:"w-fit",children:v.jsxs(XR,{value:r,onChange:l=>a(l.target.value),className:"h-10 rounded-r-none border-[0.5px] border-fg/20 bg-accent-subtle font-medium text-[13px] text-muted-foreground shadow-none ring-0 hover:text-foreground focus-visible:border-fg/30 focus-visible:ring-0",children:[v.jsx("option",{value:"http",children:"HTTP"}),v.jsx("option",{value:"sse",children:"SSE"}),v.jsx("option",{value:"stdio",children:"STDIO"})]})}),v.jsx(id,{autoFocus:!0,className:"-mx-px h-10 rounded-none border-[0.5px] border-fg/30 pr-0 font-medium font-mono text-[13px] shadow-none focus-visible:border-fg/30 focus-visible:ring-0",readOnly:!0,value:i[r]}),v.jsx("div",{className:"flex size-10 shrink-0 items-center justify-center rounded-r-md border-[0.5px] border-fg/20 bg-accent-subtle",children:v.jsx(on,{size:"icon",variant:"ghost",onClick:()=>n(i[r]),children:v.jsx(tA,{})})})]})}function lre({proxyId:e,gatewayBaseUrl:t,children:n,onCopy:r,...a}){return v.jsxs(tO,{...a,children:[n&&v.jsx(bte,{asChild:!0,children:n}),v.jsxs(nO,{children:[v.jsxs(_te,{children:[v.jsx(rO,{children:"Connect manually"}),v.jsx(aO,{children:"Director works with any MCP enabled product. Below you'll find endpoints for both Streamable HTTP and SSE, as well as STDIO via our CLI."})]}),v.jsx("div",{className:"border-t-[0.5px] p-5",children:v.jsx(ore,{id:e,gatewayBaseUrl:t,onCopy:r})})]})]})}function ure({workspace:e,gatewayBaseUrl:t,clients:n,isClientsLoading:r,onChangeInstall:a,isChanging:i}){const[l,u]=Xne(),d=async h=>{await u(h),ur({title:"Copied to clipboard",description:"The endpoint has been copied to your clipboard."})};return v.jsxs(rn,{children:[v.jsxs(an,{className:"flex flex-row items-center justify-between",children:[v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h2",{children:"Clients"})}),v.jsx(lre,{proxyId:e.id,gatewayBaseUrl:t,onCopy:d,children:v.jsx(on,{size:"sm",children:"Connect manually"})})]}),v.jsx(ire,{proxyId:e.id,gatewayBaseUrl:t,clients:n,isLoading:r,onChangeInstall:a,isChanging:i})]})}function cre({workspace:e}){return v.jsx(rn,{children:v.jsxs(an,{children:[v.jsx(sn,{children:e.name}),v.jsx(Os,{children:e.description})]})})}function dre({workspace:e,onLibraryClick:t,onServerClick:n}){return v.jsxs(rn,{children:[v.jsxs(an,{className:"flex flex-row items-center justify-between",children:[v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h2",{children:"MCP Servers"})}),v.jsx(on,{size:"sm",onClick:t,children:"Add MCP server"})]}),v.jsx(WO,{children:e.servers.map(r=>v.jsx(XO,{entry:{title:r.name,description:null,icon:null,isOfficial:!1},onClick:()=>n?.(r.name)},r.name))})]})}var fre={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function oN(e){return`[nuqs] ${fre[e]}
|
|
149
|
+
See https://err.47ng.com/NUQS-${e}`}function B5(e){if(e.size===0)return"";const t=[];for(const[r,a]of e.entries()){const i=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${i}=${hre(a)}`)}return"?"+t.join("&")}function hre(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,t=>encodeURIComponent(t))}var lN=pre();function mre(e,...t){lN&&console.warn(e,...t)}function pre(){try{if(typeof localStorage>"u")return!1;const t="nuqs-localStorage-test";localStorage.setItem(t,t);const n=localStorage.getItem(t)===t;if(localStorage.removeItem(t),!n)return!1}catch(t){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",t),!1}return(localStorage.getItem("debug")??"").includes("nuqs")}var h6=p.createContext({useAdapter(){throw new Error(oN(404))}});h6.displayName="NuqsAdapterContext";lN&&typeof window<"u"&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==h6&&console.error(oN(303)),window.__NuqsAdapterContext=h6);function gre(e,t,n){try{return e(t)}catch(r){return mre("[nuqs] Error while parsing value `%s`: %O",t,r,n),null}}function vre(){if(typeof window>"u"||!!!window.GestureEvent)return 50;try{const t=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(t[1])>=17?120:320}catch{return 320}}vre();function bi(e){function t(n){if(typeof n>"u")return null;let r="";if(Array.isArray(n)){if(n[0]===void 0)return null;r=n[0]}return typeof n=="string"&&(r=n),gre(e.parse,r)}return{eq:(n,r)=>n===r,...e,parseServerSide:t,withDefault(n){return{...this,defaultValue:n,parseServerSide(r){return t(r)??n}}},withOptions(n){return{...this,...n}}}}var ug=bi({parse:e=>e,serialize:e=>`${e}`}),V5=bi({parse:e=>{const t=parseInt(e);return Number.isNaN(t)?null:t},serialize:e=>Math.round(e).toFixed()});bi({parse:e=>{const t=V5.parse(e);return t===null?null:t-1},serialize:e=>V5.serialize(e+1)});bi({parse:e=>{const t=parseInt(e,16);return Number.isNaN(t)?null:t},serialize:e=>{const t=Math.round(e).toString(16);return t.padStart(t.length+t.length%2,"0")}});bi({parse:e=>{const t=parseFloat(e);return Number.isNaN(t)?null:t},serialize:e=>e.toString()});bi({parse:e=>e==="true",serialize:e=>e?"true":"false"});function Y4(e,t){return e.valueOf()===t.valueOf()}bi({parse:e=>{const t=parseInt(e);return Number.isNaN(t)?null:new Date(t)},serialize:e=>e.valueOf().toString(),eq:Y4});bi({parse:e=>{const t=new Date(e);return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString(),eq:Y4});bi({parse:e=>{const t=new Date(e.slice(0,10));return Number.isNaN(t.valueOf())?null:t},serialize:e=>e.toISOString().slice(0,10),eq:Y4});function yre(e,{clearOnDefault:t=!0,urlKeys:n={}}={}){function r(a,i={}){const[l,u]=z5(a)?bre(a):["",new URLSearchParams],d=z5(a)?i:a;if(d===null){for(const h in e){const g=n[h]??h;u.delete(g)}return l+B5(u)}for(const h in e){const g=e[h],m=d[h];if(!g||m===void 0)continue;const E=n[h]??h,b=g.defaultValue!==void 0&&(g.eq??((T,A)=>T===A))(m,g.defaultValue);m===null||(g.clearOnDefault??t??!0)&&b?u.delete(E):u.set(E,g.serialize(m))}return l+B5(u)}return r}function z5(e){return typeof e=="string"||e instanceof URLSearchParams||e instanceof URL}function bre(e){if(typeof e=="string"){const[t="",...n]=e.split("?");return[t,new URLSearchParams(n.join("?"))]}else return e instanceof URLSearchParams?["",new URLSearchParams(e)]:[e.origin+e.pathname,new URLSearchParams(e.searchParams)]}const Ere={registryId:ug,serverId:ug,toolId:ug},xre=yre(Ere);function _re({links:e,isLoading:t}){return v.jsx(to,{isLoading:t,links:e})}function uN({tools:e,toolsLoading:t,onToolClick:n}){const r=e.slice().sort((a,i)=>a.name.localeCompare(i.name)).map(a=>{const i=a.description?.match(/\[([^\]]+)\]/)?.[1];return{title:a.name,subtitle:a.description?.replace(/\[([^\]]+)\]/g,"")||"",scroll:!1,href:`${xre({toolId:a.name,serverId:i})}`,onClick:()=>n(a),badges:i&&v.jsx(vr,{children:v.jsx(Ar,{uppercase:!0,children:i})})}});return v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h2",{children:"Tools"})})}),v.jsx(_re,{links:r,isLoading:t})]})}function Tre(e,t){const n=vn.useUtils(),r=vn.installer.byProxy.install.useMutation({onSuccess:async(l,u)=>{await n.installer.byProxy.list.invalidate(),t?.onSuccess&&u?.client&&await t.onSuccess(u.client,!0)},onError:async(l,u)=>{t?.onError&&u?.client&&await t.onError(u.client,!0)}}),a=vn.installer.byProxy.uninstall.useMutation({onSuccess:async(l,u)=>{await n.installer.byProxy.list.invalidate(),t?.onSuccess&&u?.client&&await t.onSuccess(u.client,!1)},onError:async(l,u)=>{t?.onError&&u?.client&&await t.onError(u.client,!1)}});return{changeInstallState:async(l,u)=>{u?await r.mutateAsync({proxyId:e,client:l,baseUrl:Iu}):await a.mutateAsync({proxyId:e,client:l})},isPending:r.isPending||a.isPending}}const Qh="2025-06-18",Are=[Qh,"2025-03-26","2024-11-05","2024-10-07"],Yh="2.0",cN=Ir([ue(),dr().int()]),dN=ue(),Sre=Ve({progressToken:Me(cN)}).passthrough(),La=Ve({_meta:Me(Sre)}).passthrough(),Gr=Ve({method:ue(),params:Me(La)}),ld=Ve({_meta:Me(Ve({}).passthrough())}).passthrough(),Ds=Ve({method:ue(),params:Me(ld)}),Ma=Ve({_meta:Me(Ve({}).passthrough())}).passthrough(),Gh=Ir([ue(),dr().int()]),fN=Ve({jsonrpc:yt(Yh),id:Gh}).merge(Gr).strict(),wre=e=>fN.safeParse(e).success,hN=Ve({jsonrpc:yt(Yh)}).merge(Ds).strict(),Cre=e=>hN.safeParse(e).success,mN=Ve({jsonrpc:yt(Yh),id:Gh,result:Ma}).strict(),Z5=e=>mN.safeParse(e).success;var vs;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"})(vs||(vs={}));const pN=Ve({jsonrpc:yt(Yh),id:Gh,error:Ve({code:dr().int(),message:ue(),data:Me(ad())})}).strict(),Rre=e=>pN.safeParse(e).success,Ore=Ir([fN,hN,mN,pN]),lu=Ma.strict(),G4=Ds.extend({method:yt("notifications/cancelled"),params:ld.extend({requestId:Gh,reason:ue().optional()})}),ud=Ve({name:ue(),title:Me(ue())}).passthrough(),gN=ud.extend({version:ue()}),Nre=Ve({experimental:Me(Ve({}).passthrough()),sampling:Me(Ve({}).passthrough()),elicitation:Me(Ve({}).passthrough()),roots:Me(Ve({listChanged:Me(ar())}).passthrough())}).passthrough(),kre=Gr.extend({method:yt("initialize"),params:La.extend({protocolVersion:ue(),capabilities:Nre,clientInfo:gN})}),Pre=Ve({experimental:Me(Ve({}).passthrough()),logging:Me(Ve({}).passthrough()),completions:Me(Ve({}).passthrough()),prompts:Me(Ve({listChanged:Me(ar())}).passthrough()),resources:Me(Ve({subscribe:Me(ar()),listChanged:Me(ar())}).passthrough()),tools:Me(Ve({listChanged:Me(ar())}).passthrough())}).passthrough(),vN=Ma.extend({protocolVersion:ue(),capabilities:Pre,serverInfo:gN,instructions:Me(ue())}),Dre=Ds.extend({method:yt("notifications/initialized")}),K4=Gr.extend({method:yt("ping")}),Lre=Ve({progress:dr(),total:Me(dr()),message:Me(ue())}).passthrough(),X4=Ds.extend({method:yt("notifications/progress"),params:ld.merge(Lre).extend({progressToken:cN})}),Kh=Gr.extend({params:La.extend({cursor:Me(dN)}).optional()}),Xh=Ma.extend({nextCursor:Me(dN)}),yN=Ve({uri:ue(),mimeType:Me(ue()),_meta:Me(Ve({}).passthrough())}).passthrough(),bN=yN.extend({text:ue()}),W4=ue().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),EN=yN.extend({blob:W4}),xN=ud.extend({uri:ue(),description:Me(ue()),mimeType:Me(ue()),_meta:Me(Ve({}).passthrough())}),Mre=ud.extend({uriTemplate:ue(),description:Me(ue()),mimeType:Me(ue()),_meta:Me(Ve({}).passthrough())}),Ire=Kh.extend({method:yt("resources/list")}),_N=Xh.extend({resources:We(xN)}),jre=Kh.extend({method:yt("resources/templates/list")}),TN=Xh.extend({resourceTemplates:We(Mre)}),Hre=Gr.extend({method:yt("resources/read"),params:La.extend({uri:ue()})}),AN=Ma.extend({contents:We(Ir([bN,EN]))}),Fre=Ds.extend({method:yt("notifications/resources/list_changed")}),Ure=Gr.extend({method:yt("resources/subscribe"),params:La.extend({uri:ue()})}),Bre=Gr.extend({method:yt("resources/unsubscribe"),params:La.extend({uri:ue()})}),Vre=Ds.extend({method:yt("notifications/resources/updated"),params:ld.extend({uri:ue()})}),zre=Ve({name:ue(),description:Me(ue()),required:Me(ar())}).passthrough(),Zre=ud.extend({description:Me(ue()),arguments:Me(We(zre)),_meta:Me(Ve({}).passthrough())}),qre=Kh.extend({method:yt("prompts/list")}),SN=Xh.extend({prompts:We(Zre)}),$re=Gr.extend({method:yt("prompts/get"),params:La.extend({name:ue(),arguments:Me(ul(ue()))})}),J4=Ve({type:yt("text"),text:ue(),_meta:Me(Ve({}).passthrough())}).passthrough(),ey=Ve({type:yt("image"),data:W4,mimeType:ue(),_meta:Me(Ve({}).passthrough())}).passthrough(),ty=Ve({type:yt("audio"),data:W4,mimeType:ue(),_meta:Me(Ve({}).passthrough())}).passthrough(),Qre=Ve({type:yt("resource"),resource:Ir([bN,EN]),_meta:Me(Ve({}).passthrough())}).passthrough(),Yre=xN.extend({type:yt("resource_link")}),wN=Ir([J4,ey,ty,Yre,Qre]),Gre=Ve({role:fi(["user","assistant"]),content:wN}).passthrough(),CN=Ma.extend({description:Me(ue()),messages:We(Gre)}),Kre=Ds.extend({method:yt("notifications/prompts/list_changed")}),Xre=Ve({title:Me(ue()),readOnlyHint:Me(ar()),destructiveHint:Me(ar()),idempotentHint:Me(ar()),openWorldHint:Me(ar())}).passthrough(),Wre=ud.extend({description:Me(ue()),inputSchema:Ve({type:yt("object"),properties:Me(Ve({}).passthrough()),required:Me(We(ue()))}).passthrough(),outputSchema:Me(Ve({type:yt("object"),properties:Me(Ve({}).passthrough()),required:Me(We(ue()))}).passthrough()),annotations:Me(Xre),_meta:Me(Ve({}).passthrough())}),Jre=Kh.extend({method:yt("tools/list")}),RN=Xh.extend({tools:We(Wre)}),ny=Ma.extend({content:We(wN).default([]),structuredContent:Ve({}).passthrough().optional(),isError:Me(ar())});ny.or(Ma.extend({toolResult:ad()}));const eae=Gr.extend({method:yt("tools/call"),params:La.extend({name:ue(),arguments:Me(ul(ad()))})}),tae=Ds.extend({method:yt("notifications/tools/list_changed")}),ON=fi(["debug","info","notice","warning","error","critical","alert","emergency"]),nae=Gr.extend({method:yt("logging/setLevel"),params:La.extend({level:ON})}),rae=Ds.extend({method:yt("notifications/message"),params:ld.extend({level:ON,logger:Me(ue()),data:ad()})}),aae=Ve({name:ue().optional()}).passthrough(),sae=Ve({hints:Me(We(aae)),costPriority:Me(dr().min(0).max(1)),speedPriority:Me(dr().min(0).max(1)),intelligencePriority:Me(dr().min(0).max(1))}).passthrough(),iae=Ve({role:fi(["user","assistant"]),content:Ir([J4,ey,ty])}).passthrough(),oae=Gr.extend({method:yt("sampling/createMessage"),params:La.extend({messages:We(iae),systemPrompt:Me(ue()),includeContext:Me(fi(["none","thisServer","allServers"])),temperature:Me(dr()),maxTokens:dr().int(),stopSequences:Me(We(ue())),metadata:Me(Ve({}).passthrough()),modelPreferences:Me(sae)})}),lae=Ma.extend({model:ue(),stopReason:Me(fi(["endTurn","stopSequence","maxTokens"]).or(ue())),role:fi(["user","assistant"]),content:CR("type",[J4,ey,ty])}),uae=Ve({type:yt("boolean"),title:Me(ue()),description:Me(ue()),default:Me(ar())}).passthrough(),cae=Ve({type:yt("string"),title:Me(ue()),description:Me(ue()),minLength:Me(dr()),maxLength:Me(dr()),format:Me(fi(["email","uri","date","date-time"]))}).passthrough(),dae=Ve({type:fi(["number","integer"]),title:Me(ue()),description:Me(ue()),minimum:Me(dr()),maximum:Me(dr())}).passthrough(),fae=Ve({type:yt("string"),title:Me(ue()),description:Me(ue()),enum:We(ue()),enumNames:Me(We(ue()))}).passthrough(),hae=Ir([uae,cae,dae,fae]),mae=Gr.extend({method:yt("elicitation/create"),params:La.extend({message:ue(),requestedSchema:Ve({type:yt("object"),properties:ul(ue(),hae),required:Me(We(ue()))}).passthrough()})}),pae=Ma.extend({action:fi(["accept","decline","cancel"]),content:Me(ul(ue(),ad()))}),gae=Ve({type:yt("ref/resource"),uri:ue()}).passthrough(),vae=Ve({type:yt("ref/prompt"),name:ue()}).passthrough(),yae=Gr.extend({method:yt("completion/complete"),params:La.extend({ref:Ir([vae,gae]),argument:Ve({name:ue(),value:ue()}).passthrough(),context:Me(Ve({arguments:Me(ul(ue(),ue()))}))})}),NN=Ma.extend({completion:Ve({values:We(ue()).max(100),total:Me(dr().int()),hasMore:Me(ar())}).passthrough()}),bae=Ve({uri:ue().startsWith("file://"),name:Me(ue()),_meta:Me(Ve({}).passthrough())}).passthrough(),Eae=Gr.extend({method:yt("roots/list")}),xae=Ma.extend({roots:We(bae)}),_ae=Ds.extend({method:yt("notifications/roots/list_changed")});Ir([K4,kre,yae,nae,$re,qre,Ire,jre,Hre,Ure,Bre,eae,Jre]);Ir([G4,X4,Dre,_ae]);Ir([lu,lae,pae,xae]);Ir([K4,oae,mae,Eae]);Ir([G4,X4,rae,Vre,Fre,tae,Kre]);Ir([lu,vN,NN,CN,SN,_N,TN,AN,ny,RN]);class Ji extends Error{constructor(t,n,r){super(`MCP error ${t}: ${n}`),this.code=t,this.data=r,this.name="McpError"}}const Tae=6e4;class Aae{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this.setNotificationHandler(G4,n=>{const r=this._requestHandlerAbortControllers.get(n.params.requestId);r?.abort(n.params.reason)}),this.setNotificationHandler(X4,n=>{this._onprogress(n)}),this.setRequestHandler(K4,n=>({}))}_setupTimeout(t,n,r,a,i=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(a,n),startTime:Date.now(),timeout:n,maxTotalTimeout:r,resetTimeoutOnProgress:i,onTimeout:a})}_resetTimeout(t){const n=this._timeoutInfo.get(t);if(!n)return!1;const r=Date.now()-n.startTime;if(n.maxTotalTimeout&&r>=n.maxTotalTimeout)throw this._timeoutInfo.delete(t),new Ji(vs.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:r});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(t){const n=this._timeoutInfo.get(t);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(t))}async connect(t){var n,r,a;this._transport=t;const i=(n=this.transport)===null||n===void 0?void 0:n.onclose;this._transport.onclose=()=>{i?.(),this._onclose()};const l=(r=this.transport)===null||r===void 0?void 0:r.onerror;this._transport.onerror=d=>{l?.(d),this._onerror(d)};const u=(a=this._transport)===null||a===void 0?void 0:a.onmessage;this._transport.onmessage=(d,h)=>{u?.(d,h),Z5(d)||Rre(d)?this._onresponse(d):wre(d)?this._onrequest(d,h):Cre(d)?this._onnotification(d):this._onerror(new Error(`Unknown message type: ${JSON.stringify(d)}`))},await this._transport.start()}_onclose(){var t;const n=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear(),this._transport=void 0,(t=this.onclose)===null||t===void 0||t.call(this);const r=new Ji(vs.ConnectionClosed,"Connection closed");for(const a of n.values())a(r)}_onerror(t){var n;(n=this.onerror)===null||n===void 0||n.call(this,t)}_onnotification(t){var n;const r=(n=this._notificationHandlers.get(t.method))!==null&&n!==void 0?n:this.fallbackNotificationHandler;r!==void 0&&Promise.resolve().then(()=>r(t)).catch(a=>this._onerror(new Error(`Uncaught error in notification handler: ${a}`)))}_onrequest(t,n){var r,a,i,l;const u=(r=this._requestHandlers.get(t.method))!==null&&r!==void 0?r:this.fallbackRequestHandler;if(u===void 0){(a=this._transport)===null||a===void 0||a.send({jsonrpc:"2.0",id:t.id,error:{code:vs.MethodNotFound,message:"Method not found"}}).catch(g=>this._onerror(new Error(`Failed to send an error response: ${g}`)));return}const d=new AbortController;this._requestHandlerAbortControllers.set(t.id,d);const h={signal:d.signal,sessionId:(i=this._transport)===null||i===void 0?void 0:i.sessionId,_meta:(l=t.params)===null||l===void 0?void 0:l._meta,sendNotification:g=>this.notification(g,{relatedRequestId:t.id}),sendRequest:(g,m,E)=>this.request(g,m,{...E,relatedRequestId:t.id}),authInfo:n?.authInfo,requestId:t.id,requestInfo:n?.requestInfo};Promise.resolve().then(()=>u(t,h)).then(g=>{var m;if(!d.signal.aborted)return(m=this._transport)===null||m===void 0?void 0:m.send({result:g,jsonrpc:"2.0",id:t.id})},g=>{var m,E;if(!d.signal.aborted)return(m=this._transport)===null||m===void 0?void 0:m.send({jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(g.code)?g.code:vs.InternalError,message:(E=g.message)!==null&&E!==void 0?E:"Internal error"}})}).catch(g=>this._onerror(new Error(`Failed to send response: ${g}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:n,...r}=t.params,a=Number(n),i=this._progressHandlers.get(a);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const l=this._responseHandlers.get(a),u=this._timeoutInfo.get(a);if(u&&l&&u.resetTimeoutOnProgress)try{this._resetTimeout(a)}catch(d){l(d);return}i(r)}_onresponse(t){const n=Number(t.id),r=this._responseHandlers.get(n);if(r===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}if(this._responseHandlers.delete(n),this._progressHandlers.delete(n),this._cleanupTimeout(n),Z5(t))r(t);else{const a=new Ji(t.error.code,t.error.message,t.error.data);r(a)}}get transport(){return this._transport}async close(){var t;await((t=this._transport)===null||t===void 0?void 0:t.close())}request(t,n,r){const{relatedRequestId:a,resumptionToken:i,onresumptiontoken:l}=r??{};return new Promise((u,d)=>{var h,g,m,E,b,T;if(!this._transport){d(new Error("Not connected"));return}((h=this._options)===null||h===void 0?void 0:h.enforceStrictCapabilities)===!0&&this.assertCapabilityForMethod(t.method),(g=r?.signal)===null||g===void 0||g.throwIfAborted();const A=this._requestMessageId++,S={...t,jsonrpc:"2.0",id:A};r?.onprogress&&(this._progressHandlers.set(A,r.onprogress),S.params={...t.params,_meta:{...((m=t.params)===null||m===void 0?void 0:m._meta)||{},progressToken:A}});const w=M=>{var I;this._responseHandlers.delete(A),this._progressHandlers.delete(A),this._cleanupTimeout(A),(I=this._transport)===null||I===void 0||I.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:A,reason:String(M)}},{relatedRequestId:a,resumptionToken:i,onresumptiontoken:l}).catch(N=>this._onerror(new Error(`Failed to send cancellation: ${N}`))),d(M)};this._responseHandlers.set(A,M=>{var I;if(!(!((I=r?.signal)===null||I===void 0)&&I.aborted)){if(M instanceof Error)return d(M);try{const N=n.parse(M.result);u(N)}catch(N){d(N)}}}),(E=r?.signal)===null||E===void 0||E.addEventListener("abort",()=>{var M;w((M=r?.signal)===null||M===void 0?void 0:M.reason)});const R=(b=r?.timeout)!==null&&b!==void 0?b:Tae,P=()=>w(new Ji(vs.RequestTimeout,"Request timed out",{timeout:R}));this._setupTimeout(A,R,r?.maxTotalTimeout,P,(T=r?.resetTimeoutOnProgress)!==null&&T!==void 0?T:!1),this._transport.send(S,{relatedRequestId:a,resumptionToken:i,onresumptiontoken:l}).catch(M=>{this._cleanupTimeout(A),d(M)})})}async notification(t,n){var r,a;if(!this._transport)throw new Error("Not connected");if(this.assertNotificationCapability(t.method),((a=(r=this._options)===null||r===void 0?void 0:r.debouncedNotificationMethods)!==null&&a!==void 0?a:[]).includes(t.method)&&!t.params&&!n?.relatedRequestId){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{var d;if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;const h={...t,jsonrpc:"2.0"};(d=this._transport)===null||d===void 0||d.send(h,n).catch(g=>this._onerror(g))});return}const u={...t,jsonrpc:"2.0"};await this._transport.send(u,n)}setRequestHandler(t,n){const r=t.shape.method.value;this.assertRequestHandlerCapability(r),this._requestHandlers.set(r,(a,i)=>Promise.resolve(n(t.parse(a),i)))}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,n){this._notificationHandlers.set(t.shape.method.value,r=>Promise.resolve(n(t.parse(r))))}removeNotificationHandler(t){this._notificationHandlers.delete(t)}}function Sae(e,t){return Object.entries(t).reduce((n,[r,a])=>(a&&typeof a=="object"?n[r]=n[r]?{...n[r],...a}:a:n[r]=a,n),{...e})}var r0={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */var wae=r0.exports,q5;function Cae(){return q5||(q5=1,function(e,t){(function(n,r){r(t)})(wae,function(n){function r(){for(var ee=arguments.length,q=Array(ee),ne=0;ne<ee;ne++)q[ne]=arguments[ne];if(q.length>1){q[0]=q[0].slice(0,-1);for(var xe=q.length-1,ye=1;ye<xe;++ye)q[ye]=q[ye].slice(1,-1);return q[xe]=q[xe].slice(1),q.join("")}else return q[0]}function a(ee){return"(?:"+ee+")"}function i(ee){return ee===void 0?"undefined":ee===null?"null":Object.prototype.toString.call(ee).split(" ").pop().split("]").shift().toLowerCase()}function l(ee){return ee.toUpperCase()}function u(ee){return ee!=null?ee instanceof Array?ee:typeof ee.length!="number"||ee.split||ee.setInterval||ee.call?[ee]:Array.prototype.slice.call(ee):[]}function d(ee,q){var ne=ee;if(q)for(var xe in q)ne[xe]=q[xe];return ne}function h(ee){var q="[A-Za-z]",ne="[0-9]",xe=r(ne,"[A-Fa-f]"),ye=a(a("%[EFef]"+xe+"%"+xe+xe+"%"+xe+xe)+"|"+a("%[89A-Fa-f]"+xe+"%"+xe+xe)+"|"+a("%"+xe+xe)),tt="[\\:\\/\\?\\#\\[\\]\\@]",Je="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Tt=r(tt,Je),Zt=ee?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Jt=ee?"[\\uE000-\\uF8FF]":"[]",at=r(q,ne,"[\\-\\.\\_\\~]",Zt);a(q+r(q,ne,"[\\+\\-\\.]")+"*"),a(a(ye+"|"+r(at,Je,"[\\:]"))+"*");var Yt=a(a("25[0-5]")+"|"+a("2[0-4]"+ne)+"|"+a("1"+ne+ne)+"|"+a("0?[1-9]"+ne)+"|0?0?"+ne),Tn=a(Yt+"\\."+Yt+"\\."+Yt+"\\."+Yt),ot=a(xe+"{1,4}"),qt=a(a(ot+"\\:"+ot)+"|"+Tn),Dn=a(a(ot+"\\:")+"{6}"+qt),cn=a("\\:\\:"+a(ot+"\\:")+"{5}"+qt),ja=a(a(ot)+"?\\:\\:"+a(ot+"\\:")+"{4}"+qt),ha=a(a(a(ot+"\\:")+"{0,1}"+ot)+"?\\:\\:"+a(ot+"\\:")+"{3}"+qt),Rr=a(a(a(ot+"\\:")+"{0,2}"+ot)+"?\\:\\:"+a(ot+"\\:")+"{2}"+qt),Ha=a(a(a(ot+"\\:")+"{0,3}"+ot)+"?\\:\\:"+ot+"\\:"+qt),fr=a(a(a(ot+"\\:")+"{0,4}"+ot)+"?\\:\\:"+qt),Er=a(a(a(ot+"\\:")+"{0,5}"+ot)+"?\\:\\:"+ot),Xr=a(a(a(ot+"\\:")+"{0,6}"+ot)+"?\\:\\:"),jr=a([Dn,cn,ja,ha,Rr,Ha,fr,Er,Xr].join("|")),Wr=a(a(at+"|"+ye)+"+");a("[vV]"+xe+"+\\."+r(at,Je,"[\\:]")+"+"),a(a(ye+"|"+r(at,Je))+"*");var Ls=a(ye+"|"+r(at,Je,"[\\:\\@]"));return a(a(ye+"|"+r(at,Je,"[\\@]"))+"+"),a(a(Ls+"|"+r("[\\/\\?]",Jt))+"*"),{NOT_SCHEME:new RegExp(r("[^]",q,ne,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",at,Je),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",at,Je),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",at,Je),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",at,Je),"g"),NOT_QUERY:new RegExp(r("[^\\%]",at,Je,"[\\:\\@\\/\\?]",Jt),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",at,Je,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",at,Je),"g"),UNRESERVED:new RegExp(at,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",at,Tt),"g"),PCT_ENCODED:new RegExp(ye,"g"),IPV4ADDRESS:new RegExp("^("+Tn+")$"),IPV6ADDRESS:new RegExp("^\\[?("+jr+")"+a(a("\\%25|\\%(?!"+xe+"{2})")+"("+Wr+")")+"?\\]?$")}}var g=h(!1),m=h(!0),E=function(){function ee(q,ne){var xe=[],ye=!0,tt=!1,Je=void 0;try{for(var Tt=q[Symbol.iterator](),Zt;!(ye=(Zt=Tt.next()).done)&&(xe.push(Zt.value),!(ne&&xe.length===ne));ye=!0);}catch(Jt){tt=!0,Je=Jt}finally{try{!ye&&Tt.return&&Tt.return()}finally{if(tt)throw Je}}return xe}return function(q,ne){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return ee(q,ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(ee){if(Array.isArray(ee)){for(var q=0,ne=Array(ee.length);q<ee.length;q++)ne[q]=ee[q];return ne}else return Array.from(ee)},T=2147483647,A=36,S=1,w=26,R=38,P=700,M=72,I=128,N="-",L=/^xn--/,D=/[^\0-\x7E]/,B=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=A-S,F=Math.floor,Q=String.fromCharCode;function Y(ee){throw new RangeError(k[ee])}function te(ee,q){for(var ne=[],xe=ee.length;xe--;)ne[xe]=q(ee[xe]);return ne}function V(ee,q){var ne=ee.split("@"),xe="";ne.length>1&&(xe=ne[0]+"@",ee=ne[1]),ee=ee.replace(B,".");var ye=ee.split("."),tt=te(ye,q).join(".");return xe+tt}function J(ee){for(var q=[],ne=0,xe=ee.length;ne<xe;){var ye=ee.charCodeAt(ne++);if(ye>=55296&&ye<=56319&&ne<xe){var tt=ee.charCodeAt(ne++);(tt&64512)==56320?q.push(((ye&1023)<<10)+(tt&1023)+65536):(q.push(ye),ne--)}else q.push(ye)}return q}var X=function(q){return String.fromCodePoint.apply(String,b(q))},se=function(q){return q-48<10?q-22:q-65<26?q-65:q-97<26?q-97:A},C=function(q,ne){return q+22+75*(q<26)-((ne!=0)<<5)},oe=function(q,ne,xe){var ye=0;for(q=xe?F(q/P):q>>1,q+=F(q/ne);q>U*w>>1;ye+=A)q=F(q/U);return F(ye+(U+1)*q/(q+R))},ge=function(q){var ne=[],xe=q.length,ye=0,tt=I,Je=M,Tt=q.lastIndexOf(N);Tt<0&&(Tt=0);for(var Zt=0;Zt<Tt;++Zt)q.charCodeAt(Zt)>=128&&Y("not-basic"),ne.push(q.charCodeAt(Zt));for(var Jt=Tt>0?Tt+1:0;Jt<xe;){for(var at=ye,Yt=1,Tn=A;;Tn+=A){Jt>=xe&&Y("invalid-input");var ot=se(q.charCodeAt(Jt++));(ot>=A||ot>F((T-ye)/Yt))&&Y("overflow"),ye+=ot*Yt;var qt=Tn<=Je?S:Tn>=Je+w?w:Tn-Je;if(ot<qt)break;var Dn=A-qt;Yt>F(T/Dn)&&Y("overflow"),Yt*=Dn}var cn=ne.length+1;Je=oe(ye-at,cn,at==0),F(ye/cn)>T-tt&&Y("overflow"),tt+=F(ye/cn),ye%=cn,ne.splice(ye++,0,tt)}return String.fromCodePoint.apply(String,ne)},j=function(q){var ne=[];q=J(q);var xe=q.length,ye=I,tt=0,Je=M,Tt=!0,Zt=!1,Jt=void 0;try{for(var at=q[Symbol.iterator](),Yt;!(Tt=(Yt=at.next()).done);Tt=!0){var Tn=Yt.value;Tn<128&&ne.push(Q(Tn))}}catch(ss){Zt=!0,Jt=ss}finally{try{!Tt&&at.return&&at.return()}finally{if(Zt)throw Jt}}var ot=ne.length,qt=ot;for(ot&&ne.push(N);qt<xe;){var Dn=T,cn=!0,ja=!1,ha=void 0;try{for(var Rr=q[Symbol.iterator](),Ha;!(cn=(Ha=Rr.next()).done);cn=!0){var fr=Ha.value;fr>=ye&&fr<Dn&&(Dn=fr)}}catch(ss){ja=!0,ha=ss}finally{try{!cn&&Rr.return&&Rr.return()}finally{if(ja)throw ha}}var Er=qt+1;Dn-ye>F((T-tt)/Er)&&Y("overflow"),tt+=(Dn-ye)*Er,ye=Dn;var Xr=!0,jr=!1,Wr=void 0;try{for(var Ls=q[Symbol.iterator](),cd;!(Xr=(cd=Ls.next()).done);Xr=!0){var $u=cd.value;if($u<ye&&++tt>T&&Y("overflow"),$u==ye){for(var hr=tt,vo=A;;vo+=A){var fl=vo<=Je?S:vo>=Je+w?w:vo-Je;if(hr<fl)break;var yo=hr-fl,Qu=A-fl;ne.push(Q(C(fl+yo%Qu,0))),hr=F(yo/Qu)}ne.push(Q(C(hr,0))),Je=oe(tt,Er,qt==ot),tt=0,++qt}}}catch(ss){jr=!0,Wr=ss}finally{try{!Xr&&Ls.return&&Ls.return()}finally{if(jr)throw Wr}}++tt,++ye}return ne.join("")},Ee=function(q){return V(q,function(ne){return L.test(ne)?ge(ne.slice(4).toLowerCase()):ne})},ke=function(q){return V(q,function(ne){return D.test(ne)?"xn--"+j(ne):ne})},Z={version:"2.1.0",ucs2:{decode:J,encode:X},decode:ge,encode:j,toASCII:ke,toUnicode:Ee},ae={};function Te(ee){var q=ee.charCodeAt(0),ne=void 0;return q<16?ne="%0"+q.toString(16).toUpperCase():q<128?ne="%"+q.toString(16).toUpperCase():q<2048?ne="%"+(q>>6|192).toString(16).toUpperCase()+"%"+(q&63|128).toString(16).toUpperCase():ne="%"+(q>>12|224).toString(16).toUpperCase()+"%"+(q>>6&63|128).toString(16).toUpperCase()+"%"+(q&63|128).toString(16).toUpperCase(),ne}function Ze(ee){for(var q="",ne=0,xe=ee.length;ne<xe;){var ye=parseInt(ee.substr(ne+1,2),16);if(ye<128)q+=String.fromCharCode(ye),ne+=3;else if(ye>=194&&ye<224){if(xe-ne>=6){var tt=parseInt(ee.substr(ne+4,2),16);q+=String.fromCharCode((ye&31)<<6|tt&63)}else q+=ee.substr(ne,6);ne+=6}else if(ye>=224){if(xe-ne>=9){var Je=parseInt(ee.substr(ne+4,2),16),Tt=parseInt(ee.substr(ne+7,2),16);q+=String.fromCharCode((ye&15)<<12|(Je&63)<<6|Tt&63)}else q+=ee.substr(ne,9);ne+=9}else q+=ee.substr(ne,3),ne+=3}return q}function Ae(ee,q){function ne(xe){var ye=Ze(xe);return ye.match(q.UNRESERVED)?ye:xe}return ee.scheme&&(ee.scheme=String(ee.scheme).replace(q.PCT_ENCODED,ne).toLowerCase().replace(q.NOT_SCHEME,"")),ee.userinfo!==void 0&&(ee.userinfo=String(ee.userinfo).replace(q.PCT_ENCODED,ne).replace(q.NOT_USERINFO,Te).replace(q.PCT_ENCODED,l)),ee.host!==void 0&&(ee.host=String(ee.host).replace(q.PCT_ENCODED,ne).toLowerCase().replace(q.NOT_HOST,Te).replace(q.PCT_ENCODED,l)),ee.path!==void 0&&(ee.path=String(ee.path).replace(q.PCT_ENCODED,ne).replace(ee.scheme?q.NOT_PATH:q.NOT_PATH_NOSCHEME,Te).replace(q.PCT_ENCODED,l)),ee.query!==void 0&&(ee.query=String(ee.query).replace(q.PCT_ENCODED,ne).replace(q.NOT_QUERY,Te).replace(q.PCT_ENCODED,l)),ee.fragment!==void 0&&(ee.fragment=String(ee.fragment).replace(q.PCT_ENCODED,ne).replace(q.NOT_FRAGMENT,Te).replace(q.PCT_ENCODED,l)),ee}function Oe(ee){return ee.replace(/^0*(.*)/,"$1")||"0"}function et(ee,q){var ne=ee.match(q.IPV4ADDRESS)||[],xe=E(ne,2),ye=xe[1];return ye?ye.split(".").map(Oe).join("."):ee}function ct(ee,q){var ne=ee.match(q.IPV6ADDRESS)||[],xe=E(ne,3),ye=xe[1],tt=xe[2];if(ye){for(var Je=ye.toLowerCase().split("::").reverse(),Tt=E(Je,2),Zt=Tt[0],Jt=Tt[1],at=Jt?Jt.split(":").map(Oe):[],Yt=Zt.split(":").map(Oe),Tn=q.IPV4ADDRESS.test(Yt[Yt.length-1]),ot=Tn?7:8,qt=Yt.length-ot,Dn=Array(ot),cn=0;cn<ot;++cn)Dn[cn]=at[cn]||Yt[qt+cn]||"";Tn&&(Dn[ot-1]=et(Dn[ot-1],q));var ja=Dn.reduce(function(Er,Xr,jr){if(!Xr||Xr==="0"){var Wr=Er[Er.length-1];Wr&&Wr.index+Wr.length===jr?Wr.length++:Er.push({index:jr,length:1})}return Er},[]),ha=ja.sort(function(Er,Xr){return Xr.length-Er.length})[0],Rr=void 0;if(ha&&ha.length>1){var Ha=Dn.slice(0,ha.index),fr=Dn.slice(ha.index+ha.length);Rr=Ha.join(":")+"::"+fr.join(":")}else Rr=Dn.join(":");return tt&&(Rr+="%"+tt),Rr}else return ee}var it=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Ht="".match(/(){0}/)[1]===void 0;function _t(ee){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne={},xe=q.iri!==!1?m:g;q.reference==="suffix"&&(ee=(q.scheme?q.scheme+":":"")+"//"+ee);var ye=ee.match(it);if(ye){Ht?(ne.scheme=ye[1],ne.userinfo=ye[3],ne.host=ye[4],ne.port=parseInt(ye[5],10),ne.path=ye[6]||"",ne.query=ye[7],ne.fragment=ye[8],isNaN(ne.port)&&(ne.port=ye[5])):(ne.scheme=ye[1]||void 0,ne.userinfo=ee.indexOf("@")!==-1?ye[3]:void 0,ne.host=ee.indexOf("//")!==-1?ye[4]:void 0,ne.port=parseInt(ye[5],10),ne.path=ye[6]||"",ne.query=ee.indexOf("?")!==-1?ye[7]:void 0,ne.fragment=ee.indexOf("#")!==-1?ye[8]:void 0,isNaN(ne.port)&&(ne.port=ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ye[4]:void 0)),ne.host&&(ne.host=ct(et(ne.host,xe),xe)),ne.scheme===void 0&&ne.userinfo===void 0&&ne.host===void 0&&ne.port===void 0&&!ne.path&&ne.query===void 0?ne.reference="same-document":ne.scheme===void 0?ne.reference="relative":ne.fragment===void 0?ne.reference="absolute":ne.reference="uri",q.reference&&q.reference!=="suffix"&&q.reference!==ne.reference&&(ne.error=ne.error||"URI is not a "+q.reference+" reference.");var tt=ae[(q.scheme||ne.scheme||"").toLowerCase()];if(!q.unicodeSupport&&(!tt||!tt.unicodeSupport)){if(ne.host&&(q.domainHost||tt&&tt.domainHost))try{ne.host=Z.toASCII(ne.host.replace(xe.PCT_ENCODED,Ze).toLowerCase())}catch(Je){ne.error=ne.error||"Host's domain name can not be converted to ASCII via punycode: "+Je}Ae(ne,g)}else Ae(ne,xe);tt&&tt.parse&&tt.parse(ne,q)}else ne.error=ne.error||"URI can not be parsed.";return ne}function st(ee,q){var ne=q.iri!==!1?m:g,xe=[];return ee.userinfo!==void 0&&(xe.push(ee.userinfo),xe.push("@")),ee.host!==void 0&&xe.push(ct(et(String(ee.host),ne),ne).replace(ne.IPV6ADDRESS,function(ye,tt,Je){return"["+tt+(Je?"%25"+Je:"")+"]"})),(typeof ee.port=="number"||typeof ee.port=="string")&&(xe.push(":"),xe.push(String(ee.port))),xe.length?xe.join(""):void 0}var yn=/^\.\.?\//,bt=/^\/\.(\/|$)/,W=/^\/\.\.(\/|$)/,ce=/^\/?(?:.|\n)*?(?=\/|$)/;function pe(ee){for(var q=[];ee.length;)if(ee.match(yn))ee=ee.replace(yn,"");else if(ee.match(bt))ee=ee.replace(bt,"/");else if(ee.match(W))ee=ee.replace(W,"/"),q.pop();else if(ee==="."||ee==="..")ee="";else{var ne=ee.match(ce);if(ne){var xe=ne[0];ee=ee.slice(xe.length),q.push(xe)}else throw new Error("Unexpected dot segment condition")}return q.join("")}function Ne(ee){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=q.iri?m:g,xe=[],ye=ae[(q.scheme||ee.scheme||"").toLowerCase()];if(ye&&ye.serialize&&ye.serialize(ee,q),ee.host&&!ne.IPV6ADDRESS.test(ee.host)){if(q.domainHost||ye&&ye.domainHost)try{ee.host=q.iri?Z.toUnicode(ee.host):Z.toASCII(ee.host.replace(ne.PCT_ENCODED,Ze).toLowerCase())}catch(Tt){ee.error=ee.error||"Host's domain name can not be converted to "+(q.iri?"Unicode":"ASCII")+" via punycode: "+Tt}}Ae(ee,ne),q.reference!=="suffix"&&ee.scheme&&(xe.push(ee.scheme),xe.push(":"));var tt=st(ee,q);if(tt!==void 0&&(q.reference!=="suffix"&&xe.push("//"),xe.push(tt),ee.path&&ee.path.charAt(0)!=="/"&&xe.push("/")),ee.path!==void 0){var Je=ee.path;!q.absolutePath&&(!ye||!ye.absolutePath)&&(Je=pe(Je)),tt===void 0&&(Je=Je.replace(/^\/\//,"/%2F")),xe.push(Je)}return ee.query!==void 0&&(xe.push("?"),xe.push(ee.query)),ee.fragment!==void 0&&(xe.push("#"),xe.push(ee.fragment)),xe.join("")}function Le(ee,q){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xe=arguments[3],ye={};return xe||(ee=_t(Ne(ee,ne),ne),q=_t(Ne(q,ne),ne)),ne=ne||{},!ne.tolerant&&q.scheme?(ye.scheme=q.scheme,ye.userinfo=q.userinfo,ye.host=q.host,ye.port=q.port,ye.path=pe(q.path||""),ye.query=q.query):(q.userinfo!==void 0||q.host!==void 0||q.port!==void 0?(ye.userinfo=q.userinfo,ye.host=q.host,ye.port=q.port,ye.path=pe(q.path||""),ye.query=q.query):(q.path?(q.path.charAt(0)==="/"?ye.path=pe(q.path):((ee.userinfo!==void 0||ee.host!==void 0||ee.port!==void 0)&&!ee.path?ye.path="/"+q.path:ee.path?ye.path=ee.path.slice(0,ee.path.lastIndexOf("/")+1)+q.path:ye.path=q.path,ye.path=pe(ye.path)),ye.query=q.query):(ye.path=ee.path,q.query!==void 0?ye.query=q.query:ye.query=ee.query),ye.userinfo=ee.userinfo,ye.host=ee.host,ye.port=ee.port),ye.scheme=ee.scheme),ye.fragment=q.fragment,ye}function je(ee,q,ne){var xe=d({scheme:"null"},ne);return Ne(Le(_t(ee,xe),_t(q,xe),xe,!0),xe)}function ie(ee,q){return typeof ee=="string"?ee=Ne(_t(ee,q),q):i(ee)==="object"&&(ee=_t(Ne(ee,q),q)),ee}function Se(ee,q,ne){return typeof ee=="string"?ee=Ne(_t(ee,ne),ne):i(ee)==="object"&&(ee=Ne(ee,ne)),typeof q=="string"?q=Ne(_t(q,ne),ne):i(q)==="object"&&(q=Ne(q,ne)),ee===q}function Be(ee,q){return ee&&ee.toString().replace(!q||!q.iri?g.ESCAPE:m.ESCAPE,Te)}function qe(ee,q){return ee&&ee.toString().replace(!q||!q.iri?g.PCT_ENCODED:m.PCT_ENCODED,Ze)}var pt={scheme:"http",domainHost:!0,parse:function(q,ne){return q.host||(q.error=q.error||"HTTP URIs must have a host."),q},serialize:function(q,ne){var xe=String(q.scheme).toLowerCase()==="https";return(q.port===(xe?443:80)||q.port==="")&&(q.port=void 0),q.path||(q.path="/"),q}},Xt={scheme:"https",domainHost:pt.domainHost,parse:pt.parse,serialize:pt.serialize};function jn(ee){return typeof ee.secure=="boolean"?ee.secure:String(ee.scheme).toLowerCase()==="wss"}var hn={scheme:"ws",domainHost:!0,parse:function(q,ne){var xe=q;return xe.secure=jn(xe),xe.resourceName=(xe.path||"/")+(xe.query?"?"+xe.query:""),xe.path=void 0,xe.query=void 0,xe},serialize:function(q,ne){if((q.port===(jn(q)?443:80)||q.port==="")&&(q.port=void 0),typeof q.secure=="boolean"&&(q.scheme=q.secure?"wss":"ws",q.secure=void 0),q.resourceName){var xe=q.resourceName.split("?"),ye=E(xe,2),tt=ye[0],Je=ye[1];q.path=tt&&tt!=="/"?tt:void 0,q.query=Je,q.resourceName=void 0}return q.fragment=void 0,q}},Wn={scheme:"wss",domainHost:hn.domainHost,parse:hn.parse,serialize:hn.serialize},qn={},ln="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",un="[0-9A-Fa-f]",$n=a(a("%[EFef]"+un+"%"+un+un+"%"+un+un)+"|"+a("%[89A-Fa-f]"+un+"%"+un+un)+"|"+a("%"+un+un)),Kr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",cl="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",go=r(cl,'[\\"\\\\]'),as="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",dl=new RegExp(ln,"g"),dt=new RegExp($n,"g"),Rn=new RegExp(r("[^]",Kr,"[\\.]",'[\\"]',go),"g"),On=new RegExp(r("[^]",ln,as),"g"),Jn=On;function Ia(ee){var q=Ze(ee);return q.match(dl)?q:ee}var Pn={scheme:"mailto",parse:function(q,ne){var xe=q,ye=xe.to=xe.path?xe.path.split(","):[];if(xe.path=void 0,xe.query){for(var tt=!1,Je={},Tt=xe.query.split("&"),Zt=0,Jt=Tt.length;Zt<Jt;++Zt){var at=Tt[Zt].split("=");switch(at[0]){case"to":for(var Yt=at[1].split(","),Tn=0,ot=Yt.length;Tn<ot;++Tn)ye.push(Yt[Tn]);break;case"subject":xe.subject=qe(at[1],ne);break;case"body":xe.body=qe(at[1],ne);break;default:tt=!0,Je[qe(at[0],ne)]=qe(at[1],ne);break}}tt&&(xe.headers=Je)}xe.query=void 0;for(var qt=0,Dn=ye.length;qt<Dn;++qt){var cn=ye[qt].split("@");if(cn[0]=qe(cn[0]),ne.unicodeSupport)cn[1]=qe(cn[1],ne).toLowerCase();else try{cn[1]=Z.toASCII(qe(cn[1],ne).toLowerCase())}catch(ja){xe.error=xe.error||"Email address's domain name can not be converted to ASCII via punycode: "+ja}ye[qt]=cn.join("@")}return xe},serialize:function(q,ne){var xe=q,ye=u(q.to);if(ye){for(var tt=0,Je=ye.length;tt<Je;++tt){var Tt=String(ye[tt]),Zt=Tt.lastIndexOf("@"),Jt=Tt.slice(0,Zt).replace(dt,Ia).replace(dt,l).replace(Rn,Te),at=Tt.slice(Zt+1);try{at=ne.iri?Z.toUnicode(at):Z.toASCII(qe(at,ne).toLowerCase())}catch(qt){xe.error=xe.error||"Email address's domain name can not be converted to "+(ne.iri?"Unicode":"ASCII")+" via punycode: "+qt}ye[tt]=Jt+"@"+at}xe.path=ye.join(",")}var Yt=q.headers=q.headers||{};q.subject&&(Yt.subject=q.subject),q.body&&(Yt.body=q.body);var Tn=[];for(var ot in Yt)Yt[ot]!==qn[ot]&&Tn.push(ot.replace(dt,Ia).replace(dt,l).replace(On,Te)+"="+Yt[ot].replace(dt,Ia).replace(dt,l).replace(Jn,Te));return Tn.length&&(xe.query=Tn.join("&")),xe}},Nn=/^([^\:]+)\:(.*)/,_n={scheme:"urn",parse:function(q,ne){var xe=q.path&&q.path.match(Nn),ye=q;if(xe){var tt=ne.scheme||ye.scheme||"urn",Je=xe[1].toLowerCase(),Tt=xe[2],Zt=tt+":"+(ne.nid||Je),Jt=ae[Zt];ye.nid=Je,ye.nss=Tt,ye.path=void 0,Jt&&(ye=Jt.parse(ye,ne))}else ye.error=ye.error||"URN can not be parsed.";return ye},serialize:function(q,ne){var xe=ne.scheme||q.scheme||"urn",ye=q.nid,tt=xe+":"+(ne.nid||ye),Je=ae[tt];Je&&(q=Je.serialize(q,ne));var Tt=q,Zt=q.nss;return Tt.path=(ye||ne.nid)+":"+Zt,Tt}},Wt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Hn={scheme:"urn:uuid",parse:function(q,ne){var xe=q;return xe.uuid=xe.nss,xe.nss=void 0,!ne.tolerant&&(!xe.uuid||!xe.uuid.match(Wt))&&(xe.error=xe.error||"UUID is not valid."),xe},serialize:function(q,ne){var xe=q;return xe.nss=(q.uuid||"").toLowerCase(),xe}};ae[pt.scheme]=pt,ae[Xt.scheme]=Xt,ae[hn.scheme]=hn,ae[Wn.scheme]=Wn,ae[Pn.scheme]=Pn,ae[_n.scheme]=_n,ae[Hn.scheme]=Hn,n.SCHEMES=ae,n.pctEncChar=Te,n.pctDecChars=Ze,n.parse=_t,n.removeDotSegments=pe,n.serialize=Ne,n.resolveComponents=Le,n.resolve=je,n.normalize=ie,n.equal=Se,n.escapeComponent=Be,n.unescapeComponent=qe,Object.defineProperty(n,"__esModule",{value:!0})})}(r0,r0.exports)),r0.exports}var cg,$5;function ry(){return $5||($5=1,cg=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var l=i[a];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n}),cg}var dg,Q5;function Rae(){return Q5||(Q5=1,dg=function(t){for(var n=0,r=t.length,a=0,i;a<r;)n++,i=t.charCodeAt(a++),i>=55296&&i<=56319&&a<r&&(i=t.charCodeAt(a),(i&64512)==56320&&a++);return n}),dg}var fg,Y5;function qu(){if(Y5)return fg;Y5=1,fg={copy:e,checkDataType:t,checkDataTypes:n,coerceToTypes:a,toHash:i,getProperty:d,escapeQuotes:h,equal:ry(),ucs2length:Rae(),varOccurences:g,varReplace:m,schemaHasRules:E,schemaHasRulesExcept:b,schemaUnknownRules:T,toQuotedString:A,getPathExpr:S,getPath:w,getData:M,unescapeFragment:N,unescapeJsonPointer:B,escapeFragment:L,escapeJsonPointer:D};function e(k,U){U=U||{};for(var F in k)U[F]=k[F];return U}function t(k,U,F,Q){var Y=Q?" !== ":" === ",te=Q?" || ":" && ",V=Q?"!":"",J=Q?"":"!";switch(k){case"null":return U+Y+"null";case"array":return V+"Array.isArray("+U+")";case"object":return"("+V+U+te+"typeof "+U+Y+'"object"'+te+J+"Array.isArray("+U+"))";case"integer":return"(typeof "+U+Y+'"number"'+te+J+"("+U+" % 1)"+te+U+Y+U+(F?te+V+"isFinite("+U+")":"")+")";case"number":return"(typeof "+U+Y+'"'+k+'"'+(F?te+V+"isFinite("+U+")":"")+")";default:return"typeof "+U+Y+'"'+k+'"'}}function n(k,U,F){switch(k.length){case 1:return t(k[0],U,F,!0);default:var Q="",Y=i(k);Y.array&&Y.object&&(Q=Y.null?"(":"(!"+U+" || ",Q+="typeof "+U+' !== "object")',delete Y.null,delete Y.array,delete Y.object),Y.number&&delete Y.integer;for(var te in Y)Q+=(Q?" && ":"")+t(te,U,F,!0);return Q}}var r=i(["string","number","integer","boolean","null"]);function a(k,U){if(Array.isArray(U)){for(var F=[],Q=0;Q<U.length;Q++){var Y=U[Q];(r[Y]||k==="array"&&Y==="array")&&(F[F.length]=Y)}if(F.length)return F}else{if(r[U])return[U];if(k==="array"&&U==="array")return["array"]}}function i(k){for(var U={},F=0;F<k.length;F++)U[k[F]]=!0;return U}var l=/^[a-z$_][a-z$_0-9]*$/i,u=/'|\\/g;function d(k){return typeof k=="number"?"["+k+"]":l.test(k)?"."+k:"['"+h(k)+"']"}function h(k){return k.replace(u,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function g(k,U){U+="[^0-9]";var F=k.match(new RegExp(U,"g"));return F?F.length:0}function m(k,U,F){return U+="([^0-9])",F=F.replace(/\$/g,"$$$$"),k.replace(new RegExp(U,"g"),F+"$1")}function E(k,U){if(typeof k=="boolean")return!k;for(var F in k)if(U[F])return!0}function b(k,U,F){if(typeof k=="boolean")return!k&&F!="not";for(var Q in k)if(Q!=F&&U[Q])return!0}function T(k,U){if(typeof k!="boolean"){for(var F in k)if(!U[F])return F}}function A(k){return"'"+h(k)+"'"}function S(k,U,F,Q){var Y=F?"'/' + "+U+(Q?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):Q?"'[' + "+U+" + ']'":"'[\\'' + "+U+" + '\\']'";return I(k,Y)}function w(k,U,F){var Q=A(F?"/"+D(U):d(U));return I(k,Q)}var R=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function M(k,U,F){var Q,Y,te,V;if(k==="")return"rootData";if(k[0]=="/"){if(!R.test(k))throw new Error("Invalid JSON-pointer: "+k);Y=k,te="rootData"}else{if(V=k.match(P),!V)throw new Error("Invalid JSON-pointer: "+k);if(Q=+V[1],Y=V[2],Y=="#"){if(Q>=U)throw new Error("Cannot access property/index "+Q+" levels up, current level is "+U);return F[U-Q]}if(Q>U)throw new Error("Cannot access data "+Q+" levels up, current level is "+U);if(te="data"+(U-Q||""),!Y)return te}for(var J=te,X=Y.split("/"),se=0;se<X.length;se++){var C=X[se];C&&(te+=d(B(C)),J+=" && "+te)}return J}function I(k,U){return k=='""'?U:(k+" + "+U).replace(/([^\\])' \+ '/g,"$1")}function N(k){return B(decodeURIComponent(k))}function L(k){return encodeURIComponent(D(k))}function D(k){return k.replace(/~/g,"~0").replace(/\//g,"~1")}function B(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}return fg}var hg,G5;function kN(){if(G5)return hg;G5=1;var e=qu();hg=t;function t(n){e.copy(n,this)}return hg}var mg={exports:{}},K5;function Oae(){if(K5)return mg.exports;K5=1;var e=mg.exports=function(r,a,i){typeof a=="function"&&(i=a,a={}),i=a.cb||i;var l=typeof i=="function"?i:i.pre||function(){},u=i.post||function(){};t(a,l,u,r,"",r)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(r,a,i,l,u,d,h,g,m,E){if(l&&typeof l=="object"&&!Array.isArray(l)){a(l,u,d,h,g,m,E);for(var b in l){var T=l[b];if(Array.isArray(T)){if(b in e.arrayKeywords)for(var A=0;A<T.length;A++)t(r,a,i,T[A],u+"/"+b+"/"+A,d,u,b,l,A)}else if(b in e.propsKeywords){if(T&&typeof T=="object")for(var S in T)t(r,a,i,T[S],u+"/"+b+"/"+n(S),d,u,b,l,S)}else(b in e.keywords||r.allKeys&&!(b in e.skipKeywords))&&t(r,a,i,T,u+"/"+b,d,u,b,l)}i(l,u,d,h,g,m,E)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return mg.exports}var pg,X5;function ay(){if(X5)return pg;X5=1;var e=Cae(),t=ry(),n=qu(),r=kN(),a=Oae();pg=i,i.normalizeId=w,i.fullPath=T,i.url=R,i.ids=P,i.inlineRef=m,i.schema=l;function i(M,I,N){var L=this._refs[N];if(typeof L=="string")if(this._refs[L])L=this._refs[L];else return i.call(this,M,I,L);if(L=L||this._schemas[N],L instanceof r)return m(L.schema,this._opts.inlineRefs)?L.schema:L.validate||this._compile(L);var D=l.call(this,I,N),B,k,U;return D&&(B=D.schema,I=D.root,U=D.baseId),B instanceof r?k=B.validate||M.call(this,B.schema,I,void 0,U):B!==void 0&&(k=m(B,this._opts.inlineRefs)?B:M.call(this,B,I,void 0,U)),k}function l(M,I){var N=e.parse(I),L=A(N),D=T(this._getId(M.schema));if(Object.keys(M.schema).length===0||L!==D){var B=w(L),k=this._refs[B];if(typeof k=="string")return u.call(this,M,k,N);if(k instanceof r)k.validate||this._compile(k),M=k;else if(k=this._schemas[B],k instanceof r){if(k.validate||this._compile(k),B==w(I))return{schema:k,root:M,baseId:D};M=k}else return;if(!M.schema)return;D=T(this._getId(M.schema))}return h.call(this,N,D,M.schema,M)}function u(M,I,N){var L=l.call(this,M,I);if(L){var D=L.schema,B=L.baseId;M=L.root;var k=this._getId(D);return k&&(B=R(B,k)),h.call(this,N,B,D,M)}}var d=n.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function h(M,I,N,L){if(M.fragment=M.fragment||"",M.fragment.slice(0,1)=="/"){for(var D=M.fragment.split("/"),B=1;B<D.length;B++){var k=D[B];if(k){if(k=n.unescapeFragment(k),N=N[k],N===void 0)break;var U;if(!d[k]&&(U=this._getId(N),U&&(I=R(I,U)),N.$ref)){var F=R(I,N.$ref),Q=l.call(this,L,F);Q&&(N=Q.schema,L=Q.root,I=Q.baseId)}}}if(N!==void 0&&N!==L.schema)return{schema:N,root:L,baseId:I}}}var g=n.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function m(M,I){if(I===!1)return!1;if(I===void 0||I===!0)return E(M);if(I)return b(M)<=I}function E(M){var I;if(Array.isArray(M)){for(var N=0;N<M.length;N++)if(I=M[N],typeof I=="object"&&!E(I))return!1}else for(var L in M)if(L=="$ref"||(I=M[L],typeof I=="object"&&!E(I)))return!1;return!0}function b(M){var I=0,N;if(Array.isArray(M)){for(var L=0;L<M.length;L++)if(N=M[L],typeof N=="object"&&(I+=b(N)),I==1/0)return 1/0}else for(var D in M){if(D=="$ref")return 1/0;if(g[D])I++;else if(N=M[D],typeof N=="object"&&(I+=b(N)+1),I==1/0)return 1/0}return I}function T(M,I){I!==!1&&(M=w(M));var N=e.parse(M);return A(N)}function A(M){return e.serialize(M).split("#")[0]+"#"}var S=/#\/?$/;function w(M){return M?M.replace(S,""):""}function R(M,I){return I=w(I),e.resolve(M,I)}function P(M){var I=w(this._getId(M)),N={"":I},L={"":T(I,!1)},D={},B=this;return a(M,{allKeys:!0},function(k,U,F,Q,Y,te,V){if(U!==""){var J=B._getId(k),X=N[Q],se=L[Q]+"/"+Y;if(V!==void 0&&(se+="/"+(typeof V=="number"?V:n.escapeFragment(V))),typeof J=="string"){J=X=w(X?e.resolve(X,J):J);var C=B._refs[J];if(typeof C=="string"&&(C=B._refs[C]),C&&C.schema){if(!t(k,C.schema))throw new Error('id "'+J+'" resolves to more than one schema')}else if(J!=w(se))if(J[0]=="#"){if(D[J]&&!t(k,D[J]))throw new Error('id "'+J+'" resolves to more than one schema');D[J]=k}else B._refs[J]=se}N[U]=X,L[U]=se}}),D}return pg}var gg,W5;function sy(){if(W5)return gg;W5=1;var e=ay();gg={Validation:r(t),MissingRef:r(n)};function t(a){this.message="validation failed",this.errors=a,this.ajv=this.validation=!0}n.message=function(a,i){return"can't resolve reference "+i+" from id "+a};function n(a,i,l){this.message=l||n.message(a,i),this.missingRef=e.url(a,i),this.missingSchema=e.normalizeId(e.fullPath(this.missingRef))}function r(a){return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}return gg}var vg,J5;function PN(){return J5||(J5=1,vg=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var n=typeof t.cycles=="boolean"?t.cycles:!1,r=t.cmp&&function(i){return function(l){return function(u,d){var h={key:u,value:l[u]},g={key:d,value:l[d]};return i(h,g)}}}(t.cmp),a=[];return function i(l){if(l&&l.toJSON&&typeof l.toJSON=="function"&&(l=l.toJSON()),l!==void 0){if(typeof l=="number")return isFinite(l)?""+l:"null";if(typeof l!="object")return JSON.stringify(l);var u,d;if(Array.isArray(l)){for(d="[",u=0;u<l.length;u++)u&&(d+=","),d+=i(l[u])||"null";return d+"]"}if(l===null)return"null";if(a.indexOf(l)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var h=a.push(l)-1,g=Object.keys(l).sort(r&&r(l));for(d="",u=0;u<g.length;u++){var m=g[u],E=i(l[m]);E&&(d&&(d+=","),d+=JSON.stringify(m)+":"+E)}return a.splice(h,1),"{"+d+"}"}}(e)}),vg}var yg,eT;function DN(){return eT||(eT=1,yg=function(t,n,r){var a="",i=t.schema.$async===!0,l=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),u=t.self._getId(t.schema);if(t.opts.strictKeywords){var d=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(d){var h="unknown keyword: "+d;if(t.opts.strictKeywords==="log")t.logger.warn(h);else throw new Error(h)}}if(t.isTop&&(a+=" var validate = ",i&&(t.async=!0,a+="async "),a+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",u&&(t.opts.sourceCode||t.opts.processCode)&&(a+=" "+("/*# sourceURL="+u+" */")+" ")),typeof t.schema=="boolean"||!(l||t.schema.$ref)){var n="false schema",g=t.level,m=t.dataLevel,E=t.schema[n],b=t.schemaPath+t.util.getProperty(n),T=t.errSchemaPath+"/"+n,I=!t.opts.allErrors,D,A="data"+(m||""),M="valid"+g;if(t.schema===!1){t.isTop?I=!0:a+=" var "+M+" = false; ";var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(D||"false schema")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(T)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'boolean schema is false' "),t.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+A+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&I?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t.isTop?i?a+=" return data; ":a+=" validate.errors = null; return true; ":a+=" var "+M+" = true; ";return t.isTop&&(a+=" }; return validate; "),a}if(t.isTop){var R=t.isTop,g=t.level=0,m=t.dataLevel=0,A="data";if(t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[""],t.schema.default!==void 0&&t.opts.useDefaults&&t.opts.strictDefaults){var P="default is ignored in the schema root";if(t.opts.strictDefaults==="log")t.logger.warn(P);else throw new Error(P)}a+=" var vErrors = null; ",a+=" var errors = 0; ",a+=" if (rootData === undefined) rootData = data; "}else{var g=t.level,m=t.dataLevel,A="data"+(m||"");if(u&&(t.baseId=t.resolve.url(t.baseId,u)),i&&!t.async)throw new Error("async schema in sync schema");a+=" var errs_"+g+" = errors;"}var M="valid"+g,I=!t.opts.allErrors,N="",L="",D,B=t.schema.type,k=Array.isArray(B);if(B&&t.opts.nullable&&t.schema.nullable===!0&&(k?B.indexOf("null")==-1&&(B=B.concat("null")):B!="null"&&(B=[B,"null"],k=!0)),k&&B.length==1&&(B=B[0],k=!1),t.schema.$ref&&l){if(t.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');t.opts.extendRefs!==!0&&(l=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(a+=" "+t.RULES.all.$comment.code(t,"$comment")),B){if(t.opts.coerceTypes)var U=t.util.coerceToTypes(t.opts.coerceTypes,B);var F=t.RULES.types[B];if(U||k||F===!0||F&&!bt(F)){var b=t.schemaPath+".type",T=t.errSchemaPath+"/type",b=t.schemaPath+".type",T=t.errSchemaPath+"/type",Q=k?"checkDataTypes":"checkDataType";if(a+=" if ("+t.util[Q](B,A,t.opts.strictNumbers,!0)+") { ",U){var Y="dataType"+g,te="coerced"+g;a+=" var "+Y+" = typeof "+A+"; var "+te+" = undefined; ",t.opts.coerceTypes=="array"&&(a+=" if ("+Y+" == 'object' && Array.isArray("+A+") && "+A+".length == 1) { "+A+" = "+A+"[0]; "+Y+" = typeof "+A+"; if ("+t.util.checkDataType(t.schema.type,A,t.opts.strictNumbers)+") "+te+" = "+A+"; } "),a+=" if ("+te+" !== undefined) ; ";var V=U;if(V)for(var J,X=-1,se=V.length-1;X<se;)J=V[X+=1],J=="string"?a+=" else if ("+Y+" == 'number' || "+Y+" == 'boolean') "+te+" = '' + "+A+"; else if ("+A+" === null) "+te+" = ''; ":J=="number"||J=="integer"?(a+=" else if ("+Y+" == 'boolean' || "+A+" === null || ("+Y+" == 'string' && "+A+" && "+A+" == +"+A+" ",J=="integer"&&(a+=" && !("+A+" % 1)"),a+=")) "+te+" = +"+A+"; "):J=="boolean"?a+=" else if ("+A+" === 'false' || "+A+" === 0 || "+A+" === null) "+te+" = false; else if ("+A+" === 'true' || "+A+" === 1) "+te+" = true; ":J=="null"?a+=" else if ("+A+" === '' || "+A+" === 0 || "+A+" === false) "+te+" = null; ":t.opts.coerceTypes=="array"&&J=="array"&&(a+=" else if ("+Y+" == 'string' || "+Y+" == 'number' || "+Y+" == 'boolean' || "+A+" == null) "+te+" = ["+A+"]; ");a+=" else { ";var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(T)+" , params: { type: '",k?a+=""+B.join(","):a+=""+B,a+="' } ",t.opts.messages!==!1&&(a+=" , message: 'should be ",k?a+=""+B.join(","):a+=""+B,a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+A+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&I?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } if ("+te+" !== undefined) { ";var C=m?"data"+(m-1||""):"parentData",oe=m?t.dataPathArr[m]:"parentDataProperty";a+=" "+A+" = "+te+"; ",m||(a+="if ("+C+" !== undefined)"),a+=" "+C+"["+oe+"] = "+te+"; } "}else{var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(T)+" , params: { type: '",k?a+=""+B.join(","):a+=""+B,a+="' } ",t.opts.messages!==!1&&(a+=" , message: 'should be ",k?a+=""+B.join(","):a+=""+B,a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+A+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&I?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } "}}if(t.schema.$ref&&!l)a+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",I&&(a+=" } if (errors === ",R?a+="0":a+="errs_"+g,a+=") { ",L+="}");else{var ge=t.RULES;if(ge){for(var F,j=-1,Ee=ge.length-1;j<Ee;)if(F=ge[j+=1],bt(F)){if(F.type&&(a+=" if ("+t.util.checkDataType(F.type,A,t.opts.strictNumbers)+") { "),t.opts.useDefaults){if(F.type=="object"&&t.schema.properties){var E=t.schema.properties,ke=Object.keys(E),Z=ke;if(Z)for(var ae,Te=-1,Ze=Z.length-1;Te<Ze;){ae=Z[Te+=1];var Ae=E[ae];if(Ae.default!==void 0){var Oe=A+t.util.getProperty(ae);if(t.compositeRule){if(t.opts.strictDefaults){var P="default is ignored for: "+Oe;if(t.opts.strictDefaults==="log")t.logger.warn(P);else throw new Error(P)}}else a+=" if ("+Oe+" === undefined ",t.opts.useDefaults=="empty"&&(a+=" || "+Oe+" === null || "+Oe+" === '' "),a+=" ) "+Oe+" = ",t.opts.useDefaults=="shared"?a+=" "+t.useDefault(Ae.default)+" ":a+=" "+JSON.stringify(Ae.default)+" ",a+="; "}}}else if(F.type=="array"&&Array.isArray(t.schema.items)){var et=t.schema.items;if(et){for(var Ae,X=-1,ct=et.length-1;X<ct;)if(Ae=et[X+=1],Ae.default!==void 0){var Oe=A+"["+X+"]";if(t.compositeRule){if(t.opts.strictDefaults){var P="default is ignored for: "+Oe;if(t.opts.strictDefaults==="log")t.logger.warn(P);else throw new Error(P)}}else a+=" if ("+Oe+" === undefined ",t.opts.useDefaults=="empty"&&(a+=" || "+Oe+" === null || "+Oe+" === '' "),a+=" ) "+Oe+" = ",t.opts.useDefaults=="shared"?a+=" "+t.useDefault(Ae.default)+" ":a+=" "+JSON.stringify(Ae.default)+" ",a+="; "}}}}var it=F.rules;if(it){for(var Ht,_t=-1,st=it.length-1;_t<st;)if(Ht=it[_t+=1],W(Ht)){var yn=Ht.code(t,Ht.keyword,F.type);yn&&(a+=" "+yn+" ",I&&(N+="}"))}}if(I&&(a+=" "+N+" ",N=""),F.type&&(a+=" } ",B&&B===F.type&&!U)){a+=" else { ";var b=t.schemaPath+".type",T=t.errSchemaPath+"/type",S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(D||"type")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(T)+" , params: { type: '",k?a+=""+B.join(","):a+=""+B,a+="' } ",t.opts.messages!==!1&&(a+=" , message: 'should be ",k?a+=""+B.join(","):a+=""+B,a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+A+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&I?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } "}I&&(a+=" if (errors === ",R?a+="0":a+="errs_"+g,a+=") { ",L+="}")}}}I&&(a+=" "+L+" "),R?(i?(a+=" if (errors === 0) return data; ",a+=" else throw new ValidationError(vErrors); "):(a+=" validate.errors = vErrors; ",a+=" return errors === 0; "),a+=" }; return validate;"):a+=" var "+M+" = errors === errs_"+g+";";function bt(pe){for(var Ne=pe.rules,Le=0;Le<Ne.length;Le++)if(W(Ne[Le]))return!0}function W(pe){return t.schema[pe.keyword]!==void 0||pe.implements&&ce(pe)}function ce(pe){for(var Ne=pe.implements,Le=0;Le<Ne.length;Le++)if(t.schema[Ne[Le]]!==void 0)return!0}return a}),yg}var bg,tT;function Nae(){if(tT)return bg;tT=1;var e=ay(),t=qu(),n=sy(),r=PN(),a=DN(),i=t.ucs2length,l=ry(),u=n.Validation;bg=d;function d(w,R,P,M){var I=this,N=this._opts,L=[void 0],D={},B=[],k={},U=[],F={},Q=[];R=R||{schema:w,refVal:L,refs:D};var Y=h.call(this,w,R,M),te=this._compilations[Y.index];if(Y.compiling)return te.callValidate=C;var V=this._formats,J=this.RULES;try{var X=oe(w,R,P,M);te.validate=X;var se=te.callValidate;return se&&(se.schema=X.schema,se.errors=null,se.refs=X.refs,se.refVal=X.refVal,se.root=X.root,se.$async=X.$async,N.sourceCode&&(se.source=X.source)),X}finally{g.call(this,w,R,M)}function C(){var Ae=te.validate,Oe=Ae.apply(this,arguments);return C.errors=Ae.errors,Oe}function oe(Ae,Oe,et,ct){var it=!Oe||Oe&&Oe.schema==Ae;if(Oe.schema!=R.schema)return d.call(I,Ae,Oe,et,ct);var Ht=Ae.$async===!0,_t=a({isTop:!0,schema:Ae,isRoot:it,baseId:ct,root:Oe,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n.MissingRef,RULES:J,validate:a,util:t,resolve:e,resolveRef:ge,usePattern:ae,useDefault:Te,useCustomRule:Ze,opts:N,formats:V,logger:I.logger,self:I});_t=S(L,T)+S(B,E)+S(U,b)+S(Q,A)+_t,N.processCode&&(_t=N.processCode(_t,Ae));var st;try{var yn=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",_t);st=yn(I,J,V,R,L,U,Q,l,i,u),L[0]=st}catch(bt){throw I.logger.error("Error compiling schema, function code:",_t),bt}return st.schema=Ae,st.errors=null,st.refs=D,st.refVal=L,st.root=it?st:Oe,Ht&&(st.$async=!0),N.sourceCode===!0&&(st.source={code:_t,patterns:B,defaults:U}),st}function ge(Ae,Oe,et){Oe=e.url(Ae,Oe);var ct=D[Oe],it,Ht;if(ct!==void 0)return it=L[ct],Ht="refVal["+ct+"]",Z(it,Ht);if(!et&&R.refs){var _t=R.refs[Oe];if(_t!==void 0)return it=R.refVal[_t],Ht=j(Oe,it),Z(it,Ht)}Ht=j(Oe);var st=e.call(I,oe,R,Oe);if(st===void 0){var yn=P&&P[Oe];yn&&(st=e.inlineRef(yn,N.inlineRefs)?yn:d.call(I,yn,R,P,Ae))}if(st===void 0)Ee(Oe);else return ke(Oe,st),Z(st,Ht)}function j(Ae,Oe){var et=L.length;return L[et]=Oe,D[Ae]=et,"refVal"+et}function Ee(Ae){delete D[Ae]}function ke(Ae,Oe){var et=D[Ae];L[et]=Oe}function Z(Ae,Oe){return typeof Ae=="object"||typeof Ae=="boolean"?{code:Oe,schema:Ae,inline:!0}:{code:Oe,$async:Ae&&!!Ae.$async}}function ae(Ae){var Oe=k[Ae];return Oe===void 0&&(Oe=k[Ae]=B.length,B[Oe]=Ae),"pattern"+Oe}function Te(Ae){switch(typeof Ae){case"boolean":case"number":return""+Ae;case"string":return t.toQuotedString(Ae);case"object":if(Ae===null)return"null";var Oe=r(Ae),et=F[Oe];return et===void 0&&(et=F[Oe]=U.length,U[et]=Ae),"default"+et}}function Ze(Ae,Oe,et,ct){if(I._opts.validateSchema!==!1){var it=Ae.definition.dependencies;if(it&&!it.every(function(Ne){return Object.prototype.hasOwnProperty.call(et,Ne)}))throw new Error("parent schema must have all required keywords: "+it.join(","));var Ht=Ae.definition.validateSchema;if(Ht){var _t=Ht(Oe);if(!_t){var st="keyword schema is invalid: "+I.errorsText(Ht.errors);if(I._opts.validateSchema=="log")I.logger.error(st);else throw new Error(st)}}}var yn=Ae.definition.compile,bt=Ae.definition.inline,W=Ae.definition.macro,ce;if(yn)ce=yn.call(I,Oe,et,ct);else if(W)ce=W.call(I,Oe,et,ct),N.validateSchema!==!1&&I.validateSchema(ce,!0);else if(bt)ce=bt.call(I,ct,Ae.keyword,Oe,et);else if(ce=Ae.definition.validate,!ce)return;if(ce===void 0)throw new Error('custom keyword "'+Ae.keyword+'"failed to compile');var pe=Q.length;return Q[pe]=ce,{code:"customRule"+pe,validate:ce}}}function h(w,R,P){var M=m.call(this,w,R,P);return M>=0?{index:M,compiling:!0}:(M=this._compilations.length,this._compilations[M]={schema:w,root:R,baseId:P},{index:M,compiling:!1})}function g(w,R,P){var M=m.call(this,w,R,P);M>=0&&this._compilations.splice(M,1)}function m(w,R,P){for(var M=0;M<this._compilations.length;M++){var I=this._compilations[M];if(I.schema==w&&I.root==R&&I.baseId==P)return M}return-1}function E(w,R){return"var pattern"+w+" = new RegExp("+t.toQuotedString(R[w])+");"}function b(w){return"var default"+w+" = defaults["+w+"];"}function T(w,R){return R[w]===void 0?"":"var refVal"+w+" = refVal["+w+"];"}function A(w){return"var customRule"+w+" = customRules["+w+"];"}function S(w,R){if(!w.length)return"";for(var P="",M=0;M<w.length;M++)P+=R(M,w);return P}return bg}var Eg={exports:{}},nT;function kae(){if(nT)return Eg.exports;nT=1;var e=Eg.exports=function(){this._cache={}};return e.prototype.put=function(n,r){this._cache[n]=r},e.prototype.get=function(n){return this._cache[n]},e.prototype.del=function(n){delete this._cache[n]},e.prototype.clear=function(){this._cache={}},Eg.exports}var xg,rT;function Pae(){if(rT)return xg;rT=1;var e=qu(),t=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,a=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,i=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,u=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,d=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,h=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,g=/^(?:\/(?:[^~/]|~0|~1)*)*$/,m=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,E=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;xg=b;function b(L){return L=L=="full"?"full":"fast",e.copy(b[L])}b.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":u,url:d,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:N,uuid:h,"json-pointer":g,"json-pointer-uri-fragment":m,"relative-json-pointer":E},b.full={date:A,time:S,"date-time":R,uri:M,"uri-reference":l,"uri-template":u,url:d,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:a,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:N,uuid:h,"json-pointer":g,"json-pointer-uri-fragment":m,"relative-json-pointer":E};function T(L){return L%4===0&&(L%100!==0||L%400===0)}function A(L){var D=L.match(t);if(!D)return!1;var B=+D[1],k=+D[2],U=+D[3];return k>=1&&k<=12&&U>=1&&U<=(k==2&&T(B)?29:n[k])}function S(L,D){var B=L.match(r);if(!B)return!1;var k=B[1],U=B[2],F=B[3],Q=B[5];return(k<=23&&U<=59&&F<=59||k==23&&U==59&&F==60)&&(!D||Q)}var w=/t|\s/i;function R(L){var D=L.split(w);return D.length==2&&A(D[0])&&S(D[1],!0)}var P=/\/|:/;function M(L){return P.test(L)&&i.test(L)}var I=/[^\\]\\Z/;function N(L){if(I.test(L))return!1;try{return new RegExp(L),!0}catch{return!1}}return xg}var _g,aT;function Dae(){return aT||(aT=1,_g=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.errSchemaPath+"/"+n,h=!t.opts.allErrors,g="data"+(l||""),m="valid"+i,E,b;if(u=="#"||u=="#/")t.isRoot?(E=t.async,b="validate"):(E=t.root.schema.$async===!0,b="root.refVal[0]");else{var T=t.resolveRef(t.baseId,u,t.isRoot);if(T===void 0){var A=t.MissingRefError.message(t.baseId,u);if(t.opts.missingRefs=="fail"){t.logger.error(A);var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(d)+" , params: { ref: '"+t.util.escapeQuotes(u)+"' } ",t.opts.messages!==!1&&(a+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(u)+"' "),t.opts.verbose&&(a+=" , schema: "+t.util.toQuotedString(u)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+g+" "),a+=" } "):a+=" {} ";var w=a;a=S.pop(),!t.compositeRule&&h?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h&&(a+=" if (false) { ")}else if(t.opts.missingRefs=="ignore")t.logger.warn(A),h&&(a+=" if (true) { ");else throw new t.MissingRefError(t.baseId,u,A)}else if(T.inline){var R=t.util.copy(t);R.level++;var P="valid"+R.level;R.schema=T.schema,R.schemaPath="",R.errSchemaPath=u;var M=t.validate(R).replace(/validate\.schema/g,T.code);a+=" "+M+" ",h&&(a+=" if ("+P+") { ")}else E=T.$async===!0||t.async&&T.$async!==!1,b=T.code}if(b){var S=S||[];S.push(a),a="",t.opts.passContext?a+=" "+b+".call(this, ":a+=" "+b+"( ",a+=" "+g+", (dataPath || '')",t.errorPath!='""'&&(a+=" + "+t.errorPath);var I=l?"data"+(l-1||""):"parentData",N=l?t.dataPathArr[l]:"parentDataProperty";a+=" , "+I+" , "+N+", rootData) ";var L=a;if(a=S.pop(),E){if(!t.async)throw new Error("async schema referenced by sync schema");h&&(a+=" var "+m+"; "),a+=" try { await "+L+"; ",h&&(a+=" "+m+" = true; "),a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",h&&(a+=" "+m+" = false; "),a+=" } ",h&&(a+=" if ("+m+") { ")}else a+=" if (!"+L+") { if (vErrors === null) vErrors = "+b+".errors; else vErrors = vErrors.concat("+b+".errors); errors = vErrors.length; } ",h&&(a+=" else { ")}return a}),_g}var Tg,sT;function Lae(){return sT||(sT=1,Tg=function(t,n,r){var a=" ",i=t.schema[n],l=t.schemaPath+t.util.getProperty(n),u=t.errSchemaPath+"/"+n,d=!t.opts.allErrors,h=t.util.copy(t),g="";h.level++;var m="valid"+h.level,E=h.baseId,b=!0,T=i;if(T)for(var A,S=-1,w=T.length-1;S<w;)A=T[S+=1],(t.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:t.util.schemaHasRules(A,t.RULES.all))&&(b=!1,h.schema=A,h.schemaPath=l+"["+S+"]",h.errSchemaPath=u+"/"+S,a+=" "+t.validate(h)+" ",h.baseId=E,d&&(a+=" if ("+m+") { ",g+="}"));return d&&(b?a+=" if (true) { ":a+=" "+g.slice(0,-1)+" "),a}),Tg}var Ag,iT;function Mae(){return iT||(iT=1,Ag=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t),A="";T.level++;var S="valid"+T.level,w=u.every(function(D){return t.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:t.util.schemaHasRules(D,t.RULES.all)});if(w){var R=T.baseId;a+=" var "+b+" = errors; var "+E+" = false; ";var P=t.compositeRule;t.compositeRule=T.compositeRule=!0;var M=u;if(M)for(var I,N=-1,L=M.length-1;N<L;)I=M[N+=1],T.schema=I,T.schemaPath=d+"["+N+"]",T.errSchemaPath=h+"/"+N,a+=" "+t.validate(T)+" ",T.baseId=R,a+=" "+E+" = "+E+" || "+S+"; if (!"+E+") { ",A+="}";t.compositeRule=T.compositeRule=P,a+=" "+A+" if (!"+E+") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&g&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+=" } else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",t.opts.allErrors&&(a+=" } ")}else g&&(a+=" if (true) { ");return a}),Ag}var Sg,oT;function Iae(){return oT||(oT=1,Sg=function(t,n,r){var a=" ",i=t.schema[n],l=t.errSchemaPath+"/"+n;t.opts.allErrors;var u=t.util.toQuotedString(i);return t.opts.$comment===!0?a+=" console.log("+u+");":typeof t.opts.$comment=="function"&&(a+=" self._opts.$comment("+u+", "+t.util.toQuotedString(l)+", validate.root.schema);"),a}),Sg}var wg,lT;function jae(){return lT||(lT=1,wg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b=t.opts.$data&&u&&u.$data;b&&(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; "),b||(a+=" var schema"+i+" = validate.schema"+d+";"),a+="var "+E+" = equal("+m+", schema"+i+"); if (!"+E+") { ";var T=T||[];T.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { allowedValue: schema"+i+" } ",t.opts.messages!==!1&&(a+=" , message: 'should be equal to constant' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var A=a;return a=T.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" }",g&&(a+=" else { "),a}),wg}var Cg,uT;function Hae(){return uT||(uT=1,Cg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t),A="";T.level++;var S="valid"+T.level,w="i"+i,R=T.dataLevel=t.dataLevel+1,P="data"+R,M=t.baseId,I=t.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:t.util.schemaHasRules(u,t.RULES.all);if(a+="var "+b+" = errors;var "+E+";",I){var N=t.compositeRule;t.compositeRule=T.compositeRule=!0,T.schema=u,T.schemaPath=d,T.errSchemaPath=h,a+=" var "+S+" = false; for (var "+w+" = 0; "+w+" < "+m+".length; "+w+"++) { ",T.errorPath=t.util.getPathExpr(t.errorPath,w,t.opts.jsonPointers,!0);var L=m+"["+w+"]";T.dataPathArr[R]=w;var D=t.validate(T);T.baseId=M,t.util.varOccurences(D,P)<2?a+=" "+t.util.varReplace(D,P,L)+" ":a+=" var "+P+" = "+L+"; "+D+" ",a+=" if ("+S+") break; } ",t.compositeRule=T.compositeRule=N,a+=" "+A+" if (!"+S+") {"}else a+=" if ("+m+".length == 0) {";var B=B||[];B.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'should contain a valid item' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var k=a;return a=B.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+k+"]); ":a+=" validate.errors = ["+k+"]; return false; ":a+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { ",I&&(a+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } "),t.opts.allErrors&&(a+=" } "),a}),Cg}var Rg,cT;function Fae(){return cT||(cT=1,Rg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="errs__"+i,b=t.util.copy(t),T="";b.level++;var A="valid"+b.level,S={},w={},R=t.opts.ownProperties;for(N in u)if(N!="__proto__"){var P=u[N],M=Array.isArray(P)?w:S;M[N]=P}a+="var "+E+" = errors;";var I=t.errorPath;a+="var missing"+i+";";for(var N in w)if(M=w[N],M.length){if(a+=" if ( "+m+t.util.getProperty(N)+" !== undefined ",R&&(a+=" && Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(N)+"') "),g){a+=" && ( ";var L=M;if(L)for(var D,B=-1,k=L.length-1;B<k;){D=L[B+=1],B&&(a+=" || ");var U=t.util.getProperty(D),F=m+U;a+=" ( ( "+F+" === undefined ",R&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(D)+"') "),a+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?D:U)+") ) "}a+=")) { ";var Q="missing"+i,Y="' + "+Q+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(I,Q,!0):I+" + "+Q);var te=te||[];te.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { property: '"+t.util.escapeQuotes(N)+"', missingProperty: '"+Y+"', depsCount: "+M.length+", deps: '"+t.util.escapeQuotes(M.length==1?M[0]:M.join(", "))+"' } ",t.opts.messages!==!1&&(a+=" , message: 'should have ",M.length==1?a+="property "+t.util.escapeQuotes(M[0]):a+="properties "+t.util.escapeQuotes(M.join(", ")),a+=" when property "+t.util.escapeQuotes(N)+" is present' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var V=a;a=te.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+V+"]); ":a+=" validate.errors = ["+V+"]; return false; ":a+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{a+=" ) { ";var J=M;if(J)for(var D,X=-1,se=J.length-1;X<se;){D=J[X+=1];var U=t.util.getProperty(D),Y=t.util.escapeQuotes(D),F=m+U;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(I,D,t.opts.jsonPointers)),a+=" if ( "+F+" === undefined ",R&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(D)+"') "),a+=") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { property: '"+t.util.escapeQuotes(N)+"', missingProperty: '"+Y+"', depsCount: "+M.length+", deps: '"+t.util.escapeQuotes(M.length==1?M[0]:M.join(", "))+"' } ",t.opts.messages!==!1&&(a+=" , message: 'should have ",M.length==1?a+="property "+t.util.escapeQuotes(M[0]):a+="properties "+t.util.escapeQuotes(M.join(", ")),a+=" when property "+t.util.escapeQuotes(N)+" is present' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}a+=" } ",g&&(T+="}",a+=" else { ")}t.errorPath=I;var C=b.baseId;for(var N in S){var P=S[N];(t.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:t.util.schemaHasRules(P,t.RULES.all))&&(a+=" "+A+" = true; if ( "+m+t.util.getProperty(N)+" !== undefined ",R&&(a+=" && Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(N)+"') "),a+=") { ",b.schema=P,b.schemaPath=d+t.util.getProperty(N),b.errSchemaPath=h+"/"+t.util.escapeFragment(N),a+=" "+t.validate(b)+" ",b.baseId=C,a+=" } ",g&&(a+=" if ("+A+") { ",T+="}"))}return g&&(a+=" "+T+" if ("+E+" == errors) {"),a}),Rg}var Og,dT;function Uae(){return dT||(dT=1,Og=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b=t.opts.$data&&u&&u.$data;b&&(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ");var T="i"+i,A="schema"+i;b||(a+=" var "+A+" = validate.schema"+d+";"),a+="var "+E+";",b&&(a+=" if (schema"+i+" === undefined) "+E+" = true; else if (!Array.isArray(schema"+i+")) "+E+" = false; else {"),a+=""+E+" = false;for (var "+T+"=0; "+T+"<"+A+".length; "+T+"++) if (equal("+m+", "+A+"["+T+"])) { "+E+" = true; break; }",b&&(a+=" } "),a+=" if (!"+E+") { ";var S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { allowedValues: schema"+i+" } ",t.opts.messages!==!1&&(a+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var w=a;return a=S.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" }",g&&(a+=" else { "),a}),Og}var Ng,fT;function Bae(){return fT||(fT=1,Ng=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||"");if(t.opts.format===!1)return g&&(a+=" if (true) { "),a;var E=t.opts.$data&&u&&u.$data,b;E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u;var T=t.opts.unknownFormats,A=Array.isArray(T);if(E){var S="format"+i,w="isObject"+i,R="formatType"+i;a+=" var "+S+" = formats["+b+"]; var "+w+" = typeof "+S+" == 'object' && !("+S+" instanceof RegExp) && "+S+".validate; var "+R+" = "+w+" && "+S+".type || 'string'; if ("+w+") { ",t.async&&(a+=" var async"+i+" = "+S+".async; "),a+=" "+S+" = "+S+".validate; } if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),a+=" (",T!="ignore"&&(a+=" ("+b+" && !"+S+" ",A&&(a+=" && self._opts.unknownFormats.indexOf("+b+") == -1 "),a+=") || "),a+=" ("+S+" && "+R+" == '"+r+"' && !(typeof "+S+" == 'function' ? ",t.async?a+=" (async"+i+" ? await "+S+"("+m+") : "+S+"("+m+")) ":a+=" "+S+"("+m+") ",a+=" : "+S+".test("+m+"))))) {"}else{var S=t.formats[u];if(!S){if(T=="ignore")return t.logger.warn('unknown format "'+u+'" ignored in schema at path "'+t.errSchemaPath+'"'),g&&(a+=" if (true) { "),a;if(A&&T.indexOf(u)>=0)return g&&(a+=" if (true) { "),a;throw new Error('unknown format "'+u+'" is used in schema at path "'+t.errSchemaPath+'"')}var w=typeof S=="object"&&!(S instanceof RegExp)&&S.validate,R=w&&S.type||"string";if(w){var P=S.async===!0;S=S.validate}if(R!=r)return g&&(a+=" if (true) { "),a;if(P){if(!t.async)throw new Error("async format in sync schema");var M="formats"+t.util.getProperty(u)+".validate";a+=" if (!(await "+M+"("+m+"))) { "}else{a+=" if (! ";var M="formats"+t.util.getProperty(u);w&&(M+=".validate"),typeof S=="function"?a+=" "+M+"("+m+") ":a+=" "+M+".test("+m+") ",a+=") { "}}var I=I||[];I.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { format: ",E?a+=""+b:a+=""+t.util.toQuotedString(u),a+=" } ",t.opts.messages!==!1&&(a+=` , message: 'should match format "`,E?a+="' + "+b+" + '":a+=""+t.util.escapeQuotes(u),a+=`"' `),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+t.util.toQuotedString(u),a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var N=a;return a=I.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+N+"]); ":a+=" validate.errors = ["+N+"]; return false; ":a+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",g&&(a+=" else { "),a}),Ng}var kg,hT;function Vae(){return hT||(hT=1,kg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t);T.level++;var A="valid"+T.level,S=t.schema.then,w=t.schema.else,R=S!==void 0&&(t.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:t.util.schemaHasRules(S,t.RULES.all)),P=w!==void 0&&(t.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:t.util.schemaHasRules(w,t.RULES.all)),M=T.baseId;if(R||P){var I;T.createErrors=!1,T.schema=u,T.schemaPath=d,T.errSchemaPath=h,a+=" var "+b+" = errors; var "+E+" = true; ";var N=t.compositeRule;t.compositeRule=T.compositeRule=!0,a+=" "+t.validate(T)+" ",T.baseId=M,T.createErrors=!0,a+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",t.compositeRule=T.compositeRule=N,R?(a+=" if ("+A+") { ",T.schema=t.schema.then,T.schemaPath=t.schemaPath+".then",T.errSchemaPath=t.errSchemaPath+"/then",a+=" "+t.validate(T)+" ",T.baseId=M,a+=" "+E+" = "+A+"; ",R&&P?(I="ifClause"+i,a+=" var "+I+" = 'then'; "):I="'then'",a+=" } ",P&&(a+=" else { ")):a+=" if (!"+A+") { ",P&&(T.schema=t.schema.else,T.schemaPath=t.schemaPath+".else",T.errSchemaPath=t.errSchemaPath+"/else",a+=" "+t.validate(T)+" ",T.baseId=M,a+=" "+E+" = "+A+"; ",R&&P?(I="ifClause"+i,a+=" var "+I+" = 'else'; "):I="'else'",a+=" } "),a+=" if (!"+E+") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { failingKeyword: "+I+" } ",t.opts.messages!==!1&&(a+=` , message: 'should match "' + `+I+` + '" schema' `),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&g&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+=" } ",g&&(a+=" else { ")}else g&&(a+=" if (true) { ");return a}),kg}var Pg,mT;function zae(){return mT||(mT=1,Pg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t),A="";T.level++;var S="valid"+T.level,w="i"+i,R=T.dataLevel=t.dataLevel+1,P="data"+R,M=t.baseId;if(a+="var "+b+" = errors;var "+E+";",Array.isArray(u)){var I=t.schema.additionalItems;if(I===!1){a+=" "+E+" = "+m+".length <= "+u.length+"; ";var N=h;h=t.errSchemaPath+"/additionalItems",a+=" if (!"+E+") { ";var L=L||[];L.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { limit: "+u.length+" } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT have more than "+u.length+" items' "),t.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var D=a;a=L.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+D+"]); ":a+=" validate.errors = ["+D+"]; return false; ":a+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",h=N,g&&(A+="}",a+=" else { ")}var B=u;if(B){for(var k,U=-1,F=B.length-1;U<F;)if(k=B[U+=1],t.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:t.util.schemaHasRules(k,t.RULES.all)){a+=" "+S+" = true; if ("+m+".length > "+U+") { ";var Q=m+"["+U+"]";T.schema=k,T.schemaPath=d+"["+U+"]",T.errSchemaPath=h+"/"+U,T.errorPath=t.util.getPathExpr(t.errorPath,U,t.opts.jsonPointers,!0),T.dataPathArr[R]=U;var Y=t.validate(T);T.baseId=M,t.util.varOccurences(Y,P)<2?a+=" "+t.util.varReplace(Y,P,Q)+" ":a+=" var "+P+" = "+Q+"; "+Y+" ",a+=" } ",g&&(a+=" if ("+S+") { ",A+="}")}}if(typeof I=="object"&&(t.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:t.util.schemaHasRules(I,t.RULES.all))){T.schema=I,T.schemaPath=t.schemaPath+".additionalItems",T.errSchemaPath=t.errSchemaPath+"/additionalItems",a+=" "+S+" = true; if ("+m+".length > "+u.length+") { for (var "+w+" = "+u.length+"; "+w+" < "+m+".length; "+w+"++) { ",T.errorPath=t.util.getPathExpr(t.errorPath,w,t.opts.jsonPointers,!0);var Q=m+"["+w+"]";T.dataPathArr[R]=w;var Y=t.validate(T);T.baseId=M,t.util.varOccurences(Y,P)<2?a+=" "+t.util.varReplace(Y,P,Q)+" ":a+=" var "+P+" = "+Q+"; "+Y+" ",g&&(a+=" if (!"+S+") break; "),a+=" } } ",g&&(a+=" if ("+S+") { ",A+="}")}}else if(t.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:t.util.schemaHasRules(u,t.RULES.all)){T.schema=u,T.schemaPath=d,T.errSchemaPath=h,a+=" for (var "+w+" = 0; "+w+" < "+m+".length; "+w+"++) { ",T.errorPath=t.util.getPathExpr(t.errorPath,w,t.opts.jsonPointers,!0);var Q=m+"["+w+"]";T.dataPathArr[R]=w;var Y=t.validate(T);T.baseId=M,t.util.varOccurences(Y,P)<2?a+=" "+t.util.varReplace(Y,P,Q)+" ":a+=" var "+P+" = "+Q+"; "+Y+" ",g&&(a+=" if (!"+S+") break; "),a+=" }"}return g&&(a+=" "+A+" if ("+b+" == errors) {"),a}),Pg}var Dg,pT;function gT(){return pT||(pT=1,Dg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,M,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u;var T=n=="maximum",A=T?"exclusiveMaximum":"exclusiveMinimum",S=t.schema[A],w=t.opts.$data&&S&&S.$data,R=T?"<":">",P=T?">":"<",M=void 0;if(!(E||typeof u=="number"||u===void 0))throw new Error(n+" must be number");if(!(w||S===void 0||typeof S=="number"||typeof S=="boolean"))throw new Error(A+" must be number or boolean");if(w){var I=t.util.getData(S.$data,l,t.dataPathArr),N="exclusive"+i,L="exclType"+i,D="exclIsNumber"+i,B="op"+i,k="' + "+B+" + '";a+=" var schemaExcl"+i+" = "+I+"; ",I="schemaExcl"+i,a+=" var "+N+"; var "+L+" = typeof "+I+"; if ("+L+" != 'boolean' && "+L+" != 'undefined' && "+L+" != 'number') { ";var M=A,U=U||[];U.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(M||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: '"+A+" should be boolean' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var F=a;a=U.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" "+L+" == 'number' ? ( ("+N+" = "+b+" === undefined || "+I+" "+R+"= "+b+") ? "+m+" "+P+"= "+I+" : "+m+" "+P+" "+b+" ) : ( ("+N+" = "+I+" === true) ? "+m+" "+P+"= "+b+" : "+m+" "+P+" "+b+" ) || "+m+" !== "+m+") { var op"+i+" = "+N+" ? '"+R+"' : '"+R+"='; ",u===void 0&&(M=A,h=t.errSchemaPath+"/"+A,b=I,E=w)}else{var D=typeof S=="number",k=R;if(D&&E){var B="'"+k+"'";a+=" if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" ( "+b+" === undefined || "+S+" "+R+"= "+b+" ? "+m+" "+P+"= "+S+" : "+m+" "+P+" "+b+" ) || "+m+" !== "+m+") { "}else{D&&u===void 0?(N=!0,M=A,h=t.errSchemaPath+"/"+A,b=S,P+="="):(D&&(b=Math[T?"min":"max"](S,u)),S===(D?b:!0)?(N=!0,M=A,h=t.errSchemaPath+"/"+A,P+="="):(N=!1,k+="="));var B="'"+k+"'";a+=" if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" "+m+" "+P+" "+b+" || "+m+" !== "+m+") { "}}M=M||n;var U=U||[];U.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(M||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { comparison: "+B+", limit: "+b+", exclusive: "+N+" } ",t.opts.messages!==!1&&(a+=" , message: 'should be "+k+" ",E?a+="' + "+b:a+=""+b+"'"),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var F=a;return a=U.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",g&&(a+=" else { "),a}),Dg}var Lg,vT;function yT(){return vT||(vT=1,Lg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,A,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;if(E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u,!(E||typeof u=="number"))throw new Error(n+" must be number");var T=n=="maxItems"?">":"<";a+="if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" "+m+".length "+T+" "+b+") { ";var A=n,S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(A||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { limit: "+b+" } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT have ",n=="maxItems"?a+="more":a+="fewer",a+=" than ",E?a+="' + "+b+" + '":a+=""+u,a+=" items' "),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var w=a;return a=S.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",g&&(a+=" else { "),a}),Lg}var Mg,bT;function ET(){return bT||(bT=1,Mg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,A,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;if(E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u,!(E||typeof u=="number"))throw new Error(n+" must be number");var T=n=="maxLength"?">":"<";a+="if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),t.opts.unicode===!1?a+=" "+m+".length ":a+=" ucs2length("+m+") ",a+=" "+T+" "+b+") { ";var A=n,S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(A||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { limit: "+b+" } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT be ",n=="maxLength"?a+="longer":a+="shorter",a+=" than ",E?a+="' + "+b+" + '":a+=""+u,a+=" characters' "),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var w=a;return a=S.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",g&&(a+=" else { "),a}),Mg}var Ig,xT;function _T(){return xT||(xT=1,Ig=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,A,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;if(E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u,!(E||typeof u=="number"))throw new Error(n+" must be number");var T=n=="maxProperties"?">":"<";a+="if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),a+=" Object.keys("+m+").length "+T+" "+b+") { ";var A=n,S=S||[];S.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(A||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { limit: "+b+" } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT have ",n=="maxProperties"?a+="more":a+="fewer",a+=" than ",E?a+="' + "+b+" + '":a+=""+u,a+=" properties' "),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var w=a;return a=S.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+w+"]); ":a+=" validate.errors = ["+w+"]; return false; ":a+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",g&&(a+=" else { "),a}),Ig}var jg,TT;function Zae(){return TT||(TT=1,jg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;if(E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u,!(E||typeof u=="number"))throw new Error(n+" must be number");a+="var division"+i+";if (",E&&(a+=" "+b+" !== undefined && ( typeof "+b+" != 'number' || "),a+=" (division"+i+" = "+m+" / "+b+", ",t.opts.multipleOfPrecision?a+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+t.opts.multipleOfPrecision+" ":a+=" division"+i+" !== parseInt(division"+i+") ",a+=" ) ",E&&(a+=" ) "),a+=" ) { ";var T=T||[];T.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { multipleOf: "+b+" } ",t.opts.messages!==!1&&(a+=" , message: 'should be multiple of ",E?a+="' + "+b:a+=""+b+"'"),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var A=a;return a=T.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+A+"]); ":a+=" validate.errors = ["+A+"]; return false; ":a+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",g&&(a+=" else { "),a}),jg}var Hg,AT;function qae(){return AT||(AT=1,Hg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="errs__"+i,b=t.util.copy(t);b.level++;var T="valid"+b.level;if(t.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:t.util.schemaHasRules(u,t.RULES.all)){b.schema=u,b.schemaPath=d,b.errSchemaPath=h,a+=" var "+E+" = errors; ";var A=t.compositeRule;t.compositeRule=b.compositeRule=!0,b.createErrors=!1;var S;b.opts.allErrors&&(S=b.opts.allErrors,b.opts.allErrors=!1),a+=" "+t.validate(b)+" ",b.createErrors=!0,S&&(b.opts.allErrors=S),t.compositeRule=b.compositeRule=A,a+=" if ("+T+") { ";var w=w||[];w.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'should NOT be valid' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var R=a;a=w.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+R+"]); ":a+=" validate.errors = ["+R+"]; return false; ":a+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { errors = "+E+"; if (vErrors !== null) { if ("+E+") vErrors.length = "+E+"; else vErrors = null; } ",t.opts.allErrors&&(a+=" } ")}else a+=" var err = ",t.createErrors!==!1?(a+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: {} ",t.opts.messages!==!1&&(a+=" , message: 'should NOT be valid' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",g&&(a+=" if (false) { ");return a}),Hg}var Fg,ST;function $ae(){return ST||(ST=1,Fg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b="errs__"+i,T=t.util.copy(t),A="";T.level++;var S="valid"+T.level,w=T.baseId,R="prevValid"+i,P="passingSchemas"+i;a+="var "+b+" = errors , "+R+" = false , "+E+" = false , "+P+" = null; ";var M=t.compositeRule;t.compositeRule=T.compositeRule=!0;var I=u;if(I)for(var N,L=-1,D=I.length-1;L<D;)N=I[L+=1],(t.opts.strictKeywords?typeof N=="object"&&Object.keys(N).length>0||N===!1:t.util.schemaHasRules(N,t.RULES.all))?(T.schema=N,T.schemaPath=d+"["+L+"]",T.errSchemaPath=h+"/"+L,a+=" "+t.validate(T)+" ",T.baseId=w):a+=" var "+S+" = true; ",L&&(a+=" if ("+S+" && "+R+") { "+E+" = false; "+P+" = ["+P+", "+L+"]; } else { ",A+="}"),a+=" if ("+S+") { "+E+" = "+R+" = true; "+P+" = "+L+"; }";return t.compositeRule=T.compositeRule=M,a+=""+A+"if (!"+E+") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { passingSchemas: "+P+" } ",t.opts.messages!==!1&&(a+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&g&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),a+="} else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; }",t.opts.allErrors&&(a+=" } "),a}),Fg}var Ug,wT;function Qae(){return wT||(wT=1,Ug=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E=t.opts.$data&&u&&u.$data,b;E?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",b="schema"+i):b=u;var T=E?"(new RegExp("+b+"))":t.usePattern(u);a+="if ( ",E&&(a+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),a+=" !"+T+".test("+m+") ) { ";var A=A||[];A.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { pattern: ",E?a+=""+b:a+=""+t.util.toQuotedString(u),a+=" } ",t.opts.messages!==!1&&(a+=` , message: 'should match pattern "`,E?a+="' + "+b+" + '":a+=""+t.util.escapeQuotes(u),a+=`"' `),t.opts.verbose&&(a+=" , schema: ",E?a+="validate.schema"+d:a+=""+t.util.toQuotedString(u),a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var S=a;return a=A.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+S+"]); ":a+=" validate.errors = ["+S+"]; return false; ":a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+="} ",g&&(a+=" else { "),a}),Ug}var Bg,CT;function Yae(){return CT||(CT=1,Bg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="errs__"+i,b=t.util.copy(t),T="";b.level++;var A="valid"+b.level,S="key"+i,w="idx"+i,R=b.dataLevel=t.dataLevel+1,P="data"+R,M="dataProperties"+i,I=Object.keys(u||{}).filter(X),N=t.schema.patternProperties||{},L=Object.keys(N).filter(X),D=t.schema.additionalProperties,B=I.length||L.length,k=D===!1,U=typeof D=="object"&&Object.keys(D).length,F=t.opts.removeAdditional,Q=k||U||F,Y=t.opts.ownProperties,te=t.baseId,V=t.schema.required;if(V&&!(t.opts.$data&&V.$data)&&V.length<t.opts.loopRequired)var J=t.util.toHash(V);function X(Se){return Se!=="__proto__"}if(a+="var "+E+" = errors;var "+A+" = true;",Y&&(a+=" var "+M+" = undefined;"),Q){if(Y?a+=" "+M+" = "+M+" || Object.keys("+m+"); for (var "+w+"=0; "+w+"<"+M+".length; "+w+"++) { var "+S+" = "+M+"["+w+"]; ":a+=" for (var "+S+" in "+m+") { ",B){if(a+=" var isAdditional"+i+" = !(false ",I.length)if(I.length>8)a+=" || validate.schema"+d+".hasOwnProperty("+S+") ";else{var se=I;if(se)for(var C,oe=-1,ge=se.length-1;oe<ge;)C=se[oe+=1],a+=" || "+S+" == "+t.util.toQuotedString(C)+" "}if(L.length){var j=L;if(j)for(var Ee,ke=-1,Z=j.length-1;ke<Z;)Ee=j[ke+=1],a+=" || "+t.usePattern(Ee)+".test("+S+") "}a+=" ); if (isAdditional"+i+") { "}if(F=="all")a+=" delete "+m+"["+S+"]; ";else{var ae=t.errorPath,Te="' + "+S+" + '";if(t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,S,t.opts.jsonPointers)),k)if(F)a+=" delete "+m+"["+S+"]; ";else{a+=" "+A+" = false; ";var Ze=h;h=t.errSchemaPath+"/additionalProperties";var Ae=Ae||[];Ae.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { additionalProperty: '"+Te+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is an invalid additional property":a+="should NOT have additional properties",a+="' "),t.opts.verbose&&(a+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var Oe=a;a=Ae.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+Oe+"]); ":a+=" validate.errors = ["+Oe+"]; return false; ":a+=" var err = "+Oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h=Ze,g&&(a+=" break; ")}else if(U)if(F=="failing"){a+=" var "+E+" = errors; ";var et=t.compositeRule;t.compositeRule=b.compositeRule=!0,b.schema=D,b.schemaPath=t.schemaPath+".additionalProperties",b.errSchemaPath=t.errSchemaPath+"/additionalProperties",b.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,S,t.opts.jsonPointers);var ct=m+"["+S+"]";b.dataPathArr[R]=S;var it=t.validate(b);b.baseId=te,t.util.varOccurences(it,P)<2?a+=" "+t.util.varReplace(it,P,ct)+" ":a+=" var "+P+" = "+ct+"; "+it+" ",a+=" if (!"+A+") { errors = "+E+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+m+"["+S+"]; } ",t.compositeRule=b.compositeRule=et}else{b.schema=D,b.schemaPath=t.schemaPath+".additionalProperties",b.errSchemaPath=t.errSchemaPath+"/additionalProperties",b.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,S,t.opts.jsonPointers);var ct=m+"["+S+"]";b.dataPathArr[R]=S;var it=t.validate(b);b.baseId=te,t.util.varOccurences(it,P)<2?a+=" "+t.util.varReplace(it,P,ct)+" ":a+=" var "+P+" = "+ct+"; "+it+" ",g&&(a+=" if (!"+A+") break; ")}t.errorPath=ae}B&&(a+=" } "),a+=" } ",g&&(a+=" if ("+A+") { ",T+="}")}var Ht=t.opts.useDefaults&&!t.compositeRule;if(I.length){var _t=I;if(_t)for(var C,st=-1,yn=_t.length-1;st<yn;){C=_t[st+=1];var bt=u[C];if(t.opts.strictKeywords?typeof bt=="object"&&Object.keys(bt).length>0||bt===!1:t.util.schemaHasRules(bt,t.RULES.all)){var W=t.util.getProperty(C),ct=m+W,ce=Ht&&bt.default!==void 0;b.schema=bt,b.schemaPath=d+W,b.errSchemaPath=h+"/"+t.util.escapeFragment(C),b.errorPath=t.util.getPath(t.errorPath,C,t.opts.jsonPointers),b.dataPathArr[R]=t.util.toQuotedString(C);var it=t.validate(b);if(b.baseId=te,t.util.varOccurences(it,P)<2){it=t.util.varReplace(it,P,ct);var pe=ct}else{var pe=P;a+=" var "+P+" = "+ct+"; "}if(ce)a+=" "+it+" ";else{if(J&&J[C]){a+=" if ( "+pe+" === undefined ",Y&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(C)+"') "),a+=") { "+A+" = false; ";var ae=t.errorPath,Ze=h,Ne=t.util.escapeQuotes(C);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(ae,C,t.opts.jsonPointers)),h=t.errSchemaPath+"/required";var Ae=Ae||[];Ae.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+Ne+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+Ne+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var Oe=a;a=Ae.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+Oe+"]); ":a+=" validate.errors = ["+Oe+"]; return false; ":a+=" var err = "+Oe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h=Ze,t.errorPath=ae,a+=" } else { "}else g?(a+=" if ( "+pe+" === undefined ",Y&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(C)+"') "),a+=") { "+A+" = true; } else { "):(a+=" if ("+pe+" !== undefined ",Y&&(a+=" && Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(C)+"') "),a+=" ) { ");a+=" "+it+" } "}}g&&(a+=" if ("+A+") { ",T+="}")}}if(L.length){var Le=L;if(Le)for(var Ee,je=-1,ie=Le.length-1;je<ie;){Ee=Le[je+=1];var bt=N[Ee];if(t.opts.strictKeywords?typeof bt=="object"&&Object.keys(bt).length>0||bt===!1:t.util.schemaHasRules(bt,t.RULES.all)){b.schema=bt,b.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(Ee),b.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(Ee),Y?a+=" "+M+" = "+M+" || Object.keys("+m+"); for (var "+w+"=0; "+w+"<"+M+".length; "+w+"++) { var "+S+" = "+M+"["+w+"]; ":a+=" for (var "+S+" in "+m+") { ",a+=" if ("+t.usePattern(Ee)+".test("+S+")) { ",b.errorPath=t.util.getPathExpr(t.errorPath,S,t.opts.jsonPointers);var ct=m+"["+S+"]";b.dataPathArr[R]=S;var it=t.validate(b);b.baseId=te,t.util.varOccurences(it,P)<2?a+=" "+t.util.varReplace(it,P,ct)+" ":a+=" var "+P+" = "+ct+"; "+it+" ",g&&(a+=" if (!"+A+") break; "),a+=" } ",g&&(a+=" else "+A+" = true; "),a+=" } ",g&&(a+=" if ("+A+") { ",T+="}")}}}return g&&(a+=" "+T+" if ("+E+" == errors) {"),a}),Bg}var Vg,RT;function Gae(){return RT||(RT=1,Vg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="errs__"+i,b=t.util.copy(t),T="";b.level++;var A="valid"+b.level;if(a+="var "+E+" = errors;",t.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:t.util.schemaHasRules(u,t.RULES.all)){b.schema=u,b.schemaPath=d,b.errSchemaPath=h;var S="key"+i,w="idx"+i,R="i"+i,P="' + "+S+" + '",M=b.dataLevel=t.dataLevel+1,I="data"+M,N="dataProperties"+i,L=t.opts.ownProperties,D=t.baseId;L&&(a+=" var "+N+" = undefined; "),L?a+=" "+N+" = "+N+" || Object.keys("+m+"); for (var "+w+"=0; "+w+"<"+N+".length; "+w+"++) { var "+S+" = "+N+"["+w+"]; ":a+=" for (var "+S+" in "+m+") { ",a+=" var startErrs"+i+" = errors; ";var B=S,k=t.compositeRule;t.compositeRule=b.compositeRule=!0;var U=t.validate(b);b.baseId=D,t.util.varOccurences(U,I)<2?a+=" "+t.util.varReplace(U,I,B)+" ":a+=" var "+I+" = "+B+"; "+U+" ",t.compositeRule=b.compositeRule=k,a+=" if (!"+A+") { for (var "+R+"=startErrs"+i+"; "+R+"<errors; "+R+"++) { vErrors["+R+"].propertyName = "+S+"; } var err = ",t.createErrors!==!1?(a+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { propertyName: '"+P+"' } ",t.opts.messages!==!1&&(a+=" , message: 'property name \\'"+P+"\\' is invalid' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&g&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; "),g&&(a+=" break; "),a+=" } }"}return g&&(a+=" "+T+" if ("+E+" == errors) {"),a}),Vg}var zg,OT;function Kae(){return OT||(OT=1,zg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b=t.opts.$data&&u&&u.$data;b&&(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ");var T="schema"+i;if(!b)if(u.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var A=[],S=u;if(S)for(var w,R=-1,P=S.length-1;R<P;){w=S[R+=1];var M=t.schema.properties[w];M&&(t.opts.strictKeywords?typeof M=="object"&&Object.keys(M).length>0||M===!1:t.util.schemaHasRules(M,t.RULES.all))||(A[A.length]=w)}}else var A=u;if(b||A.length){var I=t.errorPath,N=b||A.length>=t.opts.loopRequired,L=t.opts.ownProperties;if(g)if(a+=" var missing"+i+"; ",N){b||(a+=" var "+T+" = validate.schema"+d+"; ");var D="i"+i,B="schema"+i+"["+D+"]",k="' + "+B+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(I,B,t.opts.jsonPointers)),a+=" var "+E+" = true; ",b&&(a+=" if (schema"+i+" === undefined) "+E+" = true; else if (!Array.isArray(schema"+i+")) "+E+" = false; else {"),a+=" for (var "+D+" = 0; "+D+" < "+T+".length; "+D+"++) { "+E+" = "+m+"["+T+"["+D+"]] !== undefined ",L&&(a+=" && Object.prototype.hasOwnProperty.call("+m+", "+T+"["+D+"]) "),a+="; if (!"+E+") break; } ",b&&(a+=" } "),a+=" if (!"+E+") { ";var U=U||[];U.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+k+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+k+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var F=a;a=U.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { "}else{a+=" if ( ";var Q=A;if(Q)for(var Y,D=-1,te=Q.length-1;D<te;){Y=Q[D+=1],D&&(a+=" || ");var V=t.util.getProperty(Y),J=m+V;a+=" ( ( "+J+" === undefined ",L&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(Y)+"') "),a+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?Y:V)+") ) "}a+=") { ";var B="missing"+i,k="' + "+B+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(I,B,!0):I+" + "+B);var U=U||[];U.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+k+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+k+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var F=a;a=U.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+F+"]); ":a+=" validate.errors = ["+F+"]; return false; ":a+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } else { "}else if(N){b||(a+=" var "+T+" = validate.schema"+d+"; ");var D="i"+i,B="schema"+i+"["+D+"]",k="' + "+B+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(I,B,t.opts.jsonPointers)),b&&(a+=" if ("+T+" && !Array.isArray("+T+")) { var err = ",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+k+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+k+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+T+" !== undefined) { "),a+=" for (var "+D+" = 0; "+D+" < "+T+".length; "+D+"++) { if ("+m+"["+T+"["+D+"]] === undefined ",L&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", "+T+"["+D+"]) "),a+=") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+k+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+k+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",b&&(a+=" } ")}else{var X=A;if(X)for(var Y,se=-1,C=X.length-1;se<C;){Y=X[se+=1];var V=t.util.getProperty(Y),k=t.util.escapeQuotes(Y),J=m+V;t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(I,Y,t.opts.jsonPointers)),a+=" if ( "+J+" === undefined ",L&&(a+=" || ! Object.prototype.hasOwnProperty.call("+m+", '"+t.util.escapeQuotes(Y)+"') "),a+=") { var err = ",t.createErrors!==!1?(a+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { missingProperty: '"+k+"' } ",t.opts.messages!==!1&&(a+=" , message: '",t.opts._errorDataPathProperty?a+="is a required property":a+="should have required property \\'"+k+"\\'",a+="' "),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=I}else g&&(a+=" if (true) {");return a}),zg}var Zg,NT;function Xae(){return NT||(NT=1,Zg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m="data"+(l||""),E="valid"+i,b=t.opts.$data&&u&&u.$data,T;if(b?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",T="schema"+i):T=u,(u||b)&&t.opts.uniqueItems!==!1){b&&(a+=" var "+E+"; if ("+T+" === false || "+T+" === undefined) "+E+" = true; else if (typeof "+T+" != 'boolean') "+E+" = false; else { "),a+=" var i = "+m+".length , "+E+" = true , j; if (i > 1) { ";var A=t.schema.items&&t.schema.items.type,S=Array.isArray(A);if(!A||A=="object"||A=="array"||S&&(A.indexOf("object")>=0||A.indexOf("array")>=0))a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+m+"[i], "+m+"[j])) { "+E+" = false; break outer; } } } ";else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+m+"[i]; ";var w="checkDataType"+(S?"s":"");a+=" if ("+t.util[w](A,"item",t.opts.strictNumbers,!0)+") continue; ",S&&(a+=` if (typeof item == 'string') item = '"' + item; `),a+=" if (typeof itemIndices[item] == 'number') { "+E+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ",b&&(a+=" } "),a+=" if (!"+E+") { ";var R=R||[];R.push(a),a="",t.createErrors!==!1?(a+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { i: i, j: j } ",t.opts.messages!==!1&&(a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(a+=" , schema: ",b?a+="validate.schema"+d:a+=""+u,a+=" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),a+=" } "):a+=" {} ";var P=a;a=R.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+P+"]); ":a+=" validate.errors = ["+P+"]; return false; ":a+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",a+=" } ",g&&(a+=" else { ")}else g&&(a+=" if (true) { ");return a}),Zg}var qg,kT;function Wae(){return kT||(kT=1,qg={$ref:Dae(),allOf:Lae(),anyOf:Mae(),$comment:Iae(),const:jae(),contains:Hae(),dependencies:Fae(),enum:Uae(),format:Bae(),if:Vae(),items:zae(),maximum:gT(),minimum:gT(),maxItems:yT(),minItems:yT(),maxLength:ET(),minLength:ET(),maxProperties:_T(),minProperties:_T(),multipleOf:Zae(),not:qae(),oneOf:$ae(),pattern:Qae(),properties:Yae(),propertyNames:Gae(),required:Kae(),uniqueItems:Xae(),validate:DN()}),qg}var $g,PT;function Jae(){if(PT)return $g;PT=1;var e=Wae(),t=qu().toHash;return $g=function(){var r=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],a=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],l=["number","integer","string","array","object","boolean","null"];return r.all=t(a),r.types=t(l),r.forEach(function(u){u.rules=u.rules.map(function(d){var h;if(typeof d=="object"){var g=Object.keys(d)[0];h=d[g],d=g,h.forEach(function(E){a.push(E),r.all[E]=!0})}a.push(d);var m=r.all[d]={keyword:d,code:e[d],implements:h};return m}),r.all.$comment={keyword:"$comment",code:e.$comment},u.type&&(r.types[u.type]=u)}),r.keywords=t(a.concat(i)),r.custom={},r},$g}var Qg,DT;function ese(){if(DT)return Qg;DT=1;var e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Qg=function(t,n){for(var r=0;r<n.length;r++){t=JSON.parse(JSON.stringify(t));var a=n[r].split("/"),i=t,l;for(l=1;l<a.length;l++)i=i[a[l]];for(l=0;l<e.length;l++){var u=e[l],d=i[u];d&&(i[u]={anyOf:[d,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t},Qg}var Yg,LT;function tse(){if(LT)return Yg;LT=1;var e=sy().MissingRef;Yg=t;function t(n,r,a){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof r=="function"&&(a=r,r=void 0);var l=u(n).then(function(){var h=i._addSchema(n,void 0,r);return h.validate||d(h)});return a&&l.then(function(h){a(null,h)},a),l;function u(h){var g=h.$schema;return g&&!i.getSchema(g)?t.call(i,{$ref:g},!0):Promise.resolve()}function d(h){try{return i._compile(h)}catch(m){if(m instanceof e)return g(m);throw m}function g(m){var E=m.missingSchema;if(A(E))throw new Error("Schema "+E+" is loaded but "+m.missingRef+" cannot be resolved");var b=i._loadingSchemas[E];return b||(b=i._loadingSchemas[E]=i._opts.loadSchema(E),b.then(T,T)),b.then(function(S){if(!A(E))return u(S).then(function(){A(E)||i.addSchema(S,E,void 0,r)})}).then(function(){return d(h)});function T(){delete i._loadingSchemas[E]}function A(S){return i._refs[S]||i._schemas[S]}}}}return Yg}var Gg,MT;function nse(){return MT||(MT=1,Gg=function(t,n,r){var a=" ",i=t.level,l=t.dataLevel,u=t.schema[n],d=t.schemaPath+t.util.getProperty(n),h=t.errSchemaPath+"/"+n,g=!t.opts.allErrors,m,E="data"+(l||""),b="valid"+i,T="errs__"+i,A=t.opts.$data&&u&&u.$data,S;A?(a+=" var schema"+i+" = "+t.util.getData(u.$data,l,t.dataPathArr)+"; ",S="schema"+i):S=u;var w=this,R="definition"+i,P=w.definition,M="",I,N,L,D,B;if(A&&P.$data){B="keywordValidate"+i;var k=P.validateSchema;a+=" var "+R+" = RULES.custom['"+n+"'].definition; var "+B+" = "+R+".validate;"}else{if(D=t.useCustomRule(w,u,t.schema,t),!D)return;S="validate.schema"+d,B=D.code,I=P.compile,N=P.inline,L=P.macro}var U=B+".errors",F="i"+i,Q="ruleErr"+i,Y=P.async;if(Y&&!t.async)throw new Error("async keyword in sync schema");if(N||L||(a+=""+U+" = null;"),a+="var "+T+" = errors;var "+b+";",A&&P.$data&&(M+="}",a+=" if ("+S+" === undefined) { "+b+" = true; } else { ",k&&(M+="}",a+=" "+b+" = "+R+".validateSchema("+S+"); if ("+b+") { ")),N)P.statements?a+=" "+D.validate+" ":a+=" "+b+" = "+D.validate+"; ";else if(L){var te=t.util.copy(t),M="";te.level++;var V="valid"+te.level;te.schema=D.validate,te.schemaPath="";var J=t.compositeRule;t.compositeRule=te.compositeRule=!0;var X=t.validate(te).replace(/validate\.schema/g,B);t.compositeRule=te.compositeRule=J,a+=" "+X}else{var se=se||[];se.push(a),a="",a+=" "+B+".call( ",t.opts.passContext?a+="this":a+="self",I||P.schema===!1?a+=" , "+E+" ":a+=" , "+S+" , "+E+" , validate.schema"+t.schemaPath+" ",a+=" , (dataPath || '')",t.errorPath!='""'&&(a+=" + "+t.errorPath);var C=l?"data"+(l-1||""):"parentData",oe=l?t.dataPathArr[l]:"parentDataProperty";a+=" , "+C+" , "+oe+" , rootData ) ";var ge=a;a=se.pop(),P.errors===!1?(a+=" "+b+" = ",Y&&(a+="await "),a+=""+ge+"; "):Y?(U="customErrors"+i,a+=" var "+U+" = null; try { "+b+" = await "+ge+"; } catch (e) { "+b+" = false; if (e instanceof ValidationError) "+U+" = e.errors; else throw e; } "):a+=" "+U+" = null; "+b+" = "+ge+"; "}if(P.modifying&&(a+=" if ("+C+") "+E+" = "+C+"["+oe+"];"),a+=""+M,P.valid)g&&(a+=" if (true) { ");else{a+=" if ( ",P.valid===void 0?(a+=" !",L?a+=""+V:a+=""+b):a+=" "+!P.valid+" ",a+=") { ",m=w.keyword;var se=se||[];se.push(a),a="";var se=se||[];se.push(a),a="",t.createErrors!==!1?(a+=" { keyword: '"+(m||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { keyword: '"+w.keyword+"' } ",t.opts.messages!==!1&&(a+=` , message: 'should pass "`+w.keyword+`" keyword validation' `),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+E+" "),a+=" } "):a+=" {} ";var j=a;a=se.pop(),!t.compositeRule&&g?t.async?a+=" throw new ValidationError(["+j+"]); ":a+=" validate.errors = ["+j+"]; return false; ":a+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var Ee=a;a=se.pop(),N?P.errors?P.errors!="full"&&(a+=" for (var "+F+"="+T+"; "+F+"<errors; "+F+"++) { var "+Q+" = vErrors["+F+"]; if ("+Q+".dataPath === undefined) "+Q+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+Q+".schemaPath === undefined) { "+Q+'.schemaPath = "'+h+'"; } ',t.opts.verbose&&(a+=" "+Q+".schema = "+S+"; "+Q+".data = "+E+"; "),a+=" } "):P.errors===!1?a+=" "+Ee+" ":(a+=" if ("+T+" == errors) { "+Ee+" } else { for (var "+F+"="+T+"; "+F+"<errors; "+F+"++) { var "+Q+" = vErrors["+F+"]; if ("+Q+".dataPath === undefined) "+Q+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+Q+".schemaPath === undefined) { "+Q+'.schemaPath = "'+h+'"; } ',t.opts.verbose&&(a+=" "+Q+".schema = "+S+"; "+Q+".data = "+E+"; "),a+=" } } "):L?(a+=" var err = ",t.createErrors!==!1?(a+=" { keyword: '"+(m||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(h)+" , params: { keyword: '"+w.keyword+"' } ",t.opts.messages!==!1&&(a+=` , message: 'should pass "`+w.keyword+`" keyword validation' `),t.opts.verbose&&(a+=" , schema: validate.schema"+d+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+E+" "),a+=" } "):a+=" {} ",a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&g&&(t.async?a+=" throw new ValidationError(vErrors); ":a+=" validate.errors = vErrors; return false; ")):P.errors===!1?a+=" "+Ee+" ":(a+=" if (Array.isArray("+U+")) { if (vErrors === null) vErrors = "+U+"; else vErrors = vErrors.concat("+U+"); errors = vErrors.length; for (var "+F+"="+T+"; "+F+"<errors; "+F+"++) { var "+Q+" = vErrors["+F+"]; if ("+Q+".dataPath === undefined) "+Q+".dataPath = (dataPath || '') + "+t.errorPath+"; "+Q+'.schemaPath = "'+h+'"; ',t.opts.verbose&&(a+=" "+Q+".schema = "+S+"; "+Q+".data = "+E+"; "),a+=" } } else { "+Ee+" } "),a+=" } ",g&&(a+=" else { ")}return a}),Gg}const rse="http://json-schema.org/draft-07/schema#",ase="http://json-schema.org/draft-07/schema#",sse="Core schema meta-schema",ise={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ose=["object","boolean"],lse={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},LN={$schema:rse,$id:ase,title:sse,definitions:ise,type:ose,properties:lse,default:!0};var Kg,IT;function use(){if(IT)return Kg;IT=1;var e=LN;return Kg={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:e.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:e.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},Kg}var Xg,jT;function cse(){if(jT)return Xg;jT=1;var e=/^[a-z_$][a-z0-9_$-]*$/i,t=nse(),n=use();Xg={add:r,get:a,remove:i,validate:l};function r(u,d){var h=this.RULES;if(h.keywords[u])throw new Error("Keyword "+u+" is already defined");if(!e.test(u))throw new Error("Keyword "+u+" is not a valid identifier");if(d){this.validateKeyword(d,!0);var g=d.type;if(Array.isArray(g))for(var m=0;m<g.length;m++)b(u,g[m],d);else b(u,g,d);var E=d.metaSchema;E&&(d.$data&&this._opts.$data&&(E={anyOf:[E,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),d.validateSchema=this.compile(E,!0))}h.keywords[u]=h.all[u]=!0;function b(T,A,S){for(var w,R=0;R<h.length;R++){var P=h[R];if(P.type==A){w=P;break}}w||(w={type:A,rules:[]},h.push(w));var M={keyword:T,definition:S,custom:!0,code:t,implements:S.implements};w.rules.push(M),h.custom[T]=M}return this}function a(u){var d=this.RULES.custom[u];return d?d.definition:this.RULES.keywords[u]||!1}function i(u){var d=this.RULES;delete d.keywords[u],delete d.all[u],delete d.custom[u];for(var h=0;h<d.length;h++)for(var g=d[h].rules,m=0;m<g.length;m++)if(g[m].keyword==u){g.splice(m,1);break}return this}function l(u,d){l.errors=null;var h=this._validateKeyword=this._validateKeyword||this.compile(n,!0);if(h(u))return!0;if(l.errors=h.errors,d)throw new Error("custom keyword definition is invalid: "+this.errorsText(h.errors));return!1}return Xg}const dse="http://json-schema.org/draft-07/schema#",fse="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",hse="Meta-schema for $data reference (JSON Schema extension proposal)",mse="object",pse=["$data"],gse={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},vse=!1,yse={$schema:dse,$id:fse,description:hse,type:mse,required:pse,properties:gse,additionalProperties:vse};var Wg,HT;function bse(){if(HT)return Wg;HT=1;var e=Nae(),t=ay(),n=kae(),r=kN(),a=PN(),i=Pae(),l=Jae(),u=ese(),d=qu();Wg=T,T.prototype.validate=A,T.prototype.compile=S,T.prototype.addSchema=w,T.prototype.addMetaSchema=R,T.prototype.validateSchema=P,T.prototype.getSchema=I,T.prototype.removeSchema=D,T.prototype.addFormat=J,T.prototype.errorsText=V,T.prototype._addSchema=k,T.prototype._compile=U,T.prototype.compileAsync=tse();var h=cse();T.prototype.addKeyword=h.add,T.prototype.getKeyword=h.get,T.prototype.removeKeyword=h.remove,T.prototype.validateKeyword=h.validate;var g=sy();T.ValidationError=g.Validation,T.MissingRefError=g.MissingRef,T.$dataMetaSchema=u;var m="http://json-schema.org/draft-07/schema",E=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],b=["/properties"];function T(Z){if(!(this instanceof T))return new T(Z);Z=this._opts=d.copy(Z)||{},Ee(this),this._schemas={},this._refs={},this._fragments={},this._formats=i(Z.format),this._cache=Z.cache||new n,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=F(Z),Z.loopRequired=Z.loopRequired||1/0,Z.errorDataPath=="property"&&(Z._errorDataPathProperty=!0),Z.serialize===void 0&&(Z.serialize=a),this._metaOpts=j(this),Z.formats&&C(this),Z.keywords&&oe(this),X(this),typeof Z.meta=="object"&&this.addMetaSchema(Z.meta),Z.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),se(this)}function A(Z,ae){var Te;if(typeof Z=="string"){if(Te=this.getSchema(Z),!Te)throw new Error('no schema with key or ref "'+Z+'"')}else{var Ze=this._addSchema(Z);Te=Ze.validate||this._compile(Ze)}var Ae=Te(ae);return Te.$async!==!0&&(this.errors=Te.errors),Ae}function S(Z,ae){var Te=this._addSchema(Z,void 0,ae);return Te.validate||this._compile(Te)}function w(Z,ae,Te,Ze){if(Array.isArray(Z)){for(var Ae=0;Ae<Z.length;Ae++)this.addSchema(Z[Ae],void 0,Te,Ze);return this}var Oe=this._getId(Z);if(Oe!==void 0&&typeof Oe!="string")throw new Error("schema id must be string");return ae=t.normalizeId(ae||Oe),ge(this,ae),this._schemas[ae]=this._addSchema(Z,Te,Ze,!0),this}function R(Z,ae,Te){return this.addSchema(Z,ae,Te,!0),this}function P(Z,ae){var Te=Z.$schema;if(Te!==void 0&&typeof Te!="string")throw new Error("$schema must be a string");if(Te=Te||this._opts.defaultMeta||M(this),!Te)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var Ze=this.validate(Te,Z);if(!Ze&&ae){var Ae="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(Ae);else throw new Error(Ae)}return Ze}function M(Z){var ae=Z._opts.meta;return Z._opts.defaultMeta=typeof ae=="object"?Z._getId(ae)||ae:Z.getSchema(m)?m:void 0,Z._opts.defaultMeta}function I(Z){var ae=L(this,Z);switch(typeof ae){case"object":return ae.validate||this._compile(ae);case"string":return this.getSchema(ae);case"undefined":return N(this,Z)}}function N(Z,ae){var Te=t.schema.call(Z,{schema:{}},ae);if(Te){var Ze=Te.schema,Ae=Te.root,Oe=Te.baseId,et=e.call(Z,Ze,Ae,void 0,Oe);return Z._fragments[ae]=new r({ref:ae,fragment:!0,schema:Ze,root:Ae,baseId:Oe,validate:et}),et}}function L(Z,ae){return ae=t.normalizeId(ae),Z._schemas[ae]||Z._refs[ae]||Z._fragments[ae]}function D(Z){if(Z instanceof RegExp)return B(this,this._schemas,Z),B(this,this._refs,Z),this;switch(typeof Z){case"undefined":return B(this,this._schemas),B(this,this._refs),this._cache.clear(),this;case"string":var ae=L(this,Z);return ae&&this._cache.del(ae.cacheKey),delete this._schemas[Z],delete this._refs[Z],this;case"object":var Te=this._opts.serialize,Ze=Te?Te(Z):Z;this._cache.del(Ze);var Ae=this._getId(Z);Ae&&(Ae=t.normalizeId(Ae),delete this._schemas[Ae],delete this._refs[Ae])}return this}function B(Z,ae,Te){for(var Ze in ae){var Ae=ae[Ze];!Ae.meta&&(!Te||Te.test(Ze))&&(Z._cache.del(Ae.cacheKey),delete ae[Ze])}}function k(Z,ae,Te,Ze){if(typeof Z!="object"&&typeof Z!="boolean")throw new Error("schema should be object or boolean");var Ae=this._opts.serialize,Oe=Ae?Ae(Z):Z,et=this._cache.get(Oe);if(et)return et;Ze=Ze||this._opts.addUsedSchema!==!1;var ct=t.normalizeId(this._getId(Z));ct&&Ze&&ge(this,ct);var it=this._opts.validateSchema!==!1&&!ae,Ht;it&&!(Ht=ct&&ct==t.normalizeId(Z.$schema))&&this.validateSchema(Z,!0);var _t=t.ids.call(this,Z),st=new r({id:ct,schema:Z,localRefs:_t,cacheKey:Oe,meta:Te});return ct[0]!="#"&&Ze&&(this._refs[ct]=st),this._cache.put(Oe,st),it&&Ht&&this.validateSchema(Z,!0),st}function U(Z,ae){if(Z.compiling)return Z.validate=Ae,Ae.schema=Z.schema,Ae.errors=null,Ae.root=ae||Ae,Z.schema.$async===!0&&(Ae.$async=!0),Ae;Z.compiling=!0;var Te;Z.meta&&(Te=this._opts,this._opts=this._metaOpts);var Ze;try{Ze=e.call(this,Z.schema,ae,Z.localRefs)}catch(Oe){throw delete Z.validate,Oe}finally{Z.compiling=!1,Z.meta&&(this._opts=Te)}return Z.validate=Ze,Z.refs=Ze.refs,Z.refVal=Ze.refVal,Z.root=Ze.root,Ze;function Ae(){var Oe=Z.validate,et=Oe.apply(this,arguments);return Ae.errors=Oe.errors,et}}function F(Z){switch(Z.schemaId){case"auto":return te;case"id":return Q;default:return Y}}function Q(Z){return Z.$id&&this.logger.warn("schema $id ignored",Z.$id),Z.id}function Y(Z){return Z.id&&this.logger.warn("schema id ignored",Z.id),Z.$id}function te(Z){if(Z.$id&&Z.id&&Z.$id!=Z.id)throw new Error("schema $id is different from id");return Z.$id||Z.id}function V(Z,ae){if(Z=Z||this.errors,!Z)return"No errors";ae=ae||{};for(var Te=ae.separator===void 0?", ":ae.separator,Ze=ae.dataVar===void 0?"data":ae.dataVar,Ae="",Oe=0;Oe<Z.length;Oe++){var et=Z[Oe];et&&(Ae+=Ze+et.dataPath+" "+et.message+Te)}return Ae.slice(0,-Te.length)}function J(Z,ae){return typeof ae=="string"&&(ae=new RegExp(ae)),this._formats[Z]=ae,this}function X(Z){var ae;if(Z._opts.$data&&(ae=yse,Z.addMetaSchema(ae,ae.$id,!0)),Z._opts.meta!==!1){var Te=LN;Z._opts.$data&&(Te=u(Te,b)),Z.addMetaSchema(Te,m,!0),Z._refs["http://json-schema.org/schema"]=m}}function se(Z){var ae=Z._opts.schemas;if(ae)if(Array.isArray(ae))Z.addSchema(ae);else for(var Te in ae)Z.addSchema(ae[Te],Te)}function C(Z){for(var ae in Z._opts.formats){var Te=Z._opts.formats[ae];Z.addFormat(ae,Te)}}function oe(Z){for(var ae in Z._opts.keywords){var Te=Z._opts.keywords[ae];Z.addKeyword(ae,Te)}}function ge(Z,ae){if(Z._schemas[ae]||Z._refs[ae])throw new Error('schema with key or id "'+ae+'" already exists')}function j(Z){for(var ae=d.copy(Z._opts),Te=0;Te<E.length;Te++)delete ae[E[Te]];return ae}function Ee(Z){var ae=Z._opts.logger;if(ae===!1)Z.logger={log:ke,warn:ke,error:ke};else{if(ae===void 0&&(ae=console),!(typeof ae=="object"&&ae.log&&ae.warn&&ae.error))throw new Error("logger must implement log, warn and error methods");Z.logger=ae}}function ke(){}return Wg}var Ese=bse();const xse=Cu(Ese);class _se extends Aae{constructor(t,n){var r;super(n),this._clientInfo=t,this._cachedToolOutputValidators=new Map,this._capabilities=(r=n?.capabilities)!==null&&r!==void 0?r:{},this._ajv=new xse}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=Sae(this._capabilities,t)}assertCapability(t,n){var r;if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r[t]))throw new Error(`Server does not support ${t} (required for ${n})`)}async connect(t,n){if(await super.connect(t),t.sessionId===void 0)try{const r=await this.request({method:"initialize",params:{protocolVersion:Qh,capabilities:this._capabilities,clientInfo:this._clientInfo}},vN,n);if(r===void 0)throw new Error(`Server sent invalid initialize result: ${r}`);if(!Are.includes(r.protocolVersion))throw new Error(`Server's protocol version is not supported: ${r.protocolVersion}`);this._serverCapabilities=r.capabilities,this._serverVersion=r.serverInfo,t.setProtocolVersion&&t.setProtocolVersion(r.protocolVersion),this._instructions=r.instructions,await this.notification({method:"notifications/initialized"})}catch(r){throw this.close(),r}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(t){var n,r,a,i,l;switch(t){case"logging/setLevel":if(!(!((n=this._serverCapabilities)===null||n===void 0)&&n.logging))throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!(!((r=this._serverCapabilities)===null||r===void 0)&&r.prompts))throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!(!((a=this._serverCapabilities)===null||a===void 0)&&a.resources))throw new Error(`Server does not support resources (required for ${t})`);if(t==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${t})`);break;case"tools/call":case"tools/list":if(!(!((i=this._serverCapabilities)===null||i===void 0)&&i.tools))throw new Error(`Server does not support tools (required for ${t})`);break;case"completion/complete":if(!(!((l=this._serverCapabilities)===null||l===void 0)&&l.completions))throw new Error(`Server does not support completions (required for ${t})`);break}}assertNotificationCapability(t){var n;switch(t){case"notifications/roots/list_changed":if(!(!((n=this._capabilities.roots)===null||n===void 0)&&n.listChanged))throw new Error(`Client does not support roots list changed notifications (required for ${t})`);break}}assertRequestHandlerCapability(t){switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${t})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${t})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${t})`);break}}async ping(t){return this.request({method:"ping"},lu,t)}async complete(t,n){return this.request({method:"completion/complete",params:t},NN,n)}async setLoggingLevel(t,n){return this.request({method:"logging/setLevel",params:{level:t}},lu,n)}async getPrompt(t,n){return this.request({method:"prompts/get",params:t},CN,n)}async listPrompts(t,n){return this.request({method:"prompts/list",params:t},SN,n)}async listResources(t,n){return this.request({method:"resources/list",params:t},_N,n)}async listResourceTemplates(t,n){return this.request({method:"resources/templates/list",params:t},TN,n)}async readResource(t,n){return this.request({method:"resources/read",params:t},AN,n)}async subscribeResource(t,n){return this.request({method:"resources/subscribe",params:t},lu,n)}async unsubscribeResource(t,n){return this.request({method:"resources/unsubscribe",params:t},lu,n)}async callTool(t,n=ny,r){const a=await this.request({method:"tools/call",params:t},n,r),i=this.getToolOutputValidator(t.name);if(i){if(!a.structuredContent&&!a.isError)throw new Ji(vs.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`);if(a.structuredContent)try{if(!i(a.structuredContent))throw new Ji(vs.InvalidParams,`Structured content does not match the tool's output schema: ${this._ajv.errorsText(i.errors)}`)}catch(l){throw l instanceof Ji?l:new Ji(vs.InvalidParams,`Failed to validate structured content: ${l instanceof Error?l.message:String(l)}`)}}return a}cacheToolOutputSchemas(t){this._cachedToolOutputValidators.clear();for(const n of t)if(n.outputSchema)try{const r=this._ajv.compile(n.outputSchema);this._cachedToolOutputValidators.set(n.name,r)}catch{}}getToolOutputValidator(t){return this._cachedToolOutputValidators.get(t)}async listTools(t,n){const r=await this.request({method:"tools/list",params:t},RN,n);return this.cacheToolOutputSchemas(r.tools),r}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}class FT extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function Jg(e){}function Tse(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=Jg,onError:n=Jg,onRetry:r=Jg,onComment:a}=e;let i="",l=!0,u,d="",h="";function g(A){const S=l?A.replace(/^\xEF\xBB\xBF/,""):A,[w,R]=Ase(`${i}${S}`);for(const P of w)m(P);i=R,l=!1}function m(A){if(A===""){b();return}if(A.startsWith(":")){a&&a(A.slice(A.startsWith(": ")?2:1));return}const S=A.indexOf(":");if(S!==-1){const w=A.slice(0,S),R=A[S+1]===" "?2:1,P=A.slice(S+R);E(w,P,A);return}E(A,"",A)}function E(A,S,w){switch(A){case"event":h=S;break;case"data":d=`${d}${S}
|
|
150
|
+
`;break;case"id":u=S.includes("\0")?void 0:S;break;case"retry":/^\d+$/.test(S)?r(parseInt(S,10)):n(new FT(`Invalid \`retry\` value: "${S}"`,{type:"invalid-retry",value:S,line:w}));break;default:n(new FT(`Unknown field "${A.length>20?`${A.slice(0,20)}…`:A}"`,{type:"unknown-field",field:A,value:S,line:w}));break}}function b(){d.length>0&&t({id:u,event:h||void 0,data:d.endsWith(`
|
|
151
|
+
`)?d.slice(0,-1):d}),u=void 0,d="",h=""}function T(A={}){i&&A.consume&&m(i),l=!0,u=void 0,d="",h="",i=""}return{feed:g,reset:T}}function Ase(e){const t=[];let n="",r=0;for(;r<e.length;){const a=e.indexOf("\r",r),i=e.indexOf(`
|
|
152
|
+
`,r);let l=-1;if(a!==-1&&i!==-1?l=Math.min(a,i):a!==-1?l=a:i!==-1&&(l=i),l===-1){n=e.slice(r);break}else{const u=e.slice(r,l);t.push(u),r=l+1,e[r-1]==="\r"&&e[r]===`
|
|
153
|
+
`&&r++}}return[t,n]}class UT extends Event{constructor(t,n){var r,a;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(a=n?.message)!=null?a:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(BT(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(BT(this),n)}}function Sse(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function m6(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(m6).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${m6(e.cause)}`:e.message:`${e}`}function BT(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var MN=e=>{throw TypeError(e)},iy=(e,t,n)=>t.has(e)||MN("Cannot "+n),Dt=(e,t,n)=>(iy(e,t,"read from private field"),n?n.call(e):t.get(e)),rr=(e,t,n)=>t.has(e)?MN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),wn=(e,t,n,r)=>(iy(e,t,"write to private field"),t.set(e,n),n),Js=(e,t,n)=>(iy(e,t,"access private method"),n),qr,Ho,nu,Xf,I1,g0,uu,v0,Xi,ru,vu,au,a0,Va,p6,g6,v6,VT,y6,b6,s0,E6,x6;class Wf extends EventTarget{constructor(t,n){var r,a;super(),rr(this,Va),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,rr(this,qr),rr(this,Ho),rr(this,nu),rr(this,Xf),rr(this,I1),rr(this,g0),rr(this,uu),rr(this,v0,null),rr(this,Xi),rr(this,ru),rr(this,vu,null),rr(this,au,null),rr(this,a0,null),rr(this,g6,async i=>{var l;Dt(this,ru).reset();const{body:u,redirected:d,status:h,headers:g}=i;if(h===204){Js(this,Va,s0).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(d?wn(this,nu,new URL(i.url)):wn(this,nu,void 0),h!==200){Js(this,Va,s0).call(this,`Non-200 status code (${h})`,h);return}if(!(g.get("content-type")||"").startsWith("text/event-stream")){Js(this,Va,s0).call(this,'Invalid content type, expected "text/event-stream"',h);return}if(Dt(this,qr)===this.CLOSED)return;wn(this,qr,this.OPEN);const m=new Event("open");if((l=Dt(this,a0))==null||l.call(this,m),this.dispatchEvent(m),typeof u!="object"||!u||!("getReader"in u)){Js(this,Va,s0).call(this,"Invalid response body, expected a web ReadableStream",h),this.close();return}const E=new TextDecoder,b=u.getReader();let T=!0;do{const{done:A,value:S}=await b.read();S&&Dt(this,ru).feed(E.decode(S,{stream:!A})),A&&(T=!1,Dt(this,ru).reset(),Js(this,Va,E6).call(this))}while(T)}),rr(this,v6,i=>{wn(this,Xi,void 0),!(i.name==="AbortError"||i.type==="aborted")&&Js(this,Va,E6).call(this,m6(i))}),rr(this,y6,i=>{typeof i.id=="string"&&wn(this,v0,i.id);const l=new MessageEvent(i.event||"message",{data:i.data,origin:Dt(this,nu)?Dt(this,nu).origin:Dt(this,Ho).origin,lastEventId:i.id||""});Dt(this,au)&&(!i.event||i.event==="message")&&Dt(this,au).call(this,l),this.dispatchEvent(l)}),rr(this,b6,i=>{wn(this,g0,i)}),rr(this,x6,()=>{wn(this,uu,void 0),Dt(this,qr)===this.CONNECTING&&Js(this,Va,p6).call(this)});try{if(t instanceof URL)wn(this,Ho,t);else if(typeof t=="string")wn(this,Ho,new URL(t,wse()));else throw new Error("Invalid URL")}catch{throw Sse("An invalid or illegal string was specified")}wn(this,ru,Tse({onEvent:Dt(this,y6),onRetry:Dt(this,b6)})),wn(this,qr,this.CONNECTING),wn(this,g0,3e3),wn(this,I1,(r=n?.fetch)!=null?r:globalThis.fetch),wn(this,Xf,(a=n?.withCredentials)!=null?a:!1),Js(this,Va,p6).call(this)}get readyState(){return Dt(this,qr)}get url(){return Dt(this,Ho).href}get withCredentials(){return Dt(this,Xf)}get onerror(){return Dt(this,vu)}set onerror(t){wn(this,vu,t)}get onmessage(){return Dt(this,au)}set onmessage(t){wn(this,au,t)}get onopen(){return Dt(this,a0)}set onopen(t){wn(this,a0,t)}addEventListener(t,n,r){const a=n;super.addEventListener(t,a,r)}removeEventListener(t,n,r){const a=n;super.removeEventListener(t,a,r)}close(){Dt(this,uu)&&clearTimeout(Dt(this,uu)),Dt(this,qr)!==this.CLOSED&&(Dt(this,Xi)&&Dt(this,Xi).abort(),wn(this,qr,this.CLOSED),wn(this,Xi,void 0))}}qr=new WeakMap,Ho=new WeakMap,nu=new WeakMap,Xf=new WeakMap,I1=new WeakMap,g0=new WeakMap,uu=new WeakMap,v0=new WeakMap,Xi=new WeakMap,ru=new WeakMap,vu=new WeakMap,au=new WeakMap,a0=new WeakMap,Va=new WeakSet,p6=function(){wn(this,qr,this.CONNECTING),wn(this,Xi,new AbortController),Dt(this,I1)(Dt(this,Ho),Js(this,Va,VT).call(this)).then(Dt(this,g6)).catch(Dt(this,v6))},g6=new WeakMap,v6=new WeakMap,VT=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Dt(this,v0)?{"Last-Event-ID":Dt(this,v0)}:void 0},cache:"no-store",signal:(e=Dt(this,Xi))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},y6=new WeakMap,b6=new WeakMap,s0=function(e,t){var n;Dt(this,qr)!==this.CLOSED&&wn(this,qr,this.CLOSED);const r=new UT("error",{code:t,message:e});(n=Dt(this,vu))==null||n.call(this,r),this.dispatchEvent(r)},E6=function(e,t){var n;if(Dt(this,qr)===this.CLOSED)return;wn(this,qr,this.CONNECTING);const r=new UT("error",{code:t,message:e});(n=Dt(this,vu))==null||n.call(this,r),this.dispatchEvent(r),wn(this,uu,setTimeout(Dt(this,x6),Dt(this,g0)))},x6=new WeakMap,Wf.CONNECTING=0,Wf.OPEN=1,Wf.CLOSED=2;function wse(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}let oy;oy=globalThis.crypto;async function Cse(e){return(await oy).getRandomValues(new Uint8Array(e))}async function Rse(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";let n="";const r=await Cse(e);for(let a=0;a<e;a++){const i=r[a]%t.length;n+=t[i]}return n}async function Ose(e){return await Rse(e)}async function Nse(e){const t=await(await oy).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function kse(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await Ose(e),n=await Nse(t);return{code_verifier:t,code_challenge:n}}const Pse=Ve({resource:ue().url(),authorization_servers:We(ue().url()).optional(),jwks_uri:ue().url().optional(),scopes_supported:We(ue()).optional(),bearer_methods_supported:We(ue()).optional(),resource_signing_alg_values_supported:We(ue()).optional(),resource_name:ue().optional(),resource_documentation:ue().optional(),resource_policy_uri:ue().url().optional(),resource_tos_uri:ue().url().optional(),tls_client_certificate_bound_access_tokens:ar().optional(),authorization_details_types_supported:We(ue()).optional(),dpop_signing_alg_values_supported:We(ue()).optional(),dpop_bound_access_tokens_required:ar().optional()}).passthrough(),IN=Ve({issuer:ue(),authorization_endpoint:ue(),token_endpoint:ue(),registration_endpoint:ue().optional(),scopes_supported:We(ue()).optional(),response_types_supported:We(ue()),response_modes_supported:We(ue()).optional(),grant_types_supported:We(ue()).optional(),token_endpoint_auth_methods_supported:We(ue()).optional(),token_endpoint_auth_signing_alg_values_supported:We(ue()).optional(),service_documentation:ue().optional(),revocation_endpoint:ue().optional(),revocation_endpoint_auth_methods_supported:We(ue()).optional(),revocation_endpoint_auth_signing_alg_values_supported:We(ue()).optional(),introspection_endpoint:ue().optional(),introspection_endpoint_auth_methods_supported:We(ue()).optional(),introspection_endpoint_auth_signing_alg_values_supported:We(ue()).optional(),code_challenge_methods_supported:We(ue()).optional()}).passthrough(),Dse=Ve({issuer:ue(),authorization_endpoint:ue(),token_endpoint:ue(),userinfo_endpoint:ue().optional(),jwks_uri:ue(),registration_endpoint:ue().optional(),scopes_supported:We(ue()).optional(),response_types_supported:We(ue()),response_modes_supported:We(ue()).optional(),grant_types_supported:We(ue()).optional(),acr_values_supported:We(ue()).optional(),subject_types_supported:We(ue()),id_token_signing_alg_values_supported:We(ue()),id_token_encryption_alg_values_supported:We(ue()).optional(),id_token_encryption_enc_values_supported:We(ue()).optional(),userinfo_signing_alg_values_supported:We(ue()).optional(),userinfo_encryption_alg_values_supported:We(ue()).optional(),userinfo_encryption_enc_values_supported:We(ue()).optional(),request_object_signing_alg_values_supported:We(ue()).optional(),request_object_encryption_alg_values_supported:We(ue()).optional(),request_object_encryption_enc_values_supported:We(ue()).optional(),token_endpoint_auth_methods_supported:We(ue()).optional(),token_endpoint_auth_signing_alg_values_supported:We(ue()).optional(),display_values_supported:We(ue()).optional(),claim_types_supported:We(ue()).optional(),claims_supported:We(ue()).optional(),service_documentation:ue().optional(),claims_locales_supported:We(ue()).optional(),ui_locales_supported:We(ue()).optional(),claims_parameter_supported:ar().optional(),request_parameter_supported:ar().optional(),request_uri_parameter_supported:ar().optional(),require_request_uri_registration:ar().optional(),op_policy_uri:ue().optional(),op_tos_uri:ue().optional()}).passthrough(),Lse=Dse.merge(IN.pick({code_challenge_methods_supported:!0})),jN=Ve({access_token:ue(),id_token:ue().optional(),token_type:ue(),expires_in:dr().optional(),scope:ue().optional(),refresh_token:ue().optional()}).strip(),Mse=Ve({error:ue(),error_description:ue().optional(),error_uri:ue().optional()}),Ise=Ve({redirect_uris:We(ue()).refine(e=>e.every(t=>URL.canParse(t)),{message:"redirect_uris must contain valid URLs"}),token_endpoint_auth_method:ue().optional(),grant_types:We(ue()).optional(),response_types:We(ue()).optional(),client_name:ue().optional(),client_uri:ue().optional(),logo_uri:ue().optional(),scope:ue().optional(),contacts:We(ue()).optional(),tos_uri:ue().optional(),policy_uri:ue().optional(),jwks_uri:ue().optional(),jwks:Uee().optional(),software_id:ue().optional(),software_version:ue().optional(),software_statement:ue().optional()}).strip(),jse=Ve({client_id:ue(),client_secret:ue().optional(),client_id_issued_at:dr().optional(),client_secret_expires_at:dr().optional()}).strip(),Hse=Ise.merge(jse);Ve({error:ue(),error_description:ue().optional()}).strip();Ve({token:ue(),token_type_hint:ue().optional()}).strip();function Fse(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function Use({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class br extends Error{constructor(t,n){super(t),this.errorUri=n,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class _6 extends br{}_6.errorCode="invalid_request";class j1 extends br{}j1.errorCode="invalid_client";class H1 extends br{}H1.errorCode="invalid_grant";class F1 extends br{}F1.errorCode="unauthorized_client";class T6 extends br{}T6.errorCode="unsupported_grant_type";class A6 extends br{}A6.errorCode="invalid_scope";class S6 extends br{}S6.errorCode="access_denied";class wu extends br{}wu.errorCode="server_error";class w6 extends br{}w6.errorCode="temporarily_unavailable";class C6 extends br{}C6.errorCode="unsupported_response_type";class R6 extends br{}R6.errorCode="unsupported_token_type";class O6 extends br{}O6.errorCode="invalid_token";class N6 extends br{}N6.errorCode="method_not_allowed";class k6 extends br{}k6.errorCode="too_many_requests";class P6 extends br{}P6.errorCode="invalid_client_metadata";class D6 extends br{}D6.errorCode="insufficient_scope";const Bse={[_6.errorCode]:_6,[j1.errorCode]:j1,[H1.errorCode]:H1,[F1.errorCode]:F1,[T6.errorCode]:T6,[A6.errorCode]:A6,[S6.errorCode]:S6,[wu.errorCode]:wu,[w6.errorCode]:w6,[C6.errorCode]:C6,[R6.errorCode]:R6,[O6.errorCode]:O6,[N6.errorCode]:N6,[k6.errorCode]:k6,[P6.errorCode]:P6,[D6.errorCode]:D6};class Jc extends Error{constructor(t){super(t??"Unauthorized")}}function HN(e,t){const n=e.client_secret!==void 0;return t.length===0?n?"client_secret_post":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function FN(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":Vse(a,i,n);return;case"client_secret_post":zse(a,i,r);return;case"none":Zse(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function Vse(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function zse(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function Zse(e,t){t.set("client_id",e)}async function ly(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=Mse.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:l}=r,u=Bse[a]||wu;return new u(i||"",l)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new wu(a)}}async function e8(e,t){var n,r;try{return await t8(e,t)}catch(a){if(a instanceof j1||a instanceof F1)return await((n=e.invalidateCredentials)===null||n===void 0?void 0:n.call(e,"all")),await t8(e,t);if(a instanceof H1)return await((r=e.invalidateCredentials)===null||r===void 0?void 0:r.call(e,"tokens")),await t8(e,t);throw a}}async function t8(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){let l,u;try{l=await $se(t,{resourceMetadataUrl:a},i),l.authorization_servers&&l.authorization_servers.length>0&&(u=l.authorization_servers[0])}catch{}u||(u=t);const d=await qse(t,e,l),h=await Xse(u,{fetchFn:i});let g=await Promise.resolve(e.clientInformation());if(!g){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const A=await tie(u,{metadata:h,clientMetadata:e.clientMetadata});await e.saveClientInformation(A),g=A}if(n!==void 0){const A=await e.codeVerifier(),S=await Jse(u,{metadata:h,clientInformation:g,authorizationCode:n,codeVerifier:A,redirectUri:e.redirectUrl,resource:d,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(S),"AUTHORIZED"}const m=await e.tokens();if(m?.refresh_token)try{const A=await eie(u,{metadata:h,clientInformation:g,refreshToken:m.refresh_token,resource:d,addClientAuthentication:e.addClientAuthentication});return await e.saveTokens(A),"AUTHORIZED"}catch(A){if(!(!(A instanceof br)||A instanceof wu))throw A}const E=e.state?await e.state():void 0,{authorizationUrl:b,codeVerifier:T}=await Wse(u,{metadata:h,clientInformation:g,state:E,redirectUrl:e.redirectUrl,scope:r||e.clientMetadata.scope,resource:d});return await e.saveCodeVerifier(T),await e.redirectToAuthorization(b),"REDIRECT"}async function qse(e,t,n){const r=Fse(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!Use({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function zT(e){const t=e.headers.get("WWW-Authenticate");if(!t)return;const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return;const i=/resource_metadata="([^"]*)"/.exec(t);if(i)try{return new URL(i[1])}catch{return}}async function $se(e,t,n=fetch){const r=await Gse(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return Pse.parse(await r.json())}async function uy(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?uy(e,void 0,n):void 0;throw r}}function Qse(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function ZT(e,t,n=fetch){return await uy(e,{"MCP-Protocol-Version":t},n)}function Yse(e,t){return!e||e.status===404&&t!=="/"}async function Gse(e,t,n,r){var a,i;const l=new URL(e),u=(a=r?.protocolVersion)!==null&&a!==void 0?a:Qh;let d;if(r?.metadataUrl)d=new URL(r.metadataUrl);else{const g=Qse(t,l.pathname);d=new URL(g,(i=r?.metadataServerUrl)!==null&&i!==void 0?i:l),d.search=l.search}let h=await ZT(d,u,n);if(!r?.metadataUrl&&Yse(h,l.pathname)){const g=new URL(`/.well-known/${t}`,l);h=await ZT(g,u,n)}return h}function Kse(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function Xse(e,{fetchFn:t=fetch,protocolVersion:n=Qh}={}){var r;const a={"MCP-Protocol-Version":n},i=Kse(e);for(const{url:l,type:u}of i){const d=await uy(l,a,t);if(!d)throw new Error(`CORS error trying to load ${u==="oauth"?"OAuth":"OpenID provider"} metadata from ${l}`);if(!d.ok){if(d.status>=400&&d.status<500)continue;throw new Error(`HTTP ${d.status} trying to load ${u==="oauth"?"OAuth":"OpenID provider"} metadata from ${l}`)}if(u==="oauth")return IN.parse(await d.json());{const h=Lse.parse(await d.json());if(!(!((r=h.code_challenge_methods_supported)===null||r===void 0)&&r.includes("S256")))throw new Error(`Incompatible OIDC provider at ${l}: does not support S256 code challenge method required by MCP specification`);return h}}}async function Wse(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:l}){const u="code",d="S256";let h;if(t){if(h=new URL(t.authorization_endpoint),!t.response_types_supported.includes(u))throw new Error(`Incompatible auth server: does not support response type ${u}`);if(!t.code_challenge_methods_supported||!t.code_challenge_methods_supported.includes(d))throw new Error(`Incompatible auth server: does not support code challenge method ${d}`)}else h=new URL("/authorize",e);const g=await kse(),m=g.code_verifier,E=g.code_challenge;return h.searchParams.set("response_type",u),h.searchParams.set("client_id",n.client_id),h.searchParams.set("code_challenge",E),h.searchParams.set("code_challenge_method",d),h.searchParams.set("redirect_uri",String(r)),i&&h.searchParams.set("state",i),a&&h.searchParams.set("scope",a),a?.includes("offline_access")&&h.searchParams.append("prompt","consent"),l&&h.searchParams.set("resource",l.href),{authorizationUrl:h,codeVerifier:m}}async function Jse(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:l,addClientAuthentication:u,fetchFn:d}){var h;const g="authorization_code",m=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e);if(t?.grant_types_supported&&!t.grant_types_supported.includes(g))throw new Error(`Incompatible auth server: does not support grant type ${g}`);const E=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"}),b=new URLSearchParams({grant_type:g,code:r,code_verifier:a,redirect_uri:String(i)});if(u)u(E,b,e,t);else{const A=(h=t?.token_endpoint_auth_methods_supported)!==null&&h!==void 0?h:[],S=HN(n,A);FN(S,n,E,b)}l&&b.set("resource",l.href);const T=await(d??fetch)(m,{method:"POST",headers:E,body:b});if(!T.ok)throw await ly(T);return jN.parse(await T.json())}async function eie(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:l}){var u;const d="refresh_token";let h;if(t){if(h=new URL(t.token_endpoint),t.grant_types_supported&&!t.grant_types_supported.includes(d))throw new Error(`Incompatible auth server: does not support grant type ${d}`)}else h=new URL("/token",e);const g=new Headers({"Content-Type":"application/x-www-form-urlencoded"}),m=new URLSearchParams({grant_type:d,refresh_token:r});if(i)i(g,m,e,t);else{const b=(u=t?.token_endpoint_auth_methods_supported)!==null&&u!==void 0?u:[],T=HN(n,b);FN(T,n,g,m)}a&&m.set("resource",a.href);const E=await(l??fetch)(h,{method:"POST",headers:g,body:m});if(!E.ok)throw await ly(E);return jN.parse({refresh_token:r,...await E.json()})}async function tie(e,{metadata:t,clientMetadata:n,fetchFn:r}){let a;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");a=new URL(t.registration_endpoint)}else a=new URL("/register",e);const i=await(r??fetch)(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw await ly(i);return Hse.parse(await i.json())}class nie extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class rie{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch}async _authThenStart(){var t;if(!this._authProvider)throw new Jc("No auth provider");let n;try{n=await e8(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})}catch(r){throw(t=this.onerror)===null||t===void 0||t.call(this,r),r}if(n!=="AUTHORIZED")throw new Jc;return await this._startOrAuth()}async _commonHeaders(){var t;const n={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(n.Authorization=`Bearer ${r.access_token}`)}return this._protocolVersion&&(n["mcp-protocol-version"]=this._protocolVersion),new Headers({...n,...(t=this._requestInit)===null||t===void 0?void 0:t.headers})}_startOrAuth(){var t,n,r;const a=(r=(n=(t=this===null||this===void 0?void 0:this._eventSourceInit)===null||t===void 0?void 0:t.fetch)!==null&&n!==void 0?n:this._fetch)!==null&&r!==void 0?r:fetch;return new Promise((i,l)=>{this._eventSource=new Wf(this._url.href,{...this._eventSourceInit,fetch:async(u,d)=>{const h=await this._commonHeaders();h.set("Accept","text/event-stream");const g=await a(u,{...d,headers:h});return g.status===401&&g.headers.has("www-authenticate")&&(this._resourceMetadataUrl=zT(g)),g}}),this._abortController=new AbortController,this._eventSource.onerror=u=>{var d;if(u.code===401&&this._authProvider){this._authThenStart().then(i,l);return}const h=new nie(u.code,u.message,u);l(h),(d=this.onerror)===null||d===void 0||d.call(this,h)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",u=>{var d;const h=u;try{if(this._endpoint=new URL(h.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(g){l(g),(d=this.onerror)===null||d===void 0||d.call(this,g),this.close();return}i()}),this._eventSource.onmessage=u=>{var d,h;const g=u;let m;try{m=Ore.parse(JSON.parse(g.data))}catch(E){(d=this.onerror)===null||d===void 0||d.call(this,E);return}(h=this.onmessage)===null||h===void 0||h.call(this,m)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new Jc("No auth provider");if(await e8(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new Jc("Failed to authorize")}async close(){var t,n,r;(t=this._abortController)===null||t===void 0||t.abort(),(n=this._eventSource)===null||n===void 0||n.close(),(r=this.onclose)===null||r===void 0||r.call(this)}async send(t){var n,r,a;if(!this._endpoint)throw new Error("Not connected");try{const i=await this._commonHeaders();i.set("content-type","application/json");const l={...this._requestInit,method:"POST",headers:i,body:JSON.stringify(t),signal:(n=this._abortController)===null||n===void 0?void 0:n.signal},u=await((r=this._fetch)!==null&&r!==void 0?r:fetch)(this._endpoint,l);if(!u.ok){if(u.status===401&&this._authProvider){if(this._resourceMetadataUrl=zT(u),await e8(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,fetchFn:this._fetch})!=="AUTHORIZED")throw new Jc;return this.send(t)}const d=await u.text().catch(()=>null);throw new Error(`Error POSTing to endpoint (HTTP ${u.status}): ${d}`)}}catch(i){throw(a=this.onerror)===null||a===void 0||a.call(this,i),i}}setProtocolVersion(t){this._protocolVersion=t}}function UN(e,t){const[n,r]=p.useState(!0),[a,i]=p.useState([]);return p.useEffect(()=>{const l=new _se({name:"director",version:"0.0.1"}),u=new rie(new URL(`${Iu}/${e}/sse`));return l.connect(u).then(()=>{Promise.all([l.listTools().then(({tools:d})=>{i(d.filter(h=>t?h.description?.startsWith(`[${t}]`):!0))})]).then(()=>{r(!1),l.close()})}),()=>{l.close()}},[e,t]),{isLoading:n,tools:a}}function BN(e){const{data:t,isLoading:n,error:r}=vn.store.get.useQuery({proxyId:e},{throwOnError:!1,retry:!1});return{workspace:t,isWorkspaceLoading:n,workspaceError:r}}const aie=()=>{const{workspaceId:e}=yv(),t=Cs();if(!e)throw new Error("Workspace ID is required");const{workspace:n,isWorkspaceLoading:r,workspaceError:a}=BN(e),{data:i,isLoading:l}=TO(e),{changeInstallState:u,isPending:d}=Tre(e,{onSuccess:(h,g)=>{ur({title:g?"Proxy installed":"Proxy uninstalled",description:g?"This proxy was successfully installed":"This proxy was successfully uninstalled"})},onError:(h,g)=>{ur({title:"Error",description:g?"Failed to install this proxy":"Failed to uninstall this proxy"})}});return r?v.jsx(tN,{}):a||!n?v.jsx(hh,{icon:"dead-smiley",fullScreen:!0,title:"Unexpected Error",subtitle:a?.message}):v.jsxs(v.Fragment,{children:[v.jsx(mo,{breadcrumbs:[{title:"Workspaces"},{title:e}],children:v.jsx(iie,{workspace:n})}),v.jsx(hi,{children:v.jsxs(Ja,{size:"lg",children:[v.jsx(cre,{workspace:n}),v.jsx(si,{}),v.jsx(ure,{workspace:n,gatewayBaseUrl:Iu,clients:i??[],isClientsLoading:l,onChangeInstall:async(h,g)=>{await u(h,g)},isChanging:d}),v.jsx(si,{}),v.jsx(dre,{workspace:n,onLibraryClick:()=>t("/library"),onServerClick:h=>t(`/${e}/${h}`)}),v.jsx(si,{}),v.jsx(sie,{workspace:n})]})})]})};function sie({workspace:e}){const[t,n]=p.useState(null),{tools:r,isLoading:a}=UN(e.id);return v.jsxs(v.Fragment,{children:[v.jsx(uN,{tools:r,toolsLoading:a,onToolClick:i=>n(i)}),t&&v.jsx(IO,{tool:t,mcpName:e.name,onClose:()=>n(null)})]})}function iie({workspace:e}){const t=Cs(),[n,r]=p.useState(!1),[a,i]=p.useState(!1),l=vn.useUtils(),u=vn.store.update.useMutation({onSuccess:async()=>{await l.store.getAll.invalidate(),await l.store.get.invalidate({proxyId:e.id}),ur({title:"Proxy updated",description:"This proxy was successfully updated."}),r(!1)}}),d=vn.store.delete.useMutation({onSuccess:async()=>{await l.store.getAll.invalidate(),ur({title:"Proxy deleted",description:"This proxy was successfully deleted."}),i(!1),t("/")}}),h=async m=>{await u.mutateAsync({proxyId:e.id,attributes:m})},g=async()=>{await d.mutateAsync({proxyId:e.id})};return v.jsxs(v.Fragment,{children:[v.jsx(Yne,{onSettingsClick:()=>r(!0),onDeleteClick:()=>i(!0)}),v.jsx(Kne,{proxy:e,onSubmit:h,isSubmitting:u.isPending,open:n,onOpenChange:r}),v.jsx(Gne,{onConfirm:g,open:a,onOpenChange:i})]})}function oie({children:e,onConfirm:t,open:n,onOpenChange:r}){return v.jsx(eN,{title:"Delete this server",description:"Are you sure you want to delete this server? This action cannot be undone.",open:n,onOpenChange:r,onConfirm:t,children:e})}function lie({onDelete:e,open:t,onOpenChange:n}){return v.jsx(oie,{onConfirm:e,open:t,onOpenChange:n,children:v.jsxs(fv,{children:[v.jsx(hv,{asChild:!0,children:v.jsxs(on,{size:"icon",variant:"ghost",className:"radix-state-[open]:bg-accent-subtle",children:[v.jsx(j0,{weight:"fill",className:"!size-4"}),v.jsx("span",{className:"sr-only",children:"Settings"})]})}),v.jsx(mv,{align:"end",children:v.jsx(s1,{children:v.jsxs(Gi,{onSelect:r=>r.preventDefault(),children:[v.jsx(ei,{children:v.jsx(V1,{})}),v.jsx(za,{onClick:()=>n(!0),children:"Delete"})]})})})]})})}function uie(e,t){const{workspace:n,isWorkspaceLoading:r,workspaceError:a}=BN(e),i=n?.servers.find(l=>l.name===t);if(r)return{workspace:null,workspaceTarget:null,isWorkspaceTargetLoading:!0,workspaceTargetError:null};{const l=i?null:`Workspace target '${t}' not found`;return{workspace:n,workspaceTarget:i,isWorkspaceTargetLoading:r,workspaceTargetError:a||l}}}function cie(){const{workspaceId:e,targetId:t}=yv(),n=Cs();if(!e||!t)throw new Error("Workspace ID and target ID are required");const[r,a]=p.useState(!1),{workspace:i,workspaceTarget:l,isWorkspaceTargetLoading:u,workspaceTargetError:d}=uie(e,t),{tools:h,isLoading:g}=UN(e,t),m=QO({entryName:t}),E=vn.useUtils(),b=m.data,T=vn.store.removeServer.useMutation({onSuccess:async()=>{n(`/${e}`),await E.store.get.invalidate({proxyId:e}),await E.store.getAll.invalidate(),ur({title:"Server deleted",description:"This server was successfully deleted."})}}),A=async()=>{await T.mutateAsync({proxyId:e,serverName:t})};return u?v.jsx(tN,{}):d||!l?v.jsx(hh,{icon:"dead-smiley",fullScreen:!0,title:"Unexpected Error",subtitle:d?.toString()||"Unknown error"}):v.jsxs(uo,{children:[v.jsx(mo,{breadcrumbs:[{title:i?.name||"",onClick:()=>n(`/${e}`)},{title:l?.name}],children:v.jsx(lie,{onDelete:A,open:r,onOpenChange:a})}),v.jsx(hi,{children:v.jsxs(Ja,{size:"lg",children:[v.jsxs(rn,{children:[v.jsx(yh,{src:b?.icon,className:"size-9"}),v.jsxs(an,{children:[v.jsx(sn,{children:l.name}),v.jsxs(Os,{children:["Installed on"," ",v.jsx("button",{onClick:()=>n(`/${e}`),className:"cursor-pointer text-fg underline",children:i?.name})]})]}),b?.description?v.jsx(Yo,{children:b?.description}):null]}),v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Transport"})})}),v.jsx(fw,{transport:l.transport})]}),v.jsx(uN,{tools:h,toolsLoading:g,onToolClick:S=>console.log(S)}),v.jsxs(rn,{children:[v.jsx(an,{children:v.jsx(sn,{variant:"h2",asChild:!0,children:v.jsx("h3",{children:"Readme"})})}),b?.readme?v.jsx("div",{className:"rounded-md border-[0.5px] bg-accent-subtle/20 px-4 py-8",children:v.jsx(Yo,{className:"mx-auto",children:b?.readme})}):v.jsx(Ns,{children:v.jsx(vi,{children:"No readme found"})})]})]})})]})}const die=()=>{const e=Cs(),{data:t,isLoading:n,error:r}=K0(),a=n||r?.message==="Failed to fetch",i=mi();return v.jsxs(Qte,{sections:[{id:"library",label:"Library",items:[{id:"mcp",label:"MCP",icon:v.jsx(dw,{}),isActive:i.pathname==="/library",onClick:()=>e("/library")}]},{id:"servers",label:"Servers",isLoading:a,items:t?.map(l=>({id:l.id,label:l.name,isActive:i.pathname===`/${l.id}`,onClick:()=>e(`/${l.id}`)}))||[]},{id:"actions",items:[{id:"new-server",label:"New server",icon:v.jsx(U6,{}),isActive:i.pathname==="/new",onClick:()=>e("/new")},{id:"documentation",label:"Documentation",icon:v.jsx(I6,{weight:"fill"}),onClick:()=>window.open("https://docs.director.run","_blank","noopener noreferrer")},{id:"github",label:"Github",icon:v.jsx(H6,{}),onClick:()=>window.open("https://github.com/director-run/director","_blank","noopener noreferrer")}]}],children:[v.jsx(uo,{children:v.jsx(WF,{})}),v.jsx(JS,{})]})},fie=5e3,hie=({children:e})=>{const{error:t,isLoading:n}=vn.health.useQuery(void 0,{refetchInterval:fie,retry:!1,throwOnError:!1,enabled:!0});return n?v.jsx(_O,{}):t?v.jsx(hh,{icon:"plugs",fullScreen:!0,title:"Can't connect to the backend",subtitle:"Please make sure director is running and refresh the page.",data:["# Start director","$ director serve","$ director studio"].join(`
|
|
154
|
+
`)}):v.jsx(v.Fragment,{children:e})},mie=()=>{const{isAuthenticated:e,isInitializing:t}=DU();return t?v.jsx("div",{children:"Initializing Auth..."}):v.jsxs(eU,{children:[v.jsxs(Xs,{element:v.jsx(die,{}),children:[v.jsx(Xs,{path:"/library",element:v.jsx(Vne,{})}),v.jsx(Xs,{path:"/library/mcp/:entryName",element:v.jsx(One,{})}),v.jsx(Xs,{path:"/:workspaceId",element:v.jsx(aie,{})}),v.jsx(Xs,{path:"/:workspaceId/:targetId",element:v.jsx(cie,{})}),v.jsx(Xs,{path:"/new",element:v.jsx(Qne,{})})]}),v.jsx(Xs,{path:"/get-started",element:v.jsx(zte,{})}),v.jsx(Xs,{path:"*",element:v.jsx(pie,{})})]})};oF.createRoot(document.getElementById("root")).render(v.jsx(me.StrictMode,{children:v.jsx(gz,{children:v.jsx(TU,{basename:v9,children:v.jsx(uz,{gatewayUrl:Iu,registryUrl:g9,children:v.jsx(hie,{children:v.jsxs(MU,{children:[v.jsx(mie,{}),v.jsx(eF,{}),v.jsx(JS,{})]})})})})})}));function pie(){const{data:e,isLoading:t}=K0();return t?v.jsx("div",{children:"Initializing Workspaces..."}):e?.length&&e.length>0?v.jsx(kx,{to:`/${e[0].id}`,replace:!0}):v.jsx(kx,{to:"/get-started",replace:!0})}
|