var ha=Object.defineProperty;var fa=(t,e,n)=>e in t?ha(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ie=(t,e,n)=>fa(t,typeof e!="symbol"?e+"":e,n);function ga(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rn={exports:{}},vt={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hn;function ya(){if(Hn)return vt;Hn=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var u=null;if(s!==void 0&&(u=""+s),i.key!==void 0&&(u=""+i.key),"key"in i){s={};for(var l in i)l!=="key"&&(s[l]=i[l])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:u,ref:i!==void 0?i:null,props:s}}return vt.Fragment=e,vt.jsx=n,vt.jsxs=n,vt}var Vn;function ma(){return Vn||(Vn=1,rn.exports=ya()),rn.exports}var g=ma(),an={exports:{}},H={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Bn;function va(){if(Bn)return H;Bn=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),a=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),h=Symbol.iterator;function f(p){return p===null||typeof p!="object"?null:(p=h&&p[h]||p["@@iterator"],typeof p=="function"?p:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function E(p,m,N){this.props=p,this.context=m,this.refs=b,this.updater=N||w}E.prototype.isReactComponent={},E.prototype.setState=function(p,m){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,m,"setState")},E.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function S(){}S.prototype=E.prototype;function _(p,m,N){this.props=p,this.context=m,this.refs=b,this.updater=N||w}var O=_.prototype=new S;O.constructor=_,v(O,E.prototype),O.isPureReactComponent=!0;var $=Array.isArray,d={H:null,A:null,T:null,S:null},y=Object.prototype.hasOwnProperty;function k(p,m,N,M,B,Q){return N=Q.ref,{$$typeof:t,type:p,key:m,ref:N!==void 0?N:null,props:Q}}function j(p,m){return k(p.type,m,void 0,void 0,void 0,p.props)}function T(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function q(p){var m={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(N){return m[N]})}var U=/\/+/g;function Y(p,m){return typeof p=="object"&&p!==null&&p.key!=null?q(""+p.key):m.toString(36)}function P(){}function A(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(P,P):(p.status="pending",p.then(function(m){p.status==="pending"&&(p.status="fulfilled",p.value=m)},function(m){p.status==="pending"&&(p.status="rejected",p.reason=m)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function G(p,m,N,M,B){var Q=typeof p;(Q==="undefined"||Q==="boolean")&&(p=null);var I=!1;if(p===null)I=!0;else switch(Q){case"bigint":case"string":case"number":I=!0;break;case"object":switch(p.$$typeof){case t:case e:I=!0;break;case c:return I=p._init,G(I(p._payload),m,N,M,B)}}if(I)return B=B(p),I=M===""?"."+Y(p,0):M,$(B)?(N="",I!=null&&(N=I.replace(U,"$&/")+"/"),G(B,m,N,"",function(Re){return Re})):B!=null&&(T(B)&&(B=j(B,N+(B.key==null||p&&p.key===B.key?"":(""+B.key).replace(U,"$&/")+"/")+I)),m.push(B)),1;I=0;var se=M===""?".":M+":";if($(p))for(var oe=0;oe<p.length;oe++)M=p[oe],Q=se+Y(M,oe),I+=G(M,m,N,Q,B);else if(oe=f(p),typeof oe=="function")for(p=oe.call(p),oe=0;!(M=p.next()).done;)M=M.value,Q=se+Y(M,oe++),I+=G(M,m,N,Q,B);else if(Q==="object"){if(typeof p.then=="function")return G(A(p),m,N,M,B);throw m=String(p),Error("Objects are not valid as a React child (found: "+(m==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":m)+"). If you meant to render a collection of children, use an array instead.")}return I}function de(p,m,N){if(p==null)return p;var M=[],B=0;return G(p,M,"","",function(Q){return m.call(N,Q,B++)}),M}function le(p){if(p._status===-1){var m=p._result;m=m(),m.then(function(N){(p._status===0||p._status===-1)&&(p._status=1,p._result=N)},function(N){(p._status===0||p._status===-1)&&(p._status=2,p._result=N)}),p._status===-1&&(p._status=0,p._result=m)}if(p._status===1)return p._result.default;throw p._result}var Z=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)};function ke(){}return H.Children={map:de,forEach:function(p,m,N){de(p,function(){m.apply(this,arguments)},N)},count:function(p){var m=0;return de(p,function(){m++}),m},toArray:function(p){return de(p,function(m){return m})||[]},only:function(p){if(!T(p))throw Error("React.Children.only expected to receive a single React element child.");return p}},H.Component=E,H.Fragment=n,H.Profiler=i,H.PureComponent=_,H.StrictMode=r,H.Suspense=o,H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,H.act=function(){throw Error("act(...) is not supported in production builds of React.")},H.cache=function(p){return function(){return p.apply(null,arguments)}},H.cloneElement=function(p,m,N){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var M=v({},p.props),B=p.key,Q=void 0;if(m!=null)for(I in m.ref!==void 0&&(Q=void 0),m.key!==void 0&&(B=""+m.key),m)!y.call(m,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&m.ref===void 0||(M[I]=m[I]);var I=arguments.length-2;if(I===1)M.children=N;else if(1<I){for(var se=Array(I),oe=0;oe<I;oe++)se[oe]=arguments[oe+2];M.children=se}return k(p.type,B,void 0,void 0,Q,M)},H.createContext=function(p){return p={$$typeof:u,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:s,_context:p},p},H.createElement=function(p,m,N){var M,B={},Q=null;if(m!=null)for(M in m.key!==void 0&&(Q=""+m.key),m)y.call(m,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(B[M]=m[M]);var I=arguments.length-2;if(I===1)B.children=N;else if(1<I){for(var se=Array(I),oe=0;oe<I;oe++)se[oe]=arguments[oe+2];B.children=se}if(p&&p.defaultProps)for(M in I=p.defaultProps,I)B[M]===void 0&&(B[M]=I[M]);return k(p,Q,void 0,void 0,null,B)},H.createRef=function(){return{current:null}},H.forwardRef=function(p){return{$$typeof:l,render:p}},H.isValidElement=T,H.lazy=function(p){return{$$typeof:c,_payload:{_status:-1,_result:p},_init:le}},H.memo=function(p,m){return{$$typeof:a,type:p,compare:m===void 0?null:m}},H.startTransition=function(p){var m=d.T,N={};d.T=N;try{var M=p(),B=d.S;B!==null&&B(N,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(ke,Z)}catch(Q){Z(Q)}finally{d.T=m}},H.unstable_useCacheRefresh=function(){return d.H.useCacheRefresh()},H.use=function(p){return d.H.use(p)},H.useActionState=function(p,m,N){return d.H.useActionState(p,m,N)},H.useCallback=function(p,m){return d.H.useCallback(p,m)},H.useContext=function(p){return d.H.useContext(p)},H.useDebugValue=function(){},H.useDeferredValue=function(p,m){return d.H.useDeferredValue(p,m)},H.useEffect=function(p,m){return d.H.useEffect(p,m)},H.useId=function(){return d.H.useId()},H.useImperativeHandle=function(p,m,N){return d.H.useImperativeHandle(p,m,N)},H.useInsertionEffect=function(p,m){return d.H.useInsertionEffect(p,m)},H.useLayoutEffect=function(p,m){return d.H.useLayoutEffect(p,m)},H.useMemo=function(p,m){return d.H.useMemo(p,m)},H.useOptimistic=function(p,m){return d.H.useOptimistic(p,m)},H.useReducer=function(p,m,N){return d.H.useReducer(p,m,N)},H.useRef=function(p){return d.H.useRef(p)},H.useState=function(p){return d.H.useState(p)},H.useSyncExternalStore=function(p,m,N){return d.H.useSyncExternalStore(p,m,N)},H.useTransition=function(){return d.H.useTransition()},H.version="19.0.0",H}var Fn;function Gt(){return Fn||(Fn=1,an.exports=va()),an.exports}var C=Gt();const ka=jr(C),el=ga({__proto__:null,default:ka},[C]);var on={exports:{}},ge={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Un;function ba(){if(Un)return ge;Un=1;var t=Gt();function e(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+o+"; visit "+a+" 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(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(o,a,c){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:h==null?null:""+h,children:o,containerInfo:a,implementation:c}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(o,a){if(o==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}return ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ge.createPortal=function(o,a){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(e(299));return s(o,a,null,c)},ge.flushSync=function(o){var a=u.T,c=r.p;try{if(u.T=null,r.p=2,o)return o()}finally{u.T=a,r.p=c,r.d.f()}},ge.preconnect=function(o,a){typeof o=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,r.d.C(o,a))},ge.prefetchDNS=function(o){typeof o=="string"&&r.d.D(o)},ge.preinit=function(o,a){if(typeof o=="string"&&a&&typeof a.as=="string"){var c=a.as,h=l(c,a.crossOrigin),f=typeof a.integrity=="string"?a.integrity:void 0,w=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;c==="style"?r.d.S(o,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:w}):c==="script"&&r.d.X(o,{crossOrigin:h,integrity:f,fetchPriority:w,nonce:typeof a.nonce=="string"?a.nonce:void 0})}},ge.preinitModule=function(o,a){if(typeof o=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var c=l(a.as,a.crossOrigin);r.d.M(o,{crossOrigin:c,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&r.d.M(o)},ge.preload=function(o,a){if(typeof o=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var c=a.as,h=l(c,a.crossOrigin);r.d.L(o,c,{crossOrigin:h,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}},ge.preloadModule=function(o,a){if(typeof o=="string")if(a){var c=l(a.as,a.crossOrigin);r.d.m(o,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:c,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else r.d.m(o)},ge.requestFormReset=function(o){r.d.r(o)},ge.unstable_batchedUpdates=function(o,a){return o(a)},ge.useFormState=function(o,a,c){return u.H.useFormState(o,a,c)},ge.useFormStatus=function(){return u.H.useHostTransitionStatus()},ge.version="19.0.0",ge}var Gn;function tl(){if(Gn)return on.exports;Gn=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),on.exports=ba(),on.exports}/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xa=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wa=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),Kn=t=>{const e=wa(t);return e.charAt(0).toUpperCase()+e.slice(1)},Cr=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),Ea=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var _a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ja=C.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:u,...l},o)=>C.createElement("svg",{ref:o,..._a,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:Cr("lucide",i),...!s&&!Ea(l)&&{"aria-hidden":"true"},...l},[...u.map(([a,c])=>C.createElement(a,c)),...Array.isArray(s)?s:[s]]));/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x=(t,e)=>{const n=C.forwardRef(({className:r,...i},s)=>C.createElement(ja,{ref:s,iconNode:e,className:Cr(`lucide-${xa(Kn(t))}`,`lucide-${t}`,r),...i}));return n.displayName=Kn(t),n};/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ca=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],nl=x("archive",Ca);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sa=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],rl=x("arrow-down",Sa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ta=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],al=x("arrow-left",Ta);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ra=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],il=x("arrow-right",Ra);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Aa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],ol=x("ban",Aa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oa=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M16 12h2",key:"7q9ll5"}],["path",{d:"M16 8h2",key:"msurwy"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}],["path",{d:"M6 12h2",key:"32wvfc"}],["path",{d:"M6 8h2",key:"30oboj"}]],sl=x("book-open-text",Oa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Na=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],ll=x("book",Na);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ma=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],cl=x("bot",Ma);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Da=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],ul=x("box",Da);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pa=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],dl=x("brain",Pa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $a=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],pl=x("calendar",$a);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const La=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hl=x("check",La);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ia=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fl=x("chevron-down",Ia);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const za=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],gl=x("chevron-left",za);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qa=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],yl=x("chevron-right",qa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ha=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ml=x("chevron-up",Ha);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Va=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],vl=x("circle-alert",Va);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ba=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],kl=x("circle-check-big",Ba);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],bl=x("circle-x",Fa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ua=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],xl=x("clock",Ua);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ga=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],wl=x("code",Ga);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ka=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],El=x("copy",Ka);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wa=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],_l=x("download",Wa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Za=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],jl=x("ellipsis-vertical",Za);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xa=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Cl=x("ellipsis",Xa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ya=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Sl=x("external-link",Ya);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qa=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Tl=x("eye",Qa);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ja=[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]],Rl=x("file-audio",Ja);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ei=[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]],Al=x("file-code",ei);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ti=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],Ol=x("file-image",ti);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ni=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],Nl=x("file-json",ni);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ri=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],Ml=x("file-spreadsheet",ri);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ai=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Dl=x("file-text",ai);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ii=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 13v-1h6v1",key:"1bb014"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M11 18h2",key:"12mj7e"}]],Pl=x("file-type",ii);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oi=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m10 11 5 3-5 3v-6Z",key:"7ntvm4"}]],$l=x("file-video",oi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const si=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Ll=x("file",si);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const li=[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]],Il=x("folder-input",li);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ci=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],zl=x("folder-open",ci);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ui=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],ql=x("funnel",ui);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const di=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Hl=x("git-branch",di);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pi=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Vl=x("git-merge",pi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hi=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Bl=x("globe",hi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fi=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Fl=x("grid-3x3",fi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gi=[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]],Ul=x("hand",gi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yi=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Gl=x("history",yi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mi=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Kl=x("info",mi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vi=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Wl=x("key",vi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ki=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Zl=x("link-2",ki);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bi=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Xl=x("link",bi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xi=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Yl=x("loader-circle",xi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wi=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ql=x("log-out",wi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ei=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Jl=x("mail",Ei);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _i=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],ec=x("maximize-2",_i);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ji=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],tc=x("message-circle",ji);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ci=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],nc=x("message-square-plus",Ci);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Si=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],rc=x("message-square",Si);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ti=[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]],ac=x("mic",Ti);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ri=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],ic=x("minimize-2",Ri);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ai=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],oc=x("network",Ai);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oi=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"16",height:"18",x:"4",y:"4",rx:"2",key:"1u9h20"}],["path",{d:"M8 10h6",key:"3oa6kw"}],["path",{d:"M8 14h8",key:"1fgep2"}],["path",{d:"M8 18h5",key:"17enja"}]],sc=x("notepad-text",Oi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ni=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],lc=x("panel-left",Ni);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mi=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],cc=x("panel-right",Mi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Di=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],uc=x("panels-top-left",Di);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pi=[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]],dc=x("paperclip",Pi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $i=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],pc=x("pencil",$i);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Li=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],hc=x("play",Li);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ii=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],fc=x("plus",Ii);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zi=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],gc=x("presentation",zi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qi=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],yc=x("quote",qi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hi=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],mc=x("refresh-ccw",Hi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vi=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],vc=x("refresh-cw",Vi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bi=[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]],kc=x("repeat-2",Bi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fi=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]],bc=x("scan-line",Fi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ui=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]],xc=x("scan",Ui);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gi=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],wc=x("scissors",Gi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ki=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ec=x("search",Ki);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wi=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],_c=x("send",Wi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zi=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],jc=x("settings",Zi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xi=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Cc=x("share-2",Xi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yi=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Sc=x("sparkles",Yi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qi=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Tc=x("square-pen",Qi);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ji=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Rc=x("star",Ji);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eo=[["path",{d:"M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4",key:"1fu5g2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.9 4.9 1.4 1.4",key:"b9915j"}],["path",{d:"m17.7 17.7 1.4 1.4",key:"qc3ed3"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.3 17.7-1.4 1.4",key:"5gca6"}],["path",{d:"m19.1 4.9-1.4 1.4",key:"wpu9u6"}]],Ac=x("sun-moon",eo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const to=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Oc=x("tag",to);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const no=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Nc=x("terminal",no);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ro=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],Mc=x("thumbs-down",ro);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ao=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],Dc=x("thumbs-up",ao);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const io=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Pc=x("trash-2",io);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oo=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],$c=x("trash",oo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const so=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Lc=x("trending-up",so);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lo=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ic=x("triangle-alert",lo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const co=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],zc=x("type",co);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uo=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],qc=x("upload",uo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const po=[["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}],["path",{d:"M10.3 15H7a4 4 0 0 0-4 4v2",key:"3bnktk"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}]],Hc=x("user-search",po);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ho=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Vc=x("user",ho);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fo=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Bc=x("volume-2",fo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const go=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],Fc=x("volume-x",go);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yo=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Uc=x("workflow",yo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mo=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gc=x("x",mo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vo=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Kc=x("wrench",vo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ko=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Wc=x("zap",ko);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bo=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Zc=x("zoom-in",bo);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xo=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Xc=x("zoom-out",xo);function kn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var nt=kn();function Sr(t){nt=t}var At={exec:()=>null};function ee(t,e=""){let n=typeof t=="string"?t:t.source;const r={replace:(i,s)=>{let u=typeof s=="string"?s:s.source;return u=u.replace(ve.caret,"$1"),n=n.replace(i,u),r},getRegex:()=>new RegExp(n,e)};return r}var ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},wo=/^(?:[ \t]*(?:\n|$))+/,Eo=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_o=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ot=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jo=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bn=/(?:[*+-]|\d{1,9}[.)])/,Tr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Rr=ee(Tr).replace(/bull/g,bn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Co=ee(Tr).replace(/bull/g,bn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),xn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,So=/^[^\n]+/,wn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,To=ee(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ro=ee(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bn).getRegex(),Kt="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",En=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ao=ee("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",En).replace("tag",Kt).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ar=ee(xn).replace("hr",Ot).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kt).getRegex(),Oo=ee(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ar).getRegex(),_n={blockquote:Oo,code:Eo,def:To,fences:_o,heading:jo,hr:Ot,html:Ao,lheading:Rr,list:Ro,newline:wo,paragraph:Ar,table:At,text:So},Wn=ee("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ot).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kt).getRegex(),No={..._n,lheading:Co,table:Wn,paragraph:ee(xn).replace("hr",Ot).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Kt).getRegex()},Mo={..._n,html:ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",En).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:At,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ee(xn).replace("hr",Ot).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Rr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Do=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Po=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Or=/^( {2,}|\\)\n(?!\s*$)/,$o=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Wt=/[\p{P}\p{S}]/u,jn=/[\s\p{P}\p{S}]/u,Nr=/[^\s\p{P}\p{S}]/u,Lo=ee(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,jn).getRegex(),Mr=/(?!~)[\p{P}\p{S}]/u,Io=/(?!~)[\s\p{P}\p{S}]/u,zo=/(?:[^\s\p{P}\p{S}]|~)/u,qo=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Dr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ho=ee(Dr,"u").replace(/punct/g,Wt).getRegex(),Vo=ee(Dr,"u").replace(/punct/g,Mr).getRegex(),Pr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Bo=ee(Pr,"gu").replace(/notPunctSpace/g,Nr).replace(/punctSpace/g,jn).replace(/punct/g,Wt).getRegex(),Fo=ee(Pr,"gu").replace(/notPunctSpace/g,zo).replace(/punctSpace/g,Io).replace(/punct/g,Mr).getRegex(),Uo=ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Nr).replace(/punctSpace/g,jn).replace(/punct/g,Wt).getRegex(),Go=ee(/\\(punct)/,"gu").replace(/punct/g,Wt).getRegex(),Ko=ee(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Wo=ee(En).replace("(?:-->|$)","-->").getRegex(),Zo=ee("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Wo).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Vt=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Xo=ee(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Vt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),$r=ee(/^!?\[(label)\]\[(ref)\]/).replace("label",Vt).replace("ref",wn).getRegex(),Lr=ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",wn).getRegex(),Yo=ee("reflink|nolink(?!\\()","g").replace("reflink",$r).replace("nolink",Lr).getRegex(),Cn={_backpedal:At,anyPunctuation:Go,autolink:Ko,blockSkip:qo,br:Or,code:Po,del:At,emStrongLDelim:Ho,emStrongRDelimAst:Bo,emStrongRDelimUnd:Uo,escape:Do,link:Xo,nolink:Lr,punctuation:Lo,reflink:$r,reflinkSearch:Yo,tag:Zo,text:$o,url:At},Qo={...Cn,link:ee(/^!?\[(label)\]\((.*?)\)/).replace("label",Vt).getRegex(),reflink:ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Vt).getRegex()},pn={...Cn,emStrongRDelimAst:Fo,emStrongLDelim:Vo,url:ee(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Jo={...pn,br:ee(Or).replace("{2,}","*").getRegex(),text:ee(pn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Lt={normal:_n,gfm:No,pedantic:Mo},kt={normal:Cn,gfm:pn,breaks:Jo,pedantic:Qo},es={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Zn=t=>es[t];function Me(t,e){if(e){if(ve.escapeTest.test(t))return t.replace(ve.escapeReplace,Zn)}else if(ve.escapeTestNoEncode.test(t))return t.replace(ve.escapeReplaceNoEncode,Zn);return t}function Xn(t){try{t=encodeURI(t).replace(ve.percentDecode,"%")}catch{return null}return t}function Yn(t,e){var s;const n=t.replace(ve.findPipe,(u,l,o)=>{let a=!1,c=l;for(;--c>=0&&o[c]==="\\";)a=!a;return a?"|":" |"}),r=n.split(ve.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(ve.slashPipe,"|");return r}function bt(t,e,n){const r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function ts(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function Qn(t,e,n,r,i){const s=e.href,u=e.title||null,l=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;const o={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:s,title:u,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}function ns(t,e,n){const r=t.match(n.other.indentCodeCompensation);if(r===null)return e;const i=r[1];return e.split(`
`).map(s=>{const u=s.match(n.other.beginningSpace);if(u===null)return s;const[l]=u;return l.length>=i.length?s.slice(i.length):s}).join(`
`)}var Bt=class{constructor(t){ie(this,"options");ie(this,"rules");ie(this,"lexer");this.options=t||nt}space(t){const e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){const e=this.rules.block.code.exec(t);if(e){const n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:bt(n,`
`)}}}fences(t){const e=this.rules.block.fences.exec(t);if(e){const n=e[0],r=ns(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){const e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){const r=bt(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:bt(e[0],`
`)}}blockquote(t){const e=this.rules.block.blockquote.exec(t);if(e){let n=bt(e[0],`
`).split(`
`),r="",i="";const s=[];for(;n.length>0;){let u=!1;const l=[];let o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))l.push(n[o]),u=!0;else if(!u)l.push(n[o]);else break;n=n.slice(o);const a=l.join(`
`),c=a.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
${a}`:a,i=i?`${i}
${c}`:c;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,s,!0),this.lexer.state.top=h,n.length===0)break;const f=s.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){const w=f,v=w.raw+`
`+n.join(`
`),b=this.blockquote(v);s[s.length-1]=b,r=r.substring(0,r.length-w.raw.length)+b.raw,i=i.substring(0,i.length-w.text.length)+b.text;break}else if((f==null?void 0:f.type)==="list"){const w=f,v=w.raw+`
`+n.join(`
`),b=this.list(v);s[s.length-1]=b,r=r.substring(0,r.length-f.raw.length)+b.raw,i=i.substring(0,i.length-w.raw.length)+b.raw,n=v.substring(s.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:r,tokens:s,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim();const r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");const s=this.rules.other.listItemRegex(n);let u=!1;for(;t;){let o=!1,a="",c="";if(!(e=s.exec(t))||this.rules.block.hr.test(t))break;a=e[0],t=t.substring(a.length);let h=e[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),f=t.split(`
`,1)[0],w=!h.trim(),v=0;if(this.options.pedantic?(v=2,c=h.trimStart()):w?v=e[1].length+1:(v=e[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,c=h.slice(v),v+=e[1].length),w&&this.rules.other.blankLine.test(f)&&(a+=f+`
`,t=t.substring(f.length+1),o=!0),!o){const S=this.rules.other.nextBulletRegex(v),_=this.rules.other.hrRegex(v),O=this.rules.other.fencesBeginRegex(v),$=this.rules.other.headingBeginRegex(v),d=this.rules.other.htmlBeginRegex(v);for(;t;){const y=t.split(`
`,1)[0];let k;if(f=y,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting,"  "),k=f):k=f.replace(this.rules.other.tabCharGlobal,"    "),O.test(f)||$.test(f)||d.test(f)||S.test(f)||_.test(f))break;if(k.search(this.rules.other.nonSpaceChar)>=v||!f.trim())c+=`
`+k.slice(v);else{if(w||h.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||O.test(h)||$.test(h)||_.test(h))break;c+=`
`+f}!w&&!f.trim()&&(w=!0),a+=y+`
`,t=t.substring(y.length+1),h=k.slice(v)}}i.loose||(u?i.loose=!0:this.rules.other.doubleBlankLine.test(a)&&(u=!0));let b=null,E;this.options.gfm&&(b=this.rules.other.listIsTask.exec(c),b&&(E=b[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:a,task:!!b,checked:E,loose:!1,text:c,tokens:[]}),i.raw+=a}const l=i.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let o=0;o<i.items.length;o++)if(this.lexer.state.top=!1,i.items[o].tokens=this.lexer.blockTokens(i.items[o].text,[]),!i.loose){const a=i.items[o].tokens.filter(h=>h.type==="space"),c=a.length>0&&a.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=c}if(i.loose)for(let o=0;o<i.items.length;o++)i.items[o].loose=!0;return i}}html(t){const e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){const e=this.rules.block.def.exec(t);if(e){const n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:r,title:i}}}table(t){var u;const e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;const n=Yn(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(u=e[3])!=null&&u.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],s={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const l of r)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<n.length;l++)s.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:s.align[l]});for(const l of i)s.rows.push(Yn(l,s.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:s.align[a]})));return s}}lheading(t){const e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){const e=this.rules.block.paragraph.exec(t);if(e){const n=e[1].charAt(e[1].length-1)===`
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){const e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){const e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){const e=this.rules.inline.link.exec(t);if(e){const n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;const s=bt(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{const s=ts(e[2],"()");if(s===-2)return;if(s>-1){const l=(e[0].indexOf("!")===0?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],i=s[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Qn(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){const r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=e[r.toLowerCase()];if(!i){const s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return Qn(n,i,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const s=[...r[0]].length-1;let u,l,o=s,a=0;const c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*t.length+s);(r=c.exec(e))!=null;){if(u=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!u)continue;if(l=[...u].length,r[3]||r[4]){o+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){a+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o+a);const h=[...r[0]][0].length,f=t.slice(0,s+r.index+h+l);if(Math.min(s,l)%2){const v=f.slice(1,-1);return{type:"em",raw:f,text:v,tokens:this.lexer.inlineTokens(v)}}const w=f.slice(2,-2);return{type:"strong",raw:f,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," ");const r=this.rules.other.nonSpaceChar.test(n),i=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&i&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){const e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){const e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){const e=this.rules.inline.autolink.exec(t);if(e){let n,r;return e[2]==="@"?(n=e[1],r="mailto:"+n):(n=e[1],r=n),{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let e;if(e=this.rules.inline.url.exec(t)){let r,i;if(e[2]==="@")r=e[0],i="mailto:"+r;else{let s;do s=e[0],e[0]=((n=this.rules.inline._backpedal.exec(e[0]))==null?void 0:n[0])??"";while(s!==e[0]);r=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const e=this.rules.inline.text.exec(t);if(e){const n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},Le=class hn{constructor(e){ie(this,"tokens");ie(this,"options");ie(this,"state");ie(this,"tokenizer");ie(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||nt,this.options.tokenizer=this.options.tokenizer||new Bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:ve,block:Lt.normal,inline:kt.normal};this.options.pedantic?(n.block=Lt.pedantic,n.inline=kt.pedantic):this.options.gfm&&(n.block=Lt.gfm,this.options.breaks?n.inline=kt.breaks:n.inline=kt.gfm),this.tokenizer.rules=n}static get rules(){return{block:Lt,inline:kt}}static lex(e,n){return new hn(n).lex(e)}static lexInline(e,n){return new hn(n).inlineTokens(e)}lex(e){e=e.replace(ve.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){var i,s,u;for(this.options.pedantic&&(e=e.replace(ve.tabCharGlobal,"    ").replace(ve.spaceLine,""));e;){let l;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(a=>(l=a.call({lexer:this},e,n))?(e=e.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);const a=n.at(-1);l.raw.length===1&&a!==void 0?a.raw+=`
`:n.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);const a=n.at(-1);(a==null?void 0:a.type)==="paragraph"||(a==null?void 0:a.type)==="text"?(a.raw+=`
`+l.raw,a.text+=`
`+l.text,this.inlineQueue.at(-1).src=a.text):n.push(l);continue}if(l=this.tokenizer.fences(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.heading(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.hr(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.blockquote(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.list(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.html(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);const a=n.at(-1);(a==null?void 0:a.type)==="paragraph"||(a==null?void 0:a.type)==="text"?(a.raw+=`
`+l.raw,a.text+=`
`+l.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title});continue}if(l=this.tokenizer.table(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.lheading(e)){e=e.substring(l.raw.length),n.push(l);continue}let o=e;if((u=this.options.extensions)!=null&&u.startBlock){let a=1/0;const c=e.slice(1);let h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},c),typeof h=="number"&&h>=0&&(a=Math.min(a,h))}),a<1/0&&a>=0&&(o=e.substring(0,a+1))}if(this.state.top&&(l=this.tokenizer.paragraph(o))){const a=n.at(-1);r&&(a==null?void 0:a.type)==="paragraph"?(a.raw+=`
`+l.raw,a.text+=`
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(l),r=o.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);const a=n.at(-1);(a==null?void 0:a.type)==="text"?(a.raw+=`
`+l.raw,a.text+=`
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):n.push(l);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){var l,o,a;let r=e,i=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)c.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,u="";for(;e;){s||(u=""),s=!1;let c;if((o=(l=this.options.extensions)==null?void 0:l.inline)!=null&&o.some(f=>(c=f.call({lexer:this},e,n))?(e=e.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.escape(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.tag(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.link(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(c.raw.length);const f=n.at(-1);c.type==="text"&&(f==null?void 0:f.type)==="text"?(f.raw+=c.raw,f.text+=c.text):n.push(c);continue}if(c=this.tokenizer.emStrong(e,r,u)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.codespan(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.br(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.del(e)){e=e.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.autolink(e)){e=e.substring(c.raw.length),n.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(e))){e=e.substring(c.raw.length),n.push(c);continue}let h=e;if((a=this.options.extensions)!=null&&a.startInline){let f=1/0;const w=e.slice(1);let v;this.options.extensions.startInline.forEach(b=>{v=b.call({lexer:this},w),typeof v=="number"&&v>=0&&(f=Math.min(f,v))}),f<1/0&&f>=0&&(h=e.substring(0,f+1))}if(c=this.tokenizer.inlineText(h)){e=e.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(u=c.raw.slice(-1)),s=!0;const f=n.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=c.raw,f.text+=c.text):n.push(c);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}},Ft=class{constructor(t){ie(this,"options");ie(this,"parser");this.options=t||nt}space(t){return""}code({text:t,lang:e,escaped:n}){var s;const r=(s=(e||"").match(ve.notSpaceStart))==null?void 0:s[0],i=t.replace(ve.endingNewline,"")+`
`;return r?'<pre><code class="language-'+Me(r)+'">'+(n?i:Me(i,!0))+`</code></pre>
`:"<pre><code>"+(n?i:Me(i,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
`}hr(t){return`<hr>
`}list(t){const e=t.ordered,n=t.start;let r="";for(let u=0;u<t.items.length;u++){const l=t.items[u];r+=this.listitem(l)}const i=e?"ol":"ul",s=e&&n!==1?' start="'+n+'"':"";return"<"+i+s+`>
`+r+"</"+i+`>
`}listitem(t){var n;let e="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+Me(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let e="",n="";for(let i=0;i<t.header.length;i++)n+=this.tablecell(t.header[i]);e+=this.tablerow({text:n});let r="";for(let i=0;i<t.rows.length;i++){const s=t.rows[i];n="";for(let u=0;u<s.length;u++)n+=this.tablecell(s[u]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+r+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){const e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Me(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){const r=this.parser.parseInline(n),i=Xn(t);if(i===null)return r;t=i;let s='<a href="'+t+'"';return e&&(s+=' title="'+Me(e)+'"'),s+=">"+r+"</a>",s}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));const i=Xn(t);if(i===null)return Me(n);t=i;let s=`<img src="${t}" alt="${n}"`;return e&&(s+=` title="${Me(e)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Me(t.text)}},Sn=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Ie=class fn{constructor(e){ie(this,"options");ie(this,"renderer");ie(this,"textRenderer");this.options=e||nt,this.options.renderer=this.options.renderer||new Ft,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Sn}static parse(e,n){return new fn(n).parse(e)}static parseInline(e,n){return new fn(n).parseInline(e)}parse(e,n=!0){var i,s;let r="";for(let u=0;u<e.length;u++){const l=e[u];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[l.type]){const a=l,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=c||"";continue}}const o=l;switch(o.type){case"space":{r+=this.renderer.space(o);continue}case"hr":{r+=this.renderer.hr(o);continue}case"heading":{r+=this.renderer.heading(o);continue}case"code":{r+=this.renderer.code(o);continue}case"table":{r+=this.renderer.table(o);continue}case"blockquote":{r+=this.renderer.blockquote(o);continue}case"list":{r+=this.renderer.list(o);continue}case"html":{r+=this.renderer.html(o);continue}case"paragraph":{r+=this.renderer.paragraph(o);continue}case"text":{let a=o,c=this.renderer.text(a);for(;u+1<e.length&&e[u+1].type==="text";)a=e[++u],c+=`
`+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):r+=c;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(e,n=this.renderer){var i,s;let r="";for(let u=0;u<e.length;u++){const l=e[u];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[l.type]){const a=this.options.extensions.renderers[l.type].call({parser:this},l);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=a||"";continue}}const o=l;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},dn,qt=(dn=class{constructor(t){ie(this,"options");ie(this,"block");this.options=t||nt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Le.lex:Le.lexInline}provideParser(){return this.block?Ie.parse:Ie.parseInline}},ie(dn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),dn),rs=class{constructor(...t){ie(this,"defaults",kn());ie(this,"options",this.setOptions);ie(this,"parse",this.parseMarkdown(!0));ie(this,"parseInline",this.parseMarkdown(!1));ie(this,"Parser",Ie);ie(this,"Renderer",Ft);ie(this,"TextRenderer",Sn);ie(this,"Lexer",Le);ie(this,"Tokenizer",Bt);ie(this,"Hooks",qt);this.use(...t)}walkTokens(t,e){var r,i;let n=[];for(const s of t)switch(n=n.concat(e.call(this,s)),s.type){case"table":{const u=s;for(const l of u.header)n=n.concat(this.walkTokens(l.tokens,e));for(const l of u.rows)for(const o of l)n=n.concat(this.walkTokens(o.tokens,e));break}case"list":{const u=s;n=n.concat(this.walkTokens(u.items,e));break}default:{const u=s;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[u.type]?this.defaults.extensions.childTokens[u.type].forEach(l=>{const o=u[l].flat(1/0);n=n.concat(this.walkTokens(o,e))}):u.tokens&&(n=n.concat(this.walkTokens(u.tokens,e)))}}return n}use(...t){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{const r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=e.renderers[i.name];s?e.renderers[i.name]=function(...u){let l=i.renderer.apply(this,u);return l===!1&&(l=s.apply(this,u)),l}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=e[i.level];s?s.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),r.extensions=e),n.renderer){const i=this.defaults.renderer||new Ft(this.defaults);for(const s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const u=s,l=n.renderer[u],o=i[u];i[u]=(...a)=>{let c=l.apply(i,a);return c===!1&&(c=o.apply(i,a)),c||""}}r.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new Bt(this.defaults);for(const s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const u=s,l=n.tokenizer[u],o=i[u];i[u]=(...a)=>{let c=l.apply(i,a);return c===!1&&(c=o.apply(i,a)),c}}r.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new qt;for(const s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const u=s,l=n.hooks[u],o=i[u];qt.passThroughHooks.has(s)?i[u]=a=>{if(this.defaults.async)return Promise.resolve(l.call(i,a)).then(h=>o.call(i,h));const c=l.call(i,a);return o.call(i,c)}:i[u]=(...a)=>{let c=l.apply(i,a);return c===!1&&(c=o.apply(i,a)),c}}r.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(u){let l=[];return l.push(s.call(this,u)),i&&(l=l.concat(i.call(this,u))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return Le.lex(t,e??this.defaults)}parser(t,e){return Ie.parse(t,e??this.defaults)}parseMarkdown(t){return(n,r)=>{const i={...r},s={...this.defaults,...i},u=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=t);const l=s.hooks?s.hooks.provideLexer():t?Le.lex:Le.lexInline,o=s.hooks?s.hooks.provideParser():t?Ie.parse:Ie.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then(a=>l(a,s)).then(a=>s.hooks?s.hooks.processAllTokens(a):a).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>o(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(u);try{s.hooks&&(n=s.hooks.preprocess(n));let a=l(n,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let c=o(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return u(a)}}}onError(t,e){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+Me(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},et=new rs;function ne(t,e){return et.parse(t,e)}ne.options=ne.setOptions=function(t){return et.setOptions(t),ne.defaults=et.defaults,Sr(ne.defaults),ne};ne.getDefaults=kn;ne.defaults=nt;ne.use=function(...t){return et.use(...t),ne.defaults=et.defaults,Sr(ne.defaults),ne};ne.walkTokens=function(t,e){return et.walkTokens(t,e)};ne.parseInline=et.parseInline;ne.Parser=Ie;ne.parser=Ie.parse;ne.Renderer=Ft;ne.TextRenderer=Sn;ne.Lexer=Le;ne.lexer=Le.lex;ne.Tokenizer=Bt;ne.Hooks=qt;ne.parse=ne;ne.options;ne.setOptions;ne.use;ne.walkTokens;ne.parseInline;Ie.parse;Le.lex;var xt={},ct={},It={},We={},Ze={},sn={},Jn;function Ir(){return Jn||(Jn=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype}(sn)),sn}var V={},er;function tr(){if(er)return V;er=1;var t=V&&V.__extends||function(){var d=function(y,k){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,T){j.__proto__=T}||function(j,T){for(var q in T)Object.prototype.hasOwnProperty.call(T,q)&&(j[q]=T[q])},d(y,k)};return function(y,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");d(y,k);function j(){this.constructor=y}y.prototype=k===null?Object.create(k):(j.prototype=k.prototype,new j)}}(),e=V&&V.__assign||function(){return e=Object.assign||function(d){for(var y,k=1,j=arguments.length;k<j;k++){y=arguments[k];for(var T in y)Object.prototype.hasOwnProperty.call(y,T)&&(d[T]=y[T])}return d},e.apply(this,arguments)};Object.defineProperty(V,"__esModule",{value:!0}),V.cloneNode=V.hasChildren=V.isDocument=V.isDirective=V.isComment=V.isText=V.isCDATA=V.isTag=V.Element=V.Document=V.CDATA=V.NodeWithChildren=V.ProcessingInstruction=V.Comment=V.Text=V.DataNode=V.Node=void 0;var n=Ir(),r=function(){function d(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(d.prototype,"parentNode",{get:function(){return this.parent},set:function(y){this.parent=y},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"previousSibling",{get:function(){return this.prev},set:function(y){this.prev=y},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"nextSibling",{get:function(){return this.next},set:function(y){this.next=y},enumerable:!1,configurable:!0}),d.prototype.cloneNode=function(y){return y===void 0&&(y=!1),O(this,y)},d}();V.Node=r;var i=function(d){t(y,d);function y(k){var j=d.call(this)||this;return j.data=k,j}return Object.defineProperty(y.prototype,"nodeValue",{get:function(){return this.data},set:function(k){this.data=k},enumerable:!1,configurable:!0}),y}(r);V.DataNode=i;var s=function(d){t(y,d);function y(){var k=d!==null&&d.apply(this,arguments)||this;return k.type=n.ElementType.Text,k}return Object.defineProperty(y.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),y}(i);V.Text=s;var u=function(d){t(y,d);function y(){var k=d!==null&&d.apply(this,arguments)||this;return k.type=n.ElementType.Comment,k}return Object.defineProperty(y.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),y}(i);V.Comment=u;var l=function(d){t(y,d);function y(k,j){var T=d.call(this,j)||this;return T.name=k,T.type=n.ElementType.Directive,T}return Object.defineProperty(y.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),y}(i);V.ProcessingInstruction=l;var o=function(d){t(y,d);function y(k){var j=d.call(this)||this;return j.children=k,j}return Object.defineProperty(y.prototype,"firstChild",{get:function(){var k;return(k=this.children[0])!==null&&k!==void 0?k:null},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"childNodes",{get:function(){return this.children},set:function(k){this.children=k},enumerable:!1,configurable:!0}),y}(r);V.NodeWithChildren=o;var a=function(d){t(y,d);function y(){var k=d!==null&&d.apply(this,arguments)||this;return k.type=n.ElementType.CDATA,k}return Object.defineProperty(y.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),y}(o);V.CDATA=a;var c=function(d){t(y,d);function y(){var k=d!==null&&d.apply(this,arguments)||this;return k.type=n.ElementType.Root,k}return Object.defineProperty(y.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),y}(o);V.Document=c;var h=function(d){t(y,d);function y(k,j,T,q){T===void 0&&(T=[]),q===void 0&&(q=k==="script"?n.ElementType.Script:k==="style"?n.ElementType.Style:n.ElementType.Tag);var U=d.call(this,T)||this;return U.name=k,U.attribs=j,U.type=q,U}return Object.defineProperty(y.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"tagName",{get:function(){return this.name},set:function(k){this.name=k},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"attributes",{get:function(){var k=this;return Object.keys(this.attribs).map(function(j){var T,q;return{name:j,value:k.attribs[j],namespace:(T=k["x-attribsNamespace"])===null||T===void 0?void 0:T[j],prefix:(q=k["x-attribsPrefix"])===null||q===void 0?void 0:q[j]}})},enumerable:!1,configurable:!0}),y}(o);V.Element=h;function f(d){return(0,n.isTag)(d)}V.isTag=f;function w(d){return d.type===n.ElementType.CDATA}V.isCDATA=w;function v(d){return d.type===n.ElementType.Text}V.isText=v;function b(d){return d.type===n.ElementType.Comment}V.isComment=b;function E(d){return d.type===n.ElementType.Directive}V.isDirective=E;function S(d){return d.type===n.ElementType.Root}V.isDocument=S;function _(d){return Object.prototype.hasOwnProperty.call(d,"children")}V.hasChildren=_;function O(d,y){y===void 0&&(y=!1);var k;if(v(d))k=new s(d.data);else if(b(d))k=new u(d.data);else if(f(d)){var j=y?$(d.children):[],T=new h(d.name,e({},d.attribs),j);j.forEach(function(P){return P.parent=T}),d.namespace!=null&&(T.namespace=d.namespace),d["x-attribsNamespace"]&&(T["x-attribsNamespace"]=e({},d["x-attribsNamespace"])),d["x-attribsPrefix"]&&(T["x-attribsPrefix"]=e({},d["x-attribsPrefix"])),k=T}else if(w(d)){var j=y?$(d.children):[],q=new a(j);j.forEach(function(A){return A.parent=q}),k=q}else if(S(d)){var j=y?$(d.children):[],U=new c(j);j.forEach(function(A){return A.parent=U}),d["x-mode"]&&(U["x-mode"]=d["x-mode"]),k=U}else if(E(d)){var Y=new l(d.name,d.data);d["x-name"]!=null&&(Y["x-name"]=d["x-name"],Y["x-publicId"]=d["x-publicId"],Y["x-systemId"]=d["x-systemId"]),k=Y}else throw new Error("Not implemented yet: ".concat(d.type));return k.startIndex=d.startIndex,k.endIndex=d.endIndex,d.sourceCodeLocation!=null&&(k.sourceCodeLocation=d.sourceCodeLocation),k}V.cloneNode=O;function $(d){for(var y=d.map(function(j){return O(j,!0)}),k=1;k<y.length;k++)y[k].prev=y[k-1],y[k-1].next=y[k];return y}return V}var nr;function zr(){return nr||(nr=1,function(t){var e=Ze&&Ze.__createBinding||(Object.create?function(l,o,a,c){c===void 0&&(c=a);var h=Object.getOwnPropertyDescriptor(o,a);(!h||("get"in h?!o.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(l,c,h)}:function(l,o,a,c){c===void 0&&(c=a),l[c]=o[a]}),n=Ze&&Ze.__exportStar||function(l,o){for(var a in l)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&e(o,l,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=Ir(),i=tr();n(tr(),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function l(o,a,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof a=="function"&&(c=a,a=s),typeof o=="object"&&(a=o,o=void 0),this.callback=o??null,this.options=a??s,this.elementCB=c??null}return l.prototype.onparserinit=function(o){this.parser=o},l.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(o){this.handleCallback(o)},l.prototype.onclosetag=function(){this.lastNode=null;var o=this.tagStack.pop();this.options.withEndIndices&&(o.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(o)},l.prototype.onopentag=function(o,a){var c=this.options.xmlMode?r.ElementType.Tag:void 0,h=new i.Element(o,a,void 0,c);this.addNode(h),this.tagStack.push(h)},l.prototype.ontext=function(o){var a=this.lastNode;if(a&&a.type===r.ElementType.Text)a.data+=o,this.options.withEndIndices&&(a.endIndex=this.parser.endIndex);else{var c=new i.Text(o);this.addNode(c),this.lastNode=c}},l.prototype.oncomment=function(o){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=o;return}var a=new i.Comment(o);this.addNode(a),this.lastNode=a},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var o=new i.Text(""),a=new i.CDATA([o]);this.addNode(a),o.parent=a,this.lastNode=o},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(o,a){var c=new i.ProcessingInstruction(o,a);this.addNode(c)},l.prototype.handleCallback=function(o){if(typeof this.callback=="function")this.callback(o,this.dom);else if(o)throw o},l.prototype.addNode=function(o){var a=this.tagStack[this.tagStack.length-1],c=a.children[a.children.length-1];this.options.withStartIndices&&(o.startIndex=this.parser.startIndex),this.options.withEndIndices&&(o.endIndex=this.parser.endIndex),a.children.push(o),c&&(o.prev=c,c.next=o),o.parent=a,this.lastNode=null},l}();t.DomHandler=u,t.default=u}(Ze)),Ze}var ln={},rr;function as(){return rr||(rr=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,n){return e[n.toLowerCase()]=n,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")}(ln)),ln}var ar;function qr(){if(ar)return We;ar=1,Object.defineProperty(We,"__esModule",{value:!0}),We.formatAttributes=r,We.escapeSpecialCharacters=s,We.revertEscapedCharacters=u,We.formatDOM=l;var t=zr(),e=as();function n(o){return e.CASE_SENSITIVE_TAG_NAMES_MAP[o]}function r(o){for(var a={},c=0,h=o.length;c<h;c++){var f=o[c];a[f.name]=f.value}return a}function i(o){o=o.toLowerCase();var a=n(o);return a||o}function s(o){return o.replace(e.CARRIAGE_RETURN_REGEX,e.CARRIAGE_RETURN_PLACEHOLDER)}function u(o){return o.replace(e.CARRIAGE_RETURN_PLACEHOLDER_REGEX,e.CARRIAGE_RETURN)}function l(o,a,c){a===void 0&&(a=null);for(var h=[],f,w=0,v=o.length;w<v;w++){var b=o[w];switch(b.nodeType){case 1:{var E=i(b.nodeName);f=new t.Element(E,r(b.attributes)),f.children=l(E==="template"?b.content.childNodes:b.childNodes,f);break}case 3:f=new t.Text(u(b.nodeValue));break;case 8:f=new t.Comment(b.nodeValue);break;default:continue}var S=h[w-1]||null;S&&(S.next=f),f.parent=a,f.prev=S,f.next=null,h.push(f)}return c&&(f=new t.ProcessingInstruction(c.substring(0,c.indexOf(" ")).toLowerCase(),c),f.next=h[0]||null,f.parent=a,h.unshift(f),h[1]&&(h[1].prev=h[0])),h}return We}var ir;function is(){if(ir)return It;ir=1,Object.defineProperty(It,"__esModule",{value:!0}),It.default=b;var t=qr(),e="html",n="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,u=/<body[^]*>/i,l=function(E,S){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},o=function(E,S){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},a=typeof window=="object"&&window.DOMParser;if(typeof a=="function"){var c=new a,h="text/html";o=function(E,S){return S&&(E="<".concat(S,">").concat(E,"</").concat(S,">")),c.parseFromString(E,h)},l=o}if(typeof document=="object"&&document.implementation){var f=document.implementation.createHTMLDocument();l=function(E,S){if(S){var _=f.documentElement.querySelector(S);return _&&(_.innerHTML=E),f}return f.documentElement.innerHTML=E,f}}var w=typeof document=="object"&&document.createElement("template"),v;w&&w.content&&(v=function(E){return w.innerHTML=E,w.content.childNodes});function b(E){var S,_;E=(0,t.escapeSpecialCharacters)(E);var O=E.match(i),$=O&&O[1]?O[1].toLowerCase():"";switch($){case e:{var d=o(E);if(!s.test(E)){var y=d.querySelector(n);(S=y==null?void 0:y.parentNode)===null||S===void 0||S.removeChild(y)}if(!u.test(E)){var y=d.querySelector(r);(_=y==null?void 0:y.parentNode)===null||_===void 0||_.removeChild(y)}return d.querySelectorAll(e)}case n:case r:{var k=l(E).querySelectorAll($);return u.test(E)&&s.test(E)?k[0].parentNode.childNodes:k}default:{if(v)return v(E);var y=l(E,r).querySelector(r);return y.childNodes}}}return It}var or;function os(){if(or)return ct;or=1;var t=ct&&ct.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ct,"__esModule",{value:!0}),ct.default=i;var e=t(is()),n=qr(),r=/<(![a-zA-Z\s]+)>/;function i(s){if(typeof s!="string")throw new TypeError("First argument must be a string");if(!s)return[];var u=s.match(r),l=u?u[1]:void 0;return(0,n.formatDOM)((0,e.default)(s),null,l)}return ct}var zt={},je={},wt={},sr;function ss(){if(sr)return wt;sr=1;var t=0;wt.SAME=t;var e=1;return wt.CAMELCASE=e,wt.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},wt}var lr;function ls(){if(lr)return je;lr=1;const t=0,e=1,n=2,r=3,i=4,s=5,u=6;function l(d){return a.hasOwnProperty(d)?a[d]:null}function o(d,y,k,j,T,q,U){this.acceptsBooleans=y===n||y===r||y===i,this.attributeName=j,this.attributeNamespace=T,this.mustUseProperty=k,this.propertyName=d,this.type=y,this.sanitizeURL=q,this.removeEmptyString=U}const a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(d=>{a[d]=new o(d,t,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([d,y])=>{a[d]=new o(d,e,!1,y,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(d=>{a[d]=new o(d,n,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(d=>{a[d]=new o(d,n,!1,d,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(d=>{a[d]=new o(d,r,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(d=>{a[d]=new o(d,r,!0,d,null,!1,!1)}),["capture","download"].forEach(d=>{a[d]=new o(d,i,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(d=>{a[d]=new o(d,u,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(d=>{a[d]=new o(d,s,!1,d.toLowerCase(),null,!1,!1)});const h=/[\-\:]([a-z])/g,f=d=>d[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(d=>{const y=d.replace(h,f);a[y]=new o(y,e,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(d=>{const y=d.replace(h,f);a[y]=new o(y,e,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(d=>{const y=d.replace(h,f);a[y]=new o(y,e,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(d=>{a[d]=new o(d,e,!1,d.toLowerCase(),null,!1,!1)});const w="xlinkHref";a[w]=new o("xlinkHref",e,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(d=>{a[d]=new o(d,e,!1,d.toLowerCase(),null,!0,!0)});const{CAMELCASE:v,SAME:b,possibleStandardNames:E}=ss(),_=":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",O=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+_+"]*$")),$=Object.keys(E).reduce((d,y)=>{const k=E[y];return k===b?d[y]=y:k===v?d[y.toLowerCase()]=y:d[y]=k,d},{});return je.BOOLEAN=r,je.BOOLEANISH_STRING=n,je.NUMERIC=s,je.OVERLOADED_BOOLEAN=i,je.POSITIVE_NUMERIC=u,je.RESERVED=t,je.STRING=e,je.getPropertyInfo=l,je.isCustomAttribute=O,je.possibleStandardNames=$,je}var Et={},ut={},cn,cr;function cs(){if(cr)return cn;cr=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
`,a="/",c="*",h="",f="comment",w="declaration";cn=function(b,E){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];E=E||{};var S=1,_=1;function O(P){var A=P.match(e);A&&(S+=A.length);var G=P.lastIndexOf(o);_=~G?P.length-G:_+P.length}function $(){var P={line:S,column:_};return function(A){return A.position=new d(P),j(),A}}function d(P){this.start=P,this.end={line:S,column:_},this.source=E.source}d.prototype.content=b;function y(P){var A=new Error(E.source+":"+S+":"+_+": "+P);if(A.reason=P,A.filename=E.source,A.line=S,A.column=_,A.source=b,!E.silent)throw A}function k(P){var A=P.exec(b);if(A){var G=A[0];return O(G),b=b.slice(G.length),A}}function j(){k(n)}function T(P){var A;for(P=P||[];A=q();)A!==!1&&P.push(A);return P}function q(){var P=$();if(!(a!=b.charAt(0)||c!=b.charAt(1))){for(var A=2;h!=b.charAt(A)&&(c!=b.charAt(A)||a!=b.charAt(A+1));)++A;if(A+=2,h===b.charAt(A-1))return y("End of comment missing");var G=b.slice(2,A-2);return _+=2,O(G),b=b.slice(A),_+=2,P({type:f,comment:G})}}function U(){var P=$(),A=k(r);if(A){if(q(),!k(i))return y("property missing ':'");var G=k(s),de=P({type:w,property:v(A[0].replace(t,h)),value:G?v(G[0].replace(t,h)):h});return k(u),de}}function Y(){var P=[];T(P);for(var A;A=U();)A!==!1&&(P.push(A),T(P));return P}return j(),Y()};function v(b){return b?b.replace(l,h):h}return cn}var ur;function us(){if(ur)return ut;ur=1;var t=ut&&ut.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=n;var e=t(cs());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var u=(0,e.default)(r),l=typeof i=="function";return u.forEach(function(o){if(o.type==="declaration"){var a=o.property,c=o.value;l?i(a,c,o):c&&(s=s||{},s[a]=c)}}),s}return ut}var _t={},dr;function ds(){if(dr)return _t;dr=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(a){return!a||n.test(a)||t.test(a)},u=function(a,c){return c.toUpperCase()},l=function(a,c){return"".concat(c,"-")},o=function(a,c){return c===void 0&&(c={}),s(a)?a:(a=a.toLowerCase(),c.reactCompat?a=a.replace(i,l):a=a.replace(r,l),a.replace(e,u))};return _t.camelCase=o,_t}var jt,pr;function ps(){if(pr)return jt;pr=1;var t=jt&&jt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(us()),n=ds();function r(i,s){var u={};return!i||typeof i!="string"||(0,e.default)(i,function(l,o){l&&o&&(u[(0,n.camelCase)(l,s)]=o)}),u}return r.default=r,jt=r,jt}var hr;function Hr(){return hr||(hr=1,function(t){var e=Et&&Et.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=s,t.setStyleProp=l;var n=Gt(),r=e(ps()),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function s(c,h){return c.includes("-")?!i.has(c):!!(h&&typeof h.is=="string")}var u={reactCompat:!0};function l(c,h){if(typeof c=="string"){if(!c.trim()){h.style={};return}try{h.style=(0,r.default)(c,u)}catch{h.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var o=function(c){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(c.name)};t.canTextBeChildOfNode=o;var a=function(c){return c};t.returnFirstArg=a}(Et)),Et}var fr;function Vr(){if(fr)return zt;fr=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.default=s;var t=ls(),e=Hr(),n=["checked","value"],r=["input","select","textarea"],i={reset:!0,submit:!0};function s(l,o){l===void 0&&(l={});var a={},c=!!(l.type&&i[l.type]);for(var h in l){var f=l[h];if((0,t.isCustomAttribute)(h)){a[h]=f;continue}var w=h.toLowerCase(),v=u(w);if(v){var b=(0,t.getPropertyInfo)(v);switch(n.includes(v)&&r.includes(o)&&!c&&(v=u("default"+w)),a[v]=f,b&&b.type){case t.BOOLEAN:a[v]=!0;break;case t.OVERLOADED_BOOLEAN:f===""&&(a[v]=!0);break}continue}e.PRESERVE_CUSTOM_ATTRIBUTES&&(a[h]=f)}return(0,e.setStyleProp)(l.style,a),a}function u(l){return t.possibleStandardNames[l]}return zt}var dt={},gr;function hs(){if(gr)return dt;gr=1;var t=dt&&dt.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=s;var e=Gt(),n=t(Vr()),r=Hr(),i={cloneElement:e.cloneElement,createElement:e.createElement,isValidElement:e.isValidElement};function s(l,o){o===void 0&&(o={});for(var a=[],c=typeof o.replace=="function",h=o.transform||r.returnFirstArg,f=o.library||i,w=f.cloneElement,v=f.createElement,b=f.isValidElement,E=l.length,S=0;S<E;S++){var _=l[S];if(c){var O=o.replace(_,S);if(b(O)){E>1&&(O=w(O,{key:O.key||S})),a.push(h(O,_,S));continue}}if(_.type==="text"){var $=!_.data.trim().length;if($&&_.parent&&!(0,r.canTextBeChildOfNode)(_.parent)||o.trim&&$)continue;a.push(h(_.data,_,S));continue}var d=_,y={};u(d)?((0,r.setStyleProp)(d.attribs.style,d.attribs),y=d.attribs):d.attribs&&(y=(0,n.default)(d.attribs,d.name));var k=void 0;switch(_.type){case"script":case"style":_.children[0]&&(y.dangerouslySetInnerHTML={__html:_.children[0].data});break;case"tag":_.name==="textarea"&&_.children[0]?y.defaultValue=_.children[0].data:_.children&&_.children.length&&(k=s(_.children,o));break;default:continue}E>1&&(y.key=S),a.push(h(v(_.name,y,k),_,S))}return a.length===1?a[0]:a}function u(l){return r.PRESERVE_CUSTOM_ATTRIBUTES&&l.type==="tag"&&(0,r.isCustomComponent)(l.name,l.attribs)}return dt}var yr;function fs(){return yr||(yr=1,function(t){var e=xt&&xt.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=l;var n=e(os());t.htmlToDOM=n.default;var r=e(Vr());t.attributesToProps=r.default;var i=e(hs());t.domToReact=i.default;var s=zr();Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var u={lowerCaseAttributeNames:!1};function l(o,a){if(typeof o!="string")throw new TypeError("First argument must be a string");return o?(0,i.default)((0,n.default)(o,(a==null?void 0:a.htmlparser2)||u),a):[]}}(xt)),xt}var gs=fs();const mr=jr(gs),Yc=mr.default||mr,Ye=(t,e,n,r,i)=>{if(!r)throw new Error(i??`Invalid property path: ${e}
Couldn't access "${n}" in ${JSON.stringify(t)}`)},vr=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),Ht=t=>Array.isArray(t),Br=(t,e)=>t.filter((n,r)=>r!==e),ys=(t,e,n,r={})=>{const{remove:i=!1,createNew:s=!0,noError:u=!1}=r,l=t,o=typeof(a=e)=="string"?a:typeof a=="number"?String(a):a.reduce((f,w)=>typeof w=="number"?`${f}[${w}]`:f===""?w:`${f}.${w}`,"");var a;const c=Object.assign(Object.assign({},r),{remove:i,createNew:s,noError:u,fullData:l,fullPath:o}),h=Array.isArray(e)?e:(f=>Array.isArray(f)?f:f.split(/(\.|\[\d+\])/).filter(w=>w!=="."&&w!=="").map(w=>{const v=/\[(\d+)\]/.exec(w);return v?Number(v[1]):w}).flat())(e).filter(f=>f!=="");return Ht(t)&&i&&h.length===1?Br(t,h[0]):Rt(t,h,n,c)},Rt=(t,e,n,r)=>{const i=vr(t)?Object.assign({},t):null,s=Ht(t)?[...t]:null;if(e.length===0)return t;if(!i&&!s)throw new Error("Can't assign property -- invalid input object");const{createNew:u,remove:l,noError:o,fullData:a,fullPath:c}=r,h=e[0];if(s&&typeof h=="string")return s.map(b=>Rt(b,e,n,r));if(e.length===1){if(i&&typeof h=="string"){const b=ms(i,h,n,r);return b??i}return s&&typeof h=="number"?(vs(s,h,n,r),s):(Ye(a,c,h,o),t)}const f=i||s||[];if(l&&e.length===2&&typeof e[1]=="number"){const b=f[h],E=e[1];return Ht(b)?f[h]=Br(b,E):Ye(a,c,h,o,"Trying to remove an indexed item from an object that is not an array"),f}const w=e.slice(1);if(h in t){if(v=f[h],!Ht(v)&&!vr(v)){if(!u)return Ye(a,c,h,o),f;f[h]={}}return f[h]=Rt(f[h],w,n,r),f}var v;if(u){const b=typeof w[0]=="number"?[]:{};if(i)return f[h]=b,f[h]=Rt(f[h],w,n,r),f;if(s&&Array.isArray(f)){f.push(b);const E=f.length-1;return f[E]=Rt(f[E],w,n,r),f}}return Ye(a,c,h,o),f},ms=(t,e,n,r)=>{const{remove:i,createNew:s,noError:u,insertAfter:l,insertBefore:o,fullData:a,fullPath:c}=r;if(o!==void 0||l!==void 0){const f=Object.entries(t);let w=1/0;return w=typeof o=="number"?o:typeof l=="number"?l:f.findIndex(([v,b])=>v===(o??l)),l&&w++,f.splice(w,0,[e,n]),Object.fromEntries(f)}const h=e in t;i?h?delete t[e]:Ye(a,c,e,u):s||h?t[e]=n:Ye(a,c,e,u)},vs=(t,e,n,r)=>{const{noError:i,fullData:s,fullPath:u,createNew:l,insert:o}=r;o&&t.splice(e,0,n),e in t?t[e]=n:l?t.push(n):Ye(s,u,e,i)},ht=(t,e,n)=>{const r=Array.isArray(e)?e:ks(e);if(r.length===0)return t;const i=r[0];if(Array.isArray(t)&&typeof i!="number")return t.map(u=>ht(u,r));if(typeof t!="object"||t===null||!(i in t))return bs(t,i);const s=t[i];return r.length===1?s:ht(s,r.slice(1))},ks=t=>t.split(/(\.|\[\d+\])/).filter(e=>e!=="."&&e!=="").map(e=>{const n=/\[(\d+)\]/.exec(e);return n?Number(n[1]):e}).flat(),bs=(t,e,n)=>{throw new Error(`Unable to extract object property
Looking for property: ${e}
In object: ${JSON.stringify(t)}`)};function Fr(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function pt(t,e,n,r){return new(n||(n=Promise))(function(i,s){function u(a){try{o(r.next(a))}catch(c){s(c)}}function l(a){try{o(r.throw(a))}catch(c){s(c)}}function o(a){var c;a.done?i(a.value):(c=a.value,c instanceof n?c:new n(function(h){h(c)})).then(u,l)}o((r=r.apply(t,[])).next())})}const Ur=({className:t,name:e,value:n,setValue:r,handleKeyPress:i,styles:s,textAreaRef:u})=>{if(typeof n!="string")return null;const l=n.slice(-1)===`
`?n+".":n;return g.jsxs("div",{style:{display:"grid"},children:[g.jsx("textarea",{id:`${e}_textarea`,ref:u,style:Object.assign({height:"auto",gridArea:"1 / 1 / 2 / 2",overflowY:"auto",whiteSpace:"pre-wrap"},s),rows:1,className:t,name:`${e}_textarea`,value:n,onChange:o=>r(o.target.value),autoFocus:!0,onFocus:o=>{n.length<40&&o.target.select()},onKeyDown:i}),g.jsx("span",{className:t,style:Object.assign({visibility:"hidden",height:"auto",gridArea:"1 / 1 / 2 / 2",color:"red",opacity:.9,whiteSpace:"pre-wrap",overflowY:"auto",border:"1px solid transparent"},s),children:l})]})},ft=t=>t!==null&&typeof t=="object",Gr=(t,e,n,r="")=>{if(!n&&!r)return!0;switch(t){case"collection":if(n){if(n(e,r))return!0;if(!gn(r,e,n))return!1}if(!n&&r&&!gn(r,e))return!1;break;case"value":if(n&&!n(e,r)||!n&&r&&!gt(e,r))return!1}return!0},gn=(t="",e,n=gt)=>{const r=e.value;return Object.entries(r).some(([i,s])=>{const u=[...e.path,i],l=Object.assign(Object.assign({},e),{key:i,path:u,level:e.level+1,value:s,size:u.length,parentData:r});return ft(s)?gn(t,l,n):n(l,t)})},gt=(t,e="")=>{const{value:n}=t;if(n===null&&"null".includes(e.toLowerCase()))return!0;switch(typeof n){case"string":return n.toLowerCase().includes(e.toLowerCase());case"number":return!!String(n).includes(e);case"boolean":return n?"true".includes(e.toLowerCase())||e==="1":"false".includes(e.toLowerCase())||e==="0";default:return!1}},kr=({key:t,path:e},n="")=>!!gt({value:t},n)||!!e.some(r=>gt({value:r},n)),rt=(t,e)=>(e??"")+t.map(n=>n===""?"\0":n).join("."),Tn=t=>t.shiftKey?"Shift":t.metaKey?"Meta":t.ctrlKey?"Control":t.altKey?"Alt":void 0,xs=(t,e,n)=>{const r=t.key,i=Tn(t);if(Array.isArray(e))return!!i&&e.includes(i);const{key:s,modifier:u}=e;return(n!=="stringLineBreak"||r!=="Enter"||i!=="Shift"||s!=="Enter"||!(u!=null&&u.includes("Shift")))&&r===s&&(u===i||Array.isArray(u)&&u.includes(i))},Xe={key:"Enter"},br={confirm:Xe,cancel:{key:"Escape"},objectConfirm:Object.assign(Object.assign({},Xe),{modifier:["Meta","Shift","Control"]}),objectLineBreak:Xe,stringConfirm:Xe,stringLineBreak:Object.assign(Object.assign({},Xe),{modifier:["Shift"]}),numberConfirm:Xe,numberUp:{key:"ArrowUp"},numberDown:{key:"ArrowDown"},tabForward:{key:"Tab"},tabBack:{key:"Tab",modifier:"Shift"},booleanConfirm:Xe,booleanToggle:{key:" "},clipboardModifier:["Meta","Control"],collapseModifier:["Alt"]},Qe=(t,e,n="next",r)=>{const i=e.slice(0,e.length-1),s=e.slice(-1)[0];if(s===void 0)return null;const u=ht(t,i),l=ws(u);Array.isArray(u)||r(l,({key:c,value:h})=>[c,h]);const o=l.findIndex(c=>c.key===s),a=l[o+(n==="next"?1:-1)];return a?ft(a.value)?Object.keys(a.value).length===0?Qe(t,[...i,a.key],n,r):Kr(t,[...i,a.key],n,r):[...i,a.key]:i.length===0?null:Qe(t,i,n,r)},Kr=(t,e,n="next",r)=>{const i=ht(t,e);if(!ft(i))return e;const s=Array.isArray(i)?i.map((l,o)=>o):Object.keys(i);r(s,l=>[l,i]);const u=n==="next"?s[0]:s[s.length-1];return Kr(t,[...e,u],n,r)},ws=t=>Array.isArray(t)?t.map((e,n)=>({index:n,value:e,key:n})):Object.entries(t).map(([e,n],r)=>({key:e,value:n,index:r})),Wr=(t,e)=>{var n,r,i,s;const u=t.current,l=(n=u==null?void 0:u.selectionStart)!==null&&n!==void 0?n:1/0,o=(r=u==null?void 0:u.selectionEnd)!==null&&r!==void 0?r:1/0,a=((i=u==null?void 0:u.textContent)===null||i===void 0?void 0:i.slice(0,l))+e+((s=u==null?void 0:u.textContent)===null||s===void 0?void 0:s.slice(o));return u.value=a,u==null||u.setSelectionRange(l+1,l+1),a},yn=t=>{if(t!==Zr){if(Array.isArray(t))return t.map(e=>yn(e));if(t&&typeof t=="object")for(const e in t)t[e]=yn(t[e]);return t}},Zr="__​undefined__",Rn={displayName:"Default",fragments:{edit:"rgb(42, 161, 152)"},styles:{container:{backgroundColor:"#f6f6f6",fontFamily:"monospace"},collection:{},collectionInner:{},collectionElement:{},dropZone:{},property:"#292929",bracket:{color:"rgb(0, 43, 54)",fontWeight:"bold"},itemCount:{color:"rgba(0, 0, 0, 0.3)",fontStyle:"italic"},string:"rgb(203, 75, 22)",number:"rgb(38, 139, 210)",boolean:"green",null:{color:"rgb(220, 50, 47)",fontVariant:"small-caps",fontWeight:"bold"},input:["#292929"],inputHighlight:"#b3d8ff",error:{fontSize:"0.8em",color:"red",fontWeight:"bold"},iconCollection:"rgb(0, 43, 54)",iconEdit:"edit",iconDelete:"rgb(203, 75, 22)",iconAdd:"edit",iconCopy:"rgb(38, 139, 210)",iconOk:"green",iconCancel:"rgb(203, 75, 22)"}},Xr=C.createContext({getStyles:()=>({}),icons:{}}),Es=({theme:t=Rn,icons:e={},docRoot:n,children:r})=>{const i=_s(t,n);return g.jsx(Xr.Provider,{value:{getStyles:(s,u)=>typeof i[s]=="function"?i[s](u):i[s],icons:e},children:r})},De=()=>C.useContext(Xr),_s=(t,e)=>{var n,r,i,s;const u={},l=(Array.isArray(t)?t:[t]).map(c=>js(c)?un({fragments:{},styles:c},u):un(c,u)),o=un(Rn,{});Object.keys(o).forEach(c=>{const h=c;l.forEach(f=>{f[h]&&(o[h]=Object.assign(Object.assign({},o[h]),f[h]))})});const a=Object.assign({},o);return Object.entries(u).forEach(([c,h])=>{const f=c;a[f]=w=>{const v=h(w)||{};return Object.assign(Object.assign({},o[f]),v)}}),typeof(a==null?void 0:a.inputHighlight)!="function"&&(!((n=a==null?void 0:a.inputHighlight)===null||n===void 0)&&n.backgroundColor)&&e.style.setProperty("--jer-highlight-color",(r=a==null?void 0:a.inputHighlight)===null||r===void 0?void 0:r.backgroundColor),typeof(a==null?void 0:a.iconCopy)!="function"&&(!((i=a==null?void 0:a.iconCopy)===null||i===void 0)&&i.color)&&e.style.setProperty("--jer-icon-copy-color",(s=a==null?void 0:a.iconCopy)===null||s===void 0?void 0:s.color),a},un=(t,e)=>{const{fragments:n,styles:r}=t,i={};return Object.entries(r).forEach(([s,u])=>{const l=(Array.isArray(u)?u:[u]).reduce((o,a)=>{var c,h;if(typeof a=="function")return e[s]=a,Object.assign({},o);if(typeof a=="string"){const f=(c=n==null?void 0:n[a])!==null&&c!==void 0?c:a;return typeof f=="string"?Object.assign(Object.assign({},o),{[(h=Cs[s])!==null&&h!==void 0?h:"color"]:f}):Object.assign(Object.assign({},o),f)}return Object.assign(Object.assign({},o),a)},{});i[s]=l}),i},js=t=>!("styles"in t),Cs={container:"backgroundColor",collection:"backgroundColor",collectionInner:"backgroundColor",collectionElement:"backgroundColor",dropZone:"borderColor",inputHighlight:"backgroundColor"},Yr=C.createContext(null),Ss=({children:t,onEditEvent:e,onCollapse:n})=>{const[r,i]=C.useState(null),[s,u]=C.useState(null),[l,o]=C.useState(null),[a,c]=C.useState({path:null,pathString:null}),h=C.useRef(null),f=C.useRef("next"),w=C.useRef(null);return g.jsx(Yr.Provider,{value:{collapseState:r,setCollapseState:v=>{i(v),n&&v!==null&&(Array.isArray(v)?v.forEach(b=>n(b)):n(v)),v!==null&&setTimeout(()=>i(null),2e3)},getMatchingCollapseState:v=>{if(Array.isArray(r)){for(const b of r)if(xr(v,b))return b;return null}return xr(v,r)?r:null},currentlyEditingElement:s,setCurrentlyEditingElement:(v,b)=>{const E=typeof v=="string"||v===null?v:rt(v,b==="key"?"key_":void 0);s!==null&&E!==null&&h.current!==null&&h.current(),u(E),e&&e(v,b==="key"),h.current=typeof b=="function"?b:null},areChildrenBeingEdited:v=>s!==null&&s.includes(v),previouslyEditedElement:w.current,setPreviouslyEditedElement:v=>{w.current=v},tabDirection:f.current,setTabDirection:v=>{f.current=v},previousValue:l,setPreviousValue:o,dragSource:a,setDragSource:c},children:t})},tt=()=>{const t=C.useContext(Yr);if(!t)throw new Error("Missing Context Provider");return t},xr=(t,e)=>{if(e===null)return!1;if(!e.includeChildren)return e.path.every((n,r)=>t[r]===n)&&e.path.length===t.length;for(const[n,r]of e.path.entries())if(r!==t[n])return!1;return!0},mn="**INVALID_FUNCTION**",Ts=({nodeData:t,showStringQuotes:e=!0,stringTruncate:n=200,pathString:r,canEdit:i,setIsEditing:s,styles:u,translate:l,value:o,TextWrapper:a=({children:c})=>c})=>{const c=o??t.value,[h,f]=C.useState(!1),w=e?'"':"",v=c.length>n,b=()=>{i?s(!0):f(!h)};return g.jsxs("div",{id:`${r}_display`,onDoubleClick:b,onClick:E=>{(E.getModifierState("Control")||E.getModifierState("Meta"))&&b()},className:"jer-value-string",style:u,children:[w,v?g.jsxs(g.Fragment,h?{children:[g.jsx(a,{children:g.jsxs("span",{children:[c,w]})}),g.jsxs("span",{className:"jer-string-expansion jer-show-less",onClick:()=>f(!1),children:[" ",l("SHOW_LESS",t)]})]}:{children:[g.jsxs(a,{children:[g.jsx("span",{children:c.slice(0,n-2).trimEnd()})," "]}),g.jsx("span",{className:"jer-string-expansion jer-ellipsis",onClick:()=>f(!0),children:"..."}),w]}):g.jsx(a,{children:`${c}${w}`})]})},Rs=({styles:t,pathString:e,value:n,setValue:r,handleEdit:i,handleKeyboard:s,keyboardCommon:u})=>{const l=C.useRef(null);return g.jsx(Ur,{className:"jer-input-text",textAreaRef:l,name:e,value:n,setValue:r,handleKeyPress:o=>{s(o,Object.assign({stringConfirm:i,stringLineBreak:()=>{const a=Wr(l,`
`);r(a)}},u))},styles:t})},As=t=>{var{isEditing:e,path:n,enumType:r}=t,i=Fr(t,["isEditing","path","enumType"]);const{getStyles:s}=De(),u=rt(n),{value:l,setValue:o,nodeData:a,handleEdit:c,handleKeyboard:h,keyboardCommon:f}=i;return e&&r?g.jsxs("div",{className:"jer-select jer-select-enums",children:[g.jsx("select",{name:`${u}-value-select`,className:"jer-select-inner",onChange:w=>o(w.target.value),value:l,autoFocus:!0,onKeyDown:w=>{h(w,Object.assign({stringConfirm:c},f))},children:r.values.map(w=>g.jsx("option",{value:w,children:w},w))}),g.jsx("span",{className:"focus"})]}):e?g.jsx(Rs,Object.assign({styles:s("input",a),pathString:u},i,{setValue:i.setValue})):g.jsx(Ts,Object.assign({pathString:u,styles:s("string",a)},i))},Os=({value:t,setValue:e,isEditing:n,path:r,setIsEditing:i,handleEdit:s,nodeData:u,handleKeyboard:l,keyboardCommon:o})=>{const{getStyles:a}=De();return n?g.jsx("input",{className:"jer-input-number",type:"text",name:rt(r),value:t,onChange:c=>e(c.target.value.replace(/[^0-9.-]/g,"")),autoFocus:!0,onFocus:c=>setTimeout(()=>c.target.select(),10),onKeyDown:c=>l(c,Object.assign({numberConfirm:s,numberUp:()=>e(Number(t)+1),numberDown:()=>e(Number(t)-1)},o)),style:Object.assign({width:String(t).length/1.5+2+"em"},a("input",u))}):g.jsx("span",{onDoubleClick:()=>i(!0),className:"jer-value-number",style:a("number",u),children:t})},Ns=({value:t,setValue:e,isEditing:n,path:r,setIsEditing:i,handleEdit:s,nodeData:u,handleKeyboard:l,keyboardCommon:o})=>{const{getStyles:a}=De();return typeof t!="boolean"?null:n?g.jsx("input",{className:"jer-input-boolean",type:"checkbox",name:rt(r),checked:t,onChange:()=>e(!t),onKeyDown:c=>{c.key===" "&&c.preventDefault(),l(c,Object.assign({booleanConfirm:s,booleanToggle:()=>e(!t)},o))},autoFocus:!0}):g.jsx("span",{onDoubleClick:()=>i(!0),className:"jer-value-boolean",style:a("boolean",u),children:String(t)})},Ms=(t,e)=>{const n=C.useRef(void 0),r=C.useRef(e);C.useEffect(()=>{r.current=e},[e]);const i=s=>{r.current(s)};C.useEffect(()=>{if(window.clearTimeout(n.current),t)return n.current=window.setTimeout(()=>{window.addEventListener("keydown",i)},100),()=>{window.clearTimeout(n.current),window.removeEventListener("keydown",i)}},[t])},Ds=({value:t,isEditing:e,setIsEditing:n,handleEdit:r,nodeData:i,handleKeyboard:s,keyboardCommon:u})=>{const{getStyles:l}=De();return Ms(e,o=>s(o,Object.assign({confirm:r},u))),g.jsx("div",{onDoubleClick:()=>n(!0),className:"jer-value-null",style:l("null",i),children:String(t)})},Ps=({value:t})=>{let e="Error!";switch(typeof t){case"string":t===mn&&(e="Function");break;case"undefined":e="Undefined";break;case"symbol":e="Symbol"}return g.jsx("span",{className:"jer-value-invalid",children:e})},$s=({size:t,style:e,className:n})=>g.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:n,style:e,children:[g.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4z"}),g.jsx("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"})]}),Ls=({size:t,style:e,className:n})=>g.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:n,style:e,transform:"translate(0, 0.5)",children:[g.jsx("path",{d:"M7 17.013l4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"}),g.jsx("path",{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"})]}),Is=({size:t,style:e,className:n})=>g.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:n,style:e,children:g.jsx("path",{d:"M6 19a2 2 0 002 2h8a2 2 0 002-2V7H6v12m2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12M15.5 4l-1-1h-5l-1 1H5v2h14V4h-3.5z"})}),zs=({size:t,style:e,className:n})=>g.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:t,height:t,className:n,style:e,children:[g.jsx("path",{d:"M9 2 H15 A1 1 0 0 1 16 3 V5 A1 1 0 0 1 15 6 H9 A1 1 0 0 1 8 5 V3 A1 1 0 0 1 9 2 z"}),g.jsx("path",{d:"M8 4H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2v-2M16 4h2a2 2 0 012 2v4M21 14H11"}),g.jsx("path",{d:"M15 10l-4 4 4 4"})]}),qs=({size:t,style:e,className:n})=>g.jsxs("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:t,height:t,className:n,style:e,children:[g.jsx("path",{d:"M22 11.08V12a10 10 0 11-5.93-9.14"}),g.jsx("path",{d:"M22 4L12 14.01l-3-3"})]}),Hs=({size:t,style:e,className:n})=>g.jsx("svg",{baseProfile:"tiny",viewBox:"0 0 24 24",fill:"currentColor",width:t,height:t,className:n,style:e,children:g.jsx("path",{d:"M12 4c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm-5 8c0-.832.224-1.604.584-2.295l6.711 6.711A4.943 4.943 0 0112 17c-2.757 0-5-2.243-5-5zm9.416 2.295L9.705 7.584A4.943 4.943 0 0112 7c2.757 0 5 2.243 5 5 0 .832-.224 1.604-.584 2.295z"})}),Vs=({size:t,style:e,className:n})=>g.jsx("svg",{viewBox:"0 0 512 512",fill:"currentColor",width:t,height:t,className:n,style:e,children:g.jsx("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"})}),Je=({name:t,nodeData:e})=>{var n,r,i,s,u,l,o;const{getStyles:a,icons:c}=De(),h={size:"1.4em",className:"jer-icon"};switch(t){case"add":return(n=c==null?void 0:c.add)!==null&&n!==void 0?n:g.jsx($s,Object.assign({},h,{style:a("iconAdd",e)}));case"edit":return(r=c==null?void 0:c.edit)!==null&&r!==void 0?r:g.jsx(Ls,Object.assign({},h,{style:a("iconEdit",e)}));case"delete":return(i=c==null?void 0:c.delete)!==null&&i!==void 0?i:g.jsx(Is,Object.assign({},h,{style:a("iconDelete",e),size:"1.45em"}));case"copy":return(s=c==null?void 0:c.copy)!==null&&s!==void 0?s:g.jsx(zs,Object.assign({},h,{style:a("iconCopy",e),size:"1.2em"}));case"ok":return(u=c==null?void 0:c.ok)!==null&&u!==void 0?u:g.jsx(qs,Object.assign({},h,{style:Object.assign({fontSize:"90%"},a("iconOk",e))}));case"cancel":return(l=c==null?void 0:c.cancel)!==null&&l!==void 0?l:g.jsx(Hs,Object.assign({},h,{style:Object.assign({fontSize:"130%"},a("iconCancel",e))}));case"chevron":return(o=c==null?void 0:c.chevron)!==null&&o!==void 0?o:g.jsx(Vs,{size:"1em",style:a("iconCollection",e)});default:return g.jsx(g.Fragment,{})}},Qr=({startEdit:t,handleDelete:e,handleAdd:n,enableClipboard:r,type:i,customButtons:s,nodeData:u,translate:l,keyboardControls:o,handleKeyboard:a,editConfirmRef:c,getNewKeyOptions:h,jsonStringify:f})=>{const{getStyles:w}=De(),v=l("KEY_NEW",u),[b,E]=C.useState(v),[S,_]=C.useState(!1),{key:O,path:$,value:d}=u,y=Array.isArray(S),k=j=>{var T;if(!j)return void _(!1);const q=Object.keys(ht(u.fullData,$)),U=h?(T=h(u))===null||T===void 0?void 0:T.filter(Y=>!q.includes(Y)):null;U&&E(""),_(U==null||U)};return g.jsxs("div",{className:"jer-edit-buttons",style:{opacity:S?1:void 0},onClick:j=>j.stopPropagation(),children:[r&&g.jsx("div",{onClick:j=>{var T;j.stopPropagation();let q,U,Y="value",P="",A=null;if(r){const G=Tn(j);if(G&&o.clipboardModifier.includes(G)?(q=Bs($),P=q,Y="path"):(q=d,P=typeof q=="object"?f(d):String(q)),!navigator.clipboard)return void(typeof r=="function"&&r({success:!1,value:q,stringValue:P,path:$,key:O,type:Y,errorMessage:"Can't access clipboard API"}));(T=navigator.clipboard)===null||T===void 0||T.writeText(P).then(()=>U=!0).catch(de=>{U=!1,A=de.message}).finally(()=>{typeof r=="function"&&r({success:U,errorMessage:A,value:q,stringValue:P,path:$,key:O,type:Y})})}},className:"jer-copy-pulse",children:g.jsx(Je,{name:"copy",nodeData:u})}),t&&g.jsx("div",{onClick:t,children:g.jsx(Je,{name:"edit",nodeData:u})}),e&&g.jsx("div",{onClick:e,children:g.jsx(Je,{name:"delete",nodeData:u})}),n&&g.jsx("div",{onClick:()=>{i==="object"?k(!0):n("")},children:g.jsx(Je,{name:"add",nodeData:u})}),s==null?void 0:s.map(({Element:j,onClick:T},q)=>g.jsx("div",{onClick:U=>T&&T(u,U),children:g.jsx(j,{nodeData:u})},q)),S&&n&&i==="object"&&g.jsxs(g.Fragment,{children:[y?g.jsxs("div",{className:"jer-select jer-select-keys",children:[g.jsxs("select",{name:"new-key-select",className:"jer-select-inner",onChange:j=>{n(j.target.value),k(!1)},defaultValue:"",autoFocus:!0,onKeyDown:j=>{a(j,{cancel:()=>k(!1)})},children:[g.jsx("option",{value:"",disabled:!0,children:S.length>0?l("KEY_SELECT",u):l("NO_KEY_OPTIONS",u)}),S.map(j=>g.jsx("option",{value:j,children:j},j))]}),g.jsx("span",{className:"focus"})]}):g.jsx("input",{className:"jer-input-new-key",type:"text",name:"new-object-key",value:b,onChange:j=>E(j.target.value),autoFocus:!0,onFocus:j=>j.target.select(),onKeyDown:j=>{a(j,{stringConfirm:()=>{n&&(k(!1),n(b),E(v))},cancel:()=>{k(!1),E(v)}})},style:w("input",u)}),g.jsx(An,{onOk:()=>{y&&!b||(k(!1),n(b))},onCancel:()=>{k(!1)},nodeData:u,editConfirmRef:c,hideOk:y})]})]})},An=({onOk:t,onCancel:e,nodeData:n,editConfirmRef:r,hideOk:i=!1})=>g.jsxs("div",{className:"jer-confirm-buttons",children:[!i&&g.jsx("div",{onClick:t,ref:r,children:g.jsx(Je,{name:"ok",nodeData:n})}),g.jsx("div",{onClick:e,children:g.jsx(Je,{name:"cancel",nodeData:n})})]}),Bs=t=>t.reduce((e,n)=>typeof n=="number"?`${e}[${n}]`:e===""?n:`${e}.${n}`,""),Fs=["string","number","boolean","null","object","array"],Jr=({props:t,collapsed:e})=>{const{data:n,nodeData:r,parentData:i,onEdit:s,onError:u,showErrorMessages:l,restrictEditFilter:o,restrictDeleteFilter:a,restrictAddFilter:c,restrictDragFilter:h,translate:f,errorMessageTimeout:w}=t,{currentlyEditingElement:v,setCurrentlyEditingElement:b}=tt(),[E,S]=C.useState(null),_=Object.assign(Object.assign({},r),{collapsed:e}),{path:O,key:$,size:d}=_,y=rt(O),k=!o(_),j=!a(_),T=!c(_),q=!h(_)&&j&&v===null,U=Z=>{l&&(S(Z),setTimeout(()=>S(null),w)),console.warn("Error",Z)},Y=C.useCallback((Z,ke)=>{U(Z.message),u&&u({currentData:_.fullData,errorValue:ke,currentValue:n,name:$,path:O,error:Z})},[u,l]),P=v===y,A=v===`key_${y}`,G=typeof O.slice(-1)[0]=="number",de={isEditing:P,isEditingKey:A,isArray:G,canEditKey:i!==null&&k&&T&&j&&!G},le=$===""&&O.length>0?f("EMPTY_STRING",_):null;return{pathString:y,nodeData:_,path:O,name:$,size:d,canEdit:k,canDelete:j,canAdd:T,canDrag:q,error:E,showError:U,onError:Y,setError:S,handleEditKey:Z=>{if(b(null),$===Z||!i)return;const ke=O.slice(0,-1);if(Object.keys(i).includes(Z))return void Y({code:"KEY_EXISTS",message:f("ERROR_KEY_EXISTS",_)},Z);const p=Object.fromEntries(Object.entries(i).map(([m,N])=>m===$?[Z,N]:[m,N]));s(p,ke).then(m=>{m&&Y({code:"UPDATE_ERROR",message:m},Z)})},derivedValues:de,emptyStringKey:le}},ea=({canDrag:t,canDragOnto:e,path:n,nodeData:r,onMove:i,onError:s,translate:u})=>{const{getStyles:l}=De(),{dragSource:o,setDragSource:a}=tt(),[c,h]=C.useState(!1),f=rt(n),w=C.useMemo(()=>t?{onDragStart:S=>{S.stopPropagation(),a({path:n,pathString:f})},onDragEnd:S=>{S.stopPropagation(),a({path:null,pathString:null})}}:{},[t,f]),v=C.useMemo(()=>S=>e?{onDragOver:_=>{_.stopPropagation(),_.preventDefault()},onDrop:_=>{_.stopPropagation(),E(S),a({path:null,pathString:null}),h(!1)},onDragEnter:_=>{var O;_.stopPropagation(),f.startsWith((O=o.pathString)!==null&&O!==void 0?O:"")||h(S)},onDragExit:_=>{_.stopPropagation(),h(!1)}}:{},[o,e,f]),b=C.useMemo(()=>e&&o.pathString!==null?g.jsx("div",Object.assign({className:"jer-drop-target-bottom",style:{height:"50%",position:"absolute",width:"100%",top:"50%",zIndex:n.length}},v("below"))):null,[o,e,n.length]),E=S=>{var _,O;const $=(_=o.path)===null||_===void 0?void 0:_.slice(-1)[0],d=(O=o.path)===null||O===void 0?void 0:O.slice(0,-1).join("."),y=n.slice(0,-1).join(""),{parentData:k}=r;typeof $=="string"&&k&&!Array.isArray(k)&&Object.keys(k).includes($)&&$ in k&&d!==y?s({code:"KEY_EXISTS",message:u("ERROR_KEY_EXISTS",r)},$):i(o.path,n,S).then(j=>{j&&s({code:"UPDATE_ERROR",message:j},r.value)})};return{dragSourceProps:w,getDropTargetProps:v,BottomDropTarget:b,DropTargetPadding:({position:S,nodeData:_})=>c===S?g.jsx("div",{className:"jer-drag-n-drop-padding",style:l("dropZone",_)}):null,handleDrop:E}},Us=(t,e,n,r)=>{var i,s,u;if(!e.current)return 0;const l=parseInt((i=getComputedStyle(n.current).getPropertyValue("line-height"))!==null&&i!==void 0?i:"16px"),o=((u=(s=e.current)===null||s===void 0?void 0:s.offsetWidth)!==null&&u!==void 0?u:0)/(.5*l),a=r(t).replace(/\\n/g,`
`).split(`
`).map(c=>Math.ceil(c.length/o)).reduce((c,h)=>c+h,0)*l;return Math.min(a+30,window.innerHeight-50)},Ut=({isEditingKey:t,canEditKey:e,pathString:n,path:r,name:i,handleKeyboard:s,handleEditKey:u,handleCancel:l,handleClick:o,keyValueArray:a,styles:c,getNextOrPrevious:h,emptyStringKey:f})=>{const{setCurrentlyEditingElement:w}=tt();return t?g.jsx("input",{className:"jer-input-text jer-key-edit",type:"text",name:n,defaultValue:i,autoFocus:!0,onFocus:v=>v.target.select(),onKeyDown:v=>s(v,{stringConfirm:()=>u(v.target.value),cancel:l,tabForward:()=>{if(u(v.target.value),a){const b=a==null?void 0:a[0][0];w(b?[...r,b]:h("next"))}else w(r)},tabBack:()=>{u(v.target.value),w(h("prev"))}}),style:{width:String(i).length/1.5+.5+"em"}}):g.jsxs("span",{className:"jer-key-text",style:Object.assign(Object.assign({},c),{minWidth:`${Math.min(String(i).length+1,5)}ch`,flexShrink:i.length>10?1:0}),onDoubleClick:()=>e&&w(r,"key"),onClick:o,children:[f?g.jsx("span",{className:"jer-empty-string",children:f}):i,i!==""||f?g.jsx("span",{className:"jer-key-colon",children:":"}):null]})},ta=t=>{const{data:e,parentData:n,onEdit:r,onDelete:i,onChange:s,onMove:u,enableClipboard:l,canDragOnto:o,restrictTypeSelection:a,searchFilter:c,searchText:h,showLabel:f,stringTruncate:w,showStringQuotes:v,indent:b,translate:E,customNodeDefinitions:S,customNodeData:_,handleKeyboard:O,keyboardControls:$,sort:d,editConfirmRef:y,jsonStringify:k}=t,{getStyles:j}=De(),{setCurrentlyEditingElement:T,setCollapseState:q,previouslyEditedElement:U,setPreviouslyEditedElement:Y,tabDirection:P,setTabDirection:A,previousValue:G,setPreviousValue:de}=tt(),[le,Z]=C.useState(typeof e=="function"?mn:e),{pathString:ke,nodeData:p,path:m,name:N,canEdit:M,canDelete:B,canDrag:Q,error:I,onError:se,handleEditKey:oe,emptyStringKey:Re,derivedValues:at}=Jr({props:t}),{dragSourceProps:yt,getDropTargetProps:ye,BottomDropTarget:Ce,DropTargetPadding:Pe}=ea({canDrag:Q,canDragOnto:o,path:m,nodeData:p,onMove:u,onError:se,translate:E}),[Se,K]=C.useState(vn(e,_)),ce=C.useCallback(R=>{if(!s)return void Z(R);const te=s({currentData:p.fullData,newValue:R,currentValue:le,name:N,path:m});Z(te)},[s]);C.useEffect(()=>{Z(typeof e=="function"?mn:e),K(vn(e,_))},[e,I]);const{CustomNode:ue,customNodeProps:ze,hideKey:Ae,showEditTools:qe=!0,showOnEdit:He,showOnView:it,passOriginalNode:Ve}=_,Be=[...Fs,...S.filter(({showInTypesSelector:R=!1,name:te})=>R&&!!te).map(({name:R})=>R)],me=C.useMemo(()=>{if(typeof a=="boolean")return a?[]:Be;if(Array.isArray(a))return a;const R=a(p);return typeof R=="boolean"?R?[]:Be:R},[p,a]),[Fe,$e]=C.useState(((R,te)=>{var re;if(typeof R!="string")return null;const he=te.filter(be=>be instanceof Object&&be.enum&&be.values.includes(R)&&be.matchPriority);return he.sort((be,fe)=>{var Ge,Ke;return((Ge=fe.matchPriority)!==null&&Ge!==void 0?Ge:0)-((Ke=be.matchPriority)!==null&&Ke!==void 0?Ke:0)}),(re=he[0])!==null&&re!==void 0?re:null})(le,me)),{isEditing:xe}=at,ot=Gr("value",p,c,h);if(xe&&(!ot||!M)){const R=Qe(p.fullData,m,P,d);T(R||U)}if(!ot)return null;const Oe=R=>{let te;if(T(null),de(null),R===void 0||(re=>re&&typeof re=="object"&&"type"in re&&"target"in re&&"preventDefault"in re&&typeof re.preventDefault=="function")(R))switch(Se){case"object":te={[E("DEFAULT_NEW_KEY",p)]:le};break;case"array":te=le??[];break;case"number":{const re=Number(le);te=isNaN(re)?0:re;break}default:te=le}else te=R;r(te,m).then(re=>{re&&se({code:"UPDATE_ERROR",message:re},te)})},we=()=>{T(null),G===null?(Z(e),de(null)):r(G,m)},{isEditingKey:st,canEditKey:Ee}=at,pe=!xe&&I,Ue=xe&&me.length>1,z=(Se!=="invalid"||ue)&&!I&&qe,L=f&&!Ae,F=ue&&(xe&&He||!xe&&it),J={value:le,parentData:n,setValue:ce,isEditing:xe,canEdit:M,setIsEditing:M?()=>T(m):()=>{},handleEdit:Oe,handleCancel:we,path:m,stringTruncate:w,showStringQuotes:v,nodeData:p,enumType:Fe,translate:E,handleKeyboard:O,keyboardCommon:{cancel:we,tabForward:()=>{A("next"),Y(ke);const R=Qe(p.fullData,m,"next",d);R&&(Oe(),T(R))},tabBack:()=>{A("prev"),Y(ke);const R=Qe(p.fullData,m,"prev",d);R&&(Oe(),T(R))}}},W={canEditKey:Ee,isEditingKey:st,pathString:ke,path:m,name:N,handleKeyboard:O,handleEditKey:oe,handleCancel:we,styles:j("property",p),getNextOrPrevious:R=>Qe(p.fullData,m,R,d),emptyStringKey:Re},X=F?g.jsx(ue,Object.assign({},t,{value:le,customNodeProps:ze,setValue:ce,handleEdit:Oe,handleCancel:we,handleKeyPress:R=>O(R,{stringConfirm:Oe,cancel:we}),isEditing:xe,setIsEditing:()=>T(m),getStyles:j,originalNode:Ve?wr(e,J):void 0,originalNodeKey:Ve?g.jsx(Ut,Object.assign({},W)):void 0,canEdit:M,keyboardCommon:J.keyboardCommon,onError:se})):wr(e,J);return g.jsxs("div",Object.assign({className:"jer-component jer-value-component",style:{marginLeft:b/2+"em",position:"relative"},draggable:Q},yt,ye("above"),{children:[Ce,g.jsx(Pe,{position:"above",nodeData:p}),g.jsxs("div",{className:"jer-value-main-row",style:{flexWrap:N.length>10?"wrap":"nowrap"},children:[L&&g.jsx(Ut,Object.assign({},W)),g.jsxs("div",{className:"jer-value-and-buttons",children:[g.jsx("div",{className:"jer-input-component",children:X}),xe?g.jsx(An,{onOk:Oe,onCancel:we,nodeData:p,editConfirmRef:y}):z&&g.jsx(Qr,{startEdit:M?()=>{de(G),T(m,we)}:void 0,handleDelete:B?()=>{i(le,m).then(R=>{R&&se({code:"DELETE_ERROR",message:R},le)})}:void 0,enableClipboard:l,translate:E,customButtons:t.customButtons,nodeData:p,handleKeyboard:O,keyboardControls:$,editConfirmRef:y,jsonStringify:k}),Ue&&g.jsxs("div",{className:"jer-select jer-select-types",children:[g.jsx("select",{name:`${N}-type-select`,className:"jer-select-inner",onChange:R=>(te=>{const re=S.find(fe=>fe.name===te);if(re)return r(re.defaultValue,m),K(te),$e(null),T(null),void q({path:m,collapsed:!1,includeChildren:!1});const he=me.find(fe=>fe instanceof Object&&fe.enum===te);if(he)return typeof le=="string"&&he.values.includes(le)||r(he.values[0],m).then(fe=>{fe&&(se({code:"UPDATE_ERROR",message:fe},be),T(null))}),void $e(he);const be=Gs(le,te,E("DEFAULT_NEW_KEY",p),_!=null&&_.CustomNode?E("DEFAULT_STRING",p):void 0);r(be,m).then(fe=>{fe?(se({code:"UPDATE_ERROR",message:fe},be),T(null)):$e(null)})})(R.target.value),value:Fe?Fe.enum:Se,children:me.map(R=>R instanceof Object&&"enum"in R?g.jsx("option",{value:R.enum,children:R.enum},R.enum):g.jsx("option",{value:R,children:R},R))}),g.jsx("span",{className:"focus"})]}),pe&&g.jsx("span",{className:"jer-error-slug",style:j("error",p),children:I})]})]}),g.jsx(Pe,{position:"below",nodeData:p})]}))},vn=(t,e)=>e!=null&&e.CustomNode&&(e!=null&&e.name)&&e.showInTypesSelector?e.name:typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":t===null?"null":"invalid",wr=(t,e)=>{const n=vn(t),{value:r}=e;switch(n){case"string":return g.jsx(As,Object.assign({},e,{value:r}));case"number":return g.jsx(Os,Object.assign({},e,{value:r}));case"boolean":return g.jsx(Ns,Object.assign({},e,{value:r}));case"null":return g.jsx(Ds,Object.assign({},e));default:return g.jsx(Ps,Object.assign({},e))}},Gs=(t,e,n,r)=>{switch(e){case"string":return r??String(t);case"number":{const i=Number(t);return isNaN(i)?0:i}case"boolean":return!!t;case"null":return null;case"object":return{[n]:t};case"array":return[t];default:return String(t)}},na=(t=[],e)=>{const n=t.filter(({condition:v})=>v(e));if(n.length===0)return{};const r=n[0],{element:i,wrapperElement:s,customNodeProps:u,wrapperProps:l,hideKey:o=!1,showEditTools:a=!0,showOnEdit:c=!1,showOnView:h=!0,showCollectionWrapper:f=!0}=r,w=Fr(r,["element","wrapperElement","customNodeProps","wrapperProps","hideKey","showEditTools","showOnEdit","showOnView","showCollectionWrapper"]);return Object.assign({CustomNode:i,CustomWrapper:s,customNodeProps:u,wrapperProps:l,hideKey:o,showEditTools:a,showOnEdit:c,showOnView:h,showCollectionWrapper:f},w)},ra=t=>{const{getStyles:e}=De(),{collapseState:n,setCollapseState:r,getMatchingCollapseState:i,currentlyEditingElement:s,setCurrentlyEditingElement:u,areChildrenBeingEdited:l,previousValue:o,setPreviousValue:a}=tt(),{mainContainerRef:c,data:h,nodeData:f,parentData:w,showCollectionCount:v,onEdit:b,onAdd:E,onDelete:S,canDragOnto:_,collapseFilter:O,collapseAnimationTime:$,onMove:d,enableClipboard:y,searchFilter:k,searchText:j,indent:T,sort:q,showArrayIndices:U,defaultValue:Y,newKeyOptions:P,translate:A,customNodeDefinitions:G,customNodeData:de,jsonParse:le,jsonStringify:Z,TextEditor:ke,keyboardControls:p,handleKeyboard:m,insertAtTop:N,onCollapse:M,editConfirmRef:B,collapseClickZones:Q}=t,[I,se]=C.useState(Z(h)),oe=O(f),{contentRef:Re,isAnimating:at,maxHeight:yt,collapsed:ye,animateCollapse:Ce,cssTransitionValue:Pe}=((D,ae,Te,_e,Ne)=>{const[ca,Pt]=C.useState(Te?0:void 0),[$t,ua]=C.useState(Te),Qt=C.useRef(!1),Jt=C.useRef(null),In=C.useRef(0),zn=C.useRef(0),da=ae/1e3+"s",pa=C.useCallback(en=>{var tn,nn;if($t!==en){switch(window.clearTimeout(zn.current),Qt.current=!0,en){case!0:{const qn=(nn=(tn=Jt.current)===null||tn===void 0?void 0:tn.offsetHeight)!==null&&nn!==void 0?nn:0;In.current=qn,Pt(qn),setTimeout(()=>{Pt(0)},5);break}case!1:Pt(In.current||Us(D,Jt,_e,Ne))}ua(!$t),zn.current=window.setTimeout(()=>{Qt.current=!1,en||Pt(void 0)},ae)}},[ae,$t,D,_e,Ne]);return{contentRef:Jt,isAnimating:Qt.current,animateCollapse:pa,maxHeight:ca,collapsed:$t,cssTransitionValue:da}})(h,$,oe,c,Z),{pathString:Se,nodeData:K,path:ce,name:ue,size:ze,canEdit:Ae,canDelete:qe,canAdd:He,canDrag:it,error:Ve,setError:Be,onError:me,handleEditKey:Fe,emptyStringKey:$e,derivedValues:xe}=Jr({props:t,collapsed:ye}),{dragSourceProps:ot,getDropTargetProps:Oe,BottomDropTarget:we,DropTargetPadding:st}=ea({canDrag:it,canDragOnto:_,path:ce,nodeData:K,onMove:d,onError:me,translate:A}),Ee=C.useRef(!oe),{isEditing:pe,isEditingKey:Ue,isArray:z,canEditKey:L}=xe;C.useEffect(()=>{se(Z(h))},[h,Z]),C.useEffect(()=>{const D=O(K)&&!pe;Ee.current=!D,Ce(D)},[O]),C.useEffect(()=>{if(n!==null){const D=i(ce);D&&(Ee.current=!0,Ce(D.collapsed))}},[n]);const F=C.useRef(null),J=C.useCallback((D,ae)=>{if(typeof Y!="function")return Y;const Te=Y(D,ae);return Te!==void 0?Te:null},[Y]),W=C.useCallback(D=>P?typeof P!="function"?P:P(D):null,[P]),{CustomNode:X,customNodeProps:R,CustomWrapper:te,wrapperProps:re={},hideKey:he,showEditTools:be=!0,showOnEdit:fe,showOnView:Ge,showCollectionWrapper:Ke=!0}=de,Nt=l(Se);if(Nt&&ye&&Ce(!1),!(Gr("collection",K,k,j)||K.level===0)&&!Nt)return null;const lt=Array.isArray(h)?"array":"object",Zt=lt==="array"?{open:"[",close:"]"}:{open:"{",close:"}"},On=D=>{if(D.key!=="Tab"||D.getModifierState("Shift"))m(D,{objectConfirm:Dt,cancel:mt});else{D.preventDefault();const ae=Wr(F,"	");se(ae)}},Mt=D=>{D.stopPropagation();const ae=Tn(D);if(ae&&p.collapseModifier.includes(ae))return Ee.current=!0,void r({collapsed:!ye,path:ce,includeChildren:!0});s&&s.includes(Se)||(Ee.current=!0,r(null),M&&M({path:ce,collapsed:!ye,includeChildren:!1}),Ce(!ye))},Dt=()=>{try{const D=le(I);if(u(null),a(null),Be(null),Z(D)===Z(h))return;b(D,ce).then(ae=>{ae&&me({code:"UPDATE_ERROR",message:ae},D)})}catch{me({code:"INVALID_JSON",message:A("ERROR_INVALID_JSON",K)},I)}},aa=ce.length>0?()=>{S(h,ce).then(D=>{D&&me({code:"DELETE_ERROR",message:D},h)})}:void 0,mt=()=>{u(null),o===null?(Be(null),se(Z(h)),a(null)):b(o,ce)},Nn=v==="when-closed"?ye:v,ia=!pe&&be,oa=(U||!z)&&!he&&ue!==void 0,sa=X&&(pe&&fe||!pe&&Ge),Xt=Object.entries(h).map(([D,ae])=>[lt==="array"?Number(D):D,ae]);lt==="object"&&q(Xt,D=>D);const Mn=Ee.current?pe?g.jsxs("div",{className:"jer-collection-text-edit",children:[ke?g.jsx(ke,{value:I,onChange:se,onKeyDown:D=>m(D,{objectConfirm:Dt,cancel:mt})}):g.jsx(Ur,{textAreaRef:F,className:"jer-collection-text-area",name:Se,value:I,setValue:se,handleKeyPress:On,styles:e("input",K)}),g.jsx("div",{className:"jer-collection-input-button-row",children:g.jsx(An,{onOk:Dt,onCancel:mt,nodeData:K,editConfirmRef:B})})]}):Xt.map(([D,ae],Te)=>{const _e={key:D,value:ae,path:[...ce,D],level:ce.length+1,index:Te,size:ft(ae)?Object.keys(ae).length:null,parentData:h,fullData:K.fullData},Ne=na(G,_e);return g.jsx("div",{className:"jer-collection-element",style:e("collectionElement",_e),children:ft(ae)&&!(Ne!=null&&Ne.renderCollectionAsValue)?g.jsx(ra,Object.assign({},t,{data:ae,parentData:h,nodeData:_e,showCollectionCount:v,canDragOnto:Ae,customNodeData:Ne}),D):g.jsx(ta,Object.assign({},t,{data:ae,parentData:h,nodeData:_e,canDragOnto:Ae,showLabel:lt==="object"||U,customNodeData:Ne}),D)},D)}):null,Yt=!!Ke&&ye&&!Nt;Yt||(Ee.current=!0);const Dn=Object.assign(Object.assign({},t),{data:h,value:h,parentData:w,nodeData:K,setValue:D=>pt(void 0,void 0,void 0,function*(){return yield b(D,ce)}),handleEdit:Dt,handleCancel:mt,handleKeyPress:On,isEditing:pe,setIsEditing:()=>u(ce),getStyles:e,canDragOnto:Ae,canEdit:Ae,keyboardCommon:{},onError:me}),la=sa?g.jsx(X,Object.assign({customNodeProps:R},Dn,{children:Mn})):Mn,Pn=ia&&g.jsx(Qr,{startEdit:Ae?()=>{Ee.current=!0,a(null),u(ce)}:void 0,handleAdd:He?D=>{Ce(!1);const ae=J(K,D);if(lt==="array"){const Te=N.array?0:h.length,_e=N.array?{insert:!0}:{};E(ae,[...ce,Te],_e).then(Ne=>{Ne&&me({code:"ADD_ERROR",message:Ne},ae)})}else if(D in h)me({code:"KEY_EXISTS",message:A("ERROR_KEY_EXISTS",K)},D);else{const Te=N.object?{insertBefore:0}:{};E(ae,[...ce,D],Te).then(_e=>{_e&&me({code:"ADD_ERROR",message:_e},ae)})}}:void 0,handleDelete:qe?aa:void 0,enableClipboard:y,type:lt,nodeData:K,translate:A,customButtons:t.customButtons,keyboardControls:p,handleKeyboard:m,getNewKeyOptions:W,editConfirmRef:B,jsonStringify:Z}),$n={canEditKey:L,isEditingKey:Ue,pathString:Se,path:ce,name:ue,handleKeyboard:m,handleEditKey:Fe,handleCancel:mt,keyValueArray:Xt,styles:e("property",K),getNextOrPrevious:D=>Qe(K.fullData,ce,D,q),handleClick:Q.includes("property")?Mt:D=>D.stopPropagation(),emptyStringKey:$e},Ln=g.jsxs("div",Object.assign({className:"jer-component jer-collection-component",style:Object.assign(Object.assign({marginLeft:(ce.length===0?0:T/2)+"em"},e("collection",K)),{position:"relative"}),draggable:it},ot,Oe("above"),{children:[g.jsx("div",{className:"jer-clickzone",style:{width:T/2+1+"em",zIndex:10+2*K.level},onClick:Q.includes("left")?Mt:void 0}),!pe&&we,g.jsx(st,{position:"above",nodeData:K}),Ke?g.jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},onClick:Q.includes("header")?Mt:void 0,children:[g.jsxs("div",{className:"jer-collection-name",children:[g.jsx("div",{className:"jer-collapse-icon jer-accordion-icon"+(ye?" jer-rotate-90":""),style:{zIndex:11+2*K.level,transition:Pe},onClick:Mt,children:g.jsx(Je,{name:"chevron",rotate:ye,nodeData:K})}),oa&&g.jsx(Ut,Object.assign({},$n)),!pe&&g.jsx("span",{className:"jer-brackets jer-bracket-open",style:e("bracket",K),children:Zt.open})]}),!pe&&Nn&&g.jsx("div",{className:"jer-collection-item-count"+(Nn?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},e("itemCount",K)),{transition:Pe}),children:ze===1?A("ITEM_SINGLE",Object.assign(Object.assign({},K),{size:1}),1):A("ITEMS_MULTIPLE",K,ze)}),g.jsx("div",{className:"jer-brackets"+(Yt?" jer-visible":" jer-hidden"),style:Object.assign(Object.assign({},e("bracket",K)),{transition:Pe}),children:Zt.close}),Pn]}):he?g.jsx(g.Fragment,{}):g.jsxs("div",{className:"jer-collection-header-row",style:{position:"relative"},children:[g.jsx(Ut,Object.assign({},$n)),Pn]}),g.jsxs("div",{className:"jer-collection-inner",style:Object.assign(Object.assign({overflowY:Yt||at?"clip":"visible",maxHeight:Nt?void 0:yt},e("collectionInner",K)),{transition:Pe}),ref:Re,children:[la,g.jsx("div",{className:pe?"jer-collection-error-row":"jer-collection-error-row-edit",children:Ve&&g.jsx("span",{className:"jer-error-slug",style:e("error",K),children:Ve})}),!pe&&Ke&&g.jsx("div",{className:"jer-brackets jer-bracket-outside",style:Object.assign(Object.assign({},e("bracket",K)),{marginLeft:(T<3?-1:T<6?-.5:0)+"em"}),children:Zt.close})]}),g.jsx(st,{position:"below",nodeData:K})]}));return te?g.jsx(te,Object.assign({customNodeProps:re},Dn,{children:Ln})):Ln},Ks={ITEM_SINGLE:"{{count}} item",ITEMS_MULTIPLE:"{{count}} items",KEY_NEW:"Enter new key",KEY_SELECT:"Select key",NO_KEY_OPTIONS:"No key options",ERROR_KEY_EXISTS:"Key already exists",ERROR_INVALID_JSON:"Invalid JSON",ERROR_UPDATE:"Update unsuccessful",ERROR_DELETE:"Delete unsuccessful",ERROR_ADD:"Adding node unsuccessful",DEFAULT_STRING:"New data!",DEFAULT_NEW_KEY:"key",SHOW_LESS:"(Show less)",EMPTY_STRING:"<empty string>"},Ws=(t,e)=>(n,r,i)=>((s,u,l,o,a)=>{if(u[o]){const h=u[o](l);if(h!==null)return h}const c=o in s?s[o]:Ks[o];return a===void 0?c:c==null?void 0:c.replace("{{count}}",String(a))})(t,e,r,n,i);var Er=[],Ct=[];(function(t,e){if(t&&typeof document<"u"){var n,r=e.prepend===!0?"prepend":"append",i=e.singleTag===!0,s=typeof e.container=="string"?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(i){var u=Er.indexOf(s);u===-1&&(u=Er.push(s)-1,Ct[u]={}),n=Ct[u]&&Ct[u][r]?Ct[u][r]:Ct[u][r]=l()}else n=l();t.charCodeAt(0)===65279&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function l(){var o=document.createElement("style");if(o.setAttribute("type","text/css"),e.attributes)for(var a=Object.keys(e.attributes),c=0;c<a.length;c++)o.setAttribute(a[c],e.attributes[a[c]]);var h=r==="prepend"?"afterbegin":"beforeend";return s.insertAdjacentElement(h,o),o}})(':root{--jer-select-border:#b6b6b6;--jer-select-focus:#777;--jer-select-arrow:#777;--jer-form-border:1px solid #ededf0;--jer-form-border-focus:1px solid #e2e2e2;--jer-highlight-color:#b3d8ff}.jer-visible{opacity:1}.jer-hidden{opacity:0}.jer-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:#000;cursor:inherit;font-family:inherit;font-size:.8em;line-height:inherit;margin:0;outline:none;padding:0 1em 0 0;z-index:1}select::-ms-expand{display:none}.jer-select{align-items:center;background-color:#fff;background-image:linear-gradient(0deg,#f9f9f9,#fff 33%);border:1px solid var(--jer-select-border);border-radius:.25em;cursor:pointer;display:grid;grid-template-areas:"select";line-height:1.1;max-width:15ch;min-width:12ch;padding:.25em .5em;position:relative}.jer-select select,.jer-select:after{grid-area:select}.jer-select:not(.jer-select--multiple):after{background-color:var(--jer-select-arrow);clip-path:polygon(100% 0,0 0,50% 100%);content:"";height:.5em;justify-self:end;width:.8em}select:focus+.focus{border:1px solid var(--jer-select-focus);border-radius:inherit;bottom:-1px;left:-1px;position:absolute;right:-1px;top:-1px}.jer-select-inner{text-overflow:ellipsis;width:100%}.jer-editor-container{border-radius:.5em;font-size:16px;line-height:1;padding:1em 1em 1em 2em;position:relative;text-align:left}.jer-editor-container textarea{border:var(--jer-form-border);border-radius:.3em;color:var(--jer-input-color);outline:none}.jer-editor-container textarea:focus{border:var(--jer-form-border-focus)}.jer-editor-container input{border:var(--jer-form-border);border-radius:.3em;font-family:inherit;outline:none}.jer-editor-container input:focus{border:var(--jer-form-border-focus)}.jer-editor-container ::selection{background-color:var(--jer-highlight-color)}.jer-collection-header-row,.jer-value-main-row{align-items:center;display:flex;gap:.3em;min-height:1.7em}.jer-collection-header-row{display:flex;flex-wrap:wrap}.jer-collapse-icon{left:-1.2em;position:absolute;top:.35em}.jer-collection-inner{position:relative}.jer-collection-text-edit{align-items:flex-start;display:flex;flex-direction:column;gap:.3em;line-height:1.1em}.jer-collection-text-area{font-family:inherit;font-size:.85em;max-height:40em;overflow:hidden;padding:.2em .5em 0;resize:both}.jer-collection-input-button-row{display:flex;font-size:150%;justify-content:flex-end;margin-top:.4em;width:100%}.jer-collection-error-row{bottom:.5em;position:absolute}.jer-error-slug{margin-left:1em}.jer-value-component{position:relative}.jer-value-main-row{display:flex;gap:0}.jer-value-and-buttons{align-items:center;display:flex;justify-content:flex-start;padding-left:.5em}.jer-value-error-row{position:absolute}.jer-value-string{line-height:1.3em;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.jer-string-expansion{cursor:pointer;filter:saturate(50%);opacity:.6}.jer-show-less{font-size:80%}.jer-hyperlink{text-decoration:underline}.jer-input-text{font-family:inherit;font-size:.9em;height:1.4em;line-height:1.2em;margin:0;min-width:6em;overflow:hidden;padding:.25em .5em .2em;resize:none}.jer-input-boolean{margin-left:.3em;margin-right:.3em;transform:scale(1.5)}.jer-key-text{line-height:1.1em;white-space:pre-wrap;word-break:break-word}.jer-key-edit{font-size:inherit;font-size:.9em;padding:0 .3em}.jer-value-invalid{font-style:italic;opacity:.5}.jer-input-number{font-size:90%;min-width:3em}.jer-confirm-buttons,.jer-edit-buttons{align-items:center;cursor:pointer;display:flex;height:1em}.jer-input-buttons{gap:.4em}.jer-edit-buttons{gap:.4em;margin-left:.5em;opacity:0}.jer-confirm-buttons{gap:.2em;margin-left:.4em}.jer-edit-buttons:hover{opacity:1;position:relative}.jer-collection-header-row:hover>.jer-edit-buttons,.jer-value-and-buttons:hover>.jer-edit-buttons,.jer-value-main-row:hover>.jer-edit-buttons{opacity:1}.jer-copy-pulse{position:relative;transition:.3s}.jer-copy-pulse:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-copy-pulse:after{border-radius:50%;box-shadow:0 0 15px 5px var(--jer-icon-copy-color);content:"";display:block;height:100%;left:0;opacity:0;position:absolute;top:0;transition:all .5s;width:100%}.jer-copy-pulse:active:after{border-radius:4em;box-shadow:0 0 0 0 var(--jer-icon-copy-color);left:0;opacity:1;position:absolute;top:0;transition:0s}.jer-copy-pulse:active{top:.07em}.jer-rotate-90{transform:rotate(-90deg)}.jer-icon:hover{opacity:.85;transform:scale(1.2);transition:.3s}.jer-empty-string{font-size:90%;font-style:italic}.jer-drag-n-drop-padding{border:1px dashed #e0e0e0;border-radius:.3em;height:.5em}.jer-clickzone{height:calc(100% - .8em);left:-1em;position:absolute;top:1.2em}',{});const Zs=({data:t,setData:e,rootName:n="root",onUpdate:r=()=>{},onEdit:i=r,onDelete:s=r,onAdd:u=r,onChange:l,onError:o,showErrorMessages:a=!0,enableClipboard:c=!0,indent:h=2,collapse:f=!1,collapseAnimationTime:w=300,showCollectionCount:v=!0,restrictEdit:b=!1,restrictDelete:E=!1,restrictAdd:S=!1,restrictTypeSelection:_=!1,restrictDrag:O=!0,viewOnly:$,searchFilter:d,searchText:y,searchDebounceTime:k=350,keySort:j=!1,showArrayIndices:T=!0,showStringQuotes:q=!0,defaultValue:U=null,newKeyOptions:Y,minWidth:P=250,maxWidth:A="min(600px, 90vw)",rootFontSize:G,stringTruncate:de=250,translations:le={},className:Z,id:ke,customText:p={},customNodeDefinitions:m=[],customButtons:N=[],jsonParse:M=JSON.parse,jsonStringify:B=(ye,Ce)=>JSON.stringify(ye,Ce,2),TextEditor:Q,errorMessageTimeout:I=2500,keyboardControls:se={},externalTriggers:oe,insertAtTop:Re=!1,onCollapse:at,collapseClickZones:yt=["header","left"]})=>{const{getStyles:ye}=De(),{setCurrentlyEditingElement:Ce}=tt(),Pe=C.useMemo(()=>Tt(f),[f]),Se=C.useMemo(()=>Ws(le,p),[le,p]),[K,ce]=C.useState(y),[ue,ze]=(({setData:z,data:L})=>{const[F,J]=C.useState(z?void 0:L),W=C.useCallback(X=>{z?z(X):J(X)},[z]);return C.useEffect(()=>{z||J(L)},[L]),[z?L:F,W]})({setData:e,data:t}),Ae=C.useRef(null);C.useEffect(()=>{Ce(null);const z=setTimeout(()=>ce(y),k);return()=>clearTimeout(z)},[y,k]);const qe={key:n,path:[],level:0,index:0,value:ue,size:typeof ue=="object"&&ue!==null?Object.keys(ue).length:1,parentData:null,fullData:ue},He=(z,L)=>pt(void 0,void 0,void 0,function*(){const F=yield z(L);if(F===!0||F===void 0)return void ze(L.newData);const J=Ys(F)?F:["error",F],[W,X]=J;if(W==="error")return ze(L.currentData),X===!1?Se("ERROR_UPDATE",qe):String(X);ze(X)}),it=C.useMemo(()=>Tt(b,$),[b,$]),Ve=C.useMemo(()=>Tt(E,$),[E,$]),Be=C.useMemo(()=>Tt(S,$),[S,$]),me=C.useMemo(()=>Tt(O,$),[O,$]),Fe=C.useMemo(()=>Xs(d),[d]),$e=C.useMemo(()=>(z=>{const L=Object.assign({},br);for(const F of Object.keys(br)){const J=F;if(z[J]){const W=z[J],X=["clipboardModifier","collapseModifier"].includes(F)?Array.isArray(W)?W:[W]:typeof W=="string"?{key:W}:W;L[J]=X,["stringConfirm","numberConfirm","booleanConfirm"].forEach(R=>{!z[R]&&z.confirm&&(L[R]=L.confirm)})}}return L})(se),[se]),xe=C.useCallback((z,L)=>((F,J,W)=>{const X=Object.entries(J);for(const[R,te]of X)if(xs(W,F[R],R)){W.preventDefault(),te();break}})($e,L,z),[$e]),ot=C.useMemo(()=>{const z=_r(m,"stringifyReplacer");return L=>B(L,z)},[m,B]),Oe=C.useMemo(()=>{const z=_r(m,"parseReviver");return L=>{const F=M(L,z);return yn(F)}},[m,M]),we=C.useRef(null);((z,L)=>{const{setCurrentlyEditingElement:F,currentlyEditingElement:J,setCollapseState:W}=tt();C.useEffect(()=>{if(!z)return;const{collapse:X,edit:R}=z;X&&W(X);const te=!(R!=null&&R.path)||rt(R.path)===J;switch(R==null?void 0:R.action){case"accept":te&&(L.current&&L.current.click(),F(null));break;case"cancel":te&&F(null);break;default:R!=null&&R.path&&F(R.path)}},[z])})(oe,we);const st=C.useCallback((z,L)=>{j!==!1&&(typeof j!="function"?z.sort((F,J)=>{const W=L(F)[0],X=L(J)[0];return W<X?-1:W>X?1:0}):z.sort((F,J)=>j(L(F),L(J))))},[j]),Ee=na(m,qe),pe={mainContainerRef:Ae,name:n,nodeData:qe,onEdit:(z,L)=>pt(void 0,void 0,void 0,function*(){const{currentData:F,newData:J,currentValue:W,newValue:X}=St(ue,L,z,"update");if(W!==X)return yield He(i,{currentData:F,newData:J,currentValue:W,newValue:X,name:L.slice(-1)[0],path:L})}),onDelete:(z,L)=>pt(void 0,void 0,void 0,function*(){const{currentData:F,newData:J,currentValue:W,newValue:X}=St(ue,L,z,"delete");return yield He(s,{currentData:F,newData:J,currentValue:W,newValue:X,name:L.slice(-1)[0],path:L})}),onAdd:(z,L,F)=>pt(void 0,void 0,void 0,function*(){const{currentData:J,newData:W,currentValue:X,newValue:R}=St(ue,L,z,"add",F);return yield He(u,{currentData:J,newData:W,currentValue:X,newValue:R,name:L.slice(-1)[0],path:L})}),onChange:l,onError:o,showErrorMessages:a,onMove:(z,L,F)=>pt(void 0,void 0,void 0,function*(){if(z===null)return;const{currentData:J,newData:W,currentValue:X}=St(ue,z,"","delete"),R=z.slice(-1)[0],te=L.slice(0,-1),re=L.slice(-1)[0];let he=typeof re=="number"?F==="above"?re:re+1:typeof R=="number"?`arr_${R}`:R;z.slice(0,-1).join(".")===L.slice(0,-1).join(".")&&typeof R=="number"&&typeof he=="number"&&R<he&&(he-=1);const be=typeof he=="number"?{insert:!0}:F==="above"?{insertBefore:re}:{insertAfter:re},{newData:fe,newValue:Ge}=St(W,[...te,he],X,"add",be);return yield He(i,{currentData:J,newData:fe,currentValue:X,newValue:Ge,name:L.slice(-1)[0],path:L})}),showCollectionCount:v,collapseFilter:Pe,collapseAnimationTime:w,restrictEditFilter:it,restrictDeleteFilter:Ve,restrictAddFilter:Be,restrictTypeSelection:_,restrictDragFilter:me,canDragOnto:!1,searchFilter:Fe,searchText:K,enableClipboard:c,keySort:j,sort:st,showArrayIndices:T,showStringQuotes:q,indent:h,defaultValue:U,newKeyOptions:Y,stringTruncate:de,translate:Se,customNodeDefinitions:m,customNodeData:Ee,customButtons:N,parentData:null,jsonParse:Oe,jsonStringify:ot,TextEditor:Q,errorMessageTimeout:I,handleKeyboard:xe,keyboardControls:$e,insertAtTop:{object:Re===!0||Re==="object",array:Re===!0||Re==="array"},onCollapse:at,editConfirmRef:we,collapseClickZones:yt},Ue=Object.assign(Object.assign({},ye("container",qe)),{minWidth:P,maxWidth:A});return Ue.fontSize=G??Ue.fontSize,g.jsx("div",{id:ke,ref:Ae,className:`jer-editor-container ${Z??""}`,style:Ue,children:ft(ue)&&!Ee.renderCollectionAsValue?g.jsx(ra,Object.assign({data:ue},pe)):g.jsx(ta,Object.assign({data:ue,showLabel:!0},pe))})},Qc=t=>{var e;const[n,r]=C.useState();return C.useEffect(()=>{const i=document.documentElement;r(i)},[]),n?g.jsx(Es,{theme:(e=t.theme)!==null&&e!==void 0?e:Rn,icons:t.icons,docRoot:n,children:g.jsx(Ss,{onEditEvent:t.onEditEvent,onCollapse:t.onCollapse,children:g.jsx(Zs,Object.assign({},t))})}):null},St=(t,e,n,r,i={})=>{if(e.length===0)return{currentData:t,newData:n,currentValue:t,newValue:n};const s=Object.assign({remove:r==="delete"},i),u=r!=="add"?ht(t,e):void 0;return{currentData:t,newData:ys(t,e,n,s),currentValue:u,newValue:r!=="delete"?n:void 0}},Tt=(t,e)=>e?()=>!0:typeof t=="boolean"?()=>t:typeof t=="number"?({level:n})=>n>=t:t,Xs=t=>{if(t!==void 0)return t==="value"?gt:t==="key"?kr:t==="all"?(e,n)=>gt(e,n)||kr(e,n):t},Ys=t=>Array.isArray(t)&&t.length===2&&["error","value"].includes(t[0]),_r=(t,e)=>{const n=e==="stringifyReplacer"?[r=>r===void 0?Zr:r]:[];if(n.push(...t.map(r=>r[e]).filter(r=>!!r)),n.length!==0)return(r,i)=>{let s=i;for(const u of n)s=u(s);return s}};export{wl as $,wc as A,dc as B,gl as C,ol as D,jl as E,Ll as F,_c as G,Ul as H,Kl as I,dl as J,ml as K,Yl as L,ac as M,oc as N,fl as O,fc as P,yc as Q,el as R,Ec as S,Ic as T,Vc as U,Bl as V,Pl as W,Gc as X,_l as Y,Xc as Z,Tl as _,tl as a,$l as a0,nl as a1,gc as a2,jc as a3,zc as a4,pc as a5,$c as a6,Uc as a7,cl as a8,Vl as a9,ec as aA,ic as aB,Nc as aC,Wc as aD,il as aE,xc as aF,hc as aG,Ac as aH,Ql as aI,zl as aJ,Rc as aK,rc as aL,Gl as aM,Oc as aN,pl as aO,ql as aP,Jl as aQ,qc as aR,Qc as aS,Hc as aT,Cc as aU,Js as aV,sl as aW,nc as aX,Gt as aY,Wl as aa,ll as ab,Xl as ac,ul as ad,Kc as ae,Fl as af,Fc as ag,Bc as ah,Dc as ai,Mc as aj,Tc as ak,uc as al,Sc as am,Il as an,Pc as ao,tc as ap,mc as aq,al as ar,rl as as,Zl as at,Lc as au,cc as av,vc as aw,lc as ax,Hl as ay,kc as az,ka as b,Cl as c,yl as d,Nl as e,Ml as f,jr as g,Dl as h,Al as i,g as j,Rl as k,Ol as l,bl as m,Sl as n,ne as o,Yc as p,gs as q,C as r,hl as s,El as t,kl as u,vl as v,sc as w,xl as x,Zc as y,bc as z};
