@drawo-app/drawo 2.0.6 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,247 @@
1
+ function _L(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var e0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L5(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u4={exports:{}},Ml={};var zh;function IL(){if(zh)return Ml;zh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:c,ref:o!==void 0?o:null,props:s}}return Ml.Fragment=t,Ml.jsx=n,Ml.jsxs=n,Ml}var Hh;function zL(){return Hh||(Hh=1,u4.exports=IL()),u4.exports}var l=zL(),c4={exports:{}},Ot={};var Zh;function HL(){if(Zh)return Ot;Zh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),y=Symbol.iterator;function b(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,L={};function M(N,$,V){this.props=N,this.context=$,this.refs=L,this.updater=V||D}M.prototype.isReactComponent={},M.prototype.setState=function(N,$){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,$,"setState")},M.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function w(){}w.prototype=M.prototype;function E(N,$,V){this.props=N,this.context=$,this.refs=L,this.updater=V||D}var O=E.prototype=new w;O.constructor=E,S(O,M.prototype),O.isPureReactComponent=!0;var B=Array.isArray;function T(){}var P={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function Z(N,$,V){var se=V.ref;return{$$typeof:e,type:N,key:$,ref:se!==void 0?se:null,props:V}}function K(N,$){return Z(N.type,$,N.props)}function W(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function z(N){var $={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(V){return $[V]})}var q=/\/+/g;function te(N,$){return typeof N=="object"&&N!==null&&N.key!=null?z(""+N.key):$.toString(36)}function X(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(T,T):(N.status="pending",N.then(function($){N.status==="pending"&&(N.status="fulfilled",N.value=$)},function($){N.status==="pending"&&(N.status="rejected",N.reason=$)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function H(N,$,V,se,ke){var We=typeof N;(We==="undefined"||We==="boolean")&&(N=null);var Ae=!1;if(N===null)Ae=!0;else switch(We){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(N.$$typeof){case e:case t:Ae=!0;break;case m:return Ae=N._init,H(Ae(N._payload),$,V,se,ke)}}if(Ae)return ke=ke(N),Ae=se===""?"."+te(N,0):se,B(ke)?(V="",Ae!=null&&(V=Ae.replace(q,"$&/")+"/"),H(ke,$,V,"",function(fe){return fe})):ke!=null&&(W(ke)&&(ke=K(ke,V+(ke.key==null||N&&N.key===ke.key?"":(""+ke.key).replace(q,"$&/")+"/")+Ae)),$.push(ke)),1;Ae=0;var Qe=se===""?".":se+":";if(B(N))for(var I=0;I<N.length;I++)se=N[I],We=Qe+te(se,I),Ae+=H(se,$,V,We,ke);else if(I=b(N),typeof I=="function")for(N=I.call(N),I=0;!(se=N.next()).done;)se=se.value,We=Qe+te(se,I++),Ae+=H(se,$,V,We,ke);else if(We==="object"){if(typeof N.then=="function")return H(X(N),$,V,se,ke);throw $=String(N),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function Q(N,$,V){if(N==null)return N;var se=[],ke=0;return H(N,se,"","",function(We){return $.call(V,We,ke++)}),se}function oe(N){if(N._status===-1){var $=N._result;$=$(),$.then(function(V){(N._status===0||N._status===-1)&&(N._status=1,N._result=V)},function(V){(N._status===0||N._status===-1)&&(N._status=2,N._result=V)}),N._status===-1&&(N._status=0,N._result=$)}if(N._status===1)return N._result.default;throw N._result}var U=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ie={map:Q,forEach:function(N,$,V){Q(N,function(){$.apply(this,arguments)},V)},count:function(N){var $=0;return Q(N,function(){$++}),$},toArray:function(N){return Q(N,function($){return $})||[]},only:function(N){if(!W(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return Ot.Activity=v,Ot.Children=ie,Ot.Component=M,Ot.Fragment=n,Ot.Profiler=o,Ot.PureComponent=E,Ot.StrictMode=r,Ot.Suspense=h,Ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Ot.__COMPILER_RUNTIME={__proto__:null,c:function(N){return P.H.useMemoCache(N)}},Ot.cache=function(N){return function(){return N.apply(null,arguments)}},Ot.cacheSignal=function(){return null},Ot.cloneElement=function(N,$,V){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var se=S({},N.props),ke=N.key;if($!=null)for(We in $.key!==void 0&&(ke=""+$.key),$)!_.call($,We)||We==="key"||We==="__self"||We==="__source"||We==="ref"&&$.ref===void 0||(se[We]=$[We]);var We=arguments.length-2;if(We===1)se.children=V;else if(1<We){for(var Ae=Array(We),Qe=0;Qe<We;Qe++)Ae[Qe]=arguments[Qe+2];se.children=Ae}return Z(N.type,ke,se)},Ot.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:s,_context:N},N},Ot.createElement=function(N,$,V){var se,ke={},We=null;if($!=null)for(se in $.key!==void 0&&(We=""+$.key),$)_.call($,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ke[se]=$[se]);var Ae=arguments.length-2;if(Ae===1)ke.children=V;else if(1<Ae){for(var Qe=Array(Ae),I=0;I<Ae;I++)Qe[I]=arguments[I+2];ke.children=Qe}if(N&&N.defaultProps)for(se in Ae=N.defaultProps,Ae)ke[se]===void 0&&(ke[se]=Ae[se]);return Z(N,We,ke)},Ot.createRef=function(){return{current:null}},Ot.forwardRef=function(N){return{$$typeof:d,render:N}},Ot.isValidElement=W,Ot.lazy=function(N){return{$$typeof:m,_payload:{_status:-1,_result:N},_init:oe}},Ot.memo=function(N,$){return{$$typeof:p,type:N,compare:$===void 0?null:$}},Ot.startTransition=function(N){var $=P.T,V={};P.T=V;try{var se=N(),ke=P.S;ke!==null&&ke(V,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(T,U)}catch(We){U(We)}finally{$!==null&&V.types!==null&&($.types=V.types),P.T=$}},Ot.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Ot.use=function(N){return P.H.use(N)},Ot.useActionState=function(N,$,V){return P.H.useActionState(N,$,V)},Ot.useCallback=function(N,$){return P.H.useCallback(N,$)},Ot.useContext=function(N){return P.H.useContext(N)},Ot.useDebugValue=function(){},Ot.useDeferredValue=function(N,$){return P.H.useDeferredValue(N,$)},Ot.useEffect=function(N,$){return P.H.useEffect(N,$)},Ot.useEffectEvent=function(N){return P.H.useEffectEvent(N)},Ot.useId=function(){return P.H.useId()},Ot.useImperativeHandle=function(N,$,V){return P.H.useImperativeHandle(N,$,V)},Ot.useInsertionEffect=function(N,$){return P.H.useInsertionEffect(N,$)},Ot.useLayoutEffect=function(N,$){return P.H.useLayoutEffect(N,$)},Ot.useMemo=function(N,$){return P.H.useMemo(N,$)},Ot.useOptimistic=function(N,$){return P.H.useOptimistic(N,$)},Ot.useReducer=function(N,$,V){return P.H.useReducer(N,$,V)},Ot.useRef=function(N){return P.H.useRef(N)},Ot.useState=function(N){return P.H.useState(N)},Ot.useSyncExternalStore=function(N,$,V){return P.H.useSyncExternalStore(N,$,V)},Ot.useTransition=function(){return P.H.useTransition()},Ot.version="19.2.4",Ot}var Vh;function o9(){return Vh||(Vh=1,c4.exports=HL()),c4.exports}var g=o9();const et=L5(g),uv=_L({__proto__:null,default:et},[g]);var f4={exports:{}},El={},d4={exports:{}},h4={};var Wh;function ZL(){return Wh||(Wh=1,(function(e){function t(H,Q){var oe=H.length;H.push(Q);e:for(;0<oe;){var U=oe-1>>>1,ie=H[U];if(0<o(ie,Q))H[U]=Q,H[oe]=ie,oe=U;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var Q=H[0],oe=H.pop();if(oe!==Q){H[0]=oe;e:for(var U=0,ie=H.length,N=ie>>>1;U<N;){var $=2*(U+1)-1,V=H[$],se=$+1,ke=H[se];if(0>o(V,oe))se<ie&&0>o(ke,V)?(H[U]=ke,H[se]=oe,U=se):(H[U]=V,H[$]=oe,U=$);else if(se<ie&&0>o(ke,oe))H[U]=ke,H[se]=oe,U=se;else break e}}return Q}function o(H,Q){var oe=H.sortIndex-Q.sortIndex;return oe!==0?oe:H.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],m=1,v=null,y=3,b=!1,D=!1,S=!1,L=!1,M=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function O(H){for(var Q=n(p);Q!==null;){if(Q.callback===null)r(p);else if(Q.startTime<=H)r(p),Q.sortIndex=Q.expirationTime,t(h,Q);else break;Q=n(p)}}function B(H){if(S=!1,O(H),!D)if(n(h)!==null)D=!0,T||(T=!0,z());else{var Q=n(p);Q!==null&&X(B,Q.startTime-H)}}var T=!1,P=-1,_=5,Z=-1;function K(){return L?!0:!(e.unstable_now()-Z<_)}function W(){if(L=!1,T){var H=e.unstable_now();Z=H;var Q=!0;try{e:{D=!1,S&&(S=!1,w(P),P=-1),b=!0;var oe=y;try{t:{for(O(H),v=n(h);v!==null&&!(v.expirationTime>H&&K());){var U=v.callback;if(typeof U=="function"){v.callback=null,y=v.priorityLevel;var ie=U(v.expirationTime<=H);if(H=e.unstable_now(),typeof ie=="function"){v.callback=ie,O(H),Q=!0;break t}v===n(h)&&r(h),O(H)}else r(h);v=n(h)}if(v!==null)Q=!0;else{var N=n(p);N!==null&&X(B,N.startTime-H),Q=!1}}break e}finally{v=null,y=oe,b=!1}Q=void 0}}finally{Q?z():T=!1}}}var z;if(typeof E=="function")z=function(){E(W)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,te=q.port2;q.port1.onmessage=W,z=function(){te.postMessage(null)}}else z=function(){M(W,0)};function X(H,Q){P=M(function(){H(e.unstable_now())},Q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(H){switch(y){case 1:case 2:case 3:var Q=3;break;default:Q=y}var oe=y;y=Q;try{return H()}finally{y=oe}},e.unstable_requestPaint=function(){L=!0},e.unstable_runWithPriority=function(H,Q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var oe=y;y=H;try{return Q()}finally{y=oe}},e.unstable_scheduleCallback=function(H,Q,oe){var U=e.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?U+oe:U):oe=U,H){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=oe+ie,H={id:m++,callback:Q,priorityLevel:H,startTime:oe,expirationTime:ie,sortIndex:-1},oe>U?(H.sortIndex=oe,t(p,H),n(h)===null&&H===n(p)&&(S?(w(P),P=-1):S=!0,X(B,oe-U))):(H.sortIndex=ie,t(h,H),D||b||(D=!0,T||(T=!0,z()))),H},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(H){var Q=y;return function(){var oe=y;y=Q;try{return H.apply(this,arguments)}finally{y=oe}}}})(h4)),h4}var $h;function VL(){return $h||($h=1,d4.exports=ZL()),d4.exports}var p4={exports:{}},Nn={};var Uh;function WL(){if(Uh)return Nn;Uh=1;var e=o9();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)p+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(h,p,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:p,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Nn.createPortal=function(h,p){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(h,p,null,m)},Nn.flushSync=function(h){var p=c.T,m=r.p;try{if(c.T=null,r.p=2,h)return h()}finally{c.T=p,r.p=m,r.d.f()}},Nn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(h,p))},Nn.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Nn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var m=p.as,v=d(m,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,b=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;m==="style"?r.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:y,fetchPriority:b}):m==="script"&&r.d.X(h,{crossOrigin:v,integrity:y,fetchPriority:b,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Nn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var m=d(p.as,p.crossOrigin);r.d.M(h,{crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(h)},Nn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var m=p.as,v=d(m,p.crossOrigin);r.d.L(h,m,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Nn.preloadModule=function(h,p){if(typeof h=="string")if(p){var m=d(p.as,p.crossOrigin);r.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:m,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(h)},Nn.requestFormReset=function(h){r.d.r(h)},Nn.unstable_batchedUpdates=function(h,p){return h(p)},Nn.useFormState=function(h,p,m){return c.H.useFormState(h,p,m)},Nn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Nn.version="19.2.4",Nn}var qh;function cv(){if(qh)return p4.exports;qh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),p4.exports=WL(),p4.exports}var Yh;function $L(){if(Yh)return El;Yh=1;var e=VL(),t=o9(),n=cv();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)i+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var i=a,u=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(u=i.return),a=i.return;while(a)}return i.tag===3?u:null}function c(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function d(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function h(a){if(s(a)!==a)throw Error(r(188))}function p(a){var i=a.alternate;if(!i){if(i=s(a),i===null)throw Error(r(188));return i!==a?null:a}for(var u=a,f=i;;){var C=u.return;if(C===null)break;var x=C.alternate;if(x===null){if(f=C.return,f!==null){u=f;continue}break}if(C.child===x.child){for(x=C.child;x;){if(x===u)return h(C),a;if(x===f)return h(C),i;x=x.sibling}throw Error(r(188))}if(u.return!==f.return)u=C,f=x;else{for(var k=!1,F=C.child;F;){if(F===u){k=!0,u=C,f=x;break}if(F===f){k=!0,f=C,u=x;break}F=F.sibling}if(!k){for(F=x.child;F;){if(F===u){k=!0,u=x,f=C;break}if(F===f){k=!0,f=x,u=C;break}F=F.sibling}if(!k)throw Error(r(189))}}if(u.alternate!==f)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:i}function m(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=m(a),i!==null)return i;a=a.sibling}return null}var v=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),E=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function z(a){return a===null||typeof a!="object"?null:(a=W&&a[W]||a["@@iterator"],typeof a=="function"?a:null)}var q=Symbol.for("react.client.reference");function te(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===q?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return"Fragment";case M:return"Profiler";case L:return"StrictMode";case B:return"Suspense";case T:return"SuspenseList";case Z:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case D:return"Portal";case E:return a.displayName||"Context";case w:return(a._context.displayName||"Context")+".Consumer";case O:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case P:return i=a.displayName||null,i!==null?i:te(a.type)||"Memo";case _:i=a._payload,a=a._init;try{return te(a(i))}catch{}}return null}var X=Array.isArray,H=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},U=[],ie=-1;function N(a){return{current:a}}function $(a){0>ie||(a.current=U[ie],U[ie]=null,ie--)}function V(a,i){ie++,U[ie]=a.current,a.current=i}var se=N(null),ke=N(null),We=N(null),Ae=N(null);function Qe(a,i){switch(V(We,i),V(ke,a),V(se,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?uh(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=uh(i),a=ch(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}$(se),V(se,a)}function I(){$(se),$(ke),$(We)}function fe(a){a.memoizedState!==null&&V(Ae,a);var i=se.current,u=ch(i,a.type);i!==u&&(V(ke,a),V(se,u))}function me(a){ke.current===a&&($(se),$(ke)),Ae.current===a&&($(Ae),bl._currentValue=oe)}var Se,Xe;function He(a){if(Se===void 0)try{throw Error()}catch(u){var i=u.stack.trim().match(/\n( *(at )?)/);Se=i&&i[1]||"",Xe=-1<u.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Se+a+Xe}var Ct=!1;function mt(a,i){if(!a||Ct)return"";Ct=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(i){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(De){var ye=De}Reflect.construct(a,[],Ne)}else{try{Ne.call()}catch(De){ye=De}a.call(Ne.prototype)}}else{try{throw Error()}catch(De){ye=De}(Ne=a())&&typeof Ne.catch=="function"&&Ne.catch(function(){})}}catch(De){if(De&&ye&&typeof De.stack=="string")return[De.stack,ye.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=f.DetermineComponentFrameRoot(),k=x[0],F=x[1];if(k&&F){var G=k.split(`
4
+ `),ge=F.split(`
5
+ `);for(C=f=0;f<G.length&&!G[f].includes("DetermineComponentFrameRoot");)f++;for(;C<ge.length&&!ge[C].includes("DetermineComponentFrameRoot");)C++;if(f===G.length||C===ge.length)for(f=G.length-1,C=ge.length-1;1<=f&&0<=C&&G[f]!==ge[C];)C--;for(;1<=f&&0<=C;f--,C--)if(G[f]!==ge[C]){if(f!==1||C!==1)do if(f--,C--,0>C||G[f]!==ge[C]){var je=`
6
+ `+G[f].replace(" at new "," at ");return a.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",a.displayName)),je}while(1<=f&&0<=C);break}}}finally{Ct=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?He(u):""}function dt(a,i){switch(a.tag){case 26:case 27:case 5:return He(a.type);case 16:return He("Lazy");case 13:return a.child!==i&&i!==null?He("Suspense Fallback"):He("Suspense");case 19:return He("SuspenseList");case 0:case 15:return mt(a.type,!1);case 11:return mt(a.type.render,!1);case 1:return mt(a.type,!0);case 31:return He("Activity");default:return""}}function xe(a){try{var i="",u=null;do i+=dt(a,u),u=a,a=a.return;while(a);return i}catch(f){return`
7
+ Error generating stack: `+f.message+`
8
+ `+f.stack}}var Ue=Object.prototype.hasOwnProperty,ht=e.unstable_scheduleCallback,Ie=e.unstable_cancelCallback,Lt=e.unstable_shouldYield,n1=e.unstable_requestPaint,Me=e.unstable_now,tt=e.unstable_getCurrentPriorityLevel,Y=e.unstable_ImmediatePriority,he=e.unstable_UserBlockingPriority,ve=e.unstable_NormalPriority,Be=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,Ee=e.log,_e=e.unstable_setDisableYieldValue,ue=null,at=null;function rt(a){if(typeof Ee=="function"&&_e(a),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(ue,a)}catch{}}var Tt=Math.clz32?Math.clz32:kt,p1=Math.log,v1=Math.LN2;function kt(a){return a>>>=0,a===0?32:31-(p1(a)/v1|0)|0}var Qt=256,ft=262144,zt=4194304;function ut(a){var i=a&42;if(i!==0)return i;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function c1(a,i,u){var f=a.pendingLanes;if(f===0)return 0;var C=0,x=a.suspendedLanes,k=a.pingedLanes;a=a.warmLanes;var F=f&134217727;return F!==0?(f=F&~x,f!==0?C=ut(f):(k&=F,k!==0?C=ut(k):u||(u=F&~a,u!==0&&(C=ut(u))))):(F=f&~x,F!==0?C=ut(F):k!==0?C=ut(k):u||(u=f&~a,u!==0&&(C=ut(u)))),C===0?0:i!==0&&i!==C&&(i&x)===0&&(x=C&-C,u=i&-i,x>=u||x===32&&(u&4194048)!==0)?i:C}function f1(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function Zn(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ht(){var a=zt;return zt<<=1,(zt&62914560)===0&&(zt=4194304),a}function s1(a){for(var i=[],u=0;31>u;u++)i.push(a);return i}function Nt(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function nt(a,i,u,f,C,x){var k=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var F=a.entanglements,G=a.expirationTimes,ge=a.hiddenUpdates;for(u=k&~u;0<u;){var je=31-Tt(u),Ne=1<<je;F[je]=0,G[je]=-1;var ye=ge[je];if(ye!==null)for(ge[je]=null,je=0;je<ye.length;je++){var De=ye[je];De!==null&&(De.lane&=-536870913)}u&=~Ne}f!==0&&fn(a,f,0),x!==0&&C===0&&a.tag!==0&&(a.suspendedLanes|=x&~(k&~i))}function fn(a,i,u){a.pendingLanes|=i,a.suspendedLanes&=~i;var f=31-Tt(i);a.entangledLanes|=i,a.entanglements[f]=a.entanglements[f]|1073741824|u&261930}function Y1(a,i){var u=a.entangledLanes|=i;for(a=a.entanglements;u;){var f=31-Tt(u),C=1<<f;C&i|a[f]&i&&(a[f]|=i),u&=~C}}function G1(a,i){var u=i&-i;return u=(u&42)!==0?1:_t(u),(u&(a.suspendedLanes|i))!==0?0:u}function _t(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function d1(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Vt(){var a=Q.p;return a!==0?a:(a=window.event,a===void 0?32:Rh(a.type))}function dn(a,i){var u=Q.p;try{return Q.p=a,i()}finally{Q.p=u}}var xt=Math.random().toString(36).slice(2),Dt="__reactFiber$"+xt,o1="__reactProps$"+xt,S1="__reactContainer$"+xt,mn="__reactEvents$"+xt,Mr="__reactListeners$"+xt,Er="__reactHandles$"+xt,hr="__reactResources$"+xt,Bn="__reactMarker$"+xt;function Qn(a){delete a[Dt],delete a[o1],delete a[mn],delete a[Mr],delete a[Er]}function hn(a){var i=a[Dt];if(i)return i;for(var u=a.parentNode;u;){if(i=u[S1]||u[Dt]){if(u=i.alternate,i.child!==null||u!==null&&u.child!==null)for(a=mh(a);a!==null;){if(u=a[Dt])return u;a=mh(a)}return i}a=u,u=a.parentNode}return null}function pr(a){if(a=a[Dt]||a[S1]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function kr(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function bn(a){var i=a[hr];return i||(i=a[hr]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function D1(a){a[Bn]=!0}var va=new Set,Jn={};function Vn(a,i){vn(a,i),vn(a+"Capture",i)}function vn(a,i){for(Jn[a]=i,a=0;a<i.length;a++)va.add(i[a])}var ls=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),er={},Le={};function qe(a){return Ue.call(Le,a)?!0:Ue.call(er,a)?!1:ls.test(a)?Le[a]=!0:(er[a]=!0,!1)}function Ke(a,i,u){if(qe(i))if(u===null)a.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var f=i.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){a.removeAttribute(i);return}}a.setAttribute(i,""+u)}}function Et(a,i,u){if(u===null)a.removeAttribute(i);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttribute(i,""+u)}}function vt(a,i,u,f){if(f===null)a.removeAttribute(u);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(i,u,""+f)}}function lt(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function ct(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function i1(a,i,u){var f=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var C=f.get,x=f.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return C.call(this)},set:function(k){u=""+k,x.call(this,k)}}),Object.defineProperty(a,i,{enumerable:f.enumerable}),{getValue:function(){return u},setValue:function(k){u=""+k},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function r1(a){if(!a._valueTracker){var i=ct(a)?"checked":"value";a._valueTracker=i1(a,i,""+a[i])}}function rn(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var u=i.getValue(),f="";return a&&(f=ct(a)?a.checked?"true":"false":a.value),a=f,a!==u?(i.setValue(a),!0):!1}function an(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var us=/[\n"\\]/g;function y1(a){return a.replace(us,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function jr(a,i,u,f,C,x,k,F){a.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?a.type=k:a.removeAttribute("type"),i!=null?k==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+lt(i)):a.value!==""+lt(i)&&(a.value=""+lt(i)):k!=="submit"&&k!=="reset"||a.removeAttribute("value"),i!=null?Yr(a,k,lt(i)):u!=null?Yr(a,k,lt(u)):f!=null&&a.removeAttribute("value"),C==null&&x!=null&&(a.defaultChecked=!!x),C!=null&&(a.checked=C&&typeof C!="function"&&typeof C!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?a.name=""+lt(F):a.removeAttribute("name")}function za(a,i,u,f,C,x,k,F){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(a.type=x),i!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||i!=null)){r1(a);return}u=u!=null?""+lt(u):"",i=i!=null?""+lt(i):u,F||i===a.value||(a.value=i),a.defaultValue=i}f=f??C,f=typeof f!="function"&&typeof f!="symbol"&&!!f,a.checked=F?a.checked:!!f,a.defaultChecked=!!f,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(a.name=k),r1(a)}function Yr(a,i,u){i==="number"&&an(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Rn(a,i,u,f){if(a=a.options,i){i={};for(var C=0;C<u.length;C++)i["$"+u[C]]=!0;for(u=0;u<a.length;u++)C=i.hasOwnProperty("$"+a[u].value),a[u].selected!==C&&(a[u].selected=C),C&&f&&(a[u].defaultSelected=!0)}else{for(u=""+lt(u),i=null,C=0;C<a.length;C++){if(a[C].value===u){a[C].selected=!0,f&&(a[C].defaultSelected=!0);return}i!==null||a[C].disabled||(i=a[C])}i!==null&&(i.selected=!0)}}function Mt(a,i,u){if(i!=null&&(i=""+lt(i),i!==a.value&&(a.value=i),u==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=u!=null?""+lt(u):""}function Gr(a,i,u,f){if(i==null){if(f!=null){if(u!=null)throw Error(r(92));if(X(f)){if(1<f.length)throw Error(r(93));f=f[0]}u=f}u==null&&(u=""),i=u}u=lt(i),a.defaultValue=u,f=a.textContent,f===u&&f!==""&&f!==null&&(a.value=f),r1(a)}function Tn(a,i){if(i){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=i;return}}a.textContent=i}var K1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tr(a,i,u){var f=i.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?f?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":f?a.setProperty(i,u):typeof u!="number"||u===0||K1.has(i)?i==="float"?a.cssFloat=u:a[i]=(""+u).trim():a[i]=u+"px"}function z2(a,i,u){if(i!=null&&typeof i!="object")throw Error(r(62));if(a=a.style,u!=null){for(var f in u)!u.hasOwnProperty(f)||i!=null&&i.hasOwnProperty(f)||(f.indexOf("--")===0?a.setProperty(f,""):f==="float"?a.cssFloat="":a[f]="");for(var C in i)f=i[C],i.hasOwnProperty(C)&&u[C]!==f&&tr(a,C,f)}else for(var x in i)i.hasOwnProperty(x)&&tr(a,x,i[x])}function wo(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var s7=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),cs=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fs(a){return cs.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Kr(){}var hi=null;function bo(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var So=null,Do=null;function Fe(a){var i=pr(a);if(i&&(a=i.stateNode)){var u=a[o1]||null;e:switch(a=i.stateNode,i.type){case"input":if(jr(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),i=u.name,u.type==="radio"&&i!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+y1(""+i)+'"][type="radio"]'),i=0;i<u.length;i++){var f=u[i];if(f!==a&&f.form===a.form){var C=f[o1]||null;if(!C)throw Error(r(90));jr(f,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(i=0;i<u.length;i++)f=u[i],f.form===a.form&&rn(f)}break e;case"textarea":Mt(a,u.value,u.defaultValue);break e;case"select":i=u.value,i!=null&&Rn(a,!!u.multiple,i,!1)}}}var Ha=!1;function H2(a,i,u){if(Ha)return a(i,u);Ha=!0;try{var f=a(i);return f}finally{if(Ha=!1,(So!==null||Do!==null)&&(Bu(),So&&(i=So,a=Do,Do=So=null,Fe(i),a)))for(i=0;i<a.length;i++)Fe(a[i])}}function Xr(a,i){var u=a.stateNode;if(u===null)return null;var f=u[o1]||null;if(f===null)return null;u=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(a=a.type,f=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!f;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,i,typeof u));return u}var Qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),O1=!1;if(Qr)try{var pn={};Object.defineProperty(pn,"passive",{get:function(){O1=!0}}),window.addEventListener("test",pn,pn),window.removeEventListener("test",pn,pn)}catch{O1=!1}var Sn=null,Cr=null,ya=null;function ds(){if(ya)return ya;var a,i=Cr,u=i.length,f,C="value"in Sn?Sn.value:Sn.textContent,x=C.length;for(a=0;a<u&&i[a]===C[a];a++);var k=u-a;for(f=1;f<=k&&i[u-f]===C[x-f];f++);return ya=C.slice(a,1<f?1-f:void 0)}function hs(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function ps(){return!0}function Z2(){return!1}function Dn(a){function i(u,f,C,x,k){this._reactName=u,this._targetInst=C,this.type=f,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var F in a)a.hasOwnProperty(F)&&(u=a[F],this[F]=u?u(x):x[F]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?ps:Z2,this.isPropagationStopped=Z2,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=ps)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=ps)},persist:function(){},isPersistent:ps}),i}var xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ar=Dn(xa),Jr=v({},xa,{view:0,detail:0}),pi=Dn(Jr),Za,Cs,wa,gs=v({},Jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:U2,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==wa&&(wa&&a.type==="mousemove"?(Za=a.screenX-wa.screenX,Cs=a.screenY-wa.screenY):Cs=Za=0,wa=a),Za)},movementY:function(a){return"movementY"in a?a.movementY:Cs}}),V2=Dn(gs),l7=v({},gs,{dataTransfer:0}),W2=Dn(l7),u7=v({},Jr,{relatedTarget:0}),Or=Dn(u7),W5=v({},xa,{animationName:0,elapsedTime:0,pseudoElement:0}),$5=Dn(W5),Va=v({},xa,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),U5=Dn(Va),c7=v({},xa,{data:0}),$2=Dn(c7),ms={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vs={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},f7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d7(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=f7[a])?!!i[a]:!1}function U2(){return d7}var h7=v({},Jr,{key:function(a){if(a.key){var i=ms[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=hs(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?vs[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:U2,charCode:function(a){return a.type==="keypress"?hs(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?hs(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),q5=Dn(h7),p7=v({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Y5=Dn(p7),G5=v({},Jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:U2}),C7=Dn(G5),K5=v({},xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),X5=Dn(K5),g7=v({},gs,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),m7=Dn(g7),j=v({},xa,{newState:0,oldState:0}),A=Dn(j),be=[9,13,27,32],ce=Qr&&"CompositionEvent"in window,ae=null;Qr&&"documentMode"in document&&(ae=document.documentMode);var de=Qr&&"TextEvent"in window&&!ae,Oe=Qr&&(!ce||ae&&8<ae&&11>=ae),we=" ",pe=!1;function ze(a,i){switch(a){case"keyup":return be.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function it(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ve=!1;function bt(a,i){switch(a){case"compositionend":return it(i);case"keypress":return i.which!==32?null:(pe=!0,we);case"textInput":return a=i.data,a===we&&pe?null:a;default:return null}}function yt(a,i){if(Ve)return a==="compositionend"||!ce&&ze(a,i)?(a=ds(),ya=Cr=Sn=null,Ve=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Oe&&i.locale!=="ko"?null:i.data;default:return null}}var $t={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wt(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!$t[a.type]:i==="textarea"}function J(a,i,u,f){So?Do?Do.push(f):Do=[f]:So=f,i=Iu(i,"onChange"),0<i.length&&(u=new Ar("onChange","change",null,u,f),a.push({event:u,listeners:i}))}var wt=null,pt=null;function At(a){rh(a,0)}function z1(a){var i=kr(a);if(rn(i))return a}function Wn(a,i){if(a==="change")return i}var yn=!1;if(Qr){var gr;if(Qr){var ea="oninput"in document;if(!ea){var Wa=document.createElement("div");Wa.setAttribute("oninput","return;"),ea=typeof Wa.oninput=="function"}gr=ea}else gr=!1;yn=gr&&(!document.documentMode||9<document.documentMode)}function B1(){wt&&(wt.detachEvent("onpropertychange",Ci),pt=wt=null)}function Ci(a){if(a.propertyName==="value"&&z1(pt)){var i=[];J(i,pt,a,bo(a)),H2(At,i)}}function Ye(a,i,u){a==="focusin"?(B1(),wt=i,pt=u,wt.attachEvent("onpropertychange",Ci)):a==="focusout"&&B1()}function H1(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return z1(pt)}function R1(a,i){if(a==="click")return z1(i)}function nr(a,i){if(a==="input"||a==="change")return z1(i)}function $1(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var xn=typeof Object.is=="function"?Object.is:$1;function $a(a,i){if(xn(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var u=Object.keys(a),f=Object.keys(i);if(u.length!==f.length)return!1;for(f=0;f<u.length;f++){var C=u[f];if(!Ue.call(i,C)||!xn(a[C],i[C]))return!1}return!0}function ta(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function rr(a,i){var u=ta(a);a=0;for(var f;u;){if(u.nodeType===3){if(f=a+u.textContent.length,a<=i&&f>=i)return{node:u,offset:i-a};a=f}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=ta(u)}}function gi(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?gi(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function j6(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=an(a.document);i instanceof a.HTMLIFrameElement;){try{var u=typeof i.contentWindow.location.href=="string"}catch{u=!1}if(u)a=i.contentWindow;else break;i=an(a.document)}return i}function v7(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var mD=Qr&&"documentMode"in document&&11>=document.documentMode,ys=null,y7=null,q2=null,x7=!1;function A6(a,i,u){var f=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;x7||ys==null||ys!==an(f)||(f=ys,"selectionStart"in f&&v7(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),q2&&$a(q2,f)||(q2=f,f=Iu(y7,"onSelect"),0<f.length&&(i=new Ar("onSelect","select",null,i,u),a.push({event:i,listeners:f}),i.target=ys)))}function mi(a,i){var u={};return u[a.toLowerCase()]=i.toLowerCase(),u["Webkit"+a]="webkit"+i,u["Moz"+a]="moz"+i,u}var xs={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},w7={},O6={};Qr&&(O6=document.createElement("div").style,"AnimationEvent"in window||(delete xs.animationend.animation,delete xs.animationiteration.animation,delete xs.animationstart.animation),"TransitionEvent"in window||delete xs.transitionend.transition);function vi(a){if(w7[a])return w7[a];if(!xs[a])return a;var i=xs[a],u;for(u in i)if(i.hasOwnProperty(u)&&u in O6)return w7[a]=i[u];return a}var B6=vi("animationend"),R6=vi("animationiteration"),T6=vi("animationstart"),vD=vi("transitionrun"),yD=vi("transitionstart"),xD=vi("transitioncancel"),N6=vi("transitionend"),F6=new Map,b7="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");b7.push("scrollEnd");function na(a,i){F6.set(a,i),Vn(i,[a])}var Q5=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Br=[],ws=0,S7=0;function J5(){for(var a=ws,i=S7=ws=0;i<a;){var u=Br[i];Br[i++]=null;var f=Br[i];Br[i++]=null;var C=Br[i];Br[i++]=null;var x=Br[i];if(Br[i++]=null,f!==null&&C!==null){var k=f.pending;k===null?C.next=C:(C.next=k.next,k.next=C),f.pending=C}x!==0&&P6(u,C,x)}}function eu(a,i,u,f){Br[ws++]=a,Br[ws++]=i,Br[ws++]=u,Br[ws++]=f,S7|=f,a.lanes|=f,a=a.alternate,a!==null&&(a.lanes|=f)}function D7(a,i,u,f){return eu(a,i,u,f),tu(a)}function yi(a,i){return eu(a,null,null,i),tu(a)}function P6(a,i,u){a.lanes|=u;var f=a.alternate;f!==null&&(f.lanes|=u);for(var C=!1,x=a.return;x!==null;)x.childLanes|=u,f=x.alternate,f!==null&&(f.childLanes|=u),x.tag===22&&(a=x.stateNode,a===null||a._visibility&1||(C=!0)),a=x,x=x.return;return a.tag===3?(x=a.stateNode,C&&i!==null&&(C=31-Tt(u),a=x.hiddenUpdates,f=a[C],f===null?a[C]=[i]:f.push(i),i.lane=u|536870912),x):null}function tu(a){if(50<Cl)throw Cl=0,R3=null,Error(r(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var bs={};function wD(a,i,u,f){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mr(a,i,u,f){return new wD(a,i,u,f)}function L7(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ua(a,i){var u=a.alternate;return u===null?(u=mr(a.tag,i,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=i,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,i=a.dependencies,u.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function _6(a,i){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,i=u.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a}function nu(a,i,u,f,C,x){var k=0;if(f=a,typeof a=="function")L7(a)&&(k=1);else if(typeof a=="string")k=ML(a,u,se.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case Z:return a=mr(31,u,i,C),a.elementType=Z,a.lanes=x,a;case S:return xi(u.children,C,x,i);case L:k=8,C|=24;break;case M:return a=mr(12,u,i,C|2),a.elementType=M,a.lanes=x,a;case B:return a=mr(13,u,i,C),a.elementType=B,a.lanes=x,a;case T:return a=mr(19,u,i,C),a.elementType=T,a.lanes=x,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case E:k=10;break e;case w:k=9;break e;case O:k=11;break e;case P:k=14;break e;case _:k=16,f=null;break e}k=29,u=Error(r(130,a===null?"null":typeof a,"")),f=null}return i=mr(k,u,i,C),i.elementType=a,i.type=f,i.lanes=x,i}function xi(a,i,u,f){return a=mr(7,a,f,i),a.lanes=u,a}function M7(a,i,u){return a=mr(6,a,null,i),a.lanes=u,a}function I6(a){var i=mr(18,null,null,0);return i.stateNode=a,i}function E7(a,i,u){return i=mr(4,a.children!==null?a.children:[],a.key,i),i.lanes=u,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var z6=new WeakMap;function Rr(a,i){if(typeof a=="object"&&a!==null){var u=z6.get(a);return u!==void 0?u:(i={value:a,source:i,stack:xe(i)},z6.set(a,i),i)}return{value:a,source:i,stack:xe(i)}}var Ss=[],Ds=0,ru=null,Y2=0,Tr=[],Nr=0,Lo=null,ba=1,Sa="";function qa(a,i){Ss[Ds++]=Y2,Ss[Ds++]=ru,ru=a,Y2=i}function H6(a,i,u){Tr[Nr++]=ba,Tr[Nr++]=Sa,Tr[Nr++]=Lo,Lo=a;var f=ba;a=Sa;var C=32-Tt(f)-1;f&=~(1<<C),u+=1;var x=32-Tt(i)+C;if(30<x){var k=C-C%5;x=(f&(1<<k)-1).toString(32),f>>=k,C-=k,ba=1<<32-Tt(i)+C|u<<C|f,Sa=x+a}else ba=1<<x|u<<C|f,Sa=a}function k7(a){a.return!==null&&(qa(a,1),H6(a,1,0))}function j7(a){for(;a===ru;)ru=Ss[--Ds],Ss[Ds]=null,Y2=Ss[--Ds],Ss[Ds]=null;for(;a===Lo;)Lo=Tr[--Nr],Tr[Nr]=null,Sa=Tr[--Nr],Tr[Nr]=null,ba=Tr[--Nr],Tr[Nr]=null}function Z6(a,i){Tr[Nr++]=ba,Tr[Nr++]=Sa,Tr[Nr++]=Lo,ba=i.id,Sa=i.overflow,Lo=a}var Ln=null,E1=null,a1=!1,Mo=null,Fr=!1,A7=Error(r(519));function Eo(a){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw G2(Rr(i,a)),A7}function V6(a){var i=a.stateNode,u=a.type,f=a.memoizedProps;switch(i[Dt]=a,i[o1]=f,u){case"dialog":qt("cancel",i),qt("close",i);break;case"iframe":case"object":case"embed":qt("load",i);break;case"video":case"audio":for(u=0;u<ml.length;u++)qt(ml[u],i);break;case"source":qt("error",i);break;case"img":case"image":case"link":qt("error",i),qt("load",i);break;case"details":qt("toggle",i);break;case"input":qt("invalid",i),za(i,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0);break;case"select":qt("invalid",i);break;case"textarea":qt("invalid",i),Gr(i,f.value,f.defaultValue,f.children)}u=f.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||i.textContent===""+u||f.suppressHydrationWarning===!0||sh(i.textContent,u)?(f.popover!=null&&(qt("beforetoggle",i),qt("toggle",i)),f.onScroll!=null&&qt("scroll",i),f.onScrollEnd!=null&&qt("scrollend",i),f.onClick!=null&&(i.onclick=Kr),i=!0):i=!1,i||Eo(a,!0)}function W6(a){for(Ln=a.return;Ln;)switch(Ln.tag){case 5:case 31:case 13:Fr=!1;return;case 27:case 3:Fr=!0;return;default:Ln=Ln.return}}function Ls(a){if(a!==Ln)return!1;if(!a1)return W6(a),a1=!0,!1;var i=a.tag,u;if((u=i!==3&&i!==27)&&((u=i===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Y3(a.type,a.memoizedProps)),u=!u),u&&E1&&Eo(a),W6(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));E1=gh(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));E1=gh(a)}else i===27?(i=E1,Ho(a.type)?(a=J3,J3=null,E1=a):E1=i):E1=Ln?_r(a.stateNode.nextSibling):null;return!0}function wi(){E1=Ln=null,a1=!1}function O7(){var a=Mo;return a!==null&&(sr===null?sr=a:sr.push.apply(sr,a),Mo=null),a}function G2(a){Mo===null?Mo=[a]:Mo.push(a)}var B7=N(null),bi=null,Ya=null;function ko(a,i,u){V(B7,i._currentValue),i._currentValue=u}function Ga(a){a._currentValue=B7.current,$(B7)}function R7(a,i,u){for(;a!==null;){var f=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),a===u)break;a=a.return}}function T7(a,i,u,f){var C=a.child;for(C!==null&&(C.return=a);C!==null;){var x=C.dependencies;if(x!==null){var k=C.child;x=x.firstContext;e:for(;x!==null;){var F=x;x=C;for(var G=0;G<i.length;G++)if(F.context===i[G]){x.lanes|=u,F=x.alternate,F!==null&&(F.lanes|=u),R7(x.return,u,a),f||(k=null);break e}x=F.next}}else if(C.tag===18){if(k=C.return,k===null)throw Error(r(341));k.lanes|=u,x=k.alternate,x!==null&&(x.lanes|=u),R7(k,u,a),k=null}else k=C.child;if(k!==null)k.return=C;else for(k=C;k!==null;){if(k===a){k=null;break}if(C=k.sibling,C!==null){C.return=k.return,k=C;break}k=k.return}C=k}}function Ms(a,i,u,f){a=null;for(var C=i,x=!1;C!==null;){if(!x){if((C.flags&524288)!==0)x=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var k=C.alternate;if(k===null)throw Error(r(387));if(k=k.memoizedProps,k!==null){var F=C.type;xn(C.pendingProps.value,k.value)||(a!==null?a.push(F):a=[F])}}else if(C===Ae.current){if(k=C.alternate,k===null)throw Error(r(387));k.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(a!==null?a.push(bl):a=[bl])}C=C.return}a!==null&&T7(i,a,u,f),i.flags|=262144}function au(a){for(a=a.firstContext;a!==null;){if(!xn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Si(a){bi=a,Ya=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Mn(a){return $6(bi,a)}function ou(a,i){return bi===null&&Si(a),$6(a,i)}function $6(a,i){var u=i._currentValue;if(i={context:i,memoizedValue:u,next:null},Ya===null){if(a===null)throw Error(r(308));Ya=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else Ya=Ya.next=i;return u}var bD=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(u,f){a.push(f)}};this.abort=function(){i.aborted=!0,a.forEach(function(u){return u()})}},SD=e.unstable_scheduleCallback,DD=e.unstable_NormalPriority,on={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function N7(){return{controller:new bD,data:new Map,refCount:0}}function K2(a){a.refCount--,a.refCount===0&&SD(DD,function(){a.controller.abort()})}var X2=null,F7=0,Es=0,ks=null;function LD(a,i){if(X2===null){var u=X2=[];F7=0,Es=I3(),ks={status:"pending",value:void 0,then:function(f){u.push(f)}}}return F7++,i.then(U6,U6),i}function U6(){if(--F7===0&&X2!==null){ks!==null&&(ks.status="fulfilled");var a=X2;X2=null,Es=0,ks=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function MD(a,i){var u=[],f={status:"pending",value:null,reason:null,then:function(C){u.push(C)}};return a.then(function(){f.status="fulfilled",f.value=i;for(var C=0;C<u.length;C++)(0,u[C])(i)},function(C){for(f.status="rejected",f.reason=C,C=0;C<u.length;C++)(0,u[C])(void 0)}),f}var q6=H.S;H.S=function(a,i){Od=Me(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&LD(a,i),q6!==null&&q6(a,i)};var Di=N(null);function P7(){var a=Di.current;return a!==null?a:L1.pooledCache}function iu(a,i){i===null?V(Di,Di.current):V(Di,i.pool)}function Y6(){var a=P7();return a===null?null:{parent:on._currentValue,pool:a}}var js=Error(r(460)),_7=Error(r(474)),su=Error(r(542)),lu={then:function(){}};function G6(a){return a=a.status,a==="fulfilled"||a==="rejected"}function K6(a,i,u){switch(u=a[u],u===void 0?a.push(i):u!==i&&(i.then(Kr,Kr),i=u),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Q6(a),a;default:if(typeof i.status=="string")i.then(Kr,Kr);else{if(a=L1,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=i,a.status="pending",a.then(function(f){if(i.status==="pending"){var C=i;C.status="fulfilled",C.value=f}},function(f){if(i.status==="pending"){var C=i;C.status="rejected",C.reason=f}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Q6(a),a}throw Mi=i,js}}function Li(a){try{var i=a._init;return i(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Mi=u,js):u}}var Mi=null;function X6(){if(Mi===null)throw Error(r(459));var a=Mi;return Mi=null,a}function Q6(a){if(a===js||a===su)throw Error(r(483))}var As=null,Q2=0;function uu(a){var i=Q2;return Q2+=1,As===null&&(As=[]),K6(As,a,i)}function J2(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function cu(a,i){throw i.$$typeof===y?Error(r(525)):(a=Object.prototype.toString.call(i),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)))}function J6(a){function i(le,ne){if(a){var Ce=le.deletions;Ce===null?(le.deletions=[ne],le.flags|=16):Ce.push(ne)}}function u(le,ne){if(!a)return null;for(;ne!==null;)i(le,ne),ne=ne.sibling;return null}function f(le){for(var ne=new Map;le!==null;)le.key!==null?ne.set(le.key,le):ne.set(le.index,le),le=le.sibling;return ne}function C(le,ne){return le=Ua(le,ne),le.index=0,le.sibling=null,le}function x(le,ne,Ce){return le.index=Ce,a?(Ce=le.alternate,Ce!==null?(Ce=Ce.index,Ce<ne?(le.flags|=67108866,ne):Ce):(le.flags|=67108866,ne)):(le.flags|=1048576,ne)}function k(le){return a&&le.alternate===null&&(le.flags|=67108866),le}function F(le,ne,Ce,Re){return ne===null||ne.tag!==6?(ne=M7(Ce,le.mode,Re),ne.return=le,ne):(ne=C(ne,Ce),ne.return=le,ne)}function G(le,ne,Ce,Re){var gt=Ce.type;return gt===S?je(le,ne,Ce.props.children,Re,Ce.key):ne!==null&&(ne.elementType===gt||typeof gt=="object"&&gt!==null&&gt.$$typeof===_&&Li(gt)===ne.type)?(ne=C(ne,Ce.props),J2(ne,Ce),ne.return=le,ne):(ne=nu(Ce.type,Ce.key,Ce.props,null,le.mode,Re),J2(ne,Ce),ne.return=le,ne)}function ge(le,ne,Ce,Re){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==Ce.containerInfo||ne.stateNode.implementation!==Ce.implementation?(ne=E7(Ce,le.mode,Re),ne.return=le,ne):(ne=C(ne,Ce.children||[]),ne.return=le,ne)}function je(le,ne,Ce,Re,gt){return ne===null||ne.tag!==7?(ne=xi(Ce,le.mode,Re,gt),ne.return=le,ne):(ne=C(ne,Ce),ne.return=le,ne)}function Ne(le,ne,Ce){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return ne=M7(""+ne,le.mode,Ce),ne.return=le,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:return Ce=nu(ne.type,ne.key,ne.props,null,le.mode,Ce),J2(Ce,ne),Ce.return=le,Ce;case D:return ne=E7(ne,le.mode,Ce),ne.return=le,ne;case _:return ne=Li(ne),Ne(le,ne,Ce)}if(X(ne)||z(ne))return ne=xi(ne,le.mode,Ce,null),ne.return=le,ne;if(typeof ne.then=="function")return Ne(le,uu(ne),Ce);if(ne.$$typeof===E)return Ne(le,ou(le,ne),Ce);cu(le,ne)}return null}function ye(le,ne,Ce,Re){var gt=ne!==null?ne.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return gt!==null?null:F(le,ne,""+Ce,Re);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case b:return Ce.key===gt?G(le,ne,Ce,Re):null;case D:return Ce.key===gt?ge(le,ne,Ce,Re):null;case _:return Ce=Li(Ce),ye(le,ne,Ce,Re)}if(X(Ce)||z(Ce))return gt!==null?null:je(le,ne,Ce,Re,null);if(typeof Ce.then=="function")return ye(le,ne,uu(Ce),Re);if(Ce.$$typeof===E)return ye(le,ne,ou(le,Ce),Re);cu(le,Ce)}return null}function De(le,ne,Ce,Re,gt){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return le=le.get(Ce)||null,F(ne,le,""+Re,gt);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case b:return le=le.get(Re.key===null?Ce:Re.key)||null,G(ne,le,Re,gt);case D:return le=le.get(Re.key===null?Ce:Re.key)||null,ge(ne,le,Re,gt);case _:return Re=Li(Re),De(le,ne,Ce,Re,gt)}if(X(Re)||z(Re))return le=le.get(Ce)||null,je(ne,le,Re,gt,null);if(typeof Re.then=="function")return De(le,ne,Ce,uu(Re),gt);if(Re.$$typeof===E)return De(le,ne,Ce,ou(ne,Re),gt);cu(ne,Re)}return null}function ot(le,ne,Ce,Re){for(var gt=null,l1=null,st=ne,Zt=ne=0,e1=null;st!==null&&Zt<Ce.length;Zt++){st.index>Zt?(e1=st,st=null):e1=st.sibling;var u1=ye(le,st,Ce[Zt],Re);if(u1===null){st===null&&(st=e1);break}a&&st&&u1.alternate===null&&i(le,st),ne=x(u1,ne,Zt),l1===null?gt=u1:l1.sibling=u1,l1=u1,st=e1}if(Zt===Ce.length)return u(le,st),a1&&qa(le,Zt),gt;if(st===null){for(;Zt<Ce.length;Zt++)st=Ne(le,Ce[Zt],Re),st!==null&&(ne=x(st,ne,Zt),l1===null?gt=st:l1.sibling=st,l1=st);return a1&&qa(le,Zt),gt}for(st=f(st);Zt<Ce.length;Zt++)e1=De(st,le,Zt,Ce[Zt],Re),e1!==null&&(a&&e1.alternate!==null&&st.delete(e1.key===null?Zt:e1.key),ne=x(e1,ne,Zt),l1===null?gt=e1:l1.sibling=e1,l1=e1);return a&&st.forEach(function(Uo){return i(le,Uo)}),a1&&qa(le,Zt),gt}function St(le,ne,Ce,Re){if(Ce==null)throw Error(r(151));for(var gt=null,l1=null,st=ne,Zt=ne=0,e1=null,u1=Ce.next();st!==null&&!u1.done;Zt++,u1=Ce.next()){st.index>Zt?(e1=st,st=null):e1=st.sibling;var Uo=ye(le,st,u1.value,Re);if(Uo===null){st===null&&(st=e1);break}a&&st&&Uo.alternate===null&&i(le,st),ne=x(Uo,ne,Zt),l1===null?gt=Uo:l1.sibling=Uo,l1=Uo,st=e1}if(u1.done)return u(le,st),a1&&qa(le,Zt),gt;if(st===null){for(;!u1.done;Zt++,u1=Ce.next())u1=Ne(le,u1.value,Re),u1!==null&&(ne=x(u1,ne,Zt),l1===null?gt=u1:l1.sibling=u1,l1=u1);return a1&&qa(le,Zt),gt}for(st=f(st);!u1.done;Zt++,u1=Ce.next())u1=De(st,le,Zt,u1.value,Re),u1!==null&&(a&&u1.alternate!==null&&st.delete(u1.key===null?Zt:u1.key),ne=x(u1,ne,Zt),l1===null?gt=u1:l1.sibling=u1,l1=u1);return a&&st.forEach(function(PL){return i(le,PL)}),a1&&qa(le,Zt),gt}function b1(le,ne,Ce,Re){if(typeof Ce=="object"&&Ce!==null&&Ce.type===S&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case b:e:{for(var gt=Ce.key;ne!==null;){if(ne.key===gt){if(gt=Ce.type,gt===S){if(ne.tag===7){u(le,ne.sibling),Re=C(ne,Ce.props.children),Re.return=le,le=Re;break e}}else if(ne.elementType===gt||typeof gt=="object"&&gt!==null&&gt.$$typeof===_&&Li(gt)===ne.type){u(le,ne.sibling),Re=C(ne,Ce.props),J2(Re,Ce),Re.return=le,le=Re;break e}u(le,ne);break}else i(le,ne);ne=ne.sibling}Ce.type===S?(Re=xi(Ce.props.children,le.mode,Re,Ce.key),Re.return=le,le=Re):(Re=nu(Ce.type,Ce.key,Ce.props,null,le.mode,Re),J2(Re,Ce),Re.return=le,le=Re)}return k(le);case D:e:{for(gt=Ce.key;ne!==null;){if(ne.key===gt)if(ne.tag===4&&ne.stateNode.containerInfo===Ce.containerInfo&&ne.stateNode.implementation===Ce.implementation){u(le,ne.sibling),Re=C(ne,Ce.children||[]),Re.return=le,le=Re;break e}else{u(le,ne);break}else i(le,ne);ne=ne.sibling}Re=E7(Ce,le.mode,Re),Re.return=le,le=Re}return k(le);case _:return Ce=Li(Ce),b1(le,ne,Ce,Re)}if(X(Ce))return ot(le,ne,Ce,Re);if(z(Ce)){if(gt=z(Ce),typeof gt!="function")throw Error(r(150));return Ce=gt.call(Ce),St(le,ne,Ce,Re)}if(typeof Ce.then=="function")return b1(le,ne,uu(Ce),Re);if(Ce.$$typeof===E)return b1(le,ne,ou(le,Ce),Re);cu(le,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint"?(Ce=""+Ce,ne!==null&&ne.tag===6?(u(le,ne.sibling),Re=C(ne,Ce),Re.return=le,le=Re):(u(le,ne),Re=M7(Ce,le.mode,Re),Re.return=le,le=Re),k(le)):u(le,ne)}return function(le,ne,Ce,Re){try{Q2=0;var gt=b1(le,ne,Ce,Re);return As=null,gt}catch(st){if(st===js||st===su)throw st;var l1=mr(29,st,null,le.mode);return l1.lanes=Re,l1.return=le,l1}}}var Ei=J6(!0),ef=J6(!1),jo=!1;function I7(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function z7(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Ao(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Oo(a,i,u){var f=a.updateQueue;if(f===null)return null;if(f=f.shared,(h1&2)!==0){var C=f.pending;return C===null?i.next=i:(i.next=C.next,C.next=i),f.pending=i,i=tu(a),P6(a,null,u),i}return eu(a,f,i,u),tu(a)}function el(a,i,u){if(i=i.updateQueue,i!==null&&(i=i.shared,(u&4194048)!==0)){var f=i.lanes;f&=a.pendingLanes,u|=f,i.lanes=u,Y1(a,u)}}function H7(a,i){var u=a.updateQueue,f=a.alternate;if(f!==null&&(f=f.updateQueue,u===f)){var C=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var k={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?C=x=k:x=x.next=k,u=u.next}while(u!==null);x===null?C=x=i:x=x.next=i}else C=x=i;u={baseState:f.baseState,firstBaseUpdate:C,lastBaseUpdate:x,shared:f.shared,callbacks:f.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=i:a.next=i,u.lastBaseUpdate=i}var Z7=!1;function tl(){if(Z7){var a=ks;if(a!==null)throw a}}function nl(a,i,u,f){Z7=!1;var C=a.updateQueue;jo=!1;var x=C.firstBaseUpdate,k=C.lastBaseUpdate,F=C.shared.pending;if(F!==null){C.shared.pending=null;var G=F,ge=G.next;G.next=null,k===null?x=ge:k.next=ge,k=G;var je=a.alternate;je!==null&&(je=je.updateQueue,F=je.lastBaseUpdate,F!==k&&(F===null?je.firstBaseUpdate=ge:F.next=ge,je.lastBaseUpdate=G))}if(x!==null){var Ne=C.baseState;k=0,je=ge=G=null,F=x;do{var ye=F.lane&-536870913,De=ye!==F.lane;if(De?(Jt&ye)===ye:(f&ye)===ye){ye!==0&&ye===Es&&(Z7=!0),je!==null&&(je=je.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var ot=a,St=F;ye=i;var b1=u;switch(St.tag){case 1:if(ot=St.payload,typeof ot=="function"){Ne=ot.call(b1,Ne,ye);break e}Ne=ot;break e;case 3:ot.flags=ot.flags&-65537|128;case 0:if(ot=St.payload,ye=typeof ot=="function"?ot.call(b1,Ne,ye):ot,ye==null)break e;Ne=v({},Ne,ye);break e;case 2:jo=!0}}ye=F.callback,ye!==null&&(a.flags|=64,De&&(a.flags|=8192),De=C.callbacks,De===null?C.callbacks=[ye]:De.push(ye))}else De={lane:ye,tag:F.tag,payload:F.payload,callback:F.callback,next:null},je===null?(ge=je=De,G=Ne):je=je.next=De,k|=ye;if(F=F.next,F===null){if(F=C.shared.pending,F===null)break;De=F,F=De.next,De.next=null,C.lastBaseUpdate=De,C.shared.pending=null}}while(!0);je===null&&(G=Ne),C.baseState=G,C.firstBaseUpdate=ge,C.lastBaseUpdate=je,x===null&&(C.shared.lanes=0),Fo|=k,a.lanes=k,a.memoizedState=Ne}}function tf(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function nf(a,i){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)tf(u[a],i)}var Os=N(null),fu=N(0);function rf(a,i){a=ao,V(fu,a),V(Os,i),ao=a|i.baseLanes}function V7(){V(fu,ao),V(Os,Os.current)}function W7(){ao=fu.current,$(Os),$(fu)}var vr=N(null),Pr=null;function Bo(a){var i=a.alternate;V(X1,X1.current&1),V(vr,a),Pr===null&&(i===null||Os.current!==null||i.memoizedState!==null)&&(Pr=a)}function $7(a){V(X1,X1.current),V(vr,a),Pr===null&&(Pr=a)}function af(a){a.tag===22?(V(X1,X1.current),V(vr,a),Pr===null&&(Pr=a)):Ro()}function Ro(){V(X1,X1.current),V(vr,vr.current)}function yr(a){$(vr),Pr===a&&(Pr=null),$(X1)}var X1=N(0);function du(a){for(var i=a;i!==null;){if(i.tag===13){var u=i.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||X3(u)||Q3(u)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ka=0,It=null,x1=null,sn=null,hu=!1,Bs=!1,ki=!1,pu=0,rl=0,Rs=null,ED=0;function U1(){throw Error(r(321))}function U7(a,i){if(i===null)return!1;for(var u=0;u<i.length&&u<a.length;u++)if(!xn(a[u],i[u]))return!1;return!0}function q7(a,i,u,f,C,x){return Ka=x,It=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,H.H=a===null||a.memoizedState===null?Zf:l3,ki=!1,x=u(f,C),ki=!1,Bs&&(x=sf(i,u,f,C)),of(a),x}function of(a){H.H=il;var i=x1!==null&&x1.next!==null;if(Ka=0,sn=x1=It=null,hu=!1,rl=0,Rs=null,i)throw Error(r(300));a===null||ln||(a=a.dependencies,a!==null&&au(a)&&(ln=!0))}function sf(a,i,u,f){It=a;var C=0;do{if(Bs&&(Rs=null),rl=0,Bs=!1,25<=C)throw Error(r(301));if(C+=1,sn=x1=null,a.updateQueue!=null){var x=a.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}H.H=Vf,x=i(u,f)}while(Bs);return x}function kD(){var a=H.H,i=a.useState()[0];return i=typeof i.then=="function"?al(i):i,a=a.useState()[0],(x1!==null?x1.memoizedState:null)!==a&&(It.flags|=1024),i}function Y7(){var a=pu!==0;return pu=0,a}function G7(a,i,u){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~u}function K7(a){if(hu){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}hu=!1}Ka=0,sn=x1=It=null,Bs=!1,rl=pu=0,Rs=null}function $n(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return sn===null?It.memoizedState=sn=a:sn=sn.next=a,sn}function Q1(){if(x1===null){var a=It.alternate;a=a!==null?a.memoizedState:null}else a=x1.next;var i=sn===null?It.memoizedState:sn.next;if(i!==null)sn=i,x1=a;else{if(a===null)throw It.alternate===null?Error(r(467)):Error(r(310));x1=a,a={memoizedState:x1.memoizedState,baseState:x1.baseState,baseQueue:x1.baseQueue,queue:x1.queue,next:null},sn===null?It.memoizedState=sn=a:sn=sn.next=a}return sn}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function al(a){var i=rl;return rl+=1,Rs===null&&(Rs=[]),a=K6(Rs,a,i),i=It,(sn===null?i.memoizedState:sn.next)===null&&(i=i.alternate,H.H=i===null||i.memoizedState===null?Zf:l3),a}function gu(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return al(a);if(a.$$typeof===E)return Mn(a)}throw Error(r(438,String(a)))}function X7(a){var i=null,u=It.updateQueue;if(u!==null&&(i=u.memoCache),i==null){var f=It.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(i={data:f.data.map(function(C){return C.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),u===null&&(u=Cu(),It.updateQueue=u),u.memoCache=i,u=i.data[i.index],u===void 0)for(u=i.data[i.index]=Array(a),f=0;f<a;f++)u[f]=K;return i.index++,u}function Xa(a,i){return typeof i=="function"?i(a):i}function mu(a){var i=Q1();return Q7(i,x1,a)}function Q7(a,i,u){var f=a.queue;if(f===null)throw Error(r(311));f.lastRenderedReducer=u;var C=a.baseQueue,x=f.pending;if(x!==null){if(C!==null){var k=C.next;C.next=x.next,x.next=k}i.baseQueue=C=x,f.pending=null}if(x=a.baseState,C===null)a.memoizedState=x;else{i=C.next;var F=k=null,G=null,ge=i,je=!1;do{var Ne=ge.lane&-536870913;if(Ne!==ge.lane?(Jt&Ne)===Ne:(Ka&Ne)===Ne){var ye=ge.revertLane;if(ye===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null}),Ne===Es&&(je=!0);else if((Ka&ye)===ye){ge=ge.next,ye===Es&&(je=!0);continue}else Ne={lane:0,revertLane:ge.revertLane,gesture:null,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},G===null?(F=G=Ne,k=x):G=G.next=Ne,It.lanes|=ye,Fo|=ye;Ne=ge.action,ki&&u(x,Ne),x=ge.hasEagerState?ge.eagerState:u(x,Ne)}else ye={lane:Ne,revertLane:ge.revertLane,gesture:ge.gesture,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},G===null?(F=G=ye,k=x):G=G.next=ye,It.lanes|=Ne,Fo|=Ne;ge=ge.next}while(ge!==null&&ge!==i);if(G===null?k=x:G.next=F,!xn(x,a.memoizedState)&&(ln=!0,je&&(u=ks,u!==null)))throw u;a.memoizedState=x,a.baseState=k,a.baseQueue=G,f.lastRenderedState=x}return C===null&&(f.lanes=0),[a.memoizedState,f.dispatch]}function J7(a){var i=Q1(),u=i.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var f=u.dispatch,C=u.pending,x=i.memoizedState;if(C!==null){u.pending=null;var k=C=C.next;do x=a(x,k.action),k=k.next;while(k!==C);xn(x,i.memoizedState)||(ln=!0),i.memoizedState=x,i.baseQueue===null&&(i.baseState=x),u.lastRenderedState=x}return[x,f]}function lf(a,i,u){var f=It,C=Q1(),x=a1;if(x){if(u===void 0)throw Error(r(407));u=u()}else u=i();var k=!xn((x1||C).memoizedState,u);if(k&&(C.memoizedState=u,ln=!0),C=C.queue,n3(ff.bind(null,f,C,a),[a]),C.getSnapshot!==i||k||sn!==null&&sn.memoizedState.tag&1){if(f.flags|=2048,Ts(9,{destroy:void 0},cf.bind(null,f,C,u,i),null),L1===null)throw Error(r(349));x||(Ka&127)!==0||uf(f,i,u)}return u}function uf(a,i,u){a.flags|=16384,a={getSnapshot:i,value:u},i=It.updateQueue,i===null?(i=Cu(),It.updateQueue=i,i.stores=[a]):(u=i.stores,u===null?i.stores=[a]:u.push(a))}function cf(a,i,u,f){i.value=u,i.getSnapshot=f,df(i)&&hf(a)}function ff(a,i,u){return u(function(){df(i)&&hf(a)})}function df(a){var i=a.getSnapshot;a=a.value;try{var u=i();return!xn(a,u)}catch{return!0}}function hf(a){var i=yi(a,2);i!==null&&lr(i,a,2)}function e3(a){var i=$n();if(typeof a=="function"){var u=a;if(a=u(),ki){rt(!0);try{u()}finally{rt(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:a},i}function pf(a,i,u,f){return a.baseState=u,Q7(a,x1,typeof f=="function"?f:Xa)}function jD(a,i,u,f,C){if(xu(a))throw Error(r(485));if(a=i.action,a!==null){var x={payload:C,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){x.listeners.push(k)}};H.T!==null?u(!0):x.isTransition=!1,f(x),u=i.pending,u===null?(x.next=i.pending=x,Cf(i,x)):(x.next=u.next,i.pending=u.next=x)}}function Cf(a,i){var u=i.action,f=i.payload,C=a.state;if(i.isTransition){var x=H.T,k={};H.T=k;try{var F=u(C,f),G=H.S;G!==null&&G(k,F),gf(a,i,F)}catch(ge){t3(a,i,ge)}finally{x!==null&&k.types!==null&&(x.types=k.types),H.T=x}}else try{x=u(C,f),gf(a,i,x)}catch(ge){t3(a,i,ge)}}function gf(a,i,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(f){mf(a,i,f)},function(f){return t3(a,i,f)}):mf(a,i,u)}function mf(a,i,u){i.status="fulfilled",i.value=u,vf(i),a.state=u,i=a.pending,i!==null&&(u=i.next,u===i?a.pending=null:(u=u.next,i.next=u,Cf(a,u)))}function t3(a,i,u){var f=a.pending;if(a.pending=null,f!==null){f=f.next;do i.status="rejected",i.reason=u,vf(i),i=i.next;while(i!==f)}a.action=null}function vf(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function yf(a,i){return i}function xf(a,i){if(a1){var u=L1.formState;if(u!==null){e:{var f=It;if(a1){if(E1){t:{for(var C=E1,x=Fr;C.nodeType!==8;){if(!x){C=null;break t}if(C=_r(C.nextSibling),C===null){C=null;break t}}x=C.data,C=x==="F!"||x==="F"?C:null}if(C){E1=_r(C.nextSibling),f=C.data==="F!";break e}}Eo(f)}f=!1}f&&(i=u[0])}}return u=$n(),u.memoizedState=u.baseState=i,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yf,lastRenderedState:i},u.queue=f,u=If.bind(null,It,f),f.dispatch=u,f=e3(!1),x=s3.bind(null,It,!1,f.queue),f=$n(),C={state:i,dispatch:null,action:a,pending:null},f.queue=C,u=jD.bind(null,It,C,x,u),C.dispatch=u,f.memoizedState=a,[i,u,!1]}function wf(a){var i=Q1();return bf(i,x1,a)}function bf(a,i,u){if(i=Q7(a,i,yf)[0],a=mu(Xa)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var f=al(i)}catch(k){throw k===js?su:k}else f=i;i=Q1();var C=i.queue,x=C.dispatch;return u!==i.memoizedState&&(It.flags|=2048,Ts(9,{destroy:void 0},AD.bind(null,C,u),null)),[f,x,a]}function AD(a,i){a.action=i}function Sf(a){var i=Q1(),u=x1;if(u!==null)return bf(i,u,a);Q1(),i=i.memoizedState,u=Q1();var f=u.queue.dispatch;return u.memoizedState=a,[i,f,!1]}function Ts(a,i,u,f){return a={tag:a,create:u,deps:f,inst:i,next:null},i=It.updateQueue,i===null&&(i=Cu(),It.updateQueue=i),u=i.lastEffect,u===null?i.lastEffect=a.next=a:(f=u.next,u.next=a,a.next=f,i.lastEffect=a),a}function Df(){return Q1().memoizedState}function vu(a,i,u,f){var C=$n();It.flags|=a,C.memoizedState=Ts(1|i,{destroy:void 0},u,f===void 0?null:f)}function yu(a,i,u,f){var C=Q1();f=f===void 0?null:f;var x=C.memoizedState.inst;x1!==null&&f!==null&&U7(f,x1.memoizedState.deps)?C.memoizedState=Ts(i,x,u,f):(It.flags|=a,C.memoizedState=Ts(1|i,x,u,f))}function Lf(a,i){vu(8390656,8,a,i)}function n3(a,i){yu(2048,8,a,i)}function OD(a){It.flags|=4;var i=It.updateQueue;if(i===null)i=Cu(),It.updateQueue=i,i.events=[a];else{var u=i.events;u===null?i.events=[a]:u.push(a)}}function Mf(a){var i=Q1().memoizedState;return OD({ref:i,nextImpl:a}),function(){if((h1&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function Ef(a,i){return yu(4,2,a,i)}function kf(a,i){return yu(4,4,a,i)}function jf(a,i){if(typeof i=="function"){a=a();var u=i(a);return function(){typeof u=="function"?u():i(null)}}if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function Af(a,i,u){u=u!=null?u.concat([a]):null,yu(4,4,jf.bind(null,i,a),u)}function r3(){}function Of(a,i){var u=Q1();i=i===void 0?null:i;var f=u.memoizedState;return i!==null&&U7(i,f[1])?f[0]:(u.memoizedState=[a,i],a)}function Bf(a,i){var u=Q1();i=i===void 0?null:i;var f=u.memoizedState;if(i!==null&&U7(i,f[1]))return f[0];if(f=a(),ki){rt(!0);try{a()}finally{rt(!1)}}return u.memoizedState=[f,i],f}function a3(a,i,u){return u===void 0||(Ka&1073741824)!==0&&(Jt&261930)===0?a.memoizedState=i:(a.memoizedState=u,a=Rd(),It.lanes|=a,Fo|=a,u)}function Rf(a,i,u,f){return xn(u,i)?u:Os.current!==null?(a=a3(a,u,f),xn(a,i)||(ln=!0),a):(Ka&42)===0||(Ka&1073741824)!==0&&(Jt&261930)===0?(ln=!0,a.memoizedState=u):(a=Rd(),It.lanes|=a,Fo|=a,i)}function Tf(a,i,u,f,C){var x=Q.p;Q.p=x!==0&&8>x?x:8;var k=H.T,F={};H.T=F,s3(a,!1,i,u);try{var G=C(),ge=H.S;if(ge!==null&&ge(F,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var je=MD(G,f);ol(a,i,je,br(a))}else ol(a,i,f,br(a))}catch(Ne){ol(a,i,{then:function(){},status:"rejected",reason:Ne},br())}finally{Q.p=x,k!==null&&F.types!==null&&(k.types=F.types),H.T=k}}function BD(){}function o3(a,i,u,f){if(a.tag!==5)throw Error(r(476));var C=Nf(a).queue;Tf(a,C,i,oe,u===null?BD:function(){return Ff(a),u(f)})}function Nf(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:oe},next:null};var u={};return i.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xa,lastRenderedState:u},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function Ff(a){var i=Nf(a);i.next===null&&(i=a.alternate.memoizedState),ol(a,i.next.queue,{},br())}function i3(){return Mn(bl)}function Pf(){return Q1().memoizedState}function _f(){return Q1().memoizedState}function RD(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var u=br();a=Ao(u);var f=Oo(i,a,u);f!==null&&(lr(f,i,u),el(f,i,u)),i={cache:N7()},a.payload=i;return}i=i.return}}function TD(a,i,u){var f=br();u={lane:f,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},xu(a)?zf(i,u):(u=D7(a,i,u,f),u!==null&&(lr(u,a,f),Hf(u,i,f)))}function If(a,i,u){var f=br();ol(a,i,u,f)}function ol(a,i,u,f){var C={lane:f,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(xu(a))zf(i,C);else{var x=a.alternate;if(a.lanes===0&&(x===null||x.lanes===0)&&(x=i.lastRenderedReducer,x!==null))try{var k=i.lastRenderedState,F=x(k,u);if(C.hasEagerState=!0,C.eagerState=F,xn(F,k))return eu(a,i,C,0),L1===null&&J5(),!1}catch{}if(u=D7(a,i,C,f),u!==null)return lr(u,a,f),Hf(u,i,f),!0}return!1}function s3(a,i,u,f){if(f={lane:2,revertLane:I3(),gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},xu(a)){if(i)throw Error(r(479))}else i=D7(a,u,f,2),i!==null&&lr(i,a,2)}function xu(a){var i=a.alternate;return a===It||i!==null&&i===It}function zf(a,i){Bs=hu=!0;var u=a.pending;u===null?i.next=i:(i.next=u.next,u.next=i),a.pending=i}function Hf(a,i,u){if((u&4194048)!==0){var f=i.lanes;f&=a.pendingLanes,u|=f,i.lanes=u,Y1(a,u)}}var il={readContext:Mn,use:gu,useCallback:U1,useContext:U1,useEffect:U1,useImperativeHandle:U1,useLayoutEffect:U1,useInsertionEffect:U1,useMemo:U1,useReducer:U1,useRef:U1,useState:U1,useDebugValue:U1,useDeferredValue:U1,useTransition:U1,useSyncExternalStore:U1,useId:U1,useHostTransitionStatus:U1,useFormState:U1,useActionState:U1,useOptimistic:U1,useMemoCache:U1,useCacheRefresh:U1};il.useEffectEvent=U1;var Zf={readContext:Mn,use:gu,useCallback:function(a,i){return $n().memoizedState=[a,i===void 0?null:i],a},useContext:Mn,useEffect:Lf,useImperativeHandle:function(a,i,u){u=u!=null?u.concat([a]):null,vu(4194308,4,jf.bind(null,i,a),u)},useLayoutEffect:function(a,i){return vu(4194308,4,a,i)},useInsertionEffect:function(a,i){vu(4,2,a,i)},useMemo:function(a,i){var u=$n();i=i===void 0?null:i;var f=a();if(ki){rt(!0);try{a()}finally{rt(!1)}}return u.memoizedState=[f,i],f},useReducer:function(a,i,u){var f=$n();if(u!==void 0){var C=u(i);if(ki){rt(!0);try{u(i)}finally{rt(!1)}}}else C=i;return f.memoizedState=f.baseState=C,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:C},f.queue=a,a=a.dispatch=TD.bind(null,It,a),[f.memoizedState,a]},useRef:function(a){var i=$n();return a={current:a},i.memoizedState=a},useState:function(a){a=e3(a);var i=a.queue,u=If.bind(null,It,i);return i.dispatch=u,[a.memoizedState,u]},useDebugValue:r3,useDeferredValue:function(a,i){var u=$n();return a3(u,a,i)},useTransition:function(){var a=e3(!1);return a=Tf.bind(null,It,a.queue,!0,!1),$n().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,u){var f=It,C=$n();if(a1){if(u===void 0)throw Error(r(407));u=u()}else{if(u=i(),L1===null)throw Error(r(349));(Jt&127)!==0||uf(f,i,u)}C.memoizedState=u;var x={value:u,getSnapshot:i};return C.queue=x,Lf(ff.bind(null,f,x,a),[a]),f.flags|=2048,Ts(9,{destroy:void 0},cf.bind(null,f,x,u,i),null),u},useId:function(){var a=$n(),i=L1.identifierPrefix;if(a1){var u=Sa,f=ba;u=(f&~(1<<32-Tt(f)-1)).toString(32)+u,i="_"+i+"R_"+u,u=pu++,0<u&&(i+="H"+u.toString(32)),i+="_"}else u=ED++,i="_"+i+"r_"+u.toString(32)+"_";return a.memoizedState=i},useHostTransitionStatus:i3,useFormState:xf,useActionState:xf,useOptimistic:function(a){var i=$n();i.memoizedState=i.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=u,i=s3.bind(null,It,!0,u),u.dispatch=i,[a,i]},useMemoCache:X7,useCacheRefresh:function(){return $n().memoizedState=RD.bind(null,It)},useEffectEvent:function(a){var i=$n(),u={impl:a};return i.memoizedState=u,function(){if((h1&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},l3={readContext:Mn,use:gu,useCallback:Of,useContext:Mn,useEffect:n3,useImperativeHandle:Af,useInsertionEffect:Ef,useLayoutEffect:kf,useMemo:Bf,useReducer:mu,useRef:Df,useState:function(){return mu(Xa)},useDebugValue:r3,useDeferredValue:function(a,i){var u=Q1();return Rf(u,x1.memoizedState,a,i)},useTransition:function(){var a=mu(Xa)[0],i=Q1().memoizedState;return[typeof a=="boolean"?a:al(a),i]},useSyncExternalStore:lf,useId:Pf,useHostTransitionStatus:i3,useFormState:wf,useActionState:wf,useOptimistic:function(a,i){var u=Q1();return pf(u,x1,a,i)},useMemoCache:X7,useCacheRefresh:_f};l3.useEffectEvent=Mf;var Vf={readContext:Mn,use:gu,useCallback:Of,useContext:Mn,useEffect:n3,useImperativeHandle:Af,useInsertionEffect:Ef,useLayoutEffect:kf,useMemo:Bf,useReducer:J7,useRef:Df,useState:function(){return J7(Xa)},useDebugValue:r3,useDeferredValue:function(a,i){var u=Q1();return x1===null?a3(u,a,i):Rf(u,x1.memoizedState,a,i)},useTransition:function(){var a=J7(Xa)[0],i=Q1().memoizedState;return[typeof a=="boolean"?a:al(a),i]},useSyncExternalStore:lf,useId:Pf,useHostTransitionStatus:i3,useFormState:Sf,useActionState:Sf,useOptimistic:function(a,i){var u=Q1();return x1!==null?pf(u,x1,a,i):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:X7,useCacheRefresh:_f};Vf.useEffectEvent=Mf;function u3(a,i,u,f){i=a.memoizedState,u=u(f,i),u=u==null?i:v({},i,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var c3={enqueueSetState:function(a,i,u){a=a._reactInternals;var f=br(),C=Ao(f);C.payload=i,u!=null&&(C.callback=u),i=Oo(a,C,f),i!==null&&(lr(i,a,f),el(i,a,f))},enqueueReplaceState:function(a,i,u){a=a._reactInternals;var f=br(),C=Ao(f);C.tag=1,C.payload=i,u!=null&&(C.callback=u),i=Oo(a,C,f),i!==null&&(lr(i,a,f),el(i,a,f))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var u=br(),f=Ao(u);f.tag=2,i!=null&&(f.callback=i),i=Oo(a,f,u),i!==null&&(lr(i,a,u),el(i,a,u))}};function Wf(a,i,u,f,C,x,k){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(f,x,k):i.prototype&&i.prototype.isPureReactComponent?!$a(u,f)||!$a(C,x):!0}function $f(a,i,u,f){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(u,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(u,f),i.state!==a&&c3.enqueueReplaceState(i,i.state,null)}function ji(a,i){var u=i;if("ref"in i){u={};for(var f in i)f!=="ref"&&(u[f]=i[f])}if(a=a.defaultProps){u===i&&(u=v({},u));for(var C in a)u[C]===void 0&&(u[C]=a[C])}return u}function Uf(a){Q5(a)}function qf(a){console.error(a)}function Yf(a){Q5(a)}function wu(a,i){try{var u=a.onUncaughtError;u(i.value,{componentStack:i.stack})}catch(f){setTimeout(function(){throw f})}}function Gf(a,i,u){try{var f=a.onCaughtError;f(u.value,{componentStack:u.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function f3(a,i,u){return u=Ao(u),u.tag=3,u.payload={element:null},u.callback=function(){wu(a,i)},u}function Kf(a){return a=Ao(a),a.tag=3,a}function Xf(a,i,u,f){var C=u.type.getDerivedStateFromError;if(typeof C=="function"){var x=f.value;a.payload=function(){return C(x)},a.callback=function(){Gf(i,u,f)}}var k=u.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(a.callback=function(){Gf(i,u,f),typeof C!="function"&&(Po===null?Po=new Set([this]):Po.add(this));var F=f.stack;this.componentDidCatch(f.value,{componentStack:F!==null?F:""})})}function ND(a,i,u,f,C){if(u.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(i=u.alternate,i!==null&&Ms(i,u,C,!0),u=vr.current,u!==null){switch(u.tag){case 31:case 13:return Pr===null?Ru():u.alternate===null&&q1===0&&(q1=3),u.flags&=-257,u.flags|=65536,u.lanes=C,f===lu?u.flags|=16384:(i=u.updateQueue,i===null?u.updateQueue=new Set([f]):i.add(f),F3(a,f,C)),!1;case 22:return u.flags|=65536,f===lu?u.flags|=16384:(i=u.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([f])},u.updateQueue=i):(u=i.retryQueue,u===null?i.retryQueue=new Set([f]):u.add(f)),F3(a,f,C)),!1}throw Error(r(435,u.tag))}return F3(a,f,C),Ru(),!1}if(a1)return i=vr.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=C,f!==A7&&(a=Error(r(422),{cause:f}),G2(Rr(a,u)))):(f!==A7&&(i=Error(r(423),{cause:f}),G2(Rr(i,u))),a=a.current.alternate,a.flags|=65536,C&=-C,a.lanes|=C,f=Rr(f,u),C=f3(a.stateNode,f,C),H7(a,C),q1!==4&&(q1=2)),!1;var x=Error(r(520),{cause:f});if(x=Rr(x,u),pl===null?pl=[x]:pl.push(x),q1!==4&&(q1=2),i===null)return!0;f=Rr(f,u),u=i;do{switch(u.tag){case 3:return u.flags|=65536,a=C&-C,u.lanes|=a,a=f3(u.stateNode,f,a),H7(u,a),!1;case 1:if(i=u.type,x=u.stateNode,(u.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Po===null||!Po.has(x))))return u.flags|=65536,C&=-C,u.lanes|=C,C=Kf(C),Xf(C,a,u,f),H7(u,C),!1}u=u.return}while(u!==null);return!1}var d3=Error(r(461)),ln=!1;function En(a,i,u,f){i.child=a===null?ef(i,null,u,f):Ei(i,a.child,u,f)}function Qf(a,i,u,f,C){u=u.render;var x=i.ref;if("ref"in f){var k={};for(var F in f)F!=="ref"&&(k[F]=f[F])}else k=f;return Si(i),f=q7(a,i,u,k,x,C),F=Y7(),a!==null&&!ln?(G7(a,i,C),Qa(a,i,C)):(a1&&F&&k7(i),i.flags|=1,En(a,i,f,C),i.child)}function Jf(a,i,u,f,C){if(a===null){var x=u.type;return typeof x=="function"&&!L7(x)&&x.defaultProps===void 0&&u.compare===null?(i.tag=15,i.type=x,ed(a,i,x,f,C)):(a=nu(u.type,null,f,i,i.mode,C),a.ref=i.ref,a.return=i,i.child=a)}if(x=a.child,!x3(a,C)){var k=x.memoizedProps;if(u=u.compare,u=u!==null?u:$a,u(k,f)&&a.ref===i.ref)return Qa(a,i,C)}return i.flags|=1,a=Ua(x,f),a.ref=i.ref,a.return=i,i.child=a}function ed(a,i,u,f,C){if(a!==null){var x=a.memoizedProps;if($a(x,f)&&a.ref===i.ref)if(ln=!1,i.pendingProps=f=x,x3(a,C))(a.flags&131072)!==0&&(ln=!0);else return i.lanes=a.lanes,Qa(a,i,C)}return h3(a,i,u,f,C)}function td(a,i,u,f){var C=f.children,x=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.mode==="hidden"){if((i.flags&128)!==0){if(x=x!==null?x.baseLanes|u:u,a!==null){for(f=i.child=a.child,C=0;f!==null;)C=C|f.lanes|f.childLanes,f=f.sibling;f=C&~x}else f=0,i.child=null;return nd(a,i,x,u,f)}if((u&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&iu(i,x!==null?x.cachePool:null),x!==null?rf(i,x):V7(),af(i);else return f=i.lanes=536870912,nd(a,i,x!==null?x.baseLanes|u:u,u,f)}else x!==null?(iu(i,x.cachePool),rf(i,x),Ro(),i.memoizedState=null):(a!==null&&iu(i,null),V7(),Ro());return En(a,i,C,u),i.child}function sl(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function nd(a,i,u,f,C){var x=P7();return x=x===null?null:{parent:on._currentValue,pool:x},i.memoizedState={baseLanes:u,cachePool:x},a!==null&&iu(i,null),V7(),af(i),a!==null&&Ms(a,i,f,!0),i.childLanes=C,null}function bu(a,i){return i=Du({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function rd(a,i,u){return Ei(i,a.child,null,u),a=bu(i,i.pendingProps),a.flags|=2,yr(i),i.memoizedState=null,a}function FD(a,i,u){var f=i.pendingProps,C=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(a1){if(f.mode==="hidden")return a=bu(i,f),i.lanes=536870912,sl(null,a);if($7(i),(a=E1)?(a=Ch(a,Fr),a=a!==null&&a.data==="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:Lo!==null?{id:ba,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},u=I6(a),u.return=i,i.child=u,Ln=i,E1=null)):a=null,a===null)throw Eo(i);return i.lanes=536870912,null}return bu(i,f)}var x=a.memoizedState;if(x!==null){var k=x.dehydrated;if($7(i),C)if(i.flags&256)i.flags&=-257,i=rd(a,i,u);else if(i.memoizedState!==null)i.child=a.child,i.flags|=128,i=null;else throw Error(r(558));else if(ln||Ms(a,i,u,!1),C=(u&a.childLanes)!==0,ln||C){if(f=L1,f!==null&&(k=G1(f,u),k!==0&&k!==x.retryLane))throw x.retryLane=k,yi(a,k),lr(f,a,k),d3;Ru(),i=rd(a,i,u)}else a=x.treeContext,E1=_r(k.nextSibling),Ln=i,a1=!0,Mo=null,Fr=!1,a!==null&&Z6(i,a),i=bu(i,f),i.flags|=4096;return i}return a=Ua(a.child,{mode:f.mode,children:f.children}),a.ref=i.ref,i.child=a,a.return=i,a}function Su(a,i){var u=i.ref;if(u===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(i.flags|=4194816)}}function h3(a,i,u,f,C){return Si(i),u=q7(a,i,u,f,void 0,C),f=Y7(),a!==null&&!ln?(G7(a,i,C),Qa(a,i,C)):(a1&&f&&k7(i),i.flags|=1,En(a,i,u,C),i.child)}function ad(a,i,u,f,C,x){return Si(i),i.updateQueue=null,u=sf(i,f,u,C),of(a),f=Y7(),a!==null&&!ln?(G7(a,i,x),Qa(a,i,x)):(a1&&f&&k7(i),i.flags|=1,En(a,i,u,x),i.child)}function od(a,i,u,f,C){if(Si(i),i.stateNode===null){var x=bs,k=u.contextType;typeof k=="object"&&k!==null&&(x=Mn(k)),x=new u(f,x),i.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=c3,i.stateNode=x,x._reactInternals=i,x=i.stateNode,x.props=f,x.state=i.memoizedState,x.refs={},I7(i),k=u.contextType,x.context=typeof k=="object"&&k!==null?Mn(k):bs,x.state=i.memoizedState,k=u.getDerivedStateFromProps,typeof k=="function"&&(u3(i,u,k,f),x.state=i.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(k=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),k!==x.state&&c3.enqueueReplaceState(x,x.state,null),nl(i,f,x,C),tl(),x.state=i.memoizedState),typeof x.componentDidMount=="function"&&(i.flags|=4194308),f=!0}else if(a===null){x=i.stateNode;var F=i.memoizedProps,G=ji(u,F);x.props=G;var ge=x.context,je=u.contextType;k=bs,typeof je=="object"&&je!==null&&(k=Mn(je));var Ne=u.getDerivedStateFromProps;je=typeof Ne=="function"||typeof x.getSnapshotBeforeUpdate=="function",F=i.pendingProps!==F,je||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(F||ge!==k)&&$f(i,x,f,k),jo=!1;var ye=i.memoizedState;x.state=ye,nl(i,f,x,C),tl(),ge=i.memoizedState,F||ye!==ge||jo?(typeof Ne=="function"&&(u3(i,u,Ne,f),ge=i.memoizedState),(G=jo||Wf(i,u,G,f,ye,ge,k))?(je||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(i.flags|=4194308)):(typeof x.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=ge),x.props=f,x.state=ge,x.context=k,f=G):(typeof x.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{x=i.stateNode,z7(a,i),k=i.memoizedProps,je=ji(u,k),x.props=je,Ne=i.pendingProps,ye=x.context,ge=u.contextType,G=bs,typeof ge=="object"&&ge!==null&&(G=Mn(ge)),F=u.getDerivedStateFromProps,(ge=typeof F=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(k!==Ne||ye!==G)&&$f(i,x,f,G),jo=!1,ye=i.memoizedState,x.state=ye,nl(i,f,x,C),tl();var De=i.memoizedState;k!==Ne||ye!==De||jo||a!==null&&a.dependencies!==null&&au(a.dependencies)?(typeof F=="function"&&(u3(i,u,F,f),De=i.memoizedState),(je=jo||Wf(i,u,je,f,ye,De,G)||a!==null&&a.dependencies!==null&&au(a.dependencies))?(ge||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,De,G),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,De,G)),typeof x.componentDidUpdate=="function"&&(i.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof x.componentDidUpdate!="function"||k===a.memoizedProps&&ye===a.memoizedState||(i.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||k===a.memoizedProps&&ye===a.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=De),x.props=f,x.state=De,x.context=G,f=je):(typeof x.componentDidUpdate!="function"||k===a.memoizedProps&&ye===a.memoizedState||(i.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||k===a.memoizedProps&&ye===a.memoizedState||(i.flags|=1024),f=!1)}return x=f,Su(a,i),f=(i.flags&128)!==0,x||f?(x=i.stateNode,u=f&&typeof u.getDerivedStateFromError!="function"?null:x.render(),i.flags|=1,a!==null&&f?(i.child=Ei(i,a.child,null,C),i.child=Ei(i,null,u,C)):En(a,i,u,C),i.memoizedState=x.state,a=i.child):a=Qa(a,i,C),a}function id(a,i,u,f){return wi(),i.flags|=256,En(a,i,u,f),i.child}var p3={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function C3(a){return{baseLanes:a,cachePool:Y6()}}function g3(a,i,u){return a=a!==null?a.childLanes&~u:0,i&&(a|=wr),a}function sd(a,i,u){var f=i.pendingProps,C=!1,x=(i.flags&128)!==0,k;if((k=x)||(k=a!==null&&a.memoizedState===null?!1:(X1.current&2)!==0),k&&(C=!0,i.flags&=-129),k=(i.flags&32)!==0,i.flags&=-33,a===null){if(a1){if(C?Bo(i):Ro(),(a=E1)?(a=Ch(a,Fr),a=a!==null&&a.data!=="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:Lo!==null?{id:ba,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},u=I6(a),u.return=i,i.child=u,Ln=i,E1=null)):a=null,a===null)throw Eo(i);return Q3(a)?i.lanes=32:i.lanes=536870912,null}var F=f.children;return f=f.fallback,C?(Ro(),C=i.mode,F=Du({mode:"hidden",children:F},C),f=xi(f,C,u,null),F.return=i,f.return=i,F.sibling=f,i.child=F,f=i.child,f.memoizedState=C3(u),f.childLanes=g3(a,k,u),i.memoizedState=p3,sl(null,f)):(Bo(i),m3(i,F))}var G=a.memoizedState;if(G!==null&&(F=G.dehydrated,F!==null)){if(x)i.flags&256?(Bo(i),i.flags&=-257,i=v3(a,i,u)):i.memoizedState!==null?(Ro(),i.child=a.child,i.flags|=128,i=null):(Ro(),F=f.fallback,C=i.mode,f=Du({mode:"visible",children:f.children},C),F=xi(F,C,u,null),F.flags|=2,f.return=i,F.return=i,f.sibling=F,i.child=f,Ei(i,a.child,null,u),f=i.child,f.memoizedState=C3(u),f.childLanes=g3(a,k,u),i.memoizedState=p3,i=sl(null,f));else if(Bo(i),Q3(F)){if(k=F.nextSibling&&F.nextSibling.dataset,k)var ge=k.dgst;k=ge,f=Error(r(419)),f.stack="",f.digest=k,G2({value:f,source:null,stack:null}),i=v3(a,i,u)}else if(ln||Ms(a,i,u,!1),k=(u&a.childLanes)!==0,ln||k){if(k=L1,k!==null&&(f=G1(k,u),f!==0&&f!==G.retryLane))throw G.retryLane=f,yi(a,f),lr(k,a,f),d3;X3(F)||Ru(),i=v3(a,i,u)}else X3(F)?(i.flags|=192,i.child=a.child,i=null):(a=G.treeContext,E1=_r(F.nextSibling),Ln=i,a1=!0,Mo=null,Fr=!1,a!==null&&Z6(i,a),i=m3(i,f.children),i.flags|=4096);return i}return C?(Ro(),F=f.fallback,C=i.mode,G=a.child,ge=G.sibling,f=Ua(G,{mode:"hidden",children:f.children}),f.subtreeFlags=G.subtreeFlags&65011712,ge!==null?F=Ua(ge,F):(F=xi(F,C,u,null),F.flags|=2),F.return=i,f.return=i,f.sibling=F,i.child=f,sl(null,f),f=i.child,F=a.child.memoizedState,F===null?F=C3(u):(C=F.cachePool,C!==null?(G=on._currentValue,C=C.parent!==G?{parent:G,pool:G}:C):C=Y6(),F={baseLanes:F.baseLanes|u,cachePool:C}),f.memoizedState=F,f.childLanes=g3(a,k,u),i.memoizedState=p3,sl(a.child,f)):(Bo(i),u=a.child,a=u.sibling,u=Ua(u,{mode:"visible",children:f.children}),u.return=i,u.sibling=null,a!==null&&(k=i.deletions,k===null?(i.deletions=[a],i.flags|=16):k.push(a)),i.child=u,i.memoizedState=null,u)}function m3(a,i){return i=Du({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function Du(a,i){return a=mr(22,a,null,i),a.lanes=0,a}function v3(a,i,u){return Ei(i,a.child,null,u),a=m3(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function ld(a,i,u){a.lanes|=i;var f=a.alternate;f!==null&&(f.lanes|=i),R7(a.return,i,u)}function y3(a,i,u,f,C,x){var k=a.memoizedState;k===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:u,tailMode:C,treeForkCount:x}:(k.isBackwards=i,k.rendering=null,k.renderingStartTime=0,k.last=f,k.tail=u,k.tailMode=C,k.treeForkCount=x)}function ud(a,i,u){var f=i.pendingProps,C=f.revealOrder,x=f.tail;f=f.children;var k=X1.current,F=(k&2)!==0;if(F?(k=k&1|2,i.flags|=128):k&=1,V(X1,k),En(a,i,f,u),f=a1?Y2:0,!F&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&ld(a,u,i);else if(a.tag===19)ld(a,u,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(C){case"forwards":for(u=i.child,C=null;u!==null;)a=u.alternate,a!==null&&du(a)===null&&(C=u),u=u.sibling;u=C,u===null?(C=i.child,i.child=null):(C=u.sibling,u.sibling=null),y3(i,!1,C,u,x,f);break;case"backwards":case"unstable_legacy-backwards":for(u=null,C=i.child,i.child=null;C!==null;){if(a=C.alternate,a!==null&&du(a)===null){i.child=C;break}a=C.sibling,C.sibling=u,u=C,C=a}y3(i,!0,u,null,x,f);break;case"together":y3(i,!1,null,null,void 0,f);break;default:i.memoizedState=null}return i.child}function Qa(a,i,u){if(a!==null&&(i.dependencies=a.dependencies),Fo|=i.lanes,(u&i.childLanes)===0)if(a!==null){if(Ms(a,i,u,!1),(u&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(r(153));if(i.child!==null){for(a=i.child,u=Ua(a,a.pendingProps),i.child=u,u.return=i;a.sibling!==null;)a=a.sibling,u=u.sibling=Ua(a,a.pendingProps),u.return=i;u.sibling=null}return i.child}function x3(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&au(a)))}function PD(a,i,u){switch(i.tag){case 3:Qe(i,i.stateNode.containerInfo),ko(i,on,a.memoizedState.cache),wi();break;case 27:case 5:fe(i);break;case 4:Qe(i,i.stateNode.containerInfo);break;case 10:ko(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,$7(i),null;break;case 13:var f=i.memoizedState;if(f!==null)return f.dehydrated!==null?(Bo(i),i.flags|=128,null):(u&i.child.childLanes)!==0?sd(a,i,u):(Bo(i),a=Qa(a,i,u),a!==null?a.sibling:null);Bo(i);break;case 19:var C=(a.flags&128)!==0;if(f=(u&i.childLanes)!==0,f||(Ms(a,i,u,!1),f=(u&i.childLanes)!==0),C){if(f)return ud(a,i,u);i.flags|=128}if(C=i.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),V(X1,X1.current),f)break;return null;case 22:return i.lanes=0,td(a,i,u,i.pendingProps);case 24:ko(i,on,a.memoizedState.cache)}return Qa(a,i,u)}function cd(a,i,u){if(a!==null)if(a.memoizedProps!==i.pendingProps)ln=!0;else{if(!x3(a,u)&&(i.flags&128)===0)return ln=!1,PD(a,i,u);ln=(a.flags&131072)!==0}else ln=!1,a1&&(i.flags&1048576)!==0&&H6(i,Y2,i.index);switch(i.lanes=0,i.tag){case 16:e:{var f=i.pendingProps;if(a=Li(i.elementType),i.type=a,typeof a=="function")L7(a)?(f=ji(a,f),i.tag=1,i=od(null,i,a,f,u)):(i.tag=0,i=h3(null,i,a,f,u));else{if(a!=null){var C=a.$$typeof;if(C===O){i.tag=11,i=Qf(null,i,a,f,u);break e}else if(C===P){i.tag=14,i=Jf(null,i,a,f,u);break e}}throw i=te(a)||a,Error(r(306,i,""))}}return i;case 0:return h3(a,i,i.type,i.pendingProps,u);case 1:return f=i.type,C=ji(f,i.pendingProps),od(a,i,f,C,u);case 3:e:{if(Qe(i,i.stateNode.containerInfo),a===null)throw Error(r(387));f=i.pendingProps;var x=i.memoizedState;C=x.element,z7(a,i),nl(i,f,null,u);var k=i.memoizedState;if(f=k.cache,ko(i,on,f),f!==x.cache&&T7(i,[on],u,!0),tl(),f=k.element,x.isDehydrated)if(x={element:f,isDehydrated:!1,cache:k.cache},i.updateQueue.baseState=x,i.memoizedState=x,i.flags&256){i=id(a,i,f,u);break e}else if(f!==C){C=Rr(Error(r(424)),i),G2(C),i=id(a,i,f,u);break e}else for(a=i.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,E1=_r(a.firstChild),Ln=i,a1=!0,Mo=null,Fr=!0,u=ef(i,null,f,u),i.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(wi(),f===C){i=Qa(a,i,u);break e}En(a,i,f,u)}i=i.child}return i;case 26:return Su(a,i),a===null?(u=wh(i.type,null,i.pendingProps,null))?i.memoizedState=u:a1||(u=i.type,a=i.pendingProps,f=zu(We.current).createElement(u),f[Dt]=i,f[o1]=a,kn(f,u,a),D1(f),i.stateNode=f):i.memoizedState=wh(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return fe(i),a===null&&a1&&(f=i.stateNode=vh(i.type,i.pendingProps,We.current),Ln=i,Fr=!0,C=E1,Ho(i.type)?(J3=C,E1=_r(f.firstChild)):E1=C),En(a,i,i.pendingProps.children,u),Su(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&a1&&((C=f=E1)&&(f=hL(f,i.type,i.pendingProps,Fr),f!==null?(i.stateNode=f,Ln=i,E1=_r(f.firstChild),Fr=!1,C=!0):C=!1),C||Eo(i)),fe(i),C=i.type,x=i.pendingProps,k=a!==null?a.memoizedProps:null,f=x.children,Y3(C,x)?f=null:k!==null&&Y3(C,k)&&(i.flags|=32),i.memoizedState!==null&&(C=q7(a,i,kD,null,null,u),bl._currentValue=C),Su(a,i),En(a,i,f,u),i.child;case 6:return a===null&&a1&&((a=u=E1)&&(u=pL(u,i.pendingProps,Fr),u!==null?(i.stateNode=u,Ln=i,E1=null,a=!0):a=!1),a||Eo(i)),null;case 13:return sd(a,i,u);case 4:return Qe(i,i.stateNode.containerInfo),f=i.pendingProps,a===null?i.child=Ei(i,null,f,u):En(a,i,f,u),i.child;case 11:return Qf(a,i,i.type,i.pendingProps,u);case 7:return En(a,i,i.pendingProps,u),i.child;case 8:return En(a,i,i.pendingProps.children,u),i.child;case 12:return En(a,i,i.pendingProps.children,u),i.child;case 10:return f=i.pendingProps,ko(i,i.type,f.value),En(a,i,f.children,u),i.child;case 9:return C=i.type._context,f=i.pendingProps.children,Si(i),C=Mn(C),f=f(C),i.flags|=1,En(a,i,f,u),i.child;case 14:return Jf(a,i,i.type,i.pendingProps,u);case 15:return ed(a,i,i.type,i.pendingProps,u);case 19:return ud(a,i,u);case 31:return FD(a,i,u);case 22:return td(a,i,u,i.pendingProps);case 24:return Si(i),f=Mn(on),a===null?(C=P7(),C===null&&(C=L1,x=N7(),C.pooledCache=x,x.refCount++,x!==null&&(C.pooledCacheLanes|=u),C=x),i.memoizedState={parent:f,cache:C},I7(i),ko(i,on,C)):((a.lanes&u)!==0&&(z7(a,i),nl(i,null,null,u),tl()),C=a.memoizedState,x=i.memoizedState,C.parent!==f?(C={parent:f,cache:f},i.memoizedState=C,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=C),ko(i,on,f)):(f=x.cache,ko(i,on,f),f!==C.cache&&T7(i,[on],u,!0))),En(a,i,i.pendingProps.children,u),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Ja(a){a.flags|=4}function w3(a,i,u,f,C){if((i=(a.mode&32)!==0)&&(i=!1),i){if(a.flags|=16777216,(C&335544128)===C)if(a.stateNode.complete)a.flags|=8192;else if(Pd())a.flags|=8192;else throw Mi=lu,_7}else a.flags&=-16777217}function fd(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!Mh(i))if(Pd())a.flags|=8192;else throw Mi=lu,_7}function Lu(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Ht():536870912,a.lanes|=i,_s|=i)}function ll(a,i){if(!a1)switch(a.tailMode){case"hidden":i=a.tail;for(var u=null;i!==null;)i.alternate!==null&&(u=i),i=i.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var f=null;u!==null;)u.alternate!==null&&(f=u),u=u.sibling;f===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:f.sibling=null}}function k1(a){var i=a.alternate!==null&&a.alternate.child===a.child,u=0,f=0;if(i)for(var C=a.child;C!==null;)u|=C.lanes|C.childLanes,f|=C.subtreeFlags&65011712,f|=C.flags&65011712,C.return=a,C=C.sibling;else for(C=a.child;C!==null;)u|=C.lanes|C.childLanes,f|=C.subtreeFlags,f|=C.flags,C.return=a,C=C.sibling;return a.subtreeFlags|=f,a.childLanes=u,i}function _D(a,i,u){var f=i.pendingProps;switch(j7(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return k1(i),null;case 1:return k1(i),null;case 3:return u=i.stateNode,f=null,a!==null&&(f=a.memoizedState.cache),i.memoizedState.cache!==f&&(i.flags|=2048),Ga(on),I(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(Ls(i)?Ja(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,O7())),k1(i),null;case 26:var C=i.type,x=i.memoizedState;return a===null?(Ja(i),x!==null?(k1(i),fd(i,x)):(k1(i),w3(i,C,null,f,u))):x?x!==a.memoizedState?(Ja(i),k1(i),fd(i,x)):(k1(i),i.flags&=-16777217):(a=a.memoizedProps,a!==f&&Ja(i),k1(i),w3(i,C,a,f,u)),null;case 27:if(me(i),u=We.current,C=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==f&&Ja(i);else{if(!f){if(i.stateNode===null)throw Error(r(166));return k1(i),null}a=se.current,Ls(i)?V6(i):(a=vh(C,f,u),i.stateNode=a,Ja(i))}return k1(i),null;case 5:if(me(i),C=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==f&&Ja(i);else{if(!f){if(i.stateNode===null)throw Error(r(166));return k1(i),null}if(x=se.current,Ls(i))V6(i);else{var k=zu(We.current);switch(x){case 1:x=k.createElementNS("http://www.w3.org/2000/svg",C);break;case 2:x=k.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;default:switch(C){case"svg":x=k.createElementNS("http://www.w3.org/2000/svg",C);break;case"math":x=k.createElementNS("http://www.w3.org/1998/Math/MathML",C);break;case"script":x=k.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof f.is=="string"?k.createElement("select",{is:f.is}):k.createElement("select"),f.multiple?x.multiple=!0:f.size&&(x.size=f.size);break;default:x=typeof f.is=="string"?k.createElement(C,{is:f.is}):k.createElement(C)}}x[Dt]=i,x[o1]=f;e:for(k=i.child;k!==null;){if(k.tag===5||k.tag===6)x.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===i)break e;for(;k.sibling===null;){if(k.return===null||k.return===i)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}i.stateNode=x;e:switch(kn(x,C,f),C){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}f&&Ja(i)}}return k1(i),w3(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,u),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==f&&Ja(i);else{if(typeof f!="string"&&i.stateNode===null)throw Error(r(166));if(a=We.current,Ls(i)){if(a=i.stateNode,u=i.memoizedProps,f=null,C=Ln,C!==null)switch(C.tag){case 27:case 5:f=C.memoizedProps}a[Dt]=i,a=!!(a.nodeValue===u||f!==null&&f.suppressHydrationWarning===!0||sh(a.nodeValue,u)),a||Eo(i,!0)}else a=zu(a).createTextNode(f),a[Dt]=i,i.stateNode=a}return k1(i),null;case 31:if(u=i.memoizedState,a===null||a.memoizedState!==null){if(f=Ls(i),u!==null){if(a===null){if(!f)throw Error(r(318));if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Dt]=i}else wi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;k1(i),a=!1}else u=O7(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return i.flags&256?(yr(i),i):(yr(i),null);if((i.flags&128)!==0)throw Error(r(558))}return k1(i),null;case 13:if(f=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(C=Ls(i),f!==null&&f.dehydrated!==null){if(a===null){if(!C)throw Error(r(318));if(C=i.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(r(317));C[Dt]=i}else wi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;k1(i),C=!1}else C=O7(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=C),C=!0;if(!C)return i.flags&256?(yr(i),i):(yr(i),null)}return yr(i),(i.flags&128)!==0?(i.lanes=u,i):(u=f!==null,a=a!==null&&a.memoizedState!==null,u&&(f=i.child,C=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(C=f.alternate.memoizedState.cachePool.pool),x=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(x=f.memoizedState.cachePool.pool),x!==C&&(f.flags|=2048)),u!==a&&u&&(i.child.flags|=8192),Lu(i,i.updateQueue),k1(i),null);case 4:return I(),a===null&&V3(i.stateNode.containerInfo),k1(i),null;case 10:return Ga(i.type),k1(i),null;case 19:if($(X1),f=i.memoizedState,f===null)return k1(i),null;if(C=(i.flags&128)!==0,x=f.rendering,x===null)if(C)ll(f,!1);else{if(q1!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(x=du(a),x!==null){for(i.flags|=128,ll(f,!1),a=x.updateQueue,i.updateQueue=a,Lu(i,a),i.subtreeFlags=0,a=u,u=i.child;u!==null;)_6(u,a),u=u.sibling;return V(X1,X1.current&1|2),a1&&qa(i,f.treeForkCount),i.child}a=a.sibling}f.tail!==null&&Me()>Au&&(i.flags|=128,C=!0,ll(f,!1),i.lanes=4194304)}else{if(!C)if(a=du(x),a!==null){if(i.flags|=128,C=!0,a=a.updateQueue,i.updateQueue=a,Lu(i,a),ll(f,!0),f.tail===null&&f.tailMode==="hidden"&&!x.alternate&&!a1)return k1(i),null}else 2*Me()-f.renderingStartTime>Au&&u!==536870912&&(i.flags|=128,C=!0,ll(f,!1),i.lanes=4194304);f.isBackwards?(x.sibling=i.child,i.child=x):(a=f.last,a!==null?a.sibling=x:i.child=x,f.last=x)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=Me(),a.sibling=null,u=X1.current,V(X1,C?u&1|2:u&1),a1&&qa(i,f.treeForkCount),a):(k1(i),null);case 22:case 23:return yr(i),W7(),f=i.memoizedState!==null,a!==null?a.memoizedState!==null!==f&&(i.flags|=8192):f&&(i.flags|=8192),f?(u&536870912)!==0&&(i.flags&128)===0&&(k1(i),i.subtreeFlags&6&&(i.flags|=8192)):k1(i),u=i.updateQueue,u!==null&&Lu(i,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==u&&(i.flags|=2048),a!==null&&$(Di),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),Ga(on),k1(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function ID(a,i){switch(j7(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Ga(on),I(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return me(i),null;case 31:if(i.memoizedState!==null){if(yr(i),i.alternate===null)throw Error(r(340));wi()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 13:if(yr(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));wi()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return $(X1),null;case 4:return I(),null;case 10:return Ga(i.type),null;case 22:case 23:return yr(i),W7(),a!==null&&$(Di),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return Ga(on),null;case 25:return null;default:return null}}function dd(a,i){switch(j7(i),i.tag){case 3:Ga(on),I();break;case 26:case 27:case 5:me(i);break;case 4:I();break;case 31:i.memoizedState!==null&&yr(i);break;case 13:yr(i);break;case 19:$(X1);break;case 10:Ga(i.type);break;case 22:case 23:yr(i),W7(),a!==null&&$(Di);break;case 24:Ga(on)}}function ul(a,i){try{var u=i.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var C=f.next;u=C;do{if((u.tag&a)===a){f=void 0;var x=u.create,k=u.inst;f=x(),k.destroy=f}u=u.next}while(u!==C)}}catch(F){g1(i,i.return,F)}}function To(a,i,u){try{var f=i.updateQueue,C=f!==null?f.lastEffect:null;if(C!==null){var x=C.next;f=x;do{if((f.tag&a)===a){var k=f.inst,F=k.destroy;if(F!==void 0){k.destroy=void 0,C=i;var G=u,ge=F;try{ge()}catch(je){g1(C,G,je)}}}f=f.next}while(f!==x)}}catch(je){g1(i,i.return,je)}}function hd(a){var i=a.updateQueue;if(i!==null){var u=a.stateNode;try{nf(i,u)}catch(f){g1(a,a.return,f)}}}function pd(a,i,u){u.props=ji(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(f){g1(a,i,f)}}function cl(a,i){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var f=a.stateNode;break;case 30:f=a.stateNode;break;default:f=a.stateNode}typeof u=="function"?a.refCleanup=u(f):u.current=f}}catch(C){g1(a,i,C)}}function Da(a,i){var u=a.ref,f=a.refCleanup;if(u!==null)if(typeof f=="function")try{f()}catch(C){g1(a,i,C)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(C){g1(a,i,C)}else u.current=null}function Cd(a){var i=a.type,u=a.memoizedProps,f=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":u.autoFocus&&f.focus();break e;case"img":u.src?f.src=u.src:u.srcSet&&(f.srcset=u.srcSet)}}catch(C){g1(a,a.return,C)}}function b3(a,i,u){try{var f=a.stateNode;sL(f,a.type,u,i),f[o1]=i}catch(C){g1(a,a.return,C)}}function gd(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ho(a.type)||a.tag===4}function S3(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||gd(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ho(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function D3(a,i,u){var f=a.tag;if(f===5||f===6)a=a.stateNode,i?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,i):(i=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,i.appendChild(a),u=u._reactRootContainer,u!=null||i.onclick!==null||(i.onclick=Kr));else if(f!==4&&(f===27&&Ho(a.type)&&(u=a.stateNode,i=null),a=a.child,a!==null))for(D3(a,i,u),a=a.sibling;a!==null;)D3(a,i,u),a=a.sibling}function Mu(a,i,u){var f=a.tag;if(f===5||f===6)a=a.stateNode,i?u.insertBefore(a,i):u.appendChild(a);else if(f!==4&&(f===27&&Ho(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(Mu(a,i,u),a=a.sibling;a!==null;)Mu(a,i,u),a=a.sibling}function md(a){var i=a.stateNode,u=a.memoizedProps;try{for(var f=a.type,C=i.attributes;C.length;)i.removeAttributeNode(C[0]);kn(i,f,u),i[Dt]=a,i[o1]=u}catch(x){g1(a,a.return,x)}}var eo=!1,un=!1,L3=!1,vd=typeof WeakSet=="function"?WeakSet:Set,wn=null;function zD(a,i){if(a=a.containerInfo,U3=qu,a=j6(a),v7(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var f=u.getSelection&&u.getSelection();if(f&&f.rangeCount!==0){u=f.anchorNode;var C=f.anchorOffset,x=f.focusNode;f=f.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break e}var k=0,F=-1,G=-1,ge=0,je=0,Ne=a,ye=null;t:for(;;){for(var De;Ne!==u||C!==0&&Ne.nodeType!==3||(F=k+C),Ne!==x||f!==0&&Ne.nodeType!==3||(G=k+f),Ne.nodeType===3&&(k+=Ne.nodeValue.length),(De=Ne.firstChild)!==null;)ye=Ne,Ne=De;for(;;){if(Ne===a)break t;if(ye===u&&++ge===C&&(F=k),ye===x&&++je===f&&(G=k),(De=Ne.nextSibling)!==null)break;Ne=ye,ye=Ne.parentNode}Ne=De}u=F===-1||G===-1?null:{start:F,end:G}}else u=null}u=u||{start:0,end:0}}else u=null;for(q3={focusedElem:a,selectionRange:u},qu=!1,wn=i;wn!==null;)if(i=wn,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,wn=a;else for(;wn!==null;){switch(i=wn,x=i.alternate,a=i.flags,i.tag){case 0:if((a&4)!==0&&(a=i.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)C=a[u],C.ref.impl=C.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&x!==null){a=void 0,u=i,C=x.memoizedProps,x=x.memoizedState,f=u.stateNode;try{var ot=ji(u.type,C);a=f.getSnapshotBeforeUpdate(ot,x),f.__reactInternalSnapshotBeforeUpdate=a}catch(St){g1(u,u.return,St)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,u=a.nodeType,u===9)K3(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":K3(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=i.sibling,a!==null){a.return=i.return,wn=a;break}wn=i.return}}function yd(a,i,u){var f=u.flags;switch(u.tag){case 0:case 11:case 15:no(a,u),f&4&&ul(5,u);break;case 1:if(no(a,u),f&4)if(a=u.stateNode,i===null)try{a.componentDidMount()}catch(k){g1(u,u.return,k)}else{var C=ji(u.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(C,i,a.__reactInternalSnapshotBeforeUpdate)}catch(k){g1(u,u.return,k)}}f&64&&hd(u),f&512&&cl(u,u.return);break;case 3:if(no(a,u),f&64&&(a=u.updateQueue,a!==null)){if(i=null,u.child!==null)switch(u.child.tag){case 27:case 5:i=u.child.stateNode;break;case 1:i=u.child.stateNode}try{nf(a,i)}catch(k){g1(u,u.return,k)}}break;case 27:i===null&&f&4&&md(u);case 26:case 5:no(a,u),i===null&&f&4&&Cd(u),f&512&&cl(u,u.return);break;case 12:no(a,u);break;case 31:no(a,u),f&4&&bd(a,u);break;case 13:no(a,u),f&4&&Sd(a,u),f&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=GD.bind(null,u),CL(a,u))));break;case 22:if(f=u.memoizedState!==null||eo,!f){i=i!==null&&i.memoizedState!==null||un,C=eo;var x=un;eo=f,(un=i)&&!x?ro(a,u,(u.subtreeFlags&8772)!==0):no(a,u),eo=C,un=x}break;case 30:break;default:no(a,u)}}function xd(a){var i=a.alternate;i!==null&&(a.alternate=null,xd(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&Qn(i)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var T1=null,ar=!1;function to(a,i,u){for(u=u.child;u!==null;)wd(a,i,u),u=u.sibling}function wd(a,i,u){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(ue,u)}catch{}switch(u.tag){case 26:un||Da(u,i),to(a,i,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:un||Da(u,i);var f=T1,C=ar;Ho(u.type)&&(T1=u.stateNode,ar=!1),to(a,i,u),yl(u.stateNode),T1=f,ar=C;break;case 5:un||Da(u,i);case 6:if(f=T1,C=ar,T1=null,to(a,i,u),T1=f,ar=C,T1!==null)if(ar)try{(T1.nodeType===9?T1.body:T1.nodeName==="HTML"?T1.ownerDocument.body:T1).removeChild(u.stateNode)}catch(x){g1(u,i,x)}else try{T1.removeChild(u.stateNode)}catch(x){g1(u,i,x)}break;case 18:T1!==null&&(ar?(a=T1,hh(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),Us(a)):hh(T1,u.stateNode));break;case 4:f=T1,C=ar,T1=u.stateNode.containerInfo,ar=!0,to(a,i,u),T1=f,ar=C;break;case 0:case 11:case 14:case 15:To(2,u,i),un||To(4,u,i),to(a,i,u);break;case 1:un||(Da(u,i),f=u.stateNode,typeof f.componentWillUnmount=="function"&&pd(u,i,f)),to(a,i,u);break;case 21:to(a,i,u);break;case 22:un=(f=un)||u.memoizedState!==null,to(a,i,u),un=f;break;default:to(a,i,u)}}function bd(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Us(a)}catch(u){g1(i,i.return,u)}}}function Sd(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Us(a)}catch(u){g1(i,i.return,u)}}function HD(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new vd),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new vd),i;default:throw Error(r(435,a.tag))}}function Eu(a,i){var u=HD(a);i.forEach(function(f){if(!u.has(f)){u.add(f);var C=KD.bind(null,a,f);f.then(C,C)}})}function or(a,i){var u=i.deletions;if(u!==null)for(var f=0;f<u.length;f++){var C=u[f],x=a,k=i,F=k;e:for(;F!==null;){switch(F.tag){case 27:if(Ho(F.type)){T1=F.stateNode,ar=!1;break e}break;case 5:T1=F.stateNode,ar=!1;break e;case 3:case 4:T1=F.stateNode.containerInfo,ar=!0;break e}F=F.return}if(T1===null)throw Error(r(160));wd(x,k,C),T1=null,ar=!1,x=C.alternate,x!==null&&(x.return=null),C.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Dd(i,a),i=i.sibling}var ra=null;function Dd(a,i){var u=a.alternate,f=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:or(i,a),ir(a),f&4&&(To(3,a,a.return),ul(3,a),To(5,a,a.return));break;case 1:or(i,a),ir(a),f&512&&(un||u===null||Da(u,u.return)),f&64&&eo&&(a=a.updateQueue,a!==null&&(f=a.callbacks,f!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?f:u.concat(f))));break;case 26:var C=ra;if(or(i,a),ir(a),f&512&&(un||u===null||Da(u,u.return)),f&4){var x=u!==null?u.memoizedState:null;if(f=a.memoizedState,u===null)if(f===null)if(a.stateNode===null){e:{f=a.type,u=a.memoizedProps,C=C.ownerDocument||C;t:switch(f){case"title":x=C.getElementsByTagName("title")[0],(!x||x[Bn]||x[Dt]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=C.createElement(f),C.head.insertBefore(x,C.querySelector("head > title"))),kn(x,f,u),x[Dt]=a,D1(x),f=x;break e;case"link":var k=Dh("link","href",C).get(f+(u.href||""));if(k){for(var F=0;F<k.length;F++)if(x=k[F],x.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&x.getAttribute("rel")===(u.rel==null?null:u.rel)&&x.getAttribute("title")===(u.title==null?null:u.title)&&x.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){k.splice(F,1);break t}}x=C.createElement(f),kn(x,f,u),C.head.appendChild(x);break;case"meta":if(k=Dh("meta","content",C).get(f+(u.content||""))){for(F=0;F<k.length;F++)if(x=k[F],x.getAttribute("content")===(u.content==null?null:""+u.content)&&x.getAttribute("name")===(u.name==null?null:u.name)&&x.getAttribute("property")===(u.property==null?null:u.property)&&x.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&x.getAttribute("charset")===(u.charSet==null?null:u.charSet)){k.splice(F,1);break t}}x=C.createElement(f),kn(x,f,u),C.head.appendChild(x);break;default:throw Error(r(468,f))}x[Dt]=a,D1(x),f=x}a.stateNode=f}else Lh(C,a.type,a.stateNode);else a.stateNode=Sh(C,f,a.memoizedProps);else x!==f?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,f===null?Lh(C,a.type,a.stateNode):Sh(C,f,a.memoizedProps)):f===null&&a.stateNode!==null&&b3(a,a.memoizedProps,u.memoizedProps)}break;case 27:or(i,a),ir(a),f&512&&(un||u===null||Da(u,u.return)),u!==null&&f&4&&b3(a,a.memoizedProps,u.memoizedProps);break;case 5:if(or(i,a),ir(a),f&512&&(un||u===null||Da(u,u.return)),a.flags&32){C=a.stateNode;try{Tn(C,"")}catch(ot){g1(a,a.return,ot)}}f&4&&a.stateNode!=null&&(C=a.memoizedProps,b3(a,C,u!==null?u.memoizedProps:C)),f&1024&&(L3=!0);break;case 6:if(or(i,a),ir(a),f&4){if(a.stateNode===null)throw Error(r(162));f=a.memoizedProps,u=a.stateNode;try{u.nodeValue=f}catch(ot){g1(a,a.return,ot)}}break;case 3:if(Vu=null,C=ra,ra=Hu(i.containerInfo),or(i,a),ra=C,ir(a),f&4&&u!==null&&u.memoizedState.isDehydrated)try{Us(i.containerInfo)}catch(ot){g1(a,a.return,ot)}L3&&(L3=!1,Ld(a));break;case 4:f=ra,ra=Hu(a.stateNode.containerInfo),or(i,a),ir(a),ra=f;break;case 12:or(i,a),ir(a);break;case 31:or(i,a),ir(a),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,Eu(a,f)));break;case 13:or(i,a),ir(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(ju=Me()),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,Eu(a,f)));break;case 22:C=a.memoizedState!==null;var G=u!==null&&u.memoizedState!==null,ge=eo,je=un;if(eo=ge||C,un=je||G,or(i,a),un=je,eo=ge,ir(a),f&8192)e:for(i=a.stateNode,i._visibility=C?i._visibility&-2:i._visibility|1,C&&(u===null||G||eo||un||Ai(a)),u=null,i=a;;){if(i.tag===5||i.tag===26){if(u===null){G=u=i;try{if(x=G.stateNode,C)k=x.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{F=G.stateNode;var Ne=G.memoizedProps.style,ye=Ne!=null&&Ne.hasOwnProperty("display")?Ne.display:null;F.style.display=ye==null||typeof ye=="boolean"?"":(""+ye).trim()}}catch(ot){g1(G,G.return,ot)}}}else if(i.tag===6){if(u===null){G=i;try{G.stateNode.nodeValue=C?"":G.memoizedProps}catch(ot){g1(G,G.return,ot)}}}else if(i.tag===18){if(u===null){G=i;try{var De=G.stateNode;C?ph(De,!0):ph(G.stateNode,!1)}catch(ot){g1(G,G.return,ot)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;u===i&&(u=null),i=i.return}u===i&&(u=null),i.sibling.return=i.return,i=i.sibling}f&4&&(f=a.updateQueue,f!==null&&(u=f.retryQueue,u!==null&&(f.retryQueue=null,Eu(a,u))));break;case 19:or(i,a),ir(a),f&4&&(f=a.updateQueue,f!==null&&(a.updateQueue=null,Eu(a,f)));break;case 30:break;case 21:break;default:or(i,a),ir(a)}}function ir(a){var i=a.flags;if(i&2){try{for(var u,f=a.return;f!==null;){if(gd(f)){u=f;break}f=f.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var C=u.stateNode,x=S3(a);Mu(a,x,C);break;case 5:var k=u.stateNode;u.flags&32&&(Tn(k,""),u.flags&=-33);var F=S3(a);Mu(a,F,k);break;case 3:case 4:var G=u.stateNode.containerInfo,ge=S3(a);D3(a,ge,G);break;default:throw Error(r(161))}}catch(je){g1(a,a.return,je)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function Ld(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;Ld(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function no(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)yd(a,i.alternate,i),i=i.sibling}function Ai(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:To(4,i,i.return),Ai(i);break;case 1:Da(i,i.return);var u=i.stateNode;typeof u.componentWillUnmount=="function"&&pd(i,i.return,u),Ai(i);break;case 27:yl(i.stateNode);case 26:case 5:Da(i,i.return),Ai(i);break;case 22:i.memoizedState===null&&Ai(i);break;case 30:Ai(i);break;default:Ai(i)}a=a.sibling}}function ro(a,i,u){for(u=u&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var f=i.alternate,C=a,x=i,k=x.flags;switch(x.tag){case 0:case 11:case 15:ro(C,x,u),ul(4,x);break;case 1:if(ro(C,x,u),f=x,C=f.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(ge){g1(f,f.return,ge)}if(f=x,C=f.updateQueue,C!==null){var F=f.stateNode;try{var G=C.shared.hiddenCallbacks;if(G!==null)for(C.shared.hiddenCallbacks=null,C=0;C<G.length;C++)tf(G[C],F)}catch(ge){g1(f,f.return,ge)}}u&&k&64&&hd(x),cl(x,x.return);break;case 27:md(x);case 26:case 5:ro(C,x,u),u&&f===null&&k&4&&Cd(x),cl(x,x.return);break;case 12:ro(C,x,u);break;case 31:ro(C,x,u),u&&k&4&&bd(C,x);break;case 13:ro(C,x,u),u&&k&4&&Sd(C,x);break;case 22:x.memoizedState===null&&ro(C,x,u),cl(x,x.return);break;case 30:break;default:ro(C,x,u)}i=i.sibling}}function M3(a,i){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&K2(u))}function E3(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&K2(a))}function aa(a,i,u,f){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Md(a,i,u,f),i=i.sibling}function Md(a,i,u,f){var C=i.flags;switch(i.tag){case 0:case 11:case 15:aa(a,i,u,f),C&2048&&ul(9,i);break;case 1:aa(a,i,u,f);break;case 3:aa(a,i,u,f),C&2048&&(a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&K2(a)));break;case 12:if(C&2048){aa(a,i,u,f),a=i.stateNode;try{var x=i.memoizedProps,k=x.id,F=x.onPostCommit;typeof F=="function"&&F(k,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(G){g1(i,i.return,G)}}else aa(a,i,u,f);break;case 31:aa(a,i,u,f);break;case 13:aa(a,i,u,f);break;case 23:break;case 22:x=i.stateNode,k=i.alternate,i.memoizedState!==null?x._visibility&2?aa(a,i,u,f):fl(a,i):x._visibility&2?aa(a,i,u,f):(x._visibility|=2,Ns(a,i,u,f,(i.subtreeFlags&10256)!==0||!1)),C&2048&&M3(k,i);break;case 24:aa(a,i,u,f),C&2048&&E3(i.alternate,i);break;default:aa(a,i,u,f)}}function Ns(a,i,u,f,C){for(C=C&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var x=a,k=i,F=u,G=f,ge=k.flags;switch(k.tag){case 0:case 11:case 15:Ns(x,k,F,G,C),ul(8,k);break;case 23:break;case 22:var je=k.stateNode;k.memoizedState!==null?je._visibility&2?Ns(x,k,F,G,C):fl(x,k):(je._visibility|=2,Ns(x,k,F,G,C)),C&&ge&2048&&M3(k.alternate,k);break;case 24:Ns(x,k,F,G,C),C&&ge&2048&&E3(k.alternate,k);break;default:Ns(x,k,F,G,C)}i=i.sibling}}function fl(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var u=a,f=i,C=f.flags;switch(f.tag){case 22:fl(u,f),C&2048&&M3(f.alternate,f);break;case 24:fl(u,f),C&2048&&E3(f.alternate,f);break;default:fl(u,f)}i=i.sibling}}var dl=8192;function Fs(a,i,u){if(a.subtreeFlags&dl)for(a=a.child;a!==null;)Ed(a,i,u),a=a.sibling}function Ed(a,i,u){switch(a.tag){case 26:Fs(a,i,u),a.flags&dl&&a.memoizedState!==null&&EL(u,ra,a.memoizedState,a.memoizedProps);break;case 5:Fs(a,i,u);break;case 3:case 4:var f=ra;ra=Hu(a.stateNode.containerInfo),Fs(a,i,u),ra=f;break;case 22:a.memoizedState===null&&(f=a.alternate,f!==null&&f.memoizedState!==null?(f=dl,dl=16777216,Fs(a,i,u),dl=f):Fs(a,i,u));break;default:Fs(a,i,u)}}function kd(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function hl(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var f=i[u];wn=f,Ad(f,a)}kd(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)jd(a),a=a.sibling}function jd(a){switch(a.tag){case 0:case 11:case 15:hl(a),a.flags&2048&&To(9,a,a.return);break;case 3:hl(a);break;case 12:hl(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,ku(a)):hl(a);break;default:hl(a)}}function ku(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var u=0;u<i.length;u++){var f=i[u];wn=f,Ad(f,a)}kd(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:To(8,i,i.return),ku(i);break;case 22:u=i.stateNode,u._visibility&2&&(u._visibility&=-3,ku(i));break;default:ku(i)}a=a.sibling}}function Ad(a,i){for(;wn!==null;){var u=wn;switch(u.tag){case 0:case 11:case 15:To(8,u,i);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var f=u.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:K2(u.memoizedState.cache)}if(f=u.child,f!==null)f.return=u,wn=f;else e:for(u=a;wn!==null;){f=wn;var C=f.sibling,x=f.return;if(xd(f),f===u){wn=null;break e}if(C!==null){C.return=x,wn=C;break e}wn=x}}}var ZD={getCacheForType:function(a){var i=Mn(on),u=i.data.get(a);return u===void 0&&(u=a(),i.data.set(a,u)),u},cacheSignal:function(){return Mn(on).controller.signal}},VD=typeof WeakMap=="function"?WeakMap:Map,h1=0,L1=null,Ut=null,Jt=0,C1=0,xr=null,No=!1,Ps=!1,k3=!1,ao=0,q1=0,Fo=0,Oi=0,j3=0,wr=0,_s=0,pl=null,sr=null,A3=!1,ju=0,Od=0,Au=1/0,Ou=null,Po=null,Cn=0,_o=null,Is=null,oo=0,O3=0,B3=null,Bd=null,Cl=0,R3=null;function br(){return(h1&2)!==0&&Jt!==0?Jt&-Jt:H.T!==null?I3():Vt()}function Rd(){if(wr===0)if((Jt&536870912)===0||a1){var a=ft;ft<<=1,(ft&3932160)===0&&(ft=262144),wr=a}else wr=536870912;return a=vr.current,a!==null&&(a.flags|=32),wr}function lr(a,i,u){(a===L1&&(C1===2||C1===9)||a.cancelPendingCommit!==null)&&(zs(a,0),Io(a,Jt,wr,!1)),Nt(a,u),((h1&2)===0||a!==L1)&&(a===L1&&((h1&2)===0&&(Oi|=u),q1===4&&Io(a,Jt,wr,!1)),La(a))}function Td(a,i,u){if((h1&6)!==0)throw Error(r(327));var f=!u&&(i&127)===0&&(i&a.expiredLanes)===0||f1(a,i),C=f?UD(a,i):N3(a,i,!0),x=f;do{if(C===0){Ps&&!f&&Io(a,i,0,!1);break}else{if(u=a.current.alternate,x&&!WD(u)){C=N3(a,i,!1),x=!1;continue}if(C===2){if(x=i,a.errorRecoveryDisabledLanes&x)var k=0;else k=a.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){i=k;e:{var F=a;C=pl;var G=F.current.memoizedState.isDehydrated;if(G&&(zs(F,k).flags|=256),k=N3(F,k,!1),k!==2){if(k3&&!G){F.errorRecoveryDisabledLanes|=x,Oi|=x,C=4;break e}x=sr,sr=C,x!==null&&(sr===null?sr=x:sr.push.apply(sr,x))}C=k}if(x=!1,C!==2)continue}}if(C===1){zs(a,0),Io(a,i,0,!0);break}e:{switch(f=a,x=C,x){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Io(f,i,wr,!No);break e;case 2:sr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(C=ju+300-Me(),10<C)){if(Io(f,i,wr,!No),c1(f,0,!0)!==0)break e;oo=i,f.timeoutHandle=fh(Nd.bind(null,f,u,sr,Ou,A3,i,wr,Oi,_s,No,x,"Throttled",-0,0),C);break e}Nd(f,u,sr,Ou,A3,i,wr,Oi,_s,No,x,null,-0,0)}}break}while(!0);La(a)}function Nd(a,i,u,f,C,x,k,F,G,ge,je,Ne,ye,De){if(a.timeoutHandle=-1,Ne=i.subtreeFlags,Ne&8192||(Ne&16785408)===16785408){Ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kr},Ed(i,x,Ne);var ot=(x&62914560)===x?ju-Me():(x&4194048)===x?Od-Me():0;if(ot=kL(Ne,ot),ot!==null){oo=x,a.cancelPendingCommit=ot(Vd.bind(null,a,i,x,u,f,C,k,F,G,je,Ne,null,ye,De)),Io(a,x,k,!ge);return}}Vd(a,i,x,u,f,C,k,F,G)}function WD(a){for(var i=a;;){var u=i.tag;if((u===0||u===11||u===15)&&i.flags&16384&&(u=i.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var f=0;f<u.length;f++){var C=u[f],x=C.getSnapshot;C=C.value;try{if(!xn(x(),C))return!1}catch{return!1}}if(u=i.child,i.subtreeFlags&16384&&u!==null)u.return=i,i=u;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Io(a,i,u,f){i&=~j3,i&=~Oi,a.suspendedLanes|=i,a.pingedLanes&=~i,f&&(a.warmLanes|=i),f=a.expirationTimes;for(var C=i;0<C;){var x=31-Tt(C),k=1<<x;f[x]=-1,C&=~k}u!==0&&fn(a,u,i)}function Bu(){return(h1&6)===0?(gl(0),!1):!0}function T3(){if(Ut!==null){if(C1===0)var a=Ut.return;else a=Ut,Ya=bi=null,K7(a),As=null,Q2=0,a=Ut;for(;a!==null;)dd(a.alternate,a),a=a.return;Ut=null}}function zs(a,i){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,cL(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),oo=0,T3(),L1=a,Ut=u=Ua(a.current,null),Jt=i,C1=0,xr=null,No=!1,Ps=f1(a,i),k3=!1,_s=wr=j3=Oi=Fo=q1=0,sr=pl=null,A3=!1,(i&8)!==0&&(i|=i&32);var f=a.entangledLanes;if(f!==0)for(a=a.entanglements,f&=i;0<f;){var C=31-Tt(f),x=1<<C;i|=a[C],f&=~x}return ao=i,J5(),u}function Fd(a,i){It=null,H.H=il,i===js||i===su?(i=X6(),C1=3):i===_7?(i=X6(),C1=4):C1=i===d3?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,xr=i,Ut===null&&(q1=1,wu(a,Rr(i,a.current)))}function Pd(){var a=vr.current;return a===null?!0:(Jt&4194048)===Jt?Pr===null:(Jt&62914560)===Jt||(Jt&536870912)!==0?a===Pr:!1}function _d(){var a=H.H;return H.H=il,a===null?il:a}function Id(){var a=H.A;return H.A=ZD,a}function Ru(){q1=4,No||(Jt&4194048)!==Jt&&vr.current!==null||(Ps=!0),(Fo&134217727)===0&&(Oi&134217727)===0||L1===null||Io(L1,Jt,wr,!1)}function N3(a,i,u){var f=h1;h1|=2;var C=_d(),x=Id();(L1!==a||Jt!==i)&&(Ou=null,zs(a,i)),i=!1;var k=q1;e:do try{if(C1!==0&&Ut!==null){var F=Ut,G=xr;switch(C1){case 8:T3(),k=6;break e;case 3:case 2:case 9:case 6:vr.current===null&&(i=!0);var ge=C1;if(C1=0,xr=null,Hs(a,F,G,ge),u&&Ps){k=0;break e}break;default:ge=C1,C1=0,xr=null,Hs(a,F,G,ge)}}$D(),k=q1;break}catch(je){Fd(a,je)}while(!0);return i&&a.shellSuspendCounter++,Ya=bi=null,h1=f,H.H=C,H.A=x,Ut===null&&(L1=null,Jt=0,J5()),k}function $D(){for(;Ut!==null;)zd(Ut)}function UD(a,i){var u=h1;h1|=2;var f=_d(),C=Id();L1!==a||Jt!==i?(Ou=null,Au=Me()+500,zs(a,i)):Ps=f1(a,i);e:do try{if(C1!==0&&Ut!==null){i=Ut;var x=xr;t:switch(C1){case 1:C1=0,xr=null,Hs(a,i,x,1);break;case 2:case 9:if(G6(x)){C1=0,xr=null,Hd(i);break}i=function(){C1!==2&&C1!==9||L1!==a||(C1=7),La(a)},x.then(i,i);break e;case 3:C1=7;break e;case 4:C1=5;break e;case 7:G6(x)?(C1=0,xr=null,Hd(i)):(C1=0,xr=null,Hs(a,i,x,7));break;case 5:var k=null;switch(Ut.tag){case 26:k=Ut.memoizedState;case 5:case 27:var F=Ut;if(k?Mh(k):F.stateNode.complete){C1=0,xr=null;var G=F.sibling;if(G!==null)Ut=G;else{var ge=F.return;ge!==null?(Ut=ge,Tu(ge)):Ut=null}break t}}C1=0,xr=null,Hs(a,i,x,5);break;case 6:C1=0,xr=null,Hs(a,i,x,6);break;case 8:T3(),q1=6;break e;default:throw Error(r(462))}}qD();break}catch(je){Fd(a,je)}while(!0);return Ya=bi=null,H.H=f,H.A=C,h1=u,Ut!==null?0:(L1=null,Jt=0,J5(),q1)}function qD(){for(;Ut!==null&&!Lt();)zd(Ut)}function zd(a){var i=cd(a.alternate,a,ao);a.memoizedProps=a.pendingProps,i===null?Tu(a):Ut=i}function Hd(a){var i=a,u=i.alternate;switch(i.tag){case 15:case 0:i=ad(u,i,i.pendingProps,i.type,void 0,Jt);break;case 11:i=ad(u,i,i.pendingProps,i.type.render,i.ref,Jt);break;case 5:K7(i);default:dd(u,i),i=Ut=_6(i,ao),i=cd(u,i,ao)}a.memoizedProps=a.pendingProps,i===null?Tu(a):Ut=i}function Hs(a,i,u,f){Ya=bi=null,K7(i),As=null,Q2=0;var C=i.return;try{if(ND(a,C,i,u,Jt)){q1=1,wu(a,Rr(u,a.current)),Ut=null;return}}catch(x){if(C!==null)throw Ut=C,x;q1=1,wu(a,Rr(u,a.current)),Ut=null;return}i.flags&32768?(a1||f===1?a=!0:Ps||(Jt&536870912)!==0?a=!1:(No=a=!0,(f===2||f===9||f===3||f===6)&&(f=vr.current,f!==null&&f.tag===13&&(f.flags|=16384))),Zd(i,a)):Tu(i)}function Tu(a){var i=a;do{if((i.flags&32768)!==0){Zd(i,No);return}a=i.return;var u=_D(i.alternate,i,ao);if(u!==null){Ut=u;return}if(i=i.sibling,i!==null){Ut=i;return}Ut=i=a}while(i!==null);q1===0&&(q1=5)}function Zd(a,i){do{var u=ID(a.alternate,a);if(u!==null){u.flags&=32767,Ut=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!i&&(a=a.sibling,a!==null)){Ut=a;return}Ut=a=u}while(a!==null);q1=6,Ut=null}function Vd(a,i,u,f,C,x,k,F,G){a.cancelPendingCommit=null;do Nu();while(Cn!==0);if((h1&6)!==0)throw Error(r(327));if(i!==null){if(i===a.current)throw Error(r(177));if(x=i.lanes|i.childLanes,x|=S7,nt(a,u,x,k,F,G),a===L1&&(Ut=L1=null,Jt=0),Is=i,_o=a,oo=u,O3=x,B3=C,Bd=f,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,XD(ve,function(){return Yd(),null})):(a.callbackNode=null,a.callbackPriority=0),f=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||f){f=H.T,H.T=null,C=Q.p,Q.p=2,k=h1,h1|=4;try{zD(a,i,u)}finally{h1=k,Q.p=C,H.T=f}}Cn=1,Wd(),$d(),Ud()}}function Wd(){if(Cn===1){Cn=0;var a=_o,i=Is,u=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||u){u=H.T,H.T=null;var f=Q.p;Q.p=2;var C=h1;h1|=4;try{Dd(i,a);var x=q3,k=j6(a.containerInfo),F=x.focusedElem,G=x.selectionRange;if(k!==F&&F&&F.ownerDocument&&gi(F.ownerDocument.documentElement,F)){if(G!==null&&v7(F)){var ge=G.start,je=G.end;if(je===void 0&&(je=ge),"selectionStart"in F)F.selectionStart=ge,F.selectionEnd=Math.min(je,F.value.length);else{var Ne=F.ownerDocument||document,ye=Ne&&Ne.defaultView||window;if(ye.getSelection){var De=ye.getSelection(),ot=F.textContent.length,St=Math.min(G.start,ot),b1=G.end===void 0?St:Math.min(G.end,ot);!De.extend&&St>b1&&(k=b1,b1=St,St=k);var le=rr(F,St),ne=rr(F,b1);if(le&&ne&&(De.rangeCount!==1||De.anchorNode!==le.node||De.anchorOffset!==le.offset||De.focusNode!==ne.node||De.focusOffset!==ne.offset)){var Ce=Ne.createRange();Ce.setStart(le.node,le.offset),De.removeAllRanges(),St>b1?(De.addRange(Ce),De.extend(ne.node,ne.offset)):(Ce.setEnd(ne.node,ne.offset),De.addRange(Ce))}}}}for(Ne=[],De=F;De=De.parentNode;)De.nodeType===1&&Ne.push({element:De,left:De.scrollLeft,top:De.scrollTop});for(typeof F.focus=="function"&&F.focus(),F=0;F<Ne.length;F++){var Re=Ne[F];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}qu=!!U3,q3=U3=null}finally{h1=C,Q.p=f,H.T=u}}a.current=i,Cn=2}}function $d(){if(Cn===2){Cn=0;var a=_o,i=Is,u=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||u){u=H.T,H.T=null;var f=Q.p;Q.p=2;var C=h1;h1|=4;try{yd(a,i.alternate,i)}finally{h1=C,Q.p=f,H.T=u}}Cn=3}}function Ud(){if(Cn===4||Cn===3){Cn=0,n1();var a=_o,i=Is,u=oo,f=Bd;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Cn=5:(Cn=0,Is=_o=null,qd(a,a.pendingLanes));var C=a.pendingLanes;if(C===0&&(Po=null),d1(u),i=i.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(ue,i,void 0,(i.current.flags&128)===128)}catch{}if(f!==null){i=H.T,C=Q.p,Q.p=2,H.T=null;try{for(var x=a.onRecoverableError,k=0;k<f.length;k++){var F=f[k];x(F.value,{componentStack:F.stack})}}finally{H.T=i,Q.p=C}}(oo&3)!==0&&Nu(),La(a),C=a.pendingLanes,(u&261930)!==0&&(C&42)!==0?a===R3?Cl++:(Cl=0,R3=a):Cl=0,gl(0)}}function qd(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,K2(i)))}function Nu(){return Wd(),$d(),Ud(),Yd()}function Yd(){if(Cn!==5)return!1;var a=_o,i=O3;O3=0;var u=d1(oo),f=H.T,C=Q.p;try{Q.p=32>u?32:u,H.T=null,u=B3,B3=null;var x=_o,k=oo;if(Cn=0,Is=_o=null,oo=0,(h1&6)!==0)throw Error(r(331));var F=h1;if(h1|=4,jd(x.current),Md(x,x.current,k,u),h1=F,gl(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(ue,x)}catch{}return!0}finally{Q.p=C,H.T=f,qd(a,i)}}function Gd(a,i,u){i=Rr(u,i),i=f3(a.stateNode,i,2),a=Oo(a,i,2),a!==null&&(Nt(a,2),La(a))}function g1(a,i,u){if(a.tag===3)Gd(a,a,u);else for(;i!==null;){if(i.tag===3){Gd(i,a,u);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Po===null||!Po.has(f))){a=Rr(u,a),u=Kf(2),f=Oo(i,u,2),f!==null&&(Xf(u,f,i,a),Nt(f,2),La(f));break}}i=i.return}}function F3(a,i,u){var f=a.pingCache;if(f===null){f=a.pingCache=new VD;var C=new Set;f.set(i,C)}else C=f.get(i),C===void 0&&(C=new Set,f.set(i,C));C.has(u)||(k3=!0,C.add(u),a=YD.bind(null,a,i,u),i.then(a,a))}function YD(a,i,u){var f=a.pingCache;f!==null&&f.delete(i),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,L1===a&&(Jt&u)===u&&(q1===4||q1===3&&(Jt&62914560)===Jt&&300>Me()-ju?(h1&2)===0&&zs(a,0):j3|=u,_s===Jt&&(_s=0)),La(a)}function Kd(a,i){i===0&&(i=Ht()),a=yi(a,i),a!==null&&(Nt(a,i),La(a))}function GD(a){var i=a.memoizedState,u=0;i!==null&&(u=i.retryLane),Kd(a,u)}function KD(a,i){var u=0;switch(a.tag){case 31:case 13:var f=a.stateNode,C=a.memoizedState;C!==null&&(u=C.retryLane);break;case 19:f=a.stateNode;break;case 22:f=a.stateNode._retryCache;break;default:throw Error(r(314))}f!==null&&f.delete(i),Kd(a,u)}function XD(a,i){return ht(a,i)}var Fu=null,Zs=null,P3=!1,Pu=!1,_3=!1,zo=0;function La(a){a!==Zs&&a.next===null&&(Zs===null?Fu=Zs=a:Zs=Zs.next=a),Pu=!0,P3||(P3=!0,JD())}function gl(a,i){if(!_3&&Pu){_3=!0;do for(var u=!1,f=Fu;f!==null;){if(a!==0){var C=f.pendingLanes;if(C===0)var x=0;else{var k=f.suspendedLanes,F=f.pingedLanes;x=(1<<31-Tt(42|a)+1)-1,x&=C&~(k&~F),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,eh(f,x))}else x=Jt,x=c1(f,f===L1?x:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(x&3)===0||f1(f,x)||(u=!0,eh(f,x));f=f.next}while(u);_3=!1}}function QD(){Xd()}function Xd(){Pu=P3=!1;var a=0;zo!==0&&uL()&&(a=zo);for(var i=Me(),u=null,f=Fu;f!==null;){var C=f.next,x=Qd(f,i);x===0?(f.next=null,u===null?Fu=C:u.next=C,C===null&&(Zs=u)):(u=f,(a!==0||(x&3)!==0)&&(Pu=!0)),f=C}Cn!==0&&Cn!==5||gl(a),zo!==0&&(zo=0)}function Qd(a,i){for(var u=a.suspendedLanes,f=a.pingedLanes,C=a.expirationTimes,x=a.pendingLanes&-62914561;0<x;){var k=31-Tt(x),F=1<<k,G=C[k];G===-1?((F&u)===0||(F&f)!==0)&&(C[k]=Zn(F,i)):G<=i&&(a.expiredLanes|=F),x&=~F}if(i=L1,u=Jt,u=c1(a,a===i?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),f=a.callbackNode,u===0||a===i&&(C1===2||C1===9)||a.cancelPendingCommit!==null)return f!==null&&f!==null&&Ie(f),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||f1(a,u)){if(i=u&-u,i===a.callbackPriority)return i;switch(f!==null&&Ie(f),d1(u)){case 2:case 8:u=he;break;case 32:u=ve;break;case 268435456:u=Ze;break;default:u=ve}return f=Jd.bind(null,a),u=ht(u,f),a.callbackPriority=i,a.callbackNode=u,i}return f!==null&&f!==null&&Ie(f),a.callbackPriority=2,a.callbackNode=null,2}function Jd(a,i){if(Cn!==0&&Cn!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(Nu()&&a.callbackNode!==u)return null;var f=Jt;return f=c1(a,a===L1?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),f===0?null:(Td(a,f,i),Qd(a,Me()),a.callbackNode!=null&&a.callbackNode===u?Jd.bind(null,a):null)}function eh(a,i){if(Nu())return null;Td(a,i,!0)}function JD(){fL(function(){(h1&6)!==0?ht(Y,QD):Xd()})}function I3(){if(zo===0){var a=Es;a===0&&(a=Qt,Qt<<=1,(Qt&261888)===0&&(Qt=256)),zo=a}return zo}function th(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:fs(""+a)}function nh(a,i){var u=i.ownerDocument.createElement("input");return u.name=i.name,u.value=i.value,a.id&&u.setAttribute("form",a.id),i.parentNode.insertBefore(u,i),a=new FormData(a),u.parentNode.removeChild(u),a}function eL(a,i,u,f,C){if(i==="submit"&&u&&u.stateNode===C){var x=th((C[o1]||null).action),k=f.submitter;k&&(i=(i=k[o1]||null)?th(i.formAction):k.getAttribute("formAction"),i!==null&&(x=i,k=null));var F=new Ar("action","action",null,f,C);a.push({event:F,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(zo!==0){var G=k?nh(C,k):new FormData(C);o3(u,{pending:!0,data:G,method:C.method,action:x},null,G)}}else typeof x=="function"&&(F.preventDefault(),G=k?nh(C,k):new FormData(C),o3(u,{pending:!0,data:G,method:C.method,action:x},x,G))},currentTarget:C}]})}}for(var z3=0;z3<b7.length;z3++){var H3=b7[z3],tL=H3.toLowerCase(),nL=H3[0].toUpperCase()+H3.slice(1);na(tL,"on"+nL)}na(B6,"onAnimationEnd"),na(R6,"onAnimationIteration"),na(T6,"onAnimationStart"),na("dblclick","onDoubleClick"),na("focusin","onFocus"),na("focusout","onBlur"),na(vD,"onTransitionRun"),na(yD,"onTransitionStart"),na(xD,"onTransitionCancel"),na(N6,"onTransitionEnd"),vn("onMouseEnter",["mouseout","mouseover"]),vn("onMouseLeave",["mouseout","mouseover"]),vn("onPointerEnter",["pointerout","pointerover"]),vn("onPointerLeave",["pointerout","pointerover"]),Vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ml));function rh(a,i){i=(i&4)!==0;for(var u=0;u<a.length;u++){var f=a[u],C=f.event;f=f.listeners;e:{var x=void 0;if(i)for(var k=f.length-1;0<=k;k--){var F=f[k],G=F.instance,ge=F.currentTarget;if(F=F.listener,G!==x&&C.isPropagationStopped())break e;x=F,C.currentTarget=ge;try{x(C)}catch(je){Q5(je)}C.currentTarget=null,x=G}else for(k=0;k<f.length;k++){if(F=f[k],G=F.instance,ge=F.currentTarget,F=F.listener,G!==x&&C.isPropagationStopped())break e;x=F,C.currentTarget=ge;try{x(C)}catch(je){Q5(je)}C.currentTarget=null,x=G}}}}function qt(a,i){var u=i[mn];u===void 0&&(u=i[mn]=new Set);var f=a+"__bubble";u.has(f)||(ah(i,a,2,!1),u.add(f))}function Z3(a,i,u){var f=0;i&&(f|=4),ah(u,a,f,i)}var _u="_reactListening"+Math.random().toString(36).slice(2);function V3(a){if(!a[_u]){a[_u]=!0,va.forEach(function(u){u!=="selectionchange"&&(rL.has(u)||Z3(u,!1,a),Z3(u,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[_u]||(i[_u]=!0,Z3("selectionchange",!1,i))}}function ah(a,i,u,f){switch(Rh(i)){case 2:var C=OL;break;case 8:C=BL;break;default:C=a4}u=C.bind(null,i,u,a),C=void 0,!O1||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(C=!0),f?C!==void 0?a.addEventListener(i,u,{capture:!0,passive:C}):a.addEventListener(i,u,!0):C!==void 0?a.addEventListener(i,u,{passive:C}):a.addEventListener(i,u,!1)}function W3(a,i,u,f,C){var x=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var k=f.tag;if(k===3||k===4){var F=f.stateNode.containerInfo;if(F===C)break;if(k===4)for(k=f.return;k!==null;){var G=k.tag;if((G===3||G===4)&&k.stateNode.containerInfo===C)return;k=k.return}for(;F!==null;){if(k=hn(F),k===null)return;if(G=k.tag,G===5||G===6||G===26||G===27){f=x=k;continue e}F=F.parentNode}}f=f.return}H2(function(){var ge=x,je=bo(u),Ne=[];e:{var ye=F6.get(a);if(ye!==void 0){var De=Ar,ot=a;switch(a){case"keypress":if(hs(u)===0)break e;case"keydown":case"keyup":De=q5;break;case"focusin":ot="focus",De=Or;break;case"focusout":ot="blur",De=Or;break;case"beforeblur":case"afterblur":De=Or;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":De=V2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":De=W2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":De=C7;break;case B6:case R6:case T6:De=$5;break;case N6:De=X5;break;case"scroll":case"scrollend":De=pi;break;case"wheel":De=m7;break;case"copy":case"cut":case"paste":De=U5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":De=Y5;break;case"toggle":case"beforetoggle":De=A}var St=(i&4)!==0,b1=!St&&(a==="scroll"||a==="scrollend"),le=St?ye!==null?ye+"Capture":null:ye;St=[];for(var ne=ge,Ce;ne!==null;){var Re=ne;if(Ce=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||Ce===null||le===null||(Re=Xr(ne,le),Re!=null&&St.push(vl(ne,Re,Ce))),b1)break;ne=ne.return}0<St.length&&(ye=new De(ye,ot,null,u,je),Ne.push({event:ye,listeners:St}))}}if((i&7)===0){e:{if(ye=a==="mouseover"||a==="pointerover",De=a==="mouseout"||a==="pointerout",ye&&u!==hi&&(ot=u.relatedTarget||u.fromElement)&&(hn(ot)||ot[S1]))break e;if((De||ye)&&(ye=je.window===je?je:(ye=je.ownerDocument)?ye.defaultView||ye.parentWindow:window,De?(ot=u.relatedTarget||u.toElement,De=ge,ot=ot?hn(ot):null,ot!==null&&(b1=s(ot),St=ot.tag,ot!==b1||St!==5&&St!==27&&St!==6)&&(ot=null)):(De=null,ot=ge),De!==ot)){if(St=V2,Re="onMouseLeave",le="onMouseEnter",ne="mouse",(a==="pointerout"||a==="pointerover")&&(St=Y5,Re="onPointerLeave",le="onPointerEnter",ne="pointer"),b1=De==null?ye:kr(De),Ce=ot==null?ye:kr(ot),ye=new St(Re,ne+"leave",De,u,je),ye.target=b1,ye.relatedTarget=Ce,Re=null,hn(je)===ge&&(St=new St(le,ne+"enter",ot,u,je),St.target=Ce,St.relatedTarget=b1,Re=St),b1=Re,De&&ot)t:{for(St=aL,le=De,ne=ot,Ce=0,Re=le;Re;Re=St(Re))Ce++;Re=0;for(var gt=ne;gt;gt=St(gt))Re++;for(;0<Ce-Re;)le=St(le),Ce--;for(;0<Re-Ce;)ne=St(ne),Re--;for(;Ce--;){if(le===ne||ne!==null&&le===ne.alternate){St=le;break t}le=St(le),ne=St(ne)}St=null}else St=null;De!==null&&oh(Ne,ye,De,St,!1),ot!==null&&b1!==null&&oh(Ne,b1,ot,St,!0)}}e:{if(ye=ge?kr(ge):window,De=ye.nodeName&&ye.nodeName.toLowerCase(),De==="select"||De==="input"&&ye.type==="file")var l1=Wn;else if(Wt(ye))if(yn)l1=nr;else{l1=H1;var st=Ye}else De=ye.nodeName,!De||De.toLowerCase()!=="input"||ye.type!=="checkbox"&&ye.type!=="radio"?ge&&wo(ge.elementType)&&(l1=Wn):l1=R1;if(l1&&(l1=l1(a,ge))){J(Ne,l1,u,je);break e}st&&st(a,ye,ge),a==="focusout"&&ge&&ye.type==="number"&&ge.memoizedProps.value!=null&&Yr(ye,"number",ye.value)}switch(st=ge?kr(ge):window,a){case"focusin":(Wt(st)||st.contentEditable==="true")&&(ys=st,y7=ge,q2=null);break;case"focusout":q2=y7=ys=null;break;case"mousedown":x7=!0;break;case"contextmenu":case"mouseup":case"dragend":x7=!1,A6(Ne,u,je);break;case"selectionchange":if(mD)break;case"keydown":case"keyup":A6(Ne,u,je)}var Zt;if(ce)e:{switch(a){case"compositionstart":var e1="onCompositionStart";break e;case"compositionend":e1="onCompositionEnd";break e;case"compositionupdate":e1="onCompositionUpdate";break e}e1=void 0}else Ve?ze(a,u)&&(e1="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(e1="onCompositionStart");e1&&(Oe&&u.locale!=="ko"&&(Ve||e1!=="onCompositionStart"?e1==="onCompositionEnd"&&Ve&&(Zt=ds()):(Sn=je,Cr="value"in Sn?Sn.value:Sn.textContent,Ve=!0)),st=Iu(ge,e1),0<st.length&&(e1=new $2(e1,a,null,u,je),Ne.push({event:e1,listeners:st}),Zt?e1.data=Zt:(Zt=it(u),Zt!==null&&(e1.data=Zt)))),(Zt=de?bt(a,u):yt(a,u))&&(e1=Iu(ge,"onBeforeInput"),0<e1.length&&(st=new $2("onBeforeInput","beforeinput",null,u,je),Ne.push({event:st,listeners:e1}),st.data=Zt)),eL(Ne,a,ge,u,je)}rh(Ne,i)})}function vl(a,i,u){return{instance:a,listener:i,currentTarget:u}}function Iu(a,i){for(var u=i+"Capture",f=[];a!==null;){var C=a,x=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||x===null||(C=Xr(a,u),C!=null&&f.unshift(vl(a,C,x)),C=Xr(a,i),C!=null&&f.push(vl(a,C,x))),a.tag===3)return f;a=a.return}return[]}function aL(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function oh(a,i,u,f,C){for(var x=i._reactName,k=[];u!==null&&u!==f;){var F=u,G=F.alternate,ge=F.stateNode;if(F=F.tag,G!==null&&G===f)break;F!==5&&F!==26&&F!==27||ge===null||(G=ge,C?(ge=Xr(u,x),ge!=null&&k.unshift(vl(u,ge,G))):C||(ge=Xr(u,x),ge!=null&&k.push(vl(u,ge,G)))),u=u.return}k.length!==0&&a.push({event:i,listeners:k})}var oL=/\r\n?/g,iL=/\u0000|\uFFFD/g;function ih(a){return(typeof a=="string"?a:""+a).replace(oL,`
9
+ `).replace(iL,"")}function sh(a,i){return i=ih(i),ih(a)===i}function w1(a,i,u,f,C,x){switch(u){case"children":typeof f=="string"?i==="body"||i==="textarea"&&f===""||Tn(a,f):(typeof f=="number"||typeof f=="bigint")&&i!=="body"&&Tn(a,""+f);break;case"className":Et(a,"class",f);break;case"tabIndex":Et(a,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":Et(a,u,f);break;case"style":z2(a,f,x);break;case"data":if(i!=="object"){Et(a,"data",f);break}case"src":case"href":if(f===""&&(i!=="a"||u!=="href")){a.removeAttribute(u);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){a.removeAttribute(u);break}f=fs(""+f),a.setAttribute(u,f);break;case"action":case"formAction":if(typeof f=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof x=="function"&&(u==="formAction"?(i!=="input"&&w1(a,i,"name",C.name,C,null),w1(a,i,"formEncType",C.formEncType,C,null),w1(a,i,"formMethod",C.formMethod,C,null),w1(a,i,"formTarget",C.formTarget,C,null)):(w1(a,i,"encType",C.encType,C,null),w1(a,i,"method",C.method,C,null),w1(a,i,"target",C.target,C,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){a.removeAttribute(u);break}f=fs(""+f),a.setAttribute(u,f);break;case"onClick":f!=null&&(a.onclick=Kr);break;case"onScroll":f!=null&&qt("scroll",a);break;case"onScrollEnd":f!=null&&qt("scrollend",a);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(u=f.__html,u!=null){if(C.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":a.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){a.removeAttribute("xlink:href");break}u=fs(""+f),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(u,""+f):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":f===!0?a.setAttribute(u,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?a.setAttribute(u,f):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?a.setAttribute(u,f):a.removeAttribute(u);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?a.removeAttribute(u):a.setAttribute(u,f);break;case"popover":qt("beforetoggle",a),qt("toggle",a),Ke(a,"popover",f);break;case"xlinkActuate":vt(a,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":vt(a,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":vt(a,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":vt(a,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":vt(a,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":vt(a,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":vt(a,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":vt(a,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":vt(a,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Ke(a,"is",f);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=s7.get(u)||u,Ke(a,u,f))}}function $3(a,i,u,f,C,x){switch(u){case"style":z2(a,f,x);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(r(61));if(u=f.__html,u!=null){if(C.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof f=="string"?Tn(a,f):(typeof f=="number"||typeof f=="bigint")&&Tn(a,""+f);break;case"onScroll":f!=null&&qt("scroll",a);break;case"onScrollEnd":f!=null&&qt("scrollend",a);break;case"onClick":f!=null&&(a.onclick=Kr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jn.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(C=u.endsWith("Capture"),i=u.slice(2,C?u.length-7:void 0),x=a[o1]||null,x=x!=null?x[u]:null,typeof x=="function"&&a.removeEventListener(i,x,C),typeof f=="function")){typeof x!="function"&&x!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(i,f,C);break e}u in a?a[u]=f:f===!0?a.setAttribute(u,""):Ke(a,u,f)}}}function kn(a,i,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",a),qt("load",a);var f=!1,C=!1,x;for(x in u)if(u.hasOwnProperty(x)){var k=u[x];if(k!=null)switch(x){case"src":f=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:w1(a,i,x,k,u,null)}}C&&w1(a,i,"srcSet",u.srcSet,u,null),f&&w1(a,i,"src",u.src,u,null);return;case"input":qt("invalid",a);var F=x=k=C=null,G=null,ge=null;for(f in u)if(u.hasOwnProperty(f)){var je=u[f];if(je!=null)switch(f){case"name":C=je;break;case"type":k=je;break;case"checked":G=je;break;case"defaultChecked":ge=je;break;case"value":x=je;break;case"defaultValue":F=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(r(137,i));break;default:w1(a,i,f,je,u,null)}}za(a,x,F,G,ge,k,C,!1);return;case"select":qt("invalid",a),f=k=x=null;for(C in u)if(u.hasOwnProperty(C)&&(F=u[C],F!=null))switch(C){case"value":x=F;break;case"defaultValue":k=F;break;case"multiple":f=F;default:w1(a,i,C,F,u,null)}i=x,u=k,a.multiple=!!f,i!=null?Rn(a,!!f,i,!1):u!=null&&Rn(a,!!f,u,!0);return;case"textarea":qt("invalid",a),x=C=f=null;for(k in u)if(u.hasOwnProperty(k)&&(F=u[k],F!=null))switch(k){case"value":f=F;break;case"defaultValue":C=F;break;case"children":x=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(91));break;default:w1(a,i,k,F,u,null)}Gr(a,f,C,x);return;case"option":for(G in u)u.hasOwnProperty(G)&&(f=u[G],f!=null)&&(G==="selected"?a.selected=f&&typeof f!="function"&&typeof f!="symbol":w1(a,i,G,f,u,null));return;case"dialog":qt("beforetoggle",a),qt("toggle",a),qt("cancel",a),qt("close",a);break;case"iframe":case"object":qt("load",a);break;case"video":case"audio":for(f=0;f<ml.length;f++)qt(ml[f],a);break;case"image":qt("error",a),qt("load",a);break;case"details":qt("toggle",a);break;case"embed":case"source":case"link":qt("error",a),qt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ge in u)if(u.hasOwnProperty(ge)&&(f=u[ge],f!=null))switch(ge){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:w1(a,i,ge,f,u,null)}return;default:if(wo(i)){for(je in u)u.hasOwnProperty(je)&&(f=u[je],f!==void 0&&$3(a,i,je,f,u,void 0));return}}for(F in u)u.hasOwnProperty(F)&&(f=u[F],f!=null&&w1(a,i,F,f,u,null))}function sL(a,i,u,f){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,x=null,k=null,F=null,G=null,ge=null,je=null;for(De in u){var Ne=u[De];if(u.hasOwnProperty(De)&&Ne!=null)switch(De){case"checked":break;case"value":break;case"defaultValue":G=Ne;default:f.hasOwnProperty(De)||w1(a,i,De,null,f,Ne)}}for(var ye in f){var De=f[ye];if(Ne=u[ye],f.hasOwnProperty(ye)&&(De!=null||Ne!=null))switch(ye){case"type":x=De;break;case"name":C=De;break;case"checked":ge=De;break;case"defaultChecked":je=De;break;case"value":k=De;break;case"defaultValue":F=De;break;case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(r(137,i));break;default:De!==Ne&&w1(a,i,ye,De,f,Ne)}}jr(a,k,F,G,ge,je,x,C);return;case"select":De=k=F=ye=null;for(x in u)if(G=u[x],u.hasOwnProperty(x)&&G!=null)switch(x){case"value":break;case"multiple":De=G;default:f.hasOwnProperty(x)||w1(a,i,x,null,f,G)}for(C in f)if(x=f[C],G=u[C],f.hasOwnProperty(C)&&(x!=null||G!=null))switch(C){case"value":ye=x;break;case"defaultValue":F=x;break;case"multiple":k=x;default:x!==G&&w1(a,i,C,x,f,G)}i=F,u=k,f=De,ye!=null?Rn(a,!!u,ye,!1):!!f!=!!u&&(i!=null?Rn(a,!!u,i,!0):Rn(a,!!u,u?[]:"",!1));return;case"textarea":De=ye=null;for(F in u)if(C=u[F],u.hasOwnProperty(F)&&C!=null&&!f.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:w1(a,i,F,null,f,C)}for(k in f)if(C=f[k],x=u[k],f.hasOwnProperty(k)&&(C!=null||x!=null))switch(k){case"value":ye=C;break;case"defaultValue":De=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:C!==x&&w1(a,i,k,C,f,x)}Mt(a,ye,De);return;case"option":for(var ot in u)ye=u[ot],u.hasOwnProperty(ot)&&ye!=null&&!f.hasOwnProperty(ot)&&(ot==="selected"?a.selected=!1:w1(a,i,ot,null,f,ye));for(G in f)ye=f[G],De=u[G],f.hasOwnProperty(G)&&ye!==De&&(ye!=null||De!=null)&&(G==="selected"?a.selected=ye&&typeof ye!="function"&&typeof ye!="symbol":w1(a,i,G,ye,f,De));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var St in u)ye=u[St],u.hasOwnProperty(St)&&ye!=null&&!f.hasOwnProperty(St)&&w1(a,i,St,null,f,ye);for(ge in f)if(ye=f[ge],De=u[ge],f.hasOwnProperty(ge)&&ye!==De&&(ye!=null||De!=null))switch(ge){case"children":case"dangerouslySetInnerHTML":if(ye!=null)throw Error(r(137,i));break;default:w1(a,i,ge,ye,f,De)}return;default:if(wo(i)){for(var b1 in u)ye=u[b1],u.hasOwnProperty(b1)&&ye!==void 0&&!f.hasOwnProperty(b1)&&$3(a,i,b1,void 0,f,ye);for(je in f)ye=f[je],De=u[je],!f.hasOwnProperty(je)||ye===De||ye===void 0&&De===void 0||$3(a,i,je,ye,f,De);return}}for(var le in u)ye=u[le],u.hasOwnProperty(le)&&ye!=null&&!f.hasOwnProperty(le)&&w1(a,i,le,null,f,ye);for(Ne in f)ye=f[Ne],De=u[Ne],!f.hasOwnProperty(Ne)||ye===De||ye==null&&De==null||w1(a,i,Ne,ye,f,De)}function lh(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function lL(){if(typeof performance.getEntriesByType=="function"){for(var a=0,i=0,u=performance.getEntriesByType("resource"),f=0;f<u.length;f++){var C=u[f],x=C.transferSize,k=C.initiatorType,F=C.duration;if(x&&F&&lh(k)){for(k=0,F=C.responseEnd,f+=1;f<u.length;f++){var G=u[f],ge=G.startTime;if(ge>F)break;var je=G.transferSize,Ne=G.initiatorType;je&&lh(Ne)&&(G=G.responseEnd,k+=je*(G<F?1:(F-ge)/(G-ge)))}if(--f,i+=8*(x+k)/(C.duration/1e3),a++,10<a)break}}if(0<a)return i/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var U3=null,q3=null;function zu(a){return a.nodeType===9?a:a.ownerDocument}function uh(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ch(a,i){if(a===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&i==="foreignObject"?0:a}function Y3(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var G3=null;function uL(){var a=window.event;return a&&a.type==="popstate"?a===G3?!1:(G3=a,!0):(G3=null,!1)}var fh=typeof setTimeout=="function"?setTimeout:void 0,cL=typeof clearTimeout=="function"?clearTimeout:void 0,dh=typeof Promise=="function"?Promise:void 0,fL=typeof queueMicrotask=="function"?queueMicrotask:typeof dh<"u"?function(a){return dh.resolve(null).then(a).catch(dL)}:fh;function dL(a){setTimeout(function(){throw a})}function Ho(a){return a==="head"}function hh(a,i){var u=i,f=0;do{var C=u.nextSibling;if(a.removeChild(u),C&&C.nodeType===8)if(u=C.data,u==="/$"||u==="/&"){if(f===0){a.removeChild(C),Us(i);return}f--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")f++;else if(u==="html")yl(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,yl(u);for(var x=u.firstChild;x;){var k=x.nextSibling,F=x.nodeName;x[Bn]||F==="SCRIPT"||F==="STYLE"||F==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=k}}else u==="body"&&yl(a.ownerDocument.body);u=C}while(u);Us(i)}function ph(a,i){var u=a;a=0;do{var f=u.nextSibling;if(u.nodeType===1?i?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(i?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),f&&f.nodeType===8)if(u=f.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=f}while(u)}function K3(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var u=i;switch(i=i.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":K3(u),Qn(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function hL(a,i,u,f){for(;a.nodeType===1;){var C=u;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!f&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(f){if(!a[Bn])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(x=a.getAttribute("rel"),x==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(x!==C.rel||a.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||a.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||a.getAttribute("title")!==(C.title==null?null:C.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(x=a.getAttribute("src"),(x!==(C.src==null?null:C.src)||a.getAttribute("type")!==(C.type==null?null:C.type)||a.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&x&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){var x=C.name==null?null:""+C.name;if(C.type==="hidden"&&a.getAttribute("name")===x)return a}else return a;if(a=_r(a.nextSibling),a===null)break}return null}function pL(a,i,u){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=_r(a.nextSibling),a===null))return null;return a}function Ch(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=_r(a.nextSibling),a===null))return null;return a}function X3(a){return a.data==="$?"||a.data==="$~"}function Q3(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function CL(a,i){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=i;else if(a.data!=="$?"||u.readyState!=="loading")i();else{var f=function(){i(),u.removeEventListener("DOMContentLoaded",f)};u.addEventListener("DOMContentLoaded",f),a._reactRetry=f}}function _r(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return a}var J3=null;function gh(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(i===0)return _r(a.nextSibling);i--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||i++}a=a.nextSibling}return null}function mh(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(i===0)return a;i--}else u!=="/$"&&u!=="/&"||i++}a=a.previousSibling}return null}function vh(a,i,u){switch(i=zu(u),a){case"html":if(a=i.documentElement,!a)throw Error(r(452));return a;case"head":if(a=i.head,!a)throw Error(r(453));return a;case"body":if(a=i.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function yl(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);Qn(a)}var Ir=new Map,yh=new Set;function Hu(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var io=Q.d;Q.d={f:gL,r:mL,D:vL,C:yL,L:xL,m:wL,X:SL,S:bL,M:DL};function gL(){var a=io.f(),i=Bu();return a||i}function mL(a){var i=pr(a);i!==null&&i.tag===5&&i.type==="form"?Ff(i):io.r(a)}var Vs=typeof document>"u"?null:document;function xh(a,i,u){var f=Vs;if(f&&typeof i=="string"&&i){var C=y1(i);C='link[rel="'+a+'"][href="'+C+'"]',typeof u=="string"&&(C+='[crossorigin="'+u+'"]'),yh.has(C)||(yh.add(C),a={rel:a,crossOrigin:u,href:i},f.querySelector(C)===null&&(i=f.createElement("link"),kn(i,"link",a),D1(i),f.head.appendChild(i)))}}function vL(a){io.D(a),xh("dns-prefetch",a,null)}function yL(a,i){io.C(a,i),xh("preconnect",a,i)}function xL(a,i,u){io.L(a,i,u);var f=Vs;if(f&&a&&i){var C='link[rel="preload"][as="'+y1(i)+'"]';i==="image"&&u&&u.imageSrcSet?(C+='[imagesrcset="'+y1(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(C+='[imagesizes="'+y1(u.imageSizes)+'"]')):C+='[href="'+y1(a)+'"]';var x=C;switch(i){case"style":x=Ws(a);break;case"script":x=$s(a)}Ir.has(x)||(a=v({rel:"preload",href:i==="image"&&u&&u.imageSrcSet?void 0:a,as:i},u),Ir.set(x,a),f.querySelector(C)!==null||i==="style"&&f.querySelector(xl(x))||i==="script"&&f.querySelector(wl(x))||(i=f.createElement("link"),kn(i,"link",a),D1(i),f.head.appendChild(i)))}}function wL(a,i){io.m(a,i);var u=Vs;if(u&&a){var f=i&&typeof i.as=="string"?i.as:"script",C='link[rel="modulepreload"][as="'+y1(f)+'"][href="'+y1(a)+'"]',x=C;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=$s(a)}if(!Ir.has(x)&&(a=v({rel:"modulepreload",href:a},i),Ir.set(x,a),u.querySelector(C)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(wl(x)))return}f=u.createElement("link"),kn(f,"link",a),D1(f),u.head.appendChild(f)}}}function bL(a,i,u){io.S(a,i,u);var f=Vs;if(f&&a){var C=bn(f).hoistableStyles,x=Ws(a);i=i||"default";var k=C.get(x);if(!k){var F={loading:0,preload:null};if(k=f.querySelector(xl(x)))F.loading=5;else{a=v({rel:"stylesheet",href:a,"data-precedence":i},u),(u=Ir.get(x))&&e4(a,u);var G=k=f.createElement("link");D1(G),kn(G,"link",a),G._p=new Promise(function(ge,je){G.onload=ge,G.onerror=je}),G.addEventListener("load",function(){F.loading|=1}),G.addEventListener("error",function(){F.loading|=2}),F.loading|=4,Zu(k,i,f)}k={type:"stylesheet",instance:k,count:1,state:F},C.set(x,k)}}}function SL(a,i){io.X(a,i);var u=Vs;if(u&&a){var f=bn(u).hoistableScripts,C=$s(a),x=f.get(C);x||(x=u.querySelector(wl(C)),x||(a=v({src:a,async:!0},i),(i=Ir.get(C))&&t4(a,i),x=u.createElement("script"),D1(x),kn(x,"link",a),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(C,x))}}function DL(a,i){io.M(a,i);var u=Vs;if(u&&a){var f=bn(u).hoistableScripts,C=$s(a),x=f.get(C);x||(x=u.querySelector(wl(C)),x||(a=v({src:a,async:!0,type:"module"},i),(i=Ir.get(C))&&t4(a,i),x=u.createElement("script"),D1(x),kn(x,"link",a),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},f.set(C,x))}}function wh(a,i,u,f){var C=(C=We.current)?Hu(C):null;if(!C)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(i=Ws(u.href),u=bn(C).hoistableStyles,f=u.get(i),f||(f={type:"style",instance:null,count:0,state:null},u.set(i,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=Ws(u.href);var x=bn(C).hoistableStyles,k=x.get(a);if(k||(C=C.ownerDocument||C,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(a,k),(x=C.querySelector(xl(a)))&&!x._p&&(k.instance=x,k.state.loading=5),Ir.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Ir.set(a,u),x||LL(C,a,u,k.state))),i&&f===null)throw Error(r(528,""));return k}if(i&&f!==null)throw Error(r(529,""));return null;case"script":return i=u.async,u=u.src,typeof u=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=$s(u),u=bn(C).hoistableScripts,f=u.get(i),f||(f={type:"script",instance:null,count:0,state:null},u.set(i,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Ws(a){return'href="'+y1(a)+'"'}function xl(a){return'link[rel="stylesheet"]['+a+"]"}function bh(a){return v({},a,{"data-precedence":a.precedence,precedence:null})}function LL(a,i,u,f){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?f.loading=1:(i=a.createElement("link"),f.preload=i,i.addEventListener("load",function(){return f.loading|=1}),i.addEventListener("error",function(){return f.loading|=2}),kn(i,"link",u),D1(i),a.head.appendChild(i))}function $s(a){return'[src="'+y1(a)+'"]'}function wl(a){return"script[async]"+a}function Sh(a,i,u){if(i.count++,i.instance===null)switch(i.type){case"style":var f=a.querySelector('style[data-href~="'+y1(u.href)+'"]');if(f)return i.instance=f,D1(f),f;var C=v({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return f=(a.ownerDocument||a).createElement("style"),D1(f),kn(f,"style",C),Zu(f,u.precedence,a),i.instance=f;case"stylesheet":C=Ws(u.href);var x=a.querySelector(xl(C));if(x)return i.state.loading|=4,i.instance=x,D1(x),x;f=bh(u),(C=Ir.get(C))&&e4(f,C),x=(a.ownerDocument||a).createElement("link"),D1(x);var k=x;return k._p=new Promise(function(F,G){k.onload=F,k.onerror=G}),kn(x,"link",f),i.state.loading|=4,Zu(x,u.precedence,a),i.instance=x;case"script":return x=$s(u.src),(C=a.querySelector(wl(x)))?(i.instance=C,D1(C),C):(f=u,(C=Ir.get(x))&&(f=v({},u),t4(f,C)),a=a.ownerDocument||a,C=a.createElement("script"),D1(C),kn(C,"link",f),a.head.appendChild(C),i.instance=C);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(f=i.instance,i.state.loading|=4,Zu(f,u.precedence,a));return i.instance}function Zu(a,i,u){for(var f=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=f.length?f[f.length-1]:null,x=C,k=0;k<f.length;k++){var F=f[k];if(F.dataset.precedence===i)x=F;else if(x!==C)break}x?x.parentNode.insertBefore(a,x.nextSibling):(i=u.nodeType===9?u.head:u,i.insertBefore(a,i.firstChild))}function e4(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function t4(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var Vu=null;function Dh(a,i,u){if(Vu===null){var f=new Map,C=Vu=new Map;C.set(u,f)}else C=Vu,f=C.get(u),f||(f=new Map,C.set(u,f));if(f.has(a))return f;for(f.set(a,null),u=u.getElementsByTagName(a),C=0;C<u.length;C++){var x=u[C];if(!(x[Bn]||x[Dt]||a==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var k=x.getAttribute(i)||"";k=a+k;var F=f.get(k);F?F.push(x):f.set(k,[x])}}return f}function Lh(a,i,u){a=a.ownerDocument||a,a.head.insertBefore(u,i==="title"?a.querySelector("head > title"):null)}function ML(a,i,u){if(u===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(a=i.disabled,typeof i.precedence=="string"&&a==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Mh(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function EL(a,i,u,f){if(u.type==="stylesheet"&&(typeof f.media!="string"||matchMedia(f.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var C=Ws(f.href),x=i.querySelector(xl(C));if(x){i=x._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=Wu.bind(a),i.then(a,a)),u.state.loading|=4,u.instance=x,D1(x);return}x=i.ownerDocument||i,f=bh(f),(C=Ir.get(C))&&e4(f,C),x=x.createElement("link"),D1(x);var k=x;k._p=new Promise(function(F,G){k.onload=F,k.onerror=G}),kn(x,"link",f),u.instance=x}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,i),(i=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=Wu.bind(a),i.addEventListener("load",u),i.addEventListener("error",u))}}var n4=0;function kL(a,i){return a.stylesheets&&a.count===0&&Uu(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var f=setTimeout(function(){if(a.stylesheets&&Uu(a,a.stylesheets),a.unsuspend){var x=a.unsuspend;a.unsuspend=null,x()}},6e4+i);0<a.imgBytes&&n4===0&&(n4=62500*lL());var C=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Uu(a,a.stylesheets),a.unsuspend)){var x=a.unsuspend;a.unsuspend=null,x()}},(a.imgBytes>n4?50:800)+i);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(f),clearTimeout(C)}}:null}function Wu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uu(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var $u=null;function Uu(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,$u=new Map,i.forEach(jL,a),$u=null,Wu.call(a))}function jL(a,i){if(!(i.state.loading&4)){var u=$u.get(a);if(u)var f=u.get(null);else{u=new Map,$u.set(a,u);for(var C=a.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<C.length;x++){var k=C[x];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(u.set(k.dataset.precedence,k),f=k)}f&&u.set(null,f)}C=i.instance,k=C.getAttribute("data-precedence"),x=u.get(k)||f,x===f&&u.set(null,C),u.set(k,C),this.count++,f=Wu.bind(this),C.addEventListener("load",f),C.addEventListener("error",f),x?x.parentNode.insertBefore(C,x.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(C,a.firstChild)),i.state.loading|=4}}var bl={$$typeof:E,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function AL(a,i,u,f,C,x,k,F,G){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=s1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s1(0),this.hiddenUpdates=s1(null),this.identifierPrefix=f,this.onUncaughtError=C,this.onCaughtError=x,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map}function Eh(a,i,u,f,C,x,k,F,G,ge,je,Ne){return a=new AL(a,i,u,k,G,ge,je,Ne,F),i=1,x===!0&&(i|=24),x=mr(3,null,null,i),a.current=x,x.stateNode=a,i=N7(),i.refCount++,a.pooledCache=i,i.refCount++,x.memoizedState={element:f,isDehydrated:u,cache:i},I7(x),a}function kh(a){return a?(a=bs,a):bs}function jh(a,i,u,f,C,x){C=kh(C),f.context===null?f.context=C:f.pendingContext=C,f=Ao(i),f.payload={element:u},x=x===void 0?null:x,x!==null&&(f.callback=x),u=Oo(a,f,i),u!==null&&(lr(u,a,i),el(u,a,i))}function Ah(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<i?u:i}}function r4(a,i){Ah(a,i),(a=a.alternate)&&Ah(a,i)}function Oh(a){if(a.tag===13||a.tag===31){var i=yi(a,67108864);i!==null&&lr(i,a,67108864),r4(a,67108864)}}function Bh(a){if(a.tag===13||a.tag===31){var i=br();i=_t(i);var u=yi(a,i);u!==null&&lr(u,a,i),r4(a,i)}}var qu=!0;function OL(a,i,u,f){var C=H.T;H.T=null;var x=Q.p;try{Q.p=2,a4(a,i,u,f)}finally{Q.p=x,H.T=C}}function BL(a,i,u,f){var C=H.T;H.T=null;var x=Q.p;try{Q.p=8,a4(a,i,u,f)}finally{Q.p=x,H.T=C}}function a4(a,i,u,f){if(qu){var C=o4(f);if(C===null)W3(a,i,f,Yu,u),Th(a,f);else if(TL(C,a,i,u,f))f.stopPropagation();else if(Th(a,f),i&4&&-1<RL.indexOf(a)){for(;C!==null;){var x=pr(C);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var k=ut(x.pendingLanes);if(k!==0){var F=x;for(F.pendingLanes|=2,F.entangledLanes|=2;k;){var G=1<<31-Tt(k);F.entanglements[1]|=G,k&=~G}La(x),(h1&6)===0&&(Au=Me()+500,gl(0))}}break;case 31:case 13:F=yi(x,2),F!==null&&lr(F,x,2),Bu(),r4(x,2)}if(x=o4(f),x===null&&W3(a,i,f,Yu,u),x===C)break;C=x}C!==null&&f.stopPropagation()}else W3(a,i,f,null,u)}}function o4(a){return a=bo(a),i4(a)}var Yu=null;function i4(a){if(Yu=null,a=hn(a),a!==null){var i=s(a);if(i===null)a=null;else{var u=i.tag;if(u===13){if(a=c(i),a!==null)return a;a=null}else if(u===31){if(a=d(i),a!==null)return a;a=null}else if(u===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Yu=a,null}function Rh(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tt()){case Y:return 2;case he:return 8;case ve:case Be:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var s4=!1,Zo=null,Vo=null,Wo=null,Sl=new Map,Dl=new Map,$o=[],RL="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Th(a,i){switch(a){case"focusin":case"focusout":Zo=null;break;case"dragenter":case"dragleave":Vo=null;break;case"mouseover":case"mouseout":Wo=null;break;case"pointerover":case"pointerout":Sl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dl.delete(i.pointerId)}}function Ll(a,i,u,f,C,x){return a===null||a.nativeEvent!==x?(a={blockedOn:i,domEventName:u,eventSystemFlags:f,nativeEvent:x,targetContainers:[C]},i!==null&&(i=pr(i),i!==null&&Oh(i)),a):(a.eventSystemFlags|=f,i=a.targetContainers,C!==null&&i.indexOf(C)===-1&&i.push(C),a)}function TL(a,i,u,f,C){switch(i){case"focusin":return Zo=Ll(Zo,a,i,u,f,C),!0;case"dragenter":return Vo=Ll(Vo,a,i,u,f,C),!0;case"mouseover":return Wo=Ll(Wo,a,i,u,f,C),!0;case"pointerover":var x=C.pointerId;return Sl.set(x,Ll(Sl.get(x)||null,a,i,u,f,C)),!0;case"gotpointercapture":return x=C.pointerId,Dl.set(x,Ll(Dl.get(x)||null,a,i,u,f,C)),!0}return!1}function Nh(a){var i=hn(a.target);if(i!==null){var u=s(i);if(u!==null){if(i=u.tag,i===13){if(i=c(u),i!==null){a.blockedOn=i,dn(a.priority,function(){Bh(u)});return}}else if(i===31){if(i=d(u),i!==null){a.blockedOn=i,dn(a.priority,function(){Bh(u)});return}}else if(i===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Gu(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var u=o4(a.nativeEvent);if(u===null){u=a.nativeEvent;var f=new u.constructor(u.type,u);hi=f,u.target.dispatchEvent(f),hi=null}else return i=pr(u),i!==null&&Oh(i),a.blockedOn=u,!1;i.shift()}return!0}function Fh(a,i,u){Gu(a)&&u.delete(i)}function NL(){s4=!1,Zo!==null&&Gu(Zo)&&(Zo=null),Vo!==null&&Gu(Vo)&&(Vo=null),Wo!==null&&Gu(Wo)&&(Wo=null),Sl.forEach(Fh),Dl.forEach(Fh)}function Ku(a,i){a.blockedOn===i&&(a.blockedOn=null,s4||(s4=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,NL)))}var Xu=null;function Ph(a){Xu!==a&&(Xu=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Xu===a&&(Xu=null);for(var i=0;i<a.length;i+=3){var u=a[i],f=a[i+1],C=a[i+2];if(typeof f!="function"){if(i4(f||u)===null)continue;break}var x=pr(u);x!==null&&(a.splice(i,3),i-=3,o3(x,{pending:!0,data:C,method:u.method,action:f},f,C))}}))}function Us(a){function i(G){return Ku(G,a)}Zo!==null&&Ku(Zo,a),Vo!==null&&Ku(Vo,a),Wo!==null&&Ku(Wo,a),Sl.forEach(i),Dl.forEach(i);for(var u=0;u<$o.length;u++){var f=$o[u];f.blockedOn===a&&(f.blockedOn=null)}for(;0<$o.length&&(u=$o[0],u.blockedOn===null);)Nh(u),u.blockedOn===null&&$o.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(f=0;f<u.length;f+=3){var C=u[f],x=u[f+1],k=C[o1]||null;if(typeof x=="function")k||Ph(u);else if(k){var F=null;if(x&&x.hasAttribute("formAction")){if(C=x,k=x[o1]||null)F=k.formAction;else if(i4(C)!==null)continue}else F=k.action;typeof F=="function"?u[f+1]=F:(u.splice(f,3),f-=3),Ph(u)}}}function _h(){function a(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(k){return C=k})},focusReset:"manual",scroll:"manual"})}function i(){C!==null&&(C(),C=null),f||setTimeout(u,20)}function u(){if(!f&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var f=!1,C=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(u,100),function(){f=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),C!==null&&(C(),C=null)}}}function l4(a){this._internalRoot=a}Qu.prototype.render=l4.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(r(409));var u=i.current,f=br();jh(u,f,a,i,null,null)},Qu.prototype.unmount=l4.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;jh(a.current,2,null,a,null,null),Bu(),i[S1]=null}};function Qu(a){this._internalRoot=a}Qu.prototype.unstable_scheduleHydration=function(a){if(a){var i=Vt();a={blockedOn:null,target:a,priority:i};for(var u=0;u<$o.length&&i!==0&&i<$o[u].priority;u++);$o.splice(u,0,a),u===0&&Nh(a)}};var Ih=t.version;if(Ih!=="19.2.4")throw Error(r(527,Ih,"19.2.4"));Q.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=p(i),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var FL={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ju.isDisabled&&Ju.supportsFiber)try{ue=Ju.inject(FL),at=Ju}catch{}}return El.createRoot=function(a,i){if(!o(a))throw Error(r(299));var u=!1,f="",C=Uf,x=qf,k=Yf;return i!=null&&(i.unstable_strictMode===!0&&(u=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(C=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(k=i.onRecoverableError)),i=Eh(a,1,!1,null,null,u,f,null,C,x,k,_h),a[S1]=i.current,V3(a),new l4(i)},El.hydrateRoot=function(a,i,u){if(!o(a))throw Error(r(299));var f=!1,C="",x=Uf,k=qf,F=Yf,G=null;return u!=null&&(u.unstable_strictMode===!0&&(f=!0),u.identifierPrefix!==void 0&&(C=u.identifierPrefix),u.onUncaughtError!==void 0&&(x=u.onUncaughtError),u.onCaughtError!==void 0&&(k=u.onCaughtError),u.onRecoverableError!==void 0&&(F=u.onRecoverableError),u.formState!==void 0&&(G=u.formState)),i=Eh(a,1,!0,i,u??null,f,C,G,x,k,F,_h),i.context=kh(null),u=i.current,f=br(),f=_t(f),C=Ao(f),C.callback=null,Oo(u,C,f),u=f,i.current.lanes=u,Nt(i,u),La(i),a[S1]=i.current,V3(a),new Qu(i)},El.version="19.2.4",El}var Gh;function UL(){if(Gh)return f4.exports;Gh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),f4.exports=$L(),f4.exports}var qL=UL(),M5=cv();const fv=L5(M5);function Kh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Lc(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Kh(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Kh(e[o],null)}}}}function Xt(...e){return g.useCallback(Lc(...e),e)}function w2(e){const t=YL(e),n=g.forwardRef((r,o)=>{const{children:s,...c}=r,d=g.Children.toArray(s),h=d.find(KL);if(h){const p=h.props.children,m=d.map(v=>v===h?g.Children.count(p)>1?g.Children.only(null):g.isValidElement(p)?p.props.children:null:v);return l.jsx(t,{...c,ref:o,children:g.isValidElement(p)?g.cloneElement(p,void 0,m):null})}return l.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function YL(e){const t=g.forwardRef((n,r)=>{const{children:o,...s}=n;if(g.isValidElement(o)){const c=QL(o),d=XL(s,o.props);return o.type!==g.Fragment&&(d.ref=r?Lc(r,c):c),g.cloneElement(o,d)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dv=Symbol("radix.slottable");function GL(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=dv,t}function KL(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dv}function XL(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...d)=>{const h=s(...d);return o(...d),h}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function QL(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var JL=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pt=JL.reduce((e,t)=>{const n=w2(`Primitive.${t}`),r=g.forwardRef((o,s)=>{const{asChild:c,...d}=o,h=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(h,{...d,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hv(e,t){e&&M5.flushSync(()=>e.dispatchEvent(t))}var pv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eM="VisuallyHidden",Cv=g.forwardRef((e,t)=>l.jsx(Pt.span,{...e,ref:t,style:{...pv,...e.style}}));Cv.displayName=eM;var tM=Cv;function nM(e,t){const n=g.createContext(t),r=s=>{const{children:c,...d}=s,h=g.useMemo(()=>d,Object.values(d));return l.jsx(n.Provider,{value:h,children:c})};r.displayName=e+"Provider";function o(s){const c=g.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Ca(e,t=[]){let n=[];function r(s,c){const d=g.createContext(c),h=n.length;n=[...n,c];const p=v=>{const{scope:y,children:b,...D}=v,S=y?.[e]?.[h]||d,L=g.useMemo(()=>D,Object.values(D));return l.jsx(S.Provider,{value:L,children:b})};p.displayName=s+"Provider";function m(v,y){const b=y?.[e]?.[h]||d,D=g.useContext(b);if(D)return D;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${s}\``)}return[p,m]}const o=()=>{const s=n.map(c=>g.createContext(c));return function(d){const h=d?.[e]||s;return g.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return o.scopeName=e,[r,rM(o,...t)]}function rM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=r.reduce((d,{useScope:h,scopeName:p})=>{const v=h(s)[`__scope${p}`];return{...d,...v}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Mc(e){const t=e+"CollectionProvider",[n,r]=Ca(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=S=>{const{scope:L,children:M}=S,w=et.useRef(null),E=et.useRef(new Map).current;return l.jsx(o,{scope:L,itemMap:E,collectionRef:w,children:M})};c.displayName=t;const d=e+"CollectionSlot",h=w2(d),p=et.forwardRef((S,L)=>{const{scope:M,children:w}=S,E=s(d,M),O=Xt(L,E.collectionRef);return l.jsx(h,{ref:O,children:w})});p.displayName=d;const m=e+"CollectionItemSlot",v="data-radix-collection-item",y=w2(m),b=et.forwardRef((S,L)=>{const{scope:M,children:w,...E}=S,O=et.useRef(null),B=Xt(L,O),T=s(m,M);return et.useEffect(()=>(T.itemMap.set(O,{ref:O,...E}),()=>{T.itemMap.delete(O)})),l.jsx(y,{[v]:"",ref:B,children:w})});b.displayName=m;function D(S){const L=s(e+"CollectionConsumer",S);return et.useCallback(()=>{const w=L.collectionRef.current;if(!w)return[];const E=Array.from(w.querySelectorAll(`[${v}]`));return Array.from(L.itemMap.values()).sort((T,P)=>E.indexOf(T.ref.current)-E.indexOf(P.ref.current))},[L.collectionRef,L.itemMap])}return[{Provider:c,Slot:p,ItemSlot:b},D,r]}function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}var In=globalThis?.document?g.useLayoutEffect:()=>{},aM=uv[" useInsertionEffect ".trim().toString()]||In;function Ta({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=oM({defaultProp:t,onChange:n}),d=e!==void 0,h=d?e:o;{const m=g.useRef(e!==void 0);g.useEffect(()=>{const v=m.current;v!==d&&console.warn(`${r} is changing from ${v?"controlled":"uncontrolled"} to ${d?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=d},[d,r])}const p=g.useCallback(m=>{if(d){const v=iM(m)?m(e):m;v!==e&&c.current?.(v)}else s(m)},[d,e,s,c]);return[h,p]}function oM({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),s=g.useRef(t);return aM(()=>{s.current=t},[t]),g.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function iM(e){return typeof e=="function"}function sM(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Pa=e=>{const{present:t,children:n}=e,r=lM(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),s=Xt(r.ref,uM(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:s}):null};Pa.displayName="Presence";function lM(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),s=g.useRef("none"),c=e?"mounted":"unmounted",[d,h]=sM(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const p=t0(r.current);s.current=d==="mounted"?p:"none"},[d]),In(()=>{const p=r.current,m=o.current;if(m!==e){const y=s.current,b=t0(p);e?h("MOUNT"):b==="none"||p?.display==="none"?h("UNMOUNT"):h(m&&y!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),In(()=>{if(t){let p;const m=t.ownerDocument.defaultView??window,v=b=>{const S=t0(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&S&&(h("ANIMATION_END"),!o.current)){const L=t.style.animationFillMode;t.style.animationFillMode="forwards",p=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=L)})}},y=b=>{b.target===t&&(s.current=t0(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{m.clearTimeout(p),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:g.useCallback(p=>{r.current=p?getComputedStyle(p):null,n(p)},[])}}function t0(e){return e?.animationName||"none"}function uM(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cM=uv[" useId ".trim().toString()]||(()=>{}),fM=0;function Zr(e){const[t,n]=g.useState(cM());return In(()=>{n(r=>r??String(fM++))},[e]),t?`radix-${t}`:""}var dM=g.createContext(void 0);function Ec(e){const t=g.useContext(dM);return e||t||"ltr"}function $r(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>t.current?.(...n),[])}function hM(e,t=globalThis?.document){const n=$r(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var pM="DismissableLayer",f8="dismissableLayer.update",CM="dismissableLayer.pointerDownOutside",gM="dismissableLayer.focusOutside",Xh,gv=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E5=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...h}=e,p=g.useContext(gv),[m,v]=g.useState(null),y=m?.ownerDocument??globalThis?.document,[,b]=g.useState({}),D=Xt(t,P=>v(P)),S=Array.from(p.layers),[L]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),M=S.indexOf(L),w=m?S.indexOf(m):-1,E=p.layersWithOutsidePointerEventsDisabled.size>0,O=w>=M,B=yM(P=>{const _=P.target,Z=[...p.branches].some(K=>K.contains(_));!O||Z||(o?.(P),c?.(P),P.defaultPrevented||d?.())},y),T=xM(P=>{const _=P.target;[...p.branches].some(K=>K.contains(_))||(s?.(P),c?.(P),P.defaultPrevented||d?.())},y);return hM(P=>{w===p.layers.size-1&&(r?.(P),!P.defaultPrevented&&d&&(P.preventDefault(),d()))},y),g.useEffect(()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Xh=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),Qh(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Xh)}},[m,y,n,p]),g.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),Qh())},[m,p]),g.useEffect(()=>{const P=()=>b({});return document.addEventListener(f8,P),()=>document.removeEventListener(f8,P)},[]),l.jsx(Pt.div,{...h,ref:D,style:{pointerEvents:E?O?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,B.onPointerDownCapture)})});E5.displayName=pM;var mM="DismissableLayerBranch",vM=g.forwardRef((e,t)=>{const n=g.useContext(gv),r=g.useRef(null),o=Xt(t,r);return g.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l.jsx(Pt.div,{...e,ref:o})});vM.displayName=mM;function yM(e,t=globalThis?.document){const n=$r(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const s=d=>{if(d.target&&!r.current){let h=function(){mv(CM,n,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function xM(e,t=globalThis?.document){const n=$r(e),r=g.useRef(!1);return g.useEffect(()=>{const o=s=>{s.target&&!r.current&&mv(gM,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Qh(){const e=new CustomEvent(f8);document.dispatchEvent(e)}function mv(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?hv(o,s):o.dispatchEvent(s)}var C4="focusScope.autoFocusOnMount",g4="focusScope.autoFocusOnUnmount",Jh={bubbles:!1,cancelable:!0},wM="FocusScope",kc=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[d,h]=g.useState(null),p=$r(o),m=$r(s),v=g.useRef(null),y=Xt(t,S=>h(S)),b=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let S=function(E){if(b.paused||!d)return;const O=E.target;d.contains(O)?v.current=O:Xo(v.current,{select:!0})},L=function(E){if(b.paused||!d)return;const O=E.relatedTarget;O!==null&&(d.contains(O)||Xo(v.current,{select:!0}))},M=function(E){if(document.activeElement===document.body)for(const B of E)B.removedNodes.length>0&&Xo(d)};document.addEventListener("focusin",S),document.addEventListener("focusout",L);const w=new MutationObserver(M);return d&&w.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",L),w.disconnect()}}},[r,d,b.paused]),g.useEffect(()=>{if(d){tp.add(b);const S=document.activeElement;if(!d.contains(S)){const M=new CustomEvent(C4,Jh);d.addEventListener(C4,p),d.dispatchEvent(M),M.defaultPrevented||(bM(EM(vv(d)),{select:!0}),document.activeElement===S&&Xo(d))}return()=>{d.removeEventListener(C4,p),setTimeout(()=>{const M=new CustomEvent(g4,Jh);d.addEventListener(g4,m),d.dispatchEvent(M),M.defaultPrevented||Xo(S??document.body,{select:!0}),d.removeEventListener(g4,m),tp.remove(b)},0)}}},[d,p,m,b]);const D=g.useCallback(S=>{if(!n&&!r||b.paused)return;const L=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,M=document.activeElement;if(L&&M){const w=S.currentTarget,[E,O]=SM(w);E&&O?!S.shiftKey&&M===O?(S.preventDefault(),n&&Xo(E,{select:!0})):S.shiftKey&&M===E&&(S.preventDefault(),n&&Xo(O,{select:!0})):M===w&&S.preventDefault()}},[n,r,b.paused]);return l.jsx(Pt.div,{tabIndex:-1,...c,ref:y,onKeyDown:D})});kc.displayName=wM;function bM(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Xo(r,{select:t}),document.activeElement!==n)return}function SM(e){const t=vv(e),n=ep(t,e),r=ep(t.reverse(),e);return[n,r]}function vv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ep(e,t){for(const n of e)if(!DM(n,{upTo:t}))return n}function DM(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function LM(e){return e instanceof HTMLInputElement&&"select"in e}function Xo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&LM(e)&&t&&e.select()}}var tp=MM();function MM(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=np(e,t),e.unshift(t)},remove(t){e=np(e,t),e[0]?.resume()}}}function np(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function EM(e){return e.filter(t=>t.tagName!=="A")}var kM="Portal",k5=g.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=g.useState(!1);In(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?fv.createPortal(l.jsx(Pt.div,{...r,ref:t}),c):null});k5.displayName=kM;var m4=0;function i9(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rp()),document.body.insertAdjacentElement("beforeend",e[1]??rp()),m4++,()=>{m4===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),m4--}},[])}function rp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Aa=function(){return Aa=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Aa.apply(this,arguments)};function yv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function jM(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var R0="right-scroll-bar-position",T0="width-before-scroll-bar",AM="with-scroll-bars-hidden",OM="--removed-body-scroll-bar-size";function v4(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BM(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var RM=typeof window<"u"?g.useLayoutEffect:g.useEffect,ap=new WeakMap;function TM(e,t){var n=BM(null,function(r){return e.forEach(function(o){return v4(o,r)})});return RM(function(){var r=ap.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(d){s.has(d)||v4(d,null)}),s.forEach(function(d){o.has(d)||v4(d,c)})}ap.set(n,e)},[e]),n}function NM(e){return e}function FM(e,t){t===void 0&&(t=NM);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var c=t(s,r);return n.push(c),function(){n=n.filter(function(d){return d!==c})}},assignSyncMedium:function(s){for(r=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(d){return s(d)},filter:function(){return n}}},assignMedium:function(s){r=!0;var c=[];if(n.length){var d=n;n=[],d.forEach(s),c=n}var h=function(){var m=c;c=[],m.forEach(s)},p=function(){return Promise.resolve().then(h)};p(),n={push:function(m){c.push(m),p()},filter:function(m){return c=c.filter(m),n}}}};return o}function PM(e){e===void 0&&(e={});var t=FM(null);return t.options=Aa({async:!0,ssr:!1},e),t}var xv=function(e){var t=e.sideCar,n=yv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Aa({},n))};xv.isSideCarExport=!0;function _M(e,t){return e.useMedium(t),xv}var wv=PM(),y4=function(){},jc=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:y4,onWheelCapture:y4,onTouchMoveCapture:y4}),o=r[0],s=r[1],c=e.forwardProps,d=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,b=e.noRelative,D=e.noIsolation,S=e.inert,L=e.allowPinchZoom,M=e.as,w=M===void 0?"div":M,E=e.gapMode,O=yv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=y,T=TM([n,t]),P=Aa(Aa({},O),o);return g.createElement(g.Fragment,null,m&&g.createElement(B,{sideCar:wv,removeScrollBar:p,shards:v,noRelative:b,noIsolation:D,inert:S,setCallbacks:s,allowPinchZoom:!!L,lockRef:n,gapMode:E}),c?g.cloneElement(g.Children.only(d),Aa(Aa({},P),{ref:T})):g.createElement(w,Aa({},P,{className:h,ref:T}),d))});jc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jc.classNames={fullWidth:T0,zeroRight:R0};var IM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=IM();return t&&e.setAttribute("nonce",t),e}function HM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var VM=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zM())&&(HM(t,n),ZM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WM=function(){var e=VM();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bv=function(){var e=WM(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},$M={left:0,top:0,right:0,gap:0},x4=function(e){return parseInt(e||"",10)||0},UM=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[x4(n),x4(r),x4(o)]},qM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $M;var t=UM(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},YM=bv(),h2="data-scroll-locked",GM=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,d=e.gap;return n===void 0&&(n="margin"),`
10
+ .`.concat(AM,` {
11
+ overflow: hidden `).concat(r,`;
12
+ padding-right: `).concat(d,"px ").concat(r,`;
13
+ }
14
+ body[`).concat(h2,`] {
15
+ overflow: hidden `).concat(r,`;
16
+ overscroll-behavior: contain;
17
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
18
+ padding-left: `.concat(o,`px;
19
+ padding-top: `).concat(s,`px;
20
+ padding-right: `).concat(c,`px;
21
+ margin-left:0;
22
+ margin-top:0;
23
+ margin-right: `).concat(d,"px ").concat(r,`;
24
+ `),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
25
+ }
26
+
27
+ .`).concat(R0,` {
28
+ right: `).concat(d,"px ").concat(r,`;
29
+ }
30
+
31
+ .`).concat(T0,` {
32
+ margin-right: `).concat(d,"px ").concat(r,`;
33
+ }
34
+
35
+ .`).concat(R0," .").concat(R0,` {
36
+ right: 0 `).concat(r,`;
37
+ }
38
+
39
+ .`).concat(T0," .").concat(T0,` {
40
+ margin-right: 0 `).concat(r,`;
41
+ }
42
+
43
+ body[`).concat(h2,`] {
44
+ `).concat(OM,": ").concat(d,`px;
45
+ }
46
+ `)},op=function(){var e=parseInt(document.body.getAttribute(h2)||"0",10);return isFinite(e)?e:0},KM=function(){g.useEffect(function(){return document.body.setAttribute(h2,(op()+1).toString()),function(){var e=op()-1;e<=0?document.body.removeAttribute(h2):document.body.setAttribute(h2,e.toString())}},[])},XM=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;KM();var s=g.useMemo(function(){return qM(o)},[o]);return g.createElement(YM,{styles:GM(s,!t,o,n?"":"!important")})},d8=!1;if(typeof window<"u")try{var n0=Object.defineProperty({},"passive",{get:function(){return d8=!0,!0}});window.addEventListener("test",n0,n0),window.removeEventListener("test",n0,n0)}catch{d8=!1}var qs=d8?{passive:!1}:!1,QM=function(e){return e.tagName==="TEXTAREA"},Sv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!QM(e)&&n[t]==="visible")},JM=function(e){return Sv(e,"overflowY")},eE=function(e){return Sv(e,"overflowX")},ip=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Dv(e,r);if(o){var s=Lv(e,r),c=s[1],d=s[2];if(c>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Dv=function(e,t){return e==="v"?JM(t):eE(t)},Lv=function(e,t){return e==="v"?tE(t):nE(t)},rE=function(e,t){return e==="h"&&t==="rtl"?-1:1},aE=function(e,t,n,r,o){var s=rE(e,window.getComputedStyle(t).direction),c=s*r,d=n.target,h=t.contains(d),p=!1,m=c>0,v=0,y=0;do{if(!d)break;var b=Lv(e,d),D=b[0],S=b[1],L=b[2],M=S-L-s*D;(D||M)&&Dv(e,d)&&(v+=M,y+=D);var w=d.parentNode;d=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!h&&d!==document.body||h&&(t.contains(d)||t===d));return(m&&Math.abs(v)<1||!m&&Math.abs(y)<1)&&(p=!0),p},r0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sp=function(e){return[e.deltaX,e.deltaY]},lp=function(e){return e&&"current"in e?e.current:e},oE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},iE=function(e){return`
47
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
48
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
49
+ `)},sE=0,Ys=[];function lE(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(sE++)[0],s=g.useState(bv)[0],c=g.useRef(e);g.useEffect(function(){c.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=jM([e.lockRef.current],(e.shards||[]).map(lp),!0).filter(Boolean);return S.forEach(function(L){return L.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var d=g.useCallback(function(S,L){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!c.current.allowPinchZoom;var M=r0(S),w=n.current,E="deltaX"in S?S.deltaX:w[0]-M[0],O="deltaY"in S?S.deltaY:w[1]-M[1],B,T=S.target,P=Math.abs(E)>Math.abs(O)?"h":"v";if("touches"in S&&P==="h"&&T.type==="range")return!1;var _=window.getSelection(),Z=_&&_.anchorNode,K=Z?Z===T||Z.contains(T):!1;if(K)return!1;var W=ip(P,T);if(!W)return!0;if(W?B=P:(B=P==="v"?"h":"v",W=ip(P,T)),!W)return!1;if(!r.current&&"changedTouches"in S&&(E||O)&&(r.current=B),!B)return!0;var z=r.current||B;return aE(z,L,S,z==="h"?E:O)},[]),h=g.useCallback(function(S){var L=S;if(!(!Ys.length||Ys[Ys.length-1]!==s)){var M="deltaY"in L?sp(L):r0(L),w=t.current.filter(function(B){return B.name===L.type&&(B.target===L.target||L.target===B.shadowParent)&&oE(B.delta,M)})[0];if(w&&w.should){L.cancelable&&L.preventDefault();return}if(!w){var E=(c.current.shards||[]).map(lp).filter(Boolean).filter(function(B){return B.contains(L.target)}),O=E.length>0?d(L,E[0]):!c.current.noIsolation;O&&L.cancelable&&L.preventDefault()}}},[]),p=g.useCallback(function(S,L,M,w){var E={name:S,delta:L,target:M,should:w,shadowParent:uE(M)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(O){return O!==E})},1)},[]),m=g.useCallback(function(S){n.current=r0(S),r.current=void 0},[]),v=g.useCallback(function(S){p(S.type,sp(S),S.target,d(S,e.lockRef.current))},[]),y=g.useCallback(function(S){p(S.type,r0(S),S.target,d(S,e.lockRef.current))},[]);g.useEffect(function(){return Ys.push(s),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:y}),document.addEventListener("wheel",h,qs),document.addEventListener("touchmove",h,qs),document.addEventListener("touchstart",m,qs),function(){Ys=Ys.filter(function(S){return S!==s}),document.removeEventListener("wheel",h,qs),document.removeEventListener("touchmove",h,qs),document.removeEventListener("touchstart",m,qs)}},[]);var b=e.removeScrollBar,D=e.inert;return g.createElement(g.Fragment,null,D?g.createElement(s,{styles:iE(o)}):null,b?g.createElement(XM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cE=_M(wv,lE);var Ac=g.forwardRef(function(e,t){return g.createElement(jc,Aa({},e,{ref:t,sideCar:cE}))});Ac.classNames=jc.classNames;var fE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Gs=new WeakMap,a0=new WeakMap,o0={},w4=0,Mv=function(e){return e&&(e.host||Mv(e.parentNode))},dE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Mv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hE=function(e,t,n,r){var o=dE(t,Array.isArray(e)?e:[e]);o0[n]||(o0[n]=new WeakMap);var s=o0[n],c=[],d=new Set,h=new Set(o),p=function(v){!v||d.has(v)||(d.add(v),p(v.parentNode))};o.forEach(p);var m=function(v){!v||h.has(v)||Array.prototype.forEach.call(v.children,function(y){if(d.has(y))m(y);else try{var b=y.getAttribute(r),D=b!==null&&b!=="false",S=(Gs.get(y)||0)+1,L=(s.get(y)||0)+1;Gs.set(y,S),s.set(y,L),c.push(y),S===1&&D&&a0.set(y,!0),L===1&&y.setAttribute(n,"true"),D||y.setAttribute(r,"true")}catch(M){console.error("aria-hidden: cannot operate on ",y,M)}})};return m(t),d.clear(),w4++,function(){c.forEach(function(v){var y=Gs.get(v)-1,b=s.get(v)-1;Gs.set(v,y),s.set(v,b),y||(a0.has(v)||v.removeAttribute(r),a0.delete(v)),b||v.removeAttribute(n)}),w4--,w4||(Gs=new WeakMap,Gs=new WeakMap,a0=new WeakMap,o0={})}},s9=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=fE(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),hE(r,o,n,"aria-hidden")):function(){return null}},Oc="Dialog",[Ev]=Ca(Oc),[pE,ga]=Ev(Oc),kv=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,d=g.useRef(null),h=g.useRef(null),[p,m]=Ta({prop:r,defaultProp:o??!1,onChange:s,caller:Oc});return l.jsx(pE,{scope:t,triggerRef:d,contentRef:h,contentId:Zr(),titleId:Zr(),descriptionId:Zr(),open:p,onOpenChange:m,onOpenToggle:g.useCallback(()=>m(v=>!v),[m]),modal:c,children:n})};kv.displayName=Oc;var jv="DialogTrigger",Av=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ga(jv,n),s=Xt(t,o.triggerRef);return l.jsx(Pt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":c9(o.open),...r,ref:s,onClick:Je(e.onClick,o.onOpenToggle)})});Av.displayName=jv;var l9="DialogPortal",[CE,Ov]=Ev(l9,{forceMount:void 0}),Bv=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ga(l9,t);return l.jsx(CE,{scope:t,forceMount:n,children:g.Children.map(r,c=>l.jsx(Pa,{present:n||s.open,children:l.jsx(k5,{asChild:!0,container:o,children:c})}))})};Bv.displayName=l9;var $0="DialogOverlay",Rv=g.forwardRef((e,t)=>{const n=Ov($0,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ga($0,e.__scopeDialog);return s.modal?l.jsx(Pa,{present:r||s.open,children:l.jsx(mE,{...o,ref:t})}):null});Rv.displayName=$0;var gE=w2("DialogOverlay.RemoveScroll"),mE=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ga($0,n);return l.jsx(Ac,{as:gE,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(Pt.div,{"data-state":c9(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ki="DialogContent",Tv=g.forwardRef((e,t)=>{const n=Ov(Ki,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ga(Ki,e.__scopeDialog);return l.jsx(Pa,{present:r||s.open,children:s.modal?l.jsx(vE,{...o,ref:t}):l.jsx(yE,{...o,ref:t})})});Tv.displayName=Ki;var vE=g.forwardRef((e,t)=>{const n=ga(Ki,e.__scopeDialog),r=g.useRef(null),o=Xt(t,n.contentRef,r);return g.useEffect(()=>{const s=r.current;if(s)return s9(s)},[]),l.jsx(Nv,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0;(c.button===2||d)&&s.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,s=>s.preventDefault())})}),yE=g.forwardRef((e,t)=>{const n=ga(Ki,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return l.jsx(Nv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Nv=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,d=ga(Ki,n),h=g.useRef(null),p=Xt(t,h);return i9(),l.jsxs(l.Fragment,{children:[l.jsx(kc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:l.jsx(E5,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":c9(d.open),...c,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(xE,{titleId:d.titleId}),l.jsx(bE,{contentRef:h,descriptionId:d.descriptionId})]})]})}),u9="DialogTitle",Fv=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ga(u9,n);return l.jsx(Pt.h2,{id:o.titleId,...r,ref:t})});Fv.displayName=u9;var Pv="DialogDescription",_v=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ga(Pv,n);return l.jsx(Pt.p,{id:o.descriptionId,...r,ref:t})});_v.displayName=Pv;var Iv="DialogClose",zv=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ga(Iv,n);return l.jsx(Pt.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>o.onOpenChange(!1))})});zv.displayName=Iv;function c9(e){return e?"open":"closed"}var Hv="DialogTitleWarning",[dY,Zv]=nM(Hv,{contentName:Ki,titleName:u9,docsSlug:"dialog"}),xE=({titleId:e})=>{const t=Zv(Hv),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
50
+
51
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
52
+
53
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},wE="DialogDescriptionWarning",bE=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zv(wE).contentName}}.`;return g.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},SE=kv,DE=Av,LE=Bv,ME=Rv,EE=Tv,kE=Fv,jE=_v,f9=zv;function d9(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function h9(e){const[t,n]=g.useState(void 0);return In(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,d;if("borderBoxSize"in s){const h=s.borderBoxSize,p=Array.isArray(h)?h[0]:h;c=p.inlineSize,d=p.blockSize}else c=e.offsetWidth,d=e.offsetHeight;n({width:c,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const AE=["top","right","bottom","left"],ii=Math.min,Dr=Math.max,U0=Math.round,i0=Math.floor,Ra=e=>({x:e,y:e}),OE={left:"right",right:"left",bottom:"top",top:"bottom"},BE={start:"end",end:"start"};function h8(e,t,n){return Dr(e,ii(t,n))}function mo(e,t){return typeof e=="function"?e(t):e}function vo(e){return e.split("-")[0]}function k2(e){return e.split("-")[1]}function p9(e){return e==="x"?"y":"x"}function C9(e){return e==="y"?"height":"width"}const RE=new Set(["top","bottom"]);function Oa(e){return RE.has(vo(e))?"y":"x"}function g9(e){return p9(Oa(e))}function TE(e,t,n){n===void 0&&(n=!1);const r=k2(e),o=g9(e),s=C9(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=q0(c)),[c,q0(c)]}function NE(e){const t=q0(e);return[p8(e),t,p8(t)]}function p8(e){return e.replace(/start|end/g,t=>BE[t])}const up=["left","right"],cp=["right","left"],FE=["top","bottom"],PE=["bottom","top"];function _E(e,t,n){switch(e){case"top":case"bottom":return n?t?cp:up:t?up:cp;case"left":case"right":return t?FE:PE;default:return[]}}function IE(e,t,n,r){const o=k2(e);let s=_E(vo(e),n==="start",r);return o&&(s=s.map(c=>c+"-"+o),t&&(s=s.concat(s.map(p8)))),s}function q0(e){return e.replace(/left|right|bottom|top/g,t=>OE[t])}function zE(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vv(e){return typeof e!="number"?zE(e):{top:e,right:e,bottom:e,left:e}}function Y0(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function fp(e,t,n){let{reference:r,floating:o}=e;const s=Oa(t),c=g9(t),d=C9(c),h=vo(t),p=s==="y",m=r.x+r.width/2-o.width/2,v=r.y+r.height/2-o.height/2,y=r[d]/2-o[d]/2;let b;switch(h){case"top":b={x:m,y:r.y-o.height};break;case"bottom":b={x:m,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:v};break;case"left":b={x:r.x-o.width,y:v};break;default:b={x:r.x,y:r.y}}switch(k2(t)){case"start":b[c]-=y*(n&&p?-1:1);break;case"end":b[c]+=y*(n&&p?-1:1);break}return b}async function HE(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:c,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:v="floating",altBoundary:y=!1,padding:b=0}=mo(t,e),D=Vv(b),L=d[y?v==="floating"?"reference":"floating":v],M=Y0(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(L)))==null||n?L:L.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:h})),w=v==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),O=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},B=Y0(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:w,offsetParent:E,strategy:h}):w);return{top:(M.top-B.top+D.top)/O.y,bottom:(B.bottom-M.bottom+D.bottom)/O.y,left:(M.left-B.left+D.left)/O.x,right:(B.right-M.right+D.right)/O.x}}const ZE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c}=n,d=s.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:v}=fp(p,r,h),y=r,b={},D=0;for(let L=0;L<d.length;L++){var S;const{name:M,fn:w}=d[L],{x:E,y:O,data:B,reset:T}=await w({x:m,y:v,initialPlacement:r,placement:y,strategy:o,middlewareData:b,rects:p,platform:{...c,detectOverflow:(S=c.detectOverflow)!=null?S:HE},elements:{reference:e,floating:t}});m=E??m,v=O??v,b={...b,[M]:{...b[M],...B}},T&&D<=50&&(D++,typeof T=="object"&&(T.placement&&(y=T.placement),T.rects&&(p=T.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:m,y:v}=fp(p,y,h)),L=-1)}return{x:m,y:v,placement:y,strategy:o,middlewareData:b}},VE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:c,elements:d,middlewareData:h}=t,{element:p,padding:m=0}=mo(e,t)||{};if(p==null)return{};const v=Vv(m),y={x:n,y:r},b=g9(o),D=C9(b),S=await c.getDimensions(p),L=b==="y",M=L?"top":"left",w=L?"bottom":"right",E=L?"clientHeight":"clientWidth",O=s.reference[D]+s.reference[b]-y[b]-s.floating[D],B=y[b]-s.reference[b],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p));let P=T?T[E]:0;(!P||!await(c.isElement==null?void 0:c.isElement(T)))&&(P=d.floating[E]||s.floating[D]);const _=O/2-B/2,Z=P/2-S[D]/2-1,K=ii(v[M],Z),W=ii(v[w],Z),z=K,q=P-S[D]-W,te=P/2-S[D]/2+_,X=h8(z,te,q),H=!h.arrow&&k2(o)!=null&&te!==X&&s.reference[D]/2-(te<z?K:W)-S[D]/2<0,Q=H?te<z?te-z:te-q:0;return{[b]:y[b]+Q,data:{[b]:X,centerOffset:te-X-Q,...H&&{alignmentOffset:Q}},reset:H}}}),WE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:c,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:m=!0,crossAxis:v=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:S=!0,...L}=mo(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const M=vo(o),w=Oa(d),E=vo(d)===d,O=await(h.isRTL==null?void 0:h.isRTL(p.floating)),B=y||(E||!S?[q0(d)]:NE(d)),T=D!=="none";!y&&T&&B.push(...IE(d,S,D,O));const P=[d,...B],_=await h.detectOverflow(t,L),Z=[];let K=((r=s.flip)==null?void 0:r.overflows)||[];if(m&&Z.push(_[M]),v){const te=TE(o,c,O);Z.push(_[te[0]],_[te[1]])}if(K=[...K,{placement:o,overflows:Z}],!Z.every(te=>te<=0)){var W,z;const te=(((W=s.flip)==null?void 0:W.index)||0)+1,X=P[te];if(X&&(!(v==="alignment"?w!==Oa(X):!1)||K.every(oe=>Oa(oe.placement)===w?oe.overflows[0]>0:!0)))return{data:{index:te,overflows:K},reset:{placement:X}};let H=(z=K.filter(Q=>Q.overflows[0]<=0).sort((Q,oe)=>Q.overflows[1]-oe.overflows[1])[0])==null?void 0:z.placement;if(!H)switch(b){case"bestFit":{var q;const Q=(q=K.filter(oe=>{if(T){const U=Oa(oe.placement);return U===w||U==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(U=>U>0).reduce((U,ie)=>U+ie,0)]).sort((oe,U)=>oe[1]-U[1])[0])==null?void 0:q[0];Q&&(H=Q);break}case"initialPlacement":H=d;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function dp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function hp(e){return AE.some(t=>e[t]>=0)}const $E=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=mo(e,t);switch(o){case"referenceHidden":{const c=await r.detectOverflow(t,{...s,elementContext:"reference"}),d=dp(c,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:hp(d)}}}case"escaped":{const c=await r.detectOverflow(t,{...s,altBoundary:!0}),d=dp(c,n.floating);return{data:{escapedOffsets:d,escaped:hp(d)}}}default:return{}}}}},Wv=new Set(["left","top"]);async function UE(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=vo(n),d=k2(n),h=Oa(n)==="y",p=Wv.has(c)?-1:1,m=s&&h?-1:1,v=mo(t,e);let{mainAxis:y,crossAxis:b,alignmentAxis:D}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof D=="number"&&(b=d==="end"?D*-1:D),h?{x:b*m,y:y*p}:{x:y*p,y:b*m}}const qE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:c,middlewareData:d}=t,h=await UE(t,e);return c===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:o+h.x,y:s+h.y,data:{...h,placement:c}}}}},YE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:M=>{let{x:w,y:E}=M;return{x:w,y:E}}},...p}=mo(e,t),m={x:n,y:r},v=await s.detectOverflow(t,p),y=Oa(vo(o)),b=p9(y);let D=m[b],S=m[y];if(c){const M=b==="y"?"top":"left",w=b==="y"?"bottom":"right",E=D+v[M],O=D-v[w];D=h8(E,D,O)}if(d){const M=y==="y"?"top":"left",w=y==="y"?"bottom":"right",E=S+v[M],O=S-v[w];S=h8(E,S,O)}const L=h.fn({...t,[b]:D,[y]:S});return{...L,data:{x:L.x-n,y:L.y-r,enabled:{[b]:c,[y]:d}}}}}},GE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:c}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=mo(e,t),m={x:n,y:r},v=Oa(o),y=p9(v);let b=m[y],D=m[v];const S=mo(d,t),L=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const E=y==="y"?"height":"width",O=s.reference[y]-s.floating[E]+L.mainAxis,B=s.reference[y]+s.reference[E]-L.mainAxis;b<O?b=O:b>B&&(b=B)}if(p){var M,w;const E=y==="y"?"width":"height",O=Wv.has(vo(o)),B=s.reference[v]-s.floating[E]+(O&&((M=c.offset)==null?void 0:M[v])||0)+(O?0:L.crossAxis),T=s.reference[v]+s.reference[E]+(O?0:((w=c.offset)==null?void 0:w[v])||0)-(O?L.crossAxis:0);D<B?D=B:D>T&&(D=T)}return{[y]:b,[v]:D}}}},KE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:c,elements:d}=t,{apply:h=()=>{},...p}=mo(e,t),m=await c.detectOverflow(t,p),v=vo(o),y=k2(o),b=Oa(o)==="y",{width:D,height:S}=s.floating;let L,M;v==="top"||v==="bottom"?(L=v,M=y===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(M=v,L=y==="end"?"top":"bottom");const w=S-m.top-m.bottom,E=D-m.left-m.right,O=ii(S-m[L],w),B=ii(D-m[M],E),T=!t.middlewareData.shift;let P=O,_=B;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),T&&!y){const K=Dr(m.left,0),W=Dr(m.right,0),z=Dr(m.top,0),q=Dr(m.bottom,0);b?_=D-2*(K!==0||W!==0?K+W:Dr(m.left,m.right)):P=S-2*(z!==0||q!==0?z+q:Dr(m.top,m.bottom))}await h({...t,availableWidth:_,availableHeight:P});const Z=await c.getDimensions(d.floating);return D!==Z.width||S!==Z.height?{reset:{rects:!0}}:{}}}};function Bc(){return typeof window<"u"}function j2(e){return $v(e)?(e.nodeName||"").toLowerCase():"#document"}function Lr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _a(e){var t;return(t=($v(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $v(e){return Bc()?e instanceof Node||e instanceof Lr(e).Node:!1}function ha(e){return Bc()?e instanceof Element||e instanceof Lr(e).Element:!1}function Na(e){return Bc()?e instanceof HTMLElement||e instanceof Lr(e).HTMLElement:!1}function pp(e){return!Bc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lr(e).ShadowRoot}const XE=new Set(["inline","contents"]);function j5(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=pa(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!XE.has(o)}const QE=new Set(["table","td","th"]);function JE(e){return QE.has(j2(e))}const ek=[":popover-open",":modal"];function Rc(e){return ek.some(t=>{try{return e.matches(t)}catch{return!1}})}const tk=["transform","translate","scale","rotate","perspective"],nk=["transform","translate","scale","rotate","perspective","filter"],rk=["paint","layout","strict","content"];function m9(e){const t=v9(),n=ha(e)?pa(e):e;return tk.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||nk.some(r=>(n.willChange||"").includes(r))||rk.some(r=>(n.contain||"").includes(r))}function ak(e){let t=si(e);for(;Na(t)&&!b2(t);){if(m9(t))return t;if(Rc(t))return null;t=si(t)}return null}function v9(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ok=new Set(["html","body","#document"]);function b2(e){return ok.has(j2(e))}function pa(e){return Lr(e).getComputedStyle(e)}function Tc(e){return ha(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function si(e){if(j2(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pp(e)&&e.host||_a(e);return pp(t)?t.host:t}function Uv(e){const t=si(e);return b2(t)?e.ownerDocument?e.ownerDocument.body:e.body:Na(t)&&j5(t)?t:Uv(t)}function l5(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Uv(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=Lr(o);if(s){const d=C8(c);return t.concat(c,c.visualViewport||[],j5(o)?o:[],d&&n?l5(d):[])}return t.concat(o,l5(o,[],n))}function C8(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qv(e){const t=pa(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Na(e),s=o?e.offsetWidth:n,c=o?e.offsetHeight:r,d=U0(n)!==s||U0(r)!==c;return d&&(n=s,r=c),{width:n,height:r,$:d}}function y9(e){return ha(e)?e:e.contextElement}function p2(e){const t=y9(e);if(!Na(t))return Ra(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=qv(t);let c=(s?U0(n.width):n.width)/r,d=(s?U0(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const ik=Ra(0);function Yv(e){const t=Lr(e);return!v9()||!t.visualViewport?ik:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function sk(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lr(e)?!1:t}function Xi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=y9(e);let c=Ra(1);t&&(r?ha(r)&&(c=p2(r)):c=p2(e));const d=sk(s,n,r)?Yv(s):Ra(0);let h=(o.left+d.x)/c.x,p=(o.top+d.y)/c.y,m=o.width/c.x,v=o.height/c.y;if(s){const y=Lr(s),b=r&&ha(r)?Lr(r):r;let D=y,S=C8(D);for(;S&&r&&b!==D;){const L=p2(S),M=S.getBoundingClientRect(),w=pa(S),E=M.left+(S.clientLeft+parseFloat(w.paddingLeft))*L.x,O=M.top+(S.clientTop+parseFloat(w.paddingTop))*L.y;h*=L.x,p*=L.y,m*=L.x,v*=L.y,h+=E,p+=O,D=Lr(S),S=C8(D)}}return Y0({width:m,height:v,x:h,y:p})}function Nc(e,t){const n=Tc(e).scrollLeft;return t?t.left+n:Xi(_a(e)).left+n}function Gv(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Nc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function lk(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",c=_a(r),d=t?Rc(t.floating):!1;if(r===c||d&&s)return n;let h={scrollLeft:0,scrollTop:0},p=Ra(1);const m=Ra(0),v=Na(r);if((v||!v&&!s)&&((j2(r)!=="body"||j5(c))&&(h=Tc(r)),Na(r))){const b=Xi(r);p=p2(r),m.x=b.x+r.clientLeft,m.y=b.y+r.clientTop}const y=c&&!v&&!s?Gv(c,h):Ra(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-h.scrollLeft*p.x+m.x+y.x,y:n.y*p.y-h.scrollTop*p.y+m.y+y.y}}function uk(e){return Array.from(e.getClientRects())}function ck(e){const t=_a(e),n=Tc(e),r=e.ownerDocument.body,o=Dr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Dr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Nc(e);const d=-n.scrollTop;return pa(r).direction==="rtl"&&(c+=Dr(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:c,y:d}}const Cp=25;function fk(e,t){const n=Lr(e),r=_a(e),o=n.visualViewport;let s=r.clientWidth,c=r.clientHeight,d=0,h=0;if(o){s=o.width,c=o.height;const m=v9();(!m||m&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}const p=Nc(r);if(p<=0){const m=r.ownerDocument,v=m.body,y=getComputedStyle(v),b=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,D=Math.abs(r.clientWidth-v.clientWidth-b);D<=Cp&&(s-=D)}else p<=Cp&&(s+=p);return{width:s,height:c,x:d,y:h}}const dk=new Set(["absolute","fixed"]);function hk(e,t){const n=Xi(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Na(e)?p2(e):Ra(1),c=e.clientWidth*s.x,d=e.clientHeight*s.y,h=o*s.x,p=r*s.y;return{width:c,height:d,x:h,y:p}}function gp(e,t,n){let r;if(t==="viewport")r=fk(e,n);else if(t==="document")r=ck(_a(e));else if(ha(t))r=hk(t,n);else{const o=Yv(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Y0(r)}function Kv(e,t){const n=si(e);return n===t||!ha(n)||b2(n)?!1:pa(n).position==="fixed"||Kv(n,t)}function pk(e,t){const n=t.get(e);if(n)return n;let r=l5(e,[],!1).filter(d=>ha(d)&&j2(d)!=="body"),o=null;const s=pa(e).position==="fixed";let c=s?si(e):e;for(;ha(c)&&!b2(c);){const d=pa(c),h=m9(c);!h&&d.position==="fixed"&&(o=null),(s?!h&&!o:!h&&d.position==="static"&&!!o&&dk.has(o.position)||j5(c)&&!h&&Kv(e,c))?r=r.filter(m=>m!==c):o=d,c=si(c)}return t.set(e,r),r}function Ck(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Rc(t)?[]:pk(t,this._c):[].concat(n),r],d=c[0],h=c.reduce((p,m)=>{const v=gp(t,m,o);return p.top=Dr(v.top,p.top),p.right=ii(v.right,p.right),p.bottom=ii(v.bottom,p.bottom),p.left=Dr(v.left,p.left),p},gp(t,d,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function gk(e){const{width:t,height:n}=qv(e);return{width:t,height:n}}function mk(e,t,n){const r=Na(t),o=_a(t),s=n==="fixed",c=Xi(e,!0,s,t);let d={scrollLeft:0,scrollTop:0};const h=Ra(0);function p(){h.x=Nc(o)}if(r||!r&&!s)if((j2(t)!=="body"||j5(o))&&(d=Tc(t)),r){const b=Xi(t,!0,s,t);h.x=b.x+t.clientLeft,h.y=b.y+t.clientTop}else o&&p();s&&!r&&o&&p();const m=o&&!r&&!s?Gv(o,d):Ra(0),v=c.left+d.scrollLeft-h.x-m.x,y=c.top+d.scrollTop-h.y-m.y;return{x:v,y,width:c.width,height:c.height}}function b4(e){return pa(e).position==="static"}function mp(e,t){if(!Na(e)||pa(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _a(e)===n&&(n=n.ownerDocument.body),n}function Xv(e,t){const n=Lr(e);if(Rc(e))return n;if(!Na(e)){let o=si(e);for(;o&&!b2(o);){if(ha(o)&&!b4(o))return o;o=si(o)}return n}let r=mp(e,t);for(;r&&JE(r)&&b4(r);)r=mp(r,t);return r&&b2(r)&&b4(r)&&!m9(r)?n:r||ak(e)||n}const vk=async function(e){const t=this.getOffsetParent||Xv,n=this.getDimensions,r=await n(e.floating);return{reference:mk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yk(e){return pa(e).direction==="rtl"}const xk={convertOffsetParentRelativeRectToViewportRelativeRect:lk,getDocumentElement:_a,getClippingRect:Ck,getOffsetParent:Xv,getElementRects:vk,getClientRects:uk,getDimensions:gk,getScale:p2,isElement:ha,isRTL:yk};function Qv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wk(e,t){let n=null,r;const o=_a(e);function s(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),s();const p=e.getBoundingClientRect(),{left:m,top:v,width:y,height:b}=p;if(d||t(),!y||!b)return;const D=i0(v),S=i0(o.clientWidth-(m+y)),L=i0(o.clientHeight-(v+b)),M=i0(m),E={rootMargin:-D+"px "+-S+"px "+-L+"px "+-M+"px",threshold:Dr(0,ii(1,h))||1};let O=!0;function B(T){const P=T[0].intersectionRatio;if(P!==h){if(!O)return c();P?c(!1,P):r=setTimeout(()=>{c(!1,1e-7)},1e3)}P===1&&!Qv(p,e.getBoundingClientRect())&&c(),O=!1}try{n=new IntersectionObserver(B,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(B,E)}n.observe(e)}return c(!0),s}function bk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=y9(e),m=o||s?[...p?l5(p):[],...l5(t)]:[];m.forEach(M=>{o&&M.addEventListener("scroll",n,{passive:!0}),s&&M.addEventListener("resize",n)});const v=p&&d?wk(p,n):null;let y=-1,b=null;c&&(b=new ResizeObserver(M=>{let[w]=M;w&&w.target===p&&b&&(b.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var E;(E=b)==null||E.observe(t)})),n()}),p&&!h&&b.observe(p),b.observe(t));let D,S=h?Xi(e):null;h&&L();function L(){const M=Xi(e);S&&!Qv(S,M)&&n(),S=M,D=requestAnimationFrame(L)}return n(),()=>{var M;m.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),v?.(),(M=b)==null||M.disconnect(),b=null,h&&cancelAnimationFrame(D)}}const Sk=qE,Dk=YE,Lk=WE,Mk=KE,Ek=$E,vp=VE,kk=GE,jk=(e,t,n)=>{const r=new Map,o={platform:xk,...n},s={...o.platform,_c:r};return ZE(e,t,{...o,platform:s})};var Ak=typeof document<"u",Ok=function(){},N0=Ak?g.useLayoutEffect:Ok;function G0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!G0(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!G0(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Jv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yp(e,t){const n=Jv(e);return Math.round(t*n)/n}function S4(e){const t=g.useRef(e);return N0(()=>{t.current=e}),t}function Bk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:c}={},transform:d=!0,whileElementsMounted:h,open:p}=e,[m,v]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,b]=g.useState(r);G0(y,r)||b(r);const[D,S]=g.useState(null),[L,M]=g.useState(null),w=g.useCallback(oe=>{oe!==T.current&&(T.current=oe,S(oe))},[]),E=g.useCallback(oe=>{oe!==P.current&&(P.current=oe,M(oe))},[]),O=s||D,B=c||L,T=g.useRef(null),P=g.useRef(null),_=g.useRef(m),Z=h!=null,K=S4(h),W=S4(o),z=S4(p),q=g.useCallback(()=>{if(!T.current||!P.current)return;const oe={placement:t,strategy:n,middleware:y};W.current&&(oe.platform=W.current),jk(T.current,P.current,oe).then(U=>{const ie={...U,isPositioned:z.current!==!1};te.current&&!G0(_.current,ie)&&(_.current=ie,M5.flushSync(()=>{v(ie)}))})},[y,t,n,W,z]);N0(()=>{p===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,v(oe=>({...oe,isPositioned:!1})))},[p]);const te=g.useRef(!1);N0(()=>(te.current=!0,()=>{te.current=!1}),[]),N0(()=>{if(O&&(T.current=O),B&&(P.current=B),O&&B){if(K.current)return K.current(O,B,q);q()}},[O,B,q,K,Z]);const X=g.useMemo(()=>({reference:T,floating:P,setReference:w,setFloating:E}),[w,E]),H=g.useMemo(()=>({reference:O,floating:B}),[O,B]),Q=g.useMemo(()=>{const oe={position:n,left:0,top:0};if(!H.floating)return oe;const U=yp(H.floating,m.x),ie=yp(H.floating,m.y);return d?{...oe,transform:"translate("+U+"px, "+ie+"px)",...Jv(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:ie}},[n,d,H.floating,m.x,m.y]);return g.useMemo(()=>({...m,update:q,refs:X,elements:H,floatingStyles:Q}),[m,q,X,H,Q])}const Rk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?vp({element:r.current,padding:o}).fn(n):{}:r?vp({element:r,padding:o}).fn(n):{}}}},Tk=(e,t)=>({...Sk(e),options:[e,t]}),Nk=(e,t)=>({...Dk(e),options:[e,t]}),Fk=(e,t)=>({...kk(e),options:[e,t]}),Pk=(e,t)=>({...Lk(e),options:[e,t]}),_k=(e,t)=>({...Mk(e),options:[e,t]}),Ik=(e,t)=>({...Ek(e),options:[e,t]}),zk=(e,t)=>({...Rk(e),options:[e,t]});var Hk="Arrow",ey=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l.jsx(Pt.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});ey.displayName=Hk;var Zk=ey,x9="Popper",[ty,A2]=Ca(x9),[Vk,ny]=ty(x9),ry=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return l.jsx(Vk,{scope:t,anchor:r,onAnchorChange:o,children:n})};ry.displayName=x9;var ay="PopperAnchor",oy=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ny(ay,n),c=g.useRef(null),d=Xt(t,c),h=g.useRef(null);return g.useEffect(()=>{const p=h.current;h.current=r?.current||c.current,p!==h.current&&s.onAnchorChange(h.current)}),r?null:l.jsx(Pt.div,{...o,ref:d})});oy.displayName=ay;var w9="PopperContent",[Wk,$k]=ty(w9),iy=g.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:v="partial",hideWhenDetached:y=!1,updatePositionStrategy:b="optimized",onPlaced:D,...S}=e,L=ny(w9,n),[M,w]=g.useState(null),E=Xt(t,Ae=>w(Ae)),[O,B]=g.useState(null),T=h9(O),P=T?.width??0,_=T?.height??0,Z=r+(s!=="center"?"-"+s:""),K=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},W=Array.isArray(p)?p:[p],z=W.length>0,q={padding:K,boundary:W.filter(qk),altBoundary:z},{refs:te,floatingStyles:X,placement:H,isPositioned:Q,middlewareData:oe}=Bk({strategy:"fixed",placement:Z,whileElementsMounted:(...Ae)=>bk(...Ae,{animationFrame:b==="always"}),elements:{reference:L.anchor},middleware:[Tk({mainAxis:o+_,alignmentAxis:c}),h&&Nk({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?Fk():void 0,...q}),h&&Pk({...q}),_k({...q,apply:({elements:Ae,rects:Qe,availableWidth:I,availableHeight:fe})=>{const{width:me,height:Se}=Qe.reference,Xe=Ae.floating.style;Xe.setProperty("--radix-popper-available-width",`${I}px`),Xe.setProperty("--radix-popper-available-height",`${fe}px`),Xe.setProperty("--radix-popper-anchor-width",`${me}px`),Xe.setProperty("--radix-popper-anchor-height",`${Se}px`)}}),O&&zk({element:O,padding:d}),Yk({arrowWidth:P,arrowHeight:_}),y&&Ik({strategy:"referenceHidden",...q})]}),[U,ie]=uy(H),N=$r(D);In(()=>{Q&&N?.()},[Q,N]);const $=oe.arrow?.x,V=oe.arrow?.y,se=oe.arrow?.centerOffset!==0,[ke,We]=g.useState();return In(()=>{M&&We(window.getComputedStyle(M).zIndex)},[M]),l.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:Q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[oe.transformOrigin?.x,oe.transformOrigin?.y].join(" "),...oe.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Wk,{scope:n,placedSide:U,onArrowChange:B,arrowX:$,arrowY:V,shouldHideArrow:se,children:l.jsx(Pt.div,{"data-side":U,"data-align":ie,...S,ref:E,style:{...S.style,animation:Q?void 0:"none"}})})})});iy.displayName=w9;var sy="PopperArrow",Uk={top:"bottom",right:"left",bottom:"top",left:"right"},ly=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=$k(sy,r),c=Uk[s.placedSide];return l.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l.jsx(Zk,{...o,ref:n,style:{...o.style,display:"block"}})})});ly.displayName=sy;function qk(e){return e!==null}var Yk=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[p,m]=uy(n),v={start:"0%",center:"50%",end:"100%"}[m],y=(o.arrow?.x??0)+d/2,b=(o.arrow?.y??0)+h/2;let D="",S="";return p==="bottom"?(D=c?v:`${y}px`,S=`${-h}px`):p==="top"?(D=c?v:`${y}px`,S=`${r.floating.height+h}px`):p==="right"?(D=`${-h}px`,S=c?v:`${b}px`):p==="left"&&(D=`${r.floating.width+h}px`,S=c?v:`${b}px`),{data:{x:D,y:S}}}});function uy(e){const[t,n="center"]=e.split("-");return[t,n]}var Fc=ry,b9=oy,S9=iy,D9=ly,D4="rovingFocusGroup.onEntryFocus",Gk={bubbles:!1,cancelable:!0},A5="RovingFocusGroup",[g8,cy,Kk]=Mc(A5),[Xk,fy]=Ca(A5,[Kk]),[Qk,Jk]=Xk(A5),dy=g.forwardRef((e,t)=>l.jsx(g8.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(g8.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(ej,{...e,ref:t})})}));dy.displayName=A5;var ej=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:h,onEntryFocus:p,preventScrollOnEntryFocus:m=!1,...v}=e,y=g.useRef(null),b=Xt(t,y),D=Ec(s),[S,L]=Ta({prop:c,defaultProp:d??null,onChange:h,caller:A5}),[M,w]=g.useState(!1),E=$r(p),O=cy(n),B=g.useRef(!1),[T,P]=g.useState(0);return g.useEffect(()=>{const _=y.current;if(_)return _.addEventListener(D4,E),()=>_.removeEventListener(D4,E)},[E]),l.jsx(Qk,{scope:n,orientation:r,dir:D,loop:o,currentTabStopId:S,onItemFocus:g.useCallback(_=>L(_),[L]),onItemShiftTab:g.useCallback(()=>w(!0),[]),onFocusableItemAdd:g.useCallback(()=>P(_=>_+1),[]),onFocusableItemRemove:g.useCallback(()=>P(_=>_-1),[]),children:l.jsx(Pt.div,{tabIndex:M||T===0?-1:0,"data-orientation":r,...v,ref:b,style:{outline:"none",...e.style},onMouseDown:Je(e.onMouseDown,()=>{B.current=!0}),onFocus:Je(e.onFocus,_=>{const Z=!B.current;if(_.target===_.currentTarget&&Z&&!M){const K=new CustomEvent(D4,Gk);if(_.currentTarget.dispatchEvent(K),!K.defaultPrevented){const W=O().filter(H=>H.focusable),z=W.find(H=>H.active),q=W.find(H=>H.id===S),X=[z,q,...W].filter(Boolean).map(H=>H.ref.current);Cy(X,m)}}B.current=!1}),onBlur:Je(e.onBlur,()=>w(!1))})})}),hy="RovingFocusGroupItem",py=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:c,...d}=e,h=Zr(),p=s||h,m=Jk(hy,n),v=m.currentTabStopId===p,y=cy(n),{onFocusableItemAdd:b,onFocusableItemRemove:D,currentTabStopId:S}=m;return g.useEffect(()=>{if(r)return b(),()=>D()},[r,b,D]),l.jsx(g8.ItemSlot,{scope:n,id:p,focusable:r,active:o,children:l.jsx(Pt.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:Je(e.onMouseDown,L=>{r?m.onItemFocus(p):L.preventDefault()}),onFocus:Je(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:Je(e.onKeyDown,L=>{if(L.key==="Tab"&&L.shiftKey){m.onItemShiftTab();return}if(L.target!==L.currentTarget)return;const M=rj(L,m.orientation,m.dir);if(M!==void 0){if(L.metaKey||L.ctrlKey||L.altKey||L.shiftKey)return;L.preventDefault();let E=y().filter(O=>O.focusable).map(O=>O.ref.current);if(M==="last")E.reverse();else if(M==="prev"||M==="next"){M==="prev"&&E.reverse();const O=E.indexOf(L.currentTarget);E=m.loop?aj(E,O+1):E.slice(O+1)}setTimeout(()=>Cy(E))}}),children:typeof c=="function"?c({isCurrentTabStop:v,hasTabStop:S!=null}):c})})});py.displayName=hy;var tj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rj(e,t,n){const r=nj(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return tj[r]}function Cy(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function aj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var oj=dy,ij=py,m8=["Enter"," "],sj=["ArrowDown","PageUp","Home"],gy=["ArrowUp","PageDown","End"],lj=[...sj,...gy],uj={ltr:[...m8,"ArrowRight"],rtl:[...m8,"ArrowLeft"]},cj={ltr:["ArrowLeft"],rtl:["ArrowRight"]},O5="Menu",[u5,fj,dj]=Mc(O5),[ns,Pc]=Ca(O5,[dj,A2,fy]),B5=A2(),my=fy(),[vy,ui]=ns(O5),[hj,R5]=ns(O5),yy=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:c=!0}=e,d=B5(t),[h,p]=g.useState(null),m=g.useRef(!1),v=$r(s),y=Ec(o);return g.useEffect(()=>{const b=()=>{m.current=!0,document.addEventListener("pointerdown",D,{capture:!0,once:!0}),document.addEventListener("pointermove",D,{capture:!0,once:!0})},D=()=>m.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",D,{capture:!0}),document.removeEventListener("pointermove",D,{capture:!0})}},[]),l.jsx(Fc,{...d,children:l.jsx(vy,{scope:t,open:n,onOpenChange:v,content:h,onContentChange:p,children:l.jsx(hj,{scope:t,onClose:g.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:m,dir:y,modal:c,children:r})})})};yy.displayName=O5;var pj="MenuAnchor",L9=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=B5(n);return l.jsx(b9,{...o,...r,ref:t})});L9.displayName=pj;var M9="MenuPortal",[Cj,xy]=ns(M9,{forceMount:void 0}),wy=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=ui(M9,t);return l.jsx(Cj,{scope:t,forceMount:n,children:l.jsx(Pa,{present:n||s.open,children:l.jsx(k5,{asChild:!0,container:o,children:r})})})};wy.displayName=M9;var Vr="MenuContent",[gj,E9]=ns(Vr),by=g.forwardRef((e,t)=>{const n=xy(Vr,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=ui(Vr,e.__scopeMenu),c=R5(Vr,e.__scopeMenu);return l.jsx(u5.Provider,{scope:e.__scopeMenu,children:l.jsx(Pa,{present:r||s.open,children:l.jsx(u5.Slot,{scope:e.__scopeMenu,children:c.modal?l.jsx(mj,{...o,ref:t}):l.jsx(vj,{...o,ref:t})})})})}),mj=g.forwardRef((e,t)=>{const n=ui(Vr,e.__scopeMenu),r=g.useRef(null),o=Xt(t,r);return g.useEffect(()=>{const s=r.current;if(s)return s9(s)},[]),l.jsx(k9,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Je(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),vj=g.forwardRef((e,t)=>{const n=ui(Vr,e.__scopeMenu);return l.jsx(k9,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),yj=w2("MenuContent.ScrollLock"),k9=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:y,onDismiss:b,disableOutsideScroll:D,...S}=e,L=ui(Vr,n),M=R5(Vr,n),w=B5(n),E=my(n),O=fj(n),[B,T]=g.useState(null),P=g.useRef(null),_=Xt(t,P,L.onContentChange),Z=g.useRef(0),K=g.useRef(""),W=g.useRef(0),z=g.useRef(null),q=g.useRef("right"),te=g.useRef(0),X=D?Ac:g.Fragment,H=D?{as:yj,allowPinchZoom:!0}:void 0,Q=U=>{const ie=K.current+U,N=O().filter(Ae=>!Ae.disabled),$=document.activeElement,V=N.find(Ae=>Ae.ref.current===$)?.textValue,se=N.map(Ae=>Ae.textValue),ke=Oj(se,ie,V),We=N.find(Ae=>Ae.textValue===ke)?.ref.current;(function Ae(Qe){K.current=Qe,window.clearTimeout(Z.current),Qe!==""&&(Z.current=window.setTimeout(()=>Ae(""),1e3))})(ie),We&&setTimeout(()=>We.focus())};g.useEffect(()=>()=>window.clearTimeout(Z.current),[]),i9();const oe=g.useCallback(U=>q.current===z.current?.side&&Rj(U,z.current?.area),[]);return l.jsx(gj,{scope:n,searchRef:K,onItemEnter:g.useCallback(U=>{oe(U)&&U.preventDefault()},[oe]),onItemLeave:g.useCallback(U=>{oe(U)||(P.current?.focus(),T(null))},[oe]),onTriggerLeave:g.useCallback(U=>{oe(U)&&U.preventDefault()},[oe]),pointerGraceTimerRef:W,onPointerGraceIntentChange:g.useCallback(U=>{z.current=U},[]),children:l.jsx(X,{...H,children:l.jsx(kc,{asChild:!0,trapped:o,onMountAutoFocus:Je(s,U=>{U.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:l.jsx(E5,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:y,onDismiss:b,children:l.jsx(oj,{asChild:!0,...E,dir:M.dir,orientation:"vertical",loop:r,currentTabStopId:B,onCurrentTabStopIdChange:T,onEntryFocus:Je(h,U=>{M.isUsingKeyboardRef.current||U.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(S9,{role:"menu","aria-orientation":"vertical","data-state":Iy(L.open),"data-radix-menu-content":"",dir:M.dir,...w,...S,ref:_,style:{outline:"none",...S.style},onKeyDown:Je(S.onKeyDown,U=>{const N=U.target.closest("[data-radix-menu-content]")===U.currentTarget,$=U.ctrlKey||U.altKey||U.metaKey,V=U.key.length===1;N&&(U.key==="Tab"&&U.preventDefault(),!$&&V&&Q(U.key));const se=P.current;if(U.target!==se||!lj.includes(U.key))return;U.preventDefault();const We=O().filter(Ae=>!Ae.disabled).map(Ae=>Ae.ref.current);gy.includes(U.key)&&We.reverse(),jj(We)}),onBlur:Je(e.onBlur,U=>{U.currentTarget.contains(U.target)||(window.clearTimeout(Z.current),K.current="")}),onPointerMove:Je(e.onPointerMove,c5(U=>{const ie=U.target,N=te.current!==U.clientX;if(U.currentTarget.contains(ie)&&N){const $=U.clientX>te.current?"right":"left";q.current=$,te.current=U.clientX}}))})})})})})})});by.displayName=Vr;var xj="MenuGroup",j9=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(Pt.div,{role:"group",...r,ref:t})});j9.displayName=xj;var wj="MenuLabel",Sy=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(Pt.div,{...r,ref:t})});Sy.displayName=wj;var K0="MenuItem",xp="menu.itemSelect",_c=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=g.useRef(null),c=R5(K0,e.__scopeMenu),d=E9(K0,e.__scopeMenu),h=Xt(t,s),p=g.useRef(!1),m=()=>{const v=s.current;if(!n&&v){const y=new CustomEvent(xp,{bubbles:!0,cancelable:!0});v.addEventListener(xp,b=>r?.(b),{once:!0}),hv(v,y),y.defaultPrevented?p.current=!1:c.onClose()}};return l.jsx(Dy,{...o,ref:h,disabled:n,onClick:Je(e.onClick,m),onPointerDown:v=>{e.onPointerDown?.(v),p.current=!0},onPointerUp:Je(e.onPointerUp,v=>{p.current||v.currentTarget?.click()}),onKeyDown:Je(e.onKeyDown,v=>{const y=d.searchRef.current!=="";n||y&&v.key===" "||m8.includes(v.key)&&(v.currentTarget.click(),v.preventDefault())})})});_c.displayName=K0;var Dy=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,c=E9(K0,n),d=my(n),h=g.useRef(null),p=Xt(t,h),[m,v]=g.useState(!1),[y,b]=g.useState("");return g.useEffect(()=>{const D=h.current;D&&b((D.textContent??"").trim())},[s.children]),l.jsx(u5.ItemSlot,{scope:n,disabled:r,textValue:o??y,children:l.jsx(ij,{asChild:!0,...d,focusable:!r,children:l.jsx(Pt.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:p,onPointerMove:Je(e.onPointerMove,c5(D=>{r?c.onItemLeave(D):(c.onItemEnter(D),D.defaultPrevented||D.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Je(e.onPointerLeave,c5(D=>c.onItemLeave(D))),onFocus:Je(e.onFocus,()=>v(!0)),onBlur:Je(e.onBlur,()=>v(!1))})})})}),bj="MenuCheckboxItem",Ly=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return l.jsx(Ay,{scope:e.__scopeMenu,checked:n,children:l.jsx(_c,{role:"menuitemcheckbox","aria-checked":X0(n)?"mixed":n,...o,ref:t,"data-state":B9(n),onSelect:Je(o.onSelect,()=>r?.(X0(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ly.displayName=bj;var My="MenuRadioGroup",[Sj,Dj]=ns(My,{value:void 0,onValueChange:()=>{}}),Ey=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=$r(r);return l.jsx(Sj,{scope:e.__scopeMenu,value:n,onValueChange:s,children:l.jsx(j9,{...o,ref:t})})});Ey.displayName=My;var ky="MenuRadioItem",jy=g.forwardRef((e,t)=>{const{value:n,...r}=e,o=Dj(ky,e.__scopeMenu),s=n===o.value;return l.jsx(Ay,{scope:e.__scopeMenu,checked:s,children:l.jsx(_c,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":B9(s),onSelect:Je(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});jy.displayName=ky;var A9="MenuItemIndicator",[Ay,Lj]=ns(A9,{checked:!1}),Oy=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Lj(A9,n);return l.jsx(Pa,{present:r||X0(s.checked)||s.checked===!0,children:l.jsx(Pt.span,{...o,ref:t,"data-state":B9(s.checked)})})});Oy.displayName=A9;var Mj="MenuSeparator",By=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(Pt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});By.displayName=Mj;var Ej="MenuArrow",Ry=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=B5(n);return l.jsx(D9,{...o,...r,ref:t})});Ry.displayName=Ej;var O9="MenuSub",[kj,Ty]=ns(O9),Ny=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=ui(O9,t),c=B5(t),[d,h]=g.useState(null),[p,m]=g.useState(null),v=$r(o);return g.useEffect(()=>(s.open===!1&&v(!1),()=>v(!1)),[s.open,v]),l.jsx(Fc,{...c,children:l.jsx(vy,{scope:t,open:r,onOpenChange:v,content:p,onContentChange:m,children:l.jsx(kj,{scope:t,contentId:Zr(),triggerId:Zr(),trigger:d,onTriggerChange:h,children:n})})})};Ny.displayName=O9;var Fl="MenuSubTrigger",Fy=g.forwardRef((e,t)=>{const n=ui(Fl,e.__scopeMenu),r=R5(Fl,e.__scopeMenu),o=Ty(Fl,e.__scopeMenu),s=E9(Fl,e.__scopeMenu),c=g.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:h}=s,p={__scopeMenu:e.__scopeMenu},m=g.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return g.useEffect(()=>m,[m]),g.useEffect(()=>{const v=d.current;return()=>{window.clearTimeout(v),h(null)}},[d,h]),l.jsx(L9,{asChild:!0,...p,children:l.jsx(Dy,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Iy(n.open),...e,ref:Lc(t,o.onTriggerChange),onClick:v=>{e.onClick?.(v),!(e.disabled||v.defaultPrevented)&&(v.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Je(e.onPointerMove,c5(v=>{s.onItemEnter(v),!v.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:Je(e.onPointerLeave,c5(v=>{m();const y=n.content?.getBoundingClientRect();if(y){const b=n.content?.dataset.side,D=b==="right",S=D?-5:5,L=y[D?"left":"right"],M=y[D?"right":"left"];s.onPointerGraceIntentChange({area:[{x:v.clientX+S,y:v.clientY},{x:L,y:y.top},{x:M,y:y.top},{x:M,y:y.bottom},{x:L,y:y.bottom}],side:b}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(v),v.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Je(e.onKeyDown,v=>{const y=s.searchRef.current!=="";e.disabled||y&&v.key===" "||uj[r.dir].includes(v.key)&&(n.onOpenChange(!0),n.content?.focus(),v.preventDefault())})})})});Fy.displayName=Fl;var Py="MenuSubContent",_y=g.forwardRef((e,t)=>{const n=xy(Vr,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=ui(Vr,e.__scopeMenu),c=R5(Vr,e.__scopeMenu),d=Ty(Py,e.__scopeMenu),h=g.useRef(null),p=Xt(t,h);return l.jsx(u5.Provider,{scope:e.__scopeMenu,children:l.jsx(Pa,{present:r||s.open,children:l.jsx(u5.Slot,{scope:e.__scopeMenu,children:l.jsx(k9,{id:d.contentId,"aria-labelledby":d.triggerId,...o,ref:p,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{c.isUsingKeyboardRef.current&&h.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Je(e.onFocusOutside,m=>{m.target!==d.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Je(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:Je(e.onKeyDown,m=>{const v=m.currentTarget.contains(m.target),y=cj[c.dir].includes(m.key);v&&y&&(s.onOpenChange(!1),d.trigger?.focus(),m.preventDefault())})})})})})});_y.displayName=Py;function Iy(e){return e?"open":"closed"}function X0(e){return e==="indeterminate"}function B9(e){return X0(e)?"indeterminate":e?"checked":"unchecked"}function jj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Aj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Oj(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=Aj(e,Math.max(s,0));o.length===1&&(c=c.filter(p=>p!==n));const h=c.find(p=>p.toLowerCase().startsWith(o.toLowerCase()));return h!==n?h:void 0}function Bj(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const d=t[s],h=t[c],p=d.x,m=d.y,v=h.x,y=h.y;m>r!=y>r&&n<(v-p)*(r-m)/(y-m)+p&&(o=!o)}return o}function Rj(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Bj(n,t)}function c5(e){return t=>t.pointerType==="mouse"?e(t):void 0}var zy=yy,Hy=L9,Zy=wy,Vy=by,Wy=j9,$y=Sy,Uy=_c,qy=Ly,Yy=Ey,Gy=jy,Ky=Oy,Xy=By,Qy=Ry,Jy=Ny,ex=Fy,tx=_y,R9="ContextMenu",[Tj]=Ca(R9,[Pc]),zn=Pc(),[Nj,nx]=Tj(R9),rx=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:s=!0}=e,[c,d]=g.useState(!1),h=zn(t),p=$r(r),m=g.useCallback(v=>{d(v),p(v)},[p]);return l.jsx(Nj,{scope:t,open:c,onOpenChange:m,modal:s,children:l.jsx(zy,{...h,dir:o,open:c,onOpenChange:m,modal:s,children:n})})};rx.displayName=R9;var ax="ContextMenuTrigger",ox=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,s=nx(ax,n),c=zn(n),d=g.useRef({x:0,y:0}),h=g.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...d.current})}),p=g.useRef(0),m=g.useCallback(()=>window.clearTimeout(p.current),[]),v=y=>{d.current={x:y.clientX,y:y.clientY},s.onOpenChange(!0)};return g.useEffect(()=>m,[m]),g.useEffect(()=>{r&&m()},[r,m]),l.jsxs(l.Fragment,{children:[l.jsx(Hy,{...c,virtualRef:h}),l.jsx(Pt.span,{"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:Je(e.onContextMenu,y=>{m(),v(y),y.preventDefault()}),onPointerDown:r?e.onPointerDown:Je(e.onPointerDown,s0(y=>{m(),p.current=window.setTimeout(()=>v(y),700)})),onPointerMove:r?e.onPointerMove:Je(e.onPointerMove,s0(m)),onPointerCancel:r?e.onPointerCancel:Je(e.onPointerCancel,s0(m)),onPointerUp:r?e.onPointerUp:Je(e.onPointerUp,s0(m))})]})});ox.displayName=ax;var Fj="ContextMenuPortal",ix=e=>{const{__scopeContextMenu:t,...n}=e,r=zn(t);return l.jsx(Zy,{...r,...n})};ix.displayName=Fj;var sx="ContextMenuContent",lx=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=nx(sx,n),s=zn(n),c=g.useRef(!1);return l.jsx(Vy,{...s,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:d=>{e.onCloseAutoFocus?.(d),!d.defaultPrevented&&c.current&&d.preventDefault(),c.current=!1},onInteractOutside:d=>{e.onInteractOutside?.(d),!d.defaultPrevented&&!o.modal&&(c.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});lx.displayName=sx;var Pj="ContextMenuGroup",_j=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(Wy,{...o,...r,ref:t})});_j.displayName=Pj;var Ij="ContextMenuLabel",zj=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx($y,{...o,...r,ref:t})});zj.displayName=Ij;var Hj="ContextMenuItem",ux=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(Uy,{...o,...r,ref:t})});ux.displayName=Hj;var Zj="ContextMenuCheckboxItem",Vj=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(qy,{...o,...r,ref:t})});Vj.displayName=Zj;var Wj="ContextMenuRadioGroup",$j=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(Yy,{...o,...r,ref:t})});$j.displayName=Wj;var Uj="ContextMenuRadioItem",qj=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(Gy,{...o,...r,ref:t})});qj.displayName=Uj;var Yj="ContextMenuItemIndicator",Gj=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(Ky,{...o,...r,ref:t})});Gj.displayName=Yj;var Kj="ContextMenuSeparator",cx=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(Xy,{...o,...r,ref:t})});cx.displayName=Kj;var Xj="ContextMenuArrow",Qj=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(Qy,{...o,...r,ref:t})});Qj.displayName=Xj;var fx="ContextMenuSub",dx=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:s}=e,c=zn(t),[d,h]=Ta({prop:o,defaultProp:s??!1,onChange:r,caller:fx});return l.jsx(Jy,{...c,open:d,onOpenChange:h,children:n})};dx.displayName=fx;var Jj="ContextMenuSubTrigger",hx=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(ex,{...o,...r,ref:t})});hx.displayName=Jj;var eA="ContextMenuSubContent",px=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=zn(n);return l.jsx(tx,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});px.displayName=eA;function s0(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var tA=rx,nA=ox,rA=ix,aA=lx,oA=ux,iA=cx,sA=dx,lA=hx,uA=px,Ic="DropdownMenu",[cA]=Ca(Ic,[Pc]),Hn=Pc(),[fA,Cx]=cA(Ic),gx=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:c,modal:d=!0}=e,h=Hn(t),p=g.useRef(null),[m,v]=Ta({prop:o,defaultProp:s??!1,onChange:c,caller:Ic});return l.jsx(fA,{scope:t,triggerId:Zr(),triggerRef:p,contentId:Zr(),open:m,onOpenChange:v,onOpenToggle:g.useCallback(()=>v(y=>!y),[v]),modal:d,children:l.jsx(zy,{...h,open:m,onOpenChange:v,dir:r,modal:d,children:n})})};gx.displayName=Ic;var mx="DropdownMenuTrigger",vx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Cx(mx,n),c=Hn(n);return l.jsx(Hy,{asChild:!0,...c,children:l.jsx(Pt.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Lc(t,s.triggerRef),onPointerDown:Je(e.onPointerDown,d=>{!r&&d.button===0&&d.ctrlKey===!1&&(s.onOpenToggle(),s.open||d.preventDefault())}),onKeyDown:Je(e.onKeyDown,d=>{r||(["Enter"," "].includes(d.key)&&s.onOpenToggle(),d.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});vx.displayName=mx;var dA="DropdownMenuPortal",yx=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Hn(t);return l.jsx(Zy,{...r,...n})};yx.displayName=dA;var xx="DropdownMenuContent",wx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Cx(xx,n),s=Hn(n),c=g.useRef(!1);return l.jsx(Vy,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:Je(e.onCloseAutoFocus,d=>{c.current||o.triggerRef.current?.focus(),c.current=!1,d.preventDefault()}),onInteractOutside:Je(e.onInteractOutside,d=>{const h=d.detail.originalEvent,p=h.button===0&&h.ctrlKey===!0,m=h.button===2||p;(!o.modal||m)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wx.displayName=xx;var hA="DropdownMenuGroup",pA=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(Wy,{...o,...r,ref:t})});pA.displayName=hA;var CA="DropdownMenuLabel",gA=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx($y,{...o,...r,ref:t})});gA.displayName=CA;var mA="DropdownMenuItem",bx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(Uy,{...o,...r,ref:t})});bx.displayName=mA;var vA="DropdownMenuCheckboxItem",Sx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(qy,{...o,...r,ref:t})});Sx.displayName=vA;var yA="DropdownMenuRadioGroup",Dx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(Yy,{...o,...r,ref:t})});Dx.displayName=yA;var xA="DropdownMenuRadioItem",Lx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(Gy,{...o,...r,ref:t})});Lx.displayName=xA;var wA="DropdownMenuItemIndicator",Mx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(Ky,{...o,...r,ref:t})});Mx.displayName=wA;var bA="DropdownMenuSeparator",Ex=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(Xy,{...o,...r,ref:t})});Ex.displayName=bA;var SA="DropdownMenuArrow",DA=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(Qy,{...o,...r,ref:t})});DA.displayName=SA;var LA=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,c=Hn(t),[d,h]=Ta({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return l.jsx(Jy,{...c,open:d,onOpenChange:h,children:n})},MA="DropdownMenuSubTrigger",kx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(ex,{...o,...r,ref:t})});kx.displayName=MA;var EA="DropdownMenuSubContent",jx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Hn(n);return l.jsx(tx,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});jx.displayName=EA;var kA=gx,jA=vx,AA=yx,OA=wx,BA=bx,RA=Sx,TA=Dx,NA=Lx,Ax=Mx,FA=Ex,PA=LA,_A=kx,IA=jx;function Q0(e,[t,n]){return Math.min(n,Math.max(t,e))}var zA=[" ","Enter","ArrowUp","ArrowDown"],HA=[" ","Enter"],Qi="Select",[zc,Hc,ZA]=Mc(Qi),[O2]=Ca(Qi,[ZA,A2]),Zc=A2(),[VA,ci]=O2(Qi),[WA,$A]=O2(Qi),Ox=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:c,defaultValue:d,onValueChange:h,dir:p,name:m,autoComplete:v,disabled:y,required:b,form:D}=e,S=Zc(t),[L,M]=g.useState(null),[w,E]=g.useState(null),[O,B]=g.useState(!1),T=Ec(p),[P,_]=Ta({prop:r,defaultProp:o??!1,onChange:s,caller:Qi}),[Z,K]=Ta({prop:c,defaultProp:d,onChange:h,caller:Qi}),W=g.useRef(null),z=L?D||!!L.closest("form"):!0,[q,te]=g.useState(new Set),X=Array.from(q).map(H=>H.props.value).join(";");return l.jsx(Fc,{...S,children:l.jsxs(VA,{required:b,scope:t,trigger:L,onTriggerChange:M,valueNode:w,onValueNodeChange:E,valueNodeHasChildren:O,onValueNodeHasChildrenChange:B,contentId:Zr(),value:Z,onValueChange:K,open:P,onOpenChange:_,dir:T,triggerPointerDownPosRef:W,disabled:y,children:[l.jsx(zc.Provider,{scope:t,children:l.jsx(WA,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(H=>{te(Q=>new Set(Q).add(H))},[]),onNativeOptionRemove:g.useCallback(H=>{te(Q=>{const oe=new Set(Q);return oe.delete(H),oe})},[]),children:n})}),z?l.jsxs(ew,{"aria-hidden":!0,required:b,tabIndex:-1,name:m,autoComplete:v,value:Z,onChange:H=>K(H.target.value),disabled:y,form:D,children:[Z===void 0?l.jsx("option",{value:""}):null,Array.from(q)]},X):null]})})};Ox.displayName=Qi;var Bx="SelectTrigger",Rx=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Zc(n),c=ci(Bx,n),d=c.disabled||r,h=Xt(t,c.onTriggerChange),p=Hc(n),m=g.useRef("touch"),[v,y,b]=nw(S=>{const L=p().filter(E=>!E.disabled),M=L.find(E=>E.value===c.value),w=rw(L,S,M);w!==void 0&&c.onValueChange(w.value)}),D=S=>{d||(c.onOpenChange(!0),b()),S&&(c.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return l.jsx(b9,{asChild:!0,...s,children:l.jsx(Pt.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":tw(c.value)?"":void 0,...o,ref:h,onClick:Je(o.onClick,S=>{S.currentTarget.focus(),m.current!=="mouse"&&D(S)}),onPointerDown:Je(o.onPointerDown,S=>{m.current=S.pointerType;const L=S.target;L.hasPointerCapture(S.pointerId)&&L.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(D(S),S.preventDefault())}),onKeyDown:Je(o.onKeyDown,S=>{const L=v.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&y(S.key),!(L&&S.key===" ")&&zA.includes(S.key)&&(D(),S.preventDefault())})})})});Rx.displayName=Bx;var Tx="SelectValue",Nx=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:c="",...d}=e,h=ci(Tx,n),{onValueNodeHasChildrenChange:p}=h,m=s!==void 0,v=Xt(t,h.onValueNodeChange);return In(()=>{p(m)},[p,m]),l.jsx(Pt.span,{...d,ref:v,style:{pointerEvents:"none"},children:tw(h.value)?l.jsx(l.Fragment,{children:c}):s})});Nx.displayName=Tx;var UA="SelectIcon",Fx=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsx(Pt.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Fx.displayName=UA;var qA="SelectPortal",Px=e=>l.jsx(k5,{asChild:!0,...e});Px.displayName=qA;var Ji="SelectContent",_x=g.forwardRef((e,t)=>{const n=ci(Ji,e.__scopeSelect),[r,o]=g.useState();if(In(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?M5.createPortal(l.jsx(Ix,{scope:e.__scopeSelect,children:l.jsx(zc.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),s):null}return l.jsx(zx,{...e,ref:t})});_x.displayName=Ji;var la=10,[Ix,fi]=O2(Ji),YA="SelectContentImpl",GA=w2("SelectContent.RemoveScroll"),zx=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:d,sideOffset:h,align:p,alignOffset:m,arrowPadding:v,collisionBoundary:y,collisionPadding:b,sticky:D,hideWhenDetached:S,avoidCollisions:L,...M}=e,w=ci(Ji,n),[E,O]=g.useState(null),[B,T]=g.useState(null),P=Xt(t,Ae=>O(Ae)),[_,Z]=g.useState(null),[K,W]=g.useState(null),z=Hc(n),[q,te]=g.useState(!1),X=g.useRef(!1);g.useEffect(()=>{if(E)return s9(E)},[E]),i9();const H=g.useCallback(Ae=>{const[Qe,...I]=z().map(Se=>Se.ref.current),[fe]=I.slice(-1),me=document.activeElement;for(const Se of Ae)if(Se===me||(Se?.scrollIntoView({block:"nearest"}),Se===Qe&&B&&(B.scrollTop=0),Se===fe&&B&&(B.scrollTop=B.scrollHeight),Se?.focus(),document.activeElement!==me))return},[z,B]),Q=g.useCallback(()=>H([_,E]),[H,_,E]);g.useEffect(()=>{q&&Q()},[q,Q]);const{onOpenChange:oe,triggerPointerDownPosRef:U}=w;g.useEffect(()=>{if(E){let Ae={x:0,y:0};const Qe=fe=>{Ae={x:Math.abs(Math.round(fe.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(fe.pageY)-(U.current?.y??0))}},I=fe=>{Ae.x<=10&&Ae.y<=10?fe.preventDefault():E.contains(fe.target)||oe(!1),document.removeEventListener("pointermove",Qe),U.current=null};return U.current!==null&&(document.addEventListener("pointermove",Qe),document.addEventListener("pointerup",I,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Qe),document.removeEventListener("pointerup",I,{capture:!0})}}},[E,oe,U]),g.useEffect(()=>{const Ae=()=>oe(!1);return window.addEventListener("blur",Ae),window.addEventListener("resize",Ae),()=>{window.removeEventListener("blur",Ae),window.removeEventListener("resize",Ae)}},[oe]);const[ie,N]=nw(Ae=>{const Qe=z().filter(me=>!me.disabled),I=Qe.find(me=>me.ref.current===document.activeElement),fe=rw(Qe,Ae,I);fe&&setTimeout(()=>fe.ref.current.focus())}),$=g.useCallback((Ae,Qe,I)=>{const fe=!X.current&&!I;(w.value!==void 0&&w.value===Qe||fe)&&(Z(Ae),fe&&(X.current=!0))},[w.value]),V=g.useCallback(()=>E?.focus(),[E]),se=g.useCallback((Ae,Qe,I)=>{const fe=!X.current&&!I;(w.value!==void 0&&w.value===Qe||fe)&&W(Ae)},[w.value]),ke=r==="popper"?v8:Hx,We=ke===v8?{side:d,sideOffset:h,align:p,alignOffset:m,arrowPadding:v,collisionBoundary:y,collisionPadding:b,sticky:D,hideWhenDetached:S,avoidCollisions:L}:{};return l.jsx(Ix,{scope:n,content:E,viewport:B,onViewportChange:T,itemRefCallback:$,selectedItem:_,onItemLeave:V,itemTextRefCallback:se,focusSelectedItem:Q,selectedItemText:K,position:r,isPositioned:q,searchRef:ie,children:l.jsx(Ac,{as:GA,allowPinchZoom:!0,children:l.jsx(kc,{asChild:!0,trapped:w.open,onMountAutoFocus:Ae=>{Ae.preventDefault()},onUnmountAutoFocus:Je(o,Ae=>{w.trigger?.focus({preventScroll:!0}),Ae.preventDefault()}),children:l.jsx(E5,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:Ae=>Ae.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:l.jsx(ke,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Ae=>Ae.preventDefault(),...M,...We,onPlaced:()=>te(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...M.style},onKeyDown:Je(M.onKeyDown,Ae=>{const Qe=Ae.ctrlKey||Ae.altKey||Ae.metaKey;if(Ae.key==="Tab"&&Ae.preventDefault(),!Qe&&Ae.key.length===1&&N(Ae.key),["ArrowUp","ArrowDown","Home","End"].includes(Ae.key)){let fe=z().filter(me=>!me.disabled).map(me=>me.ref.current);if(["ArrowUp","End"].includes(Ae.key)&&(fe=fe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Ae.key)){const me=Ae.target,Se=fe.indexOf(me);fe=fe.slice(Se+1)}setTimeout(()=>H(fe)),Ae.preventDefault()}})})})})})})});zx.displayName=YA;var KA="SelectItemAlignedPosition",Hx=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=ci(Ji,n),c=fi(Ji,n),[d,h]=g.useState(null),[p,m]=g.useState(null),v=Xt(t,P=>m(P)),y=Hc(n),b=g.useRef(!1),D=g.useRef(!0),{viewport:S,selectedItem:L,selectedItemText:M,focusSelectedItem:w}=c,E=g.useCallback(()=>{if(s.trigger&&s.valueNode&&d&&p&&S&&L&&M){const P=s.trigger.getBoundingClientRect(),_=p.getBoundingClientRect(),Z=s.valueNode.getBoundingClientRect(),K=M.getBoundingClientRect();if(s.dir!=="rtl"){const me=K.left-_.left,Se=Z.left-me,Xe=P.left-Se,He=P.width+Xe,Ct=Math.max(He,_.width),mt=window.innerWidth-la,dt=Q0(Se,[la,Math.max(la,mt-Ct)]);d.style.minWidth=He+"px",d.style.left=dt+"px"}else{const me=_.right-K.right,Se=window.innerWidth-Z.right-me,Xe=window.innerWidth-P.right-Se,He=P.width+Xe,Ct=Math.max(He,_.width),mt=window.innerWidth-la,dt=Q0(Se,[la,Math.max(la,mt-Ct)]);d.style.minWidth=He+"px",d.style.right=dt+"px"}const W=y(),z=window.innerHeight-la*2,q=S.scrollHeight,te=window.getComputedStyle(p),X=parseInt(te.borderTopWidth,10),H=parseInt(te.paddingTop,10),Q=parseInt(te.borderBottomWidth,10),oe=parseInt(te.paddingBottom,10),U=X+H+q+oe+Q,ie=Math.min(L.offsetHeight*5,U),N=window.getComputedStyle(S),$=parseInt(N.paddingTop,10),V=parseInt(N.paddingBottom,10),se=P.top+P.height/2-la,ke=z-se,We=L.offsetHeight/2,Ae=L.offsetTop+We,Qe=X+H+Ae,I=U-Qe;if(Qe<=se){const me=W.length>0&&L===W[W.length-1].ref.current;d.style.bottom="0px";const Se=p.clientHeight-S.offsetTop-S.offsetHeight,Xe=Math.max(ke,We+(me?V:0)+Se+Q),He=Qe+Xe;d.style.height=He+"px"}else{const me=W.length>0&&L===W[0].ref.current;d.style.top="0px";const Xe=Math.max(se,X+S.offsetTop+(me?$:0)+We)+I;d.style.height=Xe+"px",S.scrollTop=Qe-se+S.offsetTop}d.style.margin=`${la}px 0`,d.style.minHeight=ie+"px",d.style.maxHeight=z+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[y,s.trigger,s.valueNode,d,p,S,L,M,s.dir,r]);In(()=>E(),[E]);const[O,B]=g.useState();In(()=>{p&&B(window.getComputedStyle(p).zIndex)},[p]);const T=g.useCallback(P=>{P&&D.current===!0&&(E(),w?.(),D.current=!1)},[E,w]);return l.jsx(QA,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:b,onScrollButtonChange:T,children:l.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:l.jsx(Pt.div,{...o,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Hx.displayName=KA;var XA="SelectPopperPosition",v8=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=la,...s}=e,c=Zc(n);return l.jsx(S9,{...c,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});v8.displayName=XA;var[QA,T9]=O2(Ji,{}),y8="SelectViewport",Zx=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=fi(y8,n),c=T9(y8,n),d=Xt(t,s.onViewportChange),h=g.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),l.jsx(zc.Slot,{scope:n,children:l.jsx(Pt.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Je(o.onScroll,p=>{const m=p.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:y}=c;if(y?.current&&v){const b=Math.abs(h.current-m.scrollTop);if(b>0){const D=window.innerHeight-la*2,S=parseFloat(v.style.minHeight),L=parseFloat(v.style.height),M=Math.max(S,L);if(M<D){const w=M+b,E=Math.min(D,w),O=w-E;v.style.height=E+"px",v.style.bottom==="0px"&&(m.scrollTop=O>0?O:0,v.style.justifyContent="flex-end")}}}h.current=m.scrollTop})})})]})});Zx.displayName=y8;var Vx="SelectGroup",[JA,eO]=O2(Vx),tO=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Zr();return l.jsx(JA,{scope:n,id:o,children:l.jsx(Pt.div,{role:"group","aria-labelledby":o,...r,ref:t})})});tO.displayName=Vx;var Wx="SelectLabel",nO=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=eO(Wx,n);return l.jsx(Pt.div,{id:o.id,...r,ref:t})});nO.displayName=Wx;var J0="SelectItem",[rO,$x]=O2(J0),Ux=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...c}=e,d=ci(J0,n),h=fi(J0,n),p=d.value===r,[m,v]=g.useState(s??""),[y,b]=g.useState(!1),D=Xt(t,w=>h.itemRefCallback?.(w,r,o)),S=Zr(),L=g.useRef("touch"),M=()=>{o||(d.onValueChange(r),d.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(rO,{scope:n,value:r,disabled:o,textId:S,isSelected:p,onItemTextChange:g.useCallback(w=>{v(E=>E||(w?.textContent??"").trim())},[]),children:l.jsx(zc.ItemSlot,{scope:n,value:r,disabled:o,textValue:m,children:l.jsx(Pt.div,{role:"option","aria-labelledby":S,"data-highlighted":y?"":void 0,"aria-selected":p&&y,"data-state":p?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:D,onFocus:Je(c.onFocus,()=>b(!0)),onBlur:Je(c.onBlur,()=>b(!1)),onClick:Je(c.onClick,()=>{L.current!=="mouse"&&M()}),onPointerUp:Je(c.onPointerUp,()=>{L.current==="mouse"&&M()}),onPointerDown:Je(c.onPointerDown,w=>{L.current=w.pointerType}),onPointerMove:Je(c.onPointerMove,w=>{L.current=w.pointerType,o?h.onItemLeave?.():L.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Je(c.onPointerLeave,w=>{w.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:Je(c.onKeyDown,w=>{h.searchRef?.current!==""&&w.key===" "||(HA.includes(w.key)&&M(),w.key===" "&&w.preventDefault())})})})})});Ux.displayName=J0;var Pl="SelectItemText",qx=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,c=ci(Pl,n),d=fi(Pl,n),h=$x(Pl,n),p=$A(Pl,n),[m,v]=g.useState(null),y=Xt(t,M=>v(M),h.onItemTextChange,M=>d.itemTextRefCallback?.(M,h.value,h.disabled)),b=m?.textContent,D=g.useMemo(()=>l.jsx("option",{value:h.value,disabled:h.disabled,children:b},h.value),[h.disabled,h.value,b]),{onNativeOptionAdd:S,onNativeOptionRemove:L}=p;return In(()=>(S(D),()=>L(D)),[S,L,D]),l.jsxs(l.Fragment,{children:[l.jsx(Pt.span,{id:h.textId,...s,ref:y}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren?M5.createPortal(s.children,c.valueNode):null]})});qx.displayName=Pl;var Yx="SelectItemIndicator",Gx=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return $x(Yx,n).isSelected?l.jsx(Pt.span,{"aria-hidden":!0,...r,ref:t}):null});Gx.displayName=Yx;var x8="SelectScrollUpButton",Kx=g.forwardRef((e,t)=>{const n=fi(x8,e.__scopeSelect),r=T9(x8,e.__scopeSelect),[o,s]=g.useState(!1),c=Xt(t,r.onScrollButtonChange);return In(()=>{if(n.viewport&&n.isPositioned){let d=function(){const p=h.scrollTop>0;s(p)};const h=n.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),o?l.jsx(Qx,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=n;d&&h&&(d.scrollTop=d.scrollTop-h.offsetHeight)}}):null});Kx.displayName=x8;var w8="SelectScrollDownButton",Xx=g.forwardRef((e,t)=>{const n=fi(w8,e.__scopeSelect),r=T9(w8,e.__scopeSelect),[o,s]=g.useState(!1),c=Xt(t,r.onScrollButtonChange);return In(()=>{if(n.viewport&&n.isPositioned){let d=function(){const p=h.scrollHeight-h.clientHeight,m=Math.ceil(h.scrollTop)<p;s(m)};const h=n.viewport;return d(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),o?l.jsx(Qx,{...e,ref:c,onAutoScroll:()=>{const{viewport:d,selectedItem:h}=n;d&&h&&(d.scrollTop=d.scrollTop+h.offsetHeight)}}):null});Xx.displayName=w8;var Qx=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=fi("SelectScrollButton",n),c=g.useRef(null),d=Hc(n),h=g.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return g.useEffect(()=>()=>h(),[h]),In(()=>{d().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[d]),l.jsx(Pt.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Je(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:Je(o.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:Je(o.onPointerLeave,()=>{h()})})}),aO="SelectSeparator",Jx=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(Pt.div,{"aria-hidden":!0,...r,ref:t})});Jx.displayName=aO;var b8="SelectArrow",oO=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Zc(n),s=ci(b8,n),c=fi(b8,n);return s.open&&c.position==="popper"?l.jsx(D9,{...o,...r,ref:t}):null});oO.displayName=b8;var iO="SelectBubbleInput",ew=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=g.useRef(null),s=Xt(r,o),c=d9(t);return g.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(h,"value").set;if(c!==t&&m){const v=new Event("change",{bubbles:!0});m.call(d,t),d.dispatchEvent(v)}},[c,t]),l.jsx(Pt.select,{...n,style:{...pv,...n.style},ref:s,defaultValue:t})});ew.displayName=iO;function tw(e){return e===""||e===void 0}function nw(e){const t=$r(e),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(c=>{const d=n.current+c;t(d),(function h(p){n.current=p,window.clearTimeout(r.current),p!==""&&(r.current=window.setTimeout(()=>h(""),1e3))})(d)},[t]),s=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function rw(e,t,n){const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=sO(e,Math.max(s,0));o.length===1&&(c=c.filter(p=>p!==n));const h=c.find(p=>p.textValue.toLowerCase().startsWith(o.toLowerCase()));return h!==n?h:void 0}function sO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var lO=Ox,uO=Rx,cO=Nx,fO=Fx,dO=Px,hO=_x,pO=Zx,CO=Ux,gO=qx,mO=Gx,vO=Kx,yO=Xx,xO=Jx,aw=["PageUp","PageDown"],ow=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],iw={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},B2="Slider",[S8,wO,bO]=Mc(B2),[sw]=Ca(B2,[bO]),[SO,Vc]=sw(B2),lw=g.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:h=0,defaultValue:p=[r],value:m,onValueChange:v=()=>{},onValueCommit:y=()=>{},inverted:b=!1,form:D,...S}=e,L=g.useRef(new Set),M=g.useRef(0),E=c==="horizontal"?DO:LO,[O=[],B]=Ta({prop:m,defaultProp:p,onChange:W=>{[...L.current][M.current]?.focus(),v(W)}}),T=g.useRef(O);function P(W){const z=AO(O,W);K(W,z)}function _(W){K(W,M.current)}function Z(){const W=T.current[M.current];O[M.current]!==W&&y(O)}function K(W,z,{commit:q}={commit:!1}){const te=TO(s),X=NO(Math.round((W-r)/s)*s+r,te),H=Q0(X,[r,o]);B((Q=[])=>{const oe=kO(Q,H,z);if(RO(oe,h*s)){M.current=oe.indexOf(H);const U=String(oe)!==String(Q);return U&&q&&y(oe),U?oe:Q}else return Q})}return l.jsx(SO,{scope:e.__scopeSlider,name:n,disabled:d,min:r,max:o,valueIndexToChangeRef:M,thumbs:L.current,values:O,orientation:c,form:D,children:l.jsx(S8.Provider,{scope:e.__scopeSlider,children:l.jsx(S8.Slot,{scope:e.__scopeSlider,children:l.jsx(E,{"aria-disabled":d,"data-disabled":d?"":void 0,...S,ref:t,onPointerDown:Je(S.onPointerDown,()=>{d||(T.current=O)}),min:r,max:o,inverted:b,onSlideStart:d?void 0:P,onSlideMove:d?void 0:_,onSlideEnd:d?void 0:Z,onHomeKeyDown:()=>!d&&K(r,0,{commit:!0}),onEndKeyDown:()=>!d&&K(o,O.length-1,{commit:!0}),onStepKeyDown:({event:W,direction:z})=>{if(!d){const X=aw.includes(W.key)||W.shiftKey&&ow.includes(W.key)?10:1,H=M.current,Q=O[H],oe=s*X*z;K(Q+oe,H,{commit:!0})}}})})})})});lw.displayName=B2;var[uw,cw]=sw(B2,{startEdge:"left",endEdge:"right",size:"width",direction:1}),DO=g.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:c,onSlideMove:d,onSlideEnd:h,onStepKeyDown:p,...m}=e,[v,y]=g.useState(null),b=Xt(t,E=>y(E)),D=g.useRef(void 0),S=Ec(o),L=S==="ltr",M=L&&!s||!L&&s;function w(E){const O=D.current||v.getBoundingClientRect(),B=[0,O.width],P=N9(B,M?[n,r]:[r,n]);return D.current=O,P(E-O.left)}return l.jsx(uw,{scope:e.__scopeSlider,startEdge:M?"left":"right",endEdge:M?"right":"left",direction:M?1:-1,size:"width",children:l.jsx(fw,{dir:S,"data-orientation":"horizontal",...m,ref:b,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:E=>{const O=w(E.clientX);c?.(O)},onSlideMove:E=>{const O=w(E.clientX);d?.(O)},onSlideEnd:()=>{D.current=void 0,h?.()},onStepKeyDown:E=>{const B=iw[M?"from-left":"from-right"].includes(E.key);p?.({event:E,direction:B?-1:1})}})})}),LO=g.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:c,onSlideEnd:d,onStepKeyDown:h,...p}=e,m=g.useRef(null),v=Xt(t,m),y=g.useRef(void 0),b=!o;function D(S){const L=y.current||m.current.getBoundingClientRect(),M=[0,L.height],E=N9(M,b?[r,n]:[n,r]);return y.current=L,E(S-L.top)}return l.jsx(uw,{scope:e.__scopeSlider,startEdge:b?"bottom":"top",endEdge:b?"top":"bottom",size:"height",direction:b?1:-1,children:l.jsx(fw,{"data-orientation":"vertical",...p,ref:v,style:{...p.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:S=>{const L=D(S.clientY);s?.(L)},onSlideMove:S=>{const L=D(S.clientY);c?.(L)},onSlideEnd:()=>{y.current=void 0,d?.()},onStepKeyDown:S=>{const M=iw[b?"from-bottom":"from-top"].includes(S.key);h?.({event:S,direction:M?-1:1})}})})}),fw=g.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:c,onEndKeyDown:d,onStepKeyDown:h,...p}=e,m=Vc(B2,n);return l.jsx(Pt.span,{...p,ref:t,onKeyDown:Je(e.onKeyDown,v=>{v.key==="Home"?(c(v),v.preventDefault()):v.key==="End"?(d(v),v.preventDefault()):aw.concat(ow).includes(v.key)&&(h(v),v.preventDefault())}),onPointerDown:Je(e.onPointerDown,v=>{const y=v.target;y.setPointerCapture(v.pointerId),v.preventDefault(),m.thumbs.has(y)?y.focus():r(v)}),onPointerMove:Je(e.onPointerMove,v=>{v.target.hasPointerCapture(v.pointerId)&&o(v)}),onPointerUp:Je(e.onPointerUp,v=>{const y=v.target;y.hasPointerCapture(v.pointerId)&&(y.releasePointerCapture(v.pointerId),s(v))})})}),dw="SliderTrack",hw=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Vc(dw,n);return l.jsx(Pt.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});hw.displayName=dw;var D8="SliderRange",pw=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Vc(D8,n),s=cw(D8,n),c=g.useRef(null),d=Xt(t,c),h=o.values.length,p=o.values.map(y=>mw(y,o.min,o.max)),m=h>1?Math.min(...p):0,v=100-Math.max(...p);return l.jsx(Pt.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:d,style:{...e.style,[s.startEdge]:m+"%",[s.endEdge]:v+"%"}})});pw.displayName=D8;var L8="SliderThumb",Cw=g.forwardRef((e,t)=>{const n=wO(e.__scopeSlider),[r,o]=g.useState(null),s=Xt(t,d=>o(d)),c=g.useMemo(()=>r?n().findIndex(d=>d.ref.current===r):-1,[n,r]);return l.jsx(MO,{...e,ref:s,index:c})}),MO=g.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,c=Vc(L8,n),d=cw(L8,n),[h,p]=g.useState(null),m=Xt(t,w=>p(w)),v=h?c.form||!!h.closest("form"):!0,y=h9(h),b=c.values[r],D=b===void 0?0:mw(b,c.min,c.max),S=jO(r,c.values.length),L=y?.[d.size],M=L?OO(L,D,d.direction):0;return g.useEffect(()=>{if(h)return c.thumbs.add(h),()=>{c.thumbs.delete(h)}},[h,c.thumbs]),l.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:`calc(${D}% + ${M}px)`},children:[l.jsx(S8.ItemSlot,{scope:e.__scopeSlider,children:l.jsx(Pt.span,{role:"slider","aria-label":e["aria-label"]||S,"aria-valuemin":c.min,"aria-valuenow":b,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...s,ref:m,style:b===void 0?{display:"none"}:e.style,onFocus:Je(e.onFocus,()=>{c.valueIndexToChangeRef.current=r})})}),v&&l.jsx(gw,{name:o??(c.name?c.name+(c.values.length>1?"[]":""):void 0),form:c.form,value:b},r)]})});Cw.displayName=L8;var EO="RadioBubbleInput",gw=g.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=g.useRef(null),s=Xt(o,r),c=d9(t);return g.useEffect(()=>{const d=o.current;if(!d)return;const h=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(h,"value").set;if(c!==t&&m){const v=new Event("input",{bubbles:!0});m.call(d,t),d.dispatchEvent(v)}},[c,t]),l.jsx(Pt.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});gw.displayName=EO;function kO(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function mw(e,t,n){const s=100/(n-t)*(e-t);return Q0(s,[0,100])}function jO(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function AO(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function OO(e,t,n){const r=e/2,s=N9([0,50],[0,r]);return(r-s(t)*n)*n}function BO(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function RO(e,t){if(t>0){const n=BO(e);return Math.min(...n)>=t}return!0}function N9(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function TO(e){return(String(e).split(".")[1]||"").length}function NO(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var FO=lw,PO=hw,_O=pw,IO=Cw,Wc="Switch",[zO]=Ca(Wc),[HO,ZO]=zO(Wc),vw=g.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:c,disabled:d,value:h="on",onCheckedChange:p,form:m,...v}=e,[y,b]=g.useState(null),D=Xt(t,E=>b(E)),S=g.useRef(!1),L=y?m||!!y.closest("form"):!0,[M,w]=Ta({prop:o,defaultProp:s??!1,onChange:p,caller:Wc});return l.jsxs(HO,{scope:n,checked:M,disabled:d,children:[l.jsx(Pt.button,{type:"button",role:"switch","aria-checked":M,"aria-required":c,"data-state":bw(M),"data-disabled":d?"":void 0,disabled:d,value:h,...v,ref:D,onClick:Je(e.onClick,E=>{w(O=>!O),L&&(S.current=E.isPropagationStopped(),S.current||E.stopPropagation())})}),L&&l.jsx(ww,{control:y,bubbles:!S.current,name:r,value:h,checked:M,required:c,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});vw.displayName=Wc;var yw="SwitchThumb",xw=g.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=ZO(yw,n);return l.jsx(Pt.span,{"data-state":bw(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});xw.displayName=yw;var VO="SwitchBubbleInput",ww=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const c=g.useRef(null),d=Xt(c,s),h=d9(n),p=h9(t);return g.useEffect(()=>{const m=c.current;if(!m)return;const v=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(v,"checked").set;if(h!==n&&b){const D=new Event("click",{bubbles:r});b.call(m,n),m.dispatchEvent(D)}},[h,n,r]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:d,style:{...o.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ww.displayName=VO;function bw(e){return e?"checked":"unchecked"}var WO=vw,$O=xw,[$c]=Ca("Tooltip",[A2]),Uc=A2(),Sw="TooltipProvider",UO=700,M8="tooltip.open",[qO,F9]=$c(Sw),Dw=e=>{const{__scopeTooltip:t,delayDuration:n=UO,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,c=g.useRef(!0),d=g.useRef(!1),h=g.useRef(0);return g.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),l.jsx(qO,{scope:t,isOpenDelayedRef:c,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(h.current),c.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:g.useCallback(p=>{d.current=p},[]),disableHoverableContent:o,children:s})};Dw.displayName=Sw;var f5="Tooltip",[YO,T5]=$c(f5),Lw=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:c,delayDuration:d}=e,h=F9(f5,e.__scopeTooltip),p=Uc(t),[m,v]=g.useState(null),y=Zr(),b=g.useRef(0),D=c??h.disableHoverableContent,S=d??h.delayDuration,L=g.useRef(!1),[M,w]=Ta({prop:r,defaultProp:o??!1,onChange:P=>{P?(h.onOpen(),document.dispatchEvent(new CustomEvent(M8))):h.onClose(),s?.(P)},caller:f5}),E=g.useMemo(()=>M?L.current?"delayed-open":"instant-open":"closed",[M]),O=g.useCallback(()=>{window.clearTimeout(b.current),b.current=0,L.current=!1,w(!0)},[w]),B=g.useCallback(()=>{window.clearTimeout(b.current),b.current=0,w(!1)},[w]),T=g.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{L.current=!0,w(!0),b.current=0},S)},[S,w]);return g.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),l.jsx(Fc,{...p,children:l.jsx(YO,{scope:t,contentId:y,open:M,stateAttribute:E,trigger:m,onTriggerChange:v,onTriggerEnter:g.useCallback(()=>{h.isOpenDelayedRef.current?T():O()},[h.isOpenDelayedRef,T,O]),onTriggerLeave:g.useCallback(()=>{D?B():(window.clearTimeout(b.current),b.current=0)},[B,D]),onOpen:O,onClose:B,disableHoverableContent:D,children:n})})};Lw.displayName=f5;var E8="TooltipTrigger",Mw=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=T5(E8,n),s=F9(E8,n),c=Uc(n),d=g.useRef(null),h=Xt(t,d,o.onTriggerChange),p=g.useRef(!1),m=g.useRef(!1),v=g.useCallback(()=>p.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),l.jsx(b9,{asChild:!0,...c,children:l.jsx(Pt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:h,onPointerMove:Je(e.onPointerMove,y=>{y.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:Je(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:Je(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:Je(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:Je(e.onBlur,o.onClose),onClick:Je(e.onClick,o.onClose)})})});Mw.displayName=E8;var P9="TooltipPortal",[GO,KO]=$c(P9,{forceMount:void 0}),Ew=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=T5(P9,t);return l.jsx(GO,{scope:t,forceMount:n,children:l.jsx(Pa,{present:n||s.open,children:l.jsx(k5,{asChild:!0,container:o,children:r})})})};Ew.displayName=P9;var S2="TooltipContent",kw=g.forwardRef((e,t)=>{const n=KO(S2,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,c=T5(S2,e.__scopeTooltip);return l.jsx(Pa,{present:r||c.open,children:c.disableHoverableContent?l.jsx(jw,{side:o,...s,ref:t}):l.jsx(XO,{side:o,...s,ref:t})})}),XO=g.forwardRef((e,t)=>{const n=T5(S2,e.__scopeTooltip),r=F9(S2,e.__scopeTooltip),o=g.useRef(null),s=Xt(t,o),[c,d]=g.useState(null),{trigger:h,onClose:p}=n,m=o.current,{onPointerInTransitChange:v}=r,y=g.useCallback(()=>{d(null),v(!1)},[v]),b=g.useCallback((D,S)=>{const L=D.currentTarget,M={x:D.clientX,y:D.clientY},w=tB(M,L.getBoundingClientRect()),E=nB(M,w),O=rB(S.getBoundingClientRect()),B=oB([...E,...O]);d(B),v(!0)},[v]);return g.useEffect(()=>()=>y(),[y]),g.useEffect(()=>{if(h&&m){const D=L=>b(L,m),S=L=>b(L,h);return h.addEventListener("pointerleave",D),m.addEventListener("pointerleave",S),()=>{h.removeEventListener("pointerleave",D),m.removeEventListener("pointerleave",S)}}},[h,m,b,y]),g.useEffect(()=>{if(c){const D=S=>{const L=S.target,M={x:S.clientX,y:S.clientY},w=h?.contains(L)||m?.contains(L),E=!aB(M,c);w?y():E&&(y(),p())};return document.addEventListener("pointermove",D),()=>document.removeEventListener("pointermove",D)}},[h,m,c,p,y]),l.jsx(jw,{...e,ref:s})}),[QO,JO]=$c(f5,{isInside:!1}),eB=GL("TooltipContent"),jw=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,...d}=e,h=T5(S2,n),p=Uc(n),{onClose:m}=h;return g.useEffect(()=>(document.addEventListener(M8,m),()=>document.removeEventListener(M8,m)),[m]),g.useEffect(()=>{if(h.trigger){const v=y=>{y.target?.contains(h.trigger)&&m()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[h.trigger,m]),l.jsx(E5,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:v=>v.preventDefault(),onDismiss:m,children:l.jsxs(S9,{"data-state":h.stateAttribute,...p,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(eB,{children:r}),l.jsx(QO,{scope:n,isInside:!0,children:l.jsx(tM,{id:h.contentId,role:"tooltip",children:o||r})})]})})});kw.displayName=S2;var Aw="TooltipArrow",Ow=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Uc(n);return JO(Aw,n).isInside?null:l.jsx(D9,{...o,...r,ref:t})});Ow.displayName=Aw;function tB(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function nB(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function rB(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function aB(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const d=t[s],h=t[c],p=d.x,m=d.y,v=h.x,y=h.y;m>r!=y>r&&n<(v-p)*(r-m)/(y-m)+p&&(o=!o)}return o}function oB(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),iB(t)}function iB(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],c=t[t.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var sB=Dw,lB=Lw,uB=Mw,cB=Ew,fB=kw,dB=Ow;function hB({delayDuration:e=0,...t}){return l.jsx(sB,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function Yt(e){return l.jsx(lB,{"data-slot":"tooltip",...e})}function Gt(e){return l.jsx(uB,{"data-slot":"tooltip-trigger",...e})}function Kt({className:e,sideOffset:t=0,children:n,...r}){return l.jsx(cB,{children:l.jsxs(fB,{"data-slot":"tooltip-content",sideOffset:t,className:"drawo-tooltip-content"+(e?" "+e:""),...r,children:[n,l.jsx(dB,{className:"drawo-tooltip-arrow"})]})})}const Bw=()=>({elements:[],selectedId:null,selectedIds:[],camera:{x:0,y:0,zoom:1},settings:{showGrid:!0,gridStyle:"dots",snapToGrid:!1,smartGuides:!0,quillDrawOptimizations:!0,gridSize:24,theme:"light",colorScheme:"drawo",zenMode:!1,presentationMode:!1,drawDefaults:{canvas:"#f4f5f4",drawStroke:"#2f3b52",markerStroke:"#f1e66d",quillStroke:"#2f3b52",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#f5f5f5",stroke:"#cccccc",textColor:"#2f3b52",lineStroke:"#2f3b52"},laserSettings:{lifetime:600,baseWidth:11,minWidth:.3,shadow:!1,color:"#FF1A28"}}}),ua=e=>Array.isArray(e.points)&&e.points.length>=2,ec=(e,t)=>e==="line arrow"||e==="triangle arrow"||e==="inverted triangle"||e==="diamond arrow"?Math.max(8,t*1.5):e==="circular arrow"?Math.max(4,t*.75):0,D2=e=>{let t=1/0,n=1/0,r=-1/0,o=-1/0;for(const s of e)s.x<t&&(t=s.x),s.y<n&&(n=s.y),s.x>r&&(r=s.x),s.y>o&&(o=s.y);return{x:t,y:n,width:Math.max(1,r-t),height:Math.max(1,o-n)}},wp=(e,t,n,r,o,s)=>{const c=o-n,d=s-r,h=c*c+d*d;if(h===0)return Math.hypot(e-n,t-r);const p=Math.max(0,Math.min(1,((e-n)*c+(t-r)*d)/h)),m=n+p*c,v=r+p*d;return Math.hypot(e-m,t-v)},pB=(e,t,n)=>{const r=e[t-1]??e[t],o=e[t],s=e[t+1],c=e[t+2]??s,d=Math.max(.2,Math.min(1.8,n));return{p1:o,p2:s,cp1:{x:o.x+(s.x-r.x)*d/6,y:o.y+(s.y-r.y)*d/6},cp2:{x:s.x-(c.x-o.x)*d/6,y:s.y-(c.y-o.y)*d/6}}},CB=(e,t,n)=>{const r=Math.max(8,e.strokeWidth*1.5),o=e.x+e.width/2,s=e.y+e.height/2,c=e.rotation*Math.PI/180,d=Math.cos(-c),h=Math.sin(-c),p=t-o,m=n-s,v=p*d-m*h,y=p*h+m*d;if(ua(e)&&e.points){const E=e.points.map(O=>{const B=O.x-o,T=O.y-s;return{x:B*d-T*h,y:B*h+T*d}});if(E.length===1)return Math.hypot(v-E[0].x,y-E[0].y)<=r;if(E.length===2)return wp(v,y,E[0].x,E[0].y,E[1].x,E[1].y)<=r;for(let O=0;O<E.length-1;O++){const B=pB(E,O,1.25);let T={x:B.p1.x,y:B.p1.y};const P=18;for(let _=1;_<=P;_++){const Z=_/P,K=1-Z,W={x:K*K*K*B.p1.x+3*K*K*Z*B.cp1.x+3*K*Z*Z*B.cp2.x+Z*Z*Z*B.p2.x,y:K*K*K*B.p1.y+3*K*K*Z*B.cp1.y+3*K*Z*Z*B.cp2.y+Z*Z*Z*B.p2.y};if(wp(v,y,T.x,T.y,W.x,W.y)<=r)return!0;T=W}}return!1}const b={x:e.x-o,y:e.y-s},D={x:e.x+e.width-o,y:e.y+e.height-s},S=e.controlPoint?{x:e.controlPoint.x-o,y:e.controlPoint.y-s}:null;if(!S){const E=D.x-b.x,O=D.y-b.y,B=E*E+O*O;if(B===0)return Math.hypot(v-b.x,y-b.y)<=r;let T=((v-b.x)*E+(y-b.y)*O)/B;T=Math.max(0,Math.min(1,T));const P=b.x+T*E,_=b.y+T*O;return Math.hypot(v-P,y-_)<=r}const L={x:S.x*2-(b.x+D.x)*.5,y:S.y*2-(b.y+D.y)*.5},M=28;let w=b;for(let E=1;E<=M;E++){const O=E/M,B=1-O,T={x:B*B*b.x+2*B*O*L.x+O*O*D.x,y:B*B*b.y+2*B*O*L.y+O*O*D.y},P=T.x-w.x,_=T.y-w.y,Z=P*P+_*_;if(Z>0){const K=Math.max(0,Math.min(1,((v-w.x)*P+(y-w.y)*_)/Z)),W=w.x+K*P,z=w.y+K*_;if(Math.hypot(v-W,y-z)<=r)return!0}w=T}return!1},R2=(e,t,n,r,o)=>{const s=Math.cos(o),c=Math.sin(o),d=e-n,h=t-r;return{x:d*s-h*c+n,y:d*c+h*s+r}},Rw=(e,t)=>t==="marker"?Math.max(6,e*.65):t==="quill"?Math.max(4,e*1.45):Math.max(3,e/2),gB=(e,t,n,r,o,s)=>{const c=o-n,d=s-r,h=c*c+d*d;if(h===0)return Math.hypot(e-n,t-r);const p=Math.max(0,Math.min(1,((e-n)*c+(t-r)*d)/h)),m=n+p*c,v=r+p*d;return Math.hypot(e-m,t-v)},mB=(e,t,n)=>{if(e.points.length===0)return!1;const r=e.x+e.width/2,o=e.y+e.height/2,s=R2(t,n,r,o,-e.rotation*Math.PI/180),c=s.x-e.x,d=s.y-e.y,h=e.drawMode==="marker"?Math.max(8,e.strokeWidth*1.35):e.drawMode==="quill"?Math.max(7,e.strokeWidth*2.2):Math.max(6,e.strokeWidth*2);for(let p=1;p<e.points.length;p++){const m=e.points[p-1],v=e.points[p];if(gB(c,d,m.x,m.y,v.x,v.y)<=h)return!0}if(e.points.length===1){const p=e.points[0];return Math.hypot(c-p.x,d-p.y)<=h}return!1},vB=(e,t,n)=>{const r=e.x+e.width/2,o=e.y+e.height/2,s=R2(t,n,r,o,-e.rotation*Math.PI/180),c=Math.max(1,e.width/2),d=Math.max(1,e.height/2),h=(s.x-r)/c,p=(s.y-o)/d;return h*h+p*p<=1},An=e=>`${e}-${Date.now()}-${Math.random().toString(36).slice(2,7)}`,Tw=(e,t,n)=>{const r=e.x+e.width/2,o=e.y+e.height/2,s=R2(t,n,r,o,-e.rotation*Math.PI/180);return s.x>=e.x&&s.x<=e.x+e.width&&s.y>=e.y&&s.y<=e.y+e.height},yB=(e,t,n)=>{const r=e.x+e.width/2,o=e.y+e.height/2,s=R2(t,n,r,o,-e.rotation*Math.PI/180);return s.x>=e.x&&s.x<=e.x+e.width&&s.y>=e.y&&s.y<=e.y+e.height},xB=(e,t,n)=>{const r=e.x+e.width/2,o=e.y+e.height/2,s=R2(t,n,r,o,-e.rotation*Math.PI/180);return s.x>=e.x&&s.x<=e.x+e.width&&s.y>=e.y&&s.y<=e.y+e.height},kl=e=>`${e.fontStyle} ${e.fontWeight} ${e.fontSize}px ${e.fontFamily}`,wB=e=>Array.isArray(e)&&e.every(t=>t!==null&&typeof t=="object"&&!Array.isArray(t)),bp=e=>{const t=e.split(`
54
+ `);return(t.length>0?t:[""]).map(n=>({runs:[{text:n}]}))},bB=e=>{const t=[];for(const n of e){const r=Array.isArray(n.children)?n.children:[],o=[];for(const s of r){const c=typeof s.text=="string"?s.text:"",d=s.bold===!0?!0:s.bold===!1?!1:void 0,h=s.italic===!0?!0:s.italic===!1?!1:void 0,p=s.strikethrough===!0?!0:s.strikethrough===!1?!1:void 0;o.push({text:c,bold:d,italic:h,strikethrough:p})}t.push({runs:o.length>0?o:[{text:""}]})}return t.length>0?t:[{runs:[{text:""}]}]},qc=e=>{if(!e.trim())return[{runs:[{text:""}]}];try{const t=JSON.parse(e);if(wB(t))return bB(t)}catch{return bp(e)}return bp(e)},tc=e=>e*1.2,rs=e=>{const t=Math.max(1,qc(e.text).length);return e.fontSize+(t-1)*tc(e.fontSize)},d5=(e,t)=>{const n=t.bold===!0?"700":t.bold===!1?"400":e.fontWeight;return`${t.italic===!0?"italic":t.italic===!1?"normal":e.fontStyle} ${n} ${e.fontSize}px ${e.fontFamily}`},Nw=(e,t,n)=>{let r=0;for(const o of n.runs)o.text&&(e.font=d5(t,o),r+=e.measureText(o.text).width);return r},di=e=>qc(e.text).map(n=>n.runs.reduce((r,o)=>r+o.text.length,0)).reduce((n,r)=>Math.max(n,r),0)*e.fontSize*.6,T2=e=>{const t=di(e);return e.textAlign==="center"?e.x-t/2:e.textAlign==="right"||e.textAlign==="end"?e.x-t:e.x},SB=(e,t,n)=>{const r=di(e),o=rs(e),s=T2(e),c=e.y-e.fontSize,d=s+r/2,h=c+o/2,p=R2(t,n,d,h,-e.rotation*Math.PI/180);return p.x>=s&&p.x<=s+r&&p.y>=c&&p.y<=c+o},Fw=()=>`group-${An("draw")}`,N5=e=>e.selectedIds.length>0?e.selectedIds:e.selectedId?[e.selectedId]:[],DB=e=>e.type==="rectangle"||e.type==="circle"||e.type==="image"||e.type==="svg"||e.type==="draw"||e.type==="line"?Math.min(e.x,e.x+e.width):e.x,LB=e=>e.type==="rectangle"||e.type==="circle"||e.type==="image"||e.type==="svg"||e.type==="draw"||e.type==="line"?Math.min(e.y,e.y+e.height):e.y,Pw=(e,t,n)=>{const r=new Map;return e.map(o=>{const s=typeof o.groupId=="string"?r.get(o.groupId)??(()=>{const c=Fw();return r.set(o.groupId,c),c})():null;return o.type==="line"?{...o,id:An(o.type),groupId:s,x:o.x+t,y:o.y+n,controlPoint:o.controlPoint?{x:o.controlPoint.x+t,y:o.controlPoint.y+n}:null,points:o.points?.map(c=>({x:c.x+t,y:c.y+n}))}:{...o,id:An(o.type),groupId:s,x:o.x+t,y:o.y+n}})},MB=(e,t)=>({...e,selectedId:t,selectedIds:t?[t]:[]}),n2=(e,t)=>{const n=Array.from(new Set(t));return{...e,selectedId:n[0]??null,selectedIds:n}},nc=e=>{const t=N5(e),n=t.length>0?new Set(t):null;return n?{...e,elements:e.elements.filter(r=>!n.has(r.id)),selectedId:null,selectedIds:[]}:e},_w=(e,t=24,n=24)=>{const r=N5(e);if(r.length===0)return e;const o=new Set(r),s=e.elements.filter(d=>o.has(d.id));if(s.length===0)return e;const c=Pw(s,t,n);return{...e,elements:[...e.elements,...c],selectedId:c[0]?.id??null,selectedIds:c.map(d=>d.id)}},EB=(e,t,n)=>{if(t.length===0)return e;const{offsetX:r=0,offsetY:o=0,anchorX:s,anchorY:c}=n??{},d=Math.min(...t.map(DB)),h=Math.min(...t.map(LB)),p=typeof s=="number"?s-d:r,m=typeof c=="number"?c-h:o,v=Pw(t,p,m);return{...e,elements:[...e.elements,...v],selectedId:v[0]?.id??null,selectedIds:v.map(y=>y.id)}},kB=(e,t)=>{const n=N5(e);if(n.length===0)return e;const r=new Set(n),o=[...e.elements];if(t==="front")return{...e,elements:[...o.filter(s=>!r.has(s.id)),...o.filter(s=>r.has(s.id))]};if(t==="back")return{...e,elements:[...o.filter(s=>r.has(s.id)),...o.filter(s=>!r.has(s.id))]};if(t==="forward")for(let s=o.length-2;s>=0;s-=1){const c=o[s],d=o[s+1];r.has(c.id)&&!r.has(d.id)&&(o[s]=d,o[s+1]=c)}else for(let s=1;s<o.length;s+=1){const c=o[s],d=o[s-1];r.has(c.id)&&!r.has(d.id)&&(o[s]=d,o[s-1]=c)}return{...e,elements:o}},k8=(e,t)=>{const n=e.elements.find(r=>r.id===t);return n?n.groupId?e.elements.filter(r=>r.groupId===n.groupId).map(r=>r.id):[n.id]:[]},Iw=e=>{const t=N5(e);if(t.length<2)return e;const n=new Set(t),r=Fw();return{...e,elements:e.elements.map(o=>n.has(o.id)?{...o,groupId:r}:o)}},zw=e=>{const t=N5(e);if(t.length===0)return e;const n=new Set(t),r=new Set(e.elements.filter(o=>n.has(o.id)&&o.groupId).map(o=>o.groupId));return r.size===0?e:{...e,elements:e.elements.map(o=>o.groupId&&r.has(o.groupId)?{...o,groupId:null}:o)}},cr=(e,t)=>{const n={...e.settings,...t};return t.zenMode===!0&&(n.presentationMode=!1),t.presentationMode===!0&&(n.zenMode=!1),n.zenMode&&n.presentationMode&&(n.presentationMode=!1),{...e,settings:n}},as=e=>e.type==="text"||e.type==="rectangle"||e.type==="circle",jB=(e,t,n)=>({...e,elements:e.elements.map(r=>r.id!==t||!as(r)?r:{...r,text:n})}),AB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||!as(o)?o:{...o,fontFamily:n})}},OB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t),o=Math.max(10,Math.round(n));return{...e,elements:e.elements.map(s=>!r.has(s.id)||!as(s)?s:{...s,fontSize:o})}},BB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||!as(o)?o:{...o,fontWeight:n})}},RB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||!as(o)?o:{...o,fontStyle:n})}},TB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||!as(o)?o:{...o,textAlign:n})}},NB=(e,t,n)=>{if(t.length===0||n==="multi")return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||!as(o)?o:{...o,color:n})}},FB=(e,t,n,r,o)=>({...e,elements:e.elements.map(s=>s.id!==t||s.type!=="text"?s:{...s,x:n,y:r,fontSize:o})}),PB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t),o=Math.max(0,n);return{...e,elements:e.elements.map(s=>!r.has(s.id)||s.type!=="rectangle"?s:{...s,borderRadius:o})}},_B=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t),o=Math.max(1,n);return{...e,elements:e.elements.map(s=>!r.has(s.id)||s.type!=="draw"&&s.type!=="line"?s:{...s,strokeWidth:o})}},IB=(e,t,n)=>{if(t.length===0||n==="multi")return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||o.type!=="draw"&&o.type!=="line"?o:{...o,stroke:n})}},zB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||o.type!=="rectangle"&&o.type!=="circle"&&o.type!=="svg"?o:{...o,fillStyle:n})}},HB=(e,t,n)=>{if(t.length===0||n==="multi")return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||o.type!=="rectangle"&&o.type!=="circle"&&o.type!=="svg"?o:{...o,fill:n})}},ZB=(e,t,n)=>{if(t.length===0||n==="multi")return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||o.type!=="rectangle"&&o.type!=="circle"&&o.type!=="svg"?o:{...o,stroke:n})}},VB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||o.type!=="rectangle"&&o.type!=="circle"&&o.type!=="svg"?o:{...o,strokeWidth:n})}},WB=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t);return{...e,elements:e.elements.map(o=>!r.has(o.id)||o.type!=="rectangle"&&o.type!=="circle"&&o.type!=="svg"?o:{...o,strokeStyle:n})}},$B=(e,t,n)=>{if(t.length===0)return e;const r=new Set(t),o=Math.max(0,Math.min(100,Math.round(n)));return{...e,elements:e.elements.map(s=>r.has(s.id)?{...s,opacity:o}:s)}},_9=e=>e.selectedIds.length>0?e.selectedIds:e.selectedId?[e.selectedId]:[],Hw=e=>{if(e.type==="rectangle"||e.type==="circle"||e.type==="image"||e.type==="svg")return{x:e.x,y:e.y,width:e.width,height:e.height};if(e.type==="draw"){const t=Rw(e.strokeWidth,e.drawMode??"draw");return{x:e.x-t,y:e.y-t,width:e.width+t*2,height:e.height+t*2}}if(e.type==="line"){const t=ua(e)&&e.points?D2(e.points):null,n=t?t.x:e.x,r=t?t.y:e.y,o=t?t.x+t.width:e.x+e.width,s=t?t.y+t.height:e.y+e.height,c=Math.min(n,o),d=Math.min(r,s),h=Math.max(n,o),p=Math.max(r,s),m=Math.max(2,e.strokeWidth/2),v=Math.max(ec(e.startCap,e.strokeWidth),ec(e.endCap,e.strokeWidth)),y=m+v;return{x:c-y,y:d-y,width:Math.max(1,h-c)+y*2,height:Math.max(1,p-d)+y*2}}return{x:T2(e),y:e.y-e.fontSize,width:Math.max(16,di(e)),height:rs(e)}},I9=(e,t,n)=>e.type==="line"?{...e,x:e.x+t,y:e.y+n,controlPoint:e.controlPoint?{x:e.controlPoint.x+t,y:e.controlPoint.y+n}:null,points:e.points?.map(r=>({x:r.x+t,y:r.y+n}))}:{...e,x:e.x+t,y:e.y+n},Sp=e=>e.type!=="text",UB=(e,t)=>({...e,points:e.points.map(n=>({...n,x:t==="horizontal"?e.width-n.x:n.x,y:t==="vertical"?e.height-n.y:n.y}))}),qB=(e,t)=>{if(ua(e)&&e.points){const n=D2(e.points),r=e.points.map(s=>({x:t==="horizontal"?n.x+n.width-(s.x-n.x):s.x,y:t==="vertical"?n.y+n.height-(s.y-n.y):s.y})),o=D2(r);return{...e,x:o.x,y:o.y,width:o.width,height:o.height,controlPoint:null,points:r}}return t==="horizontal"?{...e,x:e.x+e.width,width:-e.width,controlPoint:e.controlPoint?{x:e.x*2+e.width-e.controlPoint.x,y:e.controlPoint.y}:null}:{...e,y:e.y+e.height,height:-e.height,controlPoint:e.controlPoint?{x:e.controlPoint.x,y:e.y*2+e.height-e.controlPoint.y}:null}},YB=(e,t)=>e.type==="draw"?{...UB(e,t),rotation:-e.rotation}:e.type==="line"?{...qB(e,t),rotation:-e.rotation}:e.type==="image"?{...e,rotation:-e.rotation,flipX:t==="horizontal"?!e.flipX:e.flipX,flipY:t==="vertical"?!e.flipY:e.flipY}:{...e,rotation:-e.rotation},GB=(e,t,n,r,o,s)=>({...e,elements:e.elements.map(c=>{if(c.id!==t)return c;if(c.type==="rectangle"||c.type==="circle"||c.type==="image"||c.type==="svg")return{...c,x:n,y:r,width:o,height:s};if(c.type==="line"){if(ua(c)&&c.points){const T=c.width===0?1:c.width,P=c.height===0?1:c.height,_=o/T,Z=s/P,K=Math.min(c.x,c.x+c.width),W=Math.min(c.y,c.y+c.height);K+Math.abs(c.width),W+Math.abs(c.height);const z=Math.min(n,n+o),q=Math.min(r,r+s),te=c.points.map(H=>({x:z+(H.x-K)*_,y:q+(H.y-W)*Z})),X=D2(te);return{...c,x:X.x,y:X.y,width:X.width,height:X.height,controlPoint:null,points:te}}const v=c.width<0,y=c.height<0,b=v?n+o:n,D=y?r+s:r,S=v?n:n+o,L=y?r:r+s,M=c.width===0?1:c.width,w=c.height===0?1:c.height,E=S-b,O=L-D,B=c.controlPoint?{x:b+(c.controlPoint.x-c.x)/M*E,y:D+(c.controlPoint.y-c.y)/w*O}:null;return{...c,x:b,y:D,width:S-b,height:L-D,controlPoint:B}}if(c.type!=="draw")return c;const d=Math.max(1,c.width),h=Math.max(1,c.height),p=o/d,m=s/h;return{...c,x:n,y:r,width:o,height:s,points:c.points.map(v=>({x:v.x*p,y:v.y*m}))}})}),KB=(e,t,n)=>({...e,elements:e.elements.map(r=>r.id!==t?r:{...r,rotation:n})}),XB=(e,t,n)=>{if(t===0&&n===0)return e;const r=_9(e);if(r.length===0)return e;const o=new Set(r);return{...e,elements:e.elements.map(s=>o.has(s.id)?I9(s,t,n):s)}},QB=(e,t,n,r,o,s)=>{if(t.length===0)return e;const c=new Set(t),d=n*Math.PI/180,h=Math.cos(d),p=Math.sin(d);return{...e,elements:e.elements.map(m=>{if(!c.has(m.id))return m;const v=s.get(m.id);if(!v)return m;const y=v.centerX-r,b=v.centerY-o,D=r+y*h-b*p,S=o+y*p+b*h;return{...m,x:D+v.offsetX,y:S+v.offsetY,rotation:v.rotation+n}})}},Ks=(e,t)=>{const n=_9(e);if(n.length<2)return e;const r=new Set(n),o=e.elements.filter(y=>r.has(y.id)).map(y=>({id:y.id,bounds:Hw(y)}));if(o.length<2)return e;const s=Math.min(...o.map(y=>y.bounds.x)),c=Math.min(...o.map(y=>y.bounds.y)),d=Math.max(...o.map(y=>y.bounds.x+y.bounds.width)),h=Math.max(...o.map(y=>y.bounds.y+y.bounds.height)),p=(s+d)/2,m=(c+h)/2,v=new Map(o.map(y=>[y.id,y.bounds]));return{...e,elements:e.elements.map(y=>{if(!r.has(y.id))return y;const b=v.get(y.id);if(!b)return y;let D=0,S=0;return t==="left"?D=s-b.x:t==="center"?D=p-(b.x+b.width/2):t==="right"?D=d-(b.x+b.width):t==="top"?S=c-b.y:t==="middle"?S=m-(b.y+b.height/2):S=h-(b.y+b.height),I9(y,D,S)})}},JB=(e,t)=>{const n=_9(e);if(n.length===0)return e;const r=new Set(n),o=e.elements.filter(m=>r.has(m.id)&&Sp(m));if(o.length===0)return e;const s=new Map(o.map(m=>[m.id,Hw(m)])),c=Math.min(...o.map(m=>s.get(m.id)?.x??0)),d=Math.min(...o.map(m=>s.get(m.id)?.y??0)),h=Math.max(...o.map(m=>{const v=s.get(m.id);return(v?.x??0)+(v?.width??0)})),p=Math.max(...o.map(m=>{const v=s.get(m.id);return(v?.y??0)+(v?.height??0)}));return{...e,elements:e.elements.map(m=>{if(!r.has(m.id)||!Sp(m))return m;const v=s.get(m.id);if(!v)return m;const y=t==="horizontal"?c+h-(v.x+v.width):v.x,b=t==="vertical"?d+p-(v.y+v.height):v.y,D=y-v.x,S=b-v.y;return I9(YB(m,t),D,S)})}},eR=e=>e.length<=2?e:e.map((n,r)=>{if(r===0||r===e.length-1)return n;const o=e[r-1],s=e[r+1];return{x:o.x*.25+n.x*.5+s.x*.25,y:o.y*.25+n.y*.5+s.y*.25,t:typeof o.t=="number"&&typeof n.t=="number"&&typeof s.t=="number"?o.t*.25+n.t*.5+s.t*.25:n.t}}),tR=e=>{if(e.length<=2)return e;const t=[e[0]];for(let n=1;n<e.length;n++){const r=e[n],o=t[t.length-1];Math.hypot(r.x-o.x,r.y-o.y)>=.6&&t.push(r)}return t.length===1&&t.push(e[e.length-1]),t},nR=(e,t,n,r,o,s)=>{const c=s&&t!=="line"?{x:Math.min(s.x,s.x+s.width),y:Math.min(s.y,s.y+s.height),width:Math.max(1,Math.abs(s.width)),height:Math.max(1,Math.abs(s.height))}:null,d=s&&t==="line"?{x:s.x,y:s.y,width:s.width,height:s.height}:null;let h;if(t==="rectangle"){const p=c?Math.max(20,c.width):100,m=c?Math.max(20,c.height):100;h={id:An("rectangle"),type:"rectangle",rotation:0,x:c?c.x:n-80,y:c?c.y:r-50,width:p,height:m,borderRadius:12,fillStyle:"solid",fill:e.settings.shapeDefaults.fill,opacity:100,stroke:e.settings.shapeDefaults.stroke,strokeWidth:1,strokeStyle:"solid",text:"",fontFamily:"Shantell Sans, sans-serif",fontSize:20,fontWeight:"200",fontStyle:"normal",color:e.settings.shapeDefaults.textColor,textAlign:"center"}}else if(t==="circle"){const p=c?Math.max(20,c.width):100,m=c?Math.max(20,c.height):100;h={id:An("circle"),type:"circle",rotation:0,x:c?c.x:n-50,y:c?c.y:r-50,width:p,height:m,fillStyle:"solid",fill:e.settings.shapeDefaults.fill,stroke:e.settings.shapeDefaults.stroke,opacity:100,strokeWidth:1,strokeStyle:"solid",text:"",fontFamily:"Shantell Sans, sans-serif",fontSize:20,fontWeight:"200",fontStyle:"normal",color:e.settings.shapeDefaults.textColor,textAlign:"center"}}else if(t==="text"){const p=c?Math.max(10,Math.round(c.height)):24;h={id:An("text"),type:"text",rotation:0,x:c?c.x:n,y:c?c.y+p:r+20,text:o.canvas.newText,fontFamily:"Shantell Sans, sans-serif",opacity:100,fontSize:p,fontWeight:"200",fontStyle:"normal",color:e.settings.shapeDefaults.textColor,textAlign:"left"}}else if(t==="line"){const p=d?d.width:100,m=d?d.height:0;h={id:An("line"),type:"line",rotation:0,x:d?d.x:n,y:d?d.y:r,width:p,height:m,opacity:100,stroke:e.settings.shapeDefaults.lineStroke,strokeStyle:"solid",strokeWidth:2,startCap:"none",endCap:"line arrow",controlPoint:null}}else{const p=t==="marker"?"marker":t==="quill"?"quill":"draw";h={id:An("draw"),type:"draw",drawMode:p,rotation:0,x:c?c.x:n,opacity:100,y:c?c.y:r,width:c?Math.max(1,c.width):1,height:c?Math.max(1,c.height):1,points:[{x:0,y:0}],stroke:p==="marker"?e.settings.drawDefaults.markerStroke:p==="quill"?e.settings.drawDefaults.quillStroke:e.settings.drawDefaults.drawStroke,strokeWidth:p==="marker"?e.settings.drawDefaults.markerStrokeWidth:p==="quill"?e.settings.drawDefaults.quillStrokeWidth:e.settings.drawDefaults.drawStrokeWidth}}return{...e,elements:[...e.elements,h],selectedId:h.id,selectedIds:[h.id]}},rR=(e,t,n)=>{if(t.length===0)return e;const r=tR(t),o=eR(r),s=typeof n?.stroke=="string"&&n.stroke.trim().length>0?n.stroke:n?.drawMode==="marker"?e.settings.drawDefaults.markerStroke:n?.drawMode==="quill"?e.settings.drawDefaults.quillStroke:e.settings.drawDefaults.drawStroke,c=n?.drawMode==="marker"?"marker":n?.drawMode==="quill"?"quill":"draw",d=typeof n?.strokeWidth=="number"&&Number.isFinite(n.strokeWidth)?Math.max(1,n.strokeWidth):c==="marker"?e.settings.drawDefaults.markerStrokeWidth:c==="quill"?e.settings.drawDefaults.quillStrokeWidth:e.settings.drawDefaults.drawStrokeWidth,h=Math.min(...o.map(S=>S.x)),p=Math.min(...o.map(S=>S.y)),m=Math.max(...o.map(S=>S.x)),v=Math.max(...o.map(S=>S.y)),y=Math.max(1,m-h),b=Math.max(1,v-p),D={id:An("draw"),type:"draw",drawMode:c,createdAt:Date.now(),rotation:0,x:h,y:p,opacity:100,width:y,height:b,points:o.map(S=>({x:S.x-h,y:S.y-p,t:typeof S.t=="number"?S.t:void 0})),stroke:s,strokeWidth:d};return{...e,elements:[...e.elements,D]}},aR=(e,t)=>{if(t.length<2)return e;const n=[];for(const h of t){const p=n[n.length-1];(!p||Math.hypot(h.x-p.x,h.y-p.y)>=1)&&n.push({x:h.x,y:h.y})}if(n.length<2)return e;const r=Math.min(...n.map(h=>h.x)),o=Math.min(...n.map(h=>h.y)),s=Math.max(...n.map(h=>h.x)),c=Math.max(...n.map(h=>h.y)),d={id:An("line"),type:"line",rotation:0,x:r,y:o,width:Math.max(1,s-r),height:Math.max(1,c-o),opacity:100,stroke:e.settings.drawDefaults.drawStroke,strokeStyle:"solid",strokeWidth:e.settings.drawDefaults.drawStrokeWidth,startCap:"none",endCap:"line arrow",controlPoint:null,points:n};return{...e,elements:[...e.elements,d],selectedId:d.id,selectedIds:[d.id]}},oR=(e,t,n,r)=>{const c=t.naturalWidth>0?360/t.naturalWidth:1,d=t.naturalHeight>0?280/t.naturalHeight:1,h=Math.min(1,c,d),p=Math.max(48,Math.round(t.naturalWidth*h)),m=Math.max(48,Math.round(t.naturalHeight*h)),v={id:An("image"),type:"image",rotation:0,flipX:!1,flipY:!1,x:n,y:r,width:p,height:m,frame:!1,opacity:100,src:t.src,assetId:t.assetId??null,naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight,isAnimated:t.isAnimated??!1};return{...e,elements:[...e.elements,v],selectedId:v.id,selectedIds:[v.id]}},iR=(e,t,n,r)=>{const o=Math.max(24,Math.round(t.defaultWidth)),s=Math.max(24,Math.round(t.defaultHeight)),c={id:An("svg"),type:"svg",rotation:0,x:n,y:r,width:o,height:s,opacity:100,assetId:t.id,viewBox:t.viewBox,svg:t.svg,fillStyle:"solid",fill:e.settings.shapeDefaults.fill,stroke:e.settings.shapeDefaults.stroke,strokeWidth:1,strokeStyle:"solid"};return{...e,elements:[...e.elements,c],selectedId:c.id,selectedIds:[c.id]}},sR={showGrid:"Show grid",gridStyle:"Grid style",gridStyleDots:"Dotted",gridStyleSquares:"Squared",snapToGrid:"Snap to grid",smartGuides:"Smart guides",quillDrawOptimizations:"Quill stroke optimization",theme:"Theme",themes:"Themes...",language:"Language",quickActions:"Quick actions",clearCanvas:"Clear canvas",saveProject:"Save to... (.drawo)",exportProject:"Export image",openProject:"Open (.drawo)",zenMode:"Zen mode",presentationMode:"View mode",colorProfile:"Color profile",file:"File",edit:"Edit",view:"View",object:"Object",text:"Text",organize:"Organize",settings:"Settings",donate:"Donate",organizeActions:{alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignTop:"Align top",alignMiddle:"Align middle",alignBottom:"Align bottom"}},lR={laserCanvas:{label:"Laser pointer configuration...",title:"Laser pointer configuration",description:"Configure the laser pointer settings.",enableShadows:"Enable shadows",color:"Color",lifetime:"Stroke duration (ms)",baseWidth:"Base width (px)",minWidth:"Minimum width (px)",reset:"Reset",save:"Save",cancel:"Cancel"},clearCanvas:{title:"Clear the canvas?",description:"This will remove all elements and cannot be undone.",confirm:"Clear",cancel:"Cancel"},openProject:{title:"Open project?",description:"This will replace the current project and discard unsaved changes.",confirm:"Open and replace",cancel:"Cancel",invalidExtension:"Only .drawo files can be opened",invalidFile:"The .drawo file is invalid"},exportImage:{title:"Export image",descriptionSelection:"Only selected elements will be exported.",descriptionAll:"No active selection. All canvas content will be exported, cropped to fit.",format:"Format",quality:"Quality",padding:"Padding",transparentBackground:"Transparent background",jpgNoTransparency:"JPG does not support transparency. Canvas background color will be used.",cancel:"Cancel",export:"Export",exporting:"Exporting...",genericError:"Could not export image"}},uR={en_US:"English (US)",es_ES:"Español (ES)"},cR={selection:"Selection",pan:"Hand",text:"Text",rectangle:"Rectangle",ellipse:"Ellipse",image:"Image",draw:"Draw",line:"Line",quill:"Quill",laser:"Laser pointer",marker:"Marker",pen:"Pen"},fR={simple:"Simple",handwritten:"Handwritten",elegant:"Elegant",technical:"Technical"},dR={small:"Small",medium:"Medium",large:"Large",extraLarge:"Extra Large",huge:"Huge",placeholder:"Custom font size"},hR={strokeWidth:"Stroke width",fontFamily:"Font family",fontSize:"Font size",bold:"Bold",italic:"Italic",strikethrough:"Strikethrough",strokeColor:"Stroke color",fillColor:"Fill color",fillStyle:"Fill style",opacity:"Opacity",textAlign:"Text alignment",startLineCap:"Start",endLineCap:"End",textAlignDirection:{left:"Left",center:"Center",right:"Right"},textColor:"Text color"},pR={playing:"(playing)",music:"Music",timer:"Timer"},CR={newText:"New text",tagline:"Your drawings are saved locally in your browser's storage."},gR={cut:"Cut",copy:"Copy",paste:"Paste",duplicate:"Duplicate",delete:"Delete",group:"Group",ungroup:"Ungroup",layers:{text:"Layers",bringToFront:"Bring to front",sendToBack:"Send to back",sendBackward:"Send backward",bringForward:"Bring forward"},selectEverything:"Select everything"},mR={menu:sR,dialogs:lR,localeNames:uR,toolNames:cR,fontFamilies:fR,fontSizes:dR,selectionBar:hR,panels:pR,canvas:CR,contextMenu:gR},vR={showGrid:"Mostrar cuadrícula",gridStyle:"Estilo de la cuadrícula",gridStyleDots:"De puntos",gridStyleSquares:"De cuadros",snapToGrid:"Ajustar a cuadrícula",smartGuides:"Guías de alineación",quillDrawOptimizations:"Optimización del trazo de pluma",theme:"Tema",themes:"Temas...",language:"Idioma",quickActions:"Acciones rápidas",clearCanvas:"Vaciar canvas",saveProject:"Guardar en... (.drawo)",exportProject:"Exportar imagen",openProject:"Abrir (.drawo)",zenMode:"Modo zen",presentationMode:"Modo presentación",colorProfile:"Perfil de color",file:"Archivo",edit:"Editar",view:"Ver",object:"Objeto",text:"Texto",organize:"Organizar",settings:"Preferencias",donate:"Donar",organizeActions:{alignLeft:"Alinear a la izquierda",alignCenter:"Centrar horizontalmente",alignRight:"Alinear a la derecha",alignTop:"Alinear arriba",alignMiddle:"Centrar verticalmente",alignBottom:"Alinear abajo"}},yR={laserCanvas:{label:"Configuración del puntero láser...",title:"Configuración del puntero láser",description:"Configurar el puntero láser",color:"Color",lifetime:"Duración del trazo (ms)",baseWidth:"Ancho inicial (px)",minWidth:"Ancho mínimo (px)",enableShadows:"Activar sombras",reset:"Reiniciar",save:"Guardar",cancel:"Cancelar"},clearCanvas:{title:"¿Vaciar el canvas?",description:"Esta acción eliminará todos los elementos y no se puede deshacer.",confirm:"Vaciar",cancel:"Cancelar"},openProject:{title:"¿Abrir proyecto?",description:"Se reemplazará el proyecto actual y se perderán los cambios no guardados.",confirm:"Abrir y reemplazar",cancel:"Cancelar",invalidExtension:"Solo se pueden abrir archivos .drawo",invalidFile:"El archivo .drawo no es válido"},exportImage:{title:"Exportar imagen",descriptionSelection:"Se exportarán solo los elementos seleccionados.",descriptionAll:"No hay selección activa. Se exportará todo el contenido del canvas ajustado al contenido.",format:"Formato",quality:"Calidad",padding:"Margen",transparentBackground:"Fondo transparente",jpgNoTransparency:"JPG no admite transparencia. Se usará el color de fondo del canvas.",cancel:"Cancelar",export:"Exportar",exporting:"Exportando...",genericError:"No se pudo exportar la imagen"}},xR={en_US:"English (US)",es_ES:"Español (ES)"},wR={selection:"Selección",pan:"Mano",text:"Texto",rectangle:"Rectángulo",ellipse:"Elipse",image:"Imagen",draw:"Dibujar",line:"Línea",quill:"Pluma",laser:"Puntero láser",marker:"Subrayador",pen:"Lápiz"},bR={simple:"Simple",handwritten:"A mano",elegant:"Elegante",technical:"Técnico"},SR={small:"Pequeño",medium:"Mediano",large:"Grande",extraLarge:"Extra grande",huge:"Enorme",placeholder:"Tamaño de fuente"},DR={strokeWidth:"Grosor de la línea",fontFamily:"Tipografía",fontSize:"Tamaño de la fuente",bold:"Negrita",italic:"Cursiva",strikethrough:"Tachado",strokeColor:"Color de la línea",fillColor:"Color de relleno",fillStyle:"Estilo de relleno",opacity:"Opacidad",textAlign:"Alineación del texto",startLineCap:"Punto de inicio",endLineCap:"Punto final",textAlignDirection:{left:"Left",center:"Center",right:"Right"},textColor:"Color del texto"},LR={playing:"(reproduciendo)",music:"Música",timer:"Cuenta atrás"},MR={newText:"Nuevo texto",tagline:"Tus dibujos se guardan localmente en el almacenamiento de tu navegador."},ER={cut:"Cortar",copy:"Copiar",paste:"Pegar",duplicate:"Duplicar",delete:"Eliminar",group:"Agrupar",ungroup:"Desagrupar",layers:{text:"Capas",bringForward:"Mover hacia delante",bringToFront:"Traer al frente",sendToBack:"Pasar al fondo",sendBackward:"Mover hacia atrás"},selectEverything:"Seleccionar todo"},kR={menu:vR,dialogs:yR,localeNames:xR,toolNames:wR,fontFamilies:bR,fontSizes:SR,selectionBar:DR,panels:LR,canvas:MR,contextMenu:ER},jR={en_US:"English (US)",es_ES:"Español (ES)"},AR={en_US:mR,es_ES:kR},Zw=e=>e==="en_US"||e==="es_ES",OR=(e,t,n)=>e.type==="rectangle"?Tw(e,t,n):e.type==="circle"?vB(e,t,n):e.type==="draw"?mB(e,t,n):e.type==="line"?CB(e,t,n):e.type==="image"?yB(e,t,n):e.type==="svg"?xB(e,t,n):SB(e,t,n),_l=(e,t,n)=>{for(let r=e.length-1;r>=0;r--)if(OR(e[r],t,n))return e[r].id;return null},j1=20,Yc=.1,Gc=1e3,h5=.002,Z1=(e,t)=>Math.round(e/t)*t,BR=(e,t,n)=>Math.min(n,Math.max(t,e)),L4=(e,t,n,r)=>{const o=e.x+e.width,s=e.y+e.height;if(t==="nw"){const h=Math.min(n,o-j1),p=Math.min(r,s-j1);return{x:h,y:p,width:o-h,height:s-p}}if(t==="ne"){const h=Math.max(n,e.x+j1),p=Math.min(r,s-j1);return{x:e.x,y:p,width:h-e.x,height:s-p}}if(t==="sw"){const h=Math.min(n,o-j1),p=Math.max(r,e.y+j1);return{x:h,y:e.y,width:o-h,height:p-e.y}}if(t==="n"){const h=Math.min(r,s-j1);return{x:e.x,y:h,width:e.width,height:s-h}}if(t==="e"){const h=Math.max(n,e.x+j1);return{x:e.x,y:e.y,width:h-e.x,height:e.height}}if(t==="s"){const h=Math.max(r,e.y+j1);return{x:e.x,y:e.y,width:e.width,height:h-e.y}}if(t==="w"){const h=Math.min(n,o-j1);return{x:h,y:e.y,width:o-h,height:e.height}}const c=Math.max(n,e.x+j1),d=Math.max(r,e.y+j1);return{x:e.x,y:e.y,width:c-e.x,height:d-e.y}},Dp=(e,t,n,r)=>{if(!Number.isFinite(n)||n<=0)return e;const o=Math.max(1,e.height*n),s=Math.max(1,e.width/n),c=Math.abs(s-e.height)<=Math.abs(o-e.width),d=c?e.width:o,h=c?s:e.height;if(r){const p=e.x+e.width/2,m=e.y+e.height/2;return{x:p-d/2,y:m-h/2,width:d,height:h}}if(t==="nw"){const p=e.x+e.width,m=e.y+e.height;return{x:p-d,y:m-h,width:d,height:h}}if(t==="ne"){const p=e.y+e.height;return{x:e.x,y:p-h,width:d,height:h}}if(t==="sw")return{x:e.x+e.width-d,y:e.y,width:d,height:h};if(t==="n"){const p=e.x+e.width/2,m=e.y+e.height;return{x:p-d/2,y:m-h,width:d,height:h}}if(t==="e"){const p=e.y+e.height/2;return{x:e.x,y:p-h/2,width:d,height:h}}if(t==="s")return{x:e.x+e.width/2-d/2,y:e.y,width:d,height:h};if(t==="w"){const p=e.x+e.width,m=e.y+e.height/2;return{x:p-d,y:m-h/2,width:d,height:h}}return{x:e.x,y:e.y,width:d,height:h}},M4=(e,t)=>t==="center"?e.x+e.width/2:t==="right"||t==="end"?e.x+e.width:e.x,RR=e=>e.selectedIds.length>0?e.selectedIds:e.selectedId?[e.selectedId]:[],Lp=e=>{if(e.type==="rectangle"||e.type==="circle"||e.type==="image"||e.type==="svg")return{x:e.x,y:e.y,width:e.width,height:e.height};if(e.type==="draw"){const t=Rw(e.strokeWidth,e.drawMode??"draw");return{x:e.x-t,y:e.y-t,width:e.width+t*2,height:e.height+t*2}}if(e.type==="line"){const t=e.x,n=e.y,r=e.x+e.width,o=e.y+e.height,s=Math.min(t,r),c=Math.min(n,o),d=Math.max(t,r),h=Math.max(n,o),p=Math.max(2,e.strokeWidth/2),m=Math.max(ec(e.startCap,e.strokeWidth),ec(e.endCap,e.strokeWidth)),v=p+m;return{x:s-v,y:c-v,width:Math.max(1,d-s)+v*2,height:Math.max(1,h-c)+v*2}}return{x:T2(e),y:e.y-e.fontSize,width:Math.max(16,di(e)),height:rs(e)}},Vw=8,Mp=1e3,TR=e=>{if(e.length===0)return null;let t=1/0,n=1/0,r=-1/0,o=-1/0;for(const s of e){s.x<t&&(t=s.x),s.y<n&&(n=s.y);const c=s.x+s.width,d=s.y+s.height;c>r&&(r=c),d>o&&(o=d)}return{x:t,y:n,width:r-t,height:o-n}},z9=e=>{if(e.type==="rectangle"||e.type==="circle"){const t=Math.max(0,e.strokeWidth/2),n=Math.max(1,e.width-t*2),r=Math.max(1,e.height-t*2);return{x:e.x+t,y:e.y+t,width:n,height:r}}if(e.type==="image"||e.type==="draw"||e.type==="svg")return{x:e.x,y:e.y,width:e.width,height:e.height};if(e.type==="line"){const t=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y+e.height},...e.controlPoint?[e.controlPoint]:[]],n=Math.min(...t.map(c=>c.x)),r=Math.min(...t.map(c=>c.y)),o=Math.max(...t.map(c=>c.x)),s=Math.max(...t.map(c=>c.y));return{x:n,y:r,width:Math.max(1,o-n),height:Math.max(1,s-r)}}return{x:T2(e),y:e.y-e.fontSize,width:Math.max(16,di(e)),height:Math.max(e.fontSize,rs(e))}},NR=(e,t,n)=>{const r=z9(e);return{...r,x:r.x+(t-e.x),y:r.y+(n-e.y)}},Ep=(e,t,n=!1)=>e==="x"?n?[{value:t.x+t.width/2,kind:"center"}]:[{value:t.x,kind:"start"},{value:t.x+t.width/2,kind:"center"},{value:t.x+t.width,kind:"end"}]:n?[{value:t.y+t.height/2,kind:"center"}]:[{value:t.y,kind:"start"},{value:t.y+t.height/2,kind:"center"},{value:t.y+t.height,kind:"end"}],l0=(e,t,n)=>e==="x"?{x:n==="start"?t.x:n==="center"?t.x+t.width/2:t.x+t.width,y:t.y+t.height/2}:{x:t.x+t.width/2,y:n==="start"?t.y:n==="center"?t.y+t.height/2:t.y+t.height},FR=(e,t,n,r,o,s)=>{if(e==="x"){const p=n.centerOnly?n.bounds.y:Math.min(t.y,n.bounds.y)-12,m=n.centerOnly?n.bounds.y+n.bounds.height:Math.max(t.y+t.height,n.bounds.y+n.bounds.height)+12;return{axis:e,value:r,start:p,end:m,kind:"alignment",movingKind:o,targetKind:s,movingPoint:l0(e,t,o),targetPoint:l0(e,n.bounds,s)}}const d=n.centerOnly?n.bounds.x:Math.min(t.x,n.bounds.x)-12,h=n.centerOnly?n.bounds.x+n.bounds.width:Math.max(t.x+t.width,n.bounds.x+n.bounds.width)+12;return{axis:e,value:r,start:d,end:h,kind:"alignment",movingKind:o,targetKind:s,movingPoint:l0(e,t,o),targetPoint:l0(e,n.bounds,s)}},kp=(e,t,n,r,o=0)=>t+o>=n&&r+o>=e,jp=(e,t,n)=>e==="x"?n==="start"?t.x:n==="center"?t.x+t.width/2:t.x+t.width:n==="start"?t.y:n==="center"?t.y+t.height/2:t.y+t.height,PR=(e,t,n)=>{if(n==="x"){const s=Math.max(e.y,t.y),c=Math.min(e.y+e.height,t.y+t.height);return c>=s?(s+c)/2:(e.y+e.height/2+t.y+t.height/2)/2}const r=Math.max(e.x,t.x),o=Math.min(e.x+e.width,t.x+t.width);return o>=r?(r+o)/2:(e.x+e.width/2+t.x+t.width/2)/2},_R=(e,t,n,r,o,s)=>{const c=e==="x"?{...t,x:t.x+r}:{...t,y:t.y+r},d=jp(e,c,o),h=jp(e,n,s),p=PR(c,n,e);if(e==="x"){const y={x:Math.min(d,h),y:p},b={x:Math.max(d,h),y:p};return{axis:e,value:p,start:y.x,end:b.x,kind:"spacing",movingKind:o,targetKind:s,movingPoint:{x:d,y:p},targetPoint:{x:h,y:p},segmentStart:y,segmentEnd:b}}const m={x:p,y:Math.min(d,h)},v={x:p,y:Math.max(d,h)};return{axis:e,value:p,start:m.y,end:v.y,kind:"spacing",movingKind:o,targetKind:s,movingPoint:{x:p,y:d},targetPoint:{x:p,y:h},segmentStart:m,segmentEnd:v}},Ap=(e,t,n,r)=>{if(n.length<2)return null;const o=[...n].sort((c,d)=>e==="x"?c.x-d.x:c.y-d.y);let s=null;for(let c=0;c<o.length-1;c+=1){const d=o[c],h=o[c+1];if(!d||!h)continue;const p=e==="x"?d.x+d.width:d.y+d.height,v=(e==="x"?h.x:h.y)-p;if(v<=0||!(e==="x"?kp(d.y,d.y+d.height,h.y,h.y+h.height,r):kp(d.x,d.x+d.width,h.x,h.x+h.width,r)))continue;const b=e==="x"?[{position:d.x-v-t.width,targetBounds:d,movingKind:"end",targetKind:"start"},{position:h.x+h.width+v,targetBounds:h,movingKind:"start",targetKind:"end"}]:[{position:d.y-v-t.height,targetBounds:d,movingKind:"end",targetKind:"start"},{position:h.y+h.height+v,targetBounds:h,movingKind:"start",targetKind:"end"}];for(const D of b){const S=e==="x"?D.position-t.x:D.position-t.y;Math.abs(S)>r||(!s||Math.abs(S)<Math.abs(s.delta))&&(s={delta:S,guide:_R(e,t,D.targetBounds,S,D.movingKind,D.targetKind)})}}return s},rc=(e,t,n,r)=>{const o=Ep(e,t);let s=null;for(const c of n){const d=Ep(e,c.bounds,c.centerOnly);for(const h of o)for(const p of d){const m=p.value-h.value;if(!(Math.abs(m)>r)&&(!s||Math.abs(m)<Math.abs(s.delta))){const v=Math.round(m*Mp)/Mp,y=e==="x"?{...t,x:t.x+v}:{...t,y:t.y+v};s={delta:v,guide:FR(e,y,c,p.value,h.kind,p.kind)}}}}return s},IR=(e,t,n)=>{if(!t)return{offsetX:0,offsetY:0,guides:[]};const r=new Set(n),o=e.elements.filter(h=>!r.has(h.id)).map(h=>({bounds:z9(h)})),s=Vw/e.camera.zoom,c=rc("x",t,o,s),d=rc("y",t,o,s);return{offsetX:c?.delta??0,offsetY:d?.delta??0,guides:[c?.guide,d?.guide].filter(h=>!!h)}},zR=(e,t,n,r)=>{if(t.length===0)return{offsetX:0,offsetY:0,guides:[]};const o=new Map(t.map(_=>[_.id,_])),s=e.elements.flatMap(_=>{const Z=o.get(_.id);return Z?[NR(_,Z.x+n,Z.y+r)]:[]}),c=TR(s);if(!c)return{offsetX:0,offsetY:0,guides:[]};const d=new Set(t.map(_=>_.id)),h=e.elements.filter(_=>!d.has(_.id)).map(_=>z9(_)),p=h.map(_=>({bounds:_})),m=Vw/e.camera.zoom,v=rc("x",c,p,m),y=rc("y",c,p,m),b=v?.guide,D=y?.guide,S=v?.delta??0,L=y?.delta??0,M=Ap("x",c,h,m),w=Ap("y",c,h,m),E=!!(M&&(!b||Math.abs(M.delta)<Math.abs(S))),O=!!(w&&(!D||Math.abs(w.delta)<Math.abs(L))),B=[],T=E?M?.guide:b,P=O?w?.guide:D;return T&&B.push(T),P&&B.push(P),{offsetX:E?M?.delta??0:S,offsetY:O?w?.delta??0:L,guides:B}},HR=({scene:e,setScene:t,setSceneWithoutHistory:n,commitInteractionHistory:r})=>{const o=g.useRef(null),s=g.useRef(null),c=g.useRef(null),d=g.useRef(null),h=g.useRef(null),p=g.useRef(null),m=g.useRef(null),[v,y]=g.useState([]),b=g.useCallback(()=>{p.current=e},[e]),D=Y=>({...Y,id:An(Y.type)}),S=Y=>Y==="nw"||Y==="sw"||Y==="w"?"start":Y==="ne"||Y==="se"||Y==="e"?"end":"center",L=Y=>Y==="nw"||Y==="ne"||Y==="n"?"start":Y==="sw"||Y==="se"||Y==="s"?"end":"center",M=Y=>Y==="nw"||Y==="ne"||Y==="se"||Y==="sw"||Y==="e"||Y==="w",w=Y=>Y==="nw"||Y==="ne"||Y==="se"||Y==="sw"||Y==="n"||Y==="s",E=(Y,he,ve,Be)=>{if(ve.axis!=="x"||!M(he))return Y;const Ze=ve.value-ve.movingPoint.x,Ee=S(he),_e=Ee==="start"?"end":"start";let ue=null;if(Be)return ve.movingKind==="center"||(ue=ve.movingKind===Ee?Ze:ve.movingKind===_e?-Ze:null,ue===null)?Y:Ee==="start"?{...Y,x:Y.x+ue,width:Y.width-ue*2}:{...Y,x:Y.x-ue,width:Y.width+ue*2};if(ve.movingKind==="center")ue=Ze*2;else if(ve.movingKind===Ee)ue=Ze;else return Y;return Ee==="start"?{...Y,x:Y.x+ue,width:Y.width-ue}:{...Y,width:Y.width+ue}},O=(Y,he,ve,Be)=>{if(ve.axis!=="y"||!w(he))return Y;const Ze=ve.value-ve.movingPoint.y,Ee=L(he),_e=Ee==="start"?"end":"start";let ue=null;if(Be)return ve.movingKind==="center"||(ue=ve.movingKind===Ee?Ze:ve.movingKind===_e?-Ze:null,ue===null)?Y:Ee==="start"?{...Y,y:Y.y+ue,height:Y.height-ue*2}:{...Y,y:Y.y-ue,height:Y.height+ue*2};if(ve.movingKind==="center")ue=Ze*2;else if(ve.movingKind===Ee)ue=Ze;else return Y;return Ee==="start"?{...Y,y:Y.y+ue,height:Y.height-ue}:{...Y,height:Y.height+ue}},B=(Y,he,ve,Be,Ze)=>{let Ee={...Y};if(Ee.width<he){const _e=he-Ee.width;Ze?Ee.x-=_e/2:(Be==="nw"||Be==="sw"||Be==="w")&&(Ee.x-=_e),Ee.width=he}if(Ee.height<ve){const _e=ve-Ee.height;Ze?Ee.y-=_e/2:(Be==="nw"||Be==="ne"||Be==="n")&&(Ee.y-=_e),Ee.height=ve}return Ee},T=Y=>Y==="ne"||Y==="se"||Y==="e",P=Y=>Y==="sw"||Y==="se"||Y==="s",_=Y=>Y==="e"||Y==="w",Z=Y=>Y==="n"||Y==="s",K=(Y,he,ve,Be)=>({pointerX:Y.x+ve+(T(he)?Y.width:0),pointerY:Y.y+Be+(P(he)?Y.height:0)}),W=(Y,he,ve,Be)=>{const Ze=IR(e,Y,ve);let Ee=Y;for(const rt of Ze.guides)Ee=rt.axis==="x"?E(Ee,he,rt,Be?.fromCenter===!0):O(Ee,he,rt,Be?.fromCenter===!0);Ee=B(Ee,Be?.minWidth??1,Be?.minHeight??1,he,Be?.fromCenter===!0);const _e=Ee.x-Y.x,ue=Ee.y-Y.y,at=Ze.guides.map(rt=>({...rt,movingPoint:{x:rt.movingPoint.x+_e,y:rt.movingPoint.y+ue},segmentStart:rt.segmentStart?{x:rt.segmentStart.x+_e,y:rt.segmentStart.y+ue}:void 0,segmentEnd:rt.segmentEnd?{x:rt.segmentEnd.x+_e,y:rt.segmentEnd.y+ue}:void 0}));return{bounds:Ee,guides:at}},z=g.useCallback((Y,he,ve,Be,Ze)=>{y([]),m.current=null,t(Ee=>{const _e=_l(Ee.elements,Y,he),ue=RR(Ee);if(_e){const at=Ze?[_e]:k8(Ee,_e),rt=ue.length===1&&ue[0]===_e,Tt=at.every(kt=>ue.includes(kt)),p1=rt?[_e]:ue.length>1&&at.some(kt=>ue.includes(kt))?ue:at;if(Be&&!Ze&&!Tt)return o.current=null,n2(Ee,[...ue,...at]);const v1=Ee.elements.filter(kt=>p1.includes(kt.id));if(v1.length>0){if(ve&&v1.every(Qt=>!Qt.groupId)){b();const Qt=v1.map(zt=>D(zt)),ft=[...Ee.elements,...Qt];return o.current={startPointerX:Y,startPointerY:he,elements:Qt.map(zt=>({id:zt.id,x:zt.x,y:zt.y}))},{...Ee,elements:ft,selectedId:Qt[0]?.id??null,selectedIds:Qt.map(zt=>zt.id)}}if(o.current={startPointerX:Y,startPointerY:he,elements:v1.map(Qt=>({id:Qt.id,x:Qt.x,y:Qt.y}))},b(),p1.length>1)return n2(Ee,p1)}}else o.current=null;return _e?n2(Ee,Ze?[_e]:k8(Ee,_e)):MB(Ee,null)})},[b,t]),q=g.useCallback((Y,he,ve,Be)=>{const Ze=d.current;if(Ze){const Qt=(Math.atan2(he-Ze.centerY,Y-Ze.centerX)-Ze.startPointerAngle)*180/Math.PI,ft=Ze.startRotation+Qt,zt=ve?Math.round(ft/10)*10:ft;n(ut=>KB(ut,Ze.id,zt));return}const Ee=h.current;if(Ee){const Qt=(Math.atan2(he-Ee.centerY,Y-Ee.centerX)-Ee.startPointerAngle)*180/Math.PI,ft=ve?Math.round(Qt/10)*10:Qt;n(zt=>QB(zt,Ee.ids,ft,Ee.centerX,Ee.centerY,Ee.startPositions));return}const _e=s.current;if(_e){const kt=Y-_e.startPointerX,Qt=he-_e.startPointerY;if(_e.startElement.type!=="text"){const _t={x:_e.startElement.x,y:_e.startElement.y,width:_e.startElement.width,height:_e.startElement.height};let d1;if(Be){const xt=_t.x+_t.width/2,Dt=_t.y+_t.height/2,o1=Z(_e.handle)?Math.max(j1/2,_t.width/2):Math.max(j1/2,Math.abs(Y-xt)),S1=_(_e.handle)?Math.max(j1/2,_t.height/2):Math.max(j1/2,Math.abs(he-Dt));d1={x:xt-o1,y:Dt-S1,width:o1*2,height:S1*2}}else{const{pointerX:xt,pointerY:Dt}=K(_t,_e.handle,kt,Qt);d1=L4(_t,_e.handle,xt,Dt)}const Vt=_e.startElement.type==="image"||_e.startElement.type==="svg"?_e.startElement:null;if(Vt?!ve:ve){let xt;Vt&&Vt.type==="image"?xt=Vt.naturalHeight>0?Vt.naturalWidth/Vt.naturalHeight:_t.height===0?1:_t.width/_t.height:xt=_t.height===0?1:_t.width/_t.height;const Dt=Dp(d1,_e.handle,xt,Be),o1=_e.startElement.type==="image"||_e.startElement.type==="svg"||_e.startElement.type==="draw"||_e.startElement.type==="line"?1:j1;d1={...Dt,width:Math.max(o1,Dt.width),height:Math.max(o1,Dt.height)}}if(e.settings.smartGuides){const xt=_e.startElement.type==="image"||_e.startElement.type==="svg"||_e.startElement.type==="draw"||_e.startElement.type==="line"?1:j1,Dt=W(d1,_e.handle,[_e.id],{fromCenter:Be,minWidth:xt,minHeight:xt});d1=Dt.bounds,y(Dt.guides)}else y([]);n(xt=>GB(xt,_e.id,xt.settings.snapToGrid?Z1(d1.x,xt.settings.gridSize):d1.x,xt.settings.snapToGrid?Z1(d1.y,xt.settings.gridSize):d1.y,Math.max(_e.startElement.type==="image"||_e.startElement.type==="svg"||_e.startElement.type==="draw"||_e.startElement.type==="line"?1:j1,xt.settings.snapToGrid?Z1(d1.width,xt.settings.gridSize):d1.width),Math.max(_e.startElement.type==="image"||_e.startElement.type==="svg"||_e.startElement.type==="draw"||_e.startElement.type==="line"?1:j1,xt.settings.snapToGrid?Z1(d1.height,xt.settings.gridSize):d1.height)));return}const ft=_e.startElement,zt={x:ft.x,y:ft.y,width:ft.width,height:ft.height},ut=(()=>{if(Be){const xt=zt.x+zt.width/2,Dt=zt.y+zt.height/2,o1=Z(_e.handle)?Math.max(8,zt.width/2):Math.max(8,Math.abs(Y-xt)),S1=_(_e.handle)?Math.max(8,zt.height/2):Math.max(8,Math.abs(he-Dt));return{x:xt-o1,y:Dt-S1,width:o1*2,height:S1*2}}const _t=_e.handle;if(_(_t)||Z(_t)){const xt=ft.width/ft.fontSize,Dt=zt.x+zt.width/2,o1=zt.y+zt.height/2;if(_(_t)){const S1=Math.max(8,Math.abs(Y-Dt)),mn=S1/xt;return{x:Dt-S1,y:o1-mn,width:S1*2,height:mn*2}}else{const S1=Math.max(8,Math.abs(he-o1)),mn=S1*xt;return{x:Dt-mn,y:o1-S1,width:mn*2,height:S1*2}}}const{pointerX:Vt,pointerY:dn}=K(zt,_e.handle,kt,Qt);return L4(zt,_e.handle,Vt,dn)})(),c1=ut.width/zt.width,f1=ut.height/zt.height,Zn=Math.max(c1,f1),Ht=Math.max(10,Math.round(ft.fontSize*Zn)),s1=Ht,Nt=ft.width/ft.fontSize,nt=Math.max(16,Nt*Ht),fn={x:ut.x,y:ut.y,width:nt,height:s1},Y1=e.settings.smartGuides?W(fn,_e.handle,[_e.id],{fromCenter:Be||_(_e.handle)||Z(_e.handle),minWidth:16,minHeight:s1}):null,G1=Y1?.bounds??fn;y(Y1?.guides??[]),n(_t=>FB(_t,_e.id,_t.settings.snapToGrid?Z1(M4(G1,ft.textAlign),_t.settings.gridSize):M4(G1,ft.textAlign),_t.settings.snapToGrid?Z1(G1.y+Ht,_t.settings.gridSize):G1.y+Ht,Ht));return}const ue=c.current;if(ue){const kt=Y-ue.startPointerX,Qt=he-ue.startPointerY,ft=ue.startGroupBounds,{pointerX:zt,pointerY:ut}=K(ft,ue.handle,kt,Qt);let c1=L4(ft,ue.handle,zt,ut);if(ve){const Ht=ft.height===0?1:ft.width/ft.height;c1=Dp(c1,ue.handle,Ht,!1)}if(e.settings.smartGuides){const Ht=W(c1,ue.handle,ue.elements.map(s1=>s1.id),{minWidth:j1,minHeight:j1});c1=Ht.bounds,y(Ht.guides)}else y([]);const f1=ft.width===0?1:c1.width/ft.width,Zn=ft.height===0?1:c1.height/ft.height;n(Ht=>{const s1=new Map(ue.elements.map(Nt=>[Nt.id,Nt]));return{...Ht,elements:Ht.elements.map(Nt=>{const nt=s1.get(Nt.id);if(!nt)return Nt;const fn=c1.x+(nt.x-ft.x)*f1,Y1=c1.y+(nt.y-ft.y)*Zn,G1=nt.type==="draw"||nt.type==="svg"?1:nt.type==="rectangle"||nt.type==="circle"?j1:16,_t=Math.max(G1,nt.width*f1),d1=Math.max(nt.type==="draw"||nt.type==="svg"?1:nt.type==="rectangle"||nt.type==="circle"?j1:10,nt.height*Zn),Vt=Ht.settings.snapToGrid?Z1(fn,Ht.settings.gridSize):fn,dn=Ht.settings.snapToGrid?Z1(Y1,Ht.settings.gridSize):Y1,xt=Ht.settings.snapToGrid?Math.max(G1,Z1(_t,Ht.settings.gridSize)):_t,Dt=Ht.settings.snapToGrid?Math.max(nt.type==="draw"||nt.type==="svg"?1:nt.type==="rectangle"||nt.type==="circle"?j1:10,Z1(d1,Ht.settings.gridSize)):d1;if(Nt.type==="rectangle"||Nt.type==="circle")return{...Nt,x:Vt,y:dn,width:xt,height:Dt};if(Nt.type==="draw"){const hr=nt.width===0?1:xt/nt.width,Bn=nt.height===0?1:Dt/nt.height;return{...Nt,x:Vt,y:dn,width:xt,height:Dt,points:(nt.points??Nt.points).map(Qn=>({x:Qn.x*hr,y:Qn.y*Bn}))}}if(Nt.type==="line"){if(nt.points&&nt.points.length>1){const hr=nt.width===0?1:xt/nt.width,Bn=nt.height===0?1:Dt/nt.height,Qn=nt.points.map(hn=>({x:Vt+(hn.x-nt.x)*hr,y:dn+(hn.y-nt.y)*Bn}));return{...Nt,x:Vt,y:dn,width:xt,height:Dt,controlPoint:null,points:Qn}}return{...Nt,x:Vt,y:dn,width:xt,height:Dt}}if(Nt.type==="image")return{...Nt,x:Vt,y:dn,width:xt,height:Dt};if(Nt.type==="svg")return{...Nt,x:Vt,y:dn,width:xt,height:Dt};const o1=Math.max(f1,Zn),S1=nt.fontSize??Nt.fontSize,mn=Math.max(10,Math.round(S1*o1)),Mr=M4({x:fn,width:_t},nt.textAlign??Nt.textAlign),Er=Y1+mn;return{...Nt,x:Ht.settings.snapToGrid?Z1(Mr,Ht.settings.gridSize):Mr,y:Ht.settings.snapToGrid?Z1(Er,Ht.settings.gridSize):Er,fontSize:mn}})}});return}const at=o.current;if(!at){y([]);return}let rt=Y-at.startPointerX,Tt=he-at.startPointerY;if(ve){const kt=Math.abs(rt),Qt=Math.abs(Tt);kt>Qt?Tt=0:rt=0}const p1=m.current,v1=e.settings.smartGuides?p1&&p1.dragState===at&&p1.dx===rt&&p1.dy===Tt?p1.result:zR(e,at.elements,rt,Tt):{offsetX:0,offsetY:0,guides:[]};e.settings.smartGuides?m.current={dragState:at,dx:rt,dy:Tt,result:v1}:m.current=null,rt+=v1.offsetX,Tt+=v1.offsetY,y(v1.guides),n(kt=>{const Qt=new Map(at.elements.map(ut=>[ut.id,ut])),ft=v1.guides.some(ut=>ut.axis==="x"),zt=v1.guides.some(ut=>ut.axis==="y");return{...kt,elements:kt.elements.map(ut=>{const c1=Qt.get(ut.id);if(!c1)return ut;const f1=c1.x+rt,Zn=c1.y+Tt,Ht=kt.settings.snapToGrid&&!ft?Z1(f1,kt.settings.gridSize):f1,s1=kt.settings.snapToGrid&&!zt?Z1(Zn,kt.settings.gridSize):Zn;if(ut.type==="line"){const Nt=ut.controlPoint?{x:Ht+(ut.controlPoint.x-ut.x),y:s1+(ut.controlPoint.y-ut.y)}:null,nt=ut.points?ut.points.map(fn=>({x:fn.x+(Ht-ut.x),y:fn.y+(s1-ut.y)})):void 0;return{...ut,x:Ht,y:s1,controlPoint:Nt,points:nt}}return{...ut,x:Ht,y:s1}})}})},[e,n]),te=g.useCallback(()=>{const Y=p.current;Y&&r(Y),y([]),m.current=null,o.current=null,s.current=null,c.current=null,d.current=null,h.current=null,p.current=null},[r]),X=g.useCallback((Y,he,ve,Be,Ze)=>{const Ee=e.elements.find(_e=>_e.id===Y);Ee&&(o.current=null,s.current=null,c.current=null,b(),d.current={id:Y,centerX:he,centerY:ve,startPointerAngle:Math.atan2(Ze-ve,Be-he),startRotation:Ee.rotation})},[b,e.elements]),H=g.useCallback((Y,he,ve,Be,Ze)=>{o.current=null,s.current=null,c.current=null,d.current=null,b();const Ee=new Map;for(const _e of Ze){const ue=e.elements.find(at=>at.id===_e);if(ue){const at=Lp(ue),rt=at.x+at.width/2,Tt=at.y+at.height/2;Ee.set(_e,{centerX:rt,centerY:Tt,offsetX:ue.x-rt,offsetY:ue.y-Tt,rotation:ue.rotation})}}h.current={ids:Ze,centerX:Y,centerY:he,startPointerAngle:Math.atan2(Be-he,ve-Y),startPositions:Ee}},[b,e.elements]),Q=g.useCallback((Y,he,ve,Be,Ze)=>{const Ee=e.elements.find(_e=>_e.id===Y);if(Ee){if(o.current=null,c.current=null,b(),Ee.type==="rectangle"||Ee.type==="circle"){s.current={id:Y,handle:he,startPointerX:ve,startPointerY:Be,startElement:{type:Ee.type,x:Ee.x,y:Ee.y,width:Ee.width,height:Ee.height}};return}if(Ee.type==="image"){s.current={id:Y,handle:he,startPointerX:ve,startPointerY:Be,startElement:{type:"image",x:Ee.x,y:Ee.y,width:Ee.width,height:Ee.height,naturalWidth:Ee.naturalWidth,naturalHeight:Ee.naturalHeight}};return}if(Ee.type==="svg"){s.current={id:Y,handle:he,startPointerX:ve,startPointerY:Be,startElement:{type:"svg",x:Ee.x,y:Ee.y,width:Ee.width,height:Ee.height}};return}if(Ee.type==="draw"){s.current={id:Y,handle:he,startPointerX:ve,startPointerY:Be,startElement:{type:Ee.type,x:Ee.x,y:Ee.y,width:Ee.width,height:Ee.height}};return}if(Ee.type==="line"){s.current={id:Y,handle:he,startPointerX:ve,startPointerY:Be,startElement:{type:Ee.type,x:Ee.x,y:Ee.y,width:Ee.width,height:Ee.height}};return}s.current={id:Y,handle:he,startPointerX:ve,startPointerY:Be,startElement:{type:"text",x:Ze?.x??T2(Ee),y:Ze?.y??Ee.y-Ee.fontSize,width:Ze?.width??di(Ee),height:Ze?.height??rs(Ee),fontSize:Ee.fontSize,textAlign:Ee.textAlign}}}},[b,e.elements]),oe=g.useCallback((Y,he,ve,Be,Ze)=>{const Ee=new Set(Ze),_e=e.elements.filter(ue=>Ee.has(ue.id)).map(ue=>{const at=Lp(ue);return ue.type==="rectangle"||ue.type==="circle"||ue.type==="image"||ue.type==="svg"||ue.type==="draw"?{id:ue.id,type:ue.type,x:at.x,y:at.y,width:at.width,height:at.height,points:ue.type==="draw"?[...ue.points]:void 0}:ue.type==="line"?{id:ue.id,type:ue.type,x:ue.x,y:ue.y,width:ue.width,height:ue.height,points:ue.points?[...ue.points]:void 0}:{id:ue.id,type:ue.type,x:at.x,y:at.y,width:at.width,height:at.height,textAlign:ue.textAlign,fontSize:ue.fontSize}});_e.length!==0&&(o.current=null,s.current=null,d.current=null,b(),c.current={handle:Y,startPointerX:he,startPointerY:ve,startGroupBounds:Be,elements:_e})},[b,e.elements]),U=g.useCallback((Y,he)=>{t(ve=>jB(ve,Y,he))},[t]),ie=g.useCallback((Y,he)=>{n(ve=>{const Be=ve.camera.zoom;return{...ve,camera:{...ve.camera,x:ve.camera.x+Y/Be,y:ve.camera.y+he/Be}}})},[n]),N=g.useCallback((Y,he,ve)=>{n(Be=>{const Ze=Be.camera.zoom,Ee=Math.exp(-ve*h5),_e=BR(Ze*Ee,Yc,Gc);if(_e===Ze)return Be;const ue=Y/Ze+Be.camera.x,at=he/Ze+Be.camera.y;return{...Be,camera:{x:ue-Y/_e,y:at-he/_e,zoom:_e}}})},[n]),$=g.useCallback((Y,he,ve,Be,Ze)=>{t(Ee=>{const _e=Ee.settings.snapToGrid?Z1(he,Ee.settings.gridSize):he,ue=Ee.settings.snapToGrid?Z1(ve,Ee.settings.gridSize):ve;let at;if(Ze){const rt=Tt=>Ee.settings.snapToGrid?Z1(Tt,Ee.settings.gridSize):Tt;if(Y==="line"){const Tt=rt(Ze.x),p1=rt(Ze.y),v1=rt(Ze.x+Ze.width),kt=rt(Ze.y+Ze.height);at={x:Tt,y:p1,width:v1-Tt,height:kt-p1}}else at={x:rt(Ze.x),y:rt(Ze.y),width:Ee.settings.snapToGrid?Math.max(1,Z1(Ze.width,Ee.settings.gridSize)):Ze.width,height:Ee.settings.snapToGrid?Math.max(1,Z1(Ze.height,Ee.settings.gridSize)):Ze.height}}return nR(Ee,Y,_e,ue,Be,at)})},[t]),V=g.useCallback(Y=>{t(he=>n2(he,Y))},[t]),se=g.useCallback((Y,he)=>{t(ve=>AB(ve,Y,he))},[t]),ke=g.useCallback((Y,he)=>{t(ve=>OB(ve,Y,he))},[t]),We=g.useCallback((Y,he)=>{t(ve=>BB(ve,Y,he))},[t]),Ae=g.useCallback((Y,he)=>{t(ve=>RB(ve,Y,he))},[t]),Qe=g.useCallback((Y,he)=>{t(ve=>TB(ve,Y,he))},[t]),I=g.useCallback((Y,he)=>{t(ve=>NB(ve,Y,he))},[t]),fe=g.useCallback((Y,he)=>{t(ve=>{const Be=ve.settings.snapToGrid?Y.map(Ze=>({x:Z1(Ze.x,ve.settings.gridSize),y:Z1(Ze.y,ve.settings.gridSize),t:Ze.t})):Y;return rR(ve,Be,he)})},[t]),me=g.useCallback(Y=>{t(he=>{const ve=he.settings.snapToGrid?Y.map(Be=>({x:Z1(Be.x,he.settings.gridSize),y:Z1(Be.y,he.settings.gridSize)})):Y;return aR(he,ve)})},[t]),Se=g.useCallback((Y,he)=>{t(ve=>_B(ve,Y,he))},[t]),Xe=g.useCallback((Y,he)=>{t(ve=>ZB(ve,Y,he))},[t]),He=g.useCallback((Y,he)=>{t(ve=>VB(ve,Y,he))},[t]),Ct=g.useCallback((Y,he)=>{t(ve=>WB(ve,Y,he))},[t]),mt=g.useCallback((Y,he)=>{t(ve=>IB(ve,Y,he))},[t]),dt=g.useCallback((Y,he)=>{t(ve=>HB(ve,Y,he))},[t]),xe=g.useCallback((Y,he)=>{t(ve=>zB(ve,Y,he))},[t]),Ue=g.useCallback((Y,he)=>{t(ve=>$B(ve,Y,he))},[t]),ht=g.useCallback((Y,he)=>{t(ve=>cr(ve,{drawDefaults:Y==="marker"?{...ve.settings.drawDefaults,markerStroke:he}:Y==="quill"?{...ve.settings.drawDefaults,quillStroke:he}:{...ve.settings.drawDefaults,drawStroke:he}}))},[t]),Ie=g.useCallback((Y,he)=>{t(ve=>cr(ve,{drawDefaults:Y==="marker"?{...ve.settings.drawDefaults,markerStrokeWidth:he}:Y==="quill"?{...ve.settings.drawDefaults,quillStrokeWidth:he}:{...ve.settings.drawDefaults,drawStrokeWidth:he}}))},[t]),Lt=g.useCallback((Y,he)=>{t(ve=>({...ve,elements:ve.elements.map(Be=>Y.includes(Be.id)&&Be.type==="line"?{...Be,startCap:he}:Be)}))},[t]),n1=g.useCallback((Y,he)=>{t(ve=>({...ve,elements:ve.elements.map(Be=>Y.includes(Be.id)&&Be.type==="line"?{...Be,endCap:he}:Be)}))},[t]),Me=g.useCallback(()=>{o.current=null,s.current=null,c.current=null,d.current=null,h.current=null,b()},[b]),tt=g.useCallback((Y,he)=>{n(ve=>({...ve,elements:ve.elements.map(Be=>Be.id!==Y||Be.type!=="line"?Be:{...Be,x:he.x,y:he.y,width:he.width,height:he.height,controlPoint:he.controlPoint,points:he.points??Be.points})}))},[n]);return{handlePointerDown:z,handlePointerMove:q,handlePointerUp:te,handleResizeStart:Q,handleRotateStart:X,handleGroupRotateStart:H,handleTextCommit:U,handleWheelPan:ie,handleWheelZoom:N,handleCreateElement:$,handleSelectElements:V,handleGroupResizeStart:oe,handleTextFontFamilyChange:se,handleTextFontSizeChange:ke,handleTextFontWeightChange:We,handleTextFontStyleChange:Ae,handleTextAlignChange:Qe,handleTextColorChange:I,handleCreateDrawElement:fe,handleCreateLinePathElement:me,handleDrawStrokeWidthChange:Se,handleDrawStrokeColorChange:mt,handleShapeFillColorChange:dt,handleShapeFillStyleChange:xe,handleElementsOpacityChange:Ue,handleShapeStrokeColorChange:Xe,handleShapeStrokeWidthChange:He,handleShapeStrokeStyleChange:Ct,handleDrawDefaultStrokeColorChange:ht,handleDrawDefaultStrokeWidthChange:Ie,handleLineStartCapChange:Lt,handleLineEndCapChange:n1,handleLineEditStart:Me,handleLineGeometryChange:tt,alignmentGuides:v}},ZR="drawo-images",VR=1,ac="images",Op=4096,WR=.86,$R=()=>typeof indexedDB<"u",j8=(e,t)=>e instanceof Error?e:new Error(t),UR=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`img_${Date.now()}_${Math.random().toString(36).slice(2,10)}`,qR=()=>new Promise((e,t)=>{if(!$R()){t(new Error("IndexedDB is not supported in this browser"));return}const n=indexedDB.open(ZR,VR);n.onerror=()=>{t(j8(n.error,"Failed to open image database"))},n.onupgradeneeded=()=>{const r=n.result;r.objectStoreNames.contains(ac)||r.createObjectStore(ac,{keyPath:"id"})},n.onsuccess=()=>{e(n.result)}}),Ww=async(e,t)=>{const n=await qR();return new Promise((r,o)=>{const s=n.transaction(ac,e),c=s.objectStore(ac),d=t(c);d.onsuccess=()=>{r(d.result)},d.onerror=()=>{o(j8(d.error,"IndexedDB request failed"))},s.onerror=()=>{o(j8(s.error,"IndexedDB transaction failed"))},s.oncomplete=()=>{n.close()}})},$w=e=>new Promise((t,n)=>{const r=new window.Image,o=new FileReader;o.onload=()=>{if(typeof o.result!="string"){n(new Error("Unable to decode image blob"));return}r.onload=()=>t(r),r.onerror=()=>n(new Error("Unable to decode image blob")),r.src=o.result},o.onerror=()=>{n(o.error??new Error("Unable to decode image blob"))},o.readAsDataURL(e)}),E4=async e=>{const t=await $w(e);return{naturalWidth:Math.max(1,t.naturalWidth),naturalHeight:Math.max(1,t.naturalHeight)}},oc=async e=>{if(e.type==="image/gif")return{blob:e,...await E4(e),isAnimated:!0};if(!e.type.startsWith("image/"))return{blob:e,...await E4(e),isAnimated:!1};try{const t=await $w(e),n=Math.max(1,t.naturalWidth),r=Math.max(1,t.naturalHeight),o=Math.min(1,Op/n,Op/r),s=Math.max(1,Math.round(n*o)),c=Math.max(1,Math.round(r*o)),d=document.createElement("canvas");d.width=s,d.height=c;const h=d.getContext("2d");if(!h)return{blob:e,naturalWidth:n,naturalHeight:r,isAnimated:!1};h.drawImage(t,0,0,s,c);const p=await new Promise(v=>{d.toBlob(v,"image/webp",WR)});return p?o<1||p.size<e.size*.92?{blob:p,naturalWidth:s,naturalHeight:c,isAnimated:!1}:{blob:e,naturalWidth:n,naturalHeight:r,isAnimated:!1}:{blob:e,naturalWidth:n,naturalHeight:r,isAnimated:!1}}catch{return{blob:e,...await E4(e),isAnimated:!1}}},YR=async e=>oc(e),ic=async(e,t=UR())=>(await Ww("readwrite",n=>n.put({id:t,blob:e,createdAt:Date.now()})),t),Uw=async e=>(await Ww("readonly",n=>n.get(e)))?.blob??null,Bp=async e=>{const t=await fetch(e);if(!t.ok)throw new Error("Unable to fetch image source");return t.blob()},C2=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=()=>{if(typeof r.result=="string"){t(r.result);return}n(new Error("Unable to read blob as DataURL"))},r.onerror=()=>n(r.error??new Error("Blob read failed")),r.readAsDataURL(e)}),GR=async e=>{const t=await YR(e),n=await ic(t.blob),r=await C2(t.blob);return{assetId:n,src:r,naturalWidth:t.naturalWidth,naturalHeight:t.naturalHeight,isAnimated:t.isAnimated}},qw="application/x-drawo",KR=e=>JSON.stringify(e),Rp=e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:null}catch{return null}},XR=e=>({id:An("text"),type:"text",x:0,y:0,text:e,fontSize:24,fontFamily:"Inter",opacity:100,fontWeight:"400",fontStyle:"normal",color:"#000000",textAlign:"left",rotation:0}),QR=e=>new Promise((t,n)=>{const r=new window.Image;r.onload=()=>{t({width:r.naturalWidth||200,height:r.naturalHeight||200})},r.onerror=()=>n(new Error("Image load error")),r.src=e}),JR=async e=>{try{const t=await oc(e),n=await C2(t.blob),r=await ic(t.blob),{width:o,height:s}=await QR(n);return{id:An("image"),type:"image",assetId:r,x:0,y:0,width:o,height:s,naturalWidth:o,naturalHeight:s,src:n,rotation:0,flipX:!1,flipY:!1,opacity:100,frame:!1}}catch{return null}},eT=async e=>{const t=e.getData(qw);if(t){const o=Rp(t);if(o&&o.length>0)return o}const n=e.getData("text/plain");if(n){const o=Rp(n);if(o&&o.length>0)return o}const r=Array.from(e.items??[]);for(const o of r){if(!o.type.startsWith("image/"))continue;const s=o.getAsFile();if(!s)continue;const c=await JR(s);if(c)return[c]}return n?[XR(n)]:null},Tp=(e,t)=>{const n=KR(t);e.setData(qw,n),e.setData("text/plain",n)},tT=1,nT=10,rT=e=>{const t=e.shiftKey?nT:tT;switch(e.key){case"ArrowUp":return{dx:0,dy:-t};case"ArrowDown":return{dx:0,dy:t};case"ArrowLeft":return{dx:-t,dy:0};case"ArrowRight":return{dx:t,dy:0};default:return null}},jl=e=>e.selectedIds.length>0?e.selectedIds:e.selectedId?[e.selectedId]:[],aT=({scene:e,dispatch:t,clipboardRef:n,cursorPositionRef:r,setInteractionMode:o,setDrawingTool:s,setOpenTopbarPanel:c})=>{g.useEffect(()=>{const d=b=>{if(!(b instanceof HTMLElement))return!1;const D=b.tagName.toLowerCase();return D==="input"||D==="textarea"||D==="select"?!0:b.isContentEditable},h=async b=>{if(d(b.target))return;const D=rT(b);if(D&&!b.altKey&&!b.ctrlKey&&!b.metaKey&&jl(e).length>0){b.preventDefault(),t({type:"setScene",updater:w=>XB(w,D.dx,D.dy)});return}const S=b.key.toLowerCase(),L=b.ctrlKey||b.metaKey;if(b.altKey&&!L&&!b.shiftKey){if(S==="z"){b.preventDefault(),t({type:"setScene",trackHistory:!1,updater:M=>cr(M,{zenMode:!M.settings.zenMode})});return}if(S==="r"){b.preventDefault(),t({type:"setScene",trackHistory:!1,updater:M=>cr(M,{presentationMode:!M.settings.presentationMode})});return}}if(L&&!b.altKey&&S==="z"){if(b.preventDefault(),b.shiftKey){t({type:"redo"});return}t({type:"undo"});return}if(L&&!b.altKey&&S==="y"){b.preventDefault(),t({type:"redo"});return}if(L&&!b.altKey&&S==="a"){b.preventDefault(),t({type:"setScene",updater:M=>n2(M,M.elements.map(w=>w.id))});return}if(L&&!b.altKey&&(b.code==="Backslash"||b.code==="IntlBackslash"||b.key==="\\"||b.key==="|")){b.preventDefault(),c(M=>M==="sidebar"?null:"sidebar");return}if(L&&!b.altKey&&S==="d"){if(jl(e).length===0)return;b.preventDefault(),t({type:"setScene",updater:w=>_w(w)});return}if(L&&!b.altKey&&S==="g"){const M=jl(e),w=e.elements.filter(E=>M.includes(E.id));if(b.shiftKey){if(!w.some(O=>!!O.groupId))return;b.preventDefault(),t({type:"setScene",updater:O=>zw(O)});return}if(M.length<=1)return;b.preventDefault(),t({type:"setScene",updater:E=>Iw(E)});return}if(L&&!b.altKey){const M=b.code,w=S==="+"||S==="="||M==="Equal"||M==="NumpadAdd",E=S==="-"||S==="_"||M==="Minus"||M==="NumpadSubtract",O=S==="0"||M==="Digit0"||M==="Numpad0";if(w){b.preventDefault(),t({type:"setScene",trackHistory:!1,updater:B=>{const T=B.camera.zoom,P=Math.exp(100*h5),_=Math.min(T*P,Gc);if(_===T)return B;const Z=window.innerWidth/2,K=window.innerHeight/2,W=Z/T+B.camera.x,z=K/T+B.camera.y;return{...B,camera:{x:W-Z/_,y:z-K/_,zoom:_}}}});return}if(E){b.preventDefault(),t({type:"setScene",trackHistory:!1,updater:B=>{const T=B.camera.zoom,P=Math.exp(-100*h5),_=Math.max(T*P,Yc);if(_===T)return B;const Z=window.innerWidth/2,K=window.innerHeight/2,W=Z/T+B.camera.x,z=K/T+B.camera.y;return{...B,camera:{x:W-Z/_,y:z-K/_,zoom:_}}}});return}if(O){b.preventDefault(),t({type:"setScene",trackHistory:!1,updater:B=>{const T=B.camera.zoom,P=1;if(P===T)return B;const _=window.innerWidth/2,Z=window.innerHeight/2,K=_/T+B.camera.x,W=Z/T+B.camera.y;return{...B,camera:{x:K-_/P,y:W-Z/P,zoom:P}}}});return}}if(!L&&!b.altKey){if(e.settings.presentationMode){S==="h"&&!b.shiftKey&&(b.preventDefault(),o("pan"),s(null));return}if(S==="v"&&!b.shiftKey){b.preventDefault(),o("select"),s(null);return}if(S==="h"&&!b.shiftKey){b.preventDefault(),o("pan"),s(null);return}if(b.code==="Digit1"){b.preventDefault(),o("select"),s("text");return}if(b.code==="Digit2"){b.preventDefault(),o("select"),s("rectangle");return}if(b.code==="Digit3"){b.preventDefault(),o("select"),s("circle");return}if(b.code==="Digit4"){b.preventDefault(),o("select"),s("draw");return}if(S==="k"){b.preventDefault(),o("select"),s("laser");return}}if(b.key==="Backspace"||b.key==="Delete"){if(!e.selectedId&&e.selectedIds.length===0)return;b.preventDefault(),t({type:"setScene",updater:M=>nc(M)})}},p=b=>{b.length!==0&&t({type:"setScene",updater:D=>{const S=r.current,L=S?S.x/D.camera.zoom+D.camera.x:D.camera.x+window.innerWidth/(2*D.camera.zoom),M=S?S.y/D.camera.zoom+D.camera.y:D.camera.y+window.innerHeight/(2*D.camera.zoom);let w=1/0,E=1/0;for(const B of b)w=Math.min(w,B.x),E=Math.min(E,B.y);const O=b.map(B=>({...B,id:An(B.type),x:L+(B.x-w),y:M+(B.y-E)}));return{...D,elements:[...D.elements,...O],selectedId:O[0]?.id??null,selectedIds:O.map(B=>B.id)}}})},m=b=>{if(d(b.target))return;const D=jl(e);if(D.length===0||!b.clipboardData)return;const S=e.elements.filter(L=>D.includes(L.id)).map(L=>({...L}));n.current=S,Tp(b.clipboardData,S),b.preventDefault()},v=b=>{if(d(b.target))return;const D=jl(e);if(D.length===0||!b.clipboardData)return;const S=e.elements.filter(L=>D.includes(L.id)).map(L=>({...L}));n.current=S,Tp(b.clipboardData,S),b.preventDefault(),t({type:"setScene",updater:L=>nc(L)})},y=b=>{d(b.target)||!b.clipboardData||(b.preventDefault(),eT(b.clipboardData).then(D=>{if(D&&D.length>0){n.current=D,p(D);return}const S=n.current;S&&S.length>0&&p(S)}))};return window.addEventListener("keydown",h),window.addEventListener("copy",m),window.addEventListener("cut",v),window.addEventListener("paste",y),()=>{window.removeEventListener("keydown",h),window.removeEventListener("copy",m),window.removeEventListener("cut",v),window.removeEventListener("paste",y)}},[n,t,e,s,o,c,r])},oT="modulepreload",iT=function(e){return"/"+e},Np={},sT=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let h=function(p){return Promise.all(p.map(m=>Promise.resolve(m).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");o=h(n.map(p=>{if(p=iT(p),p in Np)return;Np[p]=!0;const m=p.endsWith(".css"),v=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":oT,m||(y.as="script"),y.crossOrigin="",y.href=p,d&&y.setAttribute("nonce",d),document.head.appendChild(y),m)return new Promise((b,D)=>{y.addEventListener("load",b),y.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return o.then(c=>{for(const d of c||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})},Gl=9,lT=2,uT=6,A8=8,cT=12,Yw=10,fT=20,Fp=12,Pp=14,ti=[1,2,4,7,12],p5=[10,18],_p=["none","line arrow","triangle arrow","inverted triangle","circular arrow","diamond arrow"],Ip=[{width:104,height:42,viewBox:"0 0 104 42",path:"M4.2959 21H98.4053",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round"},{width:104,height:42,viewBox:"0 0 104 42",path:"M4.94531 21L99.0547 21M99.0547 21L77.3142 5.43896M99.0547 21L77.3142 36.5611",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"},{width:104,height:42,viewBox:"0 0 104 42",path:"M4.49805 20.9999L72.3752 21M75.4157 35.6733L96.6982 22.7079C97.9775 21.9286 97.9775 20.0713 96.6982 19.2919L75.4157 6.32664C74.0829 5.51472 72.3752 6.47404 72.3752 8.03465V33.9652C72.3752 35.5259 74.0829 36.4852 75.4157 35.6733Z",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"},{width:104,height:42,viewBox:"0 0 104 42",path:"M4.46875 20.9999L72.3459 21M72.3459 21L96.4925 35.6783C97.8254 36.4885 99.5314 35.529 99.5314 33.9693V20.9999V8.03066C99.5314 6.4709 97.8253 5.51145 96.4925 6.32164L72.3459 21Z",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"},{width:104,height:42,viewBox:"0 0 104 42",path:"M4.46875 21H71.0452M71.0452 21C71.0452 29.2351 77.7211 35.911 85.9562 35.911C94.1913 35.911 100.867 29.2351 100.867 21C100.867 12.7649 94.1913 6.08899 85.9562 6.08899C77.7211 6.08899 71.0452 12.7649 71.0452 21Z",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round"},{width:104,height:42,viewBox:"0 0 104 42",path:"M4.46875 21H68.9493M70.1209 23.8284L81.9189 35.6264C83.481 37.1885 86.0136 37.1885 87.5757 35.6264L99.3737 23.8284C100.936 22.2663 100.936 19.7337 99.3737 18.1716L87.5757 6.3736C86.0136 4.8115 83.481 4.8115 81.9189 6.3736L70.1209 18.1716C68.5588 19.7337 68.5588 22.2663 70.1209 23.8284Z",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round"}],F0=[{width:556,height:39,viewBox:"0 0 556 39",path:"M8.56738 26.2557L73.1859 16.7619C148.798 5.65298 225.666 6.20304 301.112 18.3929C354.366 26.9973 408.395 29.8127 462.255 26.7899L547.231 22.0209",strokeWidth:3},{width:556,height:47,viewBox:"0 0 556 47",path:"M11.6562 30.2854L75.5612 21.2533C150.321 10.687 226.23 11.2105 300.836 22.8068C353.497 30.992 406.868 33.6697 460.083 30.7966L544.142 26.2583",strokeWidth:8},{width:556,height:52,viewBox:"0 0 556 52",path:"M15.0752 33.351L78.1507 24.3201C151.946 13.7545 226.905 14.2778 300.545 25.8728C352.524 34.0571 405.222 36.7347 457.763 33.8612L540.724 29.3238",strokeWidth:13},{width:556,height:60,viewBox:"0 0 556 60",path:"M16.415 37.3698L79.1655 28.3394C152.582 17.7741 227.17 18.2974 300.431 29.8918C352.143 38.0758 404.577 40.7533 456.853 37.8796L539.384 33.3426",strokeWidth:19},{width:556,height:64,viewBox:"0 0 556 64",path:"M19.7637 40.0679L81.7016 31.0388C154.173 20.4742 227.831 20.9973 300.145 32.5904C351.189 40.7734 402.964 43.4509 454.58 40.5766L536.035 36.0408",strokeWidth:24}],Gw=[{width:556,height:52,viewBox:"0 0 556 52",path:"M77.2295 17.8856C151.665 7.22826 227.276 7.75642 301.556 19.4521C353.083 27.5653 405.324 30.2196 457.408 27.371L537.374 22.9977C539.028 22.9072 540.442 24.175 540.533 25.8294L540.915 32.8188C541.006 34.4732 539.738 35.8877 538.084 35.9782L458.118 40.3515C405.121 43.25 351.965 40.5493 299.534 32.2938C226.534 20.7997 152.226 20.281 79.0723 30.7548L18.9659 39.3599C17.3257 39.5947 15.8058 38.4554 15.571 36.8152L14.5793 29.8865C14.3446 28.2464 15.4838 26.7265 17.1239 26.4917L77.2295 17.8856Z",fill:"currentColor"},{width:556,height:64,viewBox:"0 0 556 64",path:"M79.9707 15.2955C153.647 1.93246 228.529 2.59396 302.045 17.2577C352.241 27.2699 403.155 30.5458 453.913 27.0291L542.238 20.9107C545.041 20.7165 547.453 22.8686 547.579 25.6751L548.466 45.4967C548.588 48.2079 546.524 50.5209 543.817 50.7084L455.247 56.8438C402.774 60.4793 350.138 57.0937 298.246 46.7431C227.133 32.5588 154.7 31.9179 83.4326 44.844L14.859 57.2823C12.0204 57.7972 9.33625 55.8097 9.00056 52.9444L6.70458 33.3475C6.39743 30.7259 8.18106 28.3171 10.7782 27.846L79.9707 15.2955Z",fill:"currentColor"}],zp=e=>{const t=Number.isFinite(e)?Math.max(1,e):2;return ti.reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n,ti[0])},dT=e=>{const t=Number.isFinite(e)?Math.max(1,e):10;return p5.reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n,p5[0])},Qo=(e,t,n)=>n==="center"?e-t/2:n==="right"||n==="end"?e-t:e,hT=e=>e==="center"?"center":e==="right"||e==="end"?"end":"left",Al=e=>e==="n"||e==="s"?"ns-resize":e==="e"||e==="w"?"ew-resize":e==="nw"||e==="se"?"nwse-resize":"nesw-resize",Ol=e=>{switch(e){case"nw":return"rotate-down-left";case"ne":return"rotate-down-right";case"sw":return"rotate-up-left";case"se":return"rotate-up-right";default:return"nesw-resize"}},Kw=(e,t)=>t==="nw"?{x:e.x,y:e.y}:t==="ne"?{x:e.x+e.width,y:e.y}:t==="sw"?{x:e.x,y:e.y+e.height}:t==="n"?{x:e.x+e.width/2,y:e.y}:t==="e"?{x:e.x+e.width,y:e.y+e.height/2}:t==="s"?{x:e.x+e.width/2,y:e.y+e.height}:t==="w"?{x:e.x,y:e.y+e.height/2}:{x:e.x+e.width,y:e.y+e.height},Il=(e,t,n,r,o)=>{const s=Math.cos(o),c=Math.sin(o),d=e-n,h=t-r;return{x:d*s-h*c+n,y:d*c+h*s+r}},oa=e=>({x:e.x+e.width/2,y:e.y+e.height/2}),Kl=(e,t)=>t==="center"?e.x+e.width/2:t==="right"||t==="end"?e.x+e.width-A8:e.x+A8,Hp=(e,t,n,r,o,s)=>e>=n-s&&e<=r+s&&Math.abs(t-o)<=s,Zp=(e,t,n,r,o,s)=>t>=r-s&&t<=o+s&&Math.abs(e-n)<=s,O8=(e,t,n,r)=>{const o=Yw/r,s=fT/r,c=["nw","ne","se","sw"];for(const d of c){const h=Kw(e,d),p=t-h.x,m=n-h.y,v=Math.hypot(p,m);if(v<=o)return{handle:d,mode:"resize"};if(v<=s)return{handle:d,mode:"rotate"}}return null},pT=8,CT=(e,t,n,r)=>{const o=Math.max(pT,Yw)/r,s=e.x,c=e.x+e.width,d=e.y,h=e.y+e.height;return Hp(t,n,s,c,d,o)?{handle:"n",mode:"resize"}:Hp(t,n,s,c,h,o)?{handle:"s",mode:"resize"}:Zp(t,n,s,d,h,o)?{handle:"w",mode:"resize"}:Zp(t,n,c,d,h,o)?{handle:"e",mode:"resize"}:null},u0=(e,t,n,r)=>{const o=O8(e,t,n,r);return o||CT(e,t,n,r)},Vp=(e,t)=>e==="line arrow"||e==="triangle arrow"||e==="inverted triangle"||e==="diamond arrow"?Math.max(12,t*2):e==="circular arrow"?Math.max(9,t*1.2):0,gT=e=>{const t=e.drawMode==="marker"?Math.max(6,e.strokeWidth*.65):e.drawMode==="quill"?Math.max(4,e.strokeWidth*1.45):Math.max(3,e.strokeWidth/2);return{x:e.x-t,y:e.y-t,width:e.width+t*2,height:e.height+t*2}},Xl=e=>{const t=ua(e)&&e.points?D2(e.points):null,n=t?t.x:e.x,r=t?t.y:e.y,o=t?t.x+t.width:e.x+e.width,s=t?t.y+t.height:e.y+e.height,c=t?n+(o-n)/2:e.controlPoint?e.controlPoint.x:n+(o-n)/2,d=t?r+(s-r)/2:e.controlPoint?e.controlPoint.y:r+(s-r)/2,h=c*2-(n+o)*.5,p=d*2-(r+s)*.5,m=t?t.x:Number.POSITIVE_INFINITY,v=t?t.y:Number.POSITIVE_INFINITY,y=t?t.x+t.width:Number.NEGATIVE_INFINITY,b=t?t.y+t.height:Number.NEGATIVE_INFINITY,D=Math.min(n,o,c,h,m),S=Math.min(r,s,d,p,v),L=Math.max(n,o,c,h,y),M=Math.max(r,s,d,p,b),w=Math.max(2,e.strokeWidth/2),E=Math.max(Vp(e.startCap,e.strokeWidth),Vp(e.endCap,e.strokeWidth)),O=w+E;return{x:D-O,y:S-O,width:Math.max(1,L-D)+O*2,height:Math.max(1,M-S)+O*2}},mT=e=>({x:e.x+e.width/2,y:e.y+e.height/2}),H9=e=>{const t=ua(e)&&e.points?e.points:null,n=t?t[0]:{x:e.x,y:e.y},r=t?t[t.length-1]:{x:e.x+e.width,y:e.y+e.height},o=e.controlPoint??mT(e);return{start:n,end:r,throughPoint:o}},vT=(e,t,n)=>({x:n.x*2-(e.x+t.x)*.5,y:n.y*2-(e.y+t.y)*.5}),k4=(e,t,n)=>{const r={x:e.x+e.width/2,y:e.y+e.height/2};return Il(t,n,r.x,r.y,-e.rotation*Math.PI/180)},yT=`
55
+ radial-gradient(circle at center,
56
+ rgba(255,255,255,1) 0%,
57
+ rgba(255,255,255,0.85) 10%,
58
+ rgba(255,255,255,0.55) 22%,
59
+ rgba(255,255,255,0.15) 40%,
60
+ transparent 62%
61
+ ),
62
+ radial-gradient(circle at 36% 32%, rgba(255,255,255,0.35) 0%, transparent 35%),
63
+ radial-gradient(circle at 68% 70%, rgba(0,0,0,0.38) 0%, transparent 52%),
64
+ conic-gradient(
65
+ from 0deg,
66
+ hsl(0, 70%, 65%),
67
+ hsl(30, 72%, 63%),
68
+ hsl(55, 70%, 62%),
69
+ hsl(80, 60%, 60%),
70
+ hsl(120, 55%, 60%),
71
+ hsl(160, 60%, 58%),
72
+ hsl(185, 65%, 60%),
73
+ hsl(210, 68%, 63%),
74
+ hsl(240, 65%, 66%),
75
+ hsl(270, 65%, 65%),
76
+ hsl(300, 65%, 64%),
77
+ hsl(330, 68%, 64%),
78
+ hsl(360, 70%, 65%)`,F5=e=>Math.min(1,Math.max(0,e)),xT=e=>{const t=e.trim().slice(1);if(t.length===3||t.length===4){const n=parseInt(t[0]+t[0],16),r=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),s=t.length===4?parseInt(t[3]+t[3],16)/255:1;return{r:n,g:r,b:o,a:s}}if(t.length===6||t.length===8){const n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),o=parseInt(t.slice(4,6),16),s=t.length===8?parseInt(t.slice(6,8),16)/255:1;return{r:n,g:r,b:o,a:s}}return null};function wT({r:e,g:t,b:n}){return .299*e+.587*t+.114*n<128}const bT=e=>{const t=e.trim().match(/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*[,/]\s*([\d.]+%?))?\s*\)$/i);if(!t)return null;const n=Number(t[1]),r=Number(t[2]),o=Number(t[3]),s=t[4],c=s?s.endsWith("%")?Number(s.slice(0,-1))/100:Number(s):1;return{r:Math.max(0,Math.min(255,n)),g:Math.max(0,Math.min(255,r)),b:Math.max(0,Math.min(255,o)),a:F5(c)}},P5=e=>e.trim().startsWith("#")?xT(e):e.trim().toLowerCase().startsWith("rgb")?bT(e):null,ST=({r:e,g:t,b:n})=>{const r=e/255,o=t/255,s=n/255,c=Math.max(r,o,s),d=Math.min(r,o,s),h=c-d,p=(c+d)/2;if(h===0)return{hue:0,saturation:0,lightness:p};const m=p>.5?h/(2-c-d):h/(c+d);return{hue:(c===r?(o-s)/h+(o<s?6:0):c===o?(s-r)/h+2:(r-o)/h+4)/6,saturation:m,lightness:p}},j4=(e,t,n)=>{let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e},DT=(e,t,n)=>{if(t===0){const s=Math.round(n*255);return{r:s,g:s,b:s}}const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r;return{r:Math.round(j4(o,r,e+1/3)*255),g:Math.round(j4(o,r,e)*255),b:Math.round(j4(o,r,e-1/3)*255)}},sc=e=>{const t=P5(e);if(!t)return e;const{hue:n,saturation:r,lightness:o}=ST(t),s=F5(1-o),c=DT(n,r,s);return t.a<1?`rgba(${c.r}, ${c.g}, ${c.b}, ${t.a})`:`rgb(${c.r}, ${c.g}, ${c.b})`},Wp=e=>{const t=e.match(/\d+(?:\.\d+)?/g);return!t||t.length<3?null:t.slice(0,3).map(n=>{const r=Number(n);return Math.max(0,Math.min(255,Math.round(r)))}).join(", ")},Z9=e=>{const t=P5(e);return t?`rgba(${t.r}, ${t.g}, ${t.b}, ${t.a})`:"#2f3b52"},A4=new WeakMap;let Bi=null;const Sr=(e,t,n,r,o,s)=>{const c=Math.max(0,Math.min(s,r/2,o/2));e.beginPath(),e.roundRect(t,n,r,o,c)},lc=(e,t)=>{if(t.length===0)return;if(t.length===1){e.moveTo(t[0].x,t[0].y),e.lineTo(t[0].x,t[0].y);return}if(t.length===2){e.moveTo(t[0].x,t[0].y),e.lineTo(t[1].x,t[1].y);return}e.moveTo(t[0].x,t[0].y);for(let r=1;r<t.length-1;r++){const o=t[r],s=t[r+1],c=(o.x+s.x)/2,d=(o.y+s.y)/2;e.quadraticCurveTo(o.x,o.y,c,d)}const n=t[t.length-1];e.lineTo(n.x,n.y)},$p=(e,t,n,r,o)=>{const s=o/2,c=s*.3,d=Math.min(s*.25,c*.8);e.save(),e.translate(t,n),e.rotate(r),e.beginPath(),e.moveTo(0,-s),e.lineTo(c-d,-s),e.quadraticCurveTo(c,-s,c,-s+d),e.lineTo(c,s-d),e.quadraticCurveTo(c,s,c-d,s),e.lineTo(0,s),e.closePath(),e.fill(),e.restore()},r2=(e,t,n)=>{if(t.length===0)return;const r=Math.max(1,n),o=e.canvas;(!Bi||Bi.width!==o.width||Bi.height!==o.height)&&(Bi=document.createElement("canvas"),Bi.width=o.width,Bi.height=o.height);const s=Bi,c=s.getContext("2d");if(c){if(c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,s.width,s.height),c.setTransform(e.getTransform()),c.strokeStyle=e.strokeStyle,c.fillStyle=e.strokeStyle,t.length===1)c.beginPath(),c.arc(t[0].x,t[0].y,r/2,0,Math.PI*2),c.fill();else{c.lineWidth=r,c.lineJoin="round",c.lineCap="butt",c.beginPath(),lc(c,t),c.stroke();const d=t[0].x-t[1].x,h=t[0].y-t[1].y;Math.sqrt(d*d+h*h)>0&&$p(c,t[0].x,t[0].y,Math.atan2(h,d),r);const m=t[t.length-1],v=t[t.length-2],y=m.x-v.x,b=m.y-v.y;Math.sqrt(y*y+b*b)>0&&$p(c,m.x,m.y,Math.atan2(b,y),r)}e.save(),e.setTransform(1,0,0,1,0,0),e.drawImage(s,0,0),e.restore()}},Up=(e,t,n)=>Math.max(t,Math.min(n,e)),ni=(e,t,n)=>e+(t-e)*n,qp=(e,t)=>typeof e.t=="number"&&Number.isFinite(e.t)?e.t:t,LT=e=>{if(e.length<=2)return[...e];let t=[...e];for(let n=0;n<2&&!(t.length<=2);n++){const r=[t[0]];for(let o=0;o<t.length-1;o++){const s=t[o],c=t[o+1];r.push({x:s.x*.75+c.x*.25,y:s.y*.75+c.y*.25,t:typeof s.t=="number"&&typeof c.t=="number"?s.t*.75+c.t*.25:s.t}),r.push({x:s.x*.25+c.x*.75,y:s.y*.25+c.y*.75,t:typeof s.t=="number"&&typeof c.t=="number"?s.t*.25+c.t*.75:c.t})}r.push(t[t.length-1]),t=r}return t},MT=(e,t)=>{if(e.length===0)return[];const n=Math.max(1,t),r=n*.42,o=n*2.35,s=.035,c=.9;let d=1.3;const h=[Up(n*d,r,o)];let p=0;for(let m=1;m<e.length;m++){const v=e[m-1],y=e[m],b=Math.hypot(y.x-v.x,y.y-v.y),D=qp(v,(m-1)*16),S=qp(y,m*16),L=Math.max(1,S-D),M=b/L;p=ni(p,M,.12);const w=F5((p-s)/(c-s)),E=ni(2.3,.42,w);d=ni(d,E,.12),h.push(Up(n*d,r,o))}for(let m=0;m<2;m++)for(let v=1;v<h.length-1;v++)h[v]=h[v-1]*.25+h[v]*.5+h[v+1]*.25;return h},Yp=(e,t,n,r)=>{if(e.lineCap="round",e.lineJoin="round",t.length===1){e.globalAlpha=r,e.beginPath(),e.arc(t[0].x,t[0].y,n[0]/2,0,Math.PI*2),e.fill();return}for(let o=1;o<t.length;o++){const s=t[o-1],c=t[o],d=n[o-1]??n[0],h=n[o]??d,p=Math.hypot(c.x-s.x,c.y-s.y),m=Math.max(1,Math.ceil(p/2.4));for(let v=1;v<=m;v++){const y=(v-1)/m,b=v/m,D=ni(s.x,c.x,y),S=ni(s.y,c.y,y),L=ni(s.x,c.x,b),M=ni(s.y,c.y,b),w=ni(d,h,(y+b)/2),E=.985+.015*Math.sin(o*9.7+v*.31);e.globalAlpha=r*E,e.lineWidth=Math.max(.6,w),e.beginPath(),e.moveTo(D,S),e.lineTo(L,M),e.stroke()}}},ET=(e,t)=>{let n=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY;for(let c=0;c<e.length;c++){const d=e[c],h=(t[c]??t[0]??1)/2+2;n=Math.min(n,d.x-h),r=Math.min(r,d.y-h),o=Math.max(o,d.x+h),s=Math.max(s,d.y+h)}return{x:n,y:r,width:Math.max(1,o-n),height:Math.max(1,s-r)}},a2=(e,t,n,r=!0)=>{if(t.length===0)return;const o=Math.max(1,n),s=A4.get(t),c=s&&s.strokeWidth===o?s.smoothedPoints:LT(t),d=s&&s.strokeWidth===o?s.widths:MT(c,o);if((!s||s.strokeWidth!==o)&&A4.set(t,{strokeWidth:o,smoothedPoints:c,widths:d,rasterStrokeStyle:null,rasterCanvas:null,rasterX:0,rasterY:0,rasterWidth:0,rasterHeight:0}),d.length===0)return;const h=A4.get(t),p=e.globalAlpha,m=typeof e.strokeStyle=="string"?e.strokeStyle:null;if(r&&h&&m&&h.rasterCanvas&&h.rasterStrokeStyle===m){e.drawImage(h.rasterCanvas,h.rasterX,h.rasterY,h.rasterWidth,h.rasterHeight),e.globalAlpha=p;return}if(r&&h&&m){const v=ET(c,d),y=2,b=document.createElement("canvas");b.width=Math.max(1,Math.ceil(v.width*y)),b.height=Math.max(1,Math.ceil(v.height*y));const D=b.getContext("2d");if(D){D.setTransform(y,0,0,y,0,0),D.translate(-v.x,-v.y),D.strokeStyle=m,D.fillStyle=m,Yp(D,c,d,1),h.rasterStrokeStyle=m,h.rasterCanvas=b,h.rasterX=v.x,h.rasterY=v.y,h.rasterWidth=v.width,h.rasterHeight=v.height,e.drawImage(b,v.x,v.y,v.width,v.height),e.globalAlpha=p;return}}Yp(e,c,d,p),e.globalAlpha=p},B8=e=>typeof e=="number"&&Number.isFinite(e)?Math.max(1,e):2,R8=(e,t)=>e==="marker"?{opacity:t?.42:.32,compositeOperation:t?"screen":"multiply"}:{opacity:1,compositeOperation:"source-over"},T8=()=>"round",kT=(e,t,n,r,o,s,c)=>{const{start:d,end:h,throughPoint:p}=H9(t),m=[{key:"start",x:d.x,y:d.y},{key:"end",x:h.x,y:h.y},{key:"control",x:p.x,y:p.y}],v=Math.max(6/n,Gl/(2.6*n));for(const y of m){const b=s===y.key,D=c===y.key,L=v*(D?1.3:b?1.15:1);e.save(),e.fillStyle=o,e.strokeStyle=r,e.lineWidth=(D?2.25:b?1.8:1.5)/n,e.beginPath(),e.arc(y.x,y.y,L,0,Math.PI*2),e.fill(),e.stroke(),(D||b)&&(e.globalAlpha=D?.2:.12,e.strokeStyle=r,e.lineWidth=5/n,e.beginPath(),e.arc(y.x,y.y,L+1.5/n,0,Math.PI*2),e.stroke()),e.restore()}},Xw=(e,t,n=1.25)=>{if(t.length===0||(e.moveTo(t[0].x,t[0].y),t.length===1))return;if(t.length===2){e.lineTo(t[1].x,t[1].y);return}const r=Math.max(.2,Math.min(1.8,n));for(let o=0;o<t.length-1;o++){const s=t[o-1]??t[o],c=t[o],d=t[o+1],h=t[o+2]??d,p=c.x+(d.x-s.x)*r/6,m=c.y+(d.y-s.y)*r/6,v=d.x-(h.x-c.x)*r/6,y=d.y-(h.y-c.y)*r/6;e.bezierCurveTo(p,m,v,y,d.x,d.y)}},jT=(e,t,n,r,o,s,c)=>{const d=Math.max(6/n,Gl/(2.35*n));for(let h=0;h<t.length;h++){const p=t[h],m=s===h,v=c===h,y=h===0||h===t.length-1,D=d*(v?1.36:m?1.18:1)*(y?1.08:1);e.save(),e.fillStyle=o,e.strokeStyle=r,e.lineWidth=(v?2.3:m?1.85:1.5)/n,e.beginPath(),e.arc(p.x,p.y,D,0,Math.PI*2),e.fill(),e.stroke(),(v||m)&&(e.globalAlpha=v?.21:.13,e.strokeStyle=r,e.lineWidth=5/n,e.beginPath(),e.arc(p.x,p.y,D+1.65/n,0,Math.PI*2),e.stroke()),e.restore()}},Qw=({ctx:e,lineElement:t,elementOpacity:n,zoom:r,accentColor:o,accentSelectionColor:s,toThemeColor:c,shouldShowElementSelection:d,isMultiSelection:h,isMarqueePreview:p,canTransformSelection:m,hoveredLineHandle:v,activeLineHandle:y,hoveredLinePointIndex:b,activeLinePointIndex:D})=>{const{start:S,end:L,throughPoint:M}=H9(t),w=ua(t)&&t.points?t.points:null,E=vT(S,L,M),O=!!t.controlPoint&&!w,B=Math.max(10,t.strokeWidth*1.9),T=Xl(t),P=t.x+t.width/2,_=t.y+t.height/2,Z=(ie,N,$,V)=>{const se=B*1.12,ke=B*.66,We=Math.max(1.1,t.strokeWidth*.22);e.save(),e.translate(ie,N),e.rotate(V?$:$+Math.PI),e.fillStyle=c(t.stroke),e.strokeStyle=c(t.stroke),e.lineWidth=We,e.lineJoin="round",e.beginPath(),e.moveTo(se,0),e.lineTo(se*.04,-ke),e.lineTo(se*.04,ke),e.closePath(),e.fill(),e.stroke(),e.restore()},K=(ie,N,$,V)=>{const se=B*.92,ke=B*.56;e.save(),e.translate(ie,N),e.rotate(V?$:$+Math.PI),e.strokeStyle=c(t.stroke),e.lineWidth=Math.max(1,t.strokeWidth),e.lineCap="round",e.lineJoin="round",e.beginPath(),e.moveTo(-se,-ke),e.lineTo(0,0),e.lineTo(-se,ke),e.stroke(),e.restore()},W=(ie,N,$,V)=>{const se=B*1.08,ke=B*.64,We=Math.max(1.1,t.strokeWidth*.22);e.save(),e.translate(ie,N),e.rotate(V?$:$+Math.PI),e.fillStyle=c(t.stroke),e.strokeStyle=c(t.stroke),e.lineWidth=We,e.lineJoin="round",e.beginPath(),e.moveTo(0,0),e.lineTo(se,-ke),e.lineTo(se,ke),e.closePath(),e.fill(),e.stroke(),e.restore()},z=(ie,N,$,V)=>{const se=B*.62;e.beginPath(),e.save(),e.translate(ie,N),e.rotate(V?$:$+Math.PI),e.fillStyle=c(t.stroke),e.arc(se,0,se,0,Math.PI*2),e.fill(),e.restore()},q=(ie,N,$,V)=>{const se=B*1.3,ke=B*.6,We=Math.max(1.1,t.strokeWidth*.22);e.save(),e.translate(ie,N),e.rotate(V?$:$+Math.PI),e.fillStyle=c(t.stroke),e.strokeStyle=c(t.stroke),e.lineWidth=We,e.lineJoin="round",e.beginPath(),e.moveTo(0,0),e.lineTo(se*.5,-ke),e.lineTo(se,0),e.lineTo(se*.5,ke),e.closePath(),e.fill(),e.stroke(),e.restore()},te=w?{x:w[1].x-w[0].x,y:w[1].y-w[0].y}:O?{x:E.x-S.x,y:E.y-S.y}:{x:L.x-S.x,y:L.y-S.y},X=w?{x:w[w.length-1].x-w[w.length-2].x,y:w[w.length-1].y-w[w.length-2].y}:O?{x:L.x-E.x,y:L.y-E.y}:{x:L.x-S.x,y:L.y-S.y},H=Math.atan2(te.y,te.x),Q=Math.atan2(X.y,X.x);e.save(),t.rotation!==0&&(e.translate(P,_),e.rotate(t.rotation*Math.PI/180),e.translate(-P,-_));const oe=e.globalAlpha;if(e.globalAlpha*=n,e.strokeStyle=c(t.stroke),e.lineWidth=t.strokeWidth,e.lineCap="round",e.lineJoin="round",e.beginPath(),w?Xw(e,w):(e.moveTo(S.x,S.y),O?e.quadraticCurveTo(E.x,E.y,L.x,L.y):e.lineTo(L.x,L.y)),e.stroke(),w&&w.length>1){const ie=Math.max(t.strokeWidth*.52,1);e.fillStyle=c(t.stroke);for(let N=0;N<w.length;N++){const $=w[N];e.beginPath(),e.arc($.x,$.y,ie,0,Math.PI*2),e.fill()}}const U=(ie,N,$,V,se)=>{if(ie!=="none"){if(ie==="line arrow"){K(N,$,V,se);return}if(ie==="triangle arrow"){Z(N,$,V,se);return}if(ie==="inverted triangle"){W(N,$,V,se);return}if(ie==="circular arrow"){z(N,$,V,se);return}q(N,$,V,se)}};U(t.startCap,S.x,S.y,H,!1),U(t.endCap,L.x,L.y,Q,!0),e.globalAlpha=oe,d?h?(e.strokeStyle=s,e.lineWidth=1/r,e.strokeRect(T.x,T.y,T.width,T.height)):m&&(w?jT(e,w,r,o,c("#F4F5F4"),b,D):kT(e,t,r,o,c("#F4F5F4"),v,y)):p&&(e.strokeStyle=o,e.lineWidth=1/r,e.strokeRect(T.x,T.y,T.width,T.height)),e.restore()},Gp=12288,AT=56e6,OT=e=>e.selectedIds.length>0?e.selectedIds:e.selectedId?[e.selectedId]:[],zl=(e,t,n)=>Math.max(t,Math.min(n,e)),BT=()=>{const e=new Date,t=n=>String(n).padStart(2,"0");return`${e.getFullYear()}${t(e.getMonth()+1)}${t(e.getDate())}-${t(e.getHours())}${t(e.getMinutes())}`},RT=e=>{const t=e.opacity;return typeof t!="number"||!Number.isFinite(t)?100:zl(t,0,100)},Jw=(e,t)=>e.settings.theme==="dark"||e.settings.theme==="system"&&t,TT=(e,t)=>{const r=Jw(e,t)&&e.settings.colorScheme==="drawo";return o=>{const s=typeof o=="string"&&o.trim().length>0?o:e.settings.shapeDefaults.textColor;return r?sc(s):s}},Kc=(e,t,n)=>n==="center"?e-t/2:n==="right"||n==="end"?e-t:e,Xc=(e,t,n)=>{const r=qc(t),o=r.map(h=>Nw(e,n,h)),s=Math.max(16,...o),c=tc(n.fontSize),d=n.fontSize+(r.length-1)*c;return{lines:r,lineWidths:o,width:s,height:d,lineHeight:c}},NT=(e,t,n,r,o)=>{const s=Xc(e,t,o);return s.lines.forEach((c,d)=>{const h=s.lineWidths[d]??0;let p=Kc(n,h,o.textAlign);const m=r+d*s.lineHeight;for(const v of c.runs){if(!v.text)continue;e.font=d5(o,v);const y=e.measureText(v.text).width;if(e.fillText(v.text,p,m),v.strikethrough){const b=e.strokeStyle,D=e.lineWidth;e.strokeStyle=e.fillStyle,e.lineWidth=Math.max(o.fontSize*.04,.75);const S=m-o.fontSize*.3;e.beginPath(),e.moveTo(p,S),e.lineTo(p+y,S),e.stroke(),e.strokeStyle=b,e.lineWidth=D}p+=y}}),s},FT=(e,t,n,r,o)=>{const s=Xc(e,t,o),c=r-s.height/2;return s.lines.forEach((d,h)=>{const p=s.lineWidths[h]??0;let m=Kc(n,p,o.textAlign);const v=c+o.fontSize+h*s.lineHeight;for(const y of d.runs){if(!y.text)continue;e.font=d5(o,y);const b=e.measureText(y.text).width;if(e.fillText(y.text,m,v),y.strikethrough){const D=e.strokeStyle,S=e.lineWidth;e.strokeStyle=e.fillStyle,e.lineWidth=Math.max(o.fontSize*.04,.75);const L=v-o.fontSize*.3;e.beginPath(),e.moveTo(m,L),e.lineTo(m+b,L),e.stroke(),e.strokeStyle=D,e.lineWidth=S}m+=b}}),s},PT=e=>{const t=e.drawMode==="marker"?Math.max(6,e.strokeWidth*.65):e.drawMode==="quill"?Math.max(4,e.strokeWidth*1.45):Math.max(3,e.strokeWidth/2);return{x:e.x-t,y:e.y-t,width:e.width+t*2,height:e.height+t*2}},c0=(e,t)=>{if(!t)return e;const n=t*Math.PI/180,r=Math.cos(n),o=Math.sin(n),s=e.x+e.width/2,c=e.y+e.height/2,d=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}].map(y=>{const b=y.x-s,D=y.y-c;return{x:s+b*r-D*o,y:c+b*o+D*r}}),h=Math.min(...d.map(y=>y.x)),p=Math.min(...d.map(y=>y.y)),m=Math.max(...d.map(y=>y.x)),v=Math.max(...d.map(y=>y.y));return{x:h,y:p,width:Math.max(1,m-h),height:Math.max(1,v-p)}},_T=(e,t)=>{if(e.type==="rectangle"||e.type==="circle"||e.type==="image"||e.type==="svg")return c0({x:e.x,y:e.y,width:e.width,height:e.height},e.rotation);if(e.type==="draw")return c0(PT(e),e.rotation);if(e.type==="line")return c0(Xl(e),e.rotation);const n=Xc(t,e.text,{fontFamily:e.fontFamily,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle}),r=Kc(e.x,n.width,e.textAlign);return c0({x:r,y:e.y-e.fontSize,width:n.width,height:n.height},e.rotation)},N8=(e,t,n)=>{if(t.type==="circle"){e.beginPath(),e.ellipse(t.x+t.width/2,t.y+t.height/2,t.width/2,t.height/2,0,0,Math.PI*2);return}Sr(e,t.x,t.y,t.width,t.height,n)},IT=(e,t,n,r)=>{if(t.fillStyle==="none")return;const o=r(t.fill);if(e.save(),t.fillStyle==="solid"){e.fillStyle=o,N8(e,t,n),e.fill(),e.restore();return}const s=8,c=Math.max(1,t.strokeWidth),d=Math.hypot(t.width,t.height)+Math.max(t.width,t.height)*2;N8(e,t,n),e.clip(),e.strokeStyle=o,e.lineWidth=c,e.lineCap="round",e.lineJoin="round";for(let h=t.x-d;h<=t.x+t.width+d;h+=s)e.beginPath(),e.moveTo(h,t.y+t.height+d),e.lineTo(h+d,t.y-d),e.stroke();e.restore()},zT=(e,t,n,r)=>{t.strokeStyle!=="none"&&(e.save(),e.strokeStyle=r(t.stroke),e.lineCap="round",e.lineJoin="round",e.lineWidth=Math.max(1,t.strokeWidth),t.strokeStyle==="dashed"?e.setLineDash([8,4]):e.setLineDash([]),N8(e,t,n),e.stroke(),e.restore())},HT=async e=>{const t=e.filter(o=>o.type==="image").map(o=>o.src).filter(o=>typeof o=="string"&&o.length>0),n=Array.from(new Set(t)),r=new Map;return await Promise.all(n.map(o=>new Promise(s=>{const c=new window.Image;c.decoding="async",c.onload=()=>{r.set(o,c),s()},c.onerror=()=>s(),c.src=o}))),r},ZT=(e,t,n,r,o,s)=>{for(const c of n){const d=c.rotation*Math.PI/180,h=RT(c)/100;if(c.type==="draw"){const D=c.drawMode??"draw",S={x:c.x,y:c.y,width:c.width,height:c.height},L={x:S.x+S.width/2,y:S.y+S.height/2};if(e.save(),e.translate(L.x,L.y),e.rotate(d),e.translate(-L.x,-L.y),e.translate(c.x,c.y),c.points.length>0){const M=R8(D,s),w=e.globalCompositeOperation,E=e.globalAlpha;e.globalCompositeOperation=M.compositeOperation,e.globalAlpha*=M.opacity*h;const O=B8(c.strokeWidth);e.strokeStyle=o(c.stroke),e.fillStyle=o(c.stroke),e.lineWidth=O,e.lineJoin="round",e.lineCap=T8(),c.points.length===1?D==="marker"?r2(e,c.points,O):D==="quill"?a2(e,c.points,O,t.settings.quillDrawOptimizations):(e.beginPath(),e.arc(c.points[0].x,c.points[0].y,e.lineWidth/2,0,Math.PI*2),e.fill()):D==="marker"?r2(e,c.points,O):D==="quill"?a2(e,c.points,O,t.settings.quillDrawOptimizations):(e.beginPath(),lc(e,c.points),e.stroke()),e.globalCompositeOperation=w,e.globalAlpha=E}e.restore();continue}if(c.type==="image"){const D={x:c.x,y:c.y,width:c.width,height:c.height},S={x:D.x+D.width/2,y:D.y+D.height/2},L=c.src?r.get(c.src)??null:null,M=Math.min(16,Math.min(c.width,c.height)/6);e.save(),e.translate(S.x,S.y),e.rotate(d),e.translate(-S.x,-S.y);const w=e.globalAlpha;e.globalAlpha*=h,(c.flipX||c.flipY)&&(e.translate(S.x,S.y),e.scale(c.flipX?-1:1,c.flipY?-1:1),e.translate(-S.x,-S.y)),e.shadowColor="rgba(15, 23, 42, 0.14)",e.shadowBlur=18,e.shadowOffsetY=6,e.fillStyle=o(t.settings.shapeDefaults.fill),Sr(e,c.x,c.y,c.width,c.height,M),e.fill(),e.save(),Sr(e,c.x,c.y,c.width,c.height,M),e.clip(),L&&L.complete&&L.naturalWidth>0&&L.naturalHeight>0?e.drawImage(L,c.x,c.y,c.width,c.height):(e.fillStyle=o("#e6e7e8"),e.fillRect(c.x,c.y,c.width,c.height)),e.restore(),e.shadowColor="transparent",e.strokeStyle=o("rgba(15, 23, 42, 0.08)"),e.lineWidth=1,Sr(e,c.x,c.y,c.width,c.height,M),e.stroke(),e.globalAlpha=w,e.restore();continue}if(c.type==="rectangle"||c.type==="circle"){const D={x:c.x,y:c.y,width:c.width,height:c.height},S={x:D.x+D.width/2,y:D.y+D.height/2},L=c.type==="rectangle"?Math.max(0,Math.min(c.borderRadius,Math.min(c.width,c.height)/2)):0;e.save(),e.translate(S.x,S.y),e.rotate(d),e.translate(-S.x,-S.y);const M=e.globalAlpha;if(e.globalAlpha*=h,IT(e,c,L,o),zT(e,c,L,o),c.text.trim().length>0){const w={fontFamily:c.fontFamily,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle,textAlign:c.textAlign};e.save(),c.type==="circle"?(e.beginPath(),e.ellipse(c.x+c.width/2,c.y+c.height/2,c.width/2,c.height/2,0,0,Math.PI*2),e.clip()):(Sr(e,c.x,c.y,c.width,c.height,L),e.clip()),e.fillStyle=o(c.color),e.textAlign="left",e.textBaseline="alphabetic",FT(e,c.text,Kl(c,c.textAlign),c.y+c.height/2,w),e.restore()}e.globalAlpha=M,e.restore();continue}if(c.type==="line"){Qw({ctx:e,lineElement:c,elementOpacity:h,zoom:1,accentColor:"#7c5cff",accentSelectionColor:"rgba(124, 92, 255, 0.45)",toThemeColor:D=>o(D),shouldShowElementSelection:!1,isMultiSelection:!1,isMarqueePreview:!1,canTransformSelection:!1,hoveredLineHandle:null,activeLineHandle:null,hoveredLinePointIndex:null,activeLinePointIndex:null});continue}if(c.type==="svg")continue;const p=Xc(e,c.text,{fontFamily:c.fontFamily,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle}),m=p.width,v={x:Kc(c.x,m,c.textAlign),y:c.y-c.fontSize,width:m,height:p.height},y={x:v.x+v.width/2,y:v.y+v.height/2};e.save(),e.translate(y.x,y.y),e.rotate(d),e.translate(-y.x,-y.y);const b=e.globalAlpha;e.globalAlpha*=h,e.fillStyle=o(c.color),e.textAlign="left",e.textBaseline="alphabetic",NT(e,c.text,c.x,c.y,{fontFamily:c.fontFamily,fontSize:c.fontSize,fontWeight:c.fontWeight,fontStyle:c.fontStyle,textAlign:c.textAlign}),e.globalAlpha=b,e.restore()}},Kp=async(e,t,n)=>new Promise((r,o)=>{e.toBlob(s=>{if(!s){o(new Error("export-canvas-blob-failed"));return}r(s)},t,n)}),f0=(e,t)=>{const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)},VT=(e,t,n,r)=>{const o=r?`<rect x="0" y="0" width="100%" height="100%" fill="${r}" />`:"";return`<?xml version="1.0" encoding="UTF-8"?>
79
+ <svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${n}" viewBox="0 0 ${t} ${n}">${o}<image href="${e}" width="${t}" height="${n}" preserveAspectRatio="none"/></svg>`},WT=async({scene:e,format:t,qualityScale:n,transparentBackground:r,padding:o,systemPrefersDark:s})=>{const c=OT(e),d=new Set(c),h=c.length>0?e.elements.filter(V=>d.has(V.id)):[],p=h.length>0?h:e.elements;if(p.length===0)throw new Error("no-elements-to-export");const m=document.createElement("canvas");m.width=1,m.height=1;const v=m.getContext("2d");if(!v)throw new Error("measurement-context-unavailable");const y=p.map(V=>_T(V,v)),b=Math.min(...y.map(V=>V.x)),D=Math.min(...y.map(V=>V.y)),S=Math.max(...y.map(V=>V.x+V.width)),L=Math.max(...y.map(V=>V.y+V.height)),M=zl(o,0,256),w=b-M,E=D-M,O=Math.max(1,S-b+M*2),B=Math.max(1,L-D+M*2);let T=zl(n,1,4);const P=Math.min(Gp/O,Gp/B);P<T&&(T=P);const _=Math.sqrt(AT/(O*B));_<T&&(T=_),T=zl(T,.25,4);const Z=Math.max(1,Math.ceil(O*T)),K=Math.max(1,Math.ceil(B*T)),W=document.createElement("canvas");W.width=Z,W.height=K;const z=W.getContext("2d");if(!z)throw new Error("export-context-unavailable");z.setTransform(1,0,0,1,0,0),z.clearRect(0,0,Z,K);const q=t==="jpg"?!1:r;q||(z.fillStyle=e.settings.drawDefaults.canvas,z.fillRect(0,0,Z,K)),z.setTransform(T,0,0,T,-w*T,-E*T);const te=await HT(p),X=TT(e,s),H=Jw(e,s);ZT(z,e,p,te,X,H);const oe=`export-${BT()}`;if(t==="png"){const V=await Kp(W,"image/png");f0(V,`${oe}.png`);return}if(t==="jpg"){const V=zl(n/4,.55,.95),se=await Kp(W,"image/jpeg",V);f0(se,`${oe}.jpg`);return}if(t==="svg"){const V=W.toDataURL("image/png"),se=VT(V,Z,K,q?null:e.settings.drawDefaults.canvas),ke=new Blob([se],{type:"image/svg+xml;charset=utf-8"});f0(ke,`${oe}.svg`);return}const{jsPDF:U}=await sT(async()=>{const{jsPDF:V}=await import("./jspdf.es.min-CkIPA4tF.js").then(se=>se.j);return{jsPDF:V}},[]),ie=W.toDataURL(q?"image/png":"image/jpeg",.92),N=new U({orientation:Z>=K?"landscape":"portrait",unit:"px",format:[Z,K],compress:!0});N.addImage(ie,q?"PNG":"JPEG",0,0,Z,K,void 0,"FAST");const $=N.output("blob");f0($,`${oe}.pdf`)},F8="settings",P8="scene",O4="locale",Bl="topbar.openPanel",eb="musicBar.state",Ql="timer.state",V9=Symbol.for("yaml.alias"),_8=Symbol.for("yaml.document"),oi=Symbol.for("yaml.map"),tb=Symbol.for("yaml.pair"),Fa=Symbol.for("yaml.scalar"),N2=Symbol.for("yaml.seq"),Ur=Symbol.for("yaml.node.type"),os=e=>!!e&&typeof e=="object"&&e[Ur]===V9,_5=e=>!!e&&typeof e=="object"&&e[Ur]===_8,I5=e=>!!e&&typeof e=="object"&&e[Ur]===oi,nn=e=>!!e&&typeof e=="object"&&e[Ur]===tb,M1=e=>!!e&&typeof e=="object"&&e[Ur]===Fa,z5=e=>!!e&&typeof e=="object"&&e[Ur]===N2;function en(e){if(e&&typeof e=="object")switch(e[Ur]){case oi:case N2:return!0}return!1}function tn(e){if(e&&typeof e=="object")switch(e[Ur]){case V9:case oi:case Fa:case N2:return!0}return!1}const nb=e=>(M1(e)||en(e))&&!!e.anchor,Ii=Symbol("break visit"),$T=Symbol("skip children"),Jl=Symbol("remove node");function F2(e,t){const n=UT(t);_5(e)?o2(null,e.contents,n,Object.freeze([e]))===Jl&&(e.contents=null):o2(null,e,n,Object.freeze([]))}F2.BREAK=Ii;F2.SKIP=$T;F2.REMOVE=Jl;function o2(e,t,n,r){const o=qT(e,t,n,r);if(tn(o)||nn(o))return YT(e,r,o),o2(e,o,n,r);if(typeof o!="symbol"){if(en(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const c=o2(s,t.items[s],n,r);if(typeof c=="number")s=c-1;else{if(c===Ii)return Ii;c===Jl&&(t.items.splice(s,1),s-=1)}}}else if(nn(t)){r=Object.freeze(r.concat(t));const s=o2("key",t.key,n,r);if(s===Ii)return Ii;s===Jl&&(t.key=null);const c=o2("value",t.value,n,r);if(c===Ii)return Ii;c===Jl&&(t.value=null)}}return o}function UT(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function qT(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(I5(t))return n.Map?.(e,t,r);if(z5(t))return n.Seq?.(e,t,r);if(nn(t))return n.Pair?.(e,t,r);if(M1(t))return n.Scalar?.(e,t,r);if(os(t))return n.Alias?.(e,t,r)}function YT(e,t,n){const r=t[t.length-1];if(en(r))r.items[e]=n;else if(nn(r))e==="key"?r.key=n:r.value=n;else if(_5(r))r.contents=n;else{const o=os(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const GT={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},KT=e=>e.replace(/[!,[\]{}]/g,t=>GT[t]);class qn{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},qn.defaultYaml,t),this.tags=Object.assign({},qn.defaultTags,n)}clone(){const t=new qn(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new qn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:qn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},qn.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:qn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},qn.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),o=r.shift();switch(o){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,c]=r;return this.tags[s]=c,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const c=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,c),!1}}default:return n(0,`Unknown directive ${o}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const c=t.slice(2,-1);return c==="!"||c==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),c)}const[,r,o]=t.match(/^(.*!)([^!]*)$/s);o||n(`The ${t} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(o)}catch(c){return n(String(c)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+KT(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let o;if(t&&r.length>0&&tn(t.contents)){const s={};F2(t.contents,(c,d)=>{tn(d)&&d.tag&&(s[d.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,c]of r)s==="!!"&&c==="tag:yaml.org,2002:"||(!t||o.some(d=>d.startsWith(c)))&&n.push(`%TAG ${s} ${c}`);return n.join(`
80
+ `)}}qn.defaultYaml={explicit:!1,version:"1.2"};qn.defaultTags={"!!":"tag:yaml.org,2002:"};function rb(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function ab(e){const t=new Set;return F2(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function ob(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function XT(e,t){const n=[],r=new Map;let o=null;return{onAnchor:s=>{n.push(s),o??(o=ab(e));const c=ob(t,o);return o.add(c),c},setAnchors:()=>{for(const s of n){const c=r.get(s);if(typeof c=="object"&&c.anchor&&(M1(c.node)||en(c.node)))c.node.anchor=c.anchor;else{const d=new Error("Failed to resolve repeated object (this should not happen)");throw d.source=s,d}}},sourceObjects:r}}function i2(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let o=0,s=r.length;o<s;++o){const c=r[o],d=i2(e,r,String(o),c);d===void 0?delete r[o]:d!==c&&(r[o]=d)}else if(r instanceof Map)for(const o of Array.from(r.keys())){const s=r.get(o),c=i2(e,r,o,s);c===void 0?r.delete(o):c!==s&&r.set(o,c)}else if(r instanceof Set)for(const o of Array.from(r)){const s=i2(e,r,o,o);s===void 0?r.delete(o):s!==o&&(r.delete(o),r.add(s))}else for(const[o,s]of Object.entries(r)){const c=i2(e,r,o,s);c===void 0?delete r[o]:c!==s&&(r[o]=c)}return e.call(t,n,r)}function Wr(e,t,n){if(Array.isArray(e))return e.map((r,o)=>Wr(r,String(o),n));if(e&&typeof e.toJSON=="function"){if(!n||!nb(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const o=e.toJSON(t,n);return n.onCreate&&n.onCreate(o),o}return typeof e=="bigint"&&!n?.keep?Number(e):e}class W9{constructor(t){Object.defineProperty(this,Ur,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:s}={}){if(!_5(t))throw new TypeError("A document argument is required");const c={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},d=Wr(this,"",c);if(typeof o=="function")for(const{count:h,res:p}of c.anchors.values())o(p,h);return typeof s=="function"?i2(s,{"":d},"",d):d}}class $9 extends W9{constructor(t){super(V9),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n?.aliasResolveCache?r=n.aliasResolveCache:(r=[],F2(t,{Node:(s,c)=>{(os(c)||nb(c))&&r.push(c)}}),n&&(n.aliasResolveCache=r));let o;for(const s of r){if(s===this)break;s.anchor===this.source&&(o=s)}return o}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:o,maxAliasCount:s}=n,c=this.resolve(o,n);if(!c){const h=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(h)}let d=r.get(c);if(d||(Wr(c,null,n),d=r.get(c)),d?.res===void 0){const h="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(h)}if(s>=0&&(d.count+=1,d.aliasCount===0&&(d.aliasCount=P0(o,c,r)),d.count*d.aliasCount>s)){const h="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(h)}return d.res}toString(t,n,r){const o=`*${this.source}`;if(t){if(rb(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${o} `}return o}}function P0(e,t,n){if(os(t)){const r=t.resolve(e),o=n&&r&&n.get(r);return o?o.count*o.aliasCount:0}else if(en(t)){let r=0;for(const o of t.items){const s=P0(e,o,n);s>r&&(r=s)}return r}else if(nn(t)){const r=P0(e,t.key,n),o=P0(e,t.value,n);return Math.max(r,o)}return 1}const ib=e=>!e||typeof e!="function"&&typeof e!="object";class Ft extends W9{constructor(t){super(Fa),this.value=t}toJSON(t,n){return n?.keep?this.value:Wr(this.value,t,n)}toString(){return String(this.value)}}Ft.BLOCK_FOLDED="BLOCK_FOLDED";Ft.BLOCK_LITERAL="BLOCK_LITERAL";Ft.PLAIN="PLAIN";Ft.QUOTE_DOUBLE="QUOTE_DOUBLE";Ft.QUOTE_SINGLE="QUOTE_SINGLE";const QT="tag:yaml.org,2002:";function JT(e,t,n){if(t){const r=n.filter(s=>s.tag===t),o=r.find(s=>!s.format)??r[0];if(!o)throw new Error(`Tag ${t} not found`);return o}return n.find(r=>r.identify?.(e)&&!r.format)}function C5(e,t,n){if(_5(e)&&(e=e.contents),tn(e))return e;if(nn(e)){const v=n.schema[oi].createNode?.(n.schema,null,n);return v.items.push(e),v}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:o,onTagObj:s,schema:c,sourceObjects:d}=n;let h;if(r&&e&&typeof e=="object"){if(h=d.get(e),h)return h.anchor??(h.anchor=o(e)),new $9(h.anchor);h={anchor:null,node:null},d.set(e,h)}t?.startsWith("!!")&&(t=QT+t.slice(2));let p=JT(e,t,c.tags);if(!p){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const v=new Ft(e);return h&&(h.node=v),v}p=e instanceof Map?c[oi]:Symbol.iterator in Object(e)?c[N2]:c[oi]}s&&(s(p),delete n.onTagObj);const m=p?.createNode?p.createNode(n.schema,e,n):typeof p?.nodeClass?.from=="function"?p.nodeClass.from(n.schema,e,n):new Ft(e);return t?m.tag=t:p.default||(m.tag=p.tag),h&&(h.node=m),m}function uc(e,t,n){let r=n;for(let o=t.length-1;o>=0;--o){const s=t[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const c=[];c[s]=r,r=c}else r=new Map([[s,r]])}return C5(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Hl=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class sb extends W9{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>tn(r)||nn(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(Hl(t))this.add(n);else{const[r,...o]=t,s=this.get(r,!0);if(en(s))s.addIn(o,n);else if(s===void 0&&this.schema)this.set(r,uc(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const o=this.get(n,!0);if(en(o))return o.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...o]=t,s=this.get(r,!0);return o.length===0?!n&&M1(s)?s.value:s:en(s)?s.getIn(o,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!nn(n))return!1;const r=n.value;return r==null||t&&M1(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const o=this.get(n,!0);return en(o)?o.hasIn(r):!1}setIn(t,n){const[r,...o]=t;if(o.length===0)this.set(r,n);else{const s=this.get(r,!0);if(en(s))s.setIn(o,n);else if(s===void 0&&this.schema)this.set(r,uc(this.schema,o,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${o}`)}}}const eN=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function ho(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Zi=(e,t,n)=>e.endsWith(`
81
+ `)?ho(n,t):n.includes(`
82
+ `)?`
83
+ `+ho(n,t):(e.endsWith(" ")?"":" ")+n,lb="flow",I8="block",_0="quoted";function Qc(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:s=20,onFold:c,onOverflow:d}={}){if(!o||o<0)return e;o<s&&(s=0);const h=Math.max(1+s,1+o-t.length);if(e.length<=h)return e;const p=[],m={};let v=o-t.length;typeof r=="number"&&(r>o-Math.max(2,s)?p.push(0):v=o-r);let y,b,D=!1,S=-1,L=-1,M=-1;n===I8&&(S=Xp(e,S,t.length),S!==-1&&(v=S+h));for(let E;E=e[S+=1];){if(n===_0&&E==="\\"){switch(L=S,e[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}M=S}if(E===`
84
+ `)n===I8&&(S=Xp(e,S,t.length)),v=S+t.length+h,y=void 0;else{if(E===" "&&b&&b!==" "&&b!==`
85
+ `&&b!==" "){const O=e[S+1];O&&O!==" "&&O!==`
86
+ `&&O!==" "&&(y=S)}if(S>=v)if(y)p.push(y),v=y+h,y=void 0;else if(n===_0){for(;b===" "||b===" ";)b=E,E=e[S+=1],D=!0;const O=S>M+1?S-2:L-1;if(m[O])return e;p.push(O),m[O]=!0,v=O+h,y=void 0}else D=!0}b=E}if(D&&d&&d(),p.length===0)return e;c&&c();let w=e.slice(0,p[0]);for(let E=0;E<p.length;++E){const O=p[E],B=p[E+1]||e.length;O===0?w=`
87
+ ${t}${e.slice(0,B)}`:(n===_0&&m[O]&&(w+=`${e[O]}\\`),w+=`
88
+ ${t}${e.slice(O+1,B)}`)}return w}function Xp(e,t,n){let r=t,o=t+1,s=e[o];for(;s===" "||s===" ";)if(t<o+n)s=e[++t];else{do s=e[++t];while(s&&s!==`
89
+ `);r=t,o=t+1,s=e[o]}return r}const Jc=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),e7=e=>/^(%|---|\.\.\.)/m.test(e);function tN(e,t,n){if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1;for(let s=0,c=0;s<o;++s)if(e[s]===`
90
+ `){if(s-c>r)return!0;if(c=s+1,o-c<=r)return!1}return!0}function e5(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(e7(e)?" ":"");let c="",d=0;for(let h=0,p=n[h];p;p=n[++h])if(p===" "&&n[h+1]==="\\"&&n[h+2]==="n"&&(c+=n.slice(d,h)+"\\ ",h+=1,d=h,p="\\"),p==="\\")switch(n[h+1]){case"u":{c+=n.slice(d,h);const m=n.substr(h+2,4);switch(m){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:m.substr(0,2)==="00"?c+="\\x"+m.substr(2):c+=n.substr(h,6)}h+=5,d=h+1}break;case"n":if(r||n[h+2]==='"'||n.length<o)h+=1;else{for(c+=n.slice(d,h)+`
91
+
92
+ `;n[h+2]==="\\"&&n[h+3]==="n"&&n[h+4]!=='"';)c+=`
93
+ `,h+=2;c+=s,n[h+2]===" "&&(c+="\\"),h+=1,d=h+1}break;default:h+=1}return c=d?c+n.slice(d):n,r?c:Qc(c,s,_0,Jc(t,!1))}function z8(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
94
+ `)||/[ \t]\n|\n[ \t]/.test(e))return e5(e,t);const n=t.indent||(e7(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
95
+ ${n}`)+"'";return t.implicitKey?r:Qc(r,n,lb,Jc(t,!1))}function s2(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=e5;else{const o=e.includes('"'),s=e.includes("'");o&&!s?r=z8:s&&!o?r=e5:r=n?z8:e5}return r(e,t)}let H8;try{H8=new RegExp(`(^|(?<!
96
+ ))
97
+ +(?!
98
+ |$)`,"g")}catch{H8=/\n+(?!\n|$)/g}function I0({comment:e,type:t,value:n},r,o,s){const{blockQuote:c,commentString:d,lineWidth:h}=r.options;if(!c||/\n[\t ]+$/.test(n))return s2(n,r);const p=r.indent||(r.forceBlockIndent||e7(n)?" ":""),m=c==="literal"?!0:c==="folded"||t===Ft.BLOCK_FOLDED?!1:t===Ft.BLOCK_LITERAL?!0:!tN(n,h,p.length);if(!n)return m?`|
99
+ `:`>
100
+ `;let v,y;for(y=n.length;y>0;--y){const B=n[y-1];if(B!==`
101
+ `&&B!==" "&&B!==" ")break}let b=n.substring(y);const D=b.indexOf(`
102
+ `);D===-1?v="-":n===b||D!==b.length-1?(v="+",s&&s()):v="",b&&(n=n.slice(0,-b.length),b[b.length-1]===`
103
+ `&&(b=b.slice(0,-1)),b=b.replace(H8,`$&${p}`));let S=!1,L,M=-1;for(L=0;L<n.length;++L){const B=n[L];if(B===" ")S=!0;else if(B===`
104
+ `)M=L;else break}let w=n.substring(0,M<L?M+1:L);w&&(n=n.substring(w.length),w=w.replace(/\n+/g,`$&${p}`));let O=(S?p?"2":"1":"")+v;if(e&&(O+=" "+d(e.replace(/ ?[\r\n]+/g," ")),o&&o()),!m){const B=n.replace(/\n+/g,`
105
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let T=!1;const P=Jc(r,!0);c!=="folded"&&t!==Ft.BLOCK_FOLDED&&(P.onOverflow=()=>{T=!0});const _=Qc(`${w}${B}${b}`,p,I8,P);if(!T)return`>${O}
106
+ ${p}${_}`}return n=n.replace(/\n+/g,`$&${p}`),`|${O}
107
+ ${p}${w}${n}${b}`}function nN(e,t,n,r){const{type:o,value:s}=e,{actualString:c,implicitKey:d,indent:h,indentStep:p,inFlow:m}=t;if(d&&s.includes(`
108
+ `)||m&&/[[\]{},]/.test(s))return s2(s,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return d||m||!s.includes(`
109
+ `)?s2(s,t):I0(e,t,n,r);if(!d&&!m&&o!==Ft.PLAIN&&s.includes(`
110
+ `))return I0(e,t,n,r);if(e7(s)){if(h==="")return t.forceBlockIndent=!0,I0(e,t,n,r);if(d&&h===p)return s2(s,t)}const v=s.replace(/\n+/g,`$&
111
+ ${h}`);if(c){const y=S=>S.default&&S.tag!=="tag:yaml.org,2002:str"&&S.test?.test(v),{compat:b,tags:D}=t.doc.schema;if(D.some(y)||b?.some(y))return s2(s,t)}return d?v:Qc(v,h,lb,Jc(t,!1))}function U9(e,t,n,r){const{implicitKey:o,inFlow:s}=t,c=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:d}=e;d!==Ft.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(c.value)&&(d=Ft.QUOTE_DOUBLE);const h=m=>{switch(m){case Ft.BLOCK_FOLDED:case Ft.BLOCK_LITERAL:return o||s?s2(c.value,t):I0(c,t,n,r);case Ft.QUOTE_DOUBLE:return e5(c.value,t);case Ft.QUOTE_SINGLE:return z8(c.value,t);case Ft.PLAIN:return nN(c,t,n,r);default:return null}};let p=h(d);if(p===null){const{defaultKeyType:m,defaultStringType:v}=t.options,y=o&&m||v;if(p=h(y),p===null)throw new Error(`Unsupported default string type ${y}`)}return p}function ub(e,t){const n=Object.assign({blockQuote:!0,commentString:eN,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function rN(e,t){if(t.tag){const o=e.filter(s=>s.tag===t.tag);if(o.length>0)return o.find(s=>s.format===t.format)??o[0]}let n,r;if(M1(t)){r=t.value;let o=e.filter(s=>s.identify?.(r));if(o.length>1){const s=o.filter(c=>c.test);s.length>0&&(o=s)}n=o.find(s=>s.format===t.format)??o.find(s=>!s.format)}else r=t,n=e.find(o=>o.nodeClass&&r instanceof o.nodeClass);if(!n){const o=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${o} value`)}return n}function aN(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const o=[],s=(M1(e)||en(e))&&e.anchor;s&&rb(s)&&(n.add(s),o.push(`&${s}`));const c=e.tag??(t.default?null:t.tag);return c&&o.push(r.directives.tagString(c)),o.join(" ")}function L2(e,t,n,r){if(nn(e))return e.toString(t,n,r);if(os(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let o;const s=tn(e)?e:t.doc.createNode(e,{onTagObj:h=>o=h});o??(o=rN(t.doc.schema.tags,s));const c=aN(s,o,t);c.length>0&&(t.indentAtStart=(t.indentAtStart??0)+c.length+1);const d=typeof o.stringify=="function"?o.stringify(s,t,n,r):M1(s)?U9(s,t,n,r):s.toString(t,n,r);return c?M1(s)||d[0]==="{"||d[0]==="["?`${c} ${d}`:`${c}
112
+ ${t.indent}${d}`:d}function oN({key:e,value:t},n,r,o){const{allNullValues:s,doc:c,indent:d,indentStep:h,options:{commentString:p,indentSeq:m,simpleKeys:v}}=n;let y=tn(e)&&e.comment||null;if(v){if(y)throw new Error("With simple keys, key nodes cannot have comments");if(en(e)||!tn(e)&&typeof e=="object"){const P="With simple keys, collection cannot be used as a key value";throw new Error(P)}}let b=!v&&(!e||y&&t==null&&!n.inFlow||en(e)||(M1(e)?e.type===Ft.BLOCK_FOLDED||e.type===Ft.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!b&&(v||!s),indent:d+h});let D=!1,S=!1,L=L2(e,n,()=>D=!0,()=>S=!0);if(!b&&!n.inFlow&&L.length>1024){if(v)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");b=!0}if(n.inFlow){if(s||t==null)return D&&r&&r(),L===""?"?":b?`? ${L}`:L}else if(s&&!v||t==null&&b)return L=`? ${L}`,y&&!D?L+=Zi(L,n.indent,p(y)):S&&o&&o(),L;D&&(y=null),b?(y&&(L+=Zi(L,n.indent,p(y))),L=`? ${L}
113
+ ${d}:`):(L=`${L}:`,y&&(L+=Zi(L,n.indent,p(y))));let M,w,E;tn(t)?(M=!!t.spaceBefore,w=t.commentBefore,E=t.comment):(M=!1,w=null,E=null,t&&typeof t=="object"&&(t=c.createNode(t))),n.implicitKey=!1,!b&&!y&&M1(t)&&(n.indentAtStart=L.length+1),S=!1,!m&&h.length>=2&&!n.inFlow&&!b&&z5(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let O=!1;const B=L2(t,n,()=>O=!0,()=>S=!0);let T=" ";if(y||M||w){if(T=M?`
114
+ `:"",w){const P=p(w);T+=`
115
+ ${ho(P,n.indent)}`}B===""&&!n.inFlow?T===`
116
+ `&&E&&(T=`
117
+
118
+ `):T+=`
119
+ ${n.indent}`}else if(!b&&en(t)){const P=B[0],_=B.indexOf(`
120
+ `),Z=_!==-1,K=n.inFlow??t.flow??t.items.length===0;if(Z||!K){let W=!1;if(Z&&(P==="&"||P==="!")){let z=B.indexOf(" ");P==="&"&&z!==-1&&z<_&&B[z+1]==="!"&&(z=B.indexOf(" ",z+1)),(z===-1||_<z)&&(W=!0)}W||(T=`
121
+ ${n.indent}`)}}else(B===""||B[0]===`
122
+ `)&&(T="");return L+=T+B,n.inFlow?O&&r&&r():E&&!O?L+=Zi(L,n.indent,p(E)):S&&o&&o(),L}function cb(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const d0="<<",Co={identify:e=>e===d0||typeof e=="symbol"&&e.description===d0,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ft(Symbol(d0)),{addToJSMap:fb}),stringify:()=>d0},iN=(e,t)=>(Co.identify(t)||M1(t)&&(!t.type||t.type===Ft.PLAIN)&&Co.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===Co.tag&&n.default);function fb(e,t,n){if(n=e&&os(n)?n.resolve(e.doc):n,z5(n))for(const r of n.items)B4(e,t,r);else if(Array.isArray(n))for(const r of n)B4(e,t,r);else B4(e,t,n)}function B4(e,t,n){const r=e&&os(n)?n.resolve(e.doc):n;if(!I5(r))throw new Error("Merge sources must be maps or map aliases");const o=r.toJSON(null,e,Map);for(const[s,c]of o)t instanceof Map?t.has(s)||t.set(s,c):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:c,writable:!0,enumerable:!0,configurable:!0});return t}function db(e,t,{key:n,value:r}){if(tn(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(iN(e,n))fb(e,t,r);else{const o=Wr(n,"",e);if(t instanceof Map)t.set(o,Wr(r,o,e));else if(t instanceof Set)t.add(o);else{const s=sN(n,o,e),c=Wr(r,s,e);s in t?Object.defineProperty(t,s,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[s]=c}}return t}function sN(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(tn(e)&&n?.doc){const r=ub(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const o=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),cb(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return o}return JSON.stringify(t)}function q9(e,t,n){const r=C5(e,void 0,n),o=C5(t,void 0,n);return new Xn(r,o)}class Xn{constructor(t,n=null){Object.defineProperty(this,Ur,{value:tb}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return tn(n)&&(n=n.clone(t)),tn(r)&&(r=r.clone(t)),new Xn(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return db(n,r,this)}toString(t,n,r){return t?.doc?oN(this,t,n,r):JSON.stringify(this)}}function hb(e,t,n){return(t.inFlow??e.flow?uN:lN)(e,t,n)}function lN({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:s,onChompKeep:c,onComment:d}){const{indent:h,options:{commentString:p}}=n,m=Object.assign({},n,{indent:s,type:null});let v=!1;const y=[];for(let D=0;D<t.length;++D){const S=t[D];let L=null;if(tn(S))!v&&S.spaceBefore&&y.push(""),cc(n,y,S.commentBefore,v),S.comment&&(L=S.comment);else if(nn(S)){const w=tn(S.key)?S.key:null;w&&(!v&&w.spaceBefore&&y.push(""),cc(n,y,w.commentBefore,v))}v=!1;let M=L2(S,m,()=>L=null,()=>v=!0);L&&(M+=Zi(M,s,p(L))),v&&L&&(v=!1),y.push(r+M)}let b;if(y.length===0)b=o.start+o.end;else{b=y[0];for(let D=1;D<y.length;++D){const S=y[D];b+=S?`
123
+ ${h}${S}`:`
124
+ `}}return e?(b+=`
125
+ `+ho(p(e),h),d&&d()):v&&c&&c(),b}function uN({items:e},t,{flowChars:n,itemIndent:r}){const{indent:o,indentStep:s,flowCollectionPadding:c,options:{commentString:d}}=t;r+=s;const h=Object.assign({},t,{indent:r,inFlow:!0,type:null});let p=!1,m=0;const v=[];for(let D=0;D<e.length;++D){const S=e[D];let L=null;if(tn(S))S.spaceBefore&&v.push(""),cc(t,v,S.commentBefore,!1),S.comment&&(L=S.comment);else if(nn(S)){const w=tn(S.key)?S.key:null;w&&(w.spaceBefore&&v.push(""),cc(t,v,w.commentBefore,!1),w.comment&&(p=!0));const E=tn(S.value)?S.value:null;E?(E.comment&&(L=E.comment),E.commentBefore&&(p=!0)):S.value==null&&w?.comment&&(L=w.comment)}L&&(p=!0);let M=L2(S,h,()=>L=null);p||(p=v.length>m||M.includes(`
126
+ `)),D<e.length-1?M+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(p||(p=v.reduce((w,E)=>w+E.length+2,2)+(M.length+2)>t.options.lineWidth)),p&&(M+=",")),L&&(M+=Zi(M,r,d(L))),v.push(M),m=v.length}const{start:y,end:b}=n;if(v.length===0)return y+b;if(!p){const D=v.reduce((S,L)=>S+L.length+2,2);p=t.options.lineWidth>0&&D>t.options.lineWidth}if(p){let D=y;for(const S of v)D+=S?`
127
+ ${s}${o}${S}`:`
128
+ `;return`${D}
129
+ ${o}${b}`}else return`${y}${c}${v.join(" ")}${c}${b}`}function cc({indent:e,options:{commentString:t}},n,r,o){if(r&&o&&(r=r.replace(/^\n+/,"")),r){const s=ho(t(r),e);n.push(s.trimStart())}}function Vi(e,t){const n=M1(t)?t.value:t;for(const r of e)if(nn(r)&&(r.key===t||r.key===n||M1(r.key)&&r.key.value===n))return r}class zr extends sb{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(oi,t),this.items=[]}static from(t,n,r){const{keepUndefined:o,replacer:s}=r,c=new this(t),d=(h,p)=>{if(typeof s=="function")p=s.call(n,h,p);else if(Array.isArray(s)&&!s.includes(h))return;(p!==void 0||o)&&c.items.push(q9(h,p,r))};if(n instanceof Map)for(const[h,p]of n)d(h,p);else if(n&&typeof n=="object")for(const h of Object.keys(n))d(h,n[h]);return typeof t.sortMapEntries=="function"&&c.items.sort(t.sortMapEntries),c}add(t,n){let r;nn(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Xn(t,t?.value):r=new Xn(t.key,t.value);const o=Vi(this.items,r.key),s=this.schema?.sortMapEntries;if(o){if(!n)throw new Error(`Key ${r.key} already set`);M1(o.value)&&ib(r.value)?o.value.value=r.value:o.value=r.value}else if(s){const c=this.items.findIndex(d=>s(r,d)<0);c===-1?this.items.push(r):this.items.splice(c,0,r)}else this.items.push(r)}delete(t){const n=Vi(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const o=Vi(this.items,t)?.value;return(!n&&M1(o)?o.value:o)??void 0}has(t){return!!Vi(this.items,t)}set(t,n){this.add(new Xn(t,n),!0)}toJSON(t,n,r){const o=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(o);for(const s of this.items)db(n,o,s);return o}toString(t,n,r){if(!t)return JSON.stringify(this);for(const o of this.items)if(!nn(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),hb(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const P2={collection:"map",default:!0,nodeClass:zr,tag:"tag:yaml.org,2002:map",resolve(e,t){return I5(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>zr.from(e,t,n)};class es extends sb{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(N2,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=h0(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=h0(t);if(typeof r!="number")return;const o=this.items[r];return!n&&M1(o)?o.value:o}has(t){const n=h0(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=h0(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const o=this.items[r];M1(o)&&ib(n)?o.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let o=0;for(const s of this.items)r.push(Wr(s,String(o++),n));return r}toString(t,n,r){return t?hb(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:o}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let c=0;for(let d of n){if(typeof o=="function"){const h=n instanceof Set?d:String(c++);d=o.call(n,h,d)}s.items.push(C5(d,void 0,r))}}return s}}function h0(e){let t=M1(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const _2={collection:"seq",default:!0,nodeClass:es,tag:"tag:yaml.org,2002:seq",resolve(e,t){return z5(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>es.from(e,t,n)},t7={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),U9(e,t,n,r)}},n7={identify:e=>e==null,createNode:()=>new Ft(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ft(null),stringify:({source:e},t)=>typeof e=="string"&&n7.test.test(e)?e:t.options.nullStr},Y9={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Ft(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&Y9.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function ma({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const o=typeof r=="number"?r:Number(r);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let c=s.indexOf(".");c<0&&(c=s.length,s+=".");let d=t-(s.length-c-1);for(;d-- >0;)s+="0"}return s}const pb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ma},Cb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():ma(e)}},gb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Ft(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:ma},r7=e=>typeof e=="bigint"||Number.isInteger(e),G9=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function mb(e,t,n){const{value:r}=e;return r7(r)&&r>=0?n+r.toString(t):ma(e)}const vb={identify:e=>r7(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>G9(e,2,8,n),stringify:e=>mb(e,8,"0o")},yb={identify:r7,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>G9(e,0,10,n),stringify:ma},xb={identify:e=>r7(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>G9(e,2,16,n),stringify:e=>mb(e,16,"0x")},cN=[P2,_2,t7,n7,Y9,vb,yb,xb,pb,Cb,gb];function Qp(e){return typeof e=="bigint"||Number.isInteger(e)}const p0=({value:e})=>JSON.stringify(e),fN=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:p0},{identify:e=>e==null,createNode:()=>new Ft(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:p0},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>e==="true",stringify:p0},{identify:Qp,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>Qp(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:p0}],dN={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},hN=[P2,_2].concat(fN,dN),K9={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,o,s){if(!n)return"";const c=n;let d;if(typeof btoa=="function"){let h="";for(let p=0;p<c.length;++p)h+=String.fromCharCode(c[p]);d=btoa(h)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Ft.BLOCK_LITERAL),t!==Ft.QUOTE_DOUBLE){const h=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),p=Math.ceil(d.length/h),m=new Array(p);for(let v=0,y=0;v<p;++v,y+=h)m[v]=d.substr(y,h);d=m.join(t===Ft.BLOCK_LITERAL?`
130
+ `:" ")}return U9({comment:e,type:t,value:d},r,o,s)}};function wb(e,t){if(z5(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!nn(r)){if(I5(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const o=r.items[0]||new Xn(new Ft(null));if(r.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${r.commentBefore}
131
+ ${o.key.commentBefore}`:r.commentBefore),r.comment){const s=o.value??o.key;s.comment=s.comment?`${r.comment}
132
+ ${s.comment}`:r.comment}r=o}e.items[n]=nn(r)?r:new Xn(r)}}else t("Expected a sequence for this tag");return e}function bb(e,t,n){const{replacer:r}=n,o=new es(e);o.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let c of t){typeof r=="function"&&(c=r.call(t,String(s++),c));let d,h;if(Array.isArray(c))if(c.length===2)d=c[0],h=c[1];else throw new TypeError(`Expected [key, value] tuple: ${c}`);else if(c&&c instanceof Object){const p=Object.keys(c);if(p.length===1)d=p[0],h=c[d];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else d=c;o.items.push(q9(d,h,n))}return o}const X9={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:wb,createNode:bb};class g2 extends es{constructor(){super(),this.add=zr.prototype.add.bind(this),this.delete=zr.prototype.delete.bind(this),this.get=zr.prototype.get.bind(this),this.has=zr.prototype.has.bind(this),this.set=zr.prototype.set.bind(this),this.tag=g2.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const o of this.items){let s,c;if(nn(o)?(s=Wr(o.key,"",n),c=Wr(o.value,s,n)):s=Wr(o,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,c)}return r}static from(t,n,r){const o=bb(t,n,r),s=new this;return s.items=o.items,s}}g2.tag="tag:yaml.org,2002:omap";const Q9={collection:"seq",identify:e=>e instanceof Map,nodeClass:g2,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=wb(e,t),r=[];for(const{key:o}of n.items)M1(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value));return Object.assign(new g2,n)},createNode:(e,t,n)=>g2.from(e,t,n)};function Sb({value:e,source:t},n){return t&&(e?Db:Lb).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Db={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ft(!0),stringify:Sb},Lb={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ft(!1),stringify:Sb},pN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ma},CN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():ma(e)}},gN={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Ft(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:ma},H5=e=>typeof e=="bigint"||Number.isInteger(e);function a7(e,t,n,{intAsBigInt:r}){const o=e[0];if((o==="-"||o==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const c=BigInt(e);return o==="-"?BigInt(-1)*c:c}const s=parseInt(e,n);return o==="-"?-1*s:s}function J9(e,t,n){const{value:r}=e;if(H5(r)){const o=r.toString(t);return r<0?"-"+n+o.substr(1):n+o}return ma(e)}const mN={identify:H5,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>a7(e,2,2,n),stringify:e=>J9(e,2,"0b")},vN={identify:H5,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>a7(e,1,8,n),stringify:e=>J9(e,8,"0")},yN={identify:H5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>a7(e,0,10,n),stringify:ma},xN={identify:H5,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>a7(e,2,16,n),stringify:e=>J9(e,16,"0x")};class m2 extends zr{constructor(t){super(t),this.tag=m2.tag}add(t){let n;nn(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Xn(t.key,null):n=new Xn(t,null),Vi(this.items,n.key)||this.items.push(n)}get(t,n){const r=Vi(this.items,t);return!n&&nn(r)?M1(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Vi(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Xn(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:o}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let c of n)typeof o=="function"&&(c=o.call(n,c,c)),s.items.push(q9(c,null,r));return s}}m2.tag="tag:yaml.org,2002:set";const e6={collection:"map",identify:e=>e instanceof Set,nodeClass:m2,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>m2.from(e,t,n),resolve(e,t){if(I5(e)){if(e.hasAllNullValues(!0))return Object.assign(new m2,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function t6(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,o=c=>t?BigInt(c):Number(c),s=r.replace(/_/g,"").split(":").reduce((c,d)=>c*o(60)+o(d),o(0));return n==="-"?o(-1)*s:s}function Mb(e){let{value:t}=e,n=c=>c;if(typeof t=="bigint")n=c=>BigInt(c);else if(isNaN(t)||!isFinite(t))return ma(e);let r="";t<0&&(r="-",t*=n(-1));const o=n(60),s=[t%o];return t<60?s.unshift(0):(t=(t-s[0])/o,s.unshift(t%o),t>=60&&(t=(t-s[0])/o,s.unshift(t))),r+s.map(c=>String(c).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Eb={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>t6(e,n),stringify:Mb},kb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>t6(e,!1),stringify:Mb},o7={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(o7.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,o,s,c,d]=t.map(Number),h=t[7]?Number((t[7]+"00").substr(1,3)):0;let p=Date.UTC(n,r-1,o,s||0,c||0,d||0,h);const m=t[8];if(m&&m!=="Z"){let v=t6(m,!1);Math.abs(v)<30&&(v*=60),p-=6e4*v}return new Date(p)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},Jp=[P2,_2,t7,n7,Db,Lb,mN,vN,yN,xN,pN,CN,gN,K9,Co,Q9,X9,e6,Eb,kb,o7],eC=new Map([["core",cN],["failsafe",[P2,_2,t7]],["json",hN],["yaml11",Jp],["yaml-1.1",Jp]]),tC={binary:K9,bool:Y9,float:gb,floatExp:Cb,floatNaN:pb,floatTime:kb,int:yb,intHex:xb,intOct:vb,intTime:Eb,map:P2,merge:Co,null:n7,omap:Q9,pairs:X9,seq:_2,set:e6,timestamp:o7},wN={"tag:yaml.org,2002:binary":K9,"tag:yaml.org,2002:merge":Co,"tag:yaml.org,2002:omap":Q9,"tag:yaml.org,2002:pairs":X9,"tag:yaml.org,2002:set":e6,"tag:yaml.org,2002:timestamp":o7};function R4(e,t,n){const r=eC.get(t);if(r&&!e)return n&&!r.includes(Co)?r.concat(Co):r.slice();let o=r;if(!o)if(Array.isArray(e))o=[];else{const s=Array.from(eC.keys()).filter(c=>c!=="yaml11").map(c=>JSON.stringify(c)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${s} or define customTags array`)}if(Array.isArray(e))for(const s of e)o=o.concat(s);else typeof e=="function"&&(o=e(o.slice()));return n&&(o=o.concat(Co)),o.reduce((s,c)=>{const d=typeof c=="string"?tC[c]:c;if(!d){const h=JSON.stringify(c),p=Object.keys(tC).map(m=>JSON.stringify(m)).join(", ");throw new Error(`Unknown custom tag ${h}; use one of ${p}`)}return s.includes(d)||s.push(d),s},[])}const bN=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class n6{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:o,schema:s,sortMapEntries:c,toStringDefaults:d}){this.compat=Array.isArray(t)?R4(t,"compat"):t?R4(null,t):null,this.name=typeof s=="string"&&s||"core",this.knownTags=o?wN:{},this.tags=R4(n,this.name,r),this.toStringOptions=d??null,Object.defineProperty(this,oi,{value:P2}),Object.defineProperty(this,Fa,{value:t7}),Object.defineProperty(this,N2,{value:_2}),this.sortMapEntries=typeof c=="function"?c:c===!0?bN:null}clone(){const t=Object.create(n6.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function SN(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const h=e.directives.toString(e);h?(n.push(h),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const o=ub(e,t),{commentString:s}=o.options;if(e.commentBefore){n.length!==1&&n.unshift("");const h=s(e.commentBefore);n.unshift(ho(h,""))}let c=!1,d=null;if(e.contents){if(tn(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const m=s(e.contents.commentBefore);n.push(ho(m,""))}o.forceBlockIndent=!!e.comment,d=e.contents.comment}const h=d?void 0:()=>c=!0;let p=L2(e.contents,o,()=>d=null,h);d&&(p+=Zi(p,"",s(d))),(p[0]==="|"||p[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${p}`:n.push(p)}else n.push(L2(e.contents,o));if(e.directives?.docEnd)if(e.comment){const h=s(e.comment);h.includes(`
133
+ `)?(n.push("..."),n.push(ho(h,""))):n.push(`... ${h}`)}else n.push("...");else{let h=e.comment;h&&c&&(h=h.replace(/^\n+/,"")),h&&((!c||d)&&n[n.length-1]!==""&&n.push(""),n.push(ho(s(h),"")))}return n.join(`
134
+ `)+`
135
+ `}let r6=class jb{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ur,{value:_8});let o=null;typeof n=="function"||Array.isArray(n)?o=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:c}=s;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(c=this.directives.yaml.version)):this.directives=new qn({version:c}),this.setSchema(c,r),this.contents=t===void 0?null:this.createNode(t,o,r)}clone(){const t=Object.create(jb.prototype,{[Ur]:{value:_8}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=tn(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Xs(this.contents)&&this.contents.add(t)}addIn(t,n){Xs(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=ab(this);t.anchor=!n||r.has(n)?ob(n||"a",r):n}return new $9(t.anchor)}createNode(t,n,r){let o;if(typeof n=="function")t=n.call({"":t},"",t),o=n;else if(Array.isArray(n)){const L=w=>typeof w=="number"||w instanceof String||w instanceof Number,M=n.filter(L).map(String);M.length>0&&(n=n.concat(M)),o=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:c,flow:d,keepUndefined:h,onTagObj:p,tag:m}=r??{},{onAnchor:v,setAnchors:y,sourceObjects:b}=XT(this,c||"a"),D={aliasDuplicateObjects:s??!0,keepUndefined:h??!1,onAnchor:v,onTagObj:p,replacer:o,schema:this.schema,sourceObjects:b},S=C5(t,m,D);return d&&en(S)&&(S.flow=!0),y(),S}createPair(t,n,r={}){const o=this.createNode(t,null,r),s=this.createNode(n,null,r);return new Xn(o,s)}delete(t){return Xs(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Hl(t)?this.contents==null?!1:(this.contents=null,!0):Xs(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return en(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Hl(t)?!n&&M1(this.contents)?this.contents.value:this.contents:en(this.contents)?this.contents.getIn(t,n):void 0}has(t){return en(this.contents)?this.contents.has(t):!1}hasIn(t){return Hl(t)?this.contents!==void 0:en(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=uc(this.schema,[t],n):Xs(this.contents)&&this.contents.set(t,n)}setIn(t,n){Hl(t)?this.contents=n:this.contents==null?this.contents=uc(this.schema,Array.from(t),n):Xs(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new qn({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new qn({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const o=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new n6(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:o,onAnchor:s,reviver:c}={}){const d={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},h=Wr(this.contents,n??"",d);if(typeof s=="function")for(const{count:p,res:m}of d.anchors.values())s(m,p);return typeof c=="function"?i2(c,{"":h},"",h):h}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return SN(this,t)}};function Xs(e){if(en(e))return!0;throw new Error("Expected a YAML collection as document contents")}class Ab extends Error{constructor(t,n,r,o){super(),this.name=t,this.code=r,this.message=o,this.pos=n}}class Zl extends Ab{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class DN extends Ab{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const nC=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(d=>t.linePos(d));const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`;let s=o-1,c=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&c.length>80){const d=Math.min(s-39,c.length-79);c="…"+c.substring(d),s-=d-1}if(c.length>80&&(c=c.substring(0,79)+"…"),r>1&&/^ *$/.test(c.substring(0,s))){let d=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);d.length>80&&(d=d.substring(0,79)+`…
136
+ `),c=d+c}if(/[^ ]/.test(c)){let d=1;const h=n.linePos[1];h?.line===r&&h.col>o&&(d=Math.max(1,Math.min(h.col-o,80-s)));const p=" ".repeat(s)+"^".repeat(d);n.message+=`:
137
+
138
+ ${c}
139
+ ${p}
140
+ `}};function M2(e,{flow:t,indicator:n,next:r,offset:o,onError:s,parentIndent:c,startOnNewline:d}){let h=!1,p=d,m=d,v="",y="",b=!1,D=!1,S=null,L=null,M=null,w=null,E=null,O=null,B=null;for(const _ of e)switch(D&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&s(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),D=!1),S&&(p&&_.type!=="comment"&&_.type!=="newline"&&s(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),_.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&_.source.includes(" ")&&(S=_),m=!0;break;case"comment":{m||s(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Z=_.source.substring(1)||" ";v?v+=y+Z:v=Z,y="",p=!1;break}case"newline":p?v?v+=_.source:(!O||n!=="seq-item-ind")&&(h=!0):y+=_.source,p=!0,b=!0,(L||M)&&(w=_),m=!0;break;case"anchor":L&&s(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&s(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),L=_,B??(B=_.offset),p=!1,m=!1,D=!0;break;case"tag":{M&&s(_,"MULTIPLE_TAGS","A node can have at most one tag"),M=_,B??(B=_.offset),p=!1,m=!1,D=!0;break}case n:(L||M)&&s(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),O&&s(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${t??"collection"}`),O=_,p=n==="seq-item-ind"||n==="explicit-key-ind",m=!1;break;case"comma":if(t){E&&s(_,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),E=_,p=!1,m=!1;break}default:s(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),p=!1,m=!1}const T=e[e.length-1],P=T?T.offset+T.source.length:o;return D&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=c||r?.type==="block-map"||r?.type==="block-seq")&&s(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:E,found:O,spaceBefore:h,comment:v,hasNewline:b,anchor:L,tag:M,newlineAfterProp:w,end:P,start:B??P}}function g5(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
141
+ `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(g5(t.key)||g5(t.value))return!0}return!1;default:return!0}}function Z8(e,t,n){if(t?.type==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&g5(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Ob(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const o=typeof r=="function"?r:(s,c)=>s===c||M1(s)&&M1(c)&&s.value===c.value;return t.some(s=>o(s.key,n))}const rC="All mapping items must start at the same column";function LN({composeNode:e,composeEmptyNode:t},n,r,o,s){const c=s?.nodeClass??zr,d=new c(n.schema);n.atRoot&&(n.atRoot=!1);let h=r.offset,p=null;for(const m of r.items){const{start:v,key:y,sep:b,value:D}=m,S=M2(v,{indicator:"explicit-key-ind",next:y??b?.[0],offset:h,onError:o,parentIndent:r.indent,startOnNewline:!0}),L=!S.found;if(L){if(y&&(y.type==="block-seq"?o(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in y&&y.indent!==r.indent&&o(h,"BAD_INDENT",rC)),!S.anchor&&!S.tag&&!b){p=S.end,S.comment&&(d.comment?d.comment+=`
142
+ `+S.comment:d.comment=S.comment);continue}(S.newlineAfterProp||g5(y))&&o(y??v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else S.found?.indent!==r.indent&&o(h,"BAD_INDENT",rC);n.atKey=!0;const M=S.end,w=y?e(n,y,S,o):t(n,M,v,null,S,o);n.schema.compat&&Z8(r.indent,y,o),n.atKey=!1,Ob(n,d.items,w)&&o(M,"DUPLICATE_KEY","Map keys must be unique");const E=M2(b??[],{indicator:"map-value-ind",next:D,offset:w.range[2],onError:o,parentIndent:r.indent,startOnNewline:!y||y.type==="block-scalar"});if(h=E.end,E.found){L&&(D?.type==="block-map"&&!E.hasNewline&&o(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&S.start<E.found.offset-1024&&o(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const O=D?e(n,D,E,o):t(n,h,b,null,E,o);n.schema.compat&&Z8(r.indent,D,o),h=O.range[2];const B=new Xn(w,O);n.options.keepSourceTokens&&(B.srcToken=m),d.items.push(B)}else{L&&o(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),E.comment&&(w.comment?w.comment+=`
143
+ `+E.comment:w.comment=E.comment);const O=new Xn(w);n.options.keepSourceTokens&&(O.srcToken=m),d.items.push(O)}}return p&&p<h&&o(p,"IMPOSSIBLE","Map comment with trailing content"),d.range=[r.offset,h,p??h],d}function MN({composeNode:e,composeEmptyNode:t},n,r,o,s){const c=s?.nodeClass??es,d=new c(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let h=r.offset,p=null;for(const{start:m,value:v}of r.items){const y=M2(m,{indicator:"seq-item-ind",next:v,offset:h,onError:o,parentIndent:r.indent,startOnNewline:!0});if(!y.found)if(y.anchor||y.tag||v)v?.type==="block-seq"?o(y.end,"BAD_INDENT","All sequence items must start at the same column"):o(h,"MISSING_CHAR","Sequence item without - indicator");else{p=y.end,y.comment&&(d.comment=y.comment);continue}const b=v?e(n,v,y,o):t(n,y.end,m,null,y,o);n.schema.compat&&Z8(r.indent,v,o),h=b.range[2],d.items.push(b)}return d.range=[r.offset,h,p??h],d}function Z5(e,t,n,r){let o="";if(e){let s=!1,c="";for(const d of e){const{source:h,type:p}=d;switch(p){case"space":s=!0;break;case"comment":{n&&!s&&r(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const m=h.substring(1)||" ";o?o+=c+m:o=m,c="";break}case"newline":o&&(c+=h),s=!0;break;default:r(d,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}t+=h.length}}return{comment:o,offset:t}}const T4="Block collections are not allowed within flow collections",N4=e=>e&&(e.type==="block-map"||e.type==="block-seq");function EN({composeNode:e,composeEmptyNode:t},n,r,o,s){const c=r.start.source==="{",d=c?"flow map":"flow sequence",h=s?.nodeClass??(c?zr:es),p=new h(n.schema);p.flow=!0;const m=n.atRoot;m&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let v=r.offset+r.start.source.length;for(let L=0;L<r.items.length;++L){const M=r.items[L],{start:w,key:E,sep:O,value:B}=M,T=M2(w,{flow:d,indicator:"explicit-key-ind",next:E??O?.[0],offset:v,onError:o,parentIndent:r.indent,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!O&&!B){L===0&&T.comma?o(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${d}`):L<r.items.length-1&&o(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${d}`),T.comment&&(p.comment?p.comment+=`
144
+ `+T.comment:p.comment=T.comment),v=T.end;continue}!c&&n.options.strict&&g5(E)&&o(E,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(L===0)T.comma&&o(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${d}`);else if(T.comma||o(T.start,"MISSING_CHAR",`Missing , between ${d} items`),T.comment){let P="";e:for(const _ of w)switch(_.type){case"comma":case"space":break;case"comment":P=_.source.substring(1);break e;default:break e}if(P){let _=p.items[p.items.length-1];nn(_)&&(_=_.value??_.key),_.comment?_.comment+=`
145
+ `+P:_.comment=P,T.comment=T.comment.substring(P.length+1)}}if(!c&&!O&&!T.found){const P=B?e(n,B,T,o):t(n,T.end,O,null,T,o);p.items.push(P),v=P.range[2],N4(B)&&o(P.range,"BLOCK_IN_FLOW",T4)}else{n.atKey=!0;const P=T.end,_=E?e(n,E,T,o):t(n,P,w,null,T,o);N4(E)&&o(_.range,"BLOCK_IN_FLOW",T4),n.atKey=!1;const Z=M2(O??[],{flow:d,indicator:"map-value-ind",next:B,offset:_.range[2],onError:o,parentIndent:r.indent,startOnNewline:!1});if(Z.found){if(!c&&!T.found&&n.options.strict){if(O)for(const z of O){if(z===Z.found)break;if(z.type==="newline"){o(z,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}T.start<Z.found.offset-1024&&o(Z.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else B&&("source"in B&&B.source?.[0]===":"?o(B,"MISSING_CHAR",`Missing space after : in ${d}`):o(Z.start,"MISSING_CHAR",`Missing , or : between ${d} items`));const K=B?e(n,B,Z,o):Z.found?t(n,Z.end,O,null,Z,o):null;K?N4(B)&&o(K.range,"BLOCK_IN_FLOW",T4):Z.comment&&(_.comment?_.comment+=`
146
+ `+Z.comment:_.comment=Z.comment);const W=new Xn(_,K);if(n.options.keepSourceTokens&&(W.srcToken=M),c){const z=p;Ob(n,z.items,_)&&o(P,"DUPLICATE_KEY","Map keys must be unique"),z.items.push(W)}else{const z=new zr(n.schema);z.flow=!0,z.items.push(W);const q=(K??_).range;z.range=[_.range[0],q[1],q[2]],p.items.push(z)}v=K?K.range[2]:Z.end}}const y=c?"}":"]",[b,...D]=r.end;let S=v;if(b?.source===y)S=b.offset+b.source.length;else{const L=d[0].toUpperCase()+d.substring(1),M=m?`${L} must end with a ${y}`:`${L} in block collection must be sufficiently indented and end with a ${y}`;o(v,m?"MISSING_CHAR":"BAD_INDENT",M),b&&b.source.length!==1&&D.unshift(b)}if(D.length>0){const L=Z5(D,S,n.options.strict,o);L.comment&&(p.comment?p.comment+=`
147
+ `+L.comment:p.comment=L.comment),p.range=[r.offset,S,L.offset]}else p.range=[r.offset,S,S];return p}function F4(e,t,n,r,o,s){const c=n.type==="block-map"?LN(e,t,n,r,s):n.type==="block-seq"?MN(e,t,n,r,s):EN(e,t,n,r,s),d=c.constructor;return o==="!"||o===d.tagName?(c.tag=d.tagName,c):(o&&(c.tag=o),c)}function kN(e,t,n,r,o){const s=r.tag,c=s?t.directives.tagName(s.source,y=>o(s,"TAG_RESOLVE_FAILED",y)):null;if(n.type==="block-seq"){const{anchor:y,newlineAfterProp:b}=r,D=y&&s?y.offset>s.offset?y:s:y??s;D&&(!b||b.offset<D.offset)&&o(D,"MISSING_CHAR","Missing newline after block sequence props")}const d=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!s||!c||c==="!"||c===zr.tagName&&d==="map"||c===es.tagName&&d==="seq")return F4(e,t,n,o,c);let h=t.schema.tags.find(y=>y.tag===c&&y.collection===d);if(!h){const y=t.schema.knownTags[c];if(y?.collection===d)t.schema.tags.push(Object.assign({},y,{default:!1})),h=y;else return y?o(s,"BAD_COLLECTION_TYPE",`${y.tag} used for ${d} collection, but expects ${y.collection??"scalar"}`,!0):o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${c}`,!0),F4(e,t,n,o,c)}const p=F4(e,t,n,o,c,h),m=h.resolve?.(p,y=>o(s,"TAG_RESOLVE_FAILED",y),t.options)??p,v=tn(m)?m:new Ft(m);return v.range=p.range,v.tag=c,h?.format&&(v.format=h.format),v}function jN(e,t,n){const r=t.offset,o=AN(t,e.options.strict,n);if(!o)return{value:"",type:null,comment:"",range:[r,r,r]};const s=o.mode===">"?Ft.BLOCK_FOLDED:Ft.BLOCK_LITERAL,c=t.source?ON(t.source):[];let d=c.length;for(let S=c.length-1;S>=0;--S){const L=c[S][1];if(L===""||L==="\r")d=S;else break}if(d===0){const S=o.chomp==="+"&&c.length>0?`
148
+ `.repeat(Math.max(1,c.length-1)):"";let L=r+o.length;return t.source&&(L+=t.source.length),{value:S,type:s,comment:o.comment,range:[r,L,L]}}let h=t.indent+o.indent,p=t.offset+o.length,m=0;for(let S=0;S<d;++S){const[L,M]=c[S];if(M===""||M==="\r")o.indent===0&&L.length>h&&(h=L.length);else{L.length<h&&n(p+L.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(h=L.length),m=S,h===0&&!e.atRoot&&n(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=L.length+M.length+1}for(let S=c.length-1;S>=d;--S)c[S][0].length>h&&(d=S+1);let v="",y="",b=!1;for(let S=0;S<m;++S)v+=c[S][0].slice(h)+`
149
+ `;for(let S=m;S<d;++S){let[L,M]=c[S];p+=L.length+M.length+1;const w=M[M.length-1]==="\r";if(w&&(M=M.slice(0,-1)),M&&L.length<h){const O=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;n(p-M.length-(w?2:1),"BAD_INDENT",O),L=""}s===Ft.BLOCK_LITERAL?(v+=y+L.slice(h)+M,y=`
150
+ `):L.length>h||M[0]===" "?(y===" "?y=`
151
+ `:!b&&y===`
152
+ `&&(y=`
153
+
154
+ `),v+=y+L.slice(h)+M,y=`
155
+ `,b=!0):M===""?y===`
156
+ `?v+=`
157
+ `:y=`
158
+ `:(v+=y+M,y=" ",b=!1)}switch(o.chomp){case"-":break;case"+":for(let S=d;S<c.length;++S)v+=`
159
+ `+c[S][0].slice(h);v[v.length-1]!==`
160
+ `&&(v+=`
161
+ `);break;default:v+=`
162
+ `}const D=r+o.length+t.source.length;return{value:v,type:s,comment:o.comment,range:[r,D,D]}}function AN({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=t[0],s=o[0];let c=0,d="",h=-1;for(let y=1;y<o.length;++y){const b=o[y];if(!d&&(b==="-"||b==="+"))d=b;else{const D=Number(b);!c&&D?c=D:h===-1&&(h=e+y)}}h!==-1&&r(h,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let p=!1,m="",v=o.length;for(let y=1;y<t.length;++y){const b=t[y];switch(b.type){case"space":p=!0;case"newline":v+=b.source.length;break;case"comment":n&&!p&&r(b,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),v+=b.source.length,m=b.source.substring(1);break;case"error":r(b,"UNEXPECTED_TOKEN",b.message),v+=b.source.length;break;default:{const D=`Unexpected token in block scalar header: ${b.type}`;r(b,"UNEXPECTED_TOKEN",D);const S=b.source;S&&typeof S=="string"&&(v+=S.length)}}}return{mode:s,indent:c,chomp:d,comment:m,length:v}}function ON(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let c=1;c<t.length;c+=2)s.push([t[c],t[c+1]]);return s}function BN(e,t,n){const{offset:r,type:o,source:s,end:c}=e;let d,h;const p=(y,b,D)=>n(r+y,b,D);switch(o){case"scalar":d=Ft.PLAIN,h=RN(s,p);break;case"single-quoted-scalar":d=Ft.QUOTE_SINGLE,h=TN(s,p);break;case"double-quoted-scalar":d=Ft.QUOTE_DOUBLE,h=NN(s,p);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const m=r+s.length,v=Z5(c,m,t,n);return{value:h,type:d,comment:v.comment,range:[r,m,v.offset]}}function RN(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Bb(e)}function TN(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Bb(e.slice(1,-1)).replace(/''/g,"'")}function Bb(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
163
+ `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
164
+ `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let o=r[1],s=" ",c=t.lastIndex;for(n.lastIndex=c;r=n.exec(e);)r[1]===""?s===`
165
+ `?o+=s:s=`
166
+ `:(o+=s+r[1],s=" "),c=n.lastIndex;const d=/[ \t]*(.*)/sy;return d.lastIndex=c,r=d.exec(e),o+s+(r?.[1]??"")}function NN(e,t){let n="";for(let r=1;r<e.length-1;++r){const o=e[r];if(!(o==="\r"&&e[r+1]===`
167
+ `))if(o===`
168
+ `){const{fold:s,offset:c}=FN(e,r);n+=s,r=c}else if(o==="\\"){let s=e[++r];const c=PN[s];if(c)n+=c;else if(s===`
169
+ `)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
170
+ `)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const d={x:2,u:4,U:8}[s];n+=_N(e,r+1,d,t),r+=d}else{const d=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${d}`),n+=d}}else if(o===" "||o===" "){const s=r;let c=e[r+1];for(;c===" "||c===" ";)c=e[++r+1];c!==`
171
+ `&&!(c==="\r"&&e[r+2]===`
172
+ `)&&(n+=r>s?e.slice(s,r+1):o)}else n+=o}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function FN(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
173
+ `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
174
+ `);)r===`
175
+ `&&(n+=`
176
+ `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const PN={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
177
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function _N(e,t,n,r){const o=e.substr(t,n),c=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(c)){const d=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${d}`),d}return String.fromCodePoint(c)}function Rb(e,t,n,r){const{value:o,type:s,comment:c,range:d}=t.type==="block-scalar"?jN(e,t,r):BN(t,e.options.strict,r),h=n?e.directives.tagName(n.source,v=>r(n,"TAG_RESOLVE_FAILED",v)):null;let p;e.options.stringKeys&&e.atKey?p=e.schema[Fa]:h?p=IN(e.schema,o,h,n,r):t.type==="scalar"?p=zN(e,o,t,r):p=e.schema[Fa];let m;try{const v=p.resolve(o,y=>r(n??t,"TAG_RESOLVE_FAILED",y),e.options);m=M1(v)?v:new Ft(v)}catch(v){const y=v instanceof Error?v.message:String(v);r(n??t,"TAG_RESOLVE_FAILED",y),m=new Ft(o)}return m.range=d,m.source=o,s&&(m.type=s),h&&(m.tag=h),p.format&&(m.format=p.format),c&&(m.comment=c),m}function IN(e,t,n,r,o){if(n==="!")return e[Fa];const s=[];for(const d of e.tags)if(!d.collection&&d.tag===n)if(d.default&&d.test)s.push(d);else return d;for(const d of s)if(d.test?.test(t))return d;const c=e.knownTags[n];return c&&!c.collection?(e.tags.push(Object.assign({},c,{default:!1,test:void 0})),c):(o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Fa])}function zN({atKey:e,directives:t,schema:n},r,o,s){const c=n.tags.find(d=>(d.default===!0||e&&d.default==="key")&&d.test?.test(r))||n[Fa];if(n.compat){const d=n.compat.find(h=>h.default&&h.test?.test(r))??n[Fa];if(c.tag!==d.tag){const h=t.tagString(c.tag),p=t.tagString(d.tag),m=`Value may be parsed as either ${h} or ${p}`;s(o,"TAG_RESOLVE_FAILED",m,!0)}}return c}function HN(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let o=t[r];switch(o.type){case"space":case"comment":case"newline":e-=o.source.length;continue}for(o=t[++r];o?.type==="space";)e+=o.source.length,o=t[++r];break}}return e}const ZN={composeNode:Tb,composeEmptyNode:a6};function Tb(e,t,n,r){const o=e.atKey,{spaceBefore:s,comment:c,anchor:d,tag:h}=n;let p,m=!0;switch(t.type){case"alias":p=VN(e,t,r),(d||h)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=Rb(e,t,h,r),d&&(p.anchor=d.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{p=kN(ZN,e,t,n,r),d&&(p.anchor=d.source.substring(1))}catch(v){const y=v instanceof Error?v.message:String(v);r(t,"RESOURCE_EXHAUSTION",y)}break;default:{const v=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",v),m=!1}}return p??(p=a6(e,t.offset,void 0,null,n,r)),d&&p.anchor===""&&r(d,"BAD_ALIAS","Anchor cannot be an empty string"),o&&e.options.stringKeys&&(!M1(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&r(h??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),s&&(p.spaceBefore=!0),c&&(t.type==="scalar"&&t.source===""?p.comment=c:p.commentBefore=c),e.options.keepSourceTokens&&m&&(p.srcToken=t),p}function a6(e,t,n,r,{spaceBefore:o,comment:s,anchor:c,tag:d,end:h},p){const m={type:"scalar",offset:HN(t,n,r),indent:-1,source:""},v=Rb(e,m,d,p);return c&&(v.anchor=c.source.substring(1),v.anchor===""&&p(c,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(v.spaceBefore=!0),s&&(v.comment=s,v.range[2]=h),v}function VN({options:e},{offset:t,source:n,end:r},o){const s=new $9(n.substring(1));s.source===""&&o(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const c=t+n.length,d=Z5(r,c,e.strict,o);return s.range=[t,c,d.offset],d.comment&&(s.comment=d.comment),s}function WN(e,t,{offset:n,start:r,value:o,end:s},c){const d=Object.assign({_directives:t},e),h=new r6(void 0,d),p={atKey:!1,atRoot:!0,directives:h.directives,options:h.options,schema:h.schema},m=M2(r,{indicator:"doc-start",next:o??s?.[0],offset:n,onError:c,parentIndent:0,startOnNewline:!0});m.found&&(h.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!m.hasNewline&&c(m.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),h.contents=o?Tb(p,o,m,c):a6(p,m.end,r,null,m,c);const v=h.contents.range[2],y=Z5(s,v,!1,c);return y.comment&&(h.comment=y.comment),h.range=[n,v,y.offset],h}function Rl(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function aC(e){let t="",n=!1,r=!1;for(let o=0;o<e.length;++o){const s=e[o];switch(s[0]){case"#":t+=(t===""?"":r?`
178
+
179
+ `:`
180
+ `)+(s.substring(1)||" "),n=!0,r=!1;break;case"%":e[o+1]?.[0]!=="#"&&(o+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class $N{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,o,s)=>{const c=Rl(n);s?this.warnings.push(new DN(c,r,o)):this.errors.push(new Zl(c,r,o))},this.directives=new qn({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:o}=aC(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
181
+ ${r}`:r;else if(o||t.directives.docStart||!s)t.commentBefore=r;else if(en(s)&&!s.flow&&s.items.length>0){let c=s.items[0];nn(c)&&(c=c.key);const d=c.commentBefore;c.commentBefore=d?`${r}
182
+ ${d}`:r}else{const c=s.commentBefore;s.commentBefore=c?`${r}
183
+ ${c}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:aC(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const o of t)yield*this.next(o);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,o)=>{const s=Rl(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,o)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=WN(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new Zl(Rl(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Zl(Rl(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Z5(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
184
+ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Zl(Rl(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),o=new r6(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,n,n],this.decorate(o,!1),yield o}}}const Nb="\uFEFF",Fb="",Pb="",V8="";function UN(e){switch(e){case Nb:return"byte-order-mark";case Fb:return"doc-mode";case Pb:return"flow-error-end";case V8:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
185
+ `:case`\r
186
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function ia(e){switch(e){case void 0:case" ":case`
187
+ `:case"\r":case" ":return!0;default:return!1}}const oC=new Set("0123456789ABCDEFabcdef"),qN=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),C0=new Set(",[]{}"),YN=new Set(` ,[]{}
188
+ \r `),P4=e=>!e||YN.has(e);class GN{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
189
+ `?!0:n==="\r"?this.buffer[t+1]===`
190
+ `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const o=this.buffer[r+t+1];if(o===`
191
+ `||!o&&!this.atEnd)return t+r+1}return n===`
192
+ `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&ia(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
193
+ `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Nb&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const s=t[r-1];if(s===" "||s===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const s=t[n-1];if(s===" "||s===" ")n-=1;else break}const o=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Fb,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&ia(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!ia(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&ia(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(P4),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&o[0]!=="#"||r===0&&(o.startsWith("---")||o.startsWith("..."))&&ia(o[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Pb,yield*this.parseLineStart();let s=0;for(;o[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),o[s]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(P4),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const c=this.charAt(1);if(this.flowKey||ia(c)||c===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let o=r.indexOf(`
194
+ `,this.pos);if(o!==-1){for(;o!==-1;){const s=this.continueScalar(o+1);if(s===-1)break;o=r.indexOf(`
195
+ `,s)}o!==-1&&(n=o-(r[o-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>ia(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let s=this.pos;r=this.buffer[s];++s)switch(r){case" ":n+=1;break;case`
196
+ `:t=s,n=0;break;case"\r":{const c=this.buffer[s+1];if(!c&&!this.atEnd)return this.setNext("block-scalar");if(c===`
197
+ `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const s=this.continueScalar(t+1);if(s===-1)break;t=this.buffer.indexOf(`
198
+ `,s)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let o=t+1;for(r=this.buffer[o];r===" ";)r=this.buffer[++o];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
199
+ `;)r=this.buffer[++o];t=o-1}else if(!this.blockScalarKeep)do{let s=t-1,c=this.buffer[s];c==="\r"&&(c=this.buffer[--s]);const d=s;for(;c===" ";)c=this.buffer[--s];if(c===`
200
+ `&&s>=this.pos&&s+1+n>d)t=s;else break}while(!0);return yield V8,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,o;for(;o=this.buffer[++r];)if(o===":"){const s=this.buffer[r+1];if(ia(s)||t&&C0.has(s))break;n=r}else if(ia(o)){let s=this.buffer[r+1];if(o==="\r"&&(s===`
201
+ `?(r+=1,o=`
202
+ `,s=this.buffer[r+1]):n=r),s==="#"||t&&C0.has(s))break;if(o===`
203
+ `){const c=this.continueScalar(r+1);if(c===-1)break;r=Math.max(r,c-2)}}else{if(t&&C0.has(o))break;n=r}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield V8,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(P4))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(ia(n)||t&&C0.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!ia(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(qN.has(n))n=this.buffer[++t];else if(n==="%"&&oC.has(this.buffer[t+1])&&oC.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
204
+ `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
205
+ `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const o=n-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=n),o}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class KN{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<t?n=s+1:r=s}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const o=this.lineStarts[n-1];return{line:n,col:t-o+1}}}}function Jo(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function iC(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function _b(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function g0(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Qs(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function sC(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Jo(t.start,"explicit-key-ind")&&!Jo(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,_b(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class XN{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new GN,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=UN(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&sC(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const o=r.items[r.items.length-1];if(o.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=n;else{Object.assign(o,{key:n,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=r.items[r.items.length-1];o.value?r.items.push({start:[],value:n}):o.value=n;break}case"flow-collection":{const o=r.items[r.items.length-1];!o||o.value?r.items.push({start:[],key:n,sep:[]}):o.sep?o.value=n:Object.assign(o,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const o=n.items[n.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&iC(o.start)===-1&&(n.indent===0||o.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=o.start:r.items.push({start:o.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{iC(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=g0(this.peek(2)),r=Qs(n);let o;t.end?(o=t.end,o.push(this.sourceToken),delete t.end):o=[this.sourceToken];const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
206
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
207
+ `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,o=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let s=[];if(o&&n.sep&&!n.value){const c=[];for(let d=0;d<n.sep.length;++d){const h=n.sep[d];switch(h.type){case"newline":c.push(d);break;case"space":break;case"comment":h.indent>t.indent&&(c.length=0);break;default:c.length=0}}c.length>=2&&(s=n.sep.splice(c[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):o||n.value?(s.push(this.sourceToken),t.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Jo(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(_b(n.key)&&!Jo(n.sep,"newline")){const c=Qs(n.start),d=n.key,h=n.sep;h.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:d,sep:h}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(Jo(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const c=Qs(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:c,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?t.items.push({start:s,key:null,sep:[this.sourceToken]}):Jo(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const c=this.flowScalar(this.type);o||n.value?(t.items.push({start:s,key:c,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(c):(Object.assign(n,{key:c,sep:[]}),this.onKeyLine=!0);return}default:{const c=this.startBlockValue(t);if(c){if(c.type==="block-seq"){if(!n.explicitKey&&n.sep&&!Jo(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&t.items.push({start:s});this.stack.push(c);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const o=t.items[t.items.length-2]?.value?.end;if(Array.isArray(o)){Array.prototype.push.apply(o,n.start),o.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Jo(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:o,sep:[]}):n.sep?this.stack.push(o):Object.assign(n,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const o=g0(r),s=Qs(o);sC(t);const c=t.end.splice(1,t.end.length);c.push(this.sourceToken);const d={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:c}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=d}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
208
+ `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
209
+ `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=g0(t),r=Qs(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=g0(t),r=Qs(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function QN(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new KN||null,prettyErrors:t}}function JN(e,t={}){const{lineCounter:n,prettyErrors:r}=QN(t),o=new XN(n?.addNewLine),s=new $N(t);let c=null;for(const d of s.compose(o.parse(e),!0,e.length))if(!c)c=d;else if(c.options.logLevel!=="silent"){c.errors.push(new Zl(d.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(c.errors.forEach(nC(e,n)),c.warnings.forEach(nC(e,n))),c}function eF(e,t,n){let r;const o=JN(e,n);if(!o)return null;if(o.warnings.forEach(s=>cb(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:r},n))}function tF(e,t,n){let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const o=Math.round(n);n=o<1?void 0:o>8?{indent:8}:{indent:o}}if(e===void 0){const{keepUndefined:o}=n??t??{};if(!o)return}return _5(e)&&!r?e.toString(n):new r6(e,r,n).toString(n)}const Ri=e=>typeof e=="string"&&e.trim().length>0?e:null,nF=e=>{if(e.type==="image")return{...e,groupId:Ri(e.groupId),assetId:Ri(e.assetId),flipX:e.flipX===!0,flipY:e.flipY===!0,src:typeof e.src=="string"?e.src:"",naturalWidth:typeof e.naturalWidth=="number"&&Number.isFinite(e.naturalWidth)?Math.max(1,e.naturalWidth):Math.max(1,e.width),naturalHeight:typeof e.naturalHeight=="number"&&Number.isFinite(e.naturalHeight)?Math.max(1,e.naturalHeight):Math.max(1,e.height)};if(e.type==="svg")return{...e,groupId:Ri(e.groupId),assetId:typeof e.assetId=="string"&&e.assetId.trim().length>0?e.assetId:"svg-asset",viewBox:typeof e.viewBox=="string"&&e.viewBox.trim().length>0?e.viewBox:"0 0 24 24",svg:typeof e.svg=="string"?e.svg:"",fillStyle:e.fillStyle==="none"?"none":e.fillStyle==="hachure"?"hachure":"solid",fill:typeof e.fill=="string"&&e.fill.trim().length>0?e.fill:"#f5f5f5",stroke:typeof e.stroke=="string"&&e.stroke.trim().length>0?e.stroke:"#cccccc",strokeWidth:typeof e.strokeWidth=="number"&&Number.isFinite(e.strokeWidth)?Math.max(0,e.strokeWidth):1,strokeStyle:e.strokeStyle==="dashed"||e.strokeStyle==="none"||e.strokeStyle==="solid"?e.strokeStyle:"solid",width:typeof e.width=="number"&&Number.isFinite(e.width)?Math.max(1,e.width):24,height:typeof e.height=="number"&&Number.isFinite(e.height)?Math.max(1,e.height):24};if(e.type==="rectangle"||e.type==="circle")return{...e,groupId:Ri(e.groupId),text:typeof e.text=="string"?e.text:"",fontFamily:typeof e.fontFamily=="string"?e.fontFamily:"Shantell Sans, sans-serif",fontSize:typeof e.fontSize=="number"&&Number.isFinite(e.fontSize)?e.fontSize:20,fontWeight:typeof e.fontWeight=="string"?e.fontWeight:"200",fontStyle:e.fontStyle==="italic"?"italic":"normal",color:typeof e.color=="string"?e.color:"#2f3b52",textAlign:e.textAlign==="left"||e.textAlign==="center"||e.textAlign==="right"||e.textAlign==="start"||e.textAlign==="end"?e.textAlign:"center"};if(e.type==="draw")return{...e,groupId:Ri(e.groupId),drawMode:e.drawMode==="marker"?"marker":e.drawMode==="quill"?"quill":"draw",createdAt:typeof e.createdAt=="number"&&Number.isFinite(e.createdAt)?e.createdAt:void 0,width:typeof e.width=="number"&&Number.isFinite(e.width)?Math.max(1,e.width):1,height:typeof e.height=="number"&&Number.isFinite(e.height)?Math.max(1,e.height):1,points:Array.isArray(e.points)?e.points.filter(t=>typeof t?.x=="number"&&typeof t?.y=="number").map(t=>({x:t.x,y:t.y,t:typeof t.t=="number"?t.t:void 0})):[],stroke:typeof e.stroke=="string"?e.stroke:"#2f3b52",strokeWidth:typeof e.strokeWidth=="number"&&Number.isFinite(e.strokeWidth)?Math.max(1,e.strokeWidth):2};if(e.type==="line"){const t=e.startCap==="line arrow"||e.startCap==="triangle arrow"||e.startCap==="inverted triangle"||e.startCap==="circular arrow"||e.startCap==="diamond arrow"?e.startCap:"none",n=e.endCap==="line arrow"||e.endCap==="triangle arrow"||e.endCap==="inverted triangle"||e.endCap==="circular arrow"||e.endCap==="diamond arrow"?e.endCap:"none";return{...e,groupId:Ri(e.groupId),stroke:typeof e.stroke=="string"?e.stroke:"#2f3b52",strokeWidth:typeof e.strokeWidth=="number"&&Number.isFinite(e.strokeWidth)?Math.max(1,e.strokeWidth):2,startCap:t,endCap:n,controlPoint:e.controlPoint&&typeof e.controlPoint.x=="number"&&typeof e.controlPoint.y=="number"?{x:e.controlPoint.x,y:e.controlPoint.y}:null}}return{...e,groupId:Ri(e.groupId)}},rF=e=>e==="light"||e==="dark"||e==="system",aF=e=>e==="drawo"||e==="catppuccin"||e==="nord"||e==="solarized"||e==="gruvbox"||e==="tokyonight"||e==="rosepine"||e==="everforest"||e==="kanagawa"||e==="dracula"||e==="one"||e==="ayu",oF=e=>e==="dots"||e==="squares",iF=e=>{if(!e||typeof e!="object")return!1;const t=e;return(typeof t.canvas=="string"&&t.canvas.trim().length>0||typeof t.canvas>"u")&&typeof t.drawStroke=="string"&&t.drawStroke.trim().length>0&&typeof t.markerStroke=="string"&&t.markerStroke.trim().length>0&&(typeof t.quillStroke=="string"&&t.quillStroke.trim().length>0||typeof t.quillStroke>"u")&&(typeof t.drawStrokeWidth=="number"||typeof t.drawStrokeWidth>"u")&&(typeof t.quillStrokeWidth=="number"||typeof t.quillStrokeWidth>"u")&&(typeof t.markerStrokeWidth=="number"||typeof t.markerStrokeWidth>"u")},sF=e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.fill=="string"&&t.fill.trim().length>0&&typeof t.stroke=="string"&&t.stroke.trim().length>0&&typeof t.textColor=="string"&&t.textColor.trim().length>0&&typeof t.lineStroke=="string"&&t.lineStroke.trim().length>0},lF=e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.lifetime=="number"&&Number.isFinite(t.lifetime)&&t.lifetime>0&&typeof t.baseWidth=="number"&&Number.isFinite(t.baseWidth)&&t.baseWidth>0&&typeof t.minWidth=="number"&&Number.isFinite(t.minWidth)&&t.minWidth>=0&&typeof t.shadow=="boolean"&&typeof t.color=="string"&&t.color.trim().length>0},W8=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Vl=(e,t)=>{if(!W8(t))return{};const n={};for(const r of Object.keys(e)){const o=e[r],s=t[r];if(!(typeof s>"u")){if(typeof o=="number"){typeof s=="number"&&Number.isFinite(s)&&(n[r]=s);continue}if(typeof o=="boolean"){typeof s=="boolean"&&(n[r]=s);continue}if(typeof o=="string"){typeof s=="string"&&(n[r]=s);continue}if(W8(o)){const c=Vl(o,s);Object.keys(c).length>0&&(n[r]=c)}}}return n},lC=(e,t)=>{const n=Vl(t,e),r=W8(e)?e:null;if(typeof n.theme<"u"&&!rF(n.theme)&&delete n.theme,typeof n.gridStyle<"u"&&!oF(n.gridStyle)&&delete n.gridStyle,typeof n.colorScheme<"u"&&!aF(n.colorScheme)&&delete n.colorScheme,r&&Object.prototype.hasOwnProperty.call(r,"drawDefaults"))if(iF(r.drawDefaults)){const o=Vl(t.drawDefaults,r.drawDefaults);n.drawDefaults={...t.drawDefaults,...o}}else delete n.drawDefaults;if(r&&Object.prototype.hasOwnProperty.call(r,"shapeDefaults"))if(sF(r.shapeDefaults)){const o=Vl(t.shapeDefaults,r.shapeDefaults);n.shapeDefaults={...t.shapeDefaults,...o}}else delete n.shapeDefaults;if(r&&Object.prototype.hasOwnProperty.call(r,"laserSettings"))if(lF(r.laserSettings)){const o=Vl(t.laserSettings,r.laserSettings);n.laserSettings={...t.laserSettings,...o}}else delete n.laserSettings;return n},uF=()=>{const e=Bw();try{const t=localStorage.getItem(P8);if(t){const s=JSON.parse(t),c=s.camera,d=lC(s.settings,e.settings),h={...e,elements:Array.isArray(s.elements)?s.elements.map(nF):e.elements,selectedId:typeof s.selectedId=="string"?s.selectedId:null,selectedIds:Array.isArray(s.selectedIds)?s.selectedIds.filter(p=>typeof p=="string"):[],camera:c&&typeof c.x=="number"&&typeof c.y=="number"&&typeof c.zoom=="number"?c:e.camera,settings:{...e.settings,...d}};return h.selectedIds.length===0&&h.selectedId&&(h.selectedIds=[h.selectedId]),h}const n=localStorage.getItem(F8);if(!n)return e;const r=JSON.parse(n),o=lC(r,e.settings);return cr(e,o)}catch{return e}},uC=(e,t)=>e.camera===t.camera?e:{...e,camera:t.camera},cF=()=>({past:[],present:uF(),future:[]}),fF=(e,t)=>{if(t.type==="undo"){if(e.past.length===0)return e;const o=e.past[e.past.length-1],s=uC(o,e.present);return{past:e.past.slice(0,-1),present:s,future:[e.present,...e.future]}}if(t.type==="redo"){if(e.future.length===0)return e;const[o,...s]=e.future,c=uC(o,e.present);return{past:[...e.past,e.present].slice(-200),present:c,future:s}}if(t.type==="commitInteraction")return t.before===e.present?e:{past:[...e.past,t.before].slice(-200),present:e.present,future:[]};const n=typeof t.updater=="function"?t.updater(e.present):t.updater;if(n===e.present)return e;const r=n.elements!==e.present.elements;return t.trackHistory===!1||!r?{...e,present:n}:{past:[...e.past,e.present].slice(-200),present:n,future:[]}},N1=e=>[...e,"#f8f8f8","multi"],F1=(e,t)=>[[...e],[...t,"multi"]],P1=e=>e,o6={drawo:{light:P1({drawDefaults:{drawStroke:"#1e1e1e",markerStroke:"#BA8501",quillStroke:"#3B01AE",canvas:"#F5F4F4",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#f5f5f5",stroke:"#cccccc",textColor:"#2f3b52",lineStroke:"#2f3b52"},strokeColors:N1(["#1e1e1e","#DA3614","#BD5C01","#BA8501","#2F973B","#006EC3","#3B01AE"]),shapeColors:F1(["#1e1e1e","#757575","#f24822","#ff9e42","#ffc943","#66d575","#5ad8cc","#3dadff","#874fff","#f849c1","#ffffff"],["#b3b3b3","#d9d9d9","#ffc7c2","#ffe0c2","#ffecbd","#cdf4d3","#c6faf6","#c2e5ff","#dcccff","#ffc2ec"])}),dark:P1({drawDefaults:{drawStroke:"#1e1e1e",markerStroke:"#BA8501",quillStroke:"#3B01AE",canvas:"#161617",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#2a2a2a",stroke:"#4a4a4a",textColor:"#d7def0",lineStroke:"#d7def0"},strokeColors:N1(["#1e1e1e","#DA3614","#BD5C01","#BA8501","#2F973B","#006EC3","#3B01AE"]),shapeColors:F1(["#1e1e1e","#757575","#f24822","#ff9e42","#ffc943","#66d575","#5ad8cc","#3dadff","#874fff","#f849c1","#ffffff"],["#b3b3b3","#d9d9d9","#ffc7c2","#ffe0c2","#ffecbd","#cdf4d3","#c6faf6","#c2e5ff","#dcccff","#ffc2ec"])})},catppuccin:{light:P1({drawDefaults:{drawStroke:"#11111b",markerStroke:"#fe640b",quillStroke:"#1e66f5",canvas:"#eff1f5",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#eff1f5",stroke:"#bcc0cc",textColor:"#4c4f69",lineStroke:"#4c4f69"},strokeColors:N1(["#11111b","#d20f39","#fe640b","#40a02b","#1e66f5","#04a5e5","#7287fd"]),shapeColors:F1(["#11111b","#7c7f93","#d20f39","#fe640b","#df8e1d","#40a02b","#179299","#1e66f5","#7287fd","#8839ef","#ffffff"],["#b3b3b3","#d9d9d9","#e78284","#ef9f76","#ffecbd","#cdf4d3","#c6faf6","#c2e5ff","#dcccff","#ffc2ec"])}),dark:P1({drawDefaults:{drawStroke:"#cdd6f4",markerStroke:"#f9e2af",quillStroke:"#89b4fa",canvas:"#11111b",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#313244",stroke:"#585b70",textColor:"#cdd6f4",lineStroke:"#cdd6f4"},strokeColors:N1(["#cdd6f4","#f38ba8","#fab387","#a6e3a1","#89b4fa","#89dceb","#b4befe"]),shapeColors:F1(["#cdd6f4","#f5e0dc","#f38ba8","#fab387","#f9e2af","#a6e3a1","#89dceb","#89b4fa","#b4befe","#cba6f7","#181825"],["#11111b","#7c7f93","#d20f39","#fe640b","#df8e1d","#40a02b","#179299","#1e66f5","#7287fd","#8839ef"])})},nord:{light:P1({drawDefaults:{drawStroke:"#2e3440",markerStroke:"#ebcb8b",quillStroke:"#5e81ac",canvas:"#eceff4",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#e5e9f0",stroke:"#d8dee9",textColor:"#2e3440",lineStroke:"#2e3440"},strokeColors:N1(["#2e3440","#bf616a","#d08770","#ebcb8b","#a3be8c","#88c0d0","#5e81ac"]),shapeColors:F1(["#2e3440","#4c566a","#bf616a","#d08770","#ebcb8b","#a3be8c","#8fbcbb","#88c0d0","#81a1c1","#b48ead","#ffffff"],["#d8dee9","#e5e9f0","#efc0c5","#f1c8b3","#f3e4bc","#d4e4cc","#c8e3df","#c9e2e9","#d2dcea","#dfd3e8"])}),dark:P1({drawDefaults:{drawStroke:"#eceff4",markerStroke:"#ebcb8b",quillStroke:"#88c0d0",canvas:"#2e3440",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#3b4252",stroke:"#4c566a",textColor:"#eceff4",lineStroke:"#eceff4"},strokeColors:N1(["#eceff4","#bf616a","#d08770","#ebcb8b","#a3be8c","#88c0d0","#81a1c1"]),shapeColors:F1(["#eceff4","#d8dee9","#bf616a","#d08770","#ebcb8b","#a3be8c","#8fbcbb","#88c0d0","#81a1c1","#b48ead","#2e3440"],["#4c566a","#434c5e","#8f4c57","#9f6a58","#aa9868","#7f9974","#6d9493","#6b93a3","#6883a1","#876f9b"])})},solarized:{light:P1({drawDefaults:{drawStroke:"#586e75",markerStroke:"#b58900",quillStroke:"#268bd2",canvas:"#fdf6e3",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#eee8d5",stroke:"#93a1a1",textColor:"#586e75",lineStroke:"#586e75"},strokeColors:N1(["#586e75","#dc322f","#cb4b16","#b58900","#859900","#2aa198","#268bd2"]),shapeColors:F1(["#586e75","#657b83","#dc322f","#cb4b16","#b58900","#859900","#2aa198","#268bd2","#6c71c4","#d33682","#fdf6e3"],["#93a1a1","#eee8d5","#efb0ac","#e8bea9","#dfcf9f","#c9d79d","#a6d7d2","#a9d0e8","#b9bde5","#e1b3cf"])}),dark:P1({drawDefaults:{drawStroke:"#93a1a1",markerStroke:"#b58900",quillStroke:"#2aa198",canvas:"#002b36",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#073642",stroke:"#586e75",textColor:"#93a1a1",lineStroke:"#93a1a1"},strokeColors:N1(["#93a1a1","#dc322f","#cb4b16","#b58900","#859900","#2aa198","#268bd2"]),shapeColors:F1(["#93a1a1","#839496","#dc322f","#cb4b16","#b58900","#859900","#2aa198","#268bd2","#6c71c4","#d33682","#002b36"],["#586e75","#073642","#7e3a3a","#7b4a39","#77643f","#5f733f","#2f6f6a","#2f5f88","#4d4f83","#7d3f66"])})},gruvbox:{light:P1({drawDefaults:{drawStroke:"#3c3836",markerStroke:"#d79921",quillStroke:"#458588",canvas:"#fbf1c7",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#f2e5bc",stroke:"#d5c4a1",textColor:"#3c3836",lineStroke:"#3c3836"},strokeColors:N1(["#3c3836","#cc241d","#d65d0e","#d79921","#98971a","#458588","#b16286"]),shapeColors:F1(["#3c3836","#665c54","#cc241d","#d65d0e","#d79921","#98971a","#689d6a","#458588","#076678","#b16286","#f9f5d7"],["#a89984","#d5c4a1","#f2b6b2","#f2c39b","#f0d4a2","#ccd79d","#bfd6b9","#b7d1d1","#b9c8d8","#d8bfd8"])}),dark:P1({drawDefaults:{drawStroke:"#ebdbb2",markerStroke:"#fabd2f",quillStroke:"#83a598",canvas:"#282828",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#3c3836",stroke:"#504945",textColor:"#ebdbb2",lineStroke:"#ebdbb2"},strokeColors:N1(["#ebdbb2","#fb4934","#fe8019","#fabd2f","#b8bb26","#8ec07c","#83a598"]),shapeColors:F1(["#ebdbb2","#d5c4a1","#fb4934","#fe8019","#fabd2f","#b8bb26","#8ec07c","#83a598","#d3869b","#b16286","#1d2021"],["#665c54","#504945","#8f3a34","#8f5a2f","#8d7a42","#6f7337","#5f7b5f","#4d6e77","#6a5f82","#7a4f77"])})},tokyonight:{light:P1({drawDefaults:{drawStroke:"#3760bf",markerStroke:"#b15c00",quillStroke:"#2e7de9",canvas:"#d5d6db",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#e1e2e7",stroke:"#c4c8da",textColor:"#3760bf",lineStroke:"#3760bf"},strokeColors:N1(["#3760bf","#f52a65","#b15c00","#8c6c3e","#587539","#007197","#2e7de9"]),shapeColors:F1(["#3760bf","#6172b0","#f52a65","#b15c00","#8c6c3e","#587539","#007197","#2e7de9","#9854f1","#d20065","#ffffff"],["#a7aecb","#c4c8da","#f2b8c7","#e5c0a8","#dfcfb8","#c8d6b8","#b9d8de","#bdd0ef","#cfbff3","#e2b6d0"])}),dark:P1({drawDefaults:{drawStroke:"#c0caf5",markerStroke:"#e0af68",quillStroke:"#7aa2f7",canvas:"#1a1b26",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#24283b",stroke:"#414868",textColor:"#c0caf5",lineStroke:"#c0caf5"},strokeColors:N1(["#c0caf5","#f7768e","#ff9e64","#e0af68","#9ece6a","#73daca","#7aa2f7"]),shapeColors:F1(["#c0caf5","#a9b1d6","#f7768e","#ff9e64","#e0af68","#9ece6a","#73daca","#7aa2f7","#bb9af7","#c0caf5","#16161e"],["#565f89","#414868","#8f4c63","#8f6444","#8f7a4a","#62834a","#4e8b83","#4f71a7","#6f5f9f","#7f6f8f"])})},rosepine:{light:P1({drawDefaults:{drawStroke:"#575279",markerStroke:"#ea9d34",quillStroke:"#907aa9",canvas:"#faf4ed",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#fffaf3",stroke:"#dfdad9",textColor:"#575279",lineStroke:"#575279"},strokeColors:N1(["#575279","#b4637a","#ea9d34","#d7827e","#56949f","#286983","#907aa9"]),shapeColors:F1(["#575279","#797593","#b4637a","#ea9d34","#d7827e","#56949f","#286983","#907aa9","#cecacd","#d7827e","#ffffff"],["#9893a5","#dfdad9","#e5beca","#efd1b0","#eac8c6","#bfdbde","#bfd2de","#cdc4de","#e5dde9","#e9cfd6"])}),dark:P1({drawDefaults:{drawStroke:"#e0def4",markerStroke:"#f6c177",quillStroke:"#9ccfd8",canvas:"#191724",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#26233a",stroke:"#403d52",textColor:"#e0def4",lineStroke:"#e0def4"},strokeColors:N1(["#e0def4","#eb6f92","#f6c177","#ea9a97","#31748f","#9ccfd8","#c4a7e7"]),shapeColors:F1(["#e0def4","#908caa","#eb6f92","#f6c177","#ea9a97","#31748f","#9ccfd8","#c4a7e7","#6e6a86","#ebbcba","#111019"],["#6e6a86","#403d52","#8f4f66","#8f6d4d","#8f6a68","#3b6b79","#5b8c99","#7f6f99","#8f7fa6","#9f7f8f"])})},everforest:{light:P1({drawDefaults:{drawStroke:"#5c6a72",markerStroke:"#d8a657",quillStroke:"#3a94c5",canvas:"#f3ead3",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#f2efdf",stroke:"#d3c6aa",textColor:"#5c6a72",lineStroke:"#5c6a72"},strokeColors:N1(["#5c6a72","#f85552","#f57d26","#d8a657","#8da101","#35a77c","#3a94c5"]),shapeColors:F1(["#5c6a72","#708089","#f85552","#f57d26","#d8a657","#8da101","#35a77c","#3a94c5","#df69ba","#9da9a0","#ffffff"],["#a6b0a0","#d3c6aa","#edb8b2","#e8c5a8","#e2d3b0","#cad8aa","#b7dcc9","#b9d8e8","#d4c8e8","#d8cfd2"])}),dark:P1({drawDefaults:{drawStroke:"#d3c6aa",markerStroke:"#dbbc7f",quillStroke:"#7fbbb3",canvas:"#2d353b",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#343f44",stroke:"#475258",textColor:"#d3c6aa",lineStroke:"#d3c6aa"},strokeColors:N1(["#d3c6aa","#e67e80","#e69875","#dbbc7f","#a7c080","#83c092","#7fbbb3"]),shapeColors:F1(["#d3c6aa","#9da9a0","#e67e80","#e69875","#dbbc7f","#a7c080","#83c092","#7fbbb3","#d699b6","#9da9a0","#232a2e"],["#5c6a72","#475258","#8f5a5f","#8f6b57","#8f7a5f","#6d865f","#5f8870","#5f8690","#7f6f8f","#7f7f7f"])})},kanagawa:{light:P1({drawDefaults:{drawStroke:"#545464",markerStroke:"#c0a36e",quillStroke:"#4d699b",canvas:"#DCD7BA",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#f4f1d9",stroke:"#dcd7ba",textColor:"#545464",lineStroke:"#545464"},strokeColors:N1(["#545464","#c84053","#b35b79","#c0a36e","#6f894e","#629f9f","#4d699b"]),shapeColors:F1(["#545464","#716e61","#c84053","#b35b79","#c0a36e","#6f894e","#629f9f","#4d699b","#866b9c","#b35b79","#ffffff"],["#b9b28a","#dcd7ba","#e8b9c0","#e8c0c8","#dfcfae","#cbd8bf","#bfe0df","#c5d2e8","#d5cbe8","#e1c8d8"])}),dark:P1({drawDefaults:{drawStroke:"#dcd7ba",markerStroke:"#c0a36e",quillStroke:"#7e9cd8",canvas:"#1f1f28",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#2a2a37",stroke:"#363646",textColor:"#dcd7ba",lineStroke:"#dcd7ba"},strokeColors:N1(["#dcd7ba","#c34043","#ffa066","#c0a36e","#98bb6c","#7fb4ca","#7e9cd8"]),shapeColors:F1(["#dcd7ba","#c8c093","#c34043","#ffa066","#c0a36e","#98bb6c","#7fb4ca","#7e9cd8","#957fb8","#d27e99","#16161d"],["#727169","#54546d","#7f3f44","#8f674c","#8f7a58","#6f8a58","#5f8a90","#5f78a3","#6f6590","#8f6578"])})},dracula:{light:P1({drawDefaults:{drawStroke:"#282a36",markerStroke:"#ffb86c",quillStroke:"#6272a4",canvas:"#f8f8fb",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#f1f1f7",stroke:"#d7d7e2",textColor:"#282a36",lineStroke:"#282a36"},strokeColors:N1(["#282a36","#ff5555","#ffb86c","#f1fa8c","#50fa7b","#8be9fd","#6272a4"]),shapeColors:F1(["#282a36","#44475a","#ff5555","#ffb86c","#f1fa8c","#50fa7b","#8be9fd","#6272a4","#bd93f9","#ff79c6","#ffffff"],["#a7a9b8","#d7d7e2","#f2b2b2","#f2d0b0","#e8eeb8","#bfecc9","#c5ebf2","#c3cae8","#d8c8f2","#e8c6df"])}),dark:P1({drawDefaults:{drawStroke:"#f8f8f2",markerStroke:"#ffb86c",quillStroke:"#8be9fd",canvas:"#171519",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#303341",stroke:"#44475a",textColor:"#f8f8f2",lineStroke:"#f8f8f2"},strokeColors:N1(["#f8f8f2","#ff5555","#ffb86c","#f1fa8c","#50fa7b","#8be9fd","#bd93f9"]),shapeColors:F1(["#f8f8f2","#bfbfbf","#ff5555","#ffb86c","#f1fa8c","#50fa7b","#8be9fd","#6272a4","#bd93f9","#ff79c6","#21222c"],["#6272a4","#44475a","#8f4a5f","#8f6b58","#8f8f5e","#5f8f6c","#5f8f9a","#5f6f8f","#7f6f9a","#8f6f8a"])})},one:{light:P1({drawDefaults:{drawStroke:"#383a42",markerStroke:"#d19a66",quillStroke:"#4078f2",canvas:"#fafafa",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#f0f0f0",stroke:"#d0d0d0",textColor:"#383a42",lineStroke:"#383a42"},strokeColors:N1(["#383a42","#e45649","#d19a66","#c18401","#50a14f","#0184bc","#4078f2"]),shapeColors:F1(["#383a42","#696c77","#e45649","#d19a66","#c18401","#50a14f","#0184bc","#4078f2","#a626a4","#ca1243","#ffffff"],["#a0a1a7","#d0d0d0","#efb5b1","#e7c9b0","#dfceac","#bfddbd","#b8dce8","#bdceef","#d9c2e8","#e8bed0"])}),dark:P1({drawDefaults:{drawStroke:"#abb2bf",markerStroke:"#e5c07b",quillStroke:"#61afef",canvas:"#282c34",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#313640",stroke:"#3e4451",textColor:"#abb2bf",lineStroke:"#abb2bf"},strokeColors:N1(["#abb2bf","#e06c75","#d19a66","#e5c07b","#98c379","#56b6c2","#61afef"]),shapeColors:F1(["#abb2bf","#828997","#e06c75","#d19a66","#e5c07b","#98c379","#56b6c2","#61afef","#c678dd","#be5046","#21252b"],["#5c6370","#3e4451","#8f5763","#8f6a55","#8f7f5f","#6f8a63","#4f7f86","#5279a0","#7f6790","#8f5f57"])})},ayu:{light:P1({drawDefaults:{drawStroke:"#5c6773",markerStroke:"#f2ae49",quillStroke:"#399ee6",canvas:"#fffbea",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#fcf4dd",stroke:"#d9d8c7",textColor:"#5c6773",lineStroke:"#5c6773"},strokeColors:N1(["#5c6773","#f07171","#fa8d3e","#f2ae49","#86b300","#4cbf99","#399ee6"]),shapeColors:F1(["#5c6773","#7e8a97","#f07171","#fa8d3e","#f2ae49","#86b300","#4cbf99","#399ee6","#a37acc","#d95757","#ffffff"],["#a0a8b0","#d9d8c7","#f2c1c1","#f2d0ba","#f2dfb5","#d2e2b5","#bde2d7","#bdd8eb","#d7c8e8","#e8c4c4"])}),dark:P1({drawDefaults:{drawStroke:"#bfbdb6",markerStroke:"#ffb454",quillStroke:"#39bae6",canvas:"#0B0E14",drawStrokeWidth:2,markerStrokeWidth:18,quillStrokeWidth:2},shapeDefaults:{fill:"#11151c",stroke:"#253340",textColor:"#bfbdb6",lineStroke:"#bfbdb6"},strokeColors:N1(["#bfbdb6","#f07178","#ff8f40","#ffb454","#aad94c","#95e6cb","#39bae6"]),shapeColors:F1(["#bfbdb6","#6c7986","#f07178","#ff8f40","#ffb454","#aad94c","#95e6cb","#39bae6","#d2a6ff","#f29668","#02060d"],["#4f5b66","#253340","#8f4f5f","#8f5f44","#8f7348","#6f8a4f","#5f8f7f","#3f7f95","#7f679a","#8f6f58"])})}},dF=(e,t)=>e==="dark"||e==="system"&&t?"dark":"light",cC=(e,t)=>{const n=dF(e.theme,t),r=o6[e.colorScheme][n],o=`${e.colorScheme}-${n}`;return{variant:o,preset:r,isDark:n==="dark",dataTheme:o}},Ti=e=>{const t=new Set,n=[];for(const r of e){const o=r.toLowerCase();t.has(o)||(t.add(o),n.push(o))}return n},Ni=Object.values(o6).flatMap(e=>[e.light,e.dark]),qo={drawStroke:Ti(Ni.map(e=>e.drawDefaults.drawStroke)),markerStroke:Ti(Ni.map(e=>e.drawDefaults.markerStroke)),quillStroke:Ti(Ni.map(e=>e.drawDefaults.quillStroke)),shapeFill:Ti(Ni.map(e=>e.shapeDefaults.fill)),shapeStroke:Ti(Ni.map(e=>e.shapeDefaults.stroke)),textColor:Ti(Ni.map(e=>e.shapeDefaults.textColor)),lineStroke:Ti(Ni.map(e=>e.shapeDefaults.lineStroke))},Yo=(e,t)=>t.includes(e.toLowerCase()),hF=(e,t)=>{let n=!1;const r=e.elements.map(c=>{if(c.type==="draw"){const d=c.stroke?.toLowerCase()??"";return c.drawMode==="marker"?Yo(d,qo.markerStroke)?(n=!0,{...c,stroke:t.drawDefaults.markerStroke}):c:c.drawMode==="quill"?Yo(d,qo.quillStroke)?(n=!0,{...c,stroke:t.drawDefaults.quillStroke}):c:Yo(d,qo.drawStroke)?(n=!0,{...c,stroke:t.drawDefaults.drawStroke}):c}if(c.type==="line")return Yo(c.stroke?.toLowerCase()??"",qo.lineStroke)?(n=!0,{...c,stroke:t.shapeDefaults.lineStroke}):c;if(c.type==="text")return Yo(c.color?.toLowerCase()??"",qo.textColor)?(n=!0,{...c,color:t.shapeDefaults.textColor}):c;if(c.type==="rectangle"||c.type==="circle"){let d=c,h=!1;return Yo(c.fill?.toLowerCase()??"",qo.shapeFill)&&(d={...d,fill:t.shapeDefaults.fill},h=!0),Yo(c.stroke?.toLowerCase()??"",qo.shapeStroke)&&(d={...d,stroke:t.shapeDefaults.stroke},h=!0),Yo(c.color?.toLowerCase()??"",qo.textColor)&&(d={...d,color:t.shapeDefaults.textColor},h=!0),h&&(n=!0),d}return c}),o=e.settings.drawDefaults.canvas!==t.drawDefaults.canvas||e.settings.drawDefaults.drawStroke!==t.drawDefaults.drawStroke||e.settings.drawDefaults.markerStroke!==t.drawDefaults.markerStroke||e.settings.drawDefaults.quillStroke!==t.drawDefaults.quillStroke||e.settings.drawDefaults.drawStrokeWidth!==t.drawDefaults.drawStrokeWidth||e.settings.drawDefaults.markerStrokeWidth!==t.drawDefaults.markerStrokeWidth||e.settings.drawDefaults.quillStrokeWidth!==t.drawDefaults.quillStrokeWidth,s=e.settings.shapeDefaults.fill!==t.shapeDefaults.fill||e.settings.shapeDefaults.stroke!==t.shapeDefaults.stroke||e.settings.shapeDefaults.textColor!==t.shapeDefaults.textColor||e.settings.shapeDefaults.lineStroke!==t.shapeDefaults.lineStroke;return!n&&!o&&!s?e:{...e,elements:n?r:e.elements,settings:{...e.settings,drawDefaults:o?{...t.drawDefaults}:e.settings.drawDefaults,shapeDefaults:s?{...t.shapeDefaults}:e.settings.shapeDefaults}}},pF={drawo:"Drawo",catppuccin:"Catppuccin",nord:"Nord",solarized:"Solarized",gruvbox:"Gruvbox",tokyonight:"Tokyo Night",rosepine:"Rose Pine",everforest:"Everforest",kanagawa:"Kanagawa",dracula:"Dracula",one:"One",ayu:"Ayu"},Ib=g.createContext(null);function is(){const e=g.useContext(Ib);if(!e)throw new Error("useDrawo must be used within a <Drawo /> component");return e}function CF(){return Bw()}const zb="drawo-project",gF=1,Hb=2,Zb="yaml-v2",mF='# ai_prompt: "You are reading a Drawo project file. Parse the full document as structured data and do not truncate content. The data starts after YAML comments and optional document marker lines."',vF="# drawo_format: yaml-v2",Vb=e=>{if(!e||typeof e!="object")return!1;const t=e;return t.format===zb&&typeof t.exportedAt=="string"&&!!t.safeScene&&(t.locale==="es_ES"||t.locale==="en_US")&&(t.openTopbarPanel==="music"||t.openTopbarPanel==="timer"||t.openTopbarPanel==="sidebar"||t.openTopbarPanel===null)&&(typeof t.timerState=="string"||t.timerState===null)&&(typeof t.musicBarState>"u"||typeof t.musicBarState=="string"||t.musicBarState===null)},fC=e=>Vb(e)?e.version===gF:!1,dC=e=>{if(!Vb(e))return!1;const t=e;return t.version===Hb&&t.serialization===Zb},yF=e=>{try{const t=eF(e);if(dC(t))return{project:t};if(fC(t))return{project:t}}catch{}try{const t=JSON.parse(e);if(dC(t))return{project:t};if(fC(t))return{project:t}}catch{}throw new Error("invalid-project-file")},xF=async e=>(await Promise.allSettled(e.filter(n=>n.type.startsWith("image/")).map(n=>GR(n)))).flatMap(n=>n.status!=="fulfilled"||n.value.naturalWidth<=0||n.value.naturalHeight<=0?[]:[n.value]),hC=e=>({...e,elements:e.elements.map(t=>t.type!=="image"||!t.assetId?t:{...t,src:""})}),wF=async e=>{const t=await Promise.all(e.elements.map(async n=>{if(n.type!=="image"||n.src&&n.src.length>0||!n.assetId)return n;const r=await Uw(n.assetId);if(!r)return n;const o=await C2(r);return{...n,src:o}}));return{...e,elements:t}};function bF({children:e,theme:t,colorScheme:n,locale:r,initialScene:o,onSceneChange:s,initialOpenTopbarPanel:c,disablePersistence:d,disableKeyboardShortcuts:h,emptyState:p,onExportProject:m,onExportImage:v,onOpenProject:y,onUndo:b,onRedo:D,onZoomIn:S,onZoomOut:L,onZoomReset:M,onInteractionModeChange:w,onDrawingToolChange:E,onLocaleChange:O,onThemeChange:B}){const[T,P]=g.useState(()=>{if(c!==void 0)return c;try{const Le=localStorage.getItem(Bl);return Le==="music"||Le==="timer"||Le==="sidebar"?Le:null}catch{return null}}),[_,Z]=g.useState("select"),[K,W]=g.useState(null),[z,q]=g.useState(()=>{if(r)return r;try{const Le=localStorage.getItem(O4);return Zw(Le)?Le:"es_ES"}catch{return"es_ES"}}),[te,X]=g.useReducer(fF,void 0,cF),[H,Q]=g.useState(()=>typeof window>"u"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches),oe=te.present,U=AR[z],ie=oe&&oe.settings?oe:CF(),N=te.past.length>0,$=te.future.length>0,V=cC(ie.settings,H),se=V.isDark,ke=ie.settings.presentationMode,We=ie.settings.zenMode,Ae=ke?"pan":_,Qe=ke?null:K,I=g.useRef(null),fe=g.useRef(null),me=g.useRef(!1),Se=g.useRef(new Set),Xe=g.useRef(new Set),He=g.useRef(new Set),Ct=g.useRef(null),mt=g.useCallback(Le=>{Z(qe=>{const Ke=typeof Le=="function"?Le(qe):Le;return ke&&Ke!=="pan"?"pan":Ke})},[ke]),dt=g.useCallback(Le=>{W(qe=>ke?null:typeof Le=="function"?Le(qe):Le)},[ke]),xe=g.useCallback(Le=>{X({type:"setScene",updater:Le})},[]),Ue=g.useCallback(Le=>{X({type:"setScene",updater:Le,trackHistory:!1})},[]),ht=g.useCallback(Le=>{X({type:"commitInteraction",before:Le})},[]);g.useEffect(()=>{const Le=ie.elements.filter(Ke=>Ke.type==="image"&&!!Ke.assetId&&!Ke.src&&!Se.current.has(Ke.assetId??"")&&!Xe.current.has(Ke.assetId??""));if(Le.length===0)return;let qe=!1;return(async()=>{const Ke=await Promise.all(Le.map(async lt=>{const ct=lt.assetId;if(!ct)return null;Se.current.add(ct);try{const i1=await Uw(ct);if(!i1)return Xe.current.add(ct),null;const r1=await C2(i1);return{id:lt.id,src:r1}}catch{return Xe.current.add(ct),null}finally{Se.current.delete(ct)}}));if(qe)return;const Et=Ke.filter(lt=>lt!==null);if(Et.length===0)return;const vt=new Map(Et.map(lt=>[lt.id,lt.src]));Ue(lt=>({...lt,elements:lt.elements.map(ct=>{if(ct.type!=="image")return ct;const i1=vt.get(ct.id);return i1?{...ct,src:i1}:ct})}))})(),()=>{qe=!0}},[ie.elements,Ue]),g.useEffect(()=>{const Le=ie.elements.filter(Ke=>Ke.type==="image"&&!Ke.assetId&&!!Ke.src&&!He.current.has(Ke.id));if(Le.length===0)return;let qe=!1;return(async()=>{const Ke=[];for(const vt of Le){He.current.add(vt.id);try{const lt=await Bp(vt.src),ct=await oc(lt),i1=await ic(ct.blob),r1=await C2(ct.blob);Ke.push({id:vt.id,assetId:i1,src:r1,naturalWidth:ct.naturalWidth,naturalHeight:ct.naturalHeight})}finally{He.current.delete(vt.id)}}if(qe||Ke.length===0)return;const Et=new Map(Ke.map(vt=>[vt.id,vt]));Ue(vt=>({...vt,elements:vt.elements.map(lt=>{if(lt.type!=="image")return lt;const ct=Et.get(lt.id);return ct?{...lt,assetId:ct.assetId,src:ct.src,naturalWidth:ct.naturalWidth,naturalHeight:ct.naturalHeight}:lt})}))})(),()=>{qe=!0}},[ie.elements,Ue]),g.useEffect(()=>{if(d)return;const Le=hC(ie);try{localStorage.setItem(F8,JSON.stringify(ie.settings))}catch{return}try{localStorage.setItem(P8,JSON.stringify(Le)),me.current=!1}catch(qe){me.current||(console.warn("Scene autosave disabled because browser storage quota was exceeded.",qe),me.current=!0)}},[ie,d]),g.useEffect(()=>{if(!d)try{localStorage.setItem(O4,z)}catch{return}},[z,d]),g.useEffect(()=>{if(!d)try{if(T){localStorage.setItem(Bl,T);return}localStorage.removeItem(Bl)}catch{return}},[T,d]),g.useEffect(()=>{const Le=Ke=>{if(!(Ke.ctrlKey||Ke.metaKey)||Ke.altKey)return;const Et=Ke.key,vt=Ke.code;(Et==="+"||Et==="-"||Et==="="||Et==="_"||Et==="0"||vt==="Equal"||vt==="Minus"||vt==="NumpadAdd"||vt==="NumpadSubtract"||vt==="Digit0"||vt==="Numpad0")&&(Ke.preventDefault(),Ke.stopPropagation())},qe=Ke=>{(Ke.ctrlKey||Ke.metaKey)&&(Ke.target instanceof HTMLCanvasElement||(Ke.preventDefault(),Ke.stopPropagation()))};return window.addEventListener("keydown",Le,{capture:!0}),window.addEventListener("wheel",qe,{capture:!0,passive:!1}),()=>{window.removeEventListener("keydown",Le,{capture:!0}),window.removeEventListener("wheel",qe,{capture:!0})}},[]),h||aT({scene:ie,dispatch:X,clipboardRef:I,cursorPositionRef:fe,setInteractionMode:mt,setDrawingTool:dt,setOpenTopbarPanel:P}),g.useEffect(()=>{const Le=qe=>{fe.current={x:qe.clientX,y:qe.clientY}};return window.addEventListener("mousemove",Le),()=>{window.removeEventListener("mousemove",Le)}},[fe]);const{handlePointerDown:Ie,handlePointerMove:Lt,handlePointerUp:n1,handleResizeStart:Me,handleGroupResizeStart:tt,handleRotateStart:Y,handleGroupRotateStart:he,handleTextCommit:ve,handleWheelPan:Be,handleWheelZoom:Ze,handleCreateElement:Ee,handleCreateDrawElement:_e,handleCreateLinePathElement:ue,handleSelectElements:at,handleTextFontFamilyChange:rt,handleTextFontSizeChange:Tt,handleTextFontWeightChange:p1,handleTextFontStyleChange:v1,handleTextAlignChange:kt,handleTextColorChange:Qt,handleDrawStrokeWidthChange:ft,handleDrawStrokeColorChange:zt,handleShapeFillColorChange:ut,handleShapeFillStyleChange:c1,handleElementsOpacityChange:f1,handleShapeStrokeColorChange:Zn,handleShapeStrokeWidthChange:Ht,handleShapeStrokeStyleChange:s1,handleDrawDefaultStrokeColorChange:Nt,handleDrawDefaultStrokeWidthChange:nt,handleLineStartCapChange:fn,handleLineEndCapChange:Y1,handleLineEditStart:G1,handleLineGeometryChange:_t}=HR({scene:ie,setScene:xe,setSceneWithoutHistory:Ue,commitInteractionHistory:ht}),d1=g.useCallback((Le,qe)=>{xe(Ke=>PB(Ke,Le,qe))},[xe]),Vt=g.useCallback(()=>{const Le=ie.selectedIds.length>0?ie.selectedIds:ie.selectedId?[ie.selectedId]:[];Le.length!==0&&(I.current=ie.elements.filter(qe=>Le.includes(qe.id)).map(qe=>({...qe})))},[ie]),dn=g.useCallback(()=>{Vt(),xe(Le=>nc(Le))},[Vt,xe]),xt=g.useCallback(Le=>{xe(qe=>JB(qe,Le))},[xe]),Dt=g.useCallback(async()=>{if(m){m();return}const Le=await wF(ie),qe={format:zb,version:Hb,serialization:Zb,exportedAt:new Date().toISOString(),safeScene:Le,locale:z,openTopbarPanel:T,timerState:localStorage.getItem(Ql)},Ke=[mF,vF,"---",tF(qe,{lineWidth:0})].join(`
210
+ `),Et=new Blob([Ke],{type:"text/yaml;charset=utf-8"}),vt=URL.createObjectURL(Et),lt=new Date,ct=rn=>String(rn).padStart(2,"0"),i1=`project-${lt.getFullYear()}${ct(lt.getMonth()+1)}${ct(lt.getDate())}-${ct(lt.getHours())}${ct(lt.getMinutes())}.drawo`,r1=document.createElement("a");r1.href=vt,r1.download=i1,document.body.appendChild(r1),r1.click(),r1.remove(),URL.revokeObjectURL(vt)},[z,T,ie,m]),o1=g.useCallback(async Le=>{if(v){await v(Le);return}await WT({scene:ie,format:Le.format,qualityScale:Le.qualityScale,transparentBackground:Le.transparentBackground,padding:Le.padding,systemPrefersDark:H})},[ie,H,v]),S1=g.useCallback(async Le=>{if(y){await y(Le);return}const qe=await Le.text(),{project:Ke}=yF(qe),Et=await Promise.all(Ke.safeScene.elements.map(async ct=>{if(ct.type!=="image"||!ct.src||ct.src.length===0)return ct;try{const i1=await Bp(ct.src),r1=await oc(i1),rn=await ic(r1.blob,ct.assetId??void 0),an=await C2(r1.blob);return{...ct,assetId:rn,src:an,naturalWidth:r1.naturalWidth,naturalHeight:r1.naturalHeight}}catch{return ct}})),vt={...Ke.safeScene,elements:Et},lt=hC(vt);try{localStorage.setItem(P8,JSON.stringify(lt)),localStorage.setItem(F8,JSON.stringify(vt.settings)),localStorage.setItem(O4,Ke.locale),Ke.openTopbarPanel?localStorage.setItem(Bl,Ke.openTopbarPanel):localStorage.removeItem(Bl),Ke.timerState?localStorage.setItem(Ql,Ke.timerState):localStorage.removeItem(Ql)}catch{throw new Error("storage-quota-exceeded")}window.location.reload()},[y]),mn=g.useCallback((Le,qe)=>{const Ke=I.current;!Ke||Ke.length===0||xe(Et=>EB(Et,Ke,{anchorX:Le,anchorY:qe}))},[xe]),Mr=g.useCallback(()=>{xe(Le=>_w(Le))},[xe]),Er=g.useCallback(()=>{xe(Le=>nc(Le))},[xe]),hr=g.useCallback(Le=>{xe(qe=>kB(qe,Le))},[xe]),Bn=g.useCallback(()=>{xe(Le=>Iw(Le))},[xe]),Qn=g.useCallback(()=>{xe(Le=>zw(Le))},[xe]),hn=g.useCallback(Le=>{X({type:"setScene",trackHistory:!1,updater:qe=>{const Ke=qe.camera.zoom,Et=Le(Ke),vt=Math.min(Gc,Math.max(Yc,Et));if(vt===Ke)return qe;const lt=window.innerWidth/2,ct=window.innerHeight/2,i1=lt/Ke+qe.camera.x,r1=ct/Ke+qe.camera.y;return{...qe,camera:{x:i1-lt/vt,y:r1-ct/vt,zoom:vt}}}})},[X]),pr=g.useCallback(()=>{if(S){S();return}hn(Le=>Le*Math.exp(100*h5))},[hn,S]),kr=g.useCallback(()=>{if(L){L();return}hn(Le=>Le*Math.exp(-100*h5))},[hn,L]),bn=g.useCallback(()=>{if(M){M();return}hn(()=>1)},[hn,M]),D1=g.useCallback(Le=>{xe(qe=>n2(qe,k8(qe,Le)))},[xe]),va=g.useCallback(Le=>{if(Le.type==="rectangle"||Le.type==="circle"||Le.type==="image"||Le.type==="draw"||Le.type==="svg")return{x:Le.x,y:Le.y,width:Math.max(1,Le.width),height:Math.max(1,Le.height)};if(Le.type==="line"){const qe=[{x:Le.x,y:Le.y},{x:Le.x+Le.width,y:Le.y+Le.height},...Le.controlPoint?[Le.controlPoint]:[]],Ke=Math.min(...qe.map(ct=>ct.x)),Et=Math.min(...qe.map(ct=>ct.y)),vt=Math.max(...qe.map(ct=>ct.x)),lt=Math.max(...qe.map(ct=>ct.y));return{x:Ke,y:Et,width:Math.max(1,vt-Ke),height:Math.max(1,lt-Et)}}return{x:T2(Le),y:Le.y-Le.fontSize,width:Math.max(16,di(Le)),height:Math.max(Le.fontSize,rs(Le))}},[]),Jn=g.useCallback(Le=>{mt("select"),dt(null),Ct.current!==null&&(cancelAnimationFrame(Ct.current),Ct.current=null);const qe={x:ie.camera.x,y:ie.camera.y};Ue(Ke=>{const Et=Ke.elements.find(Mt=>Mt.id===Le);if(!Et)return Ke;const vt=va(Et),lt=vt.x+vt.width/2,ct=vt.y+vt.height/2,i1=Ke.camera.zoom,r1=window.innerWidth,rn=window.innerHeight,an=lt-r1/(2*i1),us=ct-rn/(2*i1),y1=an-qe.x,jr=us-qe.y,za=420,Yr=performance.now(),Rn=Mt=>{const Gr=Math.min(1,(Mt-Yr)/za),Tn=Gr<.5?2*Gr*Gr:1-Math.pow(-2*Gr+2,2)/2;Ue(K1=>({...K1,camera:{...K1.camera,x:qe.x+y1*Tn,y:qe.y+jr*Tn}})),Gr<1?Ct.current=requestAnimationFrame(Rn):Ct.current=null};return Ct.current=requestAnimationFrame(Rn),{...Ke,selectedId:Le,selectedIds:[Le]}})},[va,ie.camera.x,ie.camera.y,dt,mt,Ue]);g.useEffect(()=>()=>{Ct.current!==null&&cancelAnimationFrame(Ct.current)},[]);const Vn=g.useCallback(async(Le,qe)=>{const Ke=await xF(Le);Ke.length!==0&&xe(Et=>{const vt=qe?.x??Et.camera.x+window.innerWidth/(2*Et.camera.zoom),lt=qe?.y??Et.camera.y+window.innerHeight/(2*Et.camera.zoom);return Ke.reduce((ct,i1,r1)=>oR(ct,i1,vt+r1*28,lt+r1*28),Et)})},[xe]),vn=g.useCallback(Le=>{mt("select"),dt(null),xe(qe=>{const Ke=qe.camera.x+window.innerWidth/(2*qe.camera.zoom),Et=qe.camera.y+window.innerHeight/(2*qe.camera.zoom);return iR(qe,Le,Ke-Le.defaultWidth/2,Et-Le.defaultHeight/2)})},[dt,mt,xe]);g.useEffect(()=>{const Le=window.matchMedia("(prefers-color-scheme: dark)"),qe=Ke=>{Q(Ke.matches)};return typeof Le.addEventListener=="function"?(Le.addEventListener("change",qe),()=>{Le.removeEventListener("change",qe)}):(Le.addListener(qe),()=>{Le.removeListener(qe)})},[]),g.useEffect(()=>{Ue(Le=>{const qe=cC(Le.settings,H);return hF(Le,qe.preset)})},[ie.settings.colorScheme,ie.settings.theme,Ue,H]),g.useEffect(()=>{const Le=document.documentElement;Le.setAttribute("data-theme",V.dataTheme),se?Le.classList.add("dark"):Le.classList.remove("dark"),ie.settings.zenMode?Le.classList.add("drawo-zen-mode"):Le.classList.remove("drawo-zen-mode"),ie.settings.presentationMode?Le.classList.add("drawo-presentation-mode"):Le.classList.remove("drawo-presentation-mode")},[se,V.dataTheme,ie.settings.presentationMode,ie.settings.zenMode]),g.useEffect(()=>{s&&s(ie)},[ie,s]),g.useEffect(()=>{w&&w(Ae)},[Ae,w]),g.useEffect(()=>{E&&E(Qe)},[Qe,E]),g.useEffect(()=>{O&&O(z)},[z,O]);const ls=g.useMemo(()=>({handlePointerDown:Ie,handlePointerMove:Lt,handlePointerUp:n1,handleResizeStart:Me,handleGroupResizeStart:tt,handleRotateStart:Y,handleGroupRotateStart:he,handleTextCommit:ve,handleWheelPan:Be,handleWheelZoom:Ze,handleCreateElement:Ee,handleCreateDrawElement:_e,handleCreateLinePathElement:ue,handleSelectElements:at,handleTextFontFamilyChange:rt,handleTextFontSizeChange:Tt,handleTextFontWeightChange:p1,handleTextFontStyleChange:v1,handleTextAlignChange:kt,handleTextColorChange:Qt,handleDrawStrokeWidthChange:ft,handleDrawStrokeColorChange:zt,handleShapeFillColorChange:ut,handleShapeFillStyleChange:c1,handleElementsOpacityChange:f1,handleShapeStrokeColorChange:Zn,handleShapeStrokeWidthChange:Ht,handleShapeStrokeStyleChange:s1,handleDrawDefaultStrokeColorChange:Nt,handleDrawDefaultStrokeWidthChange:nt,handleLineStartCapChange:fn,handleLineEndCapChange:Y1,handleLineEditStart:G1,handleLineGeometryChange:_t,handleRectangleBorderRadiusChange:d1,handleCopySelection:Vt,handleCutSelection:dn,handlePasteAt:mn,handleDuplicateSelection:Mr,handleDeleteSelection:Er,handleReorderSelection:hr,handleGroupSelection:Bn,handleUngroupSelection:Qn,handleSelectGroupForElement:D1,handleFlipSelection:xt,handleFocusElement:Jn,handleInsertImageFiles:Vn,handleInsertLibrarySvg:vn,handleExportProject:Dt,handleExportImage:o1,handleOpenProject:S1,handleZoomIn:pr,handleZoomOut:kr,handleZoomReset:bn}),[Ie,Lt,n1,Me,tt,Y,he,ve,Be,Ze,Ee,_e,ue,at,rt,Tt,p1,v1,kt,Qt,ft,zt,ut,c1,f1,Zn,Ht,s1,Nt,nt,fn,Y1,G1,_t,d1,Vt,dn,mn,Mr,Er,hr,Bn,Qn,D1,xt,Jn,Vn,vn,Dt,o1,S1,pr,kr,bn]),er=g.useMemo(()=>({scene:ie,resolvedTheme:V,isDarkMode:se,isPresentationMode:ke,isZenMode:We,locale:z,messages:U,interactionMode:Ae,drawingTool:Qe,openTopbarPanel:T,canUndo:N,canRedo:$,emptyStateConfig:p??{},props:{theme:t,colorScheme:n,locale:r,initialScene:o,onSceneChange:s,initialOpenTopbarPanel:c,disablePersistence:d,disableKeyboardShortcuts:h,emptyState:p},setScene:xe,setSceneWithoutHistory:Ue,commitInteractionHistory:ht,dispatch:X,setInteractionMode:mt,setDrawingTool:dt,setOpenTopbarPanel:P,setLocale:q,undo:()=>X({type:"undo"}),redo:()=>X({type:"redo"}),handlers:ls}),[ie,V,se,ke,We,z,U,Ae,Qe,T,N,$,t,n,r,o,s,c,d,h,xe,Ue,ht,X,mt,dt,P,q,ls]);return l.jsx(Ib.Provider,{value:er,children:e})}const Wb=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const SF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const DF=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const pC=e=>{const t=DF(e);return t.charAt(0).toUpperCase()+t.slice(1)};var LF={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"};const MF=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const EF=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:c,...d},h)=>g.createElement("svg",{ref:h,...LF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Wb("lucide",o),...!s&&!MF(d)&&{"aria-hidden":"true"},...d},[...c.map(([p,m])=>g.createElement(p,m)),...Array.isArray(s)?s:[s]]));const ss=(e,t)=>{const n=g.forwardRef(({className:r,...o},s)=>g.createElement(EF,{ref:s,iconNode:t,className:Wb(`lucide-${SF(pC(e))}`,`lucide-${e}`,r),...o}));return n.displayName=pC(e),n};const kF=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$b=ss("check",kF);const jF=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],AF=ss("chevron-right",jF);const OF=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],BF=ss("circle",OF);const RF=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],TF=ss("menu",RF);const NF=[["path",{d:"M5 12h14",key:"1ays0h"}]],Ub=ss("minus",NF);const FF=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qb=ss("plus",FF);const PF=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_F=ss("x",PF),IF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.53 11.78a.75.75 0 0 1-1.06 0l-2.5-2.5a.75.75 0 0 1 1.06-1.06l1.22 1.22V1.75a.75.75 0 0 1 1.5 0v7.69l1.22-1.22a.75.75 0 1 1 1.06 1.06zM4.25 4a.75.75 0 1 1 0 1.5H4A1.5 1.5 0 0 0 2.5 7v5A1.5 1.5 0 0 0 4 13.5h8a1.5 1.5 0 0 0 1.5-1.5V7A1.5 1.5 0 0 0 12 5.5h-.25a.75.75 0 0 1 0-1.5H12a3 3 0 0 1 3 3v5a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3z",clipRule:"evenodd"})),zF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.47 4.72a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06L4.81 6H9a3.25 3.25 0 0 1 0 6.5H8A.75.75 0 0 0 8 14h1a4.75 4.75 0 1 0 0-9.5H4.81l1.72-1.72a.75.75 0 0 0-1.06-1.06z",clipRule:"evenodd"})),HF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.53 4.72a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L11.19 6H7a3.25 3.25 0 0 0 0 6.5h1A.75.75 0 0 1 8 14H7a4.75 4.75 0 1 1 0-9.5h4.19L9.47 2.78a.75.75 0 0 1 1.06-1.06z",clipRule:"evenodd"})),ZF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.25 2.25A.75.75 0 0 0 3.5 3v10c0 .414.336.75.75.75H9.5a3.25 3.25 0 0 0 1.477-6.146A3.25 3.25 0 0 0 8.5 2.25zm3.5 5a1.75 1.75 0 1 0 0-3.5h-2v3.5zm-2 1.5v3.5h3a1.75 1.75 0 1 0 0-3.5z",clipRule:"evenodd"})),VF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("g",{fill:"currentColor"},g.createElement("path",{d:"M10.037 1.026a.75.75 0 0 1 .921.527l1.303 4.766c1.425.5 2.443 1.896 2.215 3.51-.238 1.675-.608 2.956-.922 3.826-.157.435-.3.767-.408.994a7 7 0 0 1-.128.264l-.04.072-.011.022-.004.007-.002.003-.001.002a.75.75 0 0 1-.764.368L3.49 14.053c-.866-.133-1.088-1.236-.43-1.73l.31-.24c.794-.643 2.066-1.844 2.911-3.49.774-1.506 2.406-2.872 4.34-2.585l-1.11-4.06a.75.75 0 0 1 .527-.922m.372 6.468c-1.06-.162-2.183.594-2.795 1.785-.782 1.523-1.867 2.695-2.724 3.471l4.152.636 1.312-1.61a.434.434 0 0 1 .766.34l-.238 1.551.991.152c.077-.175.171-.399.27-.674.283-.78.625-1.96.847-3.526.132-.929-.553-1.815-1.58-1.973zm-7.534.787a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-1.125-3a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.64-2a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5"}),g.createElement("path",{fillRule:"evenodd",d:"M10.037 1.027a.75.75 0 0 1 .921.526l1.303 4.767c1.425.499 2.444 1.895 2.215 3.51-.238 1.674-.608 2.954-.922 3.825-.158.434-.3.767-.408.995a7 7 0 0 1-.128.263l-.04.072-.011.021-.004.008-.002.003h-.001a.75.75 0 0 1-.764.369L3.49 14.053c-.866-.133-1.088-1.236-.43-1.73l.31-.24c.794-.642 2.066-1.844 2.911-3.49.774-1.506 2.406-2.872 4.34-2.585l-1.11-4.06a.75.75 0 0 1 .527-.921m.372 6.466c-1.06-.162-2.183.596-2.795 1.786-.782 1.523-1.867 2.695-2.724 3.471l4.152.636 1.312-1.61a.434.434 0 0 1 .766.34l-.238 1.551.991.152c.077-.174.171-.399.27-.673.283-.78.625-1.962.847-3.528.132-.929-.553-1.814-1.58-1.971z",clipRule:"evenodd"}),g.createElement("path",{d:"M2.875 8.281a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-1.125-3a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m3.64-2a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5"}))),Yb=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.488 3.43a.75.75 0 0 1 .081 1.058l-6 7a.75.75 0 0 1-1.1.042l-3.5-3.5A.75.75 0 0 1 4.03 6.97l2.928 2.927 5.473-6.385a.75.75 0 0 1 1.057-.081",clipRule:"evenodd"})),Gb=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.867 6.097a.75.75 0 0 1 1.036-.23L8 9.111l5.097-3.244a.75.75 0 0 1 .806 1.266l-5.5 3.5a.75.75 0 0 1-.806 0l-5.5-3.5a.75.75 0 0 1-.23-1.036",clipRule:"evenodd"})),WF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})),$F=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.867 9.903a.75.75 0 0 0 1.036.23L8 6.889l5.097 3.244a.75.75 0 0 0 .806-1.266l-5.5-3.5a.75.75 0 0 0-.806 0l-5.5 3.5a.75.75 0 0 0-.23 1.036",clipRule:"evenodd"})),UF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.754 2.004a.75.75 0 0 0 0 1.5h4.75v4.742a.75.75 0 0 0 1.5 0V2.754a.75.75 0 0 0-.75-.75zm.492 11.992a.75.75 0 0 0 0-1.5h-4.75V7.754a.75.75 0 0 0-1.5 0v5.492a.75.75 0 0 0 .75.75z",clipRule:"evenodd"})),qF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.069 5.55A2.497 2.497 0 0 0 5 3.5a2.5 2.5 0 1 0-3.931 2.05M2.5 4.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2m11 1.5A2.497 2.497 0 0 1 11 3.5 2.5 2.5 0 1 1 13.5 6m1-2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M6.069 8.55A2.497 2.497 0 0 0 10 6.5a2.5 2.5 0 1 0-3.931 2.05M7.5 7.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2M12 14a2.497 2.497 0 0 1-2.5-2.5A2.5 2.5 0 1 1 12 14m1-2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0M4.5 16A2.497 2.497 0 0 1 2 13.5 2.5 2.5 0 1 1 4.5 16m1-2.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"})),YF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5",clipRule:"evenodd"})),GF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM8 6.5H4A1.5 1.5 0 0 0 2.5 8v4A1.5 1.5 0 0 0 4 13.5h4A1.5 1.5 0 0 0 9.5 12V8A1.5 1.5 0 0 0 8 6.5M6 7.75a.75.75 0 0 1 .75.75v.75h.75a.75.75 0 0 1 0 1.5h-.75v.75a.75.75 0 0 1-1.5 0v-.75H4.5a.75.75 0 0 1 0-1.5h.75V8.5A.75.75 0 0 1 6 7.75",clipRule:"evenodd"})),KF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"},g.createElement("path",{d:"m8.427 11.073 1.205-1.205a.4.4 0 0 0 .118-.285.8.8 0 0 0-.236-.569L8.427 7.927a.603.603 0 0 0-.854 0L6.486 9.014a.8.8 0 0 0-.236.57c0 .106.042.208.118.284l1.205 1.205a.604.604 0 0 0 .854 0"}),g.createElement("path",{d:"M16 5.796v-.028a1.768 1.768 0 0 0-3.018-1.25l-.76.76-.024.024-.374.374-.415.415a.335.335 0 0 1-.561-.149l-.155-.566-.139-.51-.009-.033-.65-2.386a1.964 1.964 0 0 0-3.79 0l-.65 2.386-.01.032-.139.511-.154.566a.335.335 0 0 1-.56.15l-.416-.416-.374-.374-.024-.024-.76-.76A1.768 1.768 0 0 0 0 5.768v.028q0 .203.046.403l1.3 5.631a1.4 1.4 0 0 0 .778.958 14.02 14.02 0 0 0 11.752 0c.394-.182.681-.535.779-.958l1.299-5.63q.045-.2.046-.404M3.53 7.152c.997.997 2.698.545 3.07-.815l.952-3.495a.464.464 0 0 1 .896 0L9.4 6.337c.37 1.36 2.072 1.812 3.068.815l1.574-1.574a.268.268 0 0 1 .457.19v.028a.3.3 0 0 1-.008.066l-1.288 5.584a12.52 12.52 0 0 1-10.408 0L1.508 5.862a.3.3 0 0 1-.008-.066v-.028a.268.268 0 0 1 .457-.19z"}))),XF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.5 2h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1M4 3A2.5 2.5 0 0 1 6.5.5h3A2.5 2.5 0 0 1 12 3v3c0 .356-.074.694-.208 1H13a2.5 2.5 0 0 1 2.5 2.5v3A2.5 2.5 0 0 1 13 15H3a2.5 2.5 0 0 1-2.5-2.5v-3A2.5 2.5 0 0 1 3 7h1.208A2.5 2.5 0 0 1 4 6zm2.25 5.5a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1zm3.5 5a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1H13a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1z",clipRule:"evenodd"})),QF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("g",{clipPath:"url(#a)"},g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.522 5.835c.838-.402.978-.795.978-1.085 0-.272-.123-.634-.83-1.01l-.149-.075C9.667 3.255 8.352 3 6.75 3s-2.916.256-3.772.665C2.14 4.067 2 4.46 2 4.75s.14.683.978 1.085c.856.41 2.171.665 3.772.665s2.916-.256 3.771-.665M6.75 8c1.882 0 3.57-.322 4.715-.966-.059 1.35-.216 2.595-.634 3.616-.303.74-.72 1.293-1.296 1.674-.579.383-1.444.676-2.785.676-1.34 0-2.206-.293-2.785-.676-.575-.381-.992-.934-1.296-1.674-.418-1.021-.575-2.267-.634-3.616C3.18 7.678 4.868 8 6.75 8m6.246-3.388C12.88 2.537 10.128 1.5 6.75 1.5 3.298 1.5.5 2.583.5 4.75.5 9 .5 14.5 6.75 14.5c3.36 0 4.913-1.589 5.632-3.719q.419-.13.818-.293c.615-.256 1.268-.613 1.79-1.112C15.524 8.865 16 8.12 16 7.158c0-.437-.097-.89-.345-1.304a2.4 2.4 0 0 0-.956-.89c-.563-.293-1.187-.358-1.703-.352m-.003 1.5c-.015.97-.06 1.967-.203 2.92.963-.432 1.71-1.056 1.71-1.874 0-.808-.656-1.059-1.507-1.046",clipRule:"evenodd"})),g.createElement("defs",null,g.createElement("clipPath",{id:"a"},g.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),JF=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M3 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m5 0a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M13 4.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M4.5 3a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M8 14.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m6.5-1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M3 14.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"})),eP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.5 9a4.5 4.5 0 1 1-9 0c0-1.638.761-3.242 1.789-4.64a16.6 16.6 0 0 1 2.714-2.847c.591.48 1.722 1.483 2.707 2.817 1.024 1.389 1.79 3 1.79 4.67M14 9A6 6 0 0 1 2 9C2 4.819 5.846 1.337 7.106.309 7.359.102 7.676 0 8.003 0c.323 0 .637.1.888.302C10.148 1.312 14 4.759 14 9m-6 3.25a.75.75 0 0 1 0-1.5A1.75 1.75 0 0 0 9.75 9a.75.75 0 0 1 1.5 0A3.25 3.25 0 0 1 8 12.25",clipRule:"evenodd"})),tP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.87 8.515 1.641 8l.229-.515a6.708 6.708 0 0 1 12.26 0l.228.515-.229.515a6.708 6.708 0 0 1-12.259 0M.5 6.876l-.26.585a1.33 1.33 0 0 0 0 1.079l.26.584a8.208 8.208 0 0 0 15 0l.26-.584a1.33 1.33 0 0 0 0-1.08l-.26-.584a8.208 8.208 0 0 0-15 0M9.5 8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"})),nP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 13.5H5A1.5 1.5 0 0 1 3.5 12V4A1.5 1.5 0 0 1 5 2.5h2V5a3 3 0 0 0 3 3h2.5v4a1.5 1.5 0 0 1-1.5 1.5m1.303-7a1.5 1.5 0 0 0-.242-.318L8.818 2.939a1.5 1.5 0 0 0-.318-.242V5A1.5 1.5 0 0 0 10 6.5zm.818-1.379A3 3 0 0 1 14 7.243V12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.757a3 3 0 0 1 2.122.879z",clipRule:"evenodd"})),rP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m6.379 4.5-.44-.44-.621-.62A1.5 1.5 0 0 0 4.258 3H3a1.5 1.5 0 0 0-1.5 1.5v5.25l1.376-2.293A3 3 0 0 1 5.45 6h7.05A1.5 1.5 0 0 0 11 4.5zM14 6.026V6a3 3 0 0 0-3-3H7l-.621-.621A3 3 0 0 0 4.257 1.5H3a3 3 0 0 0-3 3V11a3 3 0 0 0 3 3h8.301a3 3 0 0 0 2.573-1.457l1.791-2.985A2.35 2.35 0 0 0 14 6.026M10 12.5h1.301a1.5 1.5 0 0 0 1.287-.728l1.791-2.986 1.286.772-1.286-.772a.85.85 0 0 0-.728-1.286H5.449a1.5 1.5 0 0 0-1.287.728l-1.791 2.986a.85.85 0 0 0 .728 1.286z",clipRule:"evenodd"})),aP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"})),oP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.208 12.346c-.485 1-.953 1.154-1.208 1.154s-.723-.154-1.208-1.154c-.372-.768-.647-1.858-.749-3.187a21 21 0 0 0 3.914 0c-.102 1.329-.377 2.419-.75 3.187m.788-4.699C9.358 7.714 8.69 7.75 8 7.75s-1.358-.036-1.996-.103c.037-1.696.343-3.075.788-3.993C7.277 2.654 7.745 2.5 8 2.5s.723.154 1.208 1.154c.445.918.75 2.297.788 3.993m1.478 1.306c-.085 1.516-.375 2.848-.836 3.874a5.5 5.5 0 0 0 2.843-4.364c-.621.199-1.295.364-2.007.49m1.918-2.043c-.572.204-1.21.379-1.901.514-.056-1.671-.354-3.14-.853-4.251a5.5 5.5 0 0 1 2.754 3.737m-8.883.514c.056-1.671.354-3.14.853-4.251A5.5 5.5 0 0 0 2.608 6.91c.572.204 1.21.379 1.901.514M2.52 8.463a5.5 5.5 0 0 0 2.843 4.364c-.46-1.026-.75-2.358-.836-3.874a15.5 15.5 0 0 1-2.007-.49M15 8A7 7 0 1 0 1 8a7 7 0 0 0 14 0",clipRule:"evenodd"})),iP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.25 2a.75.75 0 0 0 0 1.5h1.317l-2.7 9H4.25a.75.75 0 1 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H7.433l2.7-9h1.617a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),sP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.789 5.283 4.037-2.02A2.5 2.5 0 0 1 7.944 3h.112c.388 0 .77.09 1.118.264l4.037 2.019a.522.522 0 0 1 0 .934l-4.037 2.02a2.5 2.5 0 0 1-1.118.263h-.112a2.5 2.5 0 0 1-1.118-.264L2.79 6.217a.523.523 0 0 1 0-.934M1 5.75c0-.766.433-1.466 1.118-1.809l4.037-2.019a4 4 0 0 1 1.79-.422h.11a4 4 0 0 1 1.79.422l4.037 2.019a2.023 2.023 0 0 1 0 3.618l-.882.44.882.442a2.023 2.023 0 0 1 0 3.618l-4.037 2.019a4 4 0 0 1-1.79.422h-.11a4 4 0 0 1-1.79-.422l-4.037-2.02a2.023 2.023 0 0 1 0-3.617L3 8l-.882-.441A2.02 2.02 0 0 1 1 5.75m3.677 3.088-1.888.945a.523.523 0 0 0 0 .934l4.037 2.019A2.5 2.5 0 0 0 7.944 13h.112a2.5 2.5 0 0 0 1.118-.264l4.037-2.019a.523.523 0 0 0 0-.934l-1.888-.945-1.478.74a4 4 0 0 1-1.79.422h-.11a4 4 0 0 1-1.79-.422z",clipRule:"evenodd"})),lP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.25 3.5h-2.5v2h2.5zM4 3.5h1.25v2H2.5V5A1.5 1.5 0 0 1 4 3.5M2.5 7h2.75v2H2.5zm0 3.5v.5A1.5 1.5 0 0 0 4 12.5h1.25v-2zm4.25 0v2h2.5v-2zm4 0v2H12a1.5 1.5 0 0 0 1.5-1.5v-.5zM13.5 9h-2.75V7h2.75zM9.25 9h-2.5V7h2.5zm1.5-5.5v2h2.75V5A1.5 1.5 0 0 0 12 3.5zM4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3z",clipRule:"evenodd"})),uP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 3h8a1.5 1.5 0 0 1 1.5 1.5V5h-11v-.5A1.5 1.5 0 0 1 4 3m9.5 5.25V6.5h-11V10A1.5 1.5 0 0 0 4 11.5h2.75a.75.75 0 0 1 0 1.5H4a3 3 0 0 1-3-3V4.5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v3.75a.75.75 0 0 1-1.5 0m-3.272-.078A.75.75 0 0 0 9 8.75v5.544a.75.75 0 0 0 1.335.469l.898-1.12.846 1.692a.75.75 0 1 0 1.342-.67l-.827-1.654H14a.75.75 0 0 0 .478-1.328z",clipRule:"evenodd"})),cP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.418 2.489c.9-1.196 2.382-1.724 3.154-1.391.852.367 1.539 2.08 1.054 3.702a4 4 0 0 1-2.616 5.559c.309.471.49 1.035.49 1.641v2.25a.75.75 0 0 1-1.5 0V12a1.5 1.5 0 0 0-3 0v2.25a.75.75 0 0 1-1.5 0v-.75h-.876a2.626 2.626 0 0 1-2.625-2.625c0-.621-.504-1.125-1.125-1.125h-.125a.75.75 0 0 1 0-1.5h.125a2.625 2.625 0 0 1 2.625 2.625c0 .621.504 1.125 1.125 1.125H6.5c0-.606.18-1.17.488-1.641A4 4 0 0 1 4.373 4.8c-.484-1.623.202-3.335 1.054-3.702.772-.333 2.254.195 3.155 1.39zm2.549.02a1.4 1.4 0 0 0-.35.098 2.5 2.5 0 0 0-1 .784l-.451.598H7.834l-.45-.598a2.5 2.5 0 0 0-1.001-.784 1.4 1.4 0 0 0-.352-.099c-.063.088-.14.231-.204.429a2.5 2.5 0 0 0-.016 1.434l.163.546-.242.517c-.13.279-.21.586-.228.913l-.004.142a2.5 2.5 0 0 0 2.5 2.5h3a2.5 2.5 0 0 0 2.267-3.555l-.242-.517.163-.547a2.5 2.5 0 0 0-.016-1.433 1.6 1.6 0 0 0-.205-.429",clipRule:"evenodd"})),fP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("g",{clipPath:"url(#a)"},g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.706 3.39a1 1 0 1 1 .108-.064 1 1 0 0 0-.108.064m.108 1.546Q4.542 5 4.25 5a2.5 2.5 0 1 1 1.856-.825l.849 1.484a3.5 3.5 0 0 1 3.191.576l2.222-1.851a1.75 1.75 0 1 1 1.101 1.035l-2.362 1.968c.251.483.393 1.031.393 1.613 0 .557-.13 1.083-.361 1.55l.958.767a2.25 2.25 0 1 1-.959 1.154l-.937-.75a3.5 3.5 0 0 1-5.62-1.971H3.33a1.75 1.75 0 1 1 0-1.5h1.25a3.5 3.5 0 0 1 1.072-1.846zM10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0m3.25 5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5",clipRule:"evenodd"})),g.createElement("defs",null,g.createElement("clipPath",{id:"a"},g.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),CC=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.75 14a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 0 1.5zM5.5 9.5H4a.5.5 0 0 1-.5-.5V3.5A.5.5 0 0 1 4 3h1.5a.5.5 0 0 1 .5.5V9a.5.5 0 0 1-.5.5M4 11a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2h1.5a2 2 0 0 1 2 2V9a2 2 0 0 1-2 2zm8-1.5h-1.5A.5.5 0 0 1 10 9V7a.5.5 0 0 1 .5-.5H12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5M10.5 11a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2H12a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2z",clipRule:"evenodd"})),dP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 5.5V4a.5.5 0 0 0-.5-.5h-9A.5.5 0 0 0 3 4v1.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5m-4.25 2h3.75a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8.75v-.25a.75.75 0 0 0-1.5 0V2H3.5a2 2 0 0 0-2 2v1.5a2 2 0 0 0 2 2h3.75v1H6a2 2 0 0 0-2 2V12a2 2 0 0 0 2 2h1.25v.25a.75.75 0 0 0 1.5 0V14H10a2 2 0 0 0 2-2v-1.5a2 2 0 0 0-2-2H8.75zM8 10H6a.5.5 0 0 0-.5.5V12a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-1.5a.5.5 0 0 0-.5-.5z",clipRule:"evenodd"})),hP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.5 3H4a.5.5 0 0 0-.5.5v9a.5.5 0 0 0 .5.5h1.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5m2 4.25V3.5a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v3.75h-.25a.75.75 0 0 0 0 1.5H2v3.75a2 2 0 0 0 2 2h1.5a2 2 0 0 0 2-2V8.75h1V10a2 2 0 0 0 2 2H12a2 2 0 0 0 2-2V8.75h.25a.75.75 0 0 0 0-1.5H14V6a2 2 0 0 0-2-2h-1.5a2 2 0 0 0-2 2v1.25zM10 8v2a.5.5 0 0 0 .5.5H12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5h-1.5a.5.5 0 0 0-.5.5z",clipRule:"evenodd"})),pP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 1.75a.75.75 0 0 1 1.5 0v12.5a.75.75 0 0 1-1.5 0zM6.5 5.5V4a.5.5 0 0 1 .5-.5h5.5a.5.5 0 0 1 .5.5v1.5a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5M5 4a2 2 0 0 1 2-2h5.5a2 2 0 0 1 2 2v1.5a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2zm1.5 8v-1.5A.5.5 0 0 1 7 10h2a.5.5 0 0 1 .5.5V12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5M5 10.5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2V12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z",clipRule:"evenodd"})),CP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 1.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0zM9.5 5.5V4a.5.5 0 0 0-.5-.5H3.5A.5.5 0 0 0 3 4v1.5a.5.5 0 0 0 .5.5H9a.5.5 0 0 0 .5-.5M11 4a2 2 0 0 0-2-2H3.5a2 2 0 0 0-2 2v1.5a2 2 0 0 0 2 2H9a2 2 0 0 0 2-2zm-1.5 8v-1.5A.5.5 0 0 0 9 10H7a.5.5 0 0 0-.5.5V12a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5m1.5-1.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V12a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2z",clipRule:"evenodd"})),gP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.75 2a.75.75 0 0 0 0 1.5h12.5a.75.75 0 0 0 0-1.5zM5.5 6.5H4a.5.5 0 0 0-.5.5v5.5a.5.5 0 0 0 .5.5h1.5a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5M4 5a2 2 0 0 0-2 2v5.5a2 2 0 0 0 2 2h1.5a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm8 1.5h-1.5a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5H12a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5M10.5 5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2H12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z",clipRule:"evenodd"})),mP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.012 10c.431.004.764-.15 1.002-.411.244-.268.486-.762.486-1.589a5.5 5.5 0 1 0-5.17 5.491 4.3 4.3 0 0 1-.106-.89 2.37 2.37 0 0 1 .495-1.48c.386-.493.92-.763 1.448-.914C10.69 10.06 11.303 10 12 10zM8.43 14.01v-.005zM12 11.5c1.66.013 3-1.25 3-3.5a7 7 0 1 0-7 7c2.19 0 2.011-.83 1.827-1.68-.194-.898-.393-1.82 2.173-1.82M9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m2 2.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2m-4.75-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0M5.75 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2",clipRule:"evenodd"})),vP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.169 6.331a3 3 0 0 0-.833 1.6l-.338 1.912a1 1 0 0 0 1.159 1.159l1.912-.338a3 3 0 0 0 1.6-.833l3.07-3.07 2-2A.9.9 0 0 0 15 4.13 3.13 3.13 0 0 0 11.87 1a.9.9 0 0 0-.632.262l-2 2zm3.936-1.814L7.229 7.392a1.5 1.5 0 0 0-.416.8L6.6 9.4l1.208-.213.057-.01a1.5 1.5 0 0 0 .743-.406l2.875-2.876a1.63 1.63 0 0 0-1.378-1.378m2.558.199a3.14 3.14 0 0 0-1.379-1.38l.82-.82a1.63 1.63 0 0 1 1.38 1.38zM8 2.25a.75.75 0 0 0-.75-.75H4.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3V8.75a.75.75 0 0 0-1.5 0v2.75a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3h2.75A.75.75 0 0 0 8 2.25",clipRule:"evenodd"})),yP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 3h-7A1.5 1.5 0 0 0 3 4.5v5.027l.962-.7a1.75 1.75 0 0 1 2.079.016l.928.696 2.368-2.03a1.75 1.75 0 0 1 2.325.043L13 8.787V4.5A1.5 1.5 0 0 0 11.5 3m3 7.498V4.5a3 3 0 0 0-3-3h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3zm-1.5.33-2.355-2.174a.25.25 0 0 0-.332-.006L7.488 11.07l-.457.392-.481-.361-1.41-1.057a.25.25 0 0 0-.296-.002L3 11.381v.119A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5zM7.5 6a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0",clipRule:"evenodd"})),xP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.5 3h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5m-2 .5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zm9-.5h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5m-2 .5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zm-3 6.5h-2a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5m-2-1.5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2a2 2 0 0 0-2-2zm7 1.5h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5m-2 .5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z",clipRule:"evenodd"})),wP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m0 1.5a2.75 2.75 0 0 1-2.646-2H4.577a.827.827 0 0 0-.238 1.619l7.753 2.326A2.327 2.327 0 0 1 11.423 13H6.397a2.751 2.751 0 1 1 0-1.5h5.026a.827.827 0 0 0 .238-1.619L3.908 7.556A2.327 2.327 0 0 1 4.577 3h5.027a2.751 2.751 0 1 1 2.646 3.5M5 12.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0",clipRule:"evenodd"})),bP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3m-3-1.5a3 3 0 0 0 4.524 2.585L6.939 8l-.915.915a3 3 0 1 0 1.06 1.06L8.122 8.94l5.501 3.209a.75.75 0 1 0 .756-1.296L9.488 8l4.89-2.852a.75.75 0 0 0-.756-1.296l-5.5 3.209-1.037-1.037A3 3 0 1 0 1.5 4.5m3 5.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3",clipRule:"evenodd"})),SP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 4.5A1.5 1.5 0 0 1 4.5 3h1.75a.75.75 0 0 0 0-1.5H4.5a3 3 0 0 0-3 3v1.75a.75.75 0 0 0 1.5 0zm6.75-3a.75.75 0 0 0 0 1.5h1.75A1.5 1.5 0 0 1 13 4.5v1.75a.75.75 0 0 0 1.5 0V4.5a3 3 0 0 0-3-3zM3 9.75a.75.75 0 0 0-1.5 0v1.75a3 3 0 0 0 3 3h1.75a.75.75 0 0 0 0-1.5H4.5A1.5 1.5 0 0 1 3 11.5zm11.5 0a.75.75 0 0 0-1.5 0v1.75a1.5 1.5 0 0 1-1.5 1.5H9.75a.75.75 0 0 0 0 1.5h1.75a3 3 0 0 0 3-3zM10 8a2 2 0 1 1-4 0 2 2 0 0 1 4 0m1.5 0a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0",clipRule:"evenodd"})),DP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 3h-7A1.5 1.5 0 0 0 3 4.5v7A1.5 1.5 0 0 0 4.5 13h3v-2.5a3 3 0 0 1 3-3H13v-3A1.5 1.5 0 0 0 11.5 3m1.303 6a1.5 1.5 0 0 1-.242.318l-3.243 3.243a1.5 1.5 0 0 1-.318.242V10.5A1.5 1.5 0 0 1 10.5 9zm.818 1.379a3 3 0 0 0 .879-2.122V4.5a3 3 0 0 0-3-3h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h3.757a3 3 0 0 0 2.122-.879z",clipRule:"evenodd"})),LP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.502 2.757C6.214 2.236 7.122 2 7.984 2c1.685 0 3.015.572 3.687 1.915a.75.75 0 1 1-1.342.67C10.001 3.93 9.331 3.5 7.984 3.5c-.611 0-1.19.17-1.597.468-.384.28-.627.678-.627 1.242 0 .403.165.758.463 1.04H4.447a2.9 2.9 0 0 1-.187-1.04c0-1.084.507-1.916 1.242-2.453m6.047 5.993h1.201a.75.75 0 0 0 0-1.5h-9.5a.75.75 0 0 0 0 1.5h5.475l.043.012h.002c1.196.323 1.98 1.005 1.98 1.988 0 .669-.289 1.063-.742 1.33-.5.296-1.222.437-2 .437-1.398 0-2.453-.472-2.796-1.504a.75.75 0 1 0-1.424.474c.657 1.969 2.602 2.53 4.22 2.53.915 0 1.94-.16 2.762-.644.869-.512 1.48-1.376 1.48-2.623 0-.822-.276-1.481-.7-2",clipRule:"evenodd"})),MP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.279 2.544A.75.75 0 0 1 4 2h8a.75.75 0 0 1 .721.544l.5 1.75a.75.75 0 1 1-1.442.412L11.434 3.5H8.75l-.004 9H9.5a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.746l.004-9H4.566L4.22 4.706a.75.75 0 1 1-1.442-.412z",clipRule:"evenodd"})),gC=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.75 2a.75.75 0 0 0 0 1.5h10.5a.75.75 0 0 0 0-1.5zm0 7a.75.75 0 0 0 0 1.5h10.5a.75.75 0 0 0 0-1.5zm2 3.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5zM4 6.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 6.25",clipRule:"evenodd"})),mC=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.75 2a.75.75 0 0 0 0 1.5h10.5a.75.75 0 0 0 0-1.5zm0 7a.75.75 0 0 0 0 1.5h10.5a.75.75 0 0 0 0-1.5zm0 3.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5zM2 6.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 2 6.25",clipRule:"evenodd"})),vC=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.75 2a.75.75 0 0 0 0 1.5h10.5a.75.75 0 0 0 0-1.5zM6 6.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 6 6.25M2.75 9a.75.75 0 0 0 0 1.5h10.5a.75.75 0 0 0 0-1.5zm4 3.5a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"})),EP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m7.836 6 .76-2.027L9.336 2H5.5a.72.72 0 0 0-.664.45L2.513 8.257a.177.177 0 0 0 .164.243h4.965l-.732 2.013-1.082 2.975a.382.382 0 0 0 .637.392l6.956-7.391A.29.29 0 0 0 13.21 6H7.835m2.727-3 .235-.627A1.386 1.386 0 0 0 9.5.5h-4c-.906 0-1.72.552-2.057 1.393L1.12 7.7A1.677 1.677 0 0 0 2.677 10H5.5l-.545 1.5-.537 1.475a1.882 1.882 0 0 0 3.14 1.933l6.956-7.391A1.79 1.79 0 0 0 13.21 4.5H10z",clipRule:"evenodd"})),kP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("g",{clipPath:"url(#a)"},g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M.75 7.25a.75.75 0 0 0 0 1.5H2v2.234a2.5 2.5 0 0 0 1.97 2.443l7 1.517A2.5 2.5 0 0 0 14 12.5V8.75h1.25a.75.75 0 0 0 0-1.5H14V3.5a2.5 2.5 0 0 0-3.03-2.444l-7 1.517A2.5 2.5 0 0 0 2 5.016V7.25zm2.75 1.5v2.234a1 1 0 0 0 .788.977l7 1.517A1 1 0 0 0 12.5 12.5V8.75zm9-1.5h-9V5.016a1 1 0 0 1 .788-.977l7-1.517A1 1 0 0 1 12.5 3.5z",clipRule:"evenodd"})),g.createElement("defs",null,g.createElement("clipPath",{id:"a"},g.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"})))),jP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.75.75a.75.75 0 0 0-1.5 0V2H5.016a2.5 2.5 0 0 0-2.443 1.97l-1.517 7A2.5 2.5 0 0 0 3.5 14h3.75v1.25a.75.75 0 0 0 1.5 0V14h3.75a2.5 2.5 0 0 0 2.444-3.03l-1.517-7A2.5 2.5 0 0 0 10.984 2H8.75zM7.25 3.5H5.016a1 1 0 0 0-.977.788l-1.517 7A1 1 0 0 0 3.5 12.5h3.75zm1.5 9v-9h2.233a1 1 0 0 1 .978.788l1.516 7A1 1 0 0 1 12.5 12.5z",clipRule:"evenodd"})),AP=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 2H7a.5.5 0 0 0-.5.5V3h3v-.5A.5.5 0 0 0 9 2m2 1v-.5a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2V3H2.251a.75.75 0 0 0 0 1.5h.312l.317 7.625A3 3 0 0 0 5.878 15h4.245a3 3 0 0 0 2.997-2.875l.318-7.625h.312a.75.75 0 0 0 0-1.5zm.936 1.5H4.064l.315 7.562A1.5 1.5 0 0 0 5.878 13.5h4.245a1.5 1.5 0 0 0 1.498-1.438zm-6.186 2v5a.75.75 0 0 0 1.5 0v-5a.75.75 0 0 0-1.5 0m3.75-.75a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0v-5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})),Kb=e=>g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.091 5.194q.2-.322.305-.694h3.208c.259.916.98 1.637 1.896 1.896v3.208A2.76 2.76 0 0 0 9.604 11.5H6.396A2.76 2.76 0 0 0 4.5 9.604V6.396a2.76 2.76 0 0 0 1.591-1.202M13 6.396v3.208q.372.106.694.305a2.75 2.75 0 0 1 .897 3.785A2.751 2.751 0 0 1 9.603 13H6.397q-.106.372-.305.694A2.75 2.75 0 1 1 3 9.604V6.396A2.751 2.751 0 1 1 6.396 3h3.208A2.751 2.751 0 1 1 13 6.396M3.75 2.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5M5 12.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0M12.25 11a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5m1.25-7.25a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0",clipRule:"evenodd"}));function OP(e){return l.jsx(kA,{"data-slot":"dropdown-menu",...e})}function BP(e){return l.jsx(jA,{"data-slot":"dropdown-menu-trigger",...e})}function RP({className:e,align:t="start",sideOffset:n=4,...r}){return l.jsx(AA,{children:l.jsx(OA,{"data-slot":"dropdown-menu-content",sideOffset:n,align:t,className:"drawo-dropdown-content"+(e?" "+e:""),...r})})}function Fn({className:e,inset:t,variant:n="default",disabled:r=!1,...o}){return l.jsx(BA,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,"data-disabled":r,className:"drawo-dropdown-item"+(e?" "+e:""),...o})}function Js({className:e,children:t,checked:n,inset:r,...o}){return l.jsxs(RA,{"data-slot":"dropdown-menu-checkbox-item","data-inset":r,className:"drawo-dropdown-checkboxitem"+(e?" "+e:""),checked:n,...o,children:[l.jsx("span",{className:"drawo-dropdown-indicator",children:l.jsx(Ax,{children:l.jsx(Yb,{})})}),t]})}function yC(e){return l.jsx(TA,{"data-slot":"dropdown-menu-radio-group",...e})}function _4({className:e,children:t,inset:n,...r}){return l.jsxs(NA,{"data-slot":"dropdown-menu-radio-item","data-inset":n,className:"drawo-dropdown-radioitem"+(e?" "+e:""),...r,children:[l.jsx("span",{className:"drawo-dropdown-indicator",children:l.jsx(Ax,{children:l.jsx($b,{})})}),t]})}function Go({className:e,...t}){return l.jsx(FA,{"data-slot":"dropdown-menu-separator",className:"drawo-dropdown-separator"+(e?" "+e:""),...t})}function so(e){return l.jsx(PA,{"data-slot":"dropdown-menu-sub",...e})}function lo({className:e,inset:t,children:n,...r}){return l.jsxs(_A,{"data-slot":"dropdown-menu-sub-trigger","data-inset":t,className:"drawo-dropdown-subtrigger"+(e?" "+e:""),...r,children:[n,l.jsx(WF,{className:"drawo-dropdown-chevron"})]})}function uo({className:e,...t}){return l.jsx(IA,{"data-slot":"dropdown-menu-sub-content",className:"drawo-dropdown-subcontent"+(e?" "+e:""),...t})}function Wl(e){return l.jsx(SE,{"data-slot":"dialog",...e})}function TP(e){return l.jsx(DE,{"data-slot":"dialog-trigger",...e})}function NP(e){return l.jsx(LE,{"data-slot":"dialog-portal",...e})}function m0(e){return l.jsx(f9,{"data-slot":"dialog-close",...e})}function FP({className:e,...t}){return l.jsx(ME,{"data-slot":"dialog-overlay",className:"drawo-dialog-overlay"+(e?" "+e:""),...t})}function $l({className:e,children:t,showCloseButton:n=!0,...r}){return l.jsxs(NP,{children:[l.jsx(FP,{}),l.jsxs(EE,{"data-slot":"dialog-content",className:"drawo-dialog-content"+(e?" "+e:""),...r,children:[t,n&&l.jsx(f9,{"data-slot":"dialog-close",asChild:!0,children:l.jsxs("button",{className:"drawo-dialog-close-btn",children:[l.jsx(_F,{}),l.jsx("span",{className:"drawo-sr-only",children:"Close"})]})})]})]})}function Ul({className:e,...t}){return l.jsx("div",{"data-slot":"dialog-header",className:"drawo-dialog-header"+(e?" "+e:""),...t})}function v0({className:e,showCloseButton:t=!1,children:n,...r}){return l.jsxs("div",{"data-slot":"dialog-footer",className:"drawo-dialog-footer"+(e?" "+e:""),...r,children:[n,t&&l.jsx(f9,{asChild:!0,children:l.jsx("button",{className:"drawo-dialog-close-btn",children:"Close"})})]})}function ql({className:e,...t}){return l.jsx(kE,{"data-slot":"dialog-title",className:"drawo-dialog-title"+(e?" "+e:""),...t})}function y0({className:e,...t}){return l.jsx(jE,{"data-slot":"dialog-description",className:"drawo-dialog-description"+(e?" "+e:""),...t})}const i6=()=>/Mac|iPod|iPhone|iPad/.test(navigator.platform),xC=()=>i6()?"⌥":"Alt",Fi=()=>i6()?"⌘":"Ctrl",I4=()=>i6()?"⇧":"Shift";function PP(){return l.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M2.48623 18.0121C2.39328 18.0121 2.31196 17.9772 2.24225 17.9075C2.17255 17.8378 2.1377 17.7565 2.1377 17.6635C2.1377 17.6055 2.1435 17.5416 2.15512 17.4718L6.47691 6.19686C6.52338 6.08068 6.58728 5.98774 6.6686 5.91804C6.74992 5.84833 6.87191 5.81348 7.03456 5.81348H8.21957C8.3706 5.81348 8.48677 5.84833 8.5681 5.91804C8.66104 5.98774 8.73074 6.08068 8.77722 6.19686L13.0816 17.4718C13.1048 17.5416 13.1164 17.6055 13.1164 17.6635C13.1164 17.7565 13.0816 17.8378 13.0119 17.9075C12.9422 17.9772 12.8608 18.0121 12.7679 18.0121H11.8791C11.7397 18.0121 11.6352 17.9772 11.5655 17.9075C11.5074 17.8378 11.4667 17.7739 11.4435 17.7158L10.485 15.2412H4.76911L3.81065 17.7158C3.79903 17.7739 3.75837 17.8378 3.68866 17.9075C3.61895 17.9772 3.51439 18.0121 3.37498 18.0121H2.48623ZM5.27448 13.7426H9.97965L7.62706 7.55613L5.27448 13.7426Z",fill:"currentColor"}),l.jsx("path",{d:"M17.28 18.1863C16.6991 18.1863 16.1705 18.0702 15.6942 17.8378C15.2179 17.6055 14.8345 17.2918 14.544 16.8968C14.2536 16.5018 14.1084 16.0545 14.1084 15.5549C14.1084 14.7533 14.4337 14.1143 15.0843 13.638C15.7349 13.1617 16.583 12.848 17.6285 12.697L20.2251 12.331V11.8256C20.2251 11.268 20.0625 10.8323 19.7372 10.5186C19.4235 10.205 18.9065 10.0481 18.1862 10.0481C17.6634 10.0481 17.2394 10.1527 16.9141 10.3618C16.6004 10.5709 16.3796 10.8381 16.2518 11.1634C16.1821 11.3377 16.0602 11.4248 15.8859 11.4248H15.1017C14.9739 11.4248 14.8751 11.39 14.8054 11.3203C14.7474 11.2389 14.7183 11.146 14.7183 11.0414C14.7183 10.8672 14.7822 10.6523 14.91 10.3967C15.0494 10.1411 15.2585 9.89129 15.5374 9.64732C15.8162 9.40335 16.1705 9.20004 16.6004 9.03739C17.0419 8.86313 17.5763 8.77599 18.2036 8.77599C18.9007 8.77599 19.4874 8.86893 19.9637 9.05482C20.44 9.22908 20.8118 9.46725 21.079 9.76931C21.3578 10.0714 21.5553 10.4141 21.6715 10.7975C21.7993 11.1809 21.8632 11.5701 21.8632 11.9651V17.6113C21.8632 17.7274 21.8225 17.8262 21.7412 17.9075C21.6715 17.9772 21.5786 18.0121 21.4624 18.0121H20.6608C20.533 18.0121 20.4342 17.9772 20.3645 17.9075C20.2948 17.8262 20.26 17.7274 20.26 17.6113V16.8619C20.1089 17.071 19.9056 17.2802 19.65 17.4893C19.3944 17.6868 19.075 17.8552 18.6916 17.9946C18.3082 18.1224 17.8377 18.1863 17.28 18.1863ZM17.646 16.8793C18.1223 16.8793 18.558 16.7806 18.953 16.5831C19.348 16.374 19.6558 16.0545 19.8766 15.6246C20.1089 15.1948 20.2251 14.6546 20.2251 14.004V13.516L18.2036 13.8123C17.3788 13.9284 16.7572 14.1259 16.339 14.4048C15.9207 14.672 15.7116 15.0147 15.7116 15.4329C15.7116 15.7582 15.8046 16.0313 15.9904 16.252C16.188 16.4611 16.4319 16.6179 16.7224 16.7225C17.0244 16.8271 17.3323 16.8793 17.646 16.8793Z",fill:"currentColor"})]})}const _P=e=>l.jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 16 16",width:"1em",...e,children:[l.jsx("path",{d:"M12.0217 7.83446C12.0217 7.56288 11.9282 7.33368 11.7415 7.14696C11.578 6.98354 11.382 6.89197 11.1536 6.87157L11.054 6.86669H7.2356C7.00558 6.8665 6.92141 6.56374 7.11841 6.44481L11.2014 3.97899L11.2063 3.97704C11.3145 3.907 11.3952 3.8162 11.4485 3.70555L11.4934 3.58837C11.54 3.42294 11.5164 3.26354 11.4231 3.11083C11.3298 2.95821 11.1982 2.85868 11.0286 2.812C10.8588 2.76532 10.697 2.78895 10.5442 2.88231L4.35669 6.58641C4.21245 6.67977 4.09618 6.80121 4.00708 6.9497C3.91796 7.09823 3.87329 7.25748 3.87329 7.42723C3.87332 7.69878 3.96687 7.92804 4.15356 8.11473C4.31702 8.27812 4.51298 8.36978 4.74146 8.39013L4.84106 8.39501H7.87329C8.07526 8.39501 8.17657 8.63824 8.03442 8.78173L7.0686 9.75731C7.50996 9.88463 7.12296 10.9406 7.42003 11.2971C7.71684 11.6534 8.64753 11.2508 8.69849 11.7173L11.7415 8.6743C11.8241 8.59154 11.8868 8.49827 11.929 8.39403L11.9641 8.28661C11.9832 8.21232 11.9975 8.13735 12.0071 8.062L12.0217 7.83446ZM13.5217 7.83446C13.5217 8.11359 13.4866 8.38969 13.4172 8.65966C13.311 9.07292 13.0987 9.43915 12.802 9.73583L7.54712 14.9907L7.42003 11.7173C7.40071 11.5402 7.34305 11.4066 7.23741 11.2798C7.13026 11.1512 7.01636 11.078 6.86632 11.0347L5.18461 10.4509L4.82153 9.89403C4.17216 9.88931 3.56519 9.64737 3.09302 9.17528C2.67579 8.75806 2.43799 8.23541 2.38501 7.67138L2.37329 7.42723L2.37915 7.26024C2.40551 6.87411 2.52328 6.5077 2.72095 6.17821L2.80103 6.05223C2.99676 5.76389 3.24623 5.51917 3.54224 5.32763L3.56372 5.31298L3.58618 5.30028L9.77368 1.5952C10.2707 1.29529 10.8534 1.20827 11.426 1.36571C11.9024 1.49672 12.3024 1.77402 12.5881 2.1577L12.7034 2.3286L12.8059 2.51805C13.0241 2.96866 13.0813 3.48304 12.9368 3.99559C12.7912 4.51181 12.4723 4.94418 12.0217 5.23583L12.0022 5.24852L11.9817 5.26122L11.675 5.44579C12.0164 5.53194 12.3365 5.68793 12.6174 5.91845L12.802 6.08641L12.97 6.27098C13.336 6.7171 13.5217 7.25973 13.5217 7.83446Z",fill:"currentColor"}),l.jsx("circle",{cx:"5.79672",cy:"12.4593",r:"2.30233",stroke:"currentColor","stroke-width":"1.5"})]});function IP(){return l.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M9.50753 15.0138H4.63327L3.64947 18.153H2.12012L6.12685 5.83763H8.11233L12.1191 18.153H10.4913L9.50753 15.0138ZM5.03573 13.7259H9.10507L7.08381 7.14339L5.03573 13.7259Z",fill:"currentColor"}),l.jsx("path",{d:"M17.8449 5.64087C19.1745 5.64087 20.1792 6.18941 20.8589 7.28649C21.5386 8.38357 21.8785 9.95168 21.8785 11.9908C21.8785 14.0359 21.5386 15.61 20.8589 16.713C20.1792 17.8101 19.1745 18.3587 17.8449 18.3587C16.5213 18.3587 15.5166 17.8101 14.8309 16.713C14.1512 15.61 13.8114 14.0359 13.8114 11.9908C13.8114 9.95168 14.1512 8.38357 14.8309 7.28649C15.5166 6.18941 16.5213 5.64087 17.8449 5.64087ZM17.8449 6.84825C17.0877 6.84825 16.4914 7.25072 16.0562 8.05564C15.6209 8.8546 15.4033 10.1663 15.4033 11.9908C15.4033 12.915 15.451 13.705 15.5464 14.3609C15.6418 15.0167 15.7879 15.5504 15.9846 15.9618C16.1874 16.3672 16.4408 16.6653 16.7449 16.8561C17.0549 17.0469 17.4216 17.1423 17.8449 17.1423C18.3577 17.1423 18.7959 16.9664 19.1596 16.6147C19.5293 16.2629 19.8095 15.7084 20.0003 14.9512C20.1971 14.188 20.2955 13.2012 20.2955 11.9908C20.2955 10.7626 20.209 9.76983 20.0361 9.0126C19.8691 8.25538 19.6038 7.70684 19.2401 7.36698C18.8824 7.02116 18.4173 6.84825 17.8449 6.84825ZM19.6605 7.28649L20.054 8.6012L16.1367 16.5342L15.5822 15.4878L19.6605 7.28649Z",fill:"currentColor"})]})}function zP(){return l.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M8.39115 18.5145L8.33166 18.3757L8.41098 17.6023C8.87371 17.5626 9.23066 17.5163 9.48186 17.4634C9.73305 17.4106 9.91153 17.3378 10.0173 17.2453C10.1231 17.1395 10.1759 17.0073 10.1759 16.8487C10.1759 16.7165 10.1627 16.571 10.1363 16.4124C10.1098 16.2537 10.0636 16.0819 9.99747 15.8968L9.34304 13.7352C9.10507 13.722 8.76794 13.7154 8.33166 13.7154C7.90859 13.7154 7.55824 13.7154 7.28061 13.7154C6.89721 13.7154 6.49398 13.7352 6.07091 13.7749C5.66107 13.8145 5.34377 13.8476 5.11902 13.874L4.38527 15.9364C4.26629 16.2934 4.20679 16.5512 4.20679 16.7099C4.20679 17.0007 4.29934 17.2122 4.48443 17.3444C4.68274 17.4634 4.98681 17.5229 5.39666 17.5229H6.52703L6.56669 17.6023L6.4477 18.455C6.4477 18.455 6.30889 18.4418 6.03125 18.4153C5.75362 18.3889 5.40327 18.3624 4.9802 18.336C4.55714 18.3228 4.12747 18.3162 3.69118 18.3162C3.37389 18.3162 3.04337 18.3162 2.69963 18.3162C2.36911 18.3294 2.08487 18.3426 1.84689 18.3558C1.62214 18.3691 1.50977 18.3757 1.50977 18.3757L1.66841 17.4436C2.03859 17.4039 2.33606 17.2783 2.56081 17.0668C2.78556 16.8553 3.00371 16.4719 3.21524 15.9166L7.0823 5.78293L8.33166 5.4458H8.4903C8.4903 5.4458 8.52997 5.60445 8.60929 5.92175C8.70184 6.22582 8.82082 6.6555 8.96625 7.21077C9.1249 7.75282 9.30338 8.3808 9.50169 9.09472C9.71322 9.79542 9.93136 10.5424 10.1561 11.3356C10.3941 12.1289 10.6387 12.9353 10.8899 13.755C11.1411 14.5615 11.3923 15.3349 11.6434 16.0753C11.8021 16.5644 12.0136 16.9082 12.278 17.1065C12.5557 17.3048 12.9787 17.4304 13.5472 17.4833L13.5869 17.5626L13.4481 18.3757C13.4481 18.3757 13.3159 18.3691 13.0515 18.3558C12.8003 18.3426 12.5094 18.3294 12.1789 18.3162C11.8484 18.3162 11.5707 18.3162 11.346 18.3162C10.8436 18.3162 10.361 18.3294 9.89831 18.3558C9.44881 18.3955 9.08524 18.4285 8.8076 18.455C8.52997 18.4946 8.39115 18.5145 8.39115 18.5145ZM5.47598 12.9023H7.22112C7.48553 12.9023 7.80283 12.8891 8.17301 12.8626C8.54319 12.8362 8.84065 12.8164 9.06541 12.8031L7.49875 7.60739H7.35993L5.47598 12.9023Z",fill:"currentColor"}),l.jsx("path",{d:"M20.7654 18.5541C20.2366 18.5541 19.8201 18.4219 19.5161 18.1575C19.2252 17.8799 19.0533 17.4767 19.0005 16.9478L18.9211 16.928C18.6038 17.2453 18.2998 17.5229 18.0089 17.7609C17.7313 17.9857 17.4801 18.1641 17.2553 18.2963C17.0438 18.4153 16.8719 18.4748 16.7397 18.4748C16.2506 18.4748 15.8143 18.3691 15.4309 18.1575C15.0475 17.946 14.7434 17.6551 14.5186 17.285C14.3071 16.9148 14.2013 16.4917 14.2013 16.0158C14.2013 15.6324 14.2939 15.2952 14.479 15.0044C14.6773 14.7135 14.9351 14.5218 15.2524 14.4293L19.0203 13.3981L19.0401 12.5255C19.0401 11.8645 18.8881 11.3489 18.584 10.9787C18.2799 10.6085 17.8503 10.4234 17.295 10.4234C16.9248 10.4234 16.5348 10.5093 16.125 10.6812C15.7151 10.8531 15.3119 11.0977 14.9153 11.415L14.8161 11.3555L14.5781 10.5027C14.9219 10.3044 15.3053 10.0995 15.7283 9.88796C16.1514 9.66321 16.5546 9.47812 16.938 9.33269C17.3214 9.18726 17.6123 9.11455 17.8106 9.11455C18.3923 9.11455 18.8881 9.22032 19.2979 9.43185C19.7078 9.63016 20.0185 9.92101 20.23 10.3044C20.4547 10.6746 20.5671 11.1307 20.5671 11.6728C20.5671 11.8446 20.5473 12.1223 20.5076 12.5057C20.4812 12.8891 20.4415 13.3187 20.3886 13.7947C20.3358 14.2574 20.2895 14.7069 20.2498 15.1432C20.2234 15.5795 20.2102 15.9431 20.2102 16.2339C20.2102 16.5248 20.2829 16.7495 20.4283 16.9082C20.5737 17.0668 20.772 17.1461 21.0232 17.1461C21.248 17.1461 21.4727 17.0933 21.6975 16.9875C21.9222 16.8685 22.0941 16.7561 22.2131 16.6504L22.4907 16.9677C22.385 17.1395 22.2395 17.3378 22.0544 17.5626C21.8826 17.7741 21.6843 17.9724 21.4595 18.1575C21.248 18.3426 21.0166 18.4748 20.7654 18.5541ZM17.0768 17.1263C17.328 17.1263 17.6189 17.0404 17.9494 16.8685C18.2932 16.6834 18.6038 16.452 18.8815 16.1744L18.9806 14.1516L16.2836 14.9647C15.9002 15.0837 15.7085 15.3613 15.7085 15.7976C15.7085 16.1678 15.8341 16.4851 16.0853 16.7495C16.3497 17.0007 16.6802 17.1263 17.0768 17.1263Z",fill:"currentColor"})]})}function HP(){return l.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M10.9427 17.7161C10.7092 17.7161 10.5128 17.6206 10.3536 17.4295C10.2049 17.2278 10.0404 16.8935 9.85994 16.4264C9.70071 16.0336 9.54679 15.5559 9.39818 14.9933C9.24956 14.4307 9.11687 13.8363 9.0001 13.21C8.88334 12.5837 8.79311 11.9892 8.72941 11.4266C8.65511 10.7366 8.58611 10.1475 8.52242 9.65916C8.45872 9.17085 8.38972 8.7834 8.31542 8.49678C8.24111 8.19956 8.14557 7.98194 8.02881 7.84395C7.92265 7.70595 7.77404 7.63695 7.58296 7.63695C7.29635 7.63695 6.97259 7.86518 6.61167 8.32163C6.26136 8.76747 5.91106 9.40439 5.56076 10.2324C5.21045 11.0604 4.88138 12.0529 4.57354 13.21C4.26569 14.367 4.01623 15.6568 3.82516 17.0792C3.79331 17.2809 3.73493 17.4348 3.65001 17.541C3.5757 17.6471 3.45893 17.7002 3.2997 17.7002C3.05555 17.7002 2.86448 17.6206 2.72648 17.4614C2.59909 17.2915 2.5354 16.9943 2.5354 16.5697C2.5354 15.954 2.59379 15.3436 2.71056 14.7386C2.83794 14.1229 2.98655 13.5072 3.1564 12.8915C3.32624 12.2758 3.48016 11.6548 3.61816 11.0285C3.75616 10.3916 3.84108 9.75469 3.87293 9.11778C3.88354 8.93732 3.926 8.79932 4.00031 8.70378C4.07462 8.59763 4.19139 8.54455 4.35061 8.54455C4.49923 8.54455 4.64253 8.58701 4.78053 8.67194C4.91853 8.75686 5.04591 8.88955 5.16268 9.07001L4.57354 9.22924C5.06184 8.24202 5.54483 7.50426 6.02252 7.01595C6.51082 6.51704 7.04159 6.26758 7.61481 6.26758C8.2305 6.26758 8.69226 6.44804 9.0001 6.80896C9.30795 7.16988 9.53617 7.72718 9.68479 8.48086C9.84402 9.22393 9.98202 10.1899 10.0988 11.3788C10.2049 12.2599 10.3323 13.0189 10.4809 13.6558C10.6295 14.2927 10.7782 14.8341 10.9268 15.2799C11.0754 15.7258 11.2028 16.0973 11.3089 16.3945C11.4151 16.6918 11.4682 16.9518 11.4682 17.1748C11.4682 17.3446 11.4204 17.4773 11.3248 17.5728C11.2399 17.6684 11.1125 17.7161 10.9427 17.7161ZM2.42394 14.5953C2.19041 14.5953 2.01525 14.5475 1.89849 14.452C1.79233 14.3458 1.73926 14.2078 1.73926 14.038C1.73926 13.9 1.78172 13.7885 1.86664 13.7036C1.95156 13.608 2.09487 13.5231 2.29656 13.4488C3.44301 13.0136 4.7593 12.6951 6.24544 12.4934C7.73158 12.2917 9.33448 12.1909 11.0542 12.1909C11.4257 12.1909 11.6752 12.244 11.8025 12.3501C11.9405 12.4563 12.0095 12.6102 12.0095 12.8119C12.0095 13.0242 11.9087 13.2047 11.707 13.3533C11.5053 13.4913 11.2081 13.5603 10.8153 13.5603C9.59456 13.5603 8.57018 13.5974 7.74219 13.6717C6.9142 13.7354 6.2189 13.8203 5.65629 13.9265C5.1043 14.022 4.64253 14.1229 4.271 14.229C3.89947 14.3352 3.57039 14.4254 3.28378 14.4997C3.00778 14.5634 2.72117 14.5953 2.42394 14.5953Z",fill:"currentColor"}),l.jsx("path",{d:"M15.8411 17.7321C15.3634 17.7321 14.9441 17.6206 14.5832 17.3977C14.2329 17.1748 13.9622 16.8616 13.7711 16.4582C13.5801 16.0549 13.4845 15.5825 13.4845 15.0411C13.4845 14.5316 13.5641 14.0167 13.7234 13.4966C13.8826 12.9764 14.1055 12.4828 14.3921 12.0157C14.6787 11.5487 15.0184 11.1347 15.4112 10.7738C15.8146 10.4128 16.2551 10.1315 16.7328 9.92985C17.2105 9.71754 17.72 9.61139 18.2614 9.61139C18.5055 9.61139 18.7072 9.67508 18.8665 9.80246C19.0257 9.92985 19.1053 10.1209 19.1053 10.3757C19.1053 10.5031 19.0628 10.6145 18.9779 10.7101C18.9036 10.795 18.7868 10.8481 18.6276 10.8693C17.8845 10.9648 17.2317 11.2249 16.6691 11.6495C16.1171 12.0741 15.6872 12.589 15.3793 13.194C15.0715 13.7991 14.9176 14.4307 14.9176 15.0889C14.9176 15.3967 14.9441 15.678 14.9972 15.9328C15.0503 16.1769 15.167 16.4954 15.3475 16.8882L14.5195 15.7895C14.7637 16.0336 14.9653 16.1929 15.1246 16.2672C15.2944 16.3415 15.5226 16.3786 15.8093 16.3786C16.4886 16.3786 17.0937 15.9752 17.6245 15.1685C18.1659 14.3617 18.5586 13.1887 18.8028 11.6495C18.8452 11.4478 18.9195 11.2939 19.0257 11.1878C19.1318 11.071 19.2751 11.0126 19.4556 11.0126C19.7104 11.0126 19.928 11.1134 20.1084 11.3151C20.2889 11.5062 20.4004 11.761 20.4428 12.0794C20.5384 12.6951 20.6392 13.2471 20.7454 13.7354C20.8621 14.2131 21.0267 14.6696 21.239 15.1048C21.4513 15.5294 21.7379 15.9806 22.0988 16.4582C22.1943 16.5644 22.2474 16.6865 22.258 16.8245C22.2687 16.9625 22.2474 17.1005 22.1943 17.2385C22.1519 17.3658 22.0776 17.472 21.9714 17.5569C21.8759 17.6418 21.7591 17.6843 21.6211 17.6843C21.4725 17.6843 21.3504 17.6525 21.2549 17.5888C21.1594 17.5251 21.0691 17.4455 20.9842 17.3499C20.7825 17.0633 20.5914 16.782 20.411 16.506C20.2305 16.2194 20.066 15.8956 19.9174 15.5347C19.7688 15.1632 19.6414 14.7279 19.5352 14.229C19.4291 13.7195 19.3548 13.1197 19.3123 12.4297L19.8378 12.4138C19.6891 13.3904 19.4768 14.2237 19.2008 14.9137C18.9248 15.5931 18.6011 16.1398 18.2295 16.5538C17.858 16.9572 17.4652 17.2544 17.0512 17.4455C16.6479 17.6365 16.2445 17.7321 15.8411 17.7321Z",fill:"currentColor"})]})}function ZP(){return l.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M5.90041 5.74512L5.9037 4.99512L5.90041 5.74512ZM7.93293 7.53494L8.68292 7.53169V7.53169L7.93293 7.53494ZM3.88332 7.51716L3.13332 7.52041V7.52041L3.88332 7.51716ZM11.9633 3.10039L12.7132 3.09714V3.09714L11.9633 3.10039ZM11.971 4.88132L11.221 4.88457V4.88457L11.971 4.88132ZM11.2441 10.2274C11.2459 10.6416 11.5832 10.9759 11.9974 10.9741C12.4116 10.9723 12.7459 10.6351 12.7441 10.2209L11.9941 10.2241L11.2441 10.2274ZM7.19837 11.1C7.20017 11.5143 7.5374 11.8486 7.95161 11.8468C8.36582 11.845 8.70015 11.5078 8.69836 11.0935L7.94836 11.0968L7.19837 11.1ZM7.91364 3.08261L7.16365 3.08586V3.08586L7.91364 3.08261ZM16.0206 4.8991L16.7706 4.89585V4.89585L16.0206 4.8991ZM16.0437 10.2419L16.7937 10.2386V10.2386L16.0437 10.2419ZM16.0592 13.8037L16.0559 14.5537C16.2559 14.5546 16.448 14.4755 16.5895 14.3341C16.7309 14.1926 16.81 14.0005 16.8092 13.8005L16.0592 13.8037ZM20.0934 10.2597L19.3434 10.2629V10.2629L20.0934 10.2597ZM20.1165 15.6025L20.8665 15.5992V15.5992L20.1165 15.6025ZM3.91804 15.5313L4.66803 15.5281V15.5281L3.91804 15.5313ZM12.0481 22.6906L12.0514 21.9406L12.0481 22.6906ZM11.275 17.3511C11.2768 17.7653 11.614 18.0996 12.0282 18.0978C12.4424 18.096 12.7768 17.7588 12.775 17.3446L12.025 17.3478L11.275 17.3511ZM5.90041 5.74512L5.89711 6.49511C6.69585 6.49862 7.18084 7.05267 7.18294 7.53819L7.93293 7.53494L8.68292 7.53169C8.67651 6.05004 7.3415 5.00144 5.9037 4.99512L5.90041 5.74512ZM5.90041 5.74512L5.9037 4.99512C4.46322 4.9888 3.12687 6.03137 3.13332 7.52041L3.88332 7.51716L4.63331 7.51391C4.63124 7.03579 5.10105 6.49162 5.89711 6.49511L5.90041 5.74512ZM11.9633 3.10039L11.2133 3.10364L11.221 4.88457L11.971 4.88132L12.721 4.87807L12.7132 3.09714L11.9633 3.10039ZM11.971 4.88132L11.221 4.88457L11.2441 10.2274L11.9941 10.2241L12.7441 10.2209L12.721 4.87807L11.971 4.88132ZM7.94836 11.0968L8.69836 11.0935L8.68292 7.53169L7.93293 7.53494L7.18294 7.53819L7.19837 11.1L7.94836 11.0968ZM7.93293 7.53494L8.68292 7.53169L8.66363 3.07936L7.91364 3.08261L7.16365 3.08586L7.18294 7.53819L7.93293 7.53494ZM9.93073 1.31057L9.92744 2.06056C10.7262 2.06407 11.2112 2.61813 11.2133 3.10364L11.9633 3.10039L12.7132 3.09714C12.7068 1.61549 11.3718 0.566889 9.93402 0.560577L9.93073 1.31057ZM9.93073 1.31057L9.93402 0.560577C8.49355 0.554253 7.1572 1.59682 7.16365 3.08586L7.91364 3.08261L8.66363 3.07936C8.66156 2.60124 9.13138 2.05707 9.92744 2.06056L9.93073 1.31057ZM16.0206 4.8991L15.2706 4.90235L15.2937 10.2451L16.0437 10.2419L16.7937 10.2386L16.7706 4.89585L16.0206 4.8991ZM16.0437 10.2419L15.2937 10.2451L15.3092 13.807L16.0592 13.8037L16.8092 13.8005L16.7937 10.2386L16.0437 10.2419ZM13.9881 3.10928L13.9848 3.85927C14.7835 3.86278 15.2685 4.41683 15.2706 4.90235L16.0206 4.8991L16.7706 4.89585C16.7642 3.4142 15.4292 2.3656 13.9914 2.35928L13.9881 3.10928ZM13.9881 3.10928L13.9914 2.35928C12.5509 2.35296 11.2145 3.39552 11.221 4.88457L11.971 4.88132L12.721 4.87807C12.7189 4.39995 13.1887 3.85578 13.9848 3.85927L13.9881 3.10928ZM20.0934 10.2597L19.3434 10.2629L19.3665 15.6057L20.1165 15.6025L20.8665 15.5992L20.8433 10.2564L20.0934 10.2597ZM18.0608 8.46985L18.0575 9.21984C18.8563 9.22335 19.3413 9.7774 19.3434 10.2629L20.0934 10.2597L20.8433 10.2564C20.8369 8.77477 19.5019 7.72617 18.0641 7.71985L18.0608 8.46985ZM18.0608 8.46985L18.0641 7.71985C16.6236 7.71353 15.2873 8.7561 15.2937 10.2451L16.0437 10.2419L16.7937 10.2386C16.7917 9.76052 17.2615 9.21634 18.0575 9.21984L18.0608 8.46985ZM3.88332 7.51716L3.13332 7.52041L3.16805 15.5346L3.91804 15.5313L4.66803 15.5281L4.63331 7.51391L3.88332 7.51716ZM12.0481 22.6906L12.0514 21.9406C7.89788 21.9224 4.68292 18.9643 4.66803 15.5281L3.91804 15.5313L3.16805 15.5346C3.18725 19.967 7.25223 23.4196 12.0448 23.4406L12.0481 22.6906ZM20.1165 15.6025L19.3665 15.6057C19.3814 19.0346 16.2023 21.9589 12.0514 21.9406L12.0481 22.6906L12.0448 23.4406C16.8401 23.4617 20.8857 20.039 20.8665 15.5992L20.1165 15.6025ZM12.025 17.3478L12.775 17.3446C12.7686 15.8829 14.1415 14.5453 16.0559 14.5537L16.0592 13.8037L16.0625 13.0538C13.5037 13.0425 11.2643 14.8785 11.275 17.3511L12.025 17.3478Z",fill:"currentColor"})})}const VP=e=>l.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:l.jsxs("g",{"clip-path":"url(#clip0_1525_6)",children:[l.jsx("path",{d:"M21.6385 8.968L9.25891 21.2286C7.58831 22.8831 4.94267 23.0223 3.10768 21.5522C0.94897 19.8227 0.779042 16.5985 2.74401 14.6517L15.1213 2.38884C16.932 0.594929 19.852 0.601713 21.6543 2.40401C23.4687 4.21843 23.4616 7.16236 21.6385 8.968Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}),l.jsx("path",{d:"M15.7474 8.4187L13.2554 10.9108",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"}),l.jsx("path",{d:"M2.8709 14.5732C3.7602 13.8371 4.89243 13.4574 6.04735 13.5084C7.20227 13.5595 8.29683 14.0375 9.1181 14.8493C9.93934 15.661 10.4285 16.7483 10.491 17.8994C10.5534 19.0505 10.1846 20.1836 9.45611 21.0783",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"})]})}),WP=e=>l.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:l.jsx("path",{d:"M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z",stroke:"currentColor",strokeWidth:"1.5"})}),$P=e=>l.jsxs("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:[l.jsx("path",{d:"M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z",stroke:"currentColor",strokeWidth:"1.7"}),l.jsx("circle",{cx:"16",cy:"8",r:"2",fill:"currentColor",stroke:"currentColor",strokeWidth:"0"}),l.jsx("path",{d:"M2 12.5001L3.75159 10.9675C4.66286 10.1702 6.03628 10.2159 6.89249 11.0721L11.1822 15.3618C11.8694 16.0491 12.9512 16.1428 13.7464 15.5839L14.0446 15.3744C15.1888 14.5702 16.7369 14.6634 17.7765 15.599L21 18.5001",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round"})]}),UP=e=>l.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:l.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})}),qP=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"none",...e,children:l.jsx("path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",fill:"currentColor",stroke:"currentColor","stroke-width":"1.5"})}),YP=e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",style:{rotate:"-45deg"},fill:"none",...e,children:[l.jsx("path",{d:"M19 12L21.5 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M13.5 12L16 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 12L10.5 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M2.5 12H5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),GP=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",style:{rotate:"-45deg"},fill:"none",...e,children:l.jsx("path",{d:"M2.5 12L21.5002 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),KP=e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"none",...e,children:[l.jsx("path",{d:"M14.9999 9L8.99994 15M8.99994 9L14.9999 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M12.6863 22H11.3137C9.67871 22 8.8612 22 8.12612 21.6955C7.39104 21.391 6.81297 20.813 5.65685 19.6569L4.34315 18.3431C3.18702 17.187 2.60896 16.609 2.30448 15.8739C2 15.1388 2 14.3213 2 12.6863V11.3137C2 9.67871 2 8.8612 2.30448 8.12612C2.60896 7.39104 3.18702 6.81298 4.34315 5.65685L5.65685 4.34315C6.81297 3.18702 7.39104 2.60896 8.12612 2.30448C8.8612 2 9.67871 2 11.3137 2H12.6863C14.3213 2 15.1388 2 15.8739 2.30448C16.609 2.60896 17.187 3.18702 18.3431 4.34315L19.6569 5.65685C20.813 6.81297 21.391 7.39104 21.6955 8.12612C22 8.8612 22 9.67871 22 11.3137V12.6863C22 14.3213 22 15.1388 21.6955 15.8739C21.391 16.609 20.813 17.187 19.6569 18.3431L18.3431 19.6569C17.187 20.813 16.609 21.391 15.8739 21.6955C15.1388 22 14.3213 22 12.6863 22Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),XP=e=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"none",...e,children:l.jsx("path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5"})}),QP=e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"none",...e,children:[l.jsx("path",{d:"M4.25276 20.302C5.6554 21.5 7.77027 21.5 12 21.5C16.2297 21.5 18.3446 21.5 19.7472 20.302C19.9464 20.1319 20.1319 19.9464 20.302 19.7472C21.5 18.3446 21.5 16.2297 21.5 12C21.5 7.77027 21.5 5.6554 20.302 4.25276C20.1319 4.05358 19.9464 3.86808 19.7472 3.69797C18.3446 2.5 16.2297 2.5 12 2.5C7.77027 2.5 5.6554 2.5 4.25276 3.69797C4.05358 3.86808 3.86808 4.05358 3.69797 4.25276C2.5 5.6554 2.5 7.77027 2.5 12C2.5 16.2297 2.5 18.3446 3.69797 19.7472C3.86808 19.9464 4.05358 20.1319 4.25276 20.302Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M4 20L20 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M2.69803 15.8021L15.8058 2.69434",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M21.3058 8.19434L8.19803 21.3021",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M13.5 21.5L21.5 13.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M2.5 10.5L10.5 2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),JP=e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"none",...e,children:[l.jsx("path",{d:"M12 21.5V7M15 19C14.4102 19.6068 12.8403 22 12 22C11.1597 22 9.58984 19.6068 9 19",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M20.2327 11.5C21.4109 12.062 22 12.4405 22 13.0001C22 13.6934 21.0958 14.1087 19.2873 14.9395L15.8901 16.5M3.76727 11.5C2.58909 12.062 2 12.4405 2 13.0001C2 13.6934 2.90423 14.1087 4.7127 14.9395L8.1099 16.5",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8.11012 10.5L4.7127 8.93936C2.90423 8.10863 2 7.69326 2 7C2 6.30674 2.90423 5.89137 4.7127 5.06064L9.60573 2.81298C10.7856 2.27099 11.3755 2 12 2C12.6245 2 13.2144 2.27099 14.3943 2.81298L19.2873 5.06064C21.0958 5.89137 22 6.30674 22 7C22 7.69326 21.0958 8.10863 19.2873 8.93937L15.8899 10.5",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),e_=e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"none",...e,children:[l.jsx("path",{d:"M15.8899 12.5L19.2873 10.9394C21.0958 10.1086 22 9.69326 22 9C22 8.30674 21.0958 7.89137 19.2873 7.06064L14.3943 4.81298C13.2144 4.27099 12.6245 4 12 4C11.3755 4 10.7856 4.27099 9.60573 4.81298L4.7127 7.06064C2.90423 7.89137 2 8.30674 2 9C2 9.69326 2.90423 10.1086 4.7127 10.9394L8.11012 12.5",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 19.5V9M15 17C14.4102 17.6068 12.8403 20 12 20C11.1597 20 9.58984 17.6068 9 17",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),t_=e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"none",...e,children:[l.jsx("path",{d:"M16.9784 8L19.2873 9.06064C21.0958 9.89137 22 10.3067 22 11C22 11.6933 21.0958 12.1086 19.2873 12.9394L14.3943 15.187C13.2144 15.729 12.6245 16 12 16C11.3755 16 10.7856 15.729 9.60573 15.187L4.7127 12.9394C2.90423 12.1086 2 11.6933 2 11C2 10.3067 2.90423 9.89137 4.7127 9.06064L7.02165 8",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 2.5V10M15 5C14.4102 4.39316 12.8403 2 12 2C11.1597 2 9.58984 4.39316 9 5",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M20.2327 15.5C21.4109 16.062 22 16.4405 22 17.0001C22 17.6934 21.0958 18.1087 19.2873 18.9395L14.3943 21.1871C13.2144 21.7291 12.6245 22.0001 12 22.0001C11.3755 22.0001 10.7856 21.7291 9.60573 21.1871L4.7127 18.9395C2.90423 18.1087 2 17.6934 2 17.0001C2 16.4405 2.58909 16.062 3.76727 15.5",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),n_=e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"none",...e,children:[l.jsx("path",{d:"M15.8899 11.5L19.2873 13.0606C21.0958 13.8914 22 14.3067 22 15C22 15.6933 21.0958 16.1086 19.2873 16.9394L14.3943 19.187C13.2144 19.729 12.6245 20 12 20C11.3755 20 10.7856 19.729 9.60573 19.187L4.7127 16.9394C2.90423 16.1086 2 15.6933 2 15C2 14.3067 2.90423 13.8914 4.7127 13.0606L8.11012 11.5",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 4.5V15M15 7C14.4102 6.39316 12.8403 4 12 4C11.1597 4 9.58984 6.39316 9 7",stroke:"currentColor",strokeWidth:"2.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),r_=e=>l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",...e,children:[l.jsx("path",{d:"M6.71631 2.5401C6.78304 2.72823 6.96103 2.85395 7.16065 2.85395H8.95085C9.01436 2.85395 9.06848 2.80787 9.07861 2.74517L9.08452 2.71596C9.17602 2.26376 9.55456 1.92595 10.0142 1.88629C10.3039 1.8613 10.5957 1.87479 10.8819 1.92643L11.1179 1.96902C11.3619 2.01305 11.6024 2.07484 11.8374 2.15389L12.187 2.27149C12.6659 2.43958 13.1015 2.71243 13.4614 3.07032C13.6546 3.26246 13.8242 3.47747 13.9663 3.70997L14.1313 3.9795C14.3034 4.26104 14.4519 4.55648 14.5757 4.86231L15.1733 6.33888L15.1841 6.37599L15.3286 6.89161C15.4804 7.4339 15.5928 7.9865 15.6655 8.54493C15.7581 9.25606 15.7856 9.97432 15.7476 10.6904C15.6957 11.3033 15.3682 11.8595 14.8574 12.2021L13.855 12.8746L12.4589 13.6616C12.0103 13.9145 11.4574 13.8926 11.0302 13.605C10.7368 13.4075 10.5318 13.1036 10.4586 12.7576L10.379 12.3817C10.3727 12.352 10.3599 12.324 10.3416 12.2997C10.2882 12.2289 10.1957 12.2002 10.1108 12.2261C9.83962 12.3089 9.5635 12.3758 9.2835 12.4245C8.5308 12.5554 7.76154 12.5598 7.00713 12.4391L6.95049 12.4303C6.70223 12.3906 6.45654 12.3376 6.21431 12.2725C6.19213 12.2665 6.1686 12.2755 6.15618 12.2948C6.15255 12.3005 6.15004 12.3067 6.14878 12.3133L6.01715 13.0005C5.96488 13.2734 5.82008 13.52 5.60718 13.6985C5.27354 13.9784 4.81506 14.0569 4.40733 13.904L3.75146 13.6581L3.5742 13.5914C2.85443 13.3208 2.15743 12.993 1.48986 12.6114L0.775887 12.2628C0.570566 12.1625 0.428017 11.9673 0.39502 11.7412C0.289265 11.0258 0.23584 10.3033 0.23584 9.58009V9.33302C0.23584 8.09633 0.459022 6.86957 0.894043 5.71192L1.24365 4.78028L1.25439 4.75294L1.26611 4.72657L1.63428 3.9502C1.71297 3.78407 1.80564 3.62453 1.91064 3.47364C2.33254 2.86741 2.94403 2.41878 3.64893 2.19825C4.08066 2.04107 4.53495 1.95467 4.99424 1.94237L5.41758 1.93104L5.89999 1.94074C6.27133 1.9482 6.59798 2.18804 6.71631 2.5401ZM1.62451 9.58009C1.62451 9.94732 1.63998 10.3142 1.67036 10.68C1.69629 10.9921 1.89112 11.2627 2.17253 11.4002L4.13513 12.3591C4.2924 12.4359 4.47889 12.337 4.50354 12.1637C4.51775 12.0639 4.47245 11.9649 4.38759 11.9105L3.99756 11.66C3.6994 11.4679 3.59307 11.0819 3.75146 10.7645L3.88737 10.4935C3.90414 10.4601 3.92432 10.4285 3.94759 10.3992C4.10495 10.2009 4.3782 10.1373 4.60696 10.2456L5.50928 10.6729C6.01153 10.9108 6.54547 11.0763 7.09424 11.1641L7.15088 11.1729C7.75355 11.2693 8.36793 11.2648 8.96924 11.1602C9.45487 11.0758 9.92747 10.9276 10.3735 10.7178L11.4771 10.1983L11.7047 10.0914C11.881 10.0087 12.0877 10.0243 12.2496 10.1326C12.3019 10.1676 12.3479 10.2112 12.3856 10.2616L12.5688 10.5067C12.7991 10.813 12.7372 11.2479 12.4307 11.4778L11.9641 11.8277C11.8772 11.8929 11.8359 12.0023 11.8581 12.1085C11.8973 12.2962 12.1094 12.3897 12.2743 12.292L13.946 11.3016C14.1899 11.1571 14.3456 10.9003 14.3608 10.6172C14.3944 9.98559 14.3703 9.35183 14.2886 8.72462C14.2244 8.23199 14.1247 7.74402 13.9907 7.26563L13.855 6.78419L13.6681 6.17608C13.4977 5.62189 13.2597 5.09083 12.9593 4.59492L12.6558 4.09381C12.598 3.99835 12.5302 3.90931 12.4535 3.82823C12.1568 3.51461 11.7442 3.33692 11.3125 3.33692H11.0058C10.9303 3.33692 10.8558 3.35431 10.788 3.38773L10.7099 3.42626C10.5452 3.50753 10.4236 3.65594 10.3762 3.83341C10.3117 4.07527 10.0939 4.24448 9.8436 4.24717L8.03217 4.26661L6.28422 4.24755C6.01303 4.2446 5.77327 4.07073 5.6862 3.81388L5.66115 3.73999C5.62053 3.62018 5.53782 3.51918 5.42836 3.45575C5.29406 3.37791 5.14158 3.33692 4.98636 3.33692H4.69228C4.1913 3.33692 3.70258 3.52144 3.36328 3.89004C3.24271 4.02102 3.128 4.15496 3.05029 4.26661C2.98913 4.3545 2.93501 4.44719 2.88916 4.54395L2.53467 5.29395L2.19385 6.2002C1.81752 7.20165 1.62451 8.2632 1.62451 9.33302V9.58009Z",fill:"currentColor"}),l.jsx("path",{d:"M5.69281 9.31091C6.49086 9.31091 7.13781 8.66396 7.13781 7.8659C7.13781 7.06785 6.49086 6.4209 5.69281 6.4209C4.89475 6.4209 4.2478 7.06785 4.2478 7.8659C4.2478 8.66396 4.89475 9.31091 5.69281 9.31091Z",fill:"currentColor"}),l.jsx("path",{d:"M10.5095 9.31091C11.3075 9.31091 11.9545 8.66396 11.9545 7.8659C11.9545 7.06785 11.3075 6.4209 10.5095 6.4209C9.71144 6.4209 9.06449 7.06785 9.06449 7.8659C9.06449 8.66396 9.71144 9.31091 10.5095 9.31091Z",fill:"currentColor"})]}),Ba=({colors:e,currentColor:t,uniColor:n,realTotalColors:r=void 0,renderItem:o})=>{const s=t.toLowerCase(),c=(r||e).some(d=>d!=="multi"&&d.toLowerCase()===s);return l.jsx(l.Fragment,{children:e.map(d=>{const h=d==="multi",p=d.toLowerCase()===s||h&&!c,m=n(h?t:d),v=P5(m??"#000000");return o({color:d,isCurrent:p,isMulti:h,swatch:l.jsx("div",{className:"drawo-colorselect-item-container","data-multi":h?"true":"false","data-current":p?"true":"false",style:{borderColor:m},children:l.jsx("div",{className:"drawo-colorselect-item-child","data-multi":h?"true":"false","data-current":p?"true":"false","data-dark":v&&wT(v)?"true":"false",style:{background:h?yT:m},children:l.jsx($b,{})})})})})})};function t2({className:e,defaultValue:t,value:n,min:r=0,max:o=100,...s}){const c=g.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,o],[n,t,r,o]);return l.jsxs(FO,{"data-slot":"slider",defaultValue:t,value:n,min:r,max:o,className:"drawo-slider-root"+(e?" "+e:""),...s,children:[l.jsx(PO,{"data-slot":"slider-track",className:"drawo-slider-track",children:l.jsx(_O,{"data-slot":"slider-range","data-left":(n||t||[0])[0]<o/2,"data-right":(n||t||[0])[0]>o/2,className:"drawo-slider-range"})}),Array.from({length:c.length},(d,h)=>l.jsx(IO,{"data-slot":"slider-thumb",className:"drawo-slider-thumb"},h))]})}function wC({className:e,size:t="default",...n}){return l.jsx(WO,{"data-slot":"switch","data-size":t,className:"drawo-switch"+(e?" "+e:""),...n,children:l.jsx($O,{"data-slot":"switch-thumb",className:"drawo-switch-thumb"})})}const a_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.77409 12.4814C3.07033 12.778 3.07004 13.2586 2.77343 13.5548L2.61779 13.7103C2.48483 13.8431 2.48483 14.058 2.61779 14.1908C2.75125 14.3241 2.96801 14.3241 3.10147 14.1908L4.8136 12.4807C5.1102 12.1845 5.59079 12.1848 5.88704 12.4814C6.18328 12.778 6.18298 13.2586 5.88638 13.5548L4.17426 15.2648C3.4481 15.9901 2.27116 15.9901 1.545 15.2648C0.818334 14.5391 0.818333 13.362 1.545 12.6362L1.70065 12.4807C1.99725 12.1845 2.47784 12.1848 2.77409 12.4814ZM7.68665 13.4896C7.98307 13.7861 7.98307 14.2667 7.68665 14.5631L5.54424 16.7055C5.24782 17.0019 4.76723 17.0019 4.4708 16.7055C4.17438 16.409 4.17438 15.9285 4.4708 15.632L6.61321 13.4896C6.90963 13.1932 7.39023 13.1932 7.68665 13.4896ZM10.4958 16.2953C10.7922 16.5918 10.7922 17.0724 10.4958 17.3688L8.36805 19.4965C8.07162 19.7929 7.59103 19.7929 7.29461 19.4965C6.99818 19.2001 6.99818 18.7195 7.29461 18.4231L9.42237 16.2953C9.71879 15.9989 10.1994 15.9989 10.4958 16.2953ZM7.29719 16.696C7.5903 16.9957 7.58495 17.4762 7.28525 17.7693L5.55508 19.4614C5.25538 19.7545 4.77481 19.7491 4.48171 19.4494C4.1886 19.1497 4.19395 18.6692 4.49365 18.3761L6.22382 16.684C6.52352 16.3909 7.00409 16.3963 7.29719 16.696ZM11.4811 18.118C11.7774 18.4146 11.7771 18.8952 11.4805 19.1915L9.76834 20.9015C9.63539 21.0343 9.63539 21.2492 9.76834 21.382C9.9018 21.5153 10.1186 21.5153 10.252 21.382L10.4077 21.2265C10.7043 20.9303 11.1849 20.9306 11.4811 21.2272C11.7774 21.5238 11.7771 22.0044 11.4805 22.3006L11.3248 22.4561C10.5987 23.1813 9.42171 23.1813 8.69556 22.4561C7.96889 21.7303 7.96889 20.5532 8.69556 19.8274L10.4077 18.1174C10.7043 17.8211 11.1849 17.8214 11.4811 18.118Z",fill:"currentColor"}),l.jsx("path",{d:"M10.8463 5.40912L8.65863 7.59023C8.2565 7.99113 7.88763 8.35888 7.59632 8.69132C7.40925 8.90481 7.2223 9.13847 7.06394 9.39666L7.04262 9.37541C7.00216 9.33507 6.98191 9.31487 6.96159 9.29516C6.58134 8.92621 6.13406 8.63287 5.64368 8.43084C5.61748 8.42004 5.59088 8.4095 5.53769 8.38842L5.21196 8.25936C4.77069 8.08451 4.65309 7.51645 4.98886 7.1817C5.9525 6.22099 7.10949 5.06751 7.66786 4.83584C8.1603 4.63152 8.69225 4.56354 9.20531 4.63936C9.67539 4.70883 10.1201 4.9503 10.8463 5.40912Z",fill:"currentColor"}),l.jsx("path",{d:"M14.5818 16.8932C14.7581 17.0722 14.8752 17.1985 14.981 17.3336C15.1207 17.5118 15.2456 17.7011 15.3544 17.8995C15.4769 18.1229 15.5721 18.3615 15.7623 18.8388C15.9172 19.2273 16.4317 19.33 16.7306 19.032L16.8029 18.9599C17.7665 17.9992 18.9235 16.8457 19.1558 16.289C19.3608 15.7981 19.429 15.2677 19.3529 14.7562C19.2832 14.2876 19.0411 13.8443 18.581 13.1204L16.386 15.3088C15.9748 15.7188 15.5977 16.0948 15.2567 16.3893C15.0523 16.5658 14.8287 16.7422 14.5818 16.8932Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5023 14.3674L20.5319 9.35289C21.2563 8.63072 21.6185 8.26963 21.8092 7.81046C22 7.3513 22 6.84065 22 5.81937V5.33146C22 3.76099 22 2.97576 21.5106 2.48788C21.0213 2 20.2337 2 18.6585 2H18.1691C17.1447 2 16.6325 2 16.172 2.19019C15.7114 2.38039 15.3493 2.74147 14.6249 3.46364L9.59522 8.47817C8.74882 9.32202 8.224 9.84526 8.02078 10.3506C7.95657 10.5103 7.92446 10.6682 7.92446 10.8339C7.92446 11.5238 8.48138 12.0791 9.59522 13.1896L9.74492 13.3388L11.4985 11.5591C11.7486 11.3053 12.1571 11.3022 12.4109 11.5523C12.6647 11.8024 12.6678 12.2109 12.4177 12.4647L10.6587 14.2499L10.7766 14.3674C11.8905 15.4779 12.4474 16.0331 13.1394 16.0331C13.2924 16.0331 13.4387 16.006 13.5858 15.9518C14.1048 15.7607 14.6345 15.2325 15.5023 14.3674ZM17.8652 8.47854C17.2127 9.12904 16.1548 9.12904 15.5024 8.47854C14.8499 7.82803 14.8499 6.77335 15.5024 6.12284C16.1548 5.47233 17.2127 5.47233 17.8652 6.12284C18.5177 6.77335 18.5177 7.82803 17.8652 8.47854Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5023 14.3674L20.5319 9.35289C21.2563 8.63072 21.6185 8.26963 21.8092 7.81046C22 7.3513 22 6.84065 22 5.81937V5.33146C22 3.76099 22 2.97576 21.5106 2.48788C21.0213 2 20.2337 2 18.6585 2H18.1691C17.1447 2 16.6325 2 16.172 2.19019C15.7114 2.38039 15.3493 2.74147 14.6249 3.46364L9.59522 8.47817C8.74882 9.32202 8.224 9.84526 8.02078 10.3506C7.95657 10.5103 7.92446 10.6682 7.92446 10.8339C7.92446 11.5238 8.48138 12.0791 9.59522 13.1896L9.74492 13.3388L11.4985 11.5591C11.7486 11.3053 12.1571 11.3022 12.4109 11.5523C12.6647 11.8024 12.6678 12.2109 12.4177 12.4647L10.6587 14.2499L10.7766 14.3674C11.8905 15.4779 12.4474 16.0331 13.1394 16.0331C13.2924 16.0331 13.4387 16.006 13.5858 15.9518C14.1048 15.7607 14.6345 15.2325 15.5023 14.3674ZM17.8652 8.47854C17.2127 9.12904 16.1548 9.12904 15.5024 8.47854C14.8499 7.82803 14.8499 6.77335 15.5024 6.12284C16.1548 5.47233 17.2127 5.47233 17.8652 6.12284C18.5177 6.77335 18.5177 7.82803 17.8652 8.47854Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.77409 12.4814C3.07033 12.778 3.07004 13.2586 2.77343 13.5548L2.61779 13.7103C2.48483 13.8431 2.48483 14.058 2.61779 14.1908C2.75125 14.3241 2.96801 14.3241 3.10147 14.1908L4.8136 12.4807C5.1102 12.1845 5.59079 12.1848 5.88704 12.4814C6.18328 12.778 6.18298 13.2586 5.88638 13.5548L4.17426 15.2648C3.4481 15.9901 2.27116 15.9901 1.545 15.2648C0.818334 14.5391 0.818333 13.362 1.545 12.6362L1.70065 12.4807C1.99725 12.1845 2.47784 12.1848 2.77409 12.4814ZM7.29719 16.696C7.5903 16.9957 7.58495 17.4762 7.28525 17.7693L5.55508 19.4614C5.25538 19.7545 4.77481 19.7491 4.48171 19.4494C4.1886 19.1497 4.19395 18.6692 4.49365 18.3761L6.22382 16.684C6.52352 16.3909 7.00409 16.3963 7.29719 16.696ZM11.4811 18.118C11.7774 18.4146 11.7771 18.8952 11.4805 19.1915L9.76834 20.9015C9.63539 21.0343 9.63539 21.2492 9.76834 21.382C9.9018 21.5153 10.1186 21.5153 10.252 21.382L10.4077 21.2265C10.7043 20.9303 11.1849 20.9306 11.4811 21.2272C11.7774 21.5238 11.7771 22.0044 11.4805 22.3006L11.3248 22.4561C10.5987 23.1813 9.42171 23.1813 8.69556 22.4561C7.96889 21.7303 7.96889 20.5532 8.69556 19.8274L10.4077 18.1174C10.7043 17.8211 11.1849 17.8214 11.4811 18.118Z",fill:"currentColor"}),l.jsxs("g",{opacity:"0.5",children:[l.jsx("path",{d:"M10.8461 5.40925L8.65837 7.59037C8.25624 7.99126 7.88737 8.35901 7.59606 8.69145C7.40899 8.90494 7.22204 9.13861 7.06368 9.39679L7.04237 9.37554C7.00191 9.3352 6.98165 9.31501 6.96133 9.29529C6.58108 8.92635 6.1338 8.63301 5.64342 8.43097C5.61722 8.42018 5.59062 8.40964 5.53743 8.38856L5.2117 8.25949C4.77043 8.08464 4.65283 7.51659 4.9886 7.18184C5.95224 6.22112 7.10923 5.06765 7.6676 4.83597C8.16004 4.63166 8.692 4.56368 9.20505 4.6395C9.67514 4.70897 10.1198 4.95043 10.8461 5.40925Z",fill:"currentColor"}),l.jsx("path",{d:"M14.5816 16.8934C14.7579 17.0723 14.8749 17.1987 14.9808 17.3337C15.1204 17.5119 15.2453 17.7012 15.3542 17.8996C15.4767 18.123 15.5718 18.3616 15.7621 18.8389C15.9169 19.2274 16.4315 19.3301 16.7303 19.0322L16.8026 18.9601C17.7662 17.9993 18.9232 16.8458 19.1556 16.2891C19.3605 15.7982 19.4287 15.2678 19.3526 14.7563C19.283 14.2877 19.0408 13.8444 18.5807 13.1205L16.3857 15.3089C15.9745 15.7189 15.5974 16.0949 15.2564 16.3894C15.052 16.5659 14.8284 16.7423 14.5816 16.8934Z",fill:"currentColor"})]}),l.jsxs("g",{opacity:"0.5",children:[l.jsx("path",{d:"M7.68621 14.5633C7.98263 14.2669 7.98263 13.7863 7.68621 13.4899C7.38979 13.1935 6.90919 13.1935 6.61277 13.4899L4.47036 15.6323C4.17394 15.9287 4.17394 16.4093 4.47036 16.7057C4.76679 17.0021 5.24738 17.0021 5.5438 16.7057L7.68621 14.5633Z",fill:"currentColor"}),l.jsx("path",{d:"M10.4954 17.369C10.7918 17.0726 10.7918 16.592 10.4954 16.2956C10.1989 15.9992 9.71835 15.9992 9.42193 16.2956L7.29417 18.4233C6.99774 18.7198 6.99774 19.2003 7.29417 19.4968C7.59059 19.7932 8.07118 19.7932 8.36761 19.4968L10.4954 17.369Z",fill:"currentColor"})]})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M6.07821 13.4174C6.37128 13.1247 6.37157 12.6498 6.07886 12.3567C5.78614 12.0636 5.31127 12.0634 5.0182 12.3561L6.07821 13.4174ZM3.85646 14.5764L3.32646 14.0457V14.0457L3.85646 14.5764ZM2.31852 13.0403L1.78851 12.5097L1.78851 12.5097L2.31852 13.0403ZM3.00232 13.4174C3.29539 13.1247 3.29568 12.6498 3.00297 12.3567C2.71025 12.0636 2.23538 12.0634 1.94231 12.3561L3.00232 13.4174ZM11.6057 18.987C11.8988 18.6943 11.8991 18.2194 11.6063 17.9263C11.3136 17.6332 10.8388 17.633 10.5457 17.9257L11.6057 18.987ZM9.38395 20.146L9.91396 20.6767L9.38395 20.146ZM10.9219 21.6821L11.4519 22.2127V22.2127L10.9219 21.6821ZM11.6057 22.0591C11.8988 21.7664 11.8991 21.2915 11.6063 20.9985C11.3136 20.7054 10.8388 20.7051 10.5457 20.9978L11.6057 22.0591ZM10.6328 17.186C10.9257 16.8931 10.9257 16.4182 10.6328 16.1253C10.3399 15.8324 9.86499 15.8324 9.5721 16.1253L10.6328 17.186ZM7.46967 18.2277C7.17678 18.5206 7.17678 18.9955 7.46967 19.2884C7.76256 19.5813 8.23744 19.5813 8.53033 19.2884L7.46967 18.2277ZM7.85705 14.4136C8.14994 14.1207 8.14994 13.6459 7.85705 13.353C7.56415 13.0601 7.08928 13.0601 6.79639 13.353L7.85705 14.4136ZM4.67948 15.4699C4.38659 15.7628 4.38659 16.2376 4.67948 16.5305C4.97238 16.8234 5.44725 16.8234 5.74014 16.5305L4.67948 15.4699ZM7.46042 17.5818C7.75656 17.2921 7.76184 16.8173 7.47223 16.5212C7.18261 16.225 6.70777 16.2197 6.41163 16.5094L7.46042 17.5818ZM4.70206 18.1813C4.40592 18.4709 4.40064 18.9458 4.69026 19.2419C4.97987 19.538 5.45472 19.5433 5.75085 19.2537L4.70206 18.1813ZM5.0182 12.3561L3.32646 14.0457L4.38647 15.1071L6.07821 13.4174L5.0182 12.3561ZM2.84853 13.571L3.00232 13.4174L1.94231 12.3561L1.78851 12.5097L2.84853 13.571ZM2.84853 14.0457C2.71716 13.9145 2.71716 13.7022 2.84853 13.571L1.78851 12.5097C1.0705 13.2268 1.0705 14.3899 1.78851 15.1071L2.84853 14.0457ZM3.32646 14.0457C3.19458 14.1775 2.9804 14.1775 2.84853 14.0457L1.78851 15.1071C2.50602 15.8237 3.66896 15.8237 4.38647 15.1071L3.32646 14.0457ZM10.5457 17.9257L8.85394 19.6154L9.91396 20.6767L11.6057 18.987L10.5457 17.9257ZM11.4519 22.2127L11.6057 22.0591L10.5457 20.9978L10.3919 21.1514L11.4519 22.2127ZM8.85394 22.2127C9.57145 22.9294 10.7344 22.9294 11.4519 22.2127L10.3919 21.1514C10.26 21.2831 10.0458 21.2831 9.91396 21.1514L8.85394 22.2127ZM8.85394 19.6154C8.13593 20.3325 8.13593 21.4956 8.85394 22.2127L9.91396 21.1514C9.78259 21.0202 9.78259 20.8079 9.91396 20.6767L8.85394 19.6154ZM9.5721 16.1253L7.46967 18.2277L8.53033 19.2884L10.6328 17.186L9.5721 16.1253ZM6.79639 13.353L4.67948 15.4699L5.74014 16.5305L7.85705 14.4136L6.79639 13.353ZM6.41163 16.5094L4.70206 18.1813L5.75085 19.2537L7.46042 17.5818L6.41163 16.5094Z",fill:"currentColor"}),l.jsx("path",{d:"M9.74292 13.0566L10.2725 12.5254L9.74292 13.0566ZM9.74292 8.40116L9.21339 7.87003H9.21339L9.74292 8.40116ZM15.5797 14.2204L16.1092 14.7515V14.7515L15.5797 14.2204ZM10.9103 14.2204L10.3807 14.7515L10.9103 14.2204ZM20.5495 9.26548L20.02 8.73435L20.5495 9.26548ZM15.9551 1.49472C15.5723 1.65283 15.3901 2.09136 15.5482 2.47421C15.7063 2.85706 16.1448 3.03925 16.5277 2.88115L15.9551 1.49472ZM9.79706 13.1073C9.50373 13.3998 9.50302 13.8747 9.79547 14.168C10.0879 14.4613 10.5628 14.4621 10.8561 14.1696L9.79706 13.1073ZM12.6072 12.4238C12.9005 12.1314 12.9012 11.6565 12.6087 11.3632C12.3163 11.0698 11.8414 11.0691 11.5481 11.3616L12.6072 12.4238ZM13.6861 15.786L13.9453 16.4897L13.6861 15.786ZM8.18721 10.2514L7.49137 9.97154L8.18721 10.2514ZM14.4546 4.76267C14.748 4.47021 14.7487 3.99534 14.4562 3.70201C14.1638 3.40868 13.6889 3.40796 13.3956 3.70041L14.4546 4.76267ZM20.02 8.73435L15.0501 13.6893L16.1092 14.7515L21.079 9.79661L20.02 8.73435ZM11.4398 13.6893L10.2725 12.5254L9.21339 13.5877L10.3807 14.7515L11.4398 13.6893ZM18.2148 2.75H18.6983V1.25H18.2148V2.75ZM21.2501 5.29186V5.77394H22.7501V5.29186H21.2501ZM18.6983 2.75C19.4977 2.75 20.022 2.75158 20.4101 2.80361C20.7769 2.85278 20.9079 2.93434 20.987 3.01321L22.0461 1.95096C21.6417 1.54774 21.1417 1.38826 20.6094 1.31691C20.0985 1.24842 19.4554 1.25 18.6983 1.25V2.75ZM22.7501 5.29186C22.7501 4.53722 22.7517 3.89558 22.6829 3.38559C22.6112 2.85381 22.4508 2.35448 22.0461 1.95096L20.987 3.01321C21.0658 3.09176 21.1472 3.22143 21.1964 3.58606C21.2485 3.9725 21.2501 4.49469 21.2501 5.29186H22.7501ZM10.2725 12.5254C9.70713 11.9618 9.33773 11.5913 9.10037 11.2811C8.87618 10.9881 8.84204 10.8391 8.84204 10.7289H7.34204C7.34204 11.3004 7.58305 11.7666 7.90915 12.1927C8.22209 12.6016 8.67813 13.054 9.21339 13.5877L10.2725 12.5254ZM10.3807 14.7515C10.916 15.2852 11.3698 15.7398 11.7798 16.0518C12.2073 16.3769 12.6738 16.6163 13.245 16.6163V15.1163C13.1323 15.1163 12.9818 15.0814 12.688 14.8579C12.3768 14.6212 12.0051 14.2529 11.4398 13.6893L10.3807 14.7515ZM21.079 9.79661C21.7513 9.12636 22.2451 8.65287 22.5042 8.02914L21.119 7.45364C21.0011 7.73733 20.7792 7.97743 20.02 8.73435L21.079 9.79661ZM21.2501 5.77394C21.2501 6.84444 21.2367 7.1702 21.119 7.45364L22.5042 8.02914C22.7634 7.40516 22.7501 6.72176 22.7501 5.77394H21.2501ZM18.2148 1.25C17.2636 1.25 16.5797 1.23679 15.9551 1.49472L16.5277 2.88115C16.8133 2.76321 17.1415 2.75 18.2148 2.75V1.25ZM10.8561 14.1696L12.6072 12.4238L11.5481 11.3616L9.79706 13.1073L10.8561 14.1696ZM15.0501 13.6893C14.6145 14.1236 14.2907 14.4459 14.0134 14.6853C13.7349 14.9258 13.557 15.0343 13.4268 15.0822L13.9453 16.4897C14.3279 16.3488 14.6681 16.1019 14.9938 15.8205C15.3208 15.5381 15.6875 15.172 16.1092 14.7515L15.0501 13.6893ZM13.4268 15.0822C13.3601 15.1068 13.3031 15.1163 13.245 15.1163V16.6163C13.489 16.6163 13.7212 16.5723 13.9453 16.4897L13.4268 15.0822ZM9.21339 7.87003C8.8017 8.28048 8.44233 8.63824 8.16266 8.9574C7.88434 9.27503 7.63891 9.60463 7.49137 9.97154L8.88306 10.5312C8.93632 10.3987 9.05058 10.2201 9.29083 9.94596C9.52973 9.67332 9.84781 9.35566 10.2725 8.93229L9.21339 7.87003ZM7.49137 9.97154C7.39467 10.212 7.34204 10.4628 7.34204 10.7289H8.84204C8.84204 10.6676 8.85286 10.6063 8.88306 10.5312L7.49137 9.97154ZM10.2725 8.93229L14.4546 4.76267L13.3956 3.70041L9.21339 7.87003L10.2725 8.93229Z",fill:"currentColor"}),l.jsx("path",{d:"M8.03732 10.1018L8.56765 9.57148L8.56686 9.57068L8.03732 10.1018ZM11.6708 6.70352C12.0191 6.92769 12.4831 6.82707 12.7073 6.47876C12.9315 6.13045 12.8309 5.66636 12.4826 5.44219L11.6708 6.70352ZM11.5418 5.72863L11.9477 5.09796L11.9477 5.09796L11.5418 5.72863ZM9.35765 4.60789L9.46729 3.86595L9.35765 4.60789ZM5.19137 7.12001L5.7209 7.65114V7.65114L5.19137 7.12001ZM7.8385 4.80203L8.12592 5.49477L7.8385 4.80203ZM5.73367 8.31238L5.45738 9.00964L5.45738 9.00964L5.73367 8.31238ZM5.5527 9.04774C5.93568 9.20553 6.37406 9.02298 6.53185 8.64C6.68964 8.25702 6.50709 7.81863 6.12411 7.66084L5.5527 9.04774ZM5.41182 8.18485L5.68811 7.4876L5.6881 7.4876L5.41182 8.18485ZM7.6568 10.7819C7.94969 11.0748 8.42456 11.0748 8.71746 10.7819C9.01035 10.489 9.01035 10.0142 8.71746 9.72128L7.6568 10.7819ZM8.15854 9.1636C7.86521 8.87114 7.39034 8.87186 7.09789 9.16519C6.80543 9.45852 6.80615 9.93339 7.09948 10.2258L8.15854 9.1636ZM12.4826 5.44219L11.9477 5.09796L11.1359 6.35929L11.6708 6.70352L12.4826 5.44219ZM11.9477 5.09796C11.421 4.75893 10.9904 4.48119 10.6187 4.28092C10.2377 4.07557 9.87347 3.92597 9.46729 3.86595L9.248 5.34983C9.41668 5.37476 9.60814 5.44027 9.9072 5.60142C10.2157 5.76764 10.5898 6.0078 11.1359 6.35929L11.9477 5.09796ZM5.7209 7.65114C6.19994 7.17354 6.71143 6.6638 7.17057 6.24495C7.39993 6.03572 7.60728 5.85743 7.78387 5.72132C7.97207 5.57626 8.08295 5.5126 8.12592 5.49477L7.55107 4.10929C7.31817 4.20593 7.07924 4.37058 6.86816 4.53327C6.64547 4.70491 6.40406 4.91382 6.15964 5.13679C5.6712 5.58237 5.13501 6.11714 4.66185 6.58887L5.7209 7.65114ZM9.46729 3.86595C8.82208 3.77059 8.15942 3.85688 7.55107 4.10929L8.12592 5.49477C8.49073 5.34341 8.87932 5.29534 9.248 5.34983L9.46729 3.86595ZM5.13554 8.88211L5.45738 9.00964L6.00995 7.61513L5.68811 7.4876L5.13554 8.88211ZM5.45738 9.00964C5.51174 9.03118 5.53257 9.03945 5.5527 9.04774L6.12411 7.66084C6.09245 7.6478 6.06072 7.63524 6.00995 7.61513L5.45738 9.00964ZM4.66185 6.58887C3.9466 7.30195 4.19893 8.51098 5.13554 8.88211L5.6881 7.4876C5.75268 7.51318 5.77259 7.5996 5.7209 7.65114L4.66185 6.58887ZM7.50699 10.6321L7.6568 10.7819L8.71746 9.72128L8.56765 9.57148L7.50699 10.6321ZM7.09948 10.2258L7.50779 10.6329L8.56686 9.57068L8.15854 9.1636L7.09948 10.2258Z",fill:"currentColor"}),l.jsx("path",{d:"M13.9246 16.025L13.3942 16.5553C13.4058 16.5669 13.4178 16.5781 13.4301 16.5889L13.9246 16.025ZM18.5443 11.4859C18.3191 11.1382 17.8548 11.0389 17.5071 11.264C17.1594 11.4891 17.06 11.9535 17.2852 12.3012L18.5443 11.4859ZM18.26 12.4268L17.6304 12.8344L17.6304 12.8344L18.26 12.4268ZM19.3841 14.6044L20.1259 14.4941L19.3841 14.6044ZM16.8644 18.7582L16.3349 18.2271L16.3349 18.2271L16.8644 18.7582ZM19.1894 16.119L18.4972 15.8301L19.1894 16.119ZM16.5329 18.3607C16.3796 17.976 15.9433 17.7884 15.5585 17.9418C15.1738 18.0951 14.9862 18.5314 15.1396 18.9162L16.5329 18.3607ZM13.8746 16.9786C14.186 17.2517 14.6599 17.2206 14.933 16.9091C15.206 16.5977 15.1749 16.1238 14.8635 15.8507L13.8746 16.9786ZM16.793 18.8294L17.3225 19.3605L17.3225 19.3605L16.793 18.8294ZM14.2159 15.2556C13.923 14.9627 13.4481 14.9627 13.1552 15.2556C12.8623 15.5485 12.8623 16.0234 13.1552 16.3163L14.2159 15.2556ZM17.2852 12.3012L17.6304 12.8344L18.8895 12.0192L18.5443 11.4859L17.2852 12.3012ZM16.3349 18.2271L16.2634 18.2983L17.3225 19.3605L17.394 19.2893L16.3349 18.2271ZM17.6304 12.8344C17.983 13.379 18.2238 13.7518 18.3905 14.0592C18.552 14.3573 18.6174 14.5475 18.6423 14.7147L20.1259 14.4941C20.0656 14.0882 19.9152 13.7245 19.7092 13.3444C19.5082 12.9737 19.2296 12.5443 18.8895 12.0192L17.6304 12.8344ZM17.394 19.2893C17.8671 18.8176 18.4035 18.283 18.8504 17.796C19.0741 17.5523 19.2836 17.3116 19.4558 17.0895C19.619 16.8791 19.7843 16.6406 19.8815 16.4079L18.4972 15.8301C18.4796 15.8724 18.416 15.9827 18.2704 16.1704C18.1339 16.3464 17.9552 16.5531 17.7453 16.7818C17.3252 17.2395 16.8139 17.7495 16.3349 18.2271L17.394 19.2893ZM18.6423 14.7147C18.6967 15.081 18.6487 15.4672 18.4972 15.8301L19.8815 16.4079C20.135 15.8005 20.2218 15.1387 20.1259 14.4941L18.6423 14.7147ZM14.8635 15.8507L14.419 15.461L13.4301 16.5889L13.8746 16.9786L14.8635 15.8507ZM16.2634 18.2983C16.3072 18.2547 16.3661 18.2444 16.4081 18.2528C16.4504 18.2613 16.5069 18.2955 16.5329 18.3607L15.1396 18.9162C15.4965 19.8115 16.6547 20.0263 17.3225 19.3605L16.2634 18.2983ZM14.4549 15.4946L14.2159 15.2556L13.1552 16.3163L13.3942 16.5553L14.4549 15.4946Z",fill:"currentColor"}),l.jsx("path",{d:"M15.0499 9.41414C15.3433 9.7066 15.8182 9.70588 16.1106 9.41255C16.4031 9.11922 16.4023 8.64434 16.109 8.35189L15.0499 9.41414ZM17.3846 8.35189C17.0913 8.64434 17.0906 9.11922 17.383 9.41255C17.6755 9.70588 18.1504 9.7066 18.4437 9.41414L17.3846 8.35189ZM18.4437 6.0242C17.5063 5.08959 15.9874 5.08959 15.0499 6.0242L16.109 7.08645C16.461 6.73551 17.0326 6.73551 17.3846 7.08645L18.4437 6.0242ZM15.0499 6.0242C14.1113 6.96005 14.1113 8.47829 15.0499 9.41414L16.109 8.35189C15.7583 8.00219 15.7583 7.43615 16.109 7.08645L15.0499 6.0242ZM18.4437 9.41414C19.3824 8.47829 19.3824 6.96005 18.4437 6.0242L17.3846 7.08645C17.7354 7.43615 17.7354 8.00219 17.3846 8.35189L18.4437 9.41414Z",fill:"currentColor"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M22.0001 5.36519L22.7501 5.36519V5.36519H22.0001ZM9.4546 13.3029L9.98381 12.7714L9.4546 13.3029ZM9.4546 8.54376L9.98381 9.07521L9.4546 8.54376ZM15.4286 14.4926L14.8994 13.9612L15.4286 14.4926ZM10.6494 14.4926L10.1202 15.0241L10.6494 14.4926ZM20.5154 9.42733L21.0446 9.95878L20.5154 9.42733ZM22.0001 5.85801L21.2501 5.85801V5.85801H22.0001ZM14.5413 3.47846L14.0121 2.94701V2.94701L14.5413 3.47846ZM13.4905 16.0931L13.2315 15.3892L13.4905 16.0931ZM7.8623 10.4352L8.55803 10.7153L7.8623 10.4352ZM19.9862 8.89589L14.8994 13.9612L15.9578 15.0241L21.0446 9.95878L19.9862 8.89589ZM11.1786 13.9612L9.98381 12.7714L8.92539 13.8343L10.1202 15.0241L11.1786 13.9612ZM9.98381 9.07521L15.0705 4.00991L14.0121 2.94701L8.9254 8.01231L9.98381 9.07521ZM18.1257 2.75H18.6207V1.25H18.1257V2.75ZM21.2501 5.36519L21.2501 5.85801L22.7501 5.85802L22.7501 5.36519L21.2501 5.36519ZM18.6207 2.75C19.4383 2.75 19.9764 2.75158 20.3752 2.80497C20.7527 2.85552 20.8912 2.93987 20.976 3.02427L22.0344 1.96137C21.6242 1.55295 21.117 1.3909 20.5743 1.31824C20.0528 1.24842 19.3961 1.25 18.6207 1.25V2.75ZM22.7501 5.36519C22.7501 4.5933 22.7517 3.93861 22.6815 3.41858C22.6083 2.87664 22.445 2.37023 22.0344 1.96137L20.976 3.02427C21.0603 3.10823 21.1444 3.24483 21.195 3.61928C21.2485 4.01563 21.2501 4.55072 21.2501 5.36519H22.7501ZM9.98381 12.7714C9.40553 12.1956 9.02646 11.8158 8.78266 11.4976C8.55202 11.1966 8.51489 11.0409 8.51489 10.9233H7.01489C7.01489 11.5027 7.25938 11.9759 7.59198 12.4099C7.91142 12.8269 8.3772 13.2884 8.92539 13.8343L9.98381 12.7714ZM10.1202 15.0241C10.6684 15.57 11.1319 16.0338 11.5505 16.3518C11.9865 16.683 12.4601 16.9252 13.039 16.9252V15.4252C12.918 15.4252 12.7601 15.387 12.4579 15.1574C12.1382 14.9145 11.7569 14.537 11.1786 13.9612L10.1202 15.0241ZM21.0446 9.95878C21.7336 9.27266 22.2359 8.79124 22.4996 8.15734L21.1147 7.58125C20.9925 7.87498 20.7623 8.12304 19.9862 8.89589L21.0446 9.95878ZM21.2501 5.85801C21.2501 6.95105 21.2367 7.28785 21.1147 7.58125L22.4996 8.15734C22.7634 7.5231 22.7501 6.82826 22.7501 5.85801H21.2501ZM15.0705 4.00991C15.8463 3.23743 16.0958 3.00759 16.3919 2.88546L15.82 1.49878C15.1845 1.76089 14.7015 2.26053 14.0121 2.94701L15.0705 4.00991ZM18.1257 1.25C17.1507 1.25 16.4551 1.23682 15.82 1.49878L16.3919 2.88546C16.6884 2.76318 17.0287 2.75 18.1257 2.75V1.25ZM14.8994 13.9612C14.4537 14.4051 14.1218 14.735 13.8374 14.9802C13.5518 15.2266 13.3678 15.3391 13.2315 15.3892L13.7494 16.797C14.138 16.654 14.4843 16.4032 14.8172 16.1161C15.1513 15.8279 15.526 15.4541 15.9578 15.0241L14.8994 13.9612ZM13.2315 15.3892C13.1613 15.415 13.1008 15.4252 13.039 15.4252V16.9252C13.2865 16.9252 13.522 16.8806 13.7494 16.797L13.2315 15.3892ZM8.9254 8.01231C8.50388 8.43205 8.13652 8.79732 7.85074 9.12306C7.56633 9.44725 7.31657 9.78252 7.16658 10.1551L8.55803 10.7153C8.61357 10.5773 8.73196 10.3931 8.97831 10.1123C9.2233 9.83306 9.54933 9.50786 9.98381 9.07521L8.9254 8.01231ZM7.16658 10.1551C7.06832 10.3991 7.01489 10.6534 7.01489 10.9233H8.51489C8.51489 10.8585 8.52641 10.7938 8.55803 10.7153L7.16658 10.1551Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M7.70886 10.2825L8.23887 9.75182L8.23807 9.75103L7.70886 10.2825ZM11.4377 6.79466C11.7861 7.01864 12.2501 6.91776 12.4741 6.56932C12.6981 6.22089 12.5972 5.75686 12.2488 5.53288L11.4377 6.79466ZM11.2958 5.81187L10.8902 6.44276L10.8902 6.44276L11.2958 5.81187ZM9.06024 4.66617L9.16976 3.92421L9.06024 4.66617ZM4.79597 7.23425L5.32517 7.76571H5.32517L4.79597 7.23425ZM7.50536 4.86464L7.79249 5.5575L7.50536 4.86464ZM5.35102 8.45319L5.62702 7.75582L5.62702 7.75582L5.35102 8.45319ZM5.45822 8.49603L5.17282 9.1896L5.45822 8.49603ZM6.87303 9.45016L7.40224 8.91872H7.40224L6.87303 9.45016ZM6.79108 9.3691L6.26913 9.90769L6.79108 9.3691ZM5.0216 8.32282L4.74561 9.02019L4.74561 9.02019L5.0216 8.32282ZM13.735 16.3379L13.205 16.8685C13.2166 16.8801 13.2286 16.8913 13.2409 16.9021L13.735 16.3379ZM18.4484 11.7064C18.223 11.3589 17.7586 11.2598 17.4111 11.4851C17.0635 11.7104 16.9644 12.1748 17.1897 12.5224L18.4484 11.7064ZM18.1724 12.6595L17.5431 13.0675V13.0675L18.1724 12.6595ZM19.323 14.8857L20.0648 14.7752L19.323 14.8857ZM16.744 19.132L17.2732 19.6634L17.2732 19.6634L16.744 19.132ZM19.1237 16.434L19.8157 16.7232L19.1237 16.434ZM15.6917 19.0096L16.3882 18.7315L15.6917 19.0096ZM15.2791 18.0608L14.6217 18.4218L15.2791 18.0608ZM14.1899 16.7362L14.7191 16.2048L14.7021 16.1878L14.684 16.172L14.1899 16.7362ZM14.9015 17.4891L15.4915 17.0262L14.9015 17.4891ZM16.6709 19.2048L16.1417 18.6733L16.1417 18.6733L16.6709 19.2048ZM14.0204 15.5629C13.7273 15.2702 13.2524 15.2704 12.9597 15.5635C12.667 15.8566 12.6673 16.3315 12.9604 16.6242L14.0204 15.5629ZM7.33218 10.9663C7.62525 11.259 8.10013 11.2587 8.39284 10.9656C8.68556 10.6726 8.68527 10.1977 8.3922 9.90496L7.33218 10.9663ZM12.2488 5.53288L11.7014 5.18098L10.8902 6.44276L11.4377 6.79466L12.2488 5.53288ZM11.7014 5.18098C11.162 4.83425 10.722 4.55077 10.3423 4.34645C9.95322 4.13704 9.58257 3.98514 9.16976 3.92421L8.95073 5.40813C9.1263 5.43404 9.32436 5.50204 9.63143 5.6673C9.94793 5.83764 10.3315 6.08359 10.8902 6.44276L11.7014 5.18098ZM5.32517 7.76571C5.81542 7.27754 6.33923 6.75615 6.80949 6.32767C7.04443 6.11361 7.25705 5.931 7.43833 5.79144C7.63121 5.64296 7.74622 5.57667 7.79249 5.5575L7.21823 4.17177C6.98214 4.26961 6.73911 4.43673 6.52332 4.60285C6.29593 4.7779 6.04924 4.99111 5.79924 5.21889C5.29965 5.67409 4.75113 6.22049 4.26677 6.70279L5.32517 7.76571ZM9.16976 3.92421C8.5128 3.82724 7.83793 3.91496 7.21823 4.17177L7.79249 5.5575C8.16883 5.40154 8.56995 5.35192 8.95073 5.40813L9.16976 3.92421ZM4.74561 9.02019L5.07503 9.15056L5.62702 7.75582L5.2976 7.62544L4.74561 9.02019ZM6.34382 9.98161L7.17965 10.8139L8.23807 9.75103L7.40224 8.91872L6.34382 9.98161ZM5.07503 9.15056C5.13063 9.17256 5.15208 9.18107 5.17282 9.1896L5.74363 7.80246C5.71136 7.78918 5.67901 7.77639 5.62702 7.75582L5.07503 9.15056ZM7.40224 8.91872C7.36266 8.8793 7.33806 8.85478 7.31302 8.83052L6.26913 9.90769C6.2852 9.92326 6.30154 9.9395 6.34382 9.98161L7.40224 8.91872ZM5.17282 9.1896C5.58092 9.35754 5.95297 9.6013 6.26913 9.90769L7.31302 8.83052C6.86006 8.39155 6.3274 8.04268 5.74363 7.80246L5.17282 9.1896ZM4.26677 6.70279C3.54282 7.42368 3.79893 8.64553 4.74561 9.02019L5.2976 7.62545C5.35173 7.64687 5.36997 7.7211 5.32517 7.76571L4.26677 6.70279ZM17.1897 12.5224L17.5431 13.0675L18.8017 12.2515L18.4484 11.7064L17.1897 12.5224ZM16.2148 18.6005L16.1417 18.6733L17.2001 19.7362L17.2732 19.6634L16.2148 18.6005ZM17.5431 13.0675C17.9038 13.624 18.1507 14.0057 18.3217 14.3207C18.4875 14.6263 18.5553 14.8227 18.5811 14.9961L20.0648 14.7752C20.0034 14.3628 19.8504 13.9928 19.64 13.6052C19.4347 13.2269 19.1499 12.7886 18.8017 12.2515L17.5431 13.0675ZM17.2732 19.6634C17.7576 19.1811 18.3063 18.6349 18.7634 18.1374C18.9922 17.8884 19.2063 17.6428 19.3822 17.4163C19.5489 17.2014 19.7171 16.959 19.8157 16.7232L18.4317 16.1448C18.4127 16.1901 18.3465 16.3043 18.1973 16.4964C18.0572 16.6768 17.8739 16.8885 17.6589 17.1225C17.2286 17.5908 16.705 18.1123 16.2148 18.6005L17.2732 19.6634ZM18.5811 14.9961C18.6373 15.3735 18.5878 15.7712 18.4317 16.1448L19.8157 16.7232C20.074 16.1049 20.1624 15.4312 20.0648 14.7752L18.5811 14.9961ZM14.684 16.172L14.2291 15.7736L13.2409 16.9021L13.6958 17.3005L14.684 16.172ZM16.3882 18.7315C16.2023 18.2657 16.0876 17.9749 15.9365 17.6998L14.6217 18.4218C14.7185 18.598 14.7962 18.7892 14.9951 19.2876L16.3882 18.7315ZM13.6607 17.2677C14.0415 17.6469 14.1872 17.7938 14.3115 17.9521L15.4915 17.0262C15.2977 16.7792 15.0751 16.5593 14.7191 16.2048L13.6607 17.2677ZM15.9365 17.6998C15.8068 17.4635 15.658 17.2383 15.4915 17.0262L14.3115 17.9521C14.4275 18.1001 14.5313 18.2571 14.6217 18.4218L15.9365 17.6998ZM16.1417 18.6733C16.182 18.6332 16.236 18.6242 16.2733 18.6317C16.311 18.6392 16.3638 18.6704 16.3882 18.7315L14.9951 19.2876C15.3559 20.1916 16.5258 20.4077 17.2001 19.7362L16.1417 18.6733ZM14.265 15.8072L14.0204 15.5629L12.9604 16.6242L13.205 16.8685L14.265 15.8072ZM7.17886 10.8131L7.33218 10.9663L8.3922 9.90496L8.23887 9.75182L7.17886 10.8131Z",fill:"currentColor"}),l.jsx("path",{d:"M5.5482 13L3.85646 14.6897C3.43177 15.1139 2.74321 15.1139 2.31852 14.6897C1.89383 14.2655 1.89383 13.5778 2.31852 13.1536L2.47231 13M11.0757 18.5696L9.38395 20.2593C8.95926 20.6835 8.95926 21.3712 9.38395 21.7954C9.80864 22.2195 10.4972 22.2195 10.9219 21.7954L11.0757 21.6418M6.93603 17.1588L5.22645 18.8308",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{opacity:"0.5",d:"M10.6329 17.1855C10.9258 16.8926 10.9258 16.4177 10.6329 16.1248C10.34 15.8319 9.86514 15.8319 9.57224 16.1248L10.6329 17.1855ZM7.46982 18.2272C7.17692 18.5201 7.17692 18.995 7.46982 19.2879C7.76271 19.5808 8.23758 19.5808 8.53048 19.2879L7.46982 18.2272ZM7.85719 14.4131C8.15009 14.1202 8.15009 13.6454 7.85719 13.3525C7.5643 13.0596 7.08943 13.0596 6.79653 13.3525L7.85719 14.4131ZM4.67963 15.4694C4.38674 15.7623 4.38674 16.2372 4.67963 16.53C4.97252 16.8229 5.4474 16.8229 5.74029 16.53L4.67963 15.4694ZM9.57224 16.1248L7.46982 18.2272L8.53048 19.2879L10.6329 17.1855L9.57224 16.1248ZM6.79653 13.3525L4.67963 15.4694L5.74029 16.53L7.85719 14.4131L6.79653 13.3525Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M12.3732 12.645C12.6667 12.3527 12.6677 11.8779 12.3754 11.5844C12.0831 11.2908 11.6083 11.2898 11.3148 11.5821L12.3732 12.645ZM10.581 14.4297L12.3732 12.645L11.3148 11.5821L9.52255 13.3668L10.581 14.4297ZM17.2888 8.0128C16.9216 8.37849 16.3248 8.37849 15.9576 8.01279L14.8992 9.07569C15.8517 10.0242 17.3947 10.0242 18.3472 9.07569L17.2888 8.0128ZM15.9576 8.01279C15.5921 7.64885 15.5921 7.06009 15.9576 6.69614L14.8992 5.63325C13.9449 6.58349 13.9449 8.12545 14.8992 9.07569L15.9576 8.01279ZM15.9576 6.69614C16.3248 6.33045 16.9216 6.33045 17.2888 6.69614L18.3472 5.63325C17.3947 4.68475 15.8517 4.68475 14.8992 5.63325L15.9576 6.69614ZM17.2888 6.69614C17.6543 7.06009 17.6543 7.64885 17.2888 8.0128L18.3472 9.07569C19.3015 8.12545 19.3015 6.58349 18.3472 5.63325L17.2888 6.69614Z",fill:"currentColor"})]})],["Linear",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M22 5.36519L22.75 5.36519V5.36519H22ZM9.45453 13.3029L9.98374 12.7714L9.45453 13.3029ZM9.45453 8.54376L9.98374 9.07521L9.45453 8.54376ZM15.4286 14.4926L14.8994 13.9612L15.4286 14.4926ZM10.6493 14.4926L10.1201 15.0241L10.6493 14.4926ZM20.5153 9.42733L21.0445 9.95878L20.5153 9.42733ZM22 5.85801L21.25 5.85801V5.85801H22ZM14.5412 3.47846L14.012 2.94701V2.94701L14.5412 3.47846ZM12.3733 12.6445C12.6669 12.3523 12.6679 11.8774 12.3756 11.5839C12.0833 11.2904 11.6084 11.2894 11.3149 11.5816L12.3733 12.6445ZM7.7089 10.282L8.23891 9.75138L8.23811 9.75058L7.7089 10.282ZM11.4377 6.79421C11.7861 7.0182 12.2502 6.91731 12.4741 6.56888C12.6981 6.22045 12.5972 5.75641 12.2488 5.53243L11.4377 6.79421ZM11.2958 5.81143L10.8903 6.44232V6.44232L11.2958 5.81143ZM9.06028 4.66572L9.1698 3.92376L9.06028 4.66572ZM4.79601 7.2338L5.32521 7.76526L4.79601 7.2338ZM7.5054 4.86419L7.79253 5.55705L7.5054 4.86419ZM5.35106 8.45274L5.62705 7.75537L5.62705 7.75537L5.35106 8.45274ZM5.45826 8.49558L5.17285 9.18916L5.45826 8.49558ZM6.87307 9.44972L7.40228 8.91827L6.87307 9.44972ZM6.79112 9.36866L6.26917 9.90724L6.79112 9.36866ZM5.02164 8.32237L4.74565 9.01974L4.74565 9.01974L5.02164 8.32237ZM13.7351 16.3374L13.2051 16.8681C13.2167 16.8797 13.2286 16.8909 13.241 16.9017L13.7351 16.3374ZM18.4484 11.706C18.2231 11.3584 17.7587 11.2593 17.4111 11.4846C17.0635 11.71 16.9644 12.1744 17.1897 12.5219L18.4484 11.706ZM18.1724 12.6591L17.5431 13.0671V13.0671L18.1724 12.6591ZM19.323 14.8852L20.0648 14.7748L19.323 14.8852ZM16.7441 19.1315L17.2733 19.663L17.2733 19.663L16.7441 19.1315ZM19.1237 16.4335L19.8157 16.7228L19.1237 16.4335ZM15.6917 19.0091L16.3883 18.7311L15.6917 19.0091ZM15.2792 18.0603L14.6218 18.4214L15.2792 18.0603ZM14.19 16.7358L14.7192 16.2043L14.7021 16.1874L14.6841 16.1716L14.19 16.7358ZM14.9015 17.4887L15.4916 17.0257L14.9015 17.4887ZM16.6709 19.2043L16.1417 18.6729L16.1417 18.6729L16.6709 19.2043ZM13.4904 16.0931L13.2315 15.3892L13.4904 16.0931ZM7.86223 10.4352L8.55796 10.7153L7.86223 10.4352ZM6.07821 13.4172C6.37128 13.1244 6.37157 12.6496 6.07886 12.3565C5.78614 12.0634 5.31127 12.0631 5.0182 12.3559L6.07821 13.4172ZM3.85646 14.5762L3.32646 14.0455L3.85646 14.5762ZM2.31852 13.0401L1.78851 12.5095H1.78851L2.31852 13.0401ZM3.00232 13.4172C3.29539 13.1244 3.29568 12.6496 3.00297 12.3565C2.71025 12.0634 2.23538 12.0631 1.94231 12.3559L3.00232 13.4172ZM11.6057 18.9868C11.8988 18.694 11.8991 18.2192 11.6063 17.9261C11.3136 17.633 10.8388 17.6327 10.5457 17.9255L11.6057 18.9868ZM9.38395 20.1458L9.91396 20.6764L9.38395 20.1458ZM10.9219 21.6819L11.4519 22.2125L10.9219 21.6819ZM11.6057 22.0589C11.8988 21.7662 11.8991 21.2913 11.6063 20.9983C11.3136 20.7052 10.8388 20.7049 10.5457 20.9976L11.6057 22.0589ZM10.6328 17.1858C10.9257 16.8929 10.9257 16.418 10.6328 16.1251C10.3399 15.8322 9.86499 15.8322 9.5721 16.1251L10.6328 17.1858ZM7.46967 18.2275C7.17678 18.5204 7.17678 18.9953 7.46967 19.2882C7.76256 19.5811 8.23744 19.5811 8.53033 19.2882L7.46967 18.2275ZM7.85705 14.4134C8.14994 14.1205 8.14994 13.6457 7.85705 13.3528C7.56415 13.0599 7.08928 13.0599 6.79639 13.3528L7.85705 14.4134ZM4.67948 15.4697C4.38659 15.7626 4.38659 16.2374 4.67948 16.5303C4.97238 16.8232 5.44725 16.8232 5.74014 16.5303L4.67948 15.4697ZM7.46042 17.5815C7.75656 17.2919 7.76184 16.8171 7.47223 16.5209C7.18261 16.2248 6.70777 16.2195 6.41163 16.5091L7.46042 17.5815ZM4.70206 18.1811C4.40592 18.4707 4.40064 18.9455 4.69026 19.2417C4.97987 19.5378 5.45472 19.5431 5.75085 19.2535L4.70206 18.1811ZM19.9861 8.89589L14.8994 13.9612L15.9578 15.0241L21.0445 9.95878L19.9861 8.89589ZM11.1785 13.9612L9.98374 12.7714L8.92532 13.8343L10.1201 15.0241L11.1785 13.9612ZM9.98374 9.07521L15.0705 4.00991L14.012 2.94701L8.92532 8.01231L9.98374 9.07521ZM18.1257 2.75H18.6206V1.25H18.1257V2.75ZM21.25 5.36519L21.25 5.85801L22.75 5.85802L22.75 5.36519L21.25 5.36519ZM18.6206 2.75C19.4382 2.75 19.9763 2.75158 20.3751 2.80497C20.7527 2.85552 20.8911 2.93987 20.9759 3.02427L22.0343 1.96137C21.6242 1.55295 21.1169 1.3909 20.5742 1.31824C20.0527 1.24842 19.396 1.25 18.6206 1.25V2.75ZM22.75 5.36519C22.75 4.5933 22.7516 3.93861 22.6814 3.41858C22.6082 2.87664 22.4449 2.37023 22.0343 1.96137L20.9759 3.02427C21.0602 3.10823 21.1443 3.24483 21.1949 3.61928C21.2484 4.01563 21.25 4.55072 21.25 5.36519H22.75ZM9.98374 12.7714C9.40545 12.1956 9.02638 11.8158 8.78258 11.4976C8.55194 11.1966 8.51482 11.0409 8.51482 10.9233H7.01482C7.01482 11.5027 7.25931 11.9759 7.5919 12.4099C7.91134 12.8269 8.37712 13.2884 8.92532 13.8343L9.98374 12.7714ZM10.1201 15.0241C10.6684 15.57 11.1318 16.0338 11.5504 16.3518C11.9864 16.683 12.46 16.9252 13.0389 16.9252V15.4252C12.9179 15.4252 12.76 15.387 12.4578 15.1574C12.1382 14.9145 11.7568 14.537 11.1785 13.9612L10.1201 15.0241ZM21.0445 9.95878C21.7335 9.27266 22.2359 8.79124 22.4995 8.15734L21.1146 7.58125C20.9924 7.87498 20.7622 8.12304 19.9861 8.89589L21.0445 9.95878ZM21.25 5.85801C21.25 6.95105 21.2366 7.28785 21.1146 7.58125L22.4995 8.15734C22.7634 7.5231 22.75 6.82826 22.75 5.85801H21.25ZM15.0705 4.00991C15.8462 3.23743 16.0958 3.00759 16.3919 2.88546L15.8199 1.49878C15.1844 1.76089 14.7014 2.26053 14.012 2.94701L15.0705 4.00991ZM18.1257 1.25C17.1507 1.25 16.455 1.23682 15.8199 1.49878L16.3919 2.88546C16.6883 2.76318 17.0287 2.75 18.1257 2.75V1.25ZM10.5811 14.4292L12.3733 12.6445L11.3149 11.5816L9.52272 13.3663L10.5811 14.4292ZM12.2488 5.53243L11.7014 5.18054L10.8903 6.44232L11.4377 6.79421L12.2488 5.53243ZM11.7014 5.18054C11.162 4.83381 10.722 4.55033 10.3423 4.346C9.95325 4.1366 9.5826 3.98469 9.1698 3.92376L8.95076 5.40768C9.12633 5.4336 9.3244 5.50159 9.63147 5.66685C9.94796 5.83719 10.3315 6.08314 10.8903 6.44232L11.7014 5.18054ZM5.32521 7.76526C5.81546 7.27709 6.33926 6.7557 6.80953 6.32722C7.04446 6.11316 7.25709 5.93055 7.43837 5.791C7.63125 5.64251 7.74625 5.57623 7.79253 5.55705L7.21827 4.17133C6.98217 4.26917 6.73915 4.43628 6.52336 4.60241C6.29596 4.77746 6.04927 4.99066 5.79928 5.21844C5.29969 5.67364 4.75117 6.22004 4.26681 6.70235L5.32521 7.76526ZM9.1698 3.92376C8.51283 3.82679 7.83797 3.91452 7.21827 4.17133L7.79253 5.55705C8.16887 5.40109 8.56998 5.35148 8.95076 5.40768L9.1698 3.92376ZM4.74565 9.01974L5.07507 9.15012L5.62705 7.75537L5.29763 7.625L4.74565 9.01974ZM6.34386 9.98117L7.17969 10.8135L8.23811 9.75058L7.40228 8.91827L6.34386 9.98117ZM5.07507 9.15011C5.13067 9.17212 5.15212 9.18062 5.17285 9.18916L5.74367 7.80201C5.7114 7.78873 5.67905 7.77595 5.62705 7.75537L5.07507 9.15011ZM7.40228 8.91827C7.3627 8.87886 7.3381 8.85434 7.31306 8.83008L6.26917 9.90724C6.28523 9.92281 6.30157 9.93906 6.34386 9.98117L7.40228 8.91827ZM5.17285 9.18916C5.58096 9.3571 5.95301 9.60085 6.26917 9.90724L7.31306 8.83008C6.86009 8.3911 6.32744 8.04224 5.74367 7.80201L5.17285 9.18916ZM4.26681 6.70235C3.54286 7.42323 3.79897 8.64508 4.74565 9.01974L5.29764 7.625C5.35177 7.64642 5.37001 7.72065 5.32521 7.76526L4.26681 6.70235ZM17.1897 12.5219L17.5431 13.0671L18.8018 12.2511L18.4484 11.706L17.1897 12.5219ZM16.2148 18.6001L16.1417 18.6729L17.2001 19.7358L17.2733 19.663L16.2148 18.6001ZM17.5431 13.0671C17.9039 13.6235 18.1507 14.0053 18.3217 14.3203C18.4875 14.6258 18.5554 14.8222 18.5812 14.9956L20.0648 14.7748C20.0034 14.3623 19.8504 13.9924 19.64 13.6047C19.4347 13.2265 19.1499 12.7881 18.8018 12.2511L17.5431 13.0671ZM17.2733 19.663C17.7576 19.1807 18.3063 18.6344 18.7635 18.1369C18.9922 17.888 19.2064 17.6423 19.3822 17.4158C19.549 17.201 19.7171 16.9586 19.8157 16.7228L18.4317 16.1443C18.4128 16.1897 18.3465 16.3038 18.1974 16.4959C18.0573 16.6764 17.8739 16.8881 17.6589 17.122C17.2287 17.5903 16.7051 18.1119 16.2148 18.6001L17.2733 19.663ZM18.5812 14.9956C18.6374 15.373 18.5878 15.7708 18.4317 16.1443L19.8157 16.7228C20.0741 16.1045 20.1625 15.4308 20.0648 14.7748L18.5812 14.9956ZM14.6841 16.1716L14.2292 15.7732L13.241 16.9017L13.6959 17.3L14.6841 16.1716ZM16.3883 18.7311C16.2023 18.2653 16.0877 17.9745 15.9366 17.6993L14.6218 18.4214C14.7185 18.5975 14.7962 18.7888 14.9951 19.2871L16.3883 18.7311ZM13.6608 17.2672C14.0415 17.6464 14.1873 17.7933 14.3115 17.9517L15.4916 17.0257C15.2978 16.7787 15.0752 16.5588 14.7192 16.2043L13.6608 17.2672ZM15.9366 17.6993C15.8068 17.4631 15.658 17.2378 15.4916 17.0257L14.3115 17.9517C14.4276 18.0996 14.5313 18.2567 14.6218 18.4214L15.9366 17.6993ZM17.289 8.01231C16.9217 8.378 16.325 8.378 15.9578 8.01231L14.8994 9.07521C15.8519 10.0237 17.3949 10.0237 18.3474 9.07521L17.289 8.01231ZM15.9578 8.01231C15.5923 7.64836 15.5923 7.05961 15.9578 6.69566L14.8994 5.63276C13.9451 6.583 13.9451 8.12497 14.8994 9.07521L15.9578 8.01231ZM15.9578 6.69566C16.325 6.32997 16.9217 6.32997 17.289 6.69566L18.3474 5.63276C17.3949 4.68427 15.8519 4.68427 14.8994 5.63276L15.9578 6.69566ZM17.289 6.69566C17.6545 7.05961 17.6545 7.64836 17.289 8.01231L18.3474 9.07521C19.3016 8.12497 19.3016 6.583 18.3474 5.63276L17.289 6.69566ZM16.1417 18.6729C16.182 18.6327 16.236 18.6238 16.2734 18.6312C16.311 18.6388 16.3639 18.6699 16.3883 18.7311L14.9951 19.2871C15.356 20.1912 16.5258 20.4073 17.2002 19.7358L16.1417 18.6729ZM14.8994 13.9612C14.4536 14.4051 14.1217 14.735 13.8373 14.9802C13.5518 15.2266 13.3677 15.3391 13.2315 15.3892L13.7494 16.797C14.1379 16.654 14.4842 16.4032 14.8171 16.1161C15.1512 15.8279 15.526 15.4541 15.9578 15.0241L14.8994 13.9612ZM13.2315 15.3892C13.1612 15.415 13.1008 15.4252 13.0389 15.4252V16.9252C13.2864 16.9252 13.5219 16.8806 13.7494 16.797L13.2315 15.3892ZM14.2651 15.8068L14.0204 15.5624L12.9604 16.6237L13.2051 16.8681L14.2651 15.8068ZM8.92532 8.01231C8.5038 8.43205 8.13645 8.79732 7.85067 9.12306C7.56625 9.44725 7.31649 9.78252 7.1665 10.1551L8.55796 10.7153C8.6135 10.5773 8.73189 10.3931 8.97823 10.1123C9.22322 9.83306 9.54925 9.50786 9.98374 9.07521L8.92532 8.01231ZM7.1665 10.1551C7.06824 10.3991 7.01482 10.6534 7.01482 10.9233H8.51482C8.51482 10.8585 8.52633 10.7938 8.55796 10.7153L7.1665 10.1551ZM7.17889 10.8127L7.33222 10.9658L8.39224 9.90452L8.23891 9.75138L7.17889 10.8127ZM5.0182 12.3559L3.32646 14.0455L4.38647 15.1068L6.07821 13.4172L5.0182 12.3559ZM2.84853 13.5708L3.00232 13.4172L1.94231 12.3559L1.78851 12.5095L2.84853 13.5708ZM2.84853 14.0455C2.71716 13.9143 2.71716 13.702 2.84853 13.5708L1.78851 12.5095C1.0705 13.2266 1.0705 14.3897 1.78851 15.1068L2.84853 14.0455ZM3.32646 14.0455C3.19458 14.1772 2.9804 14.1772 2.84853 14.0455L1.78851 15.1068C2.50602 15.8235 3.66896 15.8235 4.38647 15.1068L3.32646 14.0455ZM10.5457 17.9255L8.85394 19.6151L9.91396 20.6764L11.6057 18.9868L10.5457 17.9255ZM11.4519 22.2125L11.6057 22.0589L10.5457 20.9976L10.3919 21.1512L11.4519 22.2125ZM8.85394 22.2125C9.57145 22.9292 10.7344 22.9292 11.4519 22.2125L10.3919 21.1512C10.26 21.2829 10.0458 21.2829 9.91396 21.1512L8.85394 22.2125ZM8.85394 19.6151C8.13593 20.3323 8.13593 21.4954 8.85394 22.2125L9.91396 21.1512C9.78259 21.02 9.78259 20.8077 9.91396 20.6764L8.85394 19.6151ZM9.5721 16.1251L7.46967 18.2275L8.53033 19.2882L10.6328 17.1858L9.5721 16.1251ZM6.79639 13.3528L4.67948 15.4697L5.74014 16.5303L7.85705 14.4134L6.79639 13.3528ZM6.41163 16.5091L4.70206 18.1811L5.75085 19.2535L7.46042 17.5815L6.41163 16.5091Z",fill:"currentColor"})})],["Outline",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M3.00297 12.3566C3.29568 12.6497 3.29539 13.1246 3.00232 13.4173L2.84853 13.5709C2.71716 13.7021 2.71716 13.9144 2.84853 14.0456C2.9804 14.1774 3.19458 14.1774 3.32646 14.0456L5.0182 12.356C5.31127 12.0632 5.78614 12.0635 6.07886 12.3566C6.37157 12.6497 6.37128 13.1246 6.07821 13.4173L4.38647 15.107C3.66896 15.8236 2.50602 15.8236 1.78851 15.107C1.0705 14.3898 1.0705 13.2267 1.78851 12.5096L1.94231 12.356C2.23538 12.0632 2.71025 12.0635 3.00297 12.3566Z",fill:"currentColor"}),l.jsx("path",{d:"M7.85705 13.3529C8.14994 13.6458 8.14994 14.1206 7.85705 14.4135L5.74014 16.5304C5.44725 16.8233 4.97238 16.8233 4.67948 16.5304C4.38659 16.2375 4.38659 15.7627 4.67948 15.4698L6.79639 13.3529C7.08928 13.06 7.56415 13.06 7.85705 13.3529Z",fill:"currentColor"}),l.jsx("path",{d:"M10.6328 16.1252C10.9257 16.4181 10.9257 16.893 10.6328 17.1859L8.53033 19.2883C8.23744 19.5812 7.76256 19.5812 7.46967 19.2883C7.17678 18.9954 7.17678 18.5205 7.46967 18.2276L9.5721 16.1252C9.86499 15.8323 10.3399 15.8323 10.6328 16.1252Z",fill:"currentColor"}),l.jsx("path",{d:"M7.47223 16.5211C7.76184 16.8172 7.75656 17.292 7.46042 17.5816L5.75085 19.2536C5.45472 19.5432 4.97987 19.5379 4.69026 19.2418C4.40064 18.9457 4.40592 18.4708 4.70206 18.1812L6.41163 16.5093C6.70777 16.2196 7.18261 16.2249 7.47223 16.5211Z",fill:"currentColor"}),l.jsx("path",{d:"M11.6063 17.9262C11.8991 18.2193 11.8988 18.6942 11.6057 18.9869L9.91396 20.6766C9.78259 20.8078 9.78259 21.0201 9.91396 21.1513C10.0458 21.283 10.26 21.283 10.3919 21.1513L10.5457 20.9977C10.8388 20.705 11.3136 20.7053 11.6063 20.9984C11.8991 21.2914 11.8988 21.7663 11.6057 22.059L11.4519 22.2126C10.7344 22.9293 9.57145 22.9293 8.85394 22.2126C8.13593 21.4955 8.13593 20.3324 8.85394 19.6152L10.5457 17.9256C10.8388 17.6329 11.3136 17.6331 11.6063 17.9262Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.992 1.25005L18.1257 1.25011L18.6709 1.25011C19.4245 1.25008 20.064 1.25005 20.5742 1.31835C21.1169 1.39101 21.6242 1.55306 22.0343 1.96148C22.4449 2.37034 22.6082 2.87675 22.6814 3.41869C22.7501 3.92731 22.75 4.56474 22.75 5.31465L22.75 5.85813L22.7501 5.99204C22.7506 6.89302 22.7511 7.55278 22.4995 8.15745C22.2482 8.76181 21.7798 9.22757 21.1396 9.86427L21.0445 9.95889L18.7785 12.2153L18.8178 12.2759C19.1587 12.8017 19.4379 13.2324 19.64 13.6048C19.8504 13.9925 20.0034 14.3624 20.0648 14.7749C20.1625 15.4309 20.0741 16.1046 19.8157 16.7229C19.7171 16.9587 19.549 17.2011 19.3822 17.4159C19.2064 17.6424 18.9922 17.8881 18.7635 18.1371C18.3085 18.6321 17.7629 19.1755 17.2803 19.6561L17.2733 19.6631L17.2001 19.7359C16.5258 20.4074 15.356 20.1913 14.9951 19.2872C14.7962 18.7889 14.7185 18.5976 14.6218 18.4215C14.5313 18.2568 14.4276 18.0997 14.3115 17.9518C14.1891 17.7958 14.0459 17.6509 13.6778 17.2843L13.2548 16.9139C13.1838 16.9215 13.1119 16.9253 13.0389 16.9253C12.46 16.9253 11.9864 16.6831 11.5504 16.3519C11.1409 16.0408 10.6885 15.5903 10.1559 15.0598L8.88948 13.7987C8.35683 13.2684 7.90436 12.8178 7.5919 12.4101C7.25931 11.976 7.01482 11.5028 7.01482 10.9234C7.01482 10.836 7.02042 10.7502 7.03134 10.6659L6.34386 9.98128C6.30157 9.93917 6.28523 9.92292 6.26917 9.90735C5.95301 9.60096 5.58096 9.35721 5.17285 9.18927C5.15212 9.18073 5.13067 9.17223 5.07507 9.15023L4.74565 9.01985C3.79897 8.64519 3.54286 7.42334 4.26681 6.70246L4.27379 6.6955C4.75643 6.2149 5.30208 5.67157 5.79928 5.21855C6.04927 4.99077 6.29596 4.77757 6.52336 4.60252C6.73915 4.43639 6.98217 4.26928 7.21827 4.17144C7.83797 3.91463 8.51283 3.8269 9.1698 3.92387C9.5826 3.9848 9.95325 4.13671 10.3423 4.34611C10.7162 4.54732 11.1486 4.8253 11.6768 5.16484L11.7425 5.20708L14.012 2.94712L14.1066 2.85293C14.7465 2.21486 15.2139 1.74886 15.8199 1.49889C16.4256 1.24906 17.0864 1.24948 17.992 1.25005ZM17.6921 13.2972C17.9734 13.7323 18.1754 14.0508 18.3217 14.3204C18.4875 14.6259 18.5554 14.8223 18.5812 14.9958C18.6374 15.3731 18.5878 15.7709 18.4317 16.1445C18.4128 16.1898 18.3465 16.3039 18.1974 16.4961C18.0573 16.6765 17.8739 16.8882 17.6589 17.1221C17.2539 17.5629 16.7662 18.051 16.3015 18.5139C16.1635 18.1697 16.0627 17.9291 15.9366 17.6994C15.8068 17.4632 15.658 17.2379 15.4916 17.0258C15.3039 16.7866 15.0892 16.5729 14.7525 16.2377L14.7163 16.2016C14.75 16.1735 14.7836 16.145 14.8171 16.1162C15.1468 15.8318 15.516 15.4641 15.9405 15.0414L17.6921 13.2972ZM18.1257 2.75011C17.0287 2.75011 16.6883 2.76329 16.3919 2.88557C16.0958 3.0077 15.8462 3.23754 15.0705 4.01002L9.98374 9.07532C9.54925 9.50797 9.22322 9.83317 8.97823 10.1124C8.73189 10.3932 8.6135 10.5774 8.55796 10.7154C8.52633 10.7939 8.51482 10.8586 8.51482 10.9234C8.51482 11.041 8.55194 11.1967 8.78258 11.4978C9.02638 11.8159 9.40545 12.1957 9.98374 12.7715L10.0519 12.8394L11.3149 11.5817C11.6084 11.2895 12.0833 11.2905 12.3756 11.584C12.6679 11.8775 12.6669 12.3524 12.3733 12.6446L11.1148 13.8979L11.1785 13.9613C11.7568 14.5371 12.1382 14.9146 12.4578 15.1575C12.76 15.3871 12.9179 15.4253 13.0389 15.4253C13.1008 15.4253 13.1612 15.4152 13.2315 15.3893C13.3677 15.3392 13.5518 15.2267 13.8373 14.9804C14.1217 14.7351 14.4536 14.4052 14.8994 13.9613L19.9861 8.896C20.7622 8.12315 20.9924 7.87509 21.1146 7.58136C21.2366 7.28796 21.25 6.95116 21.25 5.85812L21.25 5.3653C21.25 4.55083 21.2484 4.01574 21.1949 3.61939C21.1443 3.24494 21.0602 3.10834 20.9759 3.02438C20.8911 2.93998 20.7527 2.85563 20.3751 2.80508C19.9763 2.75169 19.4382 2.75011 18.6206 2.75011H18.1257ZM18.3474 5.63287C17.3949 4.68438 15.8519 4.68438 14.8994 5.63287C13.9451 6.58311 13.9451 8.12508 14.8994 9.07532C15.8519 10.0238 17.3949 10.0238 18.3474 9.07532C19.3016 8.12508 19.3016 6.58311 18.3474 5.63287ZM15.9578 6.69577C16.325 6.33008 16.9217 6.33008 17.289 6.69577C17.6545 7.05972 17.6545 7.64847 17.289 8.01242C16.9217 8.37811 16.325 8.37811 15.9578 8.01242C15.5923 7.64847 15.5923 7.05972 15.9578 6.69577ZM10.6542 6.29082C10.2199 6.01237 9.9013 5.81219 9.63147 5.66697C9.3244 5.5017 9.12633 5.43371 8.95076 5.40779C8.56998 5.35159 8.16887 5.4012 7.79253 5.55716C7.74625 5.57634 7.63125 5.64262 7.43837 5.79111C7.25709 5.93066 7.04446 6.11327 6.80953 6.32733C6.36887 6.72884 5.88119 7.21193 5.41817 7.67281L5.62705 7.75548L5.63208 7.75747C5.68116 7.77689 5.71245 7.78928 5.74367 7.80212C6.32744 8.04235 6.86009 8.39121 7.31306 8.83019C7.33737 8.85374 7.36126 8.87754 7.39886 8.91497L7.73886 9.25355C7.77541 9.20985 7.81273 9.16641 7.85067 9.12317C8.13281 8.80158 8.49446 8.44146 8.90924 8.02843L10.6542 6.29082Z",fill:"currentColor"})]})]]),o_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 12.124C2 6.53269 6.47713 2 11.9999 2C17.5228 2 21.9999 6.53269 21.9999 12.124L21.9999 17.3675C22.0002 18.1844 22.0004 18.7446 21.8568 19.2364C21.576 20.1982 20.9046 20.9937 20.01 21.4245C19.5525 21.6449 19.0059 21.732 18.2088 21.8591L18.0789 21.8799C17.7954 21.9252 17.5532 21.9639 17.3522 21.9839C17.1431 22.0047 16.9299 22.0111 16.7118 21.9676C15.9942 21.8245 15.4024 21.3126 15.1508 20.6172C15.0744 20.4059 15.0474 20.1916 15.035 19.9793C15.0232 19.7753 15.0232 19.527 15.0232 19.2365L15.0231 15.0641C15.0226 14.6386 15.0222 14.2725 15.1195 13.959C15.3422 13.2416 15.9238 12.6975 16.6477 12.5292C16.9641 12.4556 17.3246 12.4849 17.7435 12.5189L17.8367 12.5264L17.9465 12.5352C18.7302 12.5975 19.2664 12.6402 19.7216 12.8106C20.0415 12.9304 20.3381 13.0953 20.6046 13.2976V12.124C20.6046 7.31288 16.7521 3.41266 11.9999 3.41266C7.24776 3.41266 3.39534 7.31288 3.39534 12.124V13.2976C3.66176 13.0953 3.95843 12.9304 4.27829 12.8106C4.73345 12.6402 5.26965 12.5975 6.05335 12.5352L6.16318 12.5264L6.25641 12.5189C6.67534 12.4849 7.03581 12.4556 7.35224 12.5292C8.07612 12.6975 8.65766 13.2416 8.88039 13.959C8.97774 14.2725 8.9773 14.6386 8.97678 15.0641L8.97671 19.2365C8.97671 19.527 8.97672 19.7753 8.96487 19.9793C8.95254 20.1916 8.9255 20.4059 8.84906 20.6172C8.59754 21.3126 8.00574 21.8245 7.28812 21.9676C7.07001 22.0111 6.85675 22.0047 6.64768 21.9839C6.44671 21.9639 6.20449 21.9252 5.92102 21.8799L5.79106 21.8591C4.99399 21.732 4.44737 21.6449 3.98991 21.4245C3.09534 20.9937 2.42388 20.1982 2.14308 19.2364C2.02467 18.8309 2.00404 18.3788 2.0006 17.7747L2 17.5803V12.124Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 5.75C12.4142 5.75 12.7499 6.08579 12.7499 6.5L12.7499 11.5C12.7499 11.9142 12.4142 12.25 11.9999 12.25C11.5857 12.25 11.2499 11.9142 11.2499 11.5L11.2499 6.5C11.2499 6.08579 11.5857 5.75 11.9999 5.75Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9999 7.25C15.4142 7.25 15.7499 7.58579 15.7499 8V10C15.7499 10.4142 15.4142 10.75 14.9999 10.75C14.5857 10.75 14.2499 10.4142 14.2499 10V8C14.2499 7.58579 14.5857 7.25 14.9999 7.25Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99995 7.25C9.41416 7.25 9.74995 7.58579 9.74995 8L9.74995 10C9.74995 10.4142 9.41416 10.75 8.99995 10.75C8.58573 10.75 8.24995 10.4142 8.24995 10L8.24995 8C8.24995 7.58579 8.58573 7.25 8.99995 7.25Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 12.124C2 6.53269 6.47713 2 11.9999 2C17.5228 2 21.9999 6.53269 21.9999 12.124L21.9999 17.3675C22.0002 18.1844 22.0004 18.7446 21.8568 19.2364C21.576 20.1982 20.9046 20.9937 20.01 21.4245C19.5525 21.6449 19.0059 21.732 18.2088 21.8591L18.0789 21.8799C17.7954 21.9252 17.5532 21.9639 17.3522 21.9839C17.1431 22.0047 16.9299 22.0111 16.7118 21.9676C15.9942 21.8245 15.4024 21.3126 15.1508 20.6172C15.0744 20.4059 15.0474 20.1916 15.035 19.9793C15.0232 19.7753 15.0232 19.527 15.0232 19.2365L15.0231 15.0641C15.0226 14.6386 15.0222 14.2725 15.1195 13.959C15.3422 13.2416 15.9238 12.6975 16.6477 12.5292C16.9641 12.4556 17.3246 12.4849 17.7435 12.5189L17.8367 12.5264L17.9465 12.5352C18.7302 12.5975 19.2664 12.6402 19.7216 12.8106C20.0415 12.9304 20.3381 13.0953 20.6046 13.2976V12.124C20.6046 7.31288 16.7521 3.41266 11.9999 3.41266C7.24776 3.41266 3.39534 7.31288 3.39534 12.124V13.2976C3.66176 13.0953 3.95843 12.9304 4.27829 12.8106C4.73345 12.6402 5.26965 12.5975 6.05335 12.5352L6.16318 12.5264L6.25641 12.5189C6.67534 12.4849 7.03581 12.4556 7.35224 12.5292C8.07612 12.6975 8.65766 13.2416 8.88039 13.959C8.97774 14.2725 8.9773 14.6386 8.97678 15.0641L8.97671 19.2365C8.97671 19.527 8.97672 19.7753 8.96487 19.9793C8.95254 20.1916 8.9255 20.4059 8.84906 20.6172C8.59754 21.3126 8.00574 21.8245 7.28812 21.9676C7.07001 22.0111 6.85675 22.0047 6.64768 21.9839C6.44671 21.9639 6.20449 21.9252 5.92102 21.8799L5.79106 21.8591C4.99399 21.732 4.44737 21.6449 3.98991 21.4245C3.09534 20.9937 2.42388 20.1982 2.14308 19.2364C2.02467 18.8309 2.00404 18.3788 2.0006 17.7747L2 17.5803V12.124Z",fill:"currentColor"}),l.jsxs("g",{opacity:"0.5",children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.75C12.4142 5.75 12.75 6.08579 12.75 6.5L12.75 11.5C12.75 11.9142 12.4142 12.25 12 12.25C11.5858 12.25 11.25 11.9142 11.25 11.5L11.25 6.5C11.25 6.08579 11.5858 5.75 12 5.75Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.25C15.4142 7.25 15.75 7.58579 15.75 8V10C15.75 10.4142 15.4142 10.75 15 10.75C14.5858 10.75 14.25 10.4142 14.25 10V8C14.25 7.58579 14.5858 7.25 15 7.25Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 7.25C9.41421 7.25 9.75 7.58579 9.75 8L9.75 10C9.75 10.4142 9.41421 10.75 9 10.75C8.58579 10.75 8.25 10.4142 8.25 10L8.25 8C8.25 7.58579 8.58579 7.25 9 7.25Z",fill:"currentColor"})]})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M22 17V12C22 10.1786 21.513 8.47087 20.6622 7M2 18V12C2 6.47715 6.47715 2 12 2C13.8214 2 15.5291 2.48697 17 3.33782",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M8 15.1871C8 14.6088 8 14.3196 7.93097 14.0899C7.77135 13.5588 7.35457 13.156 6.83579 13.0313C6.61143 12.9775 6.33578 13.0002 5.78447 13.0457C4.82772 13.1247 4.34935 13.1642 3.95934 13.3151C3.06004 13.6629 2.3739 14.4394 2.1131 15.4044C2 15.8229 2 16.3248 2 17.3285V17.514C2 18.5431 2 19.0577 2.12305 19.493C2.36454 20.3475 2.942 21.0543 3.71133 21.437C4.10333 21.632 4.58932 21.7123 5.56129 21.8728C6.20632 21.9793 6.52883 22.0326 6.78984 21.9788C7.30414 21.8729 7.72826 21.4938 7.90852 20.9791C8 20.7178 8 20.3763 8 19.6934V15.1871Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M16 15.1871C16 14.6088 16 14.3196 16.069 14.0899C16.2286 13.5588 16.6454 13.156 17.1642 13.0313C17.3886 12.9775 17.6642 13.0002 18.2155 13.0457C19.1723 13.1247 19.6506 13.1642 20.0407 13.3151C20.94 13.6629 21.6261 14.4394 21.8869 15.4044C22 15.8229 22 16.3248 22 17.3285V17.514C22 18.5431 22 19.0577 21.877 19.493C21.6355 20.3475 21.058 21.0543 20.2887 21.437C19.8967 21.632 19.4107 21.7123 18.4387 21.8728C17.7937 21.9793 17.4712 22.0326 17.2102 21.9788C16.6959 21.8729 16.2717 21.4938 16.0915 20.9791C16 20.7178 16 20.3763 16 19.6934V15.1871Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M12 6.5L12 11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M15 8L15 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M9 8L9 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{opacity:"0.5",d:"M22 17V12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12V18",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M8 15.1871C8 14.6088 8 14.3196 7.93097 14.0899C7.77135 13.5588 7.35457 13.156 6.83579 13.0313C6.61143 12.9775 6.33578 13.0002 5.78447 13.0457C4.82772 13.1247 4.34935 13.1642 3.95934 13.3151C3.06004 13.6629 2.3739 14.4394 2.1131 15.4044C2 15.8229 2 16.3248 2 17.3285V17.514C2 18.5431 2 19.0577 2.12305 19.493C2.36454 20.3475 2.942 21.0543 3.71133 21.437C4.10333 21.632 4.58932 21.7123 5.56129 21.8728C6.20632 21.9793 6.52883 22.0326 6.78984 21.9788C7.30414 21.8729 7.72826 21.4938 7.90852 20.9791C8 20.7178 8 20.3763 8 19.6934V15.1871Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M16 15.1871C16 14.6088 16 14.3196 16.069 14.0899C16.2286 13.5588 16.6454 13.156 17.1642 13.0313C17.3886 12.9775 17.6642 13.0002 18.2155 13.0457C19.1723 13.1247 19.6506 13.1642 20.0407 13.3151C20.94 13.6629 21.6261 14.4394 21.8869 15.4044C22 15.8229 22 16.3248 22 17.3285V17.514C22 18.5431 22 19.0577 21.877 19.493C21.6355 20.3475 21.058 21.0543 20.2887 21.437C19.8967 21.632 19.4107 21.7123 18.4387 21.8728C17.7937 21.9793 17.4712 22.0326 17.2102 21.9788C16.6959 21.8729 16.2717 21.4938 16.0915 20.9791C16 20.7178 16 20.3763 16 19.6934V15.1871Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M12 6.5L12 11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M15 8L15 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M9 8L9 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M22 17V12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12V18",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M8 15.1871C8 14.6088 8 14.3196 7.93097 14.0899C7.77135 13.5588 7.35457 13.156 6.83579 13.0313C6.61143 12.9775 6.33578 13.0002 5.78447 13.0457C4.82772 13.1247 4.34935 13.1642 3.95934 13.3151C3.06004 13.6629 2.3739 14.4394 2.1131 15.4044C2 15.8229 2 16.3248 2 17.3285V17.514C2 18.5431 2 19.0577 2.12305 19.493C2.36454 20.3475 2.942 21.0543 3.71133 21.437C4.10333 21.632 4.58932 21.7123 5.56129 21.8728C6.20632 21.9793 6.52883 22.0326 6.78984 21.9788C7.30414 21.8729 7.72826 21.4938 7.90852 20.9791C8 20.7178 8 20.3763 8 19.6934V15.1871Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M16 15.1871C16 14.6088 16 14.3196 16.069 14.0899C16.2286 13.5588 16.6454 13.156 17.1642 13.0313C17.3886 12.9775 17.6642 13.0002 18.2155 13.0457C19.1723 13.1247 19.6506 13.1642 20.0407 13.3151C20.94 13.6629 21.6261 14.4394 21.8869 15.4044C22 15.8229 22 16.3248 22 17.3285V17.514C22 18.5431 22 19.0577 21.877 19.493C21.6355 20.3475 21.058 21.0543 20.2887 21.437C19.8967 21.632 19.4107 21.7123 18.4387 21.8728C17.7937 21.9793 17.4712 22.0326 17.2102 21.9788C16.6959 21.8729 16.2717 21.4938 16.0915 20.9791C16 20.7178 16 20.3763 16 19.6934V15.1871Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M12 6.5L12 11.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M15 8L15 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M9 8L9 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25005 12C1.25005 6.06294 6.06298 1.25 12 1.25C17.9371 1.25 22.75 6.06294 22.75 12V16.9903C22.7501 17.0619 22.7501 17.1355 22.7501 17.2112C22.7501 17.2497 22.75 17.2888 22.75 17.3285V17.514C22.75 17.5543 22.7501 17.5941 22.7501 17.6333C22.7503 18.5472 22.7505 19.1599 22.5987 19.697C22.3019 20.7473 21.5885 21.6281 20.6228 22.1085C20.1281 22.3546 19.5366 22.452 18.6816 22.5929C18.642 22.5994 18.6017 22.606 18.5609 22.6128L18.5393 22.6163C18.2353 22.6666 17.9741 22.7097 17.7571 22.732C17.5309 22.7552 17.2979 22.7626 17.0589 22.7134C16.2745 22.5518 15.6469 21.9787 15.3837 21.2269C15.3042 21.0001 15.2757 20.7692 15.2627 20.5365C15.25 20.3118 15.25 20.0379 15.25 19.714V15.1871C15.25 15.1529 15.25 15.119 15.25 15.0856C15.2495 14.6087 15.2491 14.2125 15.3508 13.874C15.5835 13.0997 16.1985 12.492 16.9891 12.3021C17.3343 12.2192 17.7272 12.2521 18.1754 12.2898C18.2091 12.2926 18.243 12.2954 18.2773 12.2983C18.318 12.3016 18.3582 12.3049 18.3977 12.3082C19.2377 12.3772 19.8184 12.4249 20.3113 12.6156C20.6522 12.7475 20.9673 12.9276 21.25 13.1475V12C21.25 6.89137 17.1087 2.75 12 2.75C6.89141 2.75 2.75005 6.89137 2.75005 12V13.1475C3.03277 12.9276 3.34792 12.7475 3.68881 12.6156C4.18169 12.4249 4.76235 12.3772 5.60236 12.3082C5.64193 12.3049 5.68207 12.3016 5.7228 12.2983C5.75707 12.2954 5.79102 12.2926 5.82467 12.2898C6.27289 12.2521 6.66578 12.2192 7.01102 12.3021C7.80159 12.492 8.41657 13.0997 8.64928 13.874C8.75101 14.2125 8.75061 14.6087 8.75012 15.0856C8.75008 15.119 8.75005 15.1529 8.75005 15.1871V19.7139C8.75005 20.0379 8.75006 20.3118 8.73743 20.5365C8.72434 20.7692 8.69585 21.0001 8.61642 21.2269C8.35318 21.9787 7.72564 22.5518 6.94119 22.7134C6.70224 22.7626 6.46919 22.7552 6.24301 22.732C6.02601 22.7097 5.76484 22.6666 5.4608 22.6163L5.43914 22.6128C5.39834 22.606 5.35811 22.5994 5.31846 22.5929C4.46344 22.452 3.87195 22.3546 3.37731 22.1085C2.41157 21.6281 1.6982 20.7473 1.40136 19.697C1.27082 19.2351 1.25268 18.7173 1.25033 18L1.25005 17.8576C1.24998 17.7848 1.25 17.7101 1.25002 17.6333C1.25003 17.5941 1.25005 17.5543 1.25005 17.514V17.3285C1.25005 17.2889 1.25003 17.2497 1.25002 17.2112C1.25 17.1357 1.24998 17.0623 1.25005 16.9909V12ZM2.75005 17.514C2.75005 18.5917 2.75704 18.9785 2.84482 19.2891C3.03097 19.9477 3.47252 20.4805 4.04544 20.7655C4.31186 20.8981 4.66021 20.9638 5.68353 21.1328C6.01525 21.1876 6.2306 21.2228 6.39623 21.2398C6.55781 21.2564 6.61652 21.2488 6.63859 21.2442C6.88274 21.1939 7.10343 21.009 7.20071 20.7312C7.21276 20.6968 7.23001 20.6263 7.23979 20.4523C7.24977 20.2748 7.25005 20.0434 7.25005 19.6934V15.1871C7.25005 14.5529 7.24194 14.4029 7.21276 14.3058C7.12623 14.0179 6.90765 13.8199 6.66065 13.7606C6.58309 13.742 6.458 13.7427 5.84623 13.7932C4.83829 13.8764 4.49389 13.9125 4.22996 14.0146C3.56286 14.2726 3.03836 14.8557 2.83717 15.6001C2.75653 15.8985 2.75005 16.2772 2.75005 17.3285V17.514ZM12 5.75C12.4143 5.75 12.75 6.08579 12.75 6.5L12.75 11.5C12.75 11.9142 12.4143 12.25 12 12.25C11.5858 12.25 11.25 11.9142 11.25 11.5L11.25 6.5C11.25 6.08579 11.5858 5.75 12 5.75ZM9.00005 7.25C9.41426 7.25 9.75005 7.58579 9.75005 8V10C9.75005 10.4142 9.41426 10.75 9.00005 10.75C8.58583 10.75 8.25005 10.4142 8.25005 10V8C8.25005 7.58579 8.58583 7.25 9.00005 7.25ZM15 7.25C15.4143 7.25 15.75 7.58579 15.75 8V10C15.75 10.4142 15.4143 10.75 15 10.75C14.5858 10.75 14.25 10.4142 14.25 10V8C14.25 7.58579 14.5858 7.25 15 7.25ZM18.1539 13.7932C17.5421 13.7427 17.417 13.742 17.3394 13.7606C17.0924 13.8199 16.8739 14.0179 16.7873 14.3058C16.7582 14.4029 16.75 14.5529 16.75 15.1871V19.6934C16.75 20.0434 16.7503 20.2748 16.7603 20.4523C16.7701 20.6263 16.7873 20.6968 16.7994 20.7312C16.8967 21.009 17.1174 21.1939 17.3615 21.2442C17.3836 21.2488 17.4423 21.2564 17.6039 21.2398C17.7695 21.2228 17.9848 21.1876 18.3166 21.1328C19.3399 20.9638 19.6882 20.8981 19.9547 20.7655C20.5276 20.4805 20.9691 19.9477 21.1553 19.2891C21.2431 18.9785 21.25 18.5917 21.25 17.514V17.3285C21.25 16.2772 21.2436 15.8985 21.1629 15.6001C20.9617 14.8557 20.4372 14.2726 19.7701 14.0146C19.5062 13.9125 19.1618 13.8764 18.1539 13.7932Z",fill:"currentColor"})})]]),i_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M15.75 12.25V11.5C15.75 11.0858 15.4142 10.75 15 10.75C14.5858 10.75 14.25 11.0858 14.25 11.5V12.25H7C6.30964 12.25 5.75 11.6904 5.75 11C5.75 10.3096 6.30964 9.75 7 9.75H17C17.6904 9.75 18.25 10.3096 18.25 11C18.25 11.6904 17.6904 12.25 17 12.25H15.75Z",fill:"currentColor"}),l.jsx("path",{d:"M6.75 17C6.75 16.5858 7.08579 16.25 7.5 16.25C7.91421 16.25 8.25 16.5858 8.25 17C8.25 17.4142 7.91421 17.75 7.5 17.75C7.08579 17.75 6.75 17.4142 6.75 17Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3195 3.67879C15.6943 3.50242 15.8552 3.05562 15.6788 2.68083C15.5024 2.30604 15.0556 2.14519 14.6808 2.32156L6.76692 6.04575C5.03147 6.13486 3.94566 6.39749 3.17157 7.17157C2 8.34315 2 10.2288 2 14C2 17.7712 2 19.6569 3.17157 20.8284C4.34315 22 6.22876 22 10 22H14C17.7712 22 19.6569 22 20.8284 20.8284C22 19.6569 22 17.7712 22 14C22 10.2288 22 8.34314 20.8284 7.17157C19.6569 6 17.7712 6 14 6H10.387L15.3195 3.67879ZM7 8.25C5.48122 8.25 4.25 9.48122 4.25 11C4.25 12.5188 5.48122 13.75 7 13.75H17C18.5188 13.75 19.75 12.5188 19.75 11C19.75 9.48122 18.5188 8.25 17 8.25H7ZM5.25 17C5.25 15.7574 6.25736 14.75 7.5 14.75C8.74264 14.75 9.75 15.7574 9.75 17C9.75 18.2426 8.74264 19.25 7.5 19.25C6.25736 19.25 5.25 18.2426 5.25 17ZM12.25 17C12.25 16.5858 12.5858 16.25 13 16.25H18C18.4142 16.25 18.75 16.5858 18.75 17C18.75 17.4142 18.4142 17.75 18 17.75H13C12.5858 17.75 12.25 17.4142 12.25 17Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{opacity:"0.5",d:"M2 14C2 10.2288 2 8.34315 3.17157 7.17157C4.34315 6 6.22876 6 10 6H14C17.7712 6 19.6569 6 20.8284 7.17157C22 8.34315 22 10.2288 22 14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.25 17C5.25 15.7574 6.25736 14.75 7.5 14.75C8.74264 14.75 9.75 15.7574 9.75 17C9.75 18.2426 8.74264 19.25 7.5 19.25C6.25736 19.25 5.25 18.2426 5.25 17Z",fill:"currentColor"}),l.jsx("path",{d:"M7 9C5.89543 9 5 9.89543 5 11C5 12.1046 5.89543 13 7 13H14.25V11.5C14.25 11.0858 14.5858 10.75 15 10.75C15.4142 10.75 15.75 11.0858 15.75 11.5V13H17C18.1046 13 19 12.1046 19 11C19 9.89543 18.1046 9 17 9H7Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.25 17C12.25 16.5858 12.5858 16.25 13 16.25H18C18.4142 16.25 18.75 16.5858 18.75 17C18.75 17.4142 18.4142 17.75 18 17.75H13C12.5858 17.75 12.25 17.4142 12.25 17Z",fill:"currentColor"}),l.jsx("path",{d:"M15.3641 2.65575C15.7262 2.45459 15.8567 1.99799 15.6555 1.6359C15.4543 1.27382 14.9977 1.14336 14.6357 1.34452L6.08789 6.09328C6.96396 6.01308 8.02944 6.00194 9.34378 6.00039L15.3641 2.65575Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 9H17C18.1046 9 19 9.89543 19 11C19 12.1046 18.1046 13 17 13H7C5.89543 13 5 12.1046 5 11C5 9.89543 5.89543 9 7 9H8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M9 17C9 17.8284 8.32843 18.5 7.5 18.5C6.67157 18.5 6 17.8284 6 17C6 16.1716 6.67157 15.5 7.5 15.5C8.32843 15.5 9 16.1716 9 17Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M15 11.5V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M13 17H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M6.5 6L15 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M22 14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14C2 10.2288 2 8.34315 3.17157 7.17157C4.34315 6 6.22876 6 10 6H14C17.7712 6 19.6569 6 20.8284 7.17157C21.4816 7.82475 21.7706 8.69989 21.8985 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 14C2 10.2288 2 8.34315 3.17157 7.17157C4.34315 6 6.22876 6 10 6H14C17.7712 6 19.6569 6 20.8284 7.17157C22 8.34315 22 10.2288 22 14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M5 11C5 9.89543 5.89543 9 7 9H17C18.1046 9 19 9.89543 19 11C19 12.1046 18.1046 13 17 13H7C5.89543 13 5 12.1046 5 11Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M9 17C9 17.8284 8.32843 18.5 7.5 18.5C6.67157 18.5 6 17.8284 6 17C6 16.1716 6.67157 15.5 7.5 15.5C8.32843 15.5 9 16.1716 9 17Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M15 11.5V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{opacity:"0.5",d:"M13 17H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M6.5 6L15 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 14C2 10.2288 2 8.34315 3.17157 7.17157C4.34315 6 6.22876 6 10 6H14C17.7712 6 19.6569 6 20.8284 7.17157C22 8.34315 22 10.2288 22 14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M5 11C5 9.89543 5.89543 9 7 9H17C18.1046 9 19 9.89543 19 11C19 12.1046 18.1046 13 17 13H7C5.89543 13 5 12.1046 5 11Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M9 17C9 17.8284 8.32843 18.5 7.5 18.5C6.67157 18.5 6 17.8284 6 17C6 16.1716 6.67157 15.5 7.5 15.5C8.32843 15.5 9 16.1716 9 17Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M15 11.5V13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M13 17H18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M6.5 6L15 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6786 1.68083C15.855 2.05562 15.6941 2.50242 15.3193 2.67879L9.85515 5.25018C9.88453 5.25018 9.91401 5.25018 9.94358 5.25018H14.0564C15.8942 5.25016 17.3498 5.25015 18.489 5.40331C19.6614 5.56094 20.6104 5.89306 21.3588 6.64142C22.1071 7.38978 22.4392 8.33873 22.5969 9.51115C22.75 10.6504 22.75 12.106 22.75 13.9438V14.0566C22.75 15.8944 22.75 17.35 22.5969 18.4892C22.4392 19.6616 22.1071 20.6106 21.3588 21.3589C20.6104 22.1073 19.6614 22.4394 18.489 22.597C17.3498 22.7502 15.8942 22.7502 14.0564 22.7502H9.94359C8.10583 22.7502 6.65019 22.7502 5.51098 22.597C4.33856 22.4394 3.38961 22.1073 2.64124 21.3589C1.89288 20.6106 1.56076 19.6616 1.40314 18.4892C1.24997 17.35 1.24998 15.8944 1.25 14.0566V13.9438C1.24998 12.106 1.24997 10.6504 1.40314 9.51115C1.56076 8.33873 1.89288 7.38978 2.64124 6.64142C3.38961 5.89306 4.33856 5.56094 5.51098 5.40331C5.71495 5.37589 5.92907 5.35337 6.15372 5.33489C6.16257 5.33029 6.17155 5.32585 6.18065 5.32156L14.6807 1.32156C15.0554 1.14519 15.5022 1.30604 15.6786 1.68083ZM5.71085 6.88994C4.70476 7.0252 4.12511 7.27887 3.7019 7.70208C3.27869 8.12529 3.02502 8.70494 2.88976 9.71103C2.75159 10.7387 2.75 12.0934 2.75 14.0002C2.75 15.907 2.75159 17.2617 2.88976 18.2893C3.02502 19.2954 3.27869 19.8751 3.7019 20.2983C4.12511 20.7215 4.70476 20.9752 5.71085 21.1104C6.73851 21.2486 8.09318 21.2502 10 21.2502H14C15.9068 21.2502 17.2615 21.2486 18.2892 21.1104C19.2952 20.9752 19.8749 20.7215 20.2981 20.2983C20.7213 19.8751 20.975 19.2954 21.1102 18.2893C21.2484 17.2617 21.25 15.907 21.25 14.0002C21.25 12.0934 21.2484 10.7387 21.1102 9.71103C20.975 8.70494 20.7213 8.12529 20.2981 7.70208C19.8749 7.27887 19.2952 7.0252 18.2892 6.88994C17.2615 6.75177 15.9068 6.75018 14 6.75018H10C8.09318 6.75018 6.73851 6.75177 5.71085 6.88994ZM4.25 11.0002C4.25 9.48139 5.48122 8.25018 7 8.25018H17C18.5188 8.25018 19.75 9.48139 19.75 11.0002C19.75 12.519 18.5188 13.7502 17 13.7502H7C5.48122 13.7502 4.25 12.519 4.25 11.0002ZM15.75 12.2502V11.5002C15.75 11.086 15.4142 10.7502 15 10.7502C14.5858 10.7502 14.25 11.086 14.25 11.5002V12.2502H7C6.30964 12.2502 5.75 11.6905 5.75 11.0002C5.75 10.3098 6.30964 9.75018 7 9.75018H17C17.6904 9.75018 18.25 10.3098 18.25 11.0002C18.25 11.6905 17.6904 12.2502 17 12.2502H15.75ZM7.5 16.2502C7.08579 16.2502 6.75 16.586 6.75 17.0002C6.75 17.4144 7.08579 17.7502 7.5 17.7502C7.91421 17.7502 8.25 17.4144 8.25 17.0002C8.25 16.586 7.91421 16.2502 7.5 16.2502ZM5.25 17.0002C5.25 15.7575 6.25736 14.7502 7.5 14.7502C8.74264 14.7502 9.75 15.7575 9.75 17.0002C9.75 18.2428 8.74264 19.2502 7.5 19.2502C6.25736 19.2502 5.25 18.2428 5.25 17.0002ZM12.25 17.0002C12.25 16.586 12.5858 16.2502 13 16.2502H18C18.4142 16.2502 18.75 16.586 18.75 17.0002C18.75 17.4144 18.4142 17.7502 18 17.7502H13C12.5858 17.7502 12.25 17.4144 12.25 17.0002Z",fill:"currentColor"})})]]),s_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.2509 11.8809C2.2404 12.057 2.26536 12.2706 2.3153 12.6978L2.71598 16.1258C2.89681 17.6729 3.72352 19.0714 4.99182 19.9757C5.9263 20.6419 7.04537 21 8.19303 21H11.8069C12.9546 21 14.0736 20.6419 15.0081 19.9757C15.8116 19.4028 16.4378 18.6317 16.8349 17.75H19C21.0711 17.75 22.75 16.0711 22.75 14C22.75 11.9289 21.0711 10.25 19 10.25H16.7212C16.5325 10.1455 16.3244 10.0703 16.1027 10.0309C15.929 10 15.7139 10 15.2838 10H4.71612C4.286 10 4.07094 10 3.89725 10.0309C2.98677 10.1928 2.30599 10.9577 2.2509 11.8809ZM17.7369 11.75C17.7424 11.7932 17.7464 11.8369 17.749 11.8809C17.7595 12.057 17.7346 12.2706 17.6847 12.6977L17.284 16.1258C17.2791 16.1673 17.2738 16.2087 17.268 16.25H19C20.2426 16.25 21.25 15.2426 21.25 14C21.25 12.7574 20.2426 11.75 19 11.75H17.7369Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5305 1.46967C10.8234 1.76256 10.8234 2.23744 10.5305 2.53033C10.2711 2.78972 10.2711 3.21028 10.5305 3.46967C11.3757 4.31485 11.3757 5.68515 10.5305 6.53033C10.2376 6.82322 9.76271 6.82322 9.46982 6.53033C9.17693 6.23744 9.17693 5.76256 9.46982 5.46967C9.72921 5.21028 9.72921 4.78972 9.46982 4.53033C8.62464 3.68515 8.62464 2.31485 9.46982 1.46967C9.76271 1.17678 10.2376 1.17678 10.5305 1.46967Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.03033 2.96967C6.32322 3.26256 6.32322 3.73744 6.03033 4.03033L5.91421 4.14645C5.67096 4.3897 5.6436 4.77479 5.85 5.05C6.50429 5.92239 6.41753 7.14313 5.64645 7.91421L5.53033 8.03033C5.23744 8.32322 4.76256 8.32322 4.46967 8.03033C4.17678 7.73744 4.17678 7.26256 4.46967 6.96967L4.58579 6.85355C4.82904 6.6103 4.8564 6.22521 4.65 5.95C3.99571 5.07761 4.08247 3.85687 4.85355 3.08579L4.96967 2.96967C5.26256 2.67678 5.73744 2.67678 6.03033 2.96967Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5303 2.96967C15.8232 3.26256 15.8232 3.73744 15.5303 4.03033L15.4142 4.14645C15.171 4.3897 15.1436 4.77479 15.35 5.05C16.0043 5.92239 15.9175 7.14313 15.1464 7.91421L15.0303 8.03033C14.7374 8.32322 14.2626 8.32322 13.9697 8.03033C13.6768 7.73744 13.6768 7.26256 13.9697 6.96967L14.0858 6.85355C14.329 6.6103 14.3564 6.22521 14.15 5.95C13.4957 5.07761 13.5825 3.85687 14.3536 3.08579L14.4697 2.96967C14.7626 2.67678 15.2374 2.67678 15.5303 2.96967Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.2509 11.8809C2.2404 12.057 2.26536 12.2706 2.3153 12.6978L2.71598 16.1258C2.89681 17.6729 3.72352 19.0714 4.99182 19.9757C5.9263 20.6419 7.04537 21 8.19303 21H11.8069C12.9546 21 14.0736 20.6419 15.0081 19.9757C15.8116 19.4028 16.4378 18.6317 16.8349 17.75H19C21.0711 17.75 22.75 16.0711 22.75 14C22.75 11.9289 21.0711 10.25 19 10.25H16.7212C16.5325 10.1455 16.3244 10.0703 16.1027 10.0309C15.929 10 15.7139 10 15.2838 10H4.71612C4.286 10 4.07094 10 3.89725 10.0309C2.98677 10.1928 2.30599 10.9577 2.2509 11.8809ZM17.7369 11.75C17.7424 11.7932 17.7464 11.8369 17.749 11.8809C17.7595 12.057 17.7346 12.2706 17.6847 12.6977L17.284 16.1258C17.2791 16.1673 17.2738 16.2087 17.268 16.25H19C20.2426 16.25 21.25 15.2426 21.25 14C21.25 12.7574 20.2426 11.75 19 11.75H17.7369Z",fill:"currentColor"}),l.jsxs("g",{opacity:"0.5",children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5307 1.46967C10.8236 1.76256 10.8236 2.23744 10.5307 2.53033C10.2713 2.78972 10.2713 3.21028 10.5307 3.46967C11.3758 4.31485 11.3758 5.68515 10.5307 6.53033C10.2378 6.82322 9.7629 6.82322 9.47001 6.53033C9.17712 6.23744 9.17712 5.76256 9.47001 5.46967C9.7294 5.21028 9.7294 4.78972 9.47001 4.53033C8.62483 3.68515 8.62483 2.31485 9.47001 1.46967C9.7629 1.17678 10.2378 1.17678 10.5307 1.46967Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.03052 2.96967C6.32341 3.26256 6.32341 3.73744 6.03052 4.03033L5.9144 4.14645C5.67115 4.3897 5.64379 4.77479 5.85019 5.05C6.50448 5.92239 6.41772 7.14313 5.64664 7.91421L5.53052 8.03033C5.23763 8.32322 4.76275 8.32322 4.46986 8.03033C4.17697 7.73744 4.17697 7.26256 4.46986 6.96967L4.58598 6.85355C4.82923 6.6103 4.85659 6.22521 4.65019 5.95C3.9959 5.07761 4.08266 3.85687 4.85374 3.08579L4.96986 2.96967C5.26275 2.67678 5.73763 2.67678 6.03052 2.96967Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.5305 2.96967C15.8234 3.26256 15.8234 3.73744 15.5305 4.03033L15.4144 4.14645C15.1712 4.3897 15.1438 4.77479 15.3502 5.05C16.0045 5.92239 15.9177 7.14313 15.1466 7.91421L15.0305 8.03033C14.7376 8.32322 14.2628 8.32322 13.9699 8.03033C13.677 7.73744 13.677 7.26256 13.9699 6.96967L14.086 6.85355C14.3292 6.6103 14.3566 6.22521 14.1502 5.95C13.4959 5.07761 13.5827 3.85687 14.3537 3.08579L14.4699 2.96967C14.7628 2.67678 15.2376 2.67678 15.5305 2.96967Z",fill:"currentColor"})]})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2.71598 16.1258C2.89681 17.6729 3.72352 19.0714 4.99182 19.9757C5.9263 20.6419 7.04537 21 8.19303 21H11.8069C12.9546 21 14.0736 20.6419 15.0081 19.9757C16.2764 19.0714 17.1031 17.6729 17.284 16.1258L17.6846 12.6978C17.7346 12.2706 17.7595 12.057 17.749 11.8809C17.694 10.9577 17.0132 10.1928 16.1027 10.0309C15.929 10 15.7139 10 15.2838 10H4.71612C4.286 10 4.07094 10 3.89725 10.0309C2.98677 10.1928 2.30599 10.9577 2.2509 11.8809C2.2404 12.057 2.26536 12.2706 2.3153 12.6978",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M17 17H19C20.6569 17 22 15.6569 22 14C22 12.3431 20.6569 11 19 11H17.5",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M10.0002 2C9.44787 2.55228 9.44787 3.44772 10.0002 4C10.5524 4.55228 10.5524 5.44772 10.0002 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M4.99994 7.5L5.11605 7.38388C5.62322 6.87671 5.68028 6.0738 5.24994 5.5C4.81959 4.9262 4.87665 4.12329 5.38382 3.61612L5.49994 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M14.4999 7.5L14.6161 7.38388C15.1232 6.87671 15.1803 6.0738 14.7499 5.5C14.3196 4.9262 14.3767 4.12329 14.8838 3.61612L14.9999 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2.3153 12.6978C2.26536 12.2706 2.2404 12.057 2.2509 11.8809C2.30599 10.9577 2.98677 10.1928 3.89725 10.0309C4.07094 10 4.286 10 4.71612 10H15.2838C15.7139 10 15.929 10 16.1027 10.0309C17.0132 10.1928 17.694 10.9577 17.749 11.8809C17.7595 12.057 17.7346 12.2706 17.6846 12.6978L17.284 16.1258C17.1031 17.6729 16.2764 19.0714 15.0081 19.9757C14.0736 20.6419 12.9546 21 11.8069 21H8.19303C7.04537 21 5.9263 20.6419 4.99182 19.9757C3.72352 19.0714 2.89681 17.6729 2.71598 16.1258L2.3153 12.6978Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M17 17H19C20.6569 17 22 15.6569 22 14C22 12.3431 20.6569 11 19 11H17.5",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M10.0002 2C9.44787 2.55228 9.44787 3.44772 10.0002 4C10.5524 4.55228 10.5524 5.44772 10.0002 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M4.99994 7.5L5.11605 7.38388C5.62322 6.87671 5.68028 6.0738 5.24994 5.5C4.81959 4.9262 4.87665 4.12329 5.38382 3.61612L5.49994 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M14.4999 7.5L14.6161 7.38388C15.1232 6.87671 15.1803 6.0738 14.7499 5.5C14.3196 4.9262 14.3767 4.12329 14.8838 3.61612L14.9999 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2.3153 12.6978C2.26536 12.2706 2.2404 12.057 2.2509 11.8809C2.30599 10.9577 2.98677 10.1928 3.89725 10.0309C4.07094 10 4.286 10 4.71612 10H15.2838C15.7139 10 15.929 10 16.1027 10.0309C17.0132 10.1928 17.694 10.9577 17.749 11.8809C17.7595 12.057 17.7346 12.2706 17.6846 12.6978L17.284 16.1258C17.1031 17.6729 16.2764 19.0714 15.0081 19.9757C14.0736 20.6419 12.9546 21 11.8069 21H8.19303C7.04537 21 5.9263 20.6419 4.99182 19.9757C3.72352 19.0714 2.89681 17.6729 2.71598 16.1258L2.3153 12.6978Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M17 17H19C20.6569 17 22 15.6569 22 14C22 12.3431 20.6569 11 19 11H17.5",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M10.0002 2C9.44787 2.55228 9.44787 3.44772 10.0002 4C10.5524 4.55228 10.5524 5.44772 10.0002 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M5.00018 7.5L5.1163 7.38388C5.62347 6.87671 5.68053 6.0738 5.25018 5.5C4.81983 4.9262 4.8769 4.12329 5.38407 3.61612L5.50018 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M14.5002 7.5L14.6163 7.38388C15.1235 6.87671 15.1805 6.0738 14.7502 5.5C14.3198 4.9262 14.3769 4.12329 14.8841 3.61612L15.0002 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5303 1.46967C10.8232 1.76256 10.8232 2.23744 10.5303 2.53033C10.2709 2.78972 10.2709 3.21028 10.5303 3.46967C11.3755 4.31485 11.3755 5.68515 10.5303 6.53033C10.2374 6.82322 9.76252 6.82322 9.46963 6.53033C9.17673 6.23744 9.17673 5.76256 9.46963 5.46967C9.72902 5.21028 9.72902 4.78972 9.46963 4.53033C8.62445 3.68515 8.62445 2.31485 9.46963 1.46967C9.76252 1.17678 10.2374 1.17678 10.5303 1.46967ZM6.03013 2.96967C6.32303 3.26256 6.32303 3.73744 6.03013 4.03033L5.91402 4.14645C5.67077 4.3897 5.6434 4.77479 5.8498 5.05C6.50409 5.92239 6.41734 7.14313 5.64625 7.91421L5.53013 8.03033C5.23724 8.32322 4.76237 8.32322 4.46947 8.03033C4.17658 7.73744 4.17658 7.26256 4.46947 6.96967L4.58559 6.85355C4.82884 6.6103 4.85621 6.22521 4.6498 5.95C3.99552 5.07761 4.08227 3.85687 4.85336 3.08579L4.96947 2.96967C5.26237 2.67678 5.73724 2.67678 6.03013 2.96967ZM15.5301 2.96967C15.823 3.26256 15.823 3.73744 15.5301 4.03033L15.414 4.14645C15.1708 4.3897 15.1434 4.77479 15.3498 5.05C16.0041 5.92239 15.9173 7.14313 15.1463 7.91421L15.0301 8.03033C14.7372 8.32322 14.2624 8.32322 13.9695 8.03033C13.6766 7.73744 13.6766 7.26256 13.9695 6.96967L14.0856 6.85355C14.3288 6.6103 14.3562 6.22521 14.1498 5.95C13.4955 5.07761 13.5823 3.85687 14.3534 3.08579L14.4695 2.96967C14.7624 2.67678 15.2372 2.67678 15.5301 2.96967ZM4.64721 9.24998C4.66979 9.24999 4.69271 9.25 4.71595 9.25H15.2837C15.3069 9.25 15.3298 9.24999 15.3524 9.24998C15.7151 9.24982 15.9933 9.24969 16.2338 9.29246C16.8955 9.4101 17.4689 9.75939 17.8738 10.25H18.9998C21.0709 10.25 22.7498 11.9289 22.7498 14C22.7498 16.0711 21.0709 17.75 18.9998 17.75H17.6476C17.2095 18.8798 16.4485 19.8697 15.4433 20.5864C14.3818 21.3432 13.1105 21.75 11.8067 21.75H8.19287C6.88911 21.75 5.61784 21.3432 4.55626 20.5864C3.11546 19.5591 2.17631 17.9704 1.97088 16.2129L1.5702 12.7849C1.5675 12.7618 1.56483 12.739 1.5622 12.7166C1.51994 12.3564 1.48752 12.0801 1.50207 11.8362C1.57781 10.5669 2.51388 9.51505 3.7658 9.29246C4.00634 9.24969 4.28455 9.24982 4.64721 9.24998ZM16.4681 16.4711C16.3332 16.6067 16.2498 16.7936 16.2498 17C16.2498 17.0551 16.2557 17.1088 16.267 17.1605C15.9369 18.0395 15.351 18.81 14.5726 19.365C13.7652 19.9406 12.7983 20.25 11.8067 20.25H8.19287C7.20129 20.25 6.23443 19.9406 5.42705 19.365C4.33125 18.5837 3.61698 17.3755 3.46074 16.0388L3.06006 12.6107C3.00623 12.1502 2.99385 12.0187 2.99941 11.9255C3.03383 11.3486 3.45932 10.8705 4.02837 10.7693C4.12023 10.753 4.25232 10.75 4.71595 10.75H15.2837C15.7473 10.75 15.8794 10.753 15.9712 10.7693C16.5403 10.8705 16.9658 11.3486 17.0002 11.9255C17.0058 12.0187 16.9934 12.1502 16.9396 12.6107L16.5389 16.0388C16.5218 16.1845 16.4982 16.3288 16.4681 16.4711ZM18.0243 16.25H18.9998C20.2424 16.25 21.2498 15.2426 21.2498 14C21.2498 12.7574 20.2424 11.75 18.9998 11.75H18.491C18.4937 11.7786 18.4958 11.8073 18.4975 11.8362C18.5121 12.0801 18.4797 12.3564 18.4374 12.7166C18.4348 12.739 18.4321 12.7618 18.4294 12.7849L18.0287 16.2129C18.0273 16.2253 18.0258 16.2376 18.0243 16.25Z",fill:"currentColor"})})]]),l_=new Map([["Bold",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.17157 4.17157C2 5.34315 2 7.22876 2 11V13C2 16.7712 2 18.6569 3.17157 19.8284C4.34315 21 6.22876 21 10 21H14C14.0843 21 14.1676 21 14.25 21L14.25 3C14.1676 2.99999 14.0843 3 14 3H10C6.22876 3 4.34315 3 3.17157 4.17157ZM15.75 3.00559L15.75 20.9944C18.3859 20.9668 19.8541 20.8028 20.8284 19.8284C22 18.6569 22 16.7712 22 13V11C22 7.22876 22 5.34315 20.8284 4.17157C19.8541 3.19724 18.3859 3.03321 15.75 3.00559Z",fill:"currentColor"})})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M3.17157 4.1716C2 5.34318 2 7.2288 2 11V13C2 16.7713 2 18.6569 3.17157 19.8285C4.34315 21 6.22876 21 10 21H14C14.0843 21 14.9176 21.0001 15 21.0001L15 3.00006C14.9176 3.00005 14.0843 3.00003 14 3.00003H10C6.22876 3.00003 4.34315 3.00003 3.17157 4.1716Z",fill:"currentColor"}),l.jsx("path",{d:"M22 13V11C22 7.22876 22 5.34315 20.8284 4.17157C19.8541 3.19724 17.6359 3.03321 15 3.00559V20.9944C17.6359 20.9668 19.8541 20.8028 20.8284 19.8284C22 18.6569 22 16.7712 22 13Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M15 3L15 13M15 17L15 21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M2 11V13C2 16.7712 2 18.6569 3.17157 19.8284C4.34315 21 6.22876 21 10 21H14C17.7712 21 19.6569 21 20.8284 19.8284C22 18.6569 22 16.7712 22 13V11C22 7.22876 22 5.34315 20.8284 4.17157C19.6569 3 17.7712 3 14 3H10C6.22876 3 4.34315 3 3.17157 4.17157C2.51839 4.82475 2.22937 5.69989 2.10149 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 11C2 7.22876 2 5.34315 3.17157 4.17157C4.34315 3 6.22876 3 10 3H14C17.7712 3 19.6569 3 20.8284 4.17157C22 5.34315 22 7.22876 22 11V13C22 16.7712 22 18.6569 20.8284 19.8284C19.6569 21 17.7712 21 14 21H10C6.22876 21 4.34315 21 3.17157 19.8284C2 18.6569 2 16.7712 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M15 21L15 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 11C2 7.22876 2 5.34315 3.17157 4.17157C4.34315 3 6.22876 3 10 3H14C17.7712 3 19.6569 3 20.8284 4.17157C22 5.34315 22 7.22876 22 11V13C22 16.7712 22 18.6569 20.8284 19.8284C19.6569 21 17.7712 21 14 21H10C6.22876 21 4.34315 21 3.17157 19.8284C2 18.6569 2 16.7712 2 13V11Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M15 21L15 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.94358 2.25C8.10583 2.24998 6.65019 2.24997 5.51098 2.40314C4.33856 2.56076 3.38961 2.89288 2.64124 3.64124C1.89288 4.38961 1.56076 5.33856 1.40314 6.51098C1.24997 7.65019 1.24998 9.10582 1.25 10.9436V13.0564C1.24998 14.8942 1.24997 16.3498 1.40314 17.489C1.56076 18.6614 1.89288 19.6104 2.64124 20.3588C3.38961 21.1071 4.33856 21.4392 5.51098 21.5969C6.65018 21.75 8.1058 21.75 9.94354 21.75H14.0564C14.3706 21.75 14.6738 21.75 14.966 21.7492C14.9773 21.7497 14.9886 21.75 15 21.75C15.0129 21.75 15.0257 21.7497 15.0384 21.749C16.4224 21.7448 17.5607 21.7217 18.489 21.5969C19.6614 21.4392 20.6104 21.1071 21.3588 20.3588C22.1071 19.6104 22.4392 18.6614 22.5969 17.489C22.75 16.3498 22.75 14.8942 22.75 13.0565V10.9436C22.75 9.10585 22.75 7.65018 22.5969 6.51098C22.4392 5.33856 22.1071 4.38961 21.3588 3.64124C20.6104 2.89288 19.6614 2.56076 18.489 2.40314C17.5607 2.27833 16.4224 2.25523 15.0384 2.25096C15.0257 2.25032 15.0129 2.25 15 2.25C14.9886 2.25 14.9773 2.25025 14.966 2.25076C14.6737 2.25 14.3707 2.25 14.0564 2.25H9.94358ZM14.25 3.75002C14.1677 3.75 14.0844 3.75 14 3.75H10C8.09318 3.75 6.73851 3.75159 5.71085 3.88976C4.70476 4.02503 4.12511 4.27869 3.7019 4.7019C3.27869 5.12511 3.02503 5.70476 2.88976 6.71085C2.75159 7.73851 2.75 9.09318 2.75 11V13C2.75 14.9068 2.75159 16.2615 2.88976 17.2892C3.02503 18.2952 3.27869 18.8749 3.7019 19.2981C4.12511 19.7213 4.70476 19.975 5.71085 20.1102C6.73851 20.2484 8.09318 20.25 10 20.25H14C14.0844 20.25 14.1677 20.25 14.25 20.25L14.25 3.75002ZM15.75 20.2443C16.7836 20.2334 17.6082 20.2018 18.2892 20.1102C19.2952 19.975 19.8749 19.7213 20.2981 19.2981C20.7213 18.8749 20.975 18.2952 21.1102 17.2892C21.2484 16.2615 21.25 14.9068 21.25 13V11C21.25 9.09318 21.2484 7.73851 21.1102 6.71085C20.975 5.70476 20.7213 5.12511 20.2981 4.7019C19.8749 4.27869 19.2952 4.02503 18.2892 3.88976C17.6082 3.79821 16.7836 3.76662 15.75 3.75573L15.75 20.2443Z",fill:"currentColor"})})]]),u_=new Map([["Bold",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M3.16496 19.5025L10.5275 2.99281C11.1178 1.66906 12.8822 1.66906 13.4725 2.99281L20.835 19.5025C21.5021 20.9984 20.0209 22.5499 18.6331 21.809L12.7294 18.657C12.2702 18.4118 11.7298 18.4118 11.2706 18.657L5.36689 21.809C3.97914 22.5499 2.49789 20.9984 3.16496 19.5025Z",fill:"currentColor"})})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M8.0374 9.85761C7.78266 9.73024 7.47314 9.84107 7.35714 10.1012L3.16447 19.5029C2.49741 20.9987 3.97865 22.5503 5.36641 21.8093L11.2701 18.6573C11.7293 18.4121 12.2697 18.4122 12.7289 18.6573L18.6326 21.8093C20.0204 22.5503 21.5016 20.9987 20.8346 19.5029L19.2629 15.9785C19.0743 15.5557 18.7448 15.2113 18.3307 15.0043L8.0374 9.85761Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M8.6095 8.46721C8.37019 8.34755 8.26749 8.06071 8.37646 7.81635L10.5271 2.99379C11.1174 1.67004 12.8818 1.67004 13.4722 2.99379L17.4401 11.8915C17.6313 12.3202 17.1797 12.7523 16.7598 12.5424L8.6095 8.46721Z",fill:"currentColor"})]})],["Broken",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M7.40261 10L10.5275 2.99281C11.1178 1.66906 12.8822 1.66906 13.4725 2.99281L20.835 19.5025C21.5021 20.9984 20.0209 22.5499 18.6331 21.809L12.7294 18.657C12.2702 18.4118 11.7298 18.4118 11.2706 18.657L5.36689 21.809C3.97914 22.5499 2.49789 20.9984 3.16496 19.5025L5.28379 14.7513",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 18.4731C11.7501 18.4731 11.5002 18.5344 11.2706 18.657L5.36689 21.809C3.97914 22.5499 2.49789 20.9984 3.16496 19.5025L10.5275 2.99281C10.8226 2.33094 11.4113 2 12 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{opacity:"0.5",d:"M12 18.4731C12.2499 18.4731 12.4998 18.5344 12.7294 18.657L18.6331 21.809C20.0209 22.5499 21.5021 20.9984 20.835 19.5025L13.4725 2.99281C13.1774 2.33094 12.5887 2 12 2",stroke:"currentColor",strokeWidth:"1.5"})]})],["Linear",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M3.16496 19.5025L10.5275 2.99281C11.1178 1.66906 12.8822 1.66906 13.4725 2.99281L20.835 19.5025C21.5021 20.9984 20.0209 22.5499 18.6331 21.809L12.7294 18.657C12.2702 18.4118 11.7298 18.4118 11.2706 18.657L5.36689 21.809C3.97914 22.5499 2.49789 20.9984 3.16496 19.5025Z",stroke:"currentColor",strokeWidth:"1.5"})})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.047 22.0126C21.7005 21.328 21.9871 20.2449 21.5199 19.1972L14.1574 2.68746C13.3027 0.770992 10.697 0.770992 9.84236 2.68746L2.47986 19.1972C2.01265 20.2449 2.29922 21.328 2.95277 22.0126C3.61181 22.7029 4.68804 23.0217 5.72001 22.4707L5.36677 21.8091L5.72001 22.4707L11.6237 19.3187L11.2705 18.6571L11.6237 19.3187C11.8621 19.1914 12.1376 19.1914 12.376 19.3187L18.2797 22.4707L18.633 21.8091L18.2797 22.4707C19.3117 23.0217 20.3879 22.7029 21.047 22.0126ZM18.9862 21.1475L18.6356 21.8043L18.9862 21.1475L13.0825 17.9955C12.4026 17.6325 11.5972 17.6325 10.9172 17.9955L5.01353 21.1475C4.65774 21.3375 4.29947 21.2509 4.03773 20.9768C3.77047 20.6968 3.64996 20.2563 3.84981 19.8081L11.2123 3.29838C11.5383 2.56735 12.4614 2.56735 12.7874 3.29838L20.1499 19.8081C20.3498 20.2563 20.2293 20.6968 19.962 20.9768C19.7003 21.2509 19.342 21.3375 18.9862 21.1475Z",fill:"currentColor"})})]]),c_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M11.4001 18.1612L11.4001 18.1612L18.796 10.7653C17.7894 10.3464 16.5972 9.6582 15.4697 8.53068C14.342 7.40298 13.6537 6.21058 13.2348 5.2039L5.83882 12.5999L5.83879 12.5999C5.26166 13.1771 4.97307 13.4657 4.7249 13.7838C4.43213 14.1592 4.18114 14.5653 3.97634 14.995C3.80273 15.3593 3.67368 15.7465 3.41556 16.5208L2.05445 20.6042C1.92743 20.9852 2.0266 21.4053 2.31063 21.6894C2.59466 21.9734 3.01478 22.0726 3.39584 21.9456L7.47918 20.5844C8.25351 20.3263 8.6407 20.1973 9.00498 20.0237C9.43469 19.8189 9.84082 19.5679 10.2162 19.2751C10.5343 19.0269 10.823 18.7383 11.4001 18.1612Z",fill:"currentColor"}),l.jsx("path",{d:"M20.8482 8.71306C22.3839 7.17735 22.3839 4.68748 20.8482 3.15178C19.3125 1.61607 16.8226 1.61607 15.2869 3.15178L14.3999 4.03882C14.4121 4.0755 14.4246 4.11268 14.4377 4.15035C14.7628 5.0875 15.3763 6.31601 16.5303 7.47002C17.6843 8.62403 18.9128 9.23749 19.85 9.56262C19.8875 9.57563 19.9245 9.58817 19.961 9.60026L20.8482 8.71306Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{opacity:"0.5",d:"M20.8487 8.71306C22.3844 7.17735 22.3844 4.68748 20.8487 3.15178C19.313 1.61607 16.8231 1.61607 15.2874 3.15178L14.4004 4.03882C14.4125 4.0755 14.4251 4.11268 14.4382 4.15035C14.7633 5.0875 15.3768 6.31601 16.5308 7.47002C17.6848 8.62403 18.9133 9.23749 19.8505 9.56262C19.888 9.57563 19.925 9.58817 19.9615 9.60026L20.8487 8.71306Z",fill:"currentColor"}),l.jsx("path",{d:"M14.4386 4L14.4004 4.03819C14.4125 4.07487 14.4251 4.11206 14.4382 4.14973C14.7633 5.08687 15.3768 6.31538 16.5308 7.4694C17.6848 8.62341 18.9133 9.23686 19.8505 9.56199C19.8876 9.57489 19.9243 9.58733 19.9606 9.59933L11.4001 18.1598C10.823 18.7369 10.5343 19.0255 10.2162 19.2737C9.84082 19.5665 9.43469 19.8175 9.00498 20.0223C8.6407 20.1959 8.25351 20.3249 7.47918 20.583L3.39584 21.9442C3.01478 22.0712 2.59466 21.972 2.31063 21.688C2.0266 21.4039 1.92743 20.9838 2.05445 20.6028L3.41556 16.5194C3.67368 15.7451 3.80273 15.3579 3.97634 14.9936C4.18114 14.5639 4.43213 14.1578 4.7249 13.7824C4.97307 13.4643 5.26165 13.1757 5.83874 12.5986L14.4386 4Z",fill:"currentColor"})]})],["Broken",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M14.3601 4.07866L15.2869 3.15178C16.8226 1.61607 19.3125 1.61607 20.8482 3.15178C22.3839 4.68748 22.3839 7.17735 20.8482 8.71306L19.9213 9.63993M14.3601 4.07866C14.3601 4.07866 14.4759 6.04828 16.2138 7.78618C17.9517 9.52407 19.9213 9.63993 19.9213 9.63993M14.3601 4.07866L12 6.43872M19.9213 9.63993L14.6607 14.9006L11.5613 18L11.4001 18.1612C10.8229 18.7383 10.5344 19.0269 10.2162 19.2751C9.84082 19.5679 9.43469 19.8189 9.00498 20.0237C8.6407 20.1973 8.25352 20.3263 7.47918 20.5844L4.19792 21.6782M4.19792 21.6782L3.39584 21.9456C3.01478 22.0726 2.59466 21.9734 2.31063 21.6894C2.0266 21.4053 1.92743 20.9852 2.05445 20.6042L2.32181 19.8021M4.19792 21.6782L2.32181 19.8021M2.32181 19.8021L3.41556 16.5208C3.67368 15.7465 3.80273 15.3593 3.97634 14.995C4.18114 14.5653 4.43213 14.1592 4.7249 13.7838C4.97308 13.4656 5.26166 13.1771 5.83882 12.5999L8.5 9.93872",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M15.2869 3.15178L14.3601 4.07866L5.83882 12.5999L5.83881 12.5999C5.26166 13.1771 4.97308 13.4656 4.7249 13.7838C4.43213 14.1592 4.18114 14.5653 3.97634 14.995C3.80273 15.3593 3.67368 15.7465 3.41556 16.5208L2.32181 19.8021L2.05445 20.6042C1.92743 20.9852 2.0266 21.4053 2.31063 21.6894C2.59466 21.9734 3.01478 22.0726 3.39584 21.9456L4.19792 21.6782L7.47918 20.5844L7.47919 20.5844C8.25353 20.3263 8.6407 20.1973 9.00498 20.0237C9.43469 19.8189 9.84082 19.5679 10.2162 19.2751C10.5344 19.0269 10.8229 18.7383 11.4001 18.1612L11.4001 18.1612L19.9213 9.63993L20.8482 8.71306C22.3839 7.17735 22.3839 4.68748 20.8482 3.15178C19.3125 1.61607 16.8226 1.61607 15.2869 3.15178Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M14.36 4.07812C14.36 4.07812 14.4759 6.04774 16.2138 7.78564C17.9517 9.52354 19.9213 9.6394 19.9213 9.6394M4.19789 21.6777L2.32178 19.8015",stroke:"currentColor",strokeWidth:"1.5"})]})],["Linear",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M14.3601 4.07866L15.2869 3.15178C16.8226 1.61607 19.3125 1.61607 20.8482 3.15178C22.3839 4.68748 22.3839 7.17735 20.8482 8.71306L19.9213 9.63993M14.3601 4.07866C14.3601 4.07866 14.4759 6.04828 16.2138 7.78618C17.9517 9.52407 19.9213 9.63993 19.9213 9.63993M14.3601 4.07866L5.83882 12.5999C5.26166 13.1771 4.97308 13.4656 4.7249 13.7838C4.43213 14.1592 4.18114 14.5653 3.97634 14.995C3.80273 15.3593 3.67368 15.7465 3.41556 16.5208L2.32181 19.8021M19.9213 9.63993L11.4001 18.1612C10.8229 18.7383 10.5344 19.0269 10.2162 19.2751C9.84082 19.5679 9.43469 19.8189 9.00498 20.0237C8.6407 20.1973 8.25352 20.3263 7.47918 20.5844L4.19792 21.6782M4.19792 21.6782L3.39584 21.9456C3.01478 22.0726 2.59466 21.9734 2.31063 21.6894C2.0266 21.4053 1.92743 20.9852 2.05445 20.6042L2.32181 19.8021M4.19792 21.6782L2.32181 19.8021",stroke:"currentColor",strokeWidth:"1.5"})})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7566 2.62145C16.5852 0.792851 19.55 0.792851 21.3786 2.62145C23.2072 4.45005 23.2072 7.41479 21.3786 9.24339L11.8933 18.7287C11.3514 19.2706 11.0323 19.5897 10.6774 19.8665C10.2592 20.1927 9.80655 20.4725 9.32766 20.7007C8.92136 20.8943 8.49334 21.037 7.76623 21.2793L4.43511 22.3897L3.63303 22.6571C2.98247 22.8739 2.26522 22.7046 1.78032 22.2197C1.29542 21.7348 1.1261 21.0175 1.34296 20.367L2.72068 16.2338C2.96303 15.5067 3.10568 15.0787 3.29932 14.6724C3.52755 14.1935 3.80727 13.7409 4.13354 13.3226C4.41035 12.9677 4.72939 12.6487 5.27137 12.1067L14.7566 2.62145ZM4.40051 20.8201L7.24203 19.8729C8.03314 19.6092 8.36927 19.4958 8.68233 19.3466C9.06287 19.1653 9.42252 18.943 9.75492 18.6837C10.0284 18.4704 10.2801 18.2205 10.8698 17.6308L18.4393 10.0614C17.6506 9.78321 16.6346 9.26763 15.6835 8.31651C14.7324 7.36538 14.2168 6.34939 13.9387 5.56075L6.36917 13.1302C5.77951 13.7199 5.52959 13.9716 5.3163 14.2451C5.05704 14.5775 4.83476 14.9371 4.65341 15.3177C4.50421 15.6307 4.3908 15.9669 4.12709 16.758L3.17992 19.5995L4.40051 20.8201ZM15.1554 4.34404C15.1896 4.519 15.2474 4.75684 15.3438 5.03487C15.561 5.66083 15.9712 6.48288 16.7442 7.25585C17.5171 8.02881 18.3392 8.43903 18.9651 8.6562C19.2432 8.75266 19.481 8.81046 19.656 8.84466L20.3179 8.18272C21.5607 6.93991 21.5607 4.92492 20.3179 3.68211C19.0751 2.4393 17.0601 2.4393 15.8173 3.68211L15.1554 4.34404Z",fill:"currentColor"})})]]),f_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.93417 2C7.95604 2 7.97799 2 8 2L16.0658 2C16.9523 1.99995 17.7161 1.99991 18.3278 2.08215C18.9833 2.17028 19.6117 2.36902 20.1213 2.87868C20.631 3.38835 20.8297 4.0167 20.9179 4.67221C21.0001 5.28388 21.0001 6.0477 21 6.9342L21 7.95C21 8.50229 20.5523 8.95 20 8.95C19.4477 8.95 19 8.50229 19 7.95V7.00001C19 6.02893 18.9979 5.40122 18.9357 4.93871C18.8774 4.50497 18.7832 4.36902 18.7071 4.2929C18.631 4.21677 18.495 4.12263 18.0613 4.06431C17.5988 4.00213 16.9711 4 16 4H13V21C13 21.5523 12.5523 22 12 22C11.4477 22 11 21.5523 11 21V4H8C7.02893 4 6.40122 4.00213 5.93871 4.06431C5.50497 4.12263 5.36902 4.21677 5.2929 4.2929C5.21677 4.36902 5.12263 4.50497 5.06431 4.93871C5.00213 5.40122 5 6.02893 5 7.00001V7.95C5 8.50229 4.55229 8.95 4 8.95C3.44772 8.95 3 8.50229 3 7.95V7.00001C3 6.97799 3 6.95604 3 6.93418C2.99995 6.04769 2.99991 5.28387 3.08215 4.67221C3.17028 4.0167 3.36902 3.38835 3.87868 2.87868C4.38835 2.36902 5.0167 2.17028 5.67221 2.08215C6.28387 1.99991 7.04769 1.99995 7.93417 2Z",fill:"currentColor"}),l.jsx("path",{d:"M7 21H17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2L7.93417 2C7.04769 1.99995 6.28387 1.99991 5.67221 2.08215C5.0167 2.17028 4.38835 2.36902 3.87868 2.87868C3.36902 3.38835 3.17028 4.0167 3.08215 4.67221C2.99991 5.28387 2.99995 6.04769 3 6.93418L3 7.00001V7.95C3 8.50229 3.44772 8.95 4 8.95C4.55229 8.95 5 8.50229 5 7.95V7.00001C5 6.02893 5.00213 5.40122 5.06431 4.93871C5.12263 4.50497 5.21677 4.36902 5.2929 4.2929C5.36902 4.21677 5.50497 4.12263 5.93871 4.06431C6.40122 4.00213 7.02893 4 8 4H11H13H16C16.9711 4 17.5988 4.00213 18.0613 4.06431C18.495 4.12263 18.631 4.21677 18.7071 4.2929C18.7832 4.36902 18.8774 4.50497 18.9357 4.93871C18.9979 5.40122 19 6.02893 19 7.00001V7.95C19 8.50229 19.4477 8.95 20 8.95C20.5523 8.95 21 8.50229 21 7.95L21 6.9342C21.0001 6.0477 21.0001 5.28388 20.9179 4.67221C20.8297 4.0167 20.631 3.38835 20.1213 2.87868C19.6117 2.36902 18.9833 2.17028 18.3278 2.08215C17.7161 1.99991 16.9523 1.99995 16.0658 2L8 2Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M13 4H11V20H13V4Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 21C6 20.4477 6.44772 20 7 20H17C17.5523 20 18 20.4477 18 21C18 21.5523 17.5523 22 17 22H7C6.44772 22 6 21.5523 6 21Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 3H8C6.11438 3 5.17157 3 4.58579 3.58579C4 4.17157 4 5.11438 4 7V7.95M12 3H16C17.8856 3 18.8284 3 19.4142 3.58579C20 4.17157 20 5.11438 20 7V7.95M12 3V8M12 21V12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7 21H17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M20 7.95V7C20 5.11438 20 4.17157 19.4142 3.58579C18.8284 3 17.8856 3 16 3H12H8C6.11438 3 5.17157 3 4.58579 3.58579C4 4.17157 4 5.11438 4 7V7.95",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{opacity:"0.5",d:"M12 3V21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7 21H17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 3H8C6.11438 3 5.17157 3 4.58579 3.58579C4 4.17157 4 5.11438 4 7V7.95M12 3H16C17.8856 3 18.8284 3 19.4142 3.58579C20 4.17157 20 5.11438 20 7V7.95M12 3V21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7 21H17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M7.948 2.25C7.04954 2.24997 6.3003 2.24995 5.70552 2.32991C5.07773 2.41432 4.51093 2.59999 4.05546 3.05546C3.59999 3.51093 3.41432 4.07773 3.32991 4.70552C3.24995 5.3003 3.24997 6.04951 3.25 6.94798L3.25 7.95C3.25 8.36422 3.58579 8.7 4 8.7C4.41422 8.7 4.75 8.36422 4.75 7.95V7C4.75 6.03599 4.7516 5.38843 4.81654 4.9054C4.87858 4.44393 4.9858 4.24644 5.11612 4.11612C5.24644 3.9858 5.44393 3.87858 5.9054 3.81654C6.38843 3.7516 7.03599 3.75 8 3.75H11.25V20.25H7C6.58579 20.25 6.25 20.5858 6.25 21C6.25 21.4142 6.58579 21.75 7 21.75H17C17.4142 21.75 17.75 21.4142 17.75 21C17.75 20.5858 17.4142 20.25 17 20.25H12.75V3.75H16C16.964 3.75 17.6116 3.7516 18.0946 3.81654C18.5561 3.87858 18.7536 3.9858 18.8839 4.11612C19.0142 4.24644 19.1214 4.44393 19.1835 4.9054C19.2484 5.38843 19.25 6.03599 19.25 7V7.95C19.25 8.36422 19.5858 8.7 20 8.7C20.4142 8.7 20.75 8.36422 20.75 7.95V6.94801C20.75 6.04953 20.7501 5.30031 20.6701 4.70552C20.5857 4.07773 20.4 3.51093 19.9445 3.05546C19.4891 2.59999 18.9223 2.41432 18.2945 2.32991C17.6997 2.24995 16.9505 2.24997 16.052 2.25H7.948Z",fill:"currentColor"})})]]),d_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.13612 1.6026C8.35566 1.95386 8.24887 2.41657 7.89762 2.6361L3.8976 5.1361C3.54634 5.35563 3.08363 5.24885 2.8641 4.8976C2.64457 4.54634 2.75135 4.08363 3.1026 3.8641L7.10263 1.3641C7.45388 1.14457 7.91659 1.25135 8.13612 1.6026ZM15.8641 1.6026C16.0836 1.25135 16.5463 1.14457 16.8976 1.3641L20.8976 3.8641C21.2489 4.08363 21.3556 4.54635 21.1361 4.8976C20.9166 5.24885 20.4539 5.35563 20.1026 5.1361L16.1026 2.6361C15.7513 2.41657 15.6446 1.95385 15.8641 1.6026Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.0001 13.0001C21.0001 17.9707 16.9707 22.0001 12.0001 22.0001C7.02954 22.0001 3.0001 17.9707 3.0001 13.0001C3.0001 8.02954 7.02954 4.0001 12.0001 4.0001C16.9707 4.0001 21.0001 8.02954 21.0001 13.0001ZM16.0001 15.5001C16.0001 15.966 16.0001 16.199 15.924 16.3828C15.8225 16.6278 15.6278 16.8225 15.3828 16.924C15.199 17.0001 14.966 17.0001 14.5001 17.0001C14.0342 17.0001 13.8012 17.0001 13.6174 16.924C13.3724 16.8225 13.1777 16.6278 13.0762 16.3828C13.0001 16.199 13.0001 15.966 13.0001 15.5001V10.5001C13.0001 10.0342 13.0001 9.80119 13.0762 9.61742C13.1777 9.37239 13.3724 9.17771 13.6174 9.07622C13.8012 9.0001 14.0342 9.0001 14.5001 9.0001C14.966 9.0001 15.199 9.0001 15.3828 9.07622C15.6278 9.17771 15.8225 9.37239 15.924 9.61742C16.0001 9.80119 16.0001 10.0342 16.0001 10.5001V15.5001ZM11.0001 15.5001V10.5001C11.0001 10.0342 11.0001 9.80119 10.924 9.61742C10.8225 9.37239 10.6278 9.17771 10.3828 9.07622C10.199 9.0001 9.96604 9.0001 9.5001 9.0001C9.03416 9.0001 8.80119 9.0001 8.61742 9.07622C8.37239 9.17771 8.17771 9.37239 8.07622 9.61742C8.0001 9.80119 8.0001 10.0342 8.0001 10.5001V15.5001C8.0001 15.966 8.0001 16.199 8.07622 16.3828C8.17771 16.6278 8.37239 16.8225 8.61742 16.924C8.80119 17.0001 9.03416 17.0001 9.5001 17.0001C9.96604 17.0001 10.199 17.0001 10.3828 16.924C10.6278 16.8225 10.8225 16.6278 10.924 16.3828C11.0001 16.199 11.0001 15.966 11.0001 15.5001Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{opacity:"0.5",d:"M12 22C16.9706 22 21 17.9706 21 13C21 8.02944 16.9706 4 12 4C7.02944 4 3 8.02944 3 13C3 17.9706 7.02944 22 12 22Z",fill:"currentColor"}),l.jsx("path",{d:"M11 15.5V10.5V10.5C11 10.0341 11 9.80109 10.9239 9.61732C10.8224 9.37229 10.6277 9.17761 10.3827 9.07612C10.1989 9 9.96594 9 9.5 9C9.03406 9 8.80109 9 8.61732 9.07612C8.37229 9.17761 8.17761 9.37229 8.07612 9.61732C8 9.80109 8 10.0341 8 10.5V15.5C8 15.9659 8 16.1989 8.07612 16.3827C8.17761 16.6277 8.37229 16.8224 8.61732 16.9239C8.80109 17 9.03406 17 9.5 17C9.96594 17 10.1989 17 10.3827 16.9239C10.6277 16.8224 10.8224 16.6277 10.9239 16.3827C11 16.1989 11 15.9659 11 15.5V15.5Z",fill:"currentColor"}),l.jsx("path",{d:"M16 15.5V10.5C16 10.0341 16 9.80109 15.9239 9.61732C15.8224 9.37229 15.6277 9.17761 15.3827 9.07612C15.1989 9 14.9659 9 14.5 9C14.0341 9 13.8011 9 13.6173 9.07612C13.3723 9.17761 13.1776 9.37229 13.0761 9.61732C13 9.80109 13 10.0341 13 10.5V15.5C13 15.9659 13 16.1989 13.0761 16.3827C13.1776 16.6277 13.3723 16.8224 13.6173 16.9239C13.8011 17 14.0341 17 14.5 17C14.9659 17 15.1989 17 15.3827 16.9239C15.6277 16.8224 15.8224 16.6277 15.9239 16.3827C16 16.1989 16 15.9659 16 15.5Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.2405 2.33986C8.45409 2.67841 8.3502 3.1244 8.00844 3.33599L4.11657 5.74562C3.77481 5.95722 3.32461 5.8543 3.11102 5.51574C2.89742 5.17718 3.00131 4.7312 3.34307 4.5196L7.23494 2.10998C7.5767 1.89838 8.0269 2.0013 8.2405 2.33986Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7595 2.33985C15.9731 2.0013 16.4233 1.89838 16.7651 2.10998L20.6569 4.5196C20.9987 4.7312 21.1026 5.17719 20.889 5.51574C20.6754 5.8543 20.2252 5.95722 19.8834 5.74562L15.9916 3.33599C15.6498 3.1244 15.5459 2.67841 15.7595 2.33985Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M3.5 4.5L7.50002 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M20.5 4.5L16.5 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 10.5C8 10.0341 8 9.80109 8.07612 9.61732C8.17761 9.37229 8.37229 9.17761 8.61732 9.07612C8.80109 9 9.03406 9 9.5 9C9.96594 9 10.1989 9 10.3827 9.07612C10.6277 9.17761 10.8224 9.37229 10.9239 9.61732C11 9.80109 11 10.0341 11 10.5V15.5C11 15.9659 11 16.1989 10.9239 16.3827C10.8224 16.6277 10.6277 16.8224 10.3827 16.9239C10.1989 17 9.96594 17 9.5 17C9.03406 17 8.80109 17 8.61732 16.9239C8.37229 16.8224 8.17761 16.6277 8.07612 16.3827C8 16.1989 8 15.9659 8 15.5V10.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M13 10.5C13 10.0341 13 9.80109 13.0761 9.61732C13.1776 9.37229 13.3723 9.17761 13.6173 9.07612C13.8011 9 14.0341 9 14.5 9C14.9659 9 15.1989 9 15.3827 9.07612C15.6277 9.17761 15.8224 9.37229 15.9239 9.61732C16 9.80109 16 10.0341 16 10.5V15.5C16 15.9659 16 16.1989 15.9239 16.3827C15.8224 16.6277 15.6277 16.8224 15.3827 16.9239C15.1989 17 14.9659 17 14.5 17C14.0341 17 13.8011 17 13.6173 16.9239C13.3723 16.8224 13.1776 16.6277 13.0761 16.3827C13 16.1989 13 15.9659 13 15.5V10.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M7.5 5.20404C8.82378 4.43827 10.3607 4 12 4C16.9706 4 21 8.02944 21 13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13C3 11.3607 3.43827 9.82378 4.20404 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("circle",{opacity:"0.5",cx:"12",cy:"13",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M3.5 4.5L7.50002 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M20.5 4.5L16.5 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 10.5C8 10.0341 8 9.80109 8.07612 9.61732C8.17761 9.37229 8.37229 9.17761 8.61732 9.07612C8.80109 9 9.03406 9 9.5 9C9.96594 9 10.1989 9 10.3827 9.07612C10.6277 9.17761 10.8224 9.37229 10.9239 9.61732C11 9.80109 11 10.0341 11 10.5V15.5C11 15.9659 11 16.1989 10.9239 16.3827C10.8224 16.6277 10.6277 16.8224 10.3827 16.9239C10.1989 17 9.96594 17 9.5 17C9.03406 17 8.80109 17 8.61732 16.9239C8.37229 16.8224 8.17761 16.6277 8.07612 16.3827C8 16.1989 8 15.9659 8 15.5V10.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M13 10.5C13 10.0341 13 9.80109 13.0761 9.61732C13.1776 9.37229 13.3723 9.17761 13.6173 9.07612C13.8011 9 14.0341 9 14.5 9C14.9659 9 15.1989 9 15.3827 9.07612C15.6277 9.17761 15.8224 9.37229 15.9239 9.61732C16 9.80109 16 10.0341 16 10.5V15.5C16 15.9659 16 16.1989 15.9239 16.3827C15.8224 16.6277 15.6277 16.8224 15.3827 16.9239C15.1989 17 14.9659 17 14.5 17C14.0341 17 13.8011 17 13.6173 16.9239C13.3723 16.8224 13.1776 16.6277 13.0761 16.3827C13 16.1989 13 15.9659 13 15.5V10.5Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("circle",{cx:"12",cy:"13",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M3.5 4.5L7.50002 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M20.5 4.5L16.5 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 10.5C8 10.0341 8 9.80109 8.07612 9.61732C8.17761 9.37229 8.37229 9.17761 8.61732 9.07612C8.80109 9 9.03406 9 9.5 9C9.96594 9 10.1989 9 10.3827 9.07612C10.6277 9.17761 10.8224 9.37229 10.9239 9.61732C11 9.80109 11 10.0341 11 10.5V15.5C11 15.9659 11 16.1989 10.9239 16.3827C10.8224 16.6277 10.6277 16.8224 10.3827 16.9239C10.1989 17 9.96594 17 9.5 17C9.03406 17 8.80109 17 8.61732 16.9239C8.37229 16.8224 8.17761 16.6277 8.07612 16.3827C8 16.1989 8 15.9659 8 15.5V10.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M13 10.5C13 10.0341 13 9.80109 13.0761 9.61732C13.1776 9.37229 13.3723 9.17761 13.6173 9.07612C13.8011 9 14.0341 9 14.5 9C14.9659 9 15.1989 9 15.3827 9.07612C15.6277 9.17761 15.8224 9.37229 15.9239 9.61732C16 9.80109 16 10.0341 16 10.5V15.5C16 15.9659 16 16.1989 15.9239 16.3827C15.8224 16.6277 15.6277 16.8224 15.3827 16.9239C15.1989 17 14.9659 17 14.5 17C14.0341 17 13.8011 17 13.6173 16.9239C13.3723 16.8224 13.1776 16.6277 13.0761 16.3827C13 16.1989 13 15.9659 13 15.5V10.5Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["Outline",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.89752 2.6361C8.24877 2.41657 8.35556 1.95386 8.13602 1.6026C7.91649 1.25135 7.45378 1.14457 7.10253 1.3641L3.1025 3.8641C2.75125 4.08363 2.64447 4.54634 2.864 4.8976C3.08353 5.24885 3.54624 5.35563 3.8975 5.1361L7.89752 2.6361ZM16.8975 1.3641C16.5462 1.14457 16.0835 1.25135 15.864 1.6026C15.6445 1.95385 15.7512 2.41657 16.1025 2.6361L20.1025 5.1361C20.4538 5.35563 20.9165 5.24885 21.136 4.8976C21.3555 4.54635 21.2488 4.08363 20.8975 3.8641L16.8975 1.3641ZM3.75 13.0001C3.75 8.44375 7.44365 4.7501 12 4.7501C16.5563 4.7501 20.25 8.44375 20.25 13.0001C20.25 17.5564 16.5563 21.2501 12 21.2501C7.44365 21.2501 3.75 17.5564 3.75 13.0001ZM12 3.2501C6.61522 3.2501 2.25 7.61532 2.25 13.0001C2.25 18.3849 6.61522 22.7501 12 22.7501C17.3848 22.7501 21.75 18.3849 21.75 13.0001C21.75 7.61532 17.3848 3.2501 12 3.2501ZM9.52176 8.2501H9.47824C9.26396 8.25009 9.06712 8.25008 8.90179 8.26136C8.72415 8.27348 8.52881 8.30109 8.3303 8.38331C7.9015 8.56093 7.56083 8.90161 7.38321 9.3304C7.30099 9.52891 7.27338 9.72425 7.26125 9.90189C7.24997 10.0672 7.24999 10.2641 7.25 10.4783V15.5219C7.24999 15.7361 7.24997 15.933 7.26125 16.0983C7.27338 16.276 7.30099 16.4713 7.38321 16.6698C7.56083 17.0986 7.90151 17.4393 8.3303 17.6169C8.52881 17.6991 8.72415 17.7267 8.90179 17.7388C9.06712 17.7501 9.26396 17.7501 9.47824 17.7501H9.52176C9.73604 17.7501 9.93288 17.7501 10.0982 17.7388C10.2759 17.7267 10.4712 17.6991 10.6697 17.6169C11.0985 17.4393 11.4392 17.0986 11.6168 16.6698C11.699 16.4713 11.7266 16.276 11.7387 16.0983C11.75 15.933 11.75 15.7361 11.75 15.5219V10.4783C11.75 10.2641 11.75 10.0672 11.7387 9.90189C11.7266 9.72425 11.699 9.52891 11.6168 9.3304C11.4392 8.90161 11.0985 8.56093 10.6697 8.38331C10.4712 8.30109 10.2759 8.27348 10.0982 8.26136C9.93288 8.25008 9.73604 8.25009 9.52176 8.2501ZM8.7703 9.90141C8.79558 9.84258 8.84248 9.79568 8.90131 9.7704C8.90867 9.76854 8.93707 9.76243 9.0039 9.75788C9.1119 9.75051 9.25677 9.7501 9.5 9.7501C9.74323 9.7501 9.8881 9.75051 9.9961 9.75788C10.0629 9.76244 10.0913 9.76854 10.0987 9.7704C10.1575 9.79568 10.2044 9.84258 10.2297 9.90141C10.2316 9.90876 10.2377 9.93716 10.2422 10.004C10.2496 10.112 10.25 10.2569 10.25 10.5001V15.5001C10.25 15.7433 10.2496 15.8882 10.2422 15.9962C10.2377 16.063 10.2316 16.0914 10.2297 16.0988C10.2044 16.1576 10.1575 16.2045 10.0987 16.2298C10.0913 16.2317 10.0629 16.2378 9.9961 16.2423C9.8881 16.2497 9.74323 16.2501 9.5 16.2501C9.25677 16.2501 9.1119 16.2497 9.0039 16.2423C8.93707 16.2378 8.90866 16.2317 8.90131 16.2298C8.84248 16.2045 8.79558 16.1576 8.7703 16.0988C8.76844 16.0914 8.76234 16.063 8.75778 15.9962C8.75041 15.8882 8.75 15.7433 8.75 15.5001V10.5001C8.75 10.2569 8.75041 10.112 8.75778 10.004C8.76234 9.93717 8.76844 9.90876 8.7703 9.90141Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5587 8.239H14.5152C14.3009 8.23899 14.1041 8.23898 13.9387 8.25026C13.7611 8.26238 13.5658 8.28999 13.3673 8.37222C12.9385 8.54983 12.5978 8.89051 12.4202 9.31931C12.3379 9.51781 12.3103 9.71315 12.2982 9.8908C12.2869 10.0561 12.2869 10.253 12.287 10.4672V15.5108C12.2869 15.725 12.2869 15.9219 12.2982 16.0872C12.3103 16.2649 12.3379 16.4602 12.4202 16.6587C12.5978 17.0875 12.9385 17.4282 13.3673 17.6058C13.5658 17.688 13.7611 17.7156 13.9387 17.7277C14.1041 17.739 14.3009 17.739 14.5152 17.739H14.5587C14.773 17.739 14.9698 17.739 15.1352 17.7277C15.3128 17.7156 15.5082 17.688 15.7067 17.6058C16.1355 17.4282 16.4761 17.0875 16.6537 16.6587C16.736 16.4602 16.7636 16.2649 16.7757 16.0872C16.787 15.9219 16.787 15.725 16.787 15.5108V10.4672C16.787 10.253 16.787 10.0561 16.7757 9.8908C16.7636 9.71315 16.736 9.51781 16.6537 9.31931C16.4761 8.89051 16.1355 8.54983 15.7067 8.37222C15.5082 8.28999 15.3128 8.26238 15.1352 8.25026C14.9698 8.23898 14.773 8.23899 14.5587 8.239ZM13.9383 9.75931C13.8794 9.78458 13.8325 9.83148 13.8073 9.89031C13.8054 9.89767 13.7993 9.92607 13.7947 9.9929C13.7874 10.1009 13.787 10.2458 13.787 10.489V15.489C13.787 15.7322 13.7874 15.8771 13.7947 15.9851C13.7993 16.0519 13.8054 16.0803 13.8073 16.0877C13.8325 16.1465 13.8794 16.1934 13.9383 16.2187C13.9456 16.2206 13.974 16.2267 14.0409 16.2312C14.1489 16.2386 14.2937 16.239 14.537 16.239C14.7802 16.239 14.9251 16.2386 15.0331 16.2312C15.0999 16.2267 15.1283 16.2206 15.1357 16.2187C15.1945 16.1934 15.2414 16.1465 15.2667 16.0877C15.2685 16.0803 15.2746 16.0519 15.2792 15.9851C15.2866 15.8771 15.287 15.7322 15.287 15.489V10.489C15.287 10.2458 15.2866 10.1009 15.2792 9.9929C15.2746 9.92607 15.2685 9.89766 15.2667 9.89031C15.2414 9.83148 15.1945 9.78458 15.1356 9.75931C15.1283 9.75744 15.0999 9.75134 15.0331 9.74678C14.9251 9.73941 14.7802 9.739 14.537 9.739C14.2937 9.739 14.1489 9.73941 14.0409 9.74678C13.974 9.75134 13.9456 9.75744 13.9383 9.75931Z",fill:"currentColor"})]})]]),h_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0001 22.0001C16.9707 22.0001 21.0001 17.9707 21.0001 13.0001C21.0001 8.02954 16.9707 4.0001 12.0001 4.0001C7.02954 4.0001 3.0001 8.02954 3.0001 13.0001C3.0001 17.9707 7.02954 22.0001 12.0001 22.0001ZM13.0262 10.275C12.7889 10.1084 12.5202 9.93607 12.242 9.76689C11.1696 9.11476 10.6334 8.78869 10.1525 9.1497C9.6716 9.51071 9.6279 10.2665 9.54048 11.7779C9.51576 12.2054 9.5001 12.6244 9.5001 13.0001C9.5001 13.3758 9.51576 13.7948 9.54048 14.2223C9.62789 15.7337 9.6716 16.4895 10.1525 16.8505C10.6334 17.2115 11.1696 16.8854 12.242 16.2333C12.5202 16.0641 12.7889 15.8918 13.0262 15.7252C13.2967 15.5353 13.591 15.3074 13.8877 15.0653C14.9626 14.1884 15.5001 13.75 15.5001 13.0001C15.5001 12.2502 14.9626 11.8118 13.8877 10.9349C13.591 10.6928 13.2967 10.4649 13.0262 10.275Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.13612 1.6026C8.35566 1.95386 8.24887 2.41657 7.89762 2.6361L3.8976 5.1361C3.54634 5.35563 3.08363 5.24885 2.8641 4.8976C2.64457 4.54634 2.75135 4.08363 3.1026 3.8641L7.10263 1.3641C7.45388 1.14457 7.91659 1.25135 8.13612 1.6026ZM15.8641 1.6026C16.0836 1.25135 16.5463 1.14457 16.8976 1.3641L20.8976 3.8641C21.2489 4.08363 21.3556 4.54635 21.1361 4.8976C20.9166 5.24885 20.4539 5.35563 20.1026 5.1361L16.1026 2.6361C15.7513 2.41657 15.6446 1.95385 15.8641 1.6026Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("g",{opacity:"0.5",children:l.jsx("path",{d:"M12 22C16.9706 22 21 17.9706 21 13C21 8.02944 16.9706 4 12 4C7.02944 4 3 8.02944 3 13C3 17.9706 7.02944 22 12 22Z",fill:"currentColor"})}),l.jsx("path",{d:"M13.0261 10.2749C12.7888 10.1083 12.5201 9.93597 12.2419 9.76679L12.2419 9.76679C11.1695 9.11466 10.6333 8.78859 10.1524 9.1496C9.6715 9.51061 9.62779 10.2664 9.54038 11.7778C9.51566 12.2053 9.5 12.6243 9.5 13C9.5 13.3757 9.51566 13.7947 9.54038 14.2222C9.62779 15.7336 9.6715 16.4894 10.1524 16.8504C10.6333 17.2114 11.1695 16.8853 12.2419 16.2332C12.5201 16.064 12.7888 15.8917 13.0261 15.7251C13.2966 15.5352 13.5909 15.3073 13.8876 15.0652C14.9625 14.1883 15.5 13.7499 15.5 13C15.5 12.2501 14.9625 11.8117 13.8876 10.9348C13.5909 10.6927 13.2966 10.4648 13.0261 10.2749Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.2405 2.33986C8.45409 2.67841 8.3502 3.1244 8.00844 3.33599L4.11657 5.74562C3.77481 5.95722 3.32461 5.8543 3.11102 5.51574C2.89742 5.17718 3.00131 4.7312 3.34307 4.5196L7.23494 2.10998C7.5767 1.89838 8.0269 2.0013 8.2405 2.33986Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7595 2.33985C15.9731 2.0013 16.4233 1.89838 16.7651 2.10998L20.6569 4.5196C20.9987 4.7312 21.1026 5.17719 20.889 5.51574C20.6754 5.8543 20.2252 5.95722 19.8834 5.74562L15.9916 3.33599C15.6498 3.1244 15.5459 2.67841 15.7595 2.33985Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M13.8876 10.9348C14.9625 11.8117 15.5 12.2501 15.5 13C15.5 13.7499 14.9625 14.1883 13.8876 15.0652C13.5909 15.3073 13.2966 15.5352 13.0261 15.7251C12.7888 15.8917 12.5201 16.064 12.2419 16.2332C11.1695 16.8853 10.6333 17.2114 10.1524 16.8504C9.6715 16.4894 9.62779 15.7336 9.54038 14.2222C9.51566 13.7947 9.5 13.3757 9.5 13C9.5 12.6243 9.51566 12.2053 9.54038 11.7778C9.62779 10.2664 9.6715 9.51061 10.1524 9.1496C10.6333 8.78859 11.1695 9.11466 12.2419 9.76679C12.5201 9.93597 12.7888 10.1083 13.0261 10.2749C13.2966 10.4648 13.5909 10.6927 13.8876 10.9348Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M3.5 4.5L7.50002 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M20.5 4.5L16.5 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7.5 5.20404C8.82378 4.43827 10.3607 4 12 4C16.9706 4 21 8.02944 21 13C21 17.9706 16.9706 22 12 22C7.02944 22 3 17.9706 3 13C3 11.3607 3.43827 9.82378 4.20404 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("circle",{opacity:"0.5",cx:"12",cy:"13",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M13.8876 10.9348C14.9625 11.8117 15.5 12.2501 15.5 13C15.5 13.7499 14.9625 14.1883 13.8876 15.0652C13.5909 15.3073 13.2966 15.5352 13.0261 15.7251C12.7888 15.8917 12.5201 16.064 12.2419 16.2332C11.1695 16.8853 10.6333 17.2114 10.1524 16.8504C9.6715 16.4894 9.62779 15.7336 9.54038 14.2222C9.51566 13.7947 9.5 13.3757 9.5 13C9.5 12.6243 9.51566 12.2053 9.54038 11.7778C9.62779 10.2664 9.6715 9.51061 10.1524 9.1496C10.6333 8.78859 11.1695 9.11466 12.2419 9.76679C12.5201 9.93597 12.7888 10.1083 13.0261 10.2749C13.2966 10.4648 13.5909 10.6927 13.8876 10.9348Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M3.5 4.5L7.50002 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M20.5 4.5L16.5 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("circle",{cx:"12",cy:"13",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M13.8876 10.9348C14.9625 11.8117 15.5 12.2501 15.5 13C15.5 13.7499 14.9625 14.1883 13.8876 15.0652C13.5909 15.3073 13.2966 15.5352 13.0261 15.7251C12.7888 15.8917 12.5201 16.064 12.2419 16.2332C11.1695 16.8853 10.6333 17.2114 10.1524 16.8504C9.6715 16.4894 9.62779 15.7336 9.54038 14.2222C9.51566 13.7947 9.5 13.3757 9.5 13C9.5 12.6243 9.51566 12.2053 9.54038 11.7778C9.62779 10.2664 9.6715 9.51061 10.1524 9.1496C10.6333 8.78859 11.1695 9.11466 12.2419 9.76679C12.5201 9.93597 12.7888 10.1083 13.0261 10.2749C13.2966 10.4648 13.5909 10.6927 13.8876 10.9348Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M3.5 4.5L7.50002 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M20.5 4.5L16.5 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.13602 1.6026C8.35556 1.95386 8.24877 2.41657 7.89752 2.6361L3.8975 5.1361C3.54624 5.35563 3.08353 5.24885 2.864 4.8976C2.64447 4.54634 2.75125 4.08363 3.1025 3.8641L7.10253 1.3641C7.45378 1.14457 7.91649 1.25135 8.13602 1.6026ZM15.864 1.6026C16.0835 1.25135 16.5462 1.14457 16.8975 1.3641L20.8975 3.8641C21.2488 4.08363 21.3555 4.54635 21.136 4.8976C20.9165 5.24885 20.4538 5.35563 20.1025 5.1361L16.1025 2.6361C15.7512 2.41657 15.6445 1.95385 15.864 1.6026ZM12 4.7501C7.44365 4.7501 3.75 8.44375 3.75 13.0001C3.75 17.5564 7.44365 21.2501 12 21.2501C16.5563 21.2501 20.25 17.5564 20.25 13.0001C20.25 8.44375 16.5563 4.7501 12 4.7501ZM2.25 13.0001C2.25 7.61532 6.61522 3.2501 12 3.2501C17.3848 3.2501 21.75 7.61532 21.75 13.0001C21.75 18.3849 17.3848 22.7501 12 22.7501C6.61522 22.7501 2.25 18.3849 2.25 13.0001ZM12.5727 9.09026C12.5923 9.10217 12.6119 9.11411 12.6316 9.12607C12.9188 9.3007 13.2022 9.48225 13.4571 9.66123C13.7473 9.86502 14.0567 10.105 14.3617 10.3537C14.3771 10.3663 14.3925 10.3788 14.4078 10.3913C14.9056 10.7974 15.3532 11.1624 15.6659 11.5265C16.0204 11.9394 16.25 12.4035 16.25 13.0001C16.25 13.5967 16.0204 14.0608 15.6659 14.4737C15.3532 14.8378 14.9057 15.2028 14.4078 15.6089L14.3617 15.6465C14.0567 15.8952 13.7473 16.1352 13.4571 16.339C13.2022 16.5179 12.9188 16.6995 12.6316 16.8741C12.6119 16.8861 12.5923 16.898 12.5727 16.9099C12.0879 17.205 11.6298 17.4837 11.2289 17.6277C11.0061 17.7077 10.7505 17.7665 10.4754 17.746C10.1864 17.7245 9.92767 17.6196 9.70216 17.4503C9.24308 17.1057 9.05869 16.6067 8.96253 16.1105C8.87092 15.6377 8.83573 15.0288 8.79462 14.3172L8.79163 14.2656C8.76641 13.8294 8.75 13.395 8.75 13.0001C8.75 12.6052 8.76641 12.1708 8.79163 11.7346L8.79462 11.683C8.83573 10.9714 8.87092 10.3625 8.96253 9.88971C9.05869 9.39349 9.24308 8.89451 9.70216 8.54989C9.92767 8.3806 10.1864 8.27567 10.4754 8.25419C10.7505 8.23374 11.0061 8.29248 11.2289 8.37253C11.6298 8.51654 12.0879 8.79525 12.5727 9.09026ZM10.6004 9.75124C10.5758 9.77005 10.5007 9.83663 10.4351 10.1751C10.365 10.5369 10.3341 11.0436 10.2891 11.8213C10.2649 12.24 10.25 12.6437 10.25 13.0001C10.25 13.3565 10.2649 13.7602 10.2891 14.1789C10.3341 14.9566 10.365 15.4633 10.4351 15.8251C10.5007 16.1636 10.5758 16.2302 10.6004 16.249C10.6192 16.2466 10.6575 16.2391 10.7218 16.216C10.9612 16.13 11.2865 15.9365 11.8523 15.5925C12.1215 15.4288 12.3755 15.2656 12.5951 15.1114C12.8458 14.9354 13.125 14.7195 13.4135 14.4841C13.9722 14.0284 14.3127 13.7471 14.5279 13.4965C14.7108 13.2834 14.75 13.1533 14.75 13.0001C14.75 12.8469 14.7108 12.7168 14.5279 12.5037C14.3127 12.2531 13.9722 11.9718 13.4135 11.5161C13.125 11.2807 12.8458 11.0648 12.5951 10.8888C12.3755 10.7346 12.1215 10.5714 11.8523 10.4077C11.2865 10.0637 10.9612 9.87019 10.7218 9.7842C10.6575 9.76111 10.6192 9.75365 10.6004 9.75124Z",fill:"currentColor"})})]]),p_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M17.8994 22C20.1086 22 21.8994 20.2091 21.8994 18C21.8994 15.7909 20.1086 14 17.8994 14H17.6797L11.878 19.798C11.636 20.0399 11.5 20.3391 11.5 20.6813C11.5 21.3936 12.0774 22 12.7897 22H17.8994Z",fill:"currentColor"}),l.jsx("path",{d:"M13.2839 4.95882L12.2291 6.01357C11.7633 6.48107 11.5012 7.11381 11.5 7.7738L11.5 16.0119C11.5 17.0666 11.5 17.5939 11.8135 17.7199C12.1271 17.8459 12.492 17.4653 13.2219 16.704L19.0599 10.6144C20.5819 9.02691 20.5554 6.51391 19.0003 4.95883C17.4218 3.38026 14.8624 3.38026 13.2839 4.95882Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 6V18C10 20.2091 8.20914 22 6 22C3.79086 22 2 20.2091 2 18V6C2 3.79086 3.79086 2 6 2C8.20914 2 10 3.79086 10 6ZM6 19C6.55228 19 7 18.5523 7 18C7 17.4477 6.55228 17 6 17C5.44772 17 5 17.4477 5 18C5 18.5523 5.44772 19 6 19Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M7 18C7 18.5523 6.55228 19 6 19C5.44772 19 5 18.5523 5 18C5 17.4477 5.44772 17 6 17C6.55228 17 7 17.4477 7 18Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.4",d:"M10 6V18C10 20.2091 8.20914 22 6 22C3.79086 22 2 20.2091 2 18V6C2 3.79086 3.79086 2 6 2C8.20914 2 10 3.79086 10 6Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.7",d:"M9.24756 20.3357L13.2218 16.3614L19.0599 10.2719C20.5819 8.68438 20.5554 6.17138 19.0003 4.61629C17.4218 3.03773 14.8624 3.03773 13.2838 4.61629L10 7.90015V18C10 18.8718 9.72106 19.6786 9.24756 20.3357Z",fill:"currentColor"}),l.jsx("path",{d:"M13.2218 16.3617L9.24756 20.336C9.72014 19.6801 9.99891 18.8752 10 18.0053C9.99711 20.212 8.20736 22 6 22H17.8994C20.1086 22 21.8994 20.2091 21.8994 18C21.8994 15.7909 20.1086 14 17.8994 14H15.486L13.2218 16.3617Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 8V6C2 3.79086 3.79086 2 6 2C8.20914 2 10 3.79086 10 6V18C10 20.2091 8.20914 22 6 22C3.79086 22 2 20.2091 2 18V12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M10 8.24268L13.3137 4.92902C14.8758 3.36692 17.4084 3.36692 18.9705 4.92902C20.5326 6.49112 20.5326 9.02378 18.9705 10.5859L9.3064 20.25",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M18 22V21.25V22ZM18 14V14.75V14ZM22 18H21.25H22ZM13 22.75C13.4142 22.75 13.75 22.4142 13.75 22C13.75 21.5858 13.4142 21.25 13 21.25V22.75ZM17 21.25C16.5858 21.25 16.25 21.5858 16.25 22C16.25 22.4142 16.5858 22.75 17 22.75V21.25ZM15.5 14.75L18 14.75V13.25L15.5 13.25V14.75ZM21.25 18C21.25 19.7949 19.7949 21.25 18 21.25V22.75C20.6234 22.75 22.75 20.6234 22.75 18H21.25ZM22.75 18C22.75 15.3766 20.6234 13.25 18 13.25V14.75C19.7949 14.75 21.25 16.2051 21.25 18H22.75ZM13 21.25L6 21.25L6 22.75L13 22.75V21.25ZM18 21.25H17V22.75H18V21.25Z",fill:"currentColor"}),l.jsx("path",{d:"M7 18C7 18.5523 6.55228 19 6 19C5.44772 19 5 18.5523 5 18C5 17.4477 5.44772 17 6 17C6.55228 17 7 17.4477 7 18Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 6C2 3.79086 3.79086 2 6 2C8.20914 2 10 3.79086 10 6V18C10 20.2091 8.20914 22 6 22C3.79086 22 2 20.2091 2 18V6Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M10 8.24268L13.3137 4.92902C14.8758 3.36692 17.4084 3.36692 18.9705 4.92902C20.5326 6.49112 20.5326 9.02378 18.9705 10.5859L9.3064 20.25",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M6 22L18 22C20.2091 22 22 20.2091 22 18C22 15.7909 20.2091 14 18 14L15.5 14",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M7 18C7 18.5523 6.55228 19 6 19C5.44772 19 5 18.5523 5 18C5 17.4477 5.44772 17 6 17C6.55228 17 7 17.4477 7 18Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 6C2 3.79086 3.79086 2 6 2C8.20914 2 10 3.79086 10 6V18C10 20.2091 8.20914 22 6 22C3.79086 22 2 20.2091 2 18V6Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M9.99977 8.24268L13.3134 4.92902C14.8755 3.36692 17.4082 3.36692 18.9703 4.92902C20.5324 6.49112 20.5324 9.02378 18.9703 10.5859L9.30615 20.25",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M6 22L18 22C20.2091 22 22 20.2091 22 18C22 15.7909 20.2091 14 18 14L15.5 14",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M7 18C7 18.5523 6.55228 19 6 19C5.44772 19 5 18.5523 5 18C5 17.4477 5.44772 17 6 17C6.55228 17 7 17.4477 7 18Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 6C1.25 3.37665 3.37665 1.25 6 1.25C8.62335 1.25 10.75 3.37665 10.75 6V6.43202L12.7833 4.39868C14.6383 2.54369 17.6459 2.54369 19.5008 4.39868C21.3558 6.25367 21.3558 9.26121 19.5008 11.1162L17.367 13.25H18C20.6234 13.25 22.75 15.3766 22.75 18C22.75 20.6234 20.6234 22.75 18 22.75H6C3.37665 22.75 1.25 20.6234 1.25 18V6ZM9.46412 21.25H18C19.7949 21.25 21.25 19.7949 21.25 18C21.25 16.2051 19.7949 14.75 18 14.75H15.867L9.8889 20.7281C9.7596 20.9121 9.61758 21.0865 9.46412 21.25ZM10.75 17.7457L18.4402 10.0555C19.7094 8.78633 19.7094 6.72855 18.4402 5.45934C17.171 4.19014 15.1132 4.19014 13.844 5.45934L10.75 8.55334V17.7457ZM6 2.75C4.20507 2.75 2.75 4.20507 2.75 6V18C2.75 19.7949 4.20507 21.25 6 21.25C7.79493 21.25 9.25 19.7949 9.25 18V6C9.25 4.20507 7.79493 2.75 6 2.75ZM6 17.75C5.86193 17.75 5.75 17.8619 5.75 18C5.75 18.1381 5.86193 18.25 6 18.25C6.13807 18.25 6.25 18.1381 6.25 18C6.25 17.8619 6.13807 17.75 6 17.75ZM4.25 18C4.25 17.0335 5.0335 16.25 6 16.25C6.9665 16.25 7.75 17.0335 7.75 18C7.75 18.9665 6.9665 19.75 6 19.75C5.0335 19.75 4.25 18.9665 4.25 18Z",fill:"currentColor"})})]]),C_=new Map([["Bold",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M5.66953 9.91436L8.73167 5.77133C10.711 3.09327 11.7007 1.75425 12.6241 2.03721C13.5474 2.32018 13.5474 3.96249 13.5474 7.24712V7.55682C13.5474 8.74151 13.5474 9.33386 13.926 9.70541L13.946 9.72466C14.3327 10.0884 14.9492 10.0884 16.1822 10.0884C18.4011 10.0884 19.5106 10.0884 19.8855 10.7613C19.8917 10.7724 19.8977 10.7837 19.9036 10.795C20.2576 11.4784 19.6152 12.3475 18.3304 14.0857L15.2683 18.2287C13.2889 20.9067 12.2992 22.2458 11.3758 21.9628C10.4525 21.6798 10.4525 20.0375 10.4525 16.7528L10.4526 16.4433C10.4526 15.2585 10.4526 14.6662 10.074 14.2946L10.054 14.2754C9.6673 13.9117 9.05079 13.9117 7.81775 13.9117C5.59888 13.9117 4.48945 13.9117 4.1145 13.2387C4.10829 13.2276 4.10225 13.2164 4.09639 13.205C3.74244 12.5217 4.3848 11.6526 5.66953 9.91436Z",fill:"currentColor"})})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.73167 5.77133L5.66953 9.91436C4.3848 11.6526 3.74244 12.5217 4.09639 13.205C4.10225 13.2164 4.10829 13.2276 4.1145 13.2387C4.48945 13.9117 5.59888 13.9117 7.81775 13.9117C9.05079 13.9117 9.6673 13.9117 10.054 14.2754L10.074 14.2946L13.946 9.72466L13.926 9.70541C13.5474 9.33386 13.5474 8.74151 13.5474 7.55682V7.24712C13.5474 3.96249 13.5474 2.32018 12.6241 2.03721C11.7007 1.75425 10.711 3.09327 8.73167 5.77133Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M10.4527 16.4432L10.4527 16.7528C10.4527 20.0374 10.4527 21.6798 11.376 21.9627C12.2994 22.2457 13.2891 20.9067 15.2685 18.2286L18.3306 14.0856C19.6154 12.3474 20.2577 11.4783 19.9038 10.7949C19.8979 10.7836 19.8919 10.7724 19.8857 10.7613C19.5107 10.0883 18.4013 10.0883 16.1824 10.0883C14.9494 10.0883 14.3329 10.0883 13.9462 9.72461L10.0742 14.2946C10.4528 14.6661 10.4527 15.2585 10.4527 16.4432Z",fill:"currentColor"})]})],["Broken",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M15.2683 18.2287C13.2889 20.9067 12.2992 22.2458 11.3758 21.9628C10.4525 21.6798 10.4525 20.0375 10.4525 16.7528L10.4526 16.4433C10.4526 15.2585 10.4526 14.6662 10.074 14.2946L10.054 14.2754C9.6673 13.9117 9.05079 13.9117 7.81775 13.9117C5.59888 13.9117 4.48945 13.9117 4.1145 13.2387C4.10829 13.2276 4.10225 13.2164 4.09639 13.205C3.74244 12.5217 4.3848 11.6526 5.66953 9.91436L8.73167 5.77133C10.711 3.09327 11.7007 1.75425 12.6241 2.03721C13.5474 2.32018 13.5474 3.96249 13.5474 7.24712V7.55682C13.5474 8.74151 13.5474 9.33386 13.926 9.70541L13.946 9.72466C14.3327 10.0884 14.9492 10.0884 16.1822 10.0884C18.4011 10.0884 19.5106 10.0884 19.8855 10.7613C19.8917 10.7724 19.8977 10.7837 19.9036 10.795C20.2576 11.4784 19.6152 12.3475 18.3304 14.0857",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M13.926 9.70541C13.5474 9.33386 13.5474 8.74151 13.5474 7.55682V7.24712C13.5474 3.96249 13.5474 2.32018 12.6241 2.03721C11.7007 1.75425 10.711 3.09327 8.73167 5.77133L5.66953 9.91436C4.3848 11.6526 3.74244 12.5217 4.09639 13.205C4.10225 13.2164 4.10829 13.2276 4.1145 13.2387C4.48945 13.9117 5.59888 13.9117 7.81775 13.9117C9.05079 13.9117 9.6673 13.9117 10.054 14.2754",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M13.9259 9.70557L13.9459 9.72481C14.3326 10.0885 14.9492 10.0885 16.1822 10.0885C18.4011 10.0885 19.5105 10.0885 19.8854 10.7615C19.8917 10.7726 19.8977 10.7838 19.9036 10.7951C20.2575 11.4785 19.6151 12.3476 18.3304 14.0858L15.2682 18.2288C13.2888 20.9069 12.2991 22.2459 11.3758 21.9629C10.4524 21.68 10.4524 20.0376 10.4525 16.753L10.4525 16.4434C10.4525 15.2587 10.4525 14.6663 10.074 14.2948L10.054 14.2755",stroke:"currentColor",strokeWidth:"1.5"})]})],["Linear",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M5.66953 9.91436L8.73167 5.77133C10.711 3.09327 11.7007 1.75425 12.6241 2.03721C13.5474 2.32018 13.5474 3.96249 13.5474 7.24712V7.55682C13.5474 8.74151 13.5474 9.33386 13.926 9.70541L13.946 9.72466C14.3327 10.0884 14.9492 10.0884 16.1822 10.0884C18.4011 10.0884 19.5106 10.0884 19.8855 10.7613C19.8917 10.7724 19.8977 10.7837 19.9036 10.795C20.2576 11.4784 19.6152 12.3475 18.3304 14.0857L15.2683 18.2287C13.2889 20.9067 12.2992 22.2458 11.3758 21.9628C10.4525 21.6798 10.4525 20.0375 10.4525 16.7528L10.4526 16.4433C10.4526 15.2585 10.4526 14.6662 10.074 14.2946L10.054 14.2754C9.6673 13.9117 9.05079 13.9117 7.81775 13.9117C5.59888 13.9117 4.48945 13.9117 4.1145 13.2387C4.10829 13.2276 4.10225 13.2164 4.09639 13.205C3.74244 12.5217 4.3848 11.6526 5.66953 9.91436Z",stroke:"currentColor",strokeWidth:"1.5"})})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5279 10.3736C20.1572 9.73163 19.4779 9.5206 18.8294 9.42992C18.1757 9.33852 17.3008 9.33855 16.2426 9.33858L16.1824 9.33858C15.5523 9.33858 15.1403 9.33237 14.8402 9.29064C14.5688 9.2529 14.4825 9.19704 14.4456 9.16446C14.4187 9.13635 14.3706 9.07063 14.3379 8.83366C14.2993 8.55425 14.2976 8.1711 14.2976 7.55704V7.18255C14.2977 5.59503 14.2977 4.32329 14.1755 3.4166C14.0608 2.56554 13.7882 1.60969 12.844 1.32035C11.9164 1.03608 11.1384 1.64564 10.5337 2.27405C9.88942 2.9435 9.12413 3.97895 8.16596 5.27538L5.02896 9.51969C4.41863 10.3454 3.90984 11.0337 3.60669 11.6029C3.3028 12.1735 3.08164 12.8509 3.41872 13.5268L3.41989 13.5293L3.42344 13.5365L3.42748 13.5445L3.43146 13.5522L3.4358 13.5603L3.44023 13.5685L3.44441 13.576L3.44884 13.5838L3.45289 13.5907L3.45438 13.5931C3.82188 14.2296 4.49825 14.4524 5.1526 14.5523C5.82693 14.6553 6.72671 14.6619 7.81795 14.6619C8.45456 14.6619 8.86048 14.6633 9.1586 14.7013C9.42195 14.7349 9.50071 14.7867 9.53447 14.8165C9.56438 14.8478 9.61682 14.9207 9.6538 15.1663C9.69612 15.4473 9.70276 15.8364 9.70275 16.4435L9.70274 16.8178C9.7027 18.4053 9.70266 19.6771 9.82483 20.5838C9.9395 21.4349 10.2121 22.3907 11.1563 22.6801C12.0839 22.9644 12.8619 22.3548 13.4667 21.7264C14.1109 21.0569 14.8762 20.0215 15.8344 18.725L18.9338 14.5317C19.5646 13.6783 20.0834 12.9652 20.3893 12.3718C20.6887 11.7911 20.8976 11.1097 20.5636 10.44L20.5624 10.4376L20.5589 10.4303L20.5548 10.4223L20.5508 10.4146L20.5465 10.4064L20.542 10.3982L20.5378 10.3907L20.5334 10.3829L20.5293 10.3759L20.5279 10.3736ZM11.6145 3.31416C11.0465 3.90435 10.3387 4.85927 9.335 6.21733L6.27286 10.3604C5.61517 11.2502 5.17513 11.849 4.93062 12.3081C4.81161 12.5315 4.76693 12.6725 4.75421 12.7578C4.74635 12.8105 4.75115 12.8343 4.75742 12.8496C4.78161 12.8852 4.88663 12.9943 5.379 13.0695C5.9169 13.1516 6.69032 13.1619 7.81795 13.1619L7.86392 13.1619C8.44106 13.1618 8.94393 13.1618 9.3483 13.2134C9.78148 13.2686 10.2118 13.3942 10.568 13.7293L10.5739 13.7348L10.5796 13.7404C10.9296 14.0839 11.0719 14.5099 11.1371 14.9429C11.1994 15.3568 11.2028 15.8658 11.2028 16.4435L11.2027 16.753C11.2027 18.42 11.2044 19.5894 11.3114 20.3835C11.3647 20.7789 11.4363 21.0108 11.505 21.1404C11.5564 21.2374 11.586 21.2438 11.5943 21.2456L11.5958 21.2459L11.5973 21.2464C11.6078 21.25 11.6446 21.2628 11.7583 21.2056C11.9003 21.1341 12.1032 20.98 12.3858 20.6863C12.9538 20.0961 13.6616 19.1412 14.6654 17.7831L17.7275 13.6401C18.3815 12.7553 18.8172 12.1478 19.0561 11.6845C19.2608 11.2873 19.2385 11.1528 19.2249 11.1171C19.2024 11.0843 19.1016 10.9826 18.6217 10.9155C18.0846 10.8404 17.3161 10.8386 16.1824 10.8386C15.5796 10.8386 15.0567 10.8352 14.6336 10.7763C14.1968 10.7156 13.7655 10.5841 13.4123 10.252L13.4065 10.2465L13.4008 10.2409C13.0476 9.89419 12.9114 9.46874 12.852 9.03887C12.7975 8.64454 12.7976 8.15622 12.7976 7.60538L12.7976 7.24733C12.7976 5.58044 12.7959 4.41099 12.6889 3.61692C12.6356 3.22153 12.564 2.98959 12.4954 2.86008C12.4439 2.76301 12.4143 2.75666 12.406 2.75487L12.4045 2.75451L12.403 2.75401C12.3925 2.7504 12.3557 2.73767 12.242 2.79487C12.1 2.86633 11.8972 3.02042 11.6145 3.31416Z",fill:"currentColor"})})]]),g_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12.75 12.508L21.25 9.108V14.7609C20.7449 14.4375 20.1443 14.25 19.5 14.25C17.7051 14.25 16.25 15.7051 16.25 17.5C16.25 19.2949 17.7051 20.75 19.5 20.75C21.2949 20.75 22.75 19.2949 22.75 17.5C22.75 17.5 22.75 17.5 22.75 17.5L22.75 7.94625C22.75 6.80342 22.75 5.84496 22.6696 5.08131C22.6582 4.97339 22.6448 4.86609 22.63 4.76597C22.5525 4.24426 22.4156 3.75757 22.1514 3.35115C22.0193 3.14794 21.8553 2.96481 21.6511 2.80739C21.6128 2.77788 21.573 2.74927 21.5319 2.7216L21.5236 2.71608C20.8164 2.2454 20.0213 2.27906 19.2023 2.48777C18.4102 2.68961 17.4282 3.10065 16.224 3.60469L14.13 4.48115C13.5655 4.71737 13.0873 4.91751 12.712 5.1248C12.3126 5.34535 11.9686 5.60548 11.7106 5.99311C11.4527 6.38075 11.3455 6.7985 11.2963 7.25204C11.25 7.67831 11.25 8.19671 11.25 8.80858V16.7609C10.7448 16.4375 10.1443 16.25 9.5 16.25C7.70507 16.25 6.25 17.7051 6.25 19.5C6.25 21.2949 7.70507 22.75 9.5 22.75C11.2949 22.75 12.75 21.2949 12.75 19.5C12.75 19.5 12.75 19.5 12.75 19.5L12.75 12.508Z",fill:"currentColor"}),l.jsx("path",{d:"M7.75 2C7.75 1.58579 7.41421 1.25 7 1.25C6.58579 1.25 6.25 1.58579 6.25 2V7.76091C5.74485 7.4375 5.14432 7.25 4.5 7.25C2.70507 7.25 1.25 8.70507 1.25 10.5C1.25 12.2949 2.70507 13.75 4.5 13.75C6.29493 13.75 7.75 12.2949 7.75 10.5V5.0045C8.44852 5.50913 9.27955 5.75 10 5.75C10.4142 5.75 10.75 5.41421 10.75 5C10.75 4.58579 10.4142 4.25 10 4.25C9.54565 4.25 8.9663 4.07389 8.51159 3.69837C8.0784 3.34061 7.75 2.79785 7.75 2Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12.75 12.508L21.25 9.108V14.7609C20.7449 14.4375 20.1443 14.25 19.5 14.25C17.7051 14.25 16.25 15.7051 16.25 17.5C16.25 19.2949 17.7051 20.75 19.5 20.75C21.2949 20.75 22.75 19.2949 22.75 17.5C22.75 17.5 22.75 17.5 22.75 17.5L22.75 7.94625C22.75 6.80342 22.75 5.84496 22.6696 5.08131C22.6582 4.97339 22.6448 4.86609 22.63 4.76597C22.5525 4.24426 22.4156 3.75757 22.1514 3.35115C22.0193 3.14794 21.8553 2.96481 21.6511 2.80739C21.6128 2.77788 21.573 2.74927 21.5319 2.7216L21.5236 2.71608C20.8164 2.2454 20.0213 2.27906 19.2023 2.48777C18.4102 2.68961 17.4282 3.10065 16.224 3.60469L14.13 4.48115C13.5655 4.71737 13.0873 4.91751 12.712 5.1248C12.3126 5.34535 11.9686 5.60548 11.7106 5.99311C11.4527 6.38075 11.3455 6.7985 11.2963 7.25204C11.25 7.67831 11.25 8.19671 11.25 8.80858V16.7609C10.7448 16.4375 10.1443 16.25 9.5 16.25C7.70507 16.25 6.25 17.7051 6.25 19.5C6.25 21.2949 7.70507 22.75 9.5 22.75C11.2949 22.75 12.75 21.2949 12.75 19.5C12.75 19.5 12.75 19.5 12.75 19.5L12.75 12.508Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M7.75 2C7.75 1.58579 7.41421 1.25 7 1.25C6.58579 1.25 6.25 1.58579 6.25 2V7.76091C5.74485 7.4375 5.14432 7.25 4.5 7.25C2.70507 7.25 1.25 8.70507 1.25 10.5C1.25 12.2949 2.70507 13.75 4.5 13.75C6.29493 13.75 7.75 12.2949 7.75 10.5V5.0045C8.44852 5.50913 9.27955 5.75 10 5.75C10.4142 5.75 10.75 5.41421 10.75 5C10.75 4.58579 10.4142 4.25 10 4.25C9.54565 4.25 8.9663 4.07389 8.51159 3.69837C8.0784 3.34061 7.75 2.79785 7.75 2Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C7 18.1193 8.11929 17 9.5 17C10.8807 17 12 18.1193 12 19.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M22 17.5C22 18.8807 20.8807 20 19.5 20C18.1193 20 17 18.8807 17 17.5C17 16.1193 18.1193 15 19.5 15C20.8807 15 22 16.1193 22 17.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M22 8L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M14.4556 5.15803L14.7452 5.84987L14.4556 5.15803ZM16.4556 4.32094L16.1661 3.62909L16.4556 4.32094ZM21.1081 3.34059L20.6925 3.96496L20.6925 3.96496L21.1081 3.34059ZM21.25 12.0004C21.25 12.4146 21.5858 12.7504 22 12.7504C22.4142 12.7504 22.75 12.4146 22.75 12.0004H21.25ZM12.75 19.0004V8.84787H11.25V19.0004H12.75ZM14.7452 5.84987L16.7452 5.01278L16.1661 3.62909L14.1661 4.46618L14.7452 5.84987ZM22.75 8.01078C22.75 6.67666 22.752 5.59091 22.6304 4.76937C22.5067 3.93328 22.2308 3.18689 21.5236 2.71622L20.6925 3.96496C20.8772 4.08787 21.0473 4.31771 21.1466 4.98889C21.248 5.67462 21.25 6.62717 21.25 8.01078H22.75ZM16.7452 5.01278C18.0215 4.47858 18.901 4.11263 19.5727 3.94145C20.2302 3.77391 20.5079 3.84204 20.6925 3.96496L21.5236 2.71622C20.8164 2.24554 20.0213 2.2792 19.2023 2.48791C18.3975 2.69298 17.3967 3.114 16.1661 3.62909L16.7452 5.01278ZM12.75 8.84787C12.75 8.18634 12.751 7.74991 12.7875 7.41416C12.822 7.09662 12.8823 6.94006 12.9594 6.8243L11.7106 5.99325C11.4527 6.38089 11.3455 6.79864 11.2963 7.25218C11.249 7.68752 11.25 8.21893 11.25 8.84787H12.75ZM14.1661 4.46618C13.5859 4.70901 13.0953 4.91324 12.712 5.12494C12.3126 5.34549 11.9686 5.60562 11.7106 5.99325L12.9594 6.8243C13.0364 6.70855 13.1575 6.59242 13.4371 6.438C13.7328 6.27473 14.135 6.10528 14.7452 5.84987L14.1661 4.46618ZM22.75 12.0004V8.01078H21.25V12.0004H22.75Z",fill:"currentColor"}),l.jsx("path",{d:"M7 11V6.5V2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("circle",{cx:"4.5",cy:"10.5",r:"2.5",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M10 5C8.75736 5 7 4.07107 7 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C7 18.1193 8.11929 17 9.5 17C10.8807 17 12 18.1193 12 19.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M22 17.5C22 18.8807 20.8807 20 19.5 20C18.1193 20 17 18.8807 17 17.5C17 16.1193 18.1193 15 19.5 15C20.8807 15 22 16.1193 22 17.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M22 8L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M14.4556 5.15803L14.7452 5.84987L14.4556 5.15803ZM16.4556 4.32094L16.1661 3.62909L16.4556 4.32094ZM21.1081 3.34059L20.6925 3.96496L20.6925 3.96496L21.1081 3.34059ZM12.75 19.0004V8.84787H11.25V19.0004H12.75ZM22.75 17.1542V8.01078H21.25V17.1542H22.75ZM14.7452 5.84987L16.7452 5.01278L16.1661 3.62909L14.1661 4.46618L14.7452 5.84987ZM22.75 8.01078C22.75 6.67666 22.752 5.59091 22.6304 4.76937C22.5067 3.93328 22.2308 3.18689 21.5236 2.71622L20.6925 3.96496C20.8772 4.08787 21.0473 4.31771 21.1466 4.98889C21.248 5.67462 21.25 6.62717 21.25 8.01078H22.75ZM16.7452 5.01278C18.0215 4.47858 18.901 4.11263 19.5727 3.94145C20.2302 3.77391 20.5079 3.84204 20.6925 3.96496L21.5236 2.71622C20.8164 2.24554 20.0213 2.2792 19.2023 2.48791C18.3975 2.69298 17.3967 3.114 16.1661 3.62909L16.7452 5.01278ZM12.75 8.84787C12.75 8.18634 12.751 7.74991 12.7875 7.41416C12.822 7.09662 12.8823 6.94006 12.9594 6.8243L11.7106 5.99325C11.4527 6.38089 11.3455 6.79864 11.2963 7.25218C11.249 7.68752 11.25 8.21893 11.25 8.84787H12.75ZM14.1661 4.46618C13.5859 4.70901 13.0953 4.91324 12.712 5.12494C12.3126 5.34549 11.9686 5.60562 11.7106 5.99325L12.9594 6.8243C13.0364 6.70855 13.1575 6.59242 13.4371 6.438C13.7328 6.27473 14.135 6.10528 14.7452 5.84987L14.1661 4.46618Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M7 11V2C7 4.07107 8.75736 5 10 5M7 10.5C7 11.8807 5.88071 13 4.5 13C3.11929 13 2 11.8807 2 10.5C2 9.11929 3.11929 8 4.5 8C5.88071 8 7 9.11929 7 10.5Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C7 18.1193 8.11929 17 9.5 17C10.8807 17 12 18.1193 12 19.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M22 17.5C22 18.8807 20.8807 20 19.5 20C18.1193 20 17 18.8807 17 17.5C17 16.1193 18.1193 15 19.5 15C20.8807 15 22 16.1193 22 17.5Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M22 8L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M14.4556 5.15803L14.7452 5.84987L14.4556 5.15803ZM16.4556 4.32094L16.1661 3.62909L16.4556 4.32094ZM21.1081 3.34059L20.6925 3.96496L20.6925 3.96496L21.1081 3.34059ZM12.75 19.0004V8.84787H11.25V19.0004H12.75ZM22.75 17.1542V8.01078H21.25V17.1542H22.75ZM14.7452 5.84987L16.7452 5.01278L16.1661 3.62909L14.1661 4.46618L14.7452 5.84987ZM22.75 8.01078C22.75 6.67666 22.752 5.59091 22.6304 4.76937C22.5067 3.93328 22.2308 3.18689 21.5236 2.71622L20.6925 3.96496C20.8772 4.08787 21.0473 4.31771 21.1466 4.98889C21.248 5.67462 21.25 6.62717 21.25 8.01078H22.75ZM16.7452 5.01278C18.0215 4.47858 18.901 4.11263 19.5727 3.94145C20.2302 3.77391 20.5079 3.84204 20.6925 3.96496L21.5236 2.71622C20.8164 2.24554 20.0213 2.2792 19.2023 2.48791C18.3975 2.69298 17.3967 3.114 16.1661 3.62909L16.7452 5.01278ZM12.75 8.84787C12.75 8.18634 12.751 7.74991 12.7875 7.41416C12.822 7.09662 12.8823 6.94006 12.9594 6.8243L11.7106 5.99325C11.4527 6.38089 11.3455 6.79864 11.2963 7.25218C11.249 7.68752 11.25 8.21893 11.25 8.84787H12.75ZM14.1661 4.46618C13.5859 4.70901 13.0953 4.91324 12.712 5.12494C12.3126 5.34549 11.9686 5.60562 11.7106 5.99325L12.9594 6.8243C13.0364 6.70855 13.1575 6.59242 13.4371 6.438C13.7328 6.27473 14.135 6.10528 14.7452 5.84987L14.1661 4.46618Z",fill:"currentColor"}),l.jsx("path",{d:"M7 11V6.5V2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("circle",{cx:"4.5",cy:"10.5",r:"2.5",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M10 5C8.75736 5 7 4.07107 7 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.51159 3.69837C8.9663 4.07389 9.54565 4.25 10 4.25C10.4142 4.25 10.75 4.58579 10.75 5C10.75 5.41421 10.4142 5.75 10 5.75C9.27955 5.75 8.44852 5.50913 7.75 5.0045V11C7.75 11.1595 7.7002 11.3074 7.6153 11.429C7.21563 12.7712 5.97212 13.75 4.5 13.75C2.70507 13.75 1.25 12.2949 1.25 10.5C1.25 8.70507 2.70507 7.25 4.5 7.25C5.14432 7.25 5.74485 7.4375 6.25 7.76091V2H7.75C7.75 2.79785 8.0784 3.34061 8.51159 3.69837ZM6.25 10.5C6.25 9.5335 5.4665 8.75 4.5 8.75C3.5335 8.75 2.75 9.5335 2.75 10.5C2.75 11.4665 3.5335 12.25 4.5 12.25C5.4665 12.25 6.25 11.4665 6.25 10.5ZM19.5727 3.94109C18.901 4.11226 18.0215 4.47821 16.7452 5.01241L14.7452 5.84951C14.135 6.10492 13.7328 6.27436 13.4371 6.43763C13.1575 6.59205 13.0364 6.70818 12.9594 6.82394C12.8823 6.93969 12.822 7.09625 12.7875 7.41379C12.751 7.74954 12.75 8.18597 12.75 8.8475V10.8922L21.2497 7.49235C21.2478 6.38367 21.2348 5.58512 21.1466 4.98852C21.0473 4.31734 20.8772 4.0875 20.6925 3.96459C20.5079 3.84167 20.2302 3.77354 19.5727 3.94109ZM22.75 7.98252V7.94757C22.75 6.64216 22.7501 5.5776 22.6304 4.769C22.5067 3.93292 22.2308 3.18652 21.5236 2.71585C20.8164 2.24517 20.0213 2.27883 19.2023 2.48754C18.4102 2.68938 17.4282 3.10042 16.224 3.60446L14.13 4.48093C13.5655 4.71715 13.0873 4.91728 12.712 5.12457C12.3126 5.34512 11.9686 5.60525 11.7106 5.99288C11.4527 6.38052 11.3455 6.79827 11.2963 7.25181C11.25 7.67809 11.25 8.19649 11.25 8.80836V11.983C11.2497 11.9945 11.2497 12.006 11.25 12.0175V16.7609C10.7449 16.4375 10.1443 16.25 9.5 16.25C7.70507 16.25 6.25 17.7051 6.25 19.5C6.25 21.2949 7.70507 22.75 9.5 22.75C11.2949 22.75 12.75 21.2949 12.75 19.5C12.75 19.33 12.7369 19.163 12.7118 19H12.75V12.5078L21.25 9.10778V14.7609C20.7449 14.4375 20.1443 14.25 19.5 14.25C17.7051 14.25 16.25 15.7051 16.25 17.5C16.25 19.2949 17.7051 20.75 19.5 20.75C21.2949 20.75 22.75 19.2949 22.75 17.5C22.75 17.3831 22.7438 17.2676 22.7318 17.1538H22.75V8.01702C22.7503 8.00554 22.7503 7.99404 22.75 7.98252ZM19.5 15.75C18.5335 15.75 17.75 16.5335 17.75 17.5C17.75 18.4665 18.5335 19.25 19.5 19.25C20.4665 19.25 21.25 18.4665 21.25 17.5C21.25 16.5335 20.4665 15.75 19.5 15.75ZM9.5 17.75C8.5335 17.75 7.75 18.5335 7.75 19.5C7.75 20.4665 8.5335 21.25 9.5 21.25C10.4665 21.25 11.25 20.4665 11.25 19.5C11.25 18.5335 10.4665 17.75 9.5 17.75Z",fill:"currentColor"})})]]),m_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 6C2 4.11438 2 3.17157 2.58579 2.58579C3.17157 2 4.11438 2 6 2C7.88562 2 8.82843 2 9.41421 2.58579C10 3.17157 10 4.11438 10 6V18C10 19.8856 10 20.8284 9.41421 21.4142C8.82843 22 7.88562 22 6 22C4.11438 22 3.17157 22 2.58579 21.4142C2 20.8284 2 19.8856 2 18V6Z",fill:"currentColor"}),l.jsx("path",{d:"M14 6C14 4.11438 14 3.17157 14.5858 2.58579C15.1716 2 16.1144 2 18 2C19.8856 2 20.8284 2 21.4142 2.58579C22 3.17157 22 4.11438 22 6V18C22 19.8856 22 20.8284 21.4142 21.4142C20.8284 22 19.8856 22 18 22C16.1144 22 15.1716 22 14.5858 21.4142C14 20.8284 14 19.8856 14 18V6Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 6C2 4.11438 2 3.17157 2.58579 2.58579C3.17157 2 4.11438 2 6 2C7.88562 2 8.82843 2 9.41421 2.58579C10 3.17157 10 4.11438 10 6V18C10 19.8856 10 20.8284 9.41421 21.4142C8.82843 22 7.88562 22 6 22C4.11438 22 3.17157 22 2.58579 21.4142C2 20.8284 2 19.8856 2 18V6Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M14 6C14 4.11438 14 3.17157 14.5858 2.58579C15.1716 2 16.1144 2 18 2C19.8856 2 20.8284 2 21.4142 2.58579C22 3.17157 22 4.11438 22 6V18C22 19.8856 22 20.8284 21.4142 21.4142C20.8284 22 19.8856 22 18 22C16.1144 22 15.1716 22 14.5858 21.4142C14 20.8284 14 19.8856 14 18V6Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 18C2 19.8856 2 20.8284 2.58579 21.4142C3.17157 22 4.11438 22 6 22C7.88562 22 8.82843 22 9.41421 21.4142C10 20.8284 10 19.8856 10 18V6C10 4.11438 10 3.17157 9.41421 2.58579C8.82843 2 7.88562 2 6 2C4.11438 2 3.17157 2 2.58579 2.58579C2 3.17157 2 4.11438 2 6V14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M22 6C22 4.11438 22 3.17157 21.4142 2.58579C20.8284 2 19.8856 2 18 2C16.1144 2 15.1716 2 14.5858 2.58579C14 3.17157 14 4.11438 14 6V18C14 19.8856 14 20.8284 14.5858 21.4142C15.1716 22 16.1144 22 18 22C19.8856 22 20.8284 22 21.4142 21.4142C22 20.8284 22 19.8856 22 18V10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 6C2 4.11438 2 3.17157 2.58579 2.58579C3.17157 2 4.11438 2 6 2C7.88562 2 8.82843 2 9.41421 2.58579C10 3.17157 10 4.11438 10 6V18C10 19.8856 10 20.8284 9.41421 21.4142C8.82843 22 7.88562 22 6 22C4.11438 22 3.17157 22 2.58579 21.4142C2 20.8284 2 19.8856 2 18V6Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M14 6C14 4.11438 14 3.17157 14.5858 2.58579C15.1716 2 16.1144 2 18 2C19.8856 2 20.8284 2 21.4142 2.58579C22 3.17157 22 4.11438 22 6V18C22 19.8856 22 20.8284 21.4142 21.4142C20.8284 22 19.8856 22 18 22C16.1144 22 15.1716 22 14.5858 21.4142C14 20.8284 14 19.8856 14 18V6Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 6C2 4.11438 2 3.17157 2.58579 2.58579C3.17157 2 4.11438 2 6 2C7.88562 2 8.82843 2 9.41421 2.58579C10 3.17157 10 4.11438 10 6V18C10 19.8856 10 20.8284 9.41421 21.4142C8.82843 22 7.88562 22 6 22C4.11438 22 3.17157 22 2.58579 21.4142C2 20.8284 2 19.8856 2 18V6Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M14 6C14 4.11438 14 3.17157 14.5858 2.58579C15.1716 2 16.1144 2 18 2C19.8856 2 20.8284 2 21.4142 2.58579C22 3.17157 22 4.11438 22 6V18C22 19.8856 22 20.8284 21.4142 21.4142C20.8284 22 19.8856 22 18 22C16.1144 22 15.1716 22 14.5858 21.4142C14 20.8284 14 19.8856 14 18V6Z",stroke:"currentColor",strokeWidth:"1.5"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.948 1.25H6.052C6.95048 1.24997 7.6997 1.24995 8.29448 1.32991C8.92228 1.41432 9.48908 1.59999 9.94455 2.05546C10.4 2.51093 10.5857 3.07773 10.6701 3.70552C10.7501 4.30031 10.75 5.04953 10.75 5.94801V18.052C10.75 18.9505 10.7501 19.6997 10.6701 20.2945C10.5857 20.9223 10.4 21.4891 9.94455 21.9445C9.48908 22.4 8.92228 22.5857 8.29448 22.6701C7.6997 22.7501 6.95048 22.75 6.052 22.75H5.94801C5.04953 22.75 4.30031 22.7501 3.70552 22.6701C3.07773 22.5857 2.51093 22.4 2.05546 21.9445C1.59999 21.4891 1.41432 20.9223 1.32991 20.2945C1.24995 19.6997 1.24997 18.9505 1.25 18.052V5.948C1.24997 5.04952 1.24995 4.3003 1.32991 3.70552C1.41432 3.07773 1.59999 2.51093 2.05546 2.05546C2.51093 1.59999 3.07773 1.41432 3.70552 1.32991C4.3003 1.24995 5.04952 1.24997 5.948 1.25ZM3.90539 2.81654C3.44393 2.87858 3.24644 2.9858 3.11612 3.11612C2.9858 3.24644 2.87858 3.44393 2.81654 3.90539C2.7516 4.38843 2.75 5.03599 2.75 6V18C2.75 18.964 2.7516 19.6116 2.81654 20.0946C2.87858 20.5561 2.9858 20.7536 3.11612 20.8839C3.24644 21.0142 3.44393 21.1214 3.90539 21.1835C4.38843 21.2484 5.03599 21.25 6 21.25C6.96401 21.25 7.61157 21.2484 8.09461 21.1835C8.55607 21.1214 8.75357 21.0142 8.88389 20.8839C9.0142 20.7536 9.12143 20.5561 9.18347 20.0946C9.24841 19.6116 9.25 18.964 9.25 18V6C9.25 5.03599 9.24841 4.38843 9.18347 3.90539C9.12143 3.44393 9.0142 3.24644 8.88389 3.11612C8.75357 2.9858 8.55607 2.87858 8.09461 2.81654C7.61157 2.7516 6.96401 2.75 6 2.75C5.03599 2.75 4.38843 2.7516 3.90539 2.81654ZM17.948 1.25H18.052C18.9505 1.24997 19.6997 1.24995 20.2945 1.32991C20.9223 1.41432 21.4891 1.59999 21.9445 2.05546C22.4 2.51093 22.5857 3.07773 22.6701 3.70552C22.7501 4.30031 22.75 5.04953 22.75 5.94801V18.052C22.75 18.9505 22.7501 19.6997 22.6701 20.2945C22.5857 20.9223 22.4 21.4891 21.9445 21.9445C21.4891 22.4 20.9223 22.5857 20.2945 22.6701C19.6997 22.7501 18.9505 22.75 18.052 22.75H17.948C17.0495 22.75 16.3003 22.7501 15.7055 22.6701C15.0777 22.5857 14.5109 22.4 14.0555 21.9445C13.6 21.4891 13.4143 20.9223 13.3299 20.2945C13.2499 19.6997 13.25 18.9505 13.25 18.052V5.94801C13.25 5.04953 13.2499 4.3003 13.3299 3.70552C13.4143 3.07773 13.6 2.51093 14.0555 2.05546C14.5109 1.59999 15.0777 1.41432 15.7055 1.32991C16.3003 1.24995 17.0495 1.24997 17.948 1.25ZM15.9054 2.81654C15.4439 2.87858 15.2464 2.9858 15.1161 3.11612C14.9858 3.24644 14.8786 3.44393 14.8165 3.90539C14.7516 4.38843 14.75 5.03599 14.75 6V18C14.75 18.964 14.7516 19.6116 14.8165 20.0946C14.8786 20.5561 14.9858 20.7536 15.1161 20.8839C15.2464 21.0142 15.4439 21.1214 15.9054 21.1835C16.3884 21.2484 17.036 21.25 18 21.25C18.964 21.25 19.6116 21.2484 20.0946 21.1835C20.5561 21.1214 20.7536 21.0142 20.8839 20.8839C21.0142 20.7536 21.1214 20.5561 21.1835 20.0946C21.2484 19.6116 21.25 18.964 21.25 18V6C21.25 5.03599 21.2484 4.38843 21.1835 3.90539C21.1214 3.44393 21.0142 3.24644 20.8839 3.11612C20.7536 2.9858 20.5561 2.87858 20.0946 2.81654C19.6116 2.7516 18.964 2.75 18 2.75C17.036 2.75 16.3884 2.7516 15.9054 2.81654Z",fill:"currentColor"})})]]),v_=new Map([["Bold",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M21.4086 9.35258C23.5305 10.5065 23.5305 13.4935 21.4086 14.6474L8.59662 21.6145C6.53435 22.736 4 21.2763 4 18.9671L4 5.0329C4 2.72368 6.53435 1.26402 8.59661 2.38548L21.4086 9.35258Z",fill:"currentColor"})})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 10.9648 22.4695 9.92953 21.4086 9.35258L8.59661 2.38548C6.53435 1.26402 4 2.72368 4 5.0329L4 12H23Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M8.59662 21.6145L21.4086 14.6474C22.4695 14.0705 23 13.0352 23 12H4L4 18.9671C4 21.2763 6.53435 22.736 8.59662 21.6145Z",fill:"currentColor"})]})],["Broken",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M3 12L3 18.9671C3 21.2763 5.53435 22.736 7.59662 21.6145L10.7996 19.8727M3 8L3 5.0329C3 2.72368 5.53435 1.26402 7.59661 2.38548L20.4086 9.35258C22.5305 10.5065 22.5305 13.4935 20.4086 14.6474L14.0026 18.131",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})],["LineDuotone",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M20.4086 9.35258C22.5305 10.5065 22.5305 13.4935 20.4086 14.6474L7.59662 21.6145C5.53435 22.736 3 21.2763 3 18.9671L3 5.0329C3 2.72368 5.53435 1.26402 7.59661 2.38548L20.4086 9.35258Z",stroke:"currentColor",strokeWidth:"1.5"})})],["Linear",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M20.4086 9.35258C22.5305 10.5065 22.5305 13.4935 20.4086 14.6474L7.59662 21.6145C5.53435 22.736 3 21.2763 3 18.9671L3 5.0329C3 2.72368 5.53435 1.26402 7.59661 2.38548L20.4086 9.35258Z",stroke:"currentColor",strokeWidth:"1.5"})})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.23832 3.04445C5.65196 2.1818 3.75 3.31957 3.75 5.03299L3.75 18.9672C3.75 20.6806 5.65196 21.8184 7.23832 20.9557L20.0503 13.9886C21.6499 13.1188 21.6499 10.8814 20.0503 10.0116L7.23832 3.04445ZM2.25 5.03299C2.25 2.12798 5.41674 0.346438 7.95491 1.72669L20.7669 8.6938C23.411 10.1317 23.411 13.8685 20.7669 15.3064L7.95491 22.2735C5.41674 23.6537 2.25 21.8722 2.25 18.9672L2.25 5.03299Z",fill:"currentColor"})})]]),y_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M16.6598 14.6474C18.4467 13.4935 18.4467 10.5065 16.6598 9.35258L5.87083 2.38548C4.13419 1.26402 2 2.72368 2 5.0329V18.9671C2 21.2763 4.13419 22.736 5.87083 21.6145L16.6598 14.6474Z",fill:"currentColor"}),l.jsx("path",{d:"M22.75 5C22.75 4.58579 22.4142 4.25 22 4.25C21.5858 4.25 21.25 4.58579 21.25 5V19C21.25 19.4142 21.5858 19.75 22 19.75C22.4142 19.75 22.75 19.4142 22.75 19V5Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{opacity:"0.5",d:"M22.75 5C22.75 4.58579 22.4142 4.25 22 4.25C21.5858 4.25 21.25 4.58579 21.25 5V19C21.25 19.4142 21.5858 19.75 22 19.75C22.4142 19.75 22.75 19.4142 22.75 19V5Z",fill:"currentColor"}),l.jsx("path",{d:"M16.6598 14.6474C18.4467 13.4935 18.4467 10.5065 16.6598 9.35258L5.87083 2.38548C4.13419 1.26402 2 2.72368 2 5.0329V18.9671C2 21.2763 4.13419 22.736 5.87083 21.6145L16.6598 14.6474Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2 11L2 18.9671C2 21.2763 4.13419 22.736 5.87083 21.6145L16.6598 14.6474C18.4467 13.4935 18.4467 10.5065 16.6598 9.35258L5.87084 2.38548C4.13419 1.26402 2 2.72368 2 5.03289V7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M22 5V12M22 16V19",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M16.6598 9.35258C18.4467 10.5065 18.4467 13.4935 16.6598 14.6474L5.87084 21.6145C4.13419 22.736 2 21.2763 2 18.9671L2 5.0329C2 2.72368 4.13419 1.26402 5.87083 2.38548L16.6598 9.35258Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M22 5V19",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M16.6598 9.35258C18.4467 10.5065 18.4467 13.4935 16.6598 14.6474L5.87083 21.6145C4.13419 22.736 2 21.2763 2 18.9671L2 5.0329C2 2.72368 4.13419 1.26402 5.87083 2.38548L16.6598 9.35258Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M22 5V19",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.27769 1.7555C5.1348 1.01747 3.83955 1.13428 2.86078 1.80371C1.89423 2.46477 1.25 3.64507 1.25 5.03297V18.9672C1.25 20.3551 1.89423 21.5354 2.86078 22.1965C3.83956 22.8659 5.1348 22.9827 6.2777 22.2447L17.0667 15.2775C18.217 14.5347 18.75 13.2342 18.75 12.0001C18.75 10.7659 18.217 9.46544 17.0667 8.72261L6.27769 1.7555ZM2.75 5.03297C2.75 4.11167 3.17287 3.40753 3.70757 3.04182C4.23005 2.68448 4.87022 2.63219 5.46397 3.0156L16.253 9.98271C16.8895 10.3938 17.25 11.1637 17.25 12.0001C17.25 12.8364 16.8895 13.6064 16.253 14.0174L5.46397 20.9846C4.87023 21.368 4.23005 21.3157 3.70758 20.9583C3.17287 20.5926 2.75 19.8885 2.75 18.9672L2.75 5.03297Z",fill:"currentColor"}),l.jsx("path",{d:"M22.75 5.00008C22.75 4.58586 22.4142 4.25008 22 4.25008C21.5858 4.25008 21.25 4.58586 21.25 5.00008V19.0001C21.25 19.4143 21.5858 19.7501 22 19.7501C22.4142 19.7501 22.75 19.4143 22.75 19.0001V5.00008Z",fill:"currentColor"})]})]]),x_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M8.09015 14.6474C6.30328 13.4935 6.30328 10.5065 8.09015 9.35258L18.8792 2.38548C20.6158 1.26402 22.75 2.72368 22.75 5.0329V18.9671C22.75 21.2763 20.6158 22.736 18.8792 21.6145L8.09015 14.6474Z",fill:"currentColor"}),l.jsx("path",{d:"M2 5C2 4.58579 2.33579 4.25 2.75 4.25C3.16421 4.25 3.5 4.58579 3.5 5V19C3.5 19.4142 3.16421 19.75 2.75 19.75C2.33579 19.75 2 19.4142 2 19V5Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{opacity:"0.5",d:"M2 5C2 4.58579 2.33579 4.25 2.75 4.25C3.16421 4.25 3.5 4.58579 3.5 5V19C3.5 19.4142 3.16421 19.75 2.75 19.75C2.33579 19.75 2 19.4142 2 19V5Z",fill:"currentColor"}),l.jsx("path",{d:"M8.09015 14.6474C6.30328 13.4935 6.30328 10.5065 8.09016 9.35258L18.8792 2.38548C20.6158 1.26402 22.75 2.72368 22.75 5.0329V18.9671C22.75 21.2763 20.6158 22.736 18.8792 21.6145L8.09015 14.6474Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M22 11L22 18.9671C22 21.2763 19.8658 22.736 18.1292 21.6145L7.34016 14.6474C5.55328 13.4935 5.55328 10.5065 7.34015 9.35258L18.1292 2.38548C19.8658 1.26402 22 2.72368 22 5.03289V7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M2 5V12M2 19V16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M7.34016 9.35258C5.55328 10.5065 5.55328 13.4935 7.34015 14.6474L18.1292 21.6145C19.8658 22.736 22 21.2763 22 18.9671L22 5.0329C22 2.72368 19.8658 1.26402 18.1292 2.38548L7.34016 9.35258Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M2 5V19",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M7.34016 9.35258C5.55328 10.5065 5.55328 13.4935 7.34015 14.6474L18.1292 21.6145C19.8658 22.736 22 21.2763 22 18.9671L22 5.0329C22 2.72368 19.8658 1.26402 18.1292 2.38548L7.34016 9.35258Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M2 5V19",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.1392 1.80371C22.1058 2.46477 22.75 3.64507 22.75 5.03297V18.9672C22.75 20.3551 22.1058 21.5354 21.1392 22.1965C20.1604 22.8659 18.8652 22.9827 17.7223 22.2447L6.93329 15.2775C5.78297 14.5347 5.25 13.2342 5.25 12.0001C5.25 10.7659 5.78297 9.46544 6.93329 8.72261L17.7223 1.7555C18.8652 1.01747 20.1604 1.13428 21.1392 1.80371ZM20.2924 3.04182C19.7699 2.68448 19.1298 2.63219 18.536 3.0156L7.74702 9.98271C7.11047 10.3938 6.75 11.1637 6.75 12.0001C6.75 12.8364 7.11047 13.6064 7.74701 14.0174L18.536 20.9846C19.1298 21.368 19.7699 21.3157 20.2924 20.9583C20.8271 20.5926 21.25 19.8885 21.25 18.9672V5.03297C21.25 4.11167 20.8271 3.40753 20.2924 3.04182ZM2 4.25008C2.41421 4.25008 2.75 4.58586 2.75 5.00008V19.0001C2.75 19.4143 2.41421 19.7501 2 19.7501C1.58579 19.7501 1.25 19.4143 1.25 19.0001V5.00008C1.25 4.58586 1.58579 4.25008 2 4.25008Z",fill:"currentColor"})})]]),w_=new Map([["Bold",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C12.4142 3.25 12.75 3.58579 12.75 4L12.75 20C12.75 20.4142 12.4142 20.75 12 20.75C11.5858 20.75 11.25 20.4142 11.25 20L11.25 4C11.25 3.58579 11.5858 3.25 12 3.25ZM8 6.25C8.41421 6.25 8.75 6.58579 8.75 7V17C8.75 17.4142 8.41421 17.75 8 17.75C7.58579 17.75 7.25 17.4142 7.25 17V7C7.25 6.58579 7.58579 6.25 8 6.25ZM16 6.25C16.4142 6.25 16.75 6.58579 16.75 7V17C16.75 17.4142 16.4142 17.75 16 17.75C15.5858 17.75 15.25 17.4142 15.25 17V7C15.25 6.58579 15.5858 6.25 16 6.25ZM4 10.25C4.41421 10.25 4.75 10.5858 4.75 11L4.75 13C4.75 13.4142 4.41421 13.75 4 13.75C3.58579 13.75 3.25 13.4142 3.25 13L3.25 11C3.25 10.5858 3.58579 10.25 4 10.25ZM20 10.25C20.4142 10.25 20.75 10.5858 20.75 11V13C20.75 13.4142 20.4142 13.75 20 13.75C19.5858 13.75 19.25 13.4142 19.25 13V11C19.25 10.5858 19.5858 10.25 20 10.25Z",fill:"currentColor"})})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C12.4142 3.25 12.75 3.58579 12.75 4L12.75 20C12.75 20.4142 12.4142 20.75 12 20.75C11.5858 20.75 11.25 20.4142 11.25 20L11.25 4C11.25 3.58579 11.5858 3.25 12 3.25ZM4 10.25C4.41421 10.25 4.75 10.5858 4.75 11L4.75 13C4.75 13.4142 4.41421 13.75 4 13.75C3.58579 13.75 3.25 13.4142 3.25 13L3.25 11C3.25 10.5858 3.58579 10.25 4 10.25ZM20 10.25C20.4142 10.25 20.75 10.5858 20.75 11V13C20.75 13.4142 20.4142 13.75 20 13.75C19.5858 13.75 19.25 13.4142 19.25 13V11C19.25 10.5858 19.5858 10.25 20 10.25Z",fill:"currentColor"}),l.jsxs("g",{opacity:"0.5",children:[l.jsx("path",{d:"M16.75 7C16.75 6.58579 16.4142 6.25 16 6.25C15.5858 6.25 15.25 6.58579 15.25 7V17C15.25 17.4142 15.5858 17.75 16 17.75C16.4142 17.75 16.75 17.4142 16.75 17V7Z",fill:"currentColor"}),l.jsx("path",{d:"M8.75 7C8.75 6.58579 8.41421 6.25 8 6.25C7.58579 6.25 7.25 6.58579 7.25 7V17C7.25 17.4142 7.58579 17.75 8 17.75C8.41421 17.75 8.75 17.4142 8.75 17V7Z",fill:"currentColor"})]})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 4L12 20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M16 7L16 9M16 17L16 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M8 17L8 15M8 7L8 11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M20 11L20 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M4 11L4 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 4L12 20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{opacity:"0.5",d:"M16 7L16 17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{opacity:"0.5",d:"M8 7L8 17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M20 11L20 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M4 11L4 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M12 4L12 20",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M16 7L16 17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M8 7L8 17",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M20 11L20 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M4 11L4 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.25C12.4142 3.25 12.75 3.58579 12.75 4L12.75 20C12.75 20.4142 12.4142 20.75 12 20.75C11.5858 20.75 11.25 20.4142 11.25 20L11.25 4C11.25 3.58579 11.5858 3.25 12 3.25ZM8 6.25C8.41421 6.25 8.75 6.58579 8.75 7V17C8.75 17.4142 8.41421 17.75 8 17.75C7.58579 17.75 7.25 17.4142 7.25 17V7C7.25 6.58579 7.58579 6.25 8 6.25ZM16 6.25C16.4142 6.25 16.75 6.58579 16.75 7V17C16.75 17.4142 16.4142 17.75 16 17.75C15.5858 17.75 15.25 17.4142 15.25 17V7C15.25 6.58579 15.5858 6.25 16 6.25ZM4 10.25C4.41421 10.25 4.75 10.5858 4.75 11L4.75 13C4.75 13.4142 4.41421 13.75 4 13.75C3.58579 13.75 3.25 13.4142 3.25 13L3.25 11C3.25 10.5858 3.58579 10.25 4 10.25ZM20 10.25C20.4142 10.25 20.75 10.5858 20.75 11V13C20.75 13.4142 20.4142 13.75 20 13.75C19.5858 13.75 19.25 13.4142 19.25 13V11C19.25 10.5858 19.5858 10.25 20 10.25Z",fill:"currentColor"})})]]),b_=new Map([["Bold",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z",fill:"currentColor"})})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355L20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M3.46484 20.5359C4.92931 22.0004 7.28633 22.0004 12.0004 22.0004C16.7144 22.0004 19.0714 22.0004 20.5359 20.5359C22.0004 19.0714 22.0004 16.7144 22.0004 12.0004C22.0004 7.28633 22.0004 4.92931 20.5359 3.46484L3.46484 20.5359Z",fill:"currentColor"})]})],["Broken",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C21.5093 4.43821 21.8356 5.80655 21.9449 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})],["LineDuotone",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z",stroke:"currentColor",strokeWidth:"1.5"})})],["Linear",l.jsx(l.Fragment,{children:l.jsx("path",{d:"M2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12Z",stroke:"currentColor",strokeWidth:"1.5"})})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9426 1.25H12.0574C14.3658 1.24999 16.1748 1.24998 17.5863 1.43975C19.031 1.63399 20.1711 2.03933 21.0659 2.93414C21.9607 3.82895 22.366 4.96897 22.5603 6.41371C22.75 7.82519 22.75 9.63423 22.75 11.9426V12.0574C22.75 14.3658 22.75 16.1748 22.5603 17.5863C22.366 19.031 21.9607 20.1711 21.0659 21.0659C20.1711 21.9607 19.031 22.366 17.5863 22.5603C16.1748 22.75 14.3658 22.75 12.0574 22.75H11.9426C9.63423 22.75 7.82519 22.75 6.41371 22.5603C4.96897 22.366 3.82895 21.9607 2.93414 21.0659C2.03933 20.1711 1.63399 19.031 1.43975 17.5863C1.24998 16.1748 1.24999 14.3658 1.25 12.0574V11.9426C1.24999 9.63423 1.24998 7.82519 1.43975 6.41371C1.63399 4.96897 2.03933 3.82895 2.93414 2.93414C3.82895 2.03933 4.96897 1.63399 6.41371 1.43975C7.82519 1.24998 9.63423 1.24999 11.9426 1.25ZM6.61358 2.92637C5.33517 3.09825 4.56445 3.42514 3.9948 3.9948C3.42514 4.56445 3.09825 5.33517 2.92637 6.61358C2.75159 7.91356 2.75 9.62177 2.75 12C2.75 14.3782 2.75159 16.0864 2.92637 17.3864C3.09825 18.6648 3.42514 19.4355 3.9948 20.0052C4.56445 20.5749 5.33517 20.9018 6.61358 21.0736C7.91356 21.2484 9.62177 21.25 12 21.25C14.3782 21.25 16.0864 21.2484 17.3864 21.0736C18.6648 20.9018 19.4355 20.5749 20.0052 20.0052C20.5749 19.4355 20.9018 18.6648 21.0736 17.3864C21.2484 16.0864 21.25 14.3782 21.25 12C21.25 9.62177 21.2484 7.91356 21.0736 6.61358C20.9018 5.33517 20.5749 4.56445 20.0052 3.9948C19.4355 3.42514 18.6648 3.09825 17.3864 2.92637C16.0864 2.75159 14.3782 2.75 12 2.75C9.62177 2.75 7.91356 2.75159 6.61358 2.92637Z",fill:"currentColor"})})]]),S_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5145 6.3164C20.892 6.14605 21.3362 6.31403 21.5065 6.6916C21.9736 7.72674 22.5 9.45958 22.5 12C22.5 14.1916 22.1082 15.7829 21.7 16.8442C21.4962 17.374 21.2894 17.7692 21.1275 18.039C21.0466 18.1738 20.977 18.2772 20.9248 18.3504C20.8986 18.3869 20.8769 18.4159 20.8602 18.4375C20.8518 18.4483 20.8448 18.4572 20.8391 18.4643L20.8316 18.4736L20.8286 18.4772L20.8273 18.4788C20.8273 18.4788 20.8262 18.4801 20.25 18L20.8262 18.4801C20.561 18.7983 20.0881 18.8413 19.7699 18.5762C19.4532 18.3123 19.4091 17.8426 19.67 17.5245C19.67 17.5245 19.6718 17.5222 19.6735 17.52C19.6788 17.5132 19.6893 17.4994 19.7042 17.4785C19.7339 17.4368 19.7815 17.3668 19.8413 17.2673C19.9606 17.0683 20.1288 16.751 20.3 16.3058C20.6418 15.4171 21 14.0084 21 12C21 9.67366 20.5194 8.15099 20.1393 7.30849C19.9689 6.93093 20.1369 6.48675 20.5145 6.3164Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.414 9.26566C18.8196 9.18146 19.2166 9.44198 19.3008 9.84754C19.4109 10.378 19.5 11.0889 19.5 12C19.5 13.1101 19.3678 13.9228 19.2265 14.4738C19.1559 14.749 19.0833 14.9579 19.0245 15.1051C18.9951 15.1786 18.9691 15.2367 18.9486 15.2797C18.9384 15.3012 18.9295 15.3189 18.9223 15.333L18.9126 15.3514L18.9088 15.3585L18.9071 15.3615L18.9063 15.3629C18.9063 15.3629 18.9056 15.3642 18.25 15L18.9056 15.3642C18.7045 15.7263 18.2479 15.8568 17.8858 15.6556C17.5268 15.4562 17.3955 15.0056 17.5893 14.645L17.5943 14.6348C17.6012 14.6204 17.6143 14.5917 17.6318 14.548C17.6667 14.4608 17.7191 14.3135 17.7735 14.1012C17.8822 13.6772 18 12.9899 18 12C18 11.1873 17.9206 10.5787 17.8321 10.1525C17.7479 9.74689 18.0084 9.34986 18.414 9.26566Z",fill:"currentColor"}),l.jsx("path",{d:"M21.7803 3.53033C22.0732 3.23744 22.0732 2.76256 21.7803 2.46967C21.4874 2.17678 21.0126 2.17678 20.7197 2.46967L16.2705 6.91886C16.2246 6.39532 16.1646 5.93197 16.077 5.52977C15.9052 4.74135 15.6003 4.05581 14.9609 3.60646C14.7259 3.44128 14.4642 3.30809 14.1923 3.21531C13.3741 2.9361 12.5608 3.15928 11.7348 3.56055C10.9212 3.95576 9.93412 4.60663 8.70324 5.41822L8.43647 5.59411C7.98856 5.88944 7.83448 5.98815 7.67513 6.05848C7.50452 6.13378 7.3252 6.18757 7.14132 6.21862C6.96956 6.24762 6.7866 6.25003 6.25008 6.25003L6.08906 6.24998C4.87215 6.24933 4.02659 6.24889 3.27496 6.59664C2.58016 6.9181 1.91141 7.54732 1.54828 8.22128C1.15566 8.94996 1.10959 9.712 1.04409 10.7955L1.03618 10.926C1.01373 11.2943 1 11.6585 1 12C1 12.3416 1.01373 12.7058 1.03618 13.0741L1.04409 13.2045C1.10959 14.2881 1.15566 15.0501 1.54828 15.7788C1.91141 16.4527 2.58016 17.082 3.27496 17.4034C3.88551 17.6859 4.55803 17.7386 5.44121 17.7481L2.71967 20.4697C2.42678 20.7626 2.42678 21.2374 2.71967 21.5303C3.01256 21.8232 3.48744 21.8232 3.78033 21.5303L21.7803 3.53033Z",fill:"currentColor"}),l.jsx("path",{d:"M16.5 12C16.5 11.5858 16.1642 11.25 15.75 11.25C15.5554 11.25 15.3781 11.3241 15.2448 11.4457L15.1735 11.5203L9.17494 17.7941C8.82947 18.1554 8.90952 18.7441 9.33893 19.0001C10.3777 19.6808 11.2375 20.2247 11.9704 20.549C12.7127 20.8773 13.4503 21.0379 14.1923 20.7847C14.4642 20.6919 14.7259 20.5588 14.9609 20.3936C15.667 19.8974 15.9659 19.1134 16.1278 18.2139C16.287 17.3296 16.3414 16.1576 16.4092 14.6977L16.4119 14.6402C16.4637 13.5252 16.5 12.552 16.5 12Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M21.7803 3.53033C22.0732 3.23744 22.0732 2.76256 21.7803 2.46967C21.4874 2.17678 21.0126 2.17678 20.7197 2.46967L16.2705 6.91886C16.2246 6.39532 16.1646 5.93197 16.077 5.52977C15.9052 4.74135 15.6003 4.05581 14.9609 3.60646C14.7259 3.44128 14.4642 3.30809 14.1923 3.21531C13.3741 2.9361 12.5608 3.15928 11.7348 3.56055C10.9212 3.95576 9.93412 4.60663 8.70324 5.41822L8.43647 5.59411C7.98856 5.88944 7.83448 5.98815 7.67513 6.05848C7.50452 6.13378 7.3252 6.18757 7.14132 6.21862C6.96956 6.24762 6.7866 6.25003 6.25008 6.25003L6.08906 6.24998C4.87215 6.24933 4.02659 6.24889 3.27496 6.59664C2.58016 6.9181 1.91141 7.54732 1.54828 8.22128C1.15566 8.94996 1.10959 9.712 1.04409 10.7955L1.03618 10.926C1.01373 11.2943 1 11.6585 1 12C1 12.3416 1.01373 12.7058 1.03618 13.0741L1.04409 13.2045C1.10959 14.2881 1.15566 15.0501 1.54828 15.7788C1.91141 16.4527 2.58016 17.082 3.27496 17.4034C3.88551 17.6859 4.55803 17.7386 5.44121 17.7481L2.71967 20.4697C2.42678 20.7626 2.42678 21.2374 2.71967 21.5303C3.01256 21.8232 3.48744 21.8232 3.78033 21.5303L21.7803 3.53033Z",fill:"currentColor"}),l.jsxs("g",{opacity:"0.4",children:[l.jsx("path",{d:"M16.2382 9.07225L7.61424 17.6963C8.00956 18.1712 9.02592 18.8138 9.33873 19.0002C10.3775 19.6809 11.2373 20.2249 11.9702 20.5491C12.7125 20.8775 13.4501 21.0381 14.1921 20.7849C14.464 20.6921 14.7257 20.5589 14.9607 20.3937C15.6668 19.8975 15.9657 19.1135 16.1276 18.2141C16.2868 17.3297 16.3412 16.1578 16.409 14.6979L16.4117 14.6404C16.4635 13.5254 16.4998 12.5522 16.4998 12.0002C16.4998 11.9729 16.5 11.9363 16.5002 11.8916C16.503 11.3245 16.5122 9.46272 16.2382 9.07225Z",fill:"currentColor"}),l.jsx("path",{d:"M20.5143 6.31657C20.8918 6.14622 21.336 6.3142 21.5063 6.69176C21.9734 7.7269 22.4998 9.45974 22.4998 12.0002C22.4998 14.1917 22.108 15.783 21.6998 16.8444C21.496 17.3742 21.2892 17.7693 21.1273 18.0392C21.0464 18.174 20.9768 18.2774 20.9246 18.3505C20.8984 18.3871 20.8767 18.4161 20.86 18.4377C20.8516 18.4485 20.8446 18.4574 20.8389 18.4645L20.8314 18.4738L20.8284 18.4774L20.8271 18.4789C20.8271 18.4789 20.826 18.4803 20.2512 18.0013L20.826 18.4803C20.5608 18.7985 20.0879 18.8415 19.7697 18.5763C19.453 18.3124 19.4089 17.8428 19.6698 17.5246L19.6733 17.5202L19.6834 17.5068C19.6888 17.4996 19.6957 17.4902 19.704 17.4787C19.7337 17.437 19.7813 17.3669 19.8411 17.2674C19.9604 17.0685 20.1286 16.7512 20.2998 16.3059C20.6416 15.4173 20.9998 14.0086 20.9998 12.0002C20.9998 9.67383 20.5192 8.15116 20.1391 7.30865C19.9687 6.93109 20.1367 6.48692 20.5143 6.31657Z",fill:"currentColor"}),l.jsx("path",{d:"M19.3006 9.84771C19.2164 9.44214 18.8194 9.18162 18.4138 9.26583C18.0082 9.35003 17.7477 9.74706 17.8319 10.1526C17.9204 10.5789 17.9998 11.1874 17.9998 12.0002C17.9998 12.99 17.882 13.6773 17.7733 14.1014C17.7189 14.3137 17.6665 14.461 17.6316 14.5482C17.6141 14.5918 17.601 14.6205 17.5941 14.6349L17.5891 14.6452C17.3953 15.0058 17.5266 15.4563 17.8856 15.6558C18.2477 15.8569 18.7043 15.7265 18.9054 15.3644L18.2509 15.0008C18.9054 15.3644 18.9061 15.3631 18.9061 15.3631L18.9069 15.3617L18.9086 15.3586L18.9124 15.3515L18.9221 15.3332C18.9293 15.3191 18.9382 15.3014 18.9484 15.2798C18.9689 15.2368 18.9949 15.1788 19.0243 15.1053C19.0831 14.9581 19.1557 14.7492 19.2263 14.4739C19.3676 13.923 19.4998 13.1103 19.4998 12.0002C19.4998 11.0891 19.4107 10.3782 19.3006 9.84771Z",fill:"currentColor"})]})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M15.5001 11.9998C15.5001 12.5317 15.4647 13.4879 15.4128 14.6052C15.2726 17.6226 15.2025 19.1313 14.2798 19.7797C14.1029 19.9041 13.9048 20.0049 13.7001 20.0747C12.7327 20.4048 11.5976 19.747 9.50009 18.3725M7.01629 17.0417C6.76828 16.9998 6.51225 16.9998 6.00018 16.9998C4.62626 16.9998 3.9393 16.9998 3.33997 16.7225C2.79239 16.4692 2.24482 15.9539 1.95863 15.4228C1.6454 14.8414 1.60856 14.237 1.53488 13.0282C1.52396 12.849 1.51525 12.6722 1.50928 12.4998M1.95863 8.57679C2.24482 8.04563 2.79239 7.53042 3.33997 7.27707C3.9393 6.99979 4.62626 6.99979 6.00018 6.99979C6.51225 6.99979 6.76828 6.99979 7.01629 6.95791C7.26147 6.9165 7.50056 6.84478 7.72804 6.74438C7.95815 6.64283 8.1719 6.50189 8.59941 6.22002L8.81835 6.07566C11.3613 4.39898 12.6328 3.56063 13.7001 3.92487C13.9048 3.9947 14.1029 4.09551 14.2798 4.21984C15.1151 4.80685 15.2517 6.09882 15.3741 8.57679",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M20 18C20 18 21.5 16.2 21.5 12C21.5 9.56658 20.9965 7.93882 20.5729 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M18 15C18 15 18.5 14.1 18.5 12C18.5 11.1381 18.4158 10.4784 18.3165 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M22 2L2 22",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M7.0162 17.0417C6.76819 16.9998 6.51215 16.9998 6.00008 16.9998C4.62617 16.9998 3.93921 16.9998 3.33988 16.7225C2.7923 16.4692 2.24473 15.9539 1.95854 15.4228C1.64531 14.8414 1.60847 14.237 1.53479 13.0282C1.51299 12.6706 1.5 12.3222 1.5 11.9998C1.5 11.6774 1.51299 11.329 1.53479 10.9714C1.60847 9.76255 1.64531 9.15814 1.95854 8.57679C2.24473 8.04563 2.7923 7.53042 3.33988 7.27707C3.93921 6.99979 4.62617 6.99979 6.00008 6.99979C6.51215 6.99979 6.76819 6.99979 7.0162 6.95791C7.26138 6.9165 7.50046 6.84478 7.72795 6.74438C7.95806 6.64283 8.17181 6.50189 8.59932 6.22002L8.81825 6.07566C11.3612 4.39898 12.6327 3.56063 13.7001 3.92487C13.9047 3.9947 14.1028 4.09551 14.2797 4.21984C15.115 4.80685 15.2516 6.09882 15.374 8.57679",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M15.5 8.5V12C15.5 12.5319 15.4646 13.4881 15.4127 14.6054C15.2725 17.6228 15.2024 19.1315 14.2797 19.78C14.1028 19.9043 13.9047 20.0051 13.7001 20.0749C12.7327 20.405 11.5975 19.7473 9.5 18.3727C8.83333 17.9152 7.4 17 7 17",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.5",d:"M20 18C20 18 21.5 16.2 21.5 12C21.5 9.56658 20.9965 7.93882 20.5729 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{opacity:"0.5",d:"M18 15C18 15 18.5 14.1 18.5 12C18.5 11.1381 18.4158 10.4784 18.3165 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M22 2L2 22",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M16.25 11.9998C16.25 11.5856 15.9142 11.2498 15.5 11.2498C15.0858 11.2498 14.75 11.5856 14.75 11.9998H16.25ZM7.0162 6.95791L7.14108 7.69744L7.0162 6.95791ZM8.59932 6.22002L8.18647 5.59387L8.18647 5.59387L8.59932 6.22002ZM7.72795 6.74438L8.03077 7.43053L7.72795 6.74438ZM3.33988 16.7225L3.02496 17.4032L3.33988 16.7225ZM1.53479 13.0282L0.786179 13.0738L1.53479 13.0282ZM1.95854 15.4228L2.6188 15.067L1.95854 15.4228ZM13.7001 20.0747L13.4578 19.3649L13.7001 20.0747ZM15.4127 14.6052L16.1619 14.64L15.4127 14.6052ZM14.2797 19.7797L14.7109 20.3934L14.2797 19.7797ZM8.81825 6.07566L9.2311 6.70181L9.2311 6.70181L8.81825 6.07566ZM13.7001 3.92487L13.4578 4.63468L13.7001 3.92487ZM14.2797 4.21984L14.7109 3.60621L14.2797 4.21984ZM3.33988 7.27707L3.02496 6.5964L3.33988 7.27707ZM1.53479 10.9714L0.786179 10.9258L1.53479 10.9714ZM1.95854 8.57679L2.6188 8.93254L1.95854 8.57679ZM9.91107 17.7452C9.56462 17.5182 9.09972 17.615 8.87269 17.9615C8.64566 18.3079 8.74247 18.7728 9.08893 18.9998L9.91107 17.7452ZM9.01216 6.84616L9.2311 6.70181L8.40541 5.44952L8.18647 5.59387L9.01216 6.84616ZM2.2834 12.9826C2.26225 12.6356 2.25 12.303 2.25 11.9998H0.75C0.75 12.3414 0.763733 12.7056 0.786179 13.0738L2.2834 12.9826ZM2.25 11.9998C2.25 11.6966 2.26225 11.364 2.2834 11.017L0.786179 10.9258C0.763733 11.294 0.75 11.6582 0.75 11.9998H2.25ZM14.75 11.9998C14.75 12.5116 14.7156 13.4508 14.6635 14.5704L16.1619 14.64C16.2137 13.525 16.25 12.5518 16.25 11.9998H14.75ZM6.00008 7.74979C6.48771 7.74979 6.81682 7.7522 7.14108 7.69744L6.89132 6.21838C6.71956 6.24738 6.5366 6.24979 6.00008 6.24979V7.74979ZM8.18647 5.59387C7.73856 5.8892 7.58448 5.98791 7.42513 6.05823L8.03077 7.43053C8.33163 7.29775 8.60506 7.11458 9.01216 6.84616L8.18647 5.59387ZM7.14108 7.69744C7.44756 7.64568 7.74641 7.55603 8.03077 7.43053L7.42513 6.05823C7.25452 6.13353 7.0752 6.18732 6.89132 6.21838L7.14108 7.69744ZM6.00008 17.7498C6.5366 17.7498 6.71956 17.7522 6.89132 17.7812L7.14108 16.3021C6.81682 16.2474 6.48771 16.2498 6.00008 16.2498V17.7498ZM6.00008 16.2498C4.55641 16.2498 4.06911 16.2335 3.6548 16.0418L3.02496 17.4032C3.80931 17.7661 4.69593 17.7498 6.00008 17.7498V16.2498ZM0.786179 13.0738C0.856484 14.2273 0.890091 15.021 1.29828 15.7785L2.6188 15.067C2.40052 14.6619 2.36045 14.2467 2.2834 12.9826L0.786179 13.0738ZM3.6548 16.0418C3.25445 15.8566 2.82804 15.4554 2.6188 15.067L1.29828 15.7785C1.66141 16.4525 2.33016 17.0817 3.02496 17.4032L3.6548 16.0418ZM14.6635 14.5704C14.5924 16.1011 14.541 17.1731 14.4015 17.9479C14.2626 18.7193 14.0651 19.0139 13.8485 19.1661L14.7109 20.3934C15.417 19.8972 15.7159 19.1131 15.8778 18.2137C16.0391 17.3178 16.0928 16.1266 16.1619 14.64L14.6635 14.5704ZM13.9423 20.7845C14.2142 20.6917 14.4759 20.5585 14.7109 20.3934L13.8485 19.1661C13.7297 19.2496 13.5952 19.318 13.4578 19.3649L13.9423 20.7845ZM9.2311 6.70181C10.5209 5.85139 11.426 5.2565 12.1402 4.90954C12.8525 4.56352 13.2087 4.54965 13.4578 4.63468L13.9423 3.21506C13.1241 2.93586 12.3108 3.15904 11.4848 3.56031C10.6607 3.96063 9.65858 4.62325 8.40541 5.44952L9.2311 6.70181ZM13.4578 4.63468C13.5952 4.68157 13.7297 4.74998 13.8485 4.83346L14.7109 3.60621C14.4759 3.44103 14.2142 3.30784 13.9423 3.21506L13.4578 4.63468ZM6.00008 6.24979C4.69593 6.24979 3.80931 6.23351 3.02496 6.5964L3.6548 7.95775C4.06911 7.76607 4.55641 7.74979 6.00008 7.74979V6.24979ZM2.2834 11.017C2.36045 9.75285 2.40052 9.33765 2.6188 8.93254L1.29828 8.22104C0.890091 8.97862 0.856484 9.77226 0.786179 10.9258L2.2834 11.017ZM3.02496 6.5964C2.33016 6.91785 1.66141 7.54708 1.29828 8.22104L2.6188 8.93254C2.82804 8.54419 3.25445 8.14298 3.6548 7.95775L3.02496 6.5964ZM9.08893 18.9998C10.1277 19.6806 10.9875 20.2245 11.7204 20.5488C12.4627 20.8771 13.2003 21.0377 13.9423 20.7845L13.4578 19.3649C13.2324 19.4418 12.9187 19.4386 12.3272 19.177C11.7264 18.9112 10.9698 18.439 9.91107 17.7452L9.08893 18.9998ZM16.1231 8.53978C16.0624 7.31263 15.9963 6.30685 15.827 5.52953C15.6552 4.7411 15.3503 4.05557 14.7109 3.60621L13.8485 4.83346C14.0443 4.97111 14.2254 5.22507 14.3614 5.84888C14.4997 6.48379 14.5631 7.36297 14.6249 8.61379L16.1231 8.53978Z",fill:"currentColor"}),l.jsx("path",{d:"M20 18C20 18 21.5 16.2 21.5 12C21.5 9.56658 20.9965 7.93882 20.5729 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M18 15C18 15 18.5 14.1 18.5 12C18.5 11.1381 18.4158 10.4784 18.3165 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M22 2L2 22",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.5303 1.46967C22.8232 1.76256 22.8232 2.23744 22.5303 2.53033L2.53033 22.5303C2.23744 22.8232 1.76256 22.8232 1.46967 22.5303C1.17678 22.2374 1.17678 21.7626 1.46967 21.4697L5.19121 17.7481C4.30803 17.7386 3.63551 17.6859 3.02496 17.4034C2.33016 17.082 1.66141 16.4527 1.29828 15.7788C0.905663 15.0501 0.859593 14.2881 0.794087 13.2045C0.791489 13.1615 0.788861 13.1181 0.786179 13.0741C0.763733 12.7058 0.75 12.3416 0.75 12C0.75 11.6585 0.763733 11.2943 0.786179 10.926C0.788861 10.882 0.791489 10.8385 0.794087 10.7955C0.859593 9.712 0.905663 8.94996 1.29828 8.22128C1.66141 7.54732 2.33016 6.9181 3.02496 6.59664C3.77659 6.24889 4.62215 6.24933 5.83906 6.24998C5.89202 6.25 5.94569 6.25003 6.00008 6.25003C6.5366 6.25003 6.71956 6.24762 6.89132 6.21862C7.0752 6.18757 7.25452 6.13378 7.42513 6.05848C7.58448 5.98815 7.73856 5.88944 8.18647 5.59411L8.45324 5.41822C9.68412 4.60663 10.6712 3.95576 11.4848 3.56055C12.3108 3.15928 13.1241 2.9361 13.9423 3.21531C14.2142 3.30809 14.4759 3.44128 14.7109 3.60646C15.3503 4.05581 15.6552 4.74135 15.827 5.52977C15.9146 5.93197 15.9746 6.39532 16.0205 6.91886L21.4697 1.46967C21.7626 1.17678 22.2374 1.17678 22.5303 1.46967ZM14.6104 8.32893C14.5528 7.22797 14.4889 6.43466 14.3614 5.84912C14.2254 5.22532 14.0443 4.97136 13.8485 4.8337C13.7297 4.75023 13.5952 4.68181 13.4578 4.63492C13.2087 4.54989 12.8525 4.56376 12.1402 4.90978C11.426 5.25675 10.5209 5.85164 9.2311 6.70206L9.01216 6.84641C8.9955 6.85739 8.97906 6.86824 8.96284 6.87894C8.58264 7.12973 8.31931 7.30343 8.03077 7.43078C7.74641 7.55627 7.44756 7.64593 7.14108 7.69768C6.83009 7.7502 6.51464 7.75013 6.05917 7.75004C6.03973 7.75004 6.02004 7.75003 6.00008 7.75003C4.55641 7.75003 4.06911 7.76631 3.6548 7.958C3.25445 8.14323 2.82804 8.54443 2.6188 8.93278C2.40052 9.33789 2.36045 9.75309 2.2834 11.0173C2.26225 11.3642 2.25 11.6968 2.25 12C2.25 12.3033 2.26225 12.6358 2.2834 12.9828C2.36045 14.247 2.40052 14.6622 2.6188 15.0673C2.82804 15.4556 3.25445 15.8568 3.6548 16.0421C4.06911 16.2338 4.55641 16.25 6.00008 16.25C6.02004 16.25 6.03973 16.25 6.05917 16.25C6.29891 16.25 6.49985 16.2499 6.68178 16.2576L14.6104 8.32893ZM20.2645 6.3164C20.642 6.14605 21.0862 6.31403 21.2565 6.6916C21.7236 7.72674 22.25 9.45958 22.25 12C22.25 14.1916 21.8582 15.7829 21.45 16.8442C21.2462 17.374 21.0394 17.7692 20.8775 18.039C20.7966 18.1738 20.727 18.2772 20.6748 18.3504C20.6486 18.3869 20.6269 18.4159 20.6102 18.4375C20.6018 18.4483 20.5948 18.4572 20.5891 18.4643L20.5816 18.4736L20.5786 18.4772L20.5773 18.4788C20.577 18.4791 20.5762 18.4801 20 18L20.5762 18.4801C20.311 18.7983 19.8381 18.8413 19.5199 18.5762C19.2032 18.3123 19.1591 17.8426 19.42 17.5244C19.4207 17.5237 19.4218 17.5222 19.4235 17.52C19.4288 17.5132 19.4393 17.4994 19.4542 17.4785C19.4839 17.4368 19.5315 17.3668 19.5913 17.2673C19.7106 17.0683 19.8788 16.751 20.05 16.3058C20.3918 15.4171 20.75 14.0084 20.75 12C20.75 9.67366 20.2694 8.15099 19.8893 7.30849C19.7189 6.93093 19.8869 6.48676 20.2645 6.3164ZM18.164 9.26566C18.5696 9.18146 18.9666 9.44198 19.0508 9.84754C19.1609 10.378 19.25 11.0889 19.25 12C19.25 13.1101 19.1178 13.9228 18.9765 14.4738C18.9059 14.749 18.8333 14.9579 18.7745 15.1051C18.7451 15.1787 18.7191 15.2367 18.6986 15.2797C18.6884 15.3012 18.6795 15.3189 18.6723 15.333L18.6626 15.3514L18.6588 15.3585L18.6571 15.3615L18.6563 15.3629C18.6562 15.3632 18.6556 15.3642 18.0276 15.0153L18.6556 15.3642C18.4545 15.7263 17.9979 15.8568 17.6358 15.6556C17.2768 15.4562 17.1455 15.0056 17.3393 14.645L17.3443 14.6348C17.3512 14.6204 17.3643 14.5917 17.3818 14.548C17.4167 14.4608 17.4691 14.3135 17.5235 14.1012C17.6322 13.6772 17.75 12.9899 17.75 12C17.75 11.1873 17.6706 10.5787 17.5821 10.1525C17.4979 9.74689 17.7584 9.34986 18.164 9.26566ZM15.5 11.25C15.9142 11.25 16.25 11.5858 16.25 12C16.25 12.552 16.2137 13.5253 16.1619 14.6402L16.1592 14.6977C16.0914 16.1576 16.037 17.3296 15.8778 18.2139C15.7159 19.1134 15.417 19.8974 14.7109 20.3936C14.4759 20.5588 14.2142 20.692 13.9423 20.7848C13.2003 21.038 12.4627 20.8773 11.7204 20.549C10.9875 20.2248 10.1277 19.6808 9.08893 19.0001C8.74247 18.7731 8.64566 18.3082 8.87269 17.9617C9.09972 17.6153 9.56462 17.5184 9.91107 17.7455C10.9698 18.4393 11.7264 18.9114 12.3272 19.1772C12.9187 19.4389 13.2324 19.4421 13.4578 19.3651C13.5952 19.3183 13.7297 19.2498 13.8485 19.1664C14.0651 19.0141 14.2626 18.7195 14.4015 17.9482C14.541 17.1733 14.5924 16.1014 14.6635 14.5706C14.7156 13.451 14.75 12.5118 14.75 12C14.75 11.5858 15.0858 11.25 15.5 11.25Z",fill:"currentColor"})})]]),D_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2.00299 11.7155C2.04033 9.87326 2.059 8.95215 2.67093 8.16363C2.78262 8.0197 2.9465 7.8487 3.08385 7.73274C3.83639 7.09741 4.82995 7.09741 6.81706 7.09741C7.527 7.09741 7.88198 7.09741 8.22035 7.00452C8.29067 6.98522 8.36024 6.96296 8.4289 6.93781C8.75936 6.81674 9.05574 6.60837 9.64851 6.19161C11.9872 4.54738 13.1565 3.72527 14.138 4.08241C14.3261 4.15088 14.5083 4.24972 14.671 4.37162C15.5194 5.00744 15.5839 6.48675 15.7128 9.44537C15.7606 10.5409 15.7931 11.4785 15.7931 12C15.7931 12.5215 15.7606 13.4591 15.7128 14.5546C15.5839 17.5132 15.5194 18.9926 14.671 19.6284C14.5083 19.7503 14.3261 19.8491 14.138 19.9176C13.1565 20.2747 11.9872 19.4526 9.64851 17.8084C9.05574 17.3916 8.75936 17.1833 8.4289 17.0622C8.36024 17.037 8.29067 17.0148 8.22035 16.9955C7.88198 16.9026 7.527 16.9026 6.81706 16.9026C4.82995 16.9026 3.83639 16.9026 3.08385 16.2673C2.9465 16.1513 2.78262 15.9803 2.67093 15.8364C2.059 15.0478 2.04033 14.1267 2.00299 12.2845C2.00103 12.1878 2 12.0928 2 12C2 11.9072 2.00103 11.8122 2.00299 11.7155Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.4895 5.55219C19.7821 5.29218 20.217 5.33434 20.4608 5.64635L19.931 6.11713C20.4608 5.64635 20.4606 5.64602 20.4608 5.64635L20.4619 5.6477L20.4631 5.64921L20.4658 5.65275L20.4727 5.66184C20.4779 5.6688 20.4844 5.67756 20.4921 5.68814C20.5075 5.70929 20.5275 5.73772 20.5515 5.77358C20.5995 5.84529 20.6635 5.94667 20.7379 6.07889C20.8868 6.34345 21.077 6.73092 21.2644 7.25038C21.6397 8.29107 22 9.85136 22 12.0002C22 14.1491 21.6397 15.7094 21.2644 16.7501C21.077 17.2695 20.8868 17.657 20.7379 17.9216C20.6635 18.0538 20.5995 18.1552 20.5515 18.2269C20.5275 18.2627 20.5075 18.2912 20.4921 18.3123C20.4844 18.3229 20.4779 18.3317 20.4727 18.3386L20.4658 18.3477L20.4631 18.3513L20.4619 18.3528C20.4616 18.3531 20.4608 18.3541 19.931 17.8833L20.4608 18.3541C20.217 18.6661 19.7821 18.7083 19.4895 18.4483C19.1983 18.1895 19.1578 17.729 19.3977 17.417C19.3983 17.4163 19.3994 17.4148 19.4009 17.4127C19.4058 17.406 19.4154 17.3925 19.4291 17.372C19.4565 17.3311 19.5003 17.2625 19.5552 17.1649C19.6649 16.9698 19.8195 16.6587 19.977 16.2221C20.2913 15.3508 20.6207 13.9695 20.6207 12.0002C20.6207 10.0309 20.2913 8.64968 19.977 7.77836C19.8195 7.34181 19.6649 7.03066 19.5552 6.8356C19.5003 6.73802 19.4565 6.66934 19.4291 6.62845C19.4154 6.608 19.4058 6.59449 19.4009 6.58778C19.3994 6.58561 19.3983 6.58416 19.3977 6.5834C19.3977 6.5834 19.3977 6.58341 19.3977 6.5834",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7571 8.41595C18.0901 8.21871 18.51 8.34663 18.6949 8.70166L18.0921 9.0588C18.6949 8.70166 18.6948 8.70134 18.6949 8.70166L18.6956 8.70295L18.6963 8.70432L18.6978 8.7073L18.7014 8.71428L18.7102 8.73227C18.7169 8.74607 18.7251 8.76348 18.7345 8.78457C18.7533 8.82676 18.7772 8.88363 18.8042 8.95574C18.8584 9.10004 18.9251 9.3049 18.99 9.57476C19.1199 10.115 19.2415 10.9119 19.2415 12.0003C19.2415 13.0888 19.1199 13.8857 18.99 14.4259C18.9251 14.6958 18.8584 14.9007 18.8042 15.045C18.7772 15.1171 18.7533 15.1739 18.7345 15.2161C18.7251 15.2372 18.7169 15.2546 18.7102 15.2684L18.7014 15.2864L18.6978 15.2934L18.6963 15.2964L18.6956 15.2978C18.6954 15.2981 18.6949 15.299 18.0921 14.9419L18.6949 15.299C18.51 15.6541 18.0901 15.782 17.7571 15.5847C17.427 15.3892 17.3063 14.9474 17.4846 14.5938L17.4892 14.5838C17.4955 14.5697 17.5075 14.5415 17.5236 14.4987C17.5557 14.4132 17.6039 14.2688 17.6539 14.0606C17.7539 13.6448 17.8622 12.9709 17.8622 12.0003C17.8622 11.0298 17.7539 10.3559 17.6539 9.94007C17.6039 9.73193 17.5557 9.58748 17.5236 9.50197C17.5075 9.45918 17.4955 9.43102 17.4892 9.41691L17.4846 9.40687C17.3063 9.05332 17.427 8.61152 17.7571 8.41595Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M2.00299 11.7155C2.04033 9.87326 2.059 8.95215 2.67093 8.16363C2.78262 8.0197 2.9465 7.8487 3.08385 7.73274C3.83639 7.09741 4.82995 7.09741 6.81706 7.09741C7.527 7.09741 7.88197 7.09741 8.22035 7.00452C8.29067 6.98522 8.36024 6.96296 8.4289 6.93781C8.75936 6.81674 9.05574 6.60837 9.64851 6.19161C11.9872 4.54738 13.1565 3.72527 14.138 4.08241C14.3261 4.15088 14.5083 4.24972 14.671 4.37162C15.5194 5.00744 15.5839 6.48675 15.7128 9.44537C15.7606 10.5409 15.7931 11.4785 15.7931 12C15.7931 12.5215 15.7606 13.4591 15.7128 14.5546C15.5839 17.5132 15.5194 18.9926 14.671 19.6284C14.5083 19.7503 14.3261 19.8491 14.138 19.9176C13.1565 20.2747 11.9872 19.4526 9.64851 17.8084C9.05574 17.3916 8.75936 17.1833 8.4289 17.0622C8.36024 17.037 8.29067 17.0148 8.22035 16.9955C7.88197 16.9026 7.52701 16.9026 6.81706 16.9026C4.82995 16.9026 3.83639 16.9026 3.08385 16.2673C2.9465 16.1513 2.78262 15.9803 2.67093 15.8364C2.059 15.0478 2.04033 14.1267 2.00299 12.2845C2.00103 12.1878 2 12.0928 2 12C2 11.9072 2.00103 11.8122 2.00299 11.7155Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M19.4894 5.5523C19.782 5.29229 20.2169 5.33445 20.4607 5.64646L19.9309 6.11724C20.4607 5.64646 20.4607 5.64646 20.4607 5.64646L20.4617 5.64781L20.4629 5.64933L20.4656 5.65286L20.4726 5.66195C20.4778 5.66891 20.4843 5.67767 20.492 5.68825C20.5073 5.7094 20.5273 5.73783 20.5513 5.77369C20.5994 5.8454 20.6634 5.94678 20.7378 6.07901C20.8866 6.34356 21.0769 6.73103 21.2642 7.25049C21.6396 8.29118 21.9998 9.85148 21.9998 12.0003C21.9998 14.1492 21.6396 15.7095 21.2642 16.7502C21.0769 17.2697 20.8866 17.6571 20.7378 17.9217C20.6634 18.0539 20.5994 18.1553 20.5513 18.227C20.5273 18.2629 20.5073 18.2913 20.492 18.3124C20.4843 18.323 20.4778 18.3318 20.4726 18.3387L20.4656 18.3478L20.4629 18.3514L20.4617 18.3529C20.4617 18.3529 20.4607 18.3542 19.9309 17.8834L20.4607 18.3542C20.2169 18.6662 19.782 18.7084 19.4894 18.4484C19.1982 18.1896 19.1576 17.7291 19.3976 17.4172C19.3976 17.4172 19.3992 17.4149 19.4008 17.4128C19.4056 17.4061 19.4153 17.3926 19.429 17.3721C19.4563 17.3312 19.5001 17.2626 19.555 17.165C19.6648 16.9699 19.8194 16.6588 19.9769 16.2222C20.2911 15.3509 20.6205 13.9696 20.6205 12.0003C20.6205 10.031 20.2911 8.64979 19.9769 7.77847C19.8194 7.34192 19.6648 7.03077 19.555 6.83571C19.5001 6.73813 19.4563 6.66945 19.429 6.62856C19.4153 6.60811 19.4056 6.5946 19.4008 6.58789C19.3992 6.58572 19.3976 6.58351 19.3976 6.58351",fill:"currentColor"}),l.jsx("path",{opacity:"0.7",fillRule:"evenodd",clipRule:"evenodd",d:"M17.7572 8.41592C18.0902 8.21868 18.51 8.34659 18.695 8.70163L18.0921 9.05876C18.695 8.70163 18.695 8.70163 18.695 8.70163L18.6957 8.70291L18.6964 8.70428L18.6979 8.70727L18.7014 8.71425L18.7103 8.73224C18.717 8.74604 18.7251 8.76345 18.7345 8.78454C18.7534 8.82672 18.7772 8.88359 18.8043 8.95571C18.8584 9.1 18.9252 9.30487 18.9901 9.57473C19.12 10.1149 19.2415 10.9118 19.2415 12.0003C19.2415 13.0888 19.12 13.8857 18.9901 14.4259C18.9252 14.6958 18.8584 14.9006 18.8043 15.0449C18.7772 15.117 18.7534 15.1739 18.7345 15.2161C18.7251 15.2372 18.717 15.2546 18.7103 15.2684L18.7014 15.2864L18.6979 15.2934L18.6964 15.2963L18.6957 15.2977C18.6957 15.2977 18.695 15.299 18.0921 14.9419L18.695 15.299C18.51 15.654 18.0902 15.782 17.7572 15.5847C17.4271 15.3891 17.3063 14.9474 17.4846 14.5938L17.4892 14.5838C17.4955 14.5696 17.5076 14.5415 17.5236 14.4987C17.5557 14.4132 17.6039 14.2687 17.654 14.0606C17.754 13.6448 17.8622 12.9709 17.8622 12.0003C17.8622 11.0297 17.754 10.3558 17.654 9.94003C17.6039 9.73189 17.5557 9.58745 17.5236 9.50194C17.5076 9.45915 17.4955 9.43099 17.4892 9.41687L17.4846 9.40684C17.3063 9.05328 17.4271 8.61149 17.7572 8.41592Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M20 6C20 6 21.5 7.8 21.5 12C21.5 16.2 20 18 20 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M18 9C18 9 18.5 9.9 18.5 12C18.5 14.1 18 15 18 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M1.95863 8.57679C2.24482 8.04563 2.79239 7.53042 3.33997 7.27707C3.9393 6.99979 4.62626 6.99979 6.00018 6.99979C6.51225 6.99979 6.76828 6.99979 7.01629 6.95791C7.26147 6.9165 7.50056 6.84478 7.72804 6.74438C7.95815 6.64283 8.1719 6.50189 8.59941 6.22002L8.81835 6.07566C11.3613 4.39898 12.6328 3.56063 13.7001 3.92487C13.9048 3.9947 14.1029 4.09551 14.2798 4.21984C15.2025 4.86829 15.2726 6.37699 15.4128 9.3944C15.4647 10.5117 15.5001 11.4679 15.5001 11.9998C15.5001 12.5317 15.4647 13.4879 15.4128 14.6052C15.2726 17.6226 15.2025 19.1313 14.2798 19.7797C14.1029 19.9041 13.9048 20.0049 13.7001 20.0747C12.6328 20.4389 11.3613 19.6006 8.81834 17.9239L8.59941 17.7796C8.1719 17.4977 7.95815 17.3567 7.72804 17.2552C7.50056 17.1548 7.26147 17.0831 7.01629 17.0417C6.76828 16.9998 6.51225 16.9998 6.00018 16.9998C4.62626 16.9998 3.9393 16.9998 3.33997 16.7225C2.79239 16.4692 2.24482 15.9539 1.95863 15.4228C1.6454 14.8414 1.60856 14.237 1.53488 13.0282C1.52396 12.849 1.51525 12.6722 1.50928 12.4998",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M1.53479 10.9714C1.60847 9.76255 1.64531 9.15814 1.95854 8.57679C2.24473 8.04563 2.7923 7.53042 3.33988 7.27707C3.93921 6.99979 4.62617 6.99979 6.00008 6.99979C6.51215 6.99979 6.76819 6.99979 7.0162 6.95791C7.26138 6.9165 7.50046 6.84478 7.72795 6.74438C7.95806 6.64283 8.17181 6.50189 8.59932 6.22002L8.81825 6.07566C11.3612 4.39898 12.6327 3.56063 13.7001 3.92487C13.9047 3.9947 14.1028 4.09551 14.2797 4.21984C15.2024 4.86829 15.2725 6.37699 15.4127 9.3944C15.4646 10.5117 15.5 11.4679 15.5 11.9998C15.5 12.5317 15.4646 13.4879 15.4127 14.6052C15.2725 17.6226 15.2024 19.1313 14.2797 19.7797C14.1028 19.9041 13.9047 20.0049 13.7001 20.0747C12.6327 20.4389 11.3612 19.6006 8.81825 17.9239L8.59932 17.7796C8.17181 17.4977 7.95806 17.3567 7.72795 17.2552C7.50046 17.1548 7.26138 17.0831 7.0162 17.0417C6.76819 16.9998 6.51215 16.9998 6.00008 16.9998C4.62617 16.9998 3.93921 16.9998 3.33988 16.7225C2.7923 16.4692 2.24473 15.9539 1.95854 15.4228C1.64531 14.8414 1.60847 14.237 1.53479 13.0282C1.51299 12.6706 1.5 12.3222 1.5 11.9998C1.5 11.6774 1.51299 11.329 1.53479 10.9714Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{opacity:"0.4",d:"M20 6C20 6 21.5 7.8 21.5 12C21.5 16.2 20 18 20 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{opacity:"0.7",d:"M18 9C18 9 18.5 9.9 18.5 12C18.5 14.1 18 15 18 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M1.53479 10.9714C1.60847 9.76255 1.64531 9.15814 1.95854 8.57679C2.24473 8.04563 2.7923 7.53042 3.33988 7.27707C3.93921 6.99979 4.62617 6.99979 6.00008 6.99979C6.51215 6.99979 6.76819 6.99979 7.0162 6.95791C7.26138 6.9165 7.50046 6.84478 7.72795 6.74438C7.95806 6.64283 8.17181 6.50189 8.59932 6.22002L8.81825 6.07566C11.3612 4.39898 12.6327 3.56063 13.7001 3.92487C13.9047 3.9947 14.1028 4.09551 14.2797 4.21984C15.2024 4.86829 15.2725 6.37699 15.4127 9.3944C15.4646 10.5117 15.5 11.4679 15.5 11.9998C15.5 12.5317 15.4646 13.4879 15.4127 14.6052C15.2725 17.6226 15.2024 19.1313 14.2797 19.7797C14.1028 19.9041 13.9047 20.0049 13.7001 20.0747C12.6327 20.4389 11.3612 19.6006 8.81825 17.9239L8.59932 17.7796C8.17181 17.4977 7.95806 17.3567 7.72795 17.2552C7.50046 17.1548 7.26138 17.0831 7.0162 17.0417C6.76819 16.9998 6.51215 16.9998 6.00008 16.9998C4.62617 16.9998 3.93921 16.9998 3.33988 16.7225C2.7923 16.4692 2.24473 15.9539 1.95854 15.4228C1.64531 14.8414 1.60847 14.237 1.53479 13.0282C1.51299 12.6706 1.5 12.3222 1.5 11.9998C1.5 11.6774 1.51299 11.329 1.53479 10.9714Z",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M20 6C20 6 21.5 7.8 21.5 12C21.5 16.2 20 18 20 18",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M18 9C18 9 18.5 9.9 18.5 12C18.5 14.1 18 15 18 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsx(l.Fragment,{children:l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1402 4.90978C11.426 5.25674 10.5209 5.85164 9.2311 6.70205L9.01216 6.84641C8.9955 6.8574 8.97905 6.86824 8.96283 6.87895C8.58263 7.12974 8.31931 7.30343 8.03077 7.43078C7.74641 7.55627 7.44756 7.64593 7.14108 7.69768C6.83009 7.7502 6.51464 7.75013 6.05918 7.75004C6.03974 7.75004 6.02004 7.75003 6.00008 7.75003C4.55641 7.75003 4.06911 7.76631 3.6548 7.958C3.25445 8.14323 2.82804 8.54443 2.6188 8.93278C2.40052 9.33789 2.36045 9.75309 2.2834 11.0173C2.26225 11.3642 2.25 11.6968 2.25 12C2.25 12.3033 2.26225 12.6358 2.2834 12.9828C2.36045 14.247 2.40052 14.6622 2.6188 15.0673C2.82804 15.4556 3.25445 15.8568 3.6548 16.0421C4.06911 16.2338 4.55641 16.25 6.00008 16.25C6.02004 16.25 6.03973 16.25 6.05917 16.25C6.51464 16.2499 6.83009 16.2499 7.14108 16.3024C7.44756 16.3541 7.74641 16.4438 8.03077 16.5693C8.31931 16.6966 8.58263 16.8703 8.96282 17.1211C8.97905 17.1318 8.99549 17.1427 9.01216 17.1537L9.2311 17.298C10.5209 18.1484 11.426 18.7433 12.1402 19.0903C12.8525 19.4363 13.2087 19.4502 13.4578 19.3651C13.5952 19.3183 13.7297 19.2498 13.8485 19.1664C14.0651 19.0141 14.2626 18.7195 14.4015 17.9482C14.541 17.1733 14.5924 16.1014 14.6635 14.5706C14.7156 13.451 14.75 12.5118 14.75 12C14.75 11.4883 14.7156 10.549 14.6635 9.42946C14.5924 7.89871 14.541 6.82677 14.4015 6.05188C14.2626 5.28052 14.0651 4.98595 13.8485 4.8337C13.7297 4.75023 13.5952 4.68181 13.4578 4.63492C13.2087 4.54989 12.8525 4.56376 12.1402 4.90978ZM11.4848 3.56055C12.3108 3.15928 13.1241 2.9361 13.9423 3.21531C14.2142 3.30809 14.4759 3.44128 14.7109 3.60646C15.417 4.10266 15.7159 4.88667 15.8778 5.78612C16.037 6.67048 16.0914 7.84243 16.1592 9.30232L16.1619 9.35983C16.2137 10.4748 16.25 11.448 16.25 12C16.25 12.552 16.2137 13.5253 16.1619 14.6402L16.1592 14.6977C16.0914 16.1576 16.037 17.3296 15.8778 18.2139C15.7159 19.1134 15.417 19.8974 14.7109 20.3936C14.4759 20.5588 14.2142 20.692 13.9423 20.7848C13.1241 21.064 12.3108 20.8408 11.4848 20.4395C10.6712 20.0443 9.68413 19.3934 8.45327 18.5819L8.18647 18.4059C7.73856 18.1106 7.58448 18.0119 7.42513 17.9416C7.25452 17.8663 7.0752 17.8125 6.89132 17.7814C6.71956 17.7524 6.5366 17.75 6.00008 17.75C5.94569 17.75 5.89203 17.7501 5.83907 17.7501C4.62215 17.7507 3.77659 17.7512 3.02496 17.4034C2.33016 17.082 1.66141 16.4527 1.29828 15.7788C0.905663 15.0501 0.859593 14.2881 0.794087 13.2045C0.791489 13.1615 0.788861 13.1181 0.786179 13.0741C0.763733 12.7058 0.75 12.3416 0.75 12C0.75 11.6585 0.763733 11.2943 0.786179 10.926C0.788861 10.882 0.791489 10.8385 0.794087 10.7955C0.859593 9.712 0.905663 8.94996 1.29828 8.22128C1.66141 7.54732 2.33016 6.9181 3.02496 6.59664C3.77659 6.24889 4.62215 6.24933 5.83906 6.24998C5.89203 6.25 5.94569 6.25003 6.00008 6.25003C6.5366 6.25003 6.71956 6.24762 6.89132 6.21862C7.0752 6.18757 7.25452 6.13377 7.42513 6.05848C7.58448 5.98815 7.73856 5.88945 8.18647 5.59411L8.45328 5.4182C9.68414 4.60662 10.6712 3.95576 11.4848 3.56055ZM19.5199 5.42408C19.8381 5.1589 20.311 5.2019 20.5762 5.52011L20 6.00024C20.5762 5.52011 20.5762 5.52011 20.5762 5.52011L20.5773 5.52148L20.5786 5.52303L20.5816 5.52664L20.5891 5.53591C20.5948 5.543 20.6018 5.55194 20.6102 5.56272C20.6269 5.5843 20.6486 5.6133 20.6748 5.64986C20.727 5.723 20.7966 5.8264 20.8775 5.96125C21.0394 6.23106 21.2462 6.62623 21.45 7.15601C21.8582 8.21738 22.25 9.80868 22.25 12.0002C22.25 14.1918 21.8582 15.7831 21.45 16.8445C21.2462 17.3743 21.0394 17.7694 20.8775 18.0392C20.7966 18.1741 20.727 18.2775 20.6748 18.3506C20.6486 18.3872 20.6269 18.4162 20.6102 18.4378C20.6052 18.4442 20.6007 18.45 20.5966 18.4551C20.5939 18.4586 20.5914 18.4617 20.5891 18.4646L20.5816 18.4739L20.5786 18.4775L20.5773 18.479C20.5773 18.479 20.5762 18.4804 20 18.0002L20.5762 18.4804C20.311 18.7986 19.8381 18.8416 19.5199 18.5764C19.2032 18.3125 19.1591 17.8429 19.42 17.5247M19.42 17.5247C19.42 17.5247 19.4218 17.5224 19.4235 17.5202C19.4288 17.5134 19.4393 17.4996 19.4542 17.4788C19.4839 17.4371 19.5315 17.367 19.5913 17.2675C19.7106 17.0686 19.8788 16.7512 20.05 16.306C20.3918 15.4174 20.75 14.0087 20.75 12.0002C20.75 9.99181 20.3918 8.58311 20.05 7.69448C19.8788 7.24926 19.7106 6.93192 19.5913 6.73299C19.5315 6.63347 19.4839 6.56343 19.4542 6.52172C19.4393 6.50086 19.4288 6.48709 19.4235 6.48024C19.4218 6.47803 19.42 6.47578 19.42 6.47578L19.4235 6.48024L19.422 6.47812L19.42 6.47578C19.1591 6.15763 19.2032 5.68797 19.5199 5.42408M17.6358 8.34463C17.9979 8.14347 18.4545 8.27392 18.6556 8.63601L18.0276 8.9849C18.6556 8.63602 18.6556 8.63601 18.6556 8.63601L18.6563 8.63732L18.6571 8.63872L18.6588 8.64176L18.6626 8.64888L18.6723 8.66723C18.6795 8.6813 18.6884 8.69906 18.6986 8.72057C18.7191 8.76359 18.7451 8.82159 18.7745 8.89514C18.8333 9.0423 18.9059 9.25124 18.9765 9.52646C19.1178 10.0774 19.25 10.8901 19.25 12.0002C19.25 13.1104 19.1178 13.9231 18.9765 14.474C18.9059 14.7492 18.8333 14.9582 18.7745 15.1053C18.7451 15.1789 18.7191 15.2369 18.6986 15.2799C18.6884 15.3014 18.6795 15.3192 18.6723 15.3333L18.6626 15.3516L18.6588 15.3587L18.6571 15.3618L18.6563 15.3632C18.6563 15.3632 18.6556 15.3645 18.0276 15.0156L18.6556 15.3645C18.4545 15.7266 17.9979 15.857 17.6358 15.6559C17.2768 15.4564 17.1455 15.0058 17.3393 14.6453L17.3443 14.635C17.3512 14.6206 17.3643 14.5919 17.3818 14.5483C17.4167 14.4611 17.4691 14.3137 17.5235 14.1015C17.6322 13.6774 17.75 12.9901 17.75 12.0002C17.75 11.0104 17.6322 10.3231 17.5235 9.89902C17.4691 9.68675 17.4167 9.53944 17.3818 9.45222C17.3643 9.40858 17.3512 9.37986 17.3443 9.36547L17.3393 9.35523C17.1455 8.99465 17.2768 8.54408 17.6358 8.34463Z",fill:"currentColor"})})]]),L_=new Map([["Bold",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0303 14.9697C12.3232 15.2626 12.3232 15.7374 12.0303 16.0303L10.0303 18.0303C9.73744 18.3232 9.26256 18.3232 8.96967 18.0303C8.67678 17.7374 8.67678 17.2626 8.96967 16.9697L10.9697 14.9697C11.2626 14.6768 11.7374 14.6768 12.0303 14.9697ZM16.5303 14.9697C16.8232 15.2626 16.8232 15.7374 16.5303 16.0303L14.5303 18.0303C14.2374 18.3232 13.7626 18.3232 13.4697 18.0303C13.1768 17.7374 13.1768 17.2626 13.4697 16.9697L15.4697 14.9697C15.7626 14.6768 16.2374 14.6768 16.5303 14.9697ZM8.03033 18.4697C8.32322 18.7626 8.32322 19.2374 8.03033 19.5303L6.03033 21.5303C5.73744 21.8232 5.26256 21.8232 4.96967 21.5303C4.67678 21.2374 4.67678 20.7626 4.96967 20.4697L6.96967 18.4697C7.26256 18.1768 7.73744 18.1768 8.03033 18.4697ZM17.5303 18.4697C17.8232 18.7626 17.8232 19.2374 17.5303 19.5303L15.5303 21.5303C15.2374 21.8232 14.7626 21.8232 14.4697 21.5303C14.1768 21.2374 14.1768 20.7626 14.4697 20.4697L16.4697 18.4697C16.7626 18.1768 17.2374 18.1768 17.5303 18.4697ZM12.5303 19.4697C12.8232 19.7626 12.8232 20.2374 12.5303 20.5303L10.5303 22.5303C10.2374 22.8232 9.76256 22.8232 9.46967 22.5303C9.17678 22.2374 9.17678 21.7626 9.46967 21.4697L11.4697 19.4697C11.7626 19.1768 12.2374 19.1768 12.5303 19.4697Z",fill:"currentColor"}),l.jsx("path",{d:"M19.1238 18.2554C19.0156 17.9463 18.838 17.6561 18.591 17.409C18.3514 17.1694 18.0712 16.9951 17.7725 16.8862C18.4648 16.0033 18.4043 14.7223 17.591 13.909C16.7123 13.0303 15.2877 13.0303 14.409 13.909L13.6075 14.7105C13.4982 14.4182 13.326 14.1441 13.091 13.909C12.2123 13.0303 10.7877 13.0303 9.90901 13.909L7.90901 15.909C7.6625 16.1555 7.48514 16.445 7.37695 16.7533C6.8428 16.7824 6.31704 17.001 5.90901 17.409L4.64108 18.6769C3.09035 18.0396 2 16.528 2 14.7647C2 12.4256 3.91878 10.5294 6.28571 10.5294C6.56983 10.5294 6.8475 10.5567 7.11616 10.6089C6.88706 9.9978 6.7619 9.33687 6.7619 8.64706C6.7619 5.52827 9.32028 3 12.4762 3C15.4159 3 17.8371 5.19371 18.1551 8.01498C20.393 8.78024 22 10.8811 22 13.3529C22 15.4509 20.8423 17.2817 19.1238 18.2554Z",fill:"currentColor"}),l.jsx("path",{d:"M12.0303 14.9697C12.3232 15.2626 12.3232 15.7374 12.0303 16.0303L10.0303 18.0303C9.91413 18.1465 9.7693 18.2166 9.61855 18.2406C9.3893 18.2771 9.14637 18.207 8.96967 18.0303C8.87927 17.9399 8.81677 17.8322 8.78218 17.7178C8.72864 17.5409 8.74191 17.348 8.82198 17.1789C8.85782 17.1032 8.90705 17.0323 8.96967 16.9697L10.9697 14.9697C11.2626 14.6768 11.7374 14.6768 12.0303 14.9697Z",fill:"currentColor"}),l.jsx("path",{d:"M15.4697 14.9697L13.4697 16.9697C13.1768 17.2626 13.1768 17.7374 13.4697 18.0303C13.7626 18.3232 14.2374 18.3232 14.5303 18.0303L16.5303 16.0303C16.8232 15.7374 16.8232 15.2626 16.5303 14.9697C16.2374 14.6768 15.7626 14.6768 15.4697 14.9697Z",fill:"currentColor"})]})],["BoldDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0303 14.9697C12.3232 15.2626 12.3232 15.7374 12.0303 16.0303L10.0303 18.0303C9.73744 18.3232 9.26256 18.3232 8.96967 18.0303C8.67678 17.7374 8.67678 17.2626 8.96967 16.9697L10.9697 14.9697C11.2626 14.6768 11.7374 14.6768 12.0303 14.9697ZM16.5303 14.9697C16.8232 15.2626 16.8232 15.7374 16.5303 16.0303L14.5303 18.0303C14.2374 18.3232 13.7626 18.3232 13.4697 18.0303C13.1768 17.7374 13.1768 17.2626 13.4697 16.9697L15.4697 14.9697C15.7626 14.6768 16.2374 14.6768 16.5303 14.9697ZM8.03033 18.4697C8.32322 18.7626 8.32322 19.2374 8.03033 19.5303L6.03033 21.5303C5.73744 21.8232 5.26256 21.8232 4.96967 21.5303C4.67678 21.2374 4.67678 20.7626 4.96967 20.4697L6.96967 18.4697C7.26256 18.1768 7.73744 18.1768 8.03033 18.4697ZM17.5303 18.4697C17.8232 18.7626 17.8232 19.2374 17.5303 19.5303L15.5303 21.5303C15.2374 21.8232 14.7626 21.8232 14.4697 21.5303C14.1768 21.2374 14.1768 20.7626 14.4697 20.4697L16.4697 18.4697C16.7626 18.1768 17.2374 18.1768 17.5303 18.4697ZM12.5303 19.4697C12.8232 19.7626 12.8232 20.2374 12.5303 20.5303L10.5303 22.5303C10.2374 22.8232 9.76256 22.8232 9.46967 22.5303C9.17678 22.2374 9.17678 21.7626 9.46967 21.4697L11.4697 19.4697C11.7626 19.1768 12.2374 19.1768 12.5303 19.4697Z",fill:"currentColor"}),l.jsx("path",{d:"M12.0303 14.9697C12.3232 15.2626 12.3232 15.7374 12.0303 16.0303L10.0303 18.0303C9.91413 18.1465 9.7693 18.2166 9.61855 18.2406C9.3893 18.2771 9.14637 18.207 8.96967 18.0303C8.87927 17.9399 8.81677 17.8322 8.78218 17.7178C8.72864 17.5409 8.74191 17.348 8.82198 17.1789C8.85782 17.1032 8.90705 17.0323 8.96967 16.9697L10.9697 14.9697C11.2626 14.6768 11.7374 14.6768 12.0303 14.9697Z",fill:"currentColor"}),l.jsx("path",{d:"M15.4697 14.9697L13.4697 16.9697C13.1768 17.2626 13.1768 17.7374 13.4697 18.0303C13.7626 18.3232 14.2374 18.3232 14.5303 18.0303L16.5303 16.0303C16.8232 15.7374 16.8232 15.2626 16.5303 14.9697C16.2374 14.6768 15.7626 14.6768 15.4697 14.9697Z",fill:"currentColor"}),l.jsx("path",{opacity:"0.5",d:"M16.2857 19C19.4416 19 22 16.4717 22 13.3529C22 10.8811 20.393 8.78024 18.1551 8.01498C17.8371 5.19371 15.4159 3 12.4762 3C9.32028 3 6.7619 5.52827 6.7619 8.64706C6.7619 9.33687 6.88706 9.9978 7.11616 10.6089C6.8475 10.5567 6.56983 10.5294 6.28571 10.5294C3.91878 10.5294 2 12.4256 2 14.7647C2 17.1038 3.91878 19 6.28571 19H16.2857Z",fill:"currentColor"})]})],["Broken",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M22 13.3529C22 15.2939 21.0091 17.0061 19.5 18.0226M14.381 8.02721C14.9767 7.81911 15.6178 7.70588 16.2857 7.70588C16.9404 7.70588 17.5693 7.81468 18.1551 8.01498M7.11616 10.6089C6.8475 10.5567 6.56983 10.5294 6.28571 10.5294C3.91878 10.5294 2 12.4256 2 14.7647C2 16.0746 2.60178 17.2457 3.54704 18.0226M7.11616 10.6089C6.88706 9.9978 6.7619 9.33687 6.7619 8.64706C6.7619 5.52827 9.32028 3 12.4762 3C15.4159 3 17.8371 5.19371 18.1551 8.01498M7.11616 10.6089C7.68059 10.7184 8.20528 10.9374 8.66667 11.2426M18.1551 8.01498C18.8381 8.24853 19.4623 8.60648 20 9.06141",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M17 19L15 21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M16 15.5L14 17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M12 20L10 22",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M11.5 15.5L9.5 17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M7.5 19L5.5 21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["LineDuotone",l.jsxs(l.Fragment,{children:[l.jsx("path",{opacity:"0.5",d:"M14.381 8.02721C14.9767 7.81911 15.6178 7.70588 16.2857 7.70588C16.9404 7.70588 17.5693 7.81468 18.1551 8.01498M7.11616 10.6089C6.8475 10.5567 6.56983 10.5294 6.28571 10.5294C3.91878 10.5294 2 12.4256 2 14.7647C2 16.0746 2.60178 17.2457 3.54704 18.0226M7.11616 10.6089C6.88706 9.9978 6.7619 9.33687 6.7619 8.64706C6.7619 5.52827 9.32028 3 12.4762 3C15.4159 3 17.8371 5.19371 18.1551 8.01498M7.11616 10.6089C7.68059 10.7184 8.20528 10.9374 8.66667 11.2426M18.1551 8.01498C20.393 8.78024 22 10.8811 22 13.3529C22 15.2939 21.0091 17.0061 19.5 18.0226",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M17 19L15 21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M16 15.5L14 17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M12 20L10 22",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M11.5 15.5L9.5 17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M7.5 19L5.5 21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Linear",l.jsxs(l.Fragment,{children:[l.jsx("path",{d:"M14.381 8.02721C14.9767 7.81911 15.6178 7.70588 16.2857 7.70588C16.9404 7.70588 17.5693 7.81468 18.1551 8.01498M7.11616 10.6089C6.8475 10.5567 6.56983 10.5294 6.28571 10.5294C3.91878 10.5294 2 12.4256 2 14.7647C2 16.0746 2.60178 17.2457 3.54704 18.0226M7.11616 10.6089C6.88706 9.9978 6.7619 9.33687 6.7619 8.64706C6.7619 5.52827 9.32028 3 12.4762 3C15.4159 3 17.8371 5.19371 18.1551 8.01498M7.11616 10.6089C7.68059 10.7184 8.20528 10.9374 8.66667 11.2426M18.1551 8.01498C20.393 8.78024 22 10.8811 22 13.3529C22 15.2939 21.0091 17.0061 19.5 18.0226",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M17 19L15 21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M16 15.5L14 17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M12 20L10 22",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M11.5 15.5L9.5 17.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),l.jsx("path",{d:"M7.5 19L5.5 21",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})],["Outline",l.jsxs(l.Fragment,{children:[l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0303 14.9697C12.3232 15.2626 12.3232 15.7374 12.0303 16.0303L10.0303 18.0303C9.73744 18.3232 9.26256 18.3232 8.96967 18.0303C8.67678 17.7374 8.67678 17.2626 8.96967 16.9697L10.9697 14.9697C11.2626 14.6768 11.7374 14.6768 12.0303 14.9697ZM16.5303 14.9697C16.8232 15.2626 16.8232 15.7374 16.5303 16.0303L14.5303 18.0303C14.2374 18.3232 13.7626 18.3232 13.4697 18.0303C13.1768 17.7374 13.1768 17.2626 13.4697 16.9697L15.4697 14.9697C15.7626 14.6768 16.2374 14.6768 16.5303 14.9697ZM8.03033 18.4697C8.32322 18.7626 8.32322 19.2374 8.03033 19.5303L6.03033 21.5303C5.73744 21.8232 5.26256 21.8232 4.96967 21.5303C4.67678 21.2374 4.67678 20.7626 4.96967 20.4697L6.96967 18.4697C7.26256 18.1768 7.73744 18.1768 8.03033 18.4697ZM17.5303 18.4697C17.8232 18.7626 17.8232 19.2374 17.5303 19.5303L15.5303 21.5303C15.2374 21.8232 14.7626 21.8232 14.4697 21.5303C14.1768 21.2374 14.1768 20.7626 14.4697 20.4697L16.4697 18.4697C16.7626 18.1768 17.2374 18.1768 17.5303 18.4697ZM12.5303 19.4697C12.8232 19.7626 12.8232 20.2374 12.5303 20.5303L10.5303 22.5303C10.2374 22.8232 9.76256 22.8232 9.46967 22.5303C9.17678 22.2374 9.17678 21.7626 9.46967 21.4697L11.4697 19.4697C11.7626 19.1768 12.2374 19.1768 12.5303 19.4697Z",fill:"currentColor"}),l.jsx("path",{d:"M12.4762 3.75C9.7261 3.75 7.5119 5.95083 7.5119 8.64706C7.5119 9.10922 7.5766 9.55551 7.69729 9.97813C8.19449 10.1216 8.65991 10.3389 9.08045 10.6171C9.42592 10.8456 9.52072 11.3109 9.29219 11.6564C9.06366 12.0019 8.59835 12.0967 8.25288 11.8681C7.87207 11.6162 7.43917 11.4355 6.9733 11.3451C6.75147 11.3021 6.52165 11.2794 6.28571 11.2794C4.3246 11.2794 2.75 12.8482 2.75 14.7647C2.75 15.839 3.24244 16.8014 4.02325 17.4432C4.34325 17.7062 4.38946 18.1788 4.12646 18.4988C3.86345 18.8188 3.39083 18.865 3.07083 18.602C1.96112 17.69 1.25 16.3103 1.25 14.7647C1.25 12.0605 3.41987 9.87207 6.11351 9.78228C6.04673 9.41355 6.0119 9.03413 6.0119 8.64706C6.0119 5.10572 8.91446 2.25 12.4762 2.25C15.6343 2.25 18.2724 4.49369 18.8314 7.47127C21.1313 8.44751 22.75 10.7093 22.75 13.3529C22.75 15.5563 21.6241 17.4962 19.919 18.6446C19.5754 18.876 19.1093 18.7851 18.8779 18.4416C18.6465 18.098 18.7375 17.6319 19.081 17.4005C20.3941 16.5161 21.25 15.0315 21.25 13.3529C21.25 11.2162 19.8607 9.39087 17.9124 8.72463C17.4038 8.55072 16.8568 8.45588 16.2857 8.45588C15.7031 8.45588 15.1455 8.55458 14.6283 8.73526C14.2372 8.87185 13.8095 8.66557 13.6729 8.27453C13.5363 7.88348 13.7426 7.45575 14.1336 7.31916C14.8079 7.08364 15.5326 6.95588 16.2857 6.95588C16.5812 6.95588 16.8723 6.97555 17.1577 7.01367C16.477 5.11631 14.6422 3.75 12.4762 3.75Z",fill:"currentColor"})]})]]),M_={color:"currentColor",size:"1em",weight:"Linear",mirrored:!1},E_=g.createContext({value:M_,setValue:()=>{},setSvgProps:()=>{}}),k_=()=>g.useContext(E_);var j_=Object.defineProperty,A_=Object.defineProperties,O_=Object.getOwnPropertyDescriptors,fc=Object.getOwnPropertySymbols,Xb=Object.prototype.hasOwnProperty,Qb=Object.prototype.propertyIsEnumerable,bC=(e,t,n)=>t in e?j_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SC=(e,t)=>{for(var n in t||(t={}))Xb.call(t,n)&&bC(e,n,t[n]);if(fc)for(var n of fc(t))Qb.call(t,n)&&bC(e,n,t[n]);return e},B_=(e,t)=>A_(e,O_(t)),R_=(e,t)=>{var n={};for(var r in e)Xb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fc)for(var r of fc(e))t.indexOf(r)<0&&Qb.call(e,r)&&(n[r]=e[r]);return n};const W1=g.forwardRef((e,t)=>{const n=e,{alt:r,color:o,size:s,weight:c,mirrored:d,children:h,weights:p}=n,m=R_(n,["alt","color","size","weight","mirrored","children","weights"]),{value:{color:v="currentColor",size:y,weight:b="Linear",mirrored:D=!1},svgProps:S}=k_();return l.jsxs("svg",B_(SC(SC({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s??y,height:s??y,color:o??v,fill:"none",viewBox:"0 0 24 24",transform:d||D?"scale(-1, 1)":void 0},S),m),{children:[!!r&&l.jsx("title",{children:r}),h,p.get(c??b)]}))});W1.displayName="IconBase";var T_=Object.defineProperty,N_=Object.defineProperties,F_=Object.getOwnPropertyDescriptors,DC=Object.getOwnPropertySymbols,P_=Object.prototype.hasOwnProperty,__=Object.prototype.propertyIsEnumerable,LC=(e,t,n)=>t in e?T_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I_=(e,t)=>{for(var n in t||(t={}))P_.call(t,n)&&LC(e,n,t[n]);if(DC)for(var n of DC(t))__.call(t,n)&&LC(e,n,t[n]);return e},z_=(e,t)=>N_(e,F_(t));const Jb=g.forwardRef((e,t)=>l.jsx(W1,z_(I_({ref:t},e),{weights:a_})));Jb.displayName="Rocket2";var H_=Object.defineProperty,Z_=Object.defineProperties,V_=Object.getOwnPropertyDescriptors,MC=Object.getOwnPropertySymbols,W_=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable,EC=(e,t,n)=>t in e?H_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U_=(e,t)=>{for(var n in t||(t={}))W_.call(t,n)&&EC(e,n,t[n]);if(MC)for(var n of MC(t))$_.call(t,n)&&EC(e,n,t[n]);return e},q_=(e,t)=>Z_(e,V_(t));const eS=g.forwardRef((e,t)=>l.jsx(W1,q_(U_({ref:t},e),{weights:o_})));eS.displayName="HeadphonesRoundSound";var Y_=Object.defineProperty,G_=Object.defineProperties,K_=Object.getOwnPropertyDescriptors,kC=Object.getOwnPropertySymbols,X_=Object.prototype.hasOwnProperty,Q_=Object.prototype.propertyIsEnumerable,jC=(e,t,n)=>t in e?Y_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J_=(e,t)=>{for(var n in t||(t={}))X_.call(t,n)&&jC(e,n,t[n]);if(kC)for(var n of kC(t))Q_.call(t,n)&&jC(e,n,t[n]);return e},eI=(e,t)=>G_(e,K_(t));const tS=g.forwardRef((e,t)=>l.jsx(W1,eI(J_({ref:t},e),{weights:i_})));tS.displayName="Radio";var tI=Object.defineProperty,nI=Object.defineProperties,rI=Object.getOwnPropertyDescriptors,AC=Object.getOwnPropertySymbols,aI=Object.prototype.hasOwnProperty,oI=Object.prototype.propertyIsEnumerable,OC=(e,t,n)=>t in e?tI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iI=(e,t)=>{for(var n in t||(t={}))aI.call(t,n)&&OC(e,n,t[n]);if(AC)for(var n of AC(t))oI.call(t,n)&&OC(e,n,t[n]);return e},sI=(e,t)=>nI(e,rI(t));const nS=g.forwardRef((e,t)=>l.jsx(W1,sI(iI({ref:t},e),{weights:s_})));nS.displayName="TeaCup";var lI=Object.defineProperty,uI=Object.defineProperties,cI=Object.getOwnPropertyDescriptors,BC=Object.getOwnPropertySymbols,fI=Object.prototype.hasOwnProperty,dI=Object.prototype.propertyIsEnumerable,RC=(e,t,n)=>t in e?lI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hI=(e,t)=>{for(var n in t||(t={}))fI.call(t,n)&&RC(e,n,t[n]);if(BC)for(var n of BC(t))dI.call(t,n)&&RC(e,n,t[n]);return e},pI=(e,t)=>uI(e,cI(t));const rS=g.forwardRef((e,t)=>l.jsx(W1,pI(hI({ref:t},e),{weights:l_})));rS.displayName="SidebarMinimalistic";var CI=Object.defineProperty,gI=Object.defineProperties,mI=Object.getOwnPropertyDescriptors,TC=Object.getOwnPropertySymbols,vI=Object.prototype.hasOwnProperty,yI=Object.prototype.propertyIsEnumerable,NC=(e,t,n)=>t in e?CI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xI=(e,t)=>{for(var n in t||(t={}))vI.call(t,n)&&NC(e,n,t[n]);if(TC)for(var n of TC(t))yI.call(t,n)&&NC(e,n,t[n]);return e},wI=(e,t)=>gI(e,mI(t));const aS=g.forwardRef((e,t)=>l.jsx(W1,wI(xI({ref:t},e),{weights:u_})));aS.displayName="MapArrowUp";var bI=Object.defineProperty,SI=Object.defineProperties,DI=Object.getOwnPropertyDescriptors,FC=Object.getOwnPropertySymbols,LI=Object.prototype.hasOwnProperty,MI=Object.prototype.propertyIsEnumerable,PC=(e,t,n)=>t in e?bI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EI=(e,t)=>{for(var n in t||(t={}))LI.call(t,n)&&PC(e,n,t[n]);if(FC)for(var n of FC(t))MI.call(t,n)&&PC(e,n,t[n]);return e},kI=(e,t)=>SI(e,DI(t));const oS=g.forwardRef((e,t)=>l.jsx(W1,kI(EI({ref:t},e),{weights:c_})));oS.displayName="Pen";var jI=Object.defineProperty,AI=Object.defineProperties,OI=Object.getOwnPropertyDescriptors,_C=Object.getOwnPropertySymbols,BI=Object.prototype.hasOwnProperty,RI=Object.prototype.propertyIsEnumerable,IC=(e,t,n)=>t in e?jI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,TI=(e,t)=>{for(var n in t||(t={}))BI.call(t,n)&&IC(e,n,t[n]);if(_C)for(var n of _C(t))RI.call(t,n)&&IC(e,n,t[n]);return e},NI=(e,t)=>AI(e,OI(t));const iS=g.forwardRef((e,t)=>l.jsx(W1,NI(TI({ref:t},e),{weights:f_})));iS.displayName="Text";var FI=Object.defineProperty,PI=Object.defineProperties,_I=Object.getOwnPropertyDescriptors,zC=Object.getOwnPropertySymbols,II=Object.prototype.hasOwnProperty,zI=Object.prototype.propertyIsEnumerable,HC=(e,t,n)=>t in e?FI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HI=(e,t)=>{for(var n in t||(t={}))II.call(t,n)&&HC(e,n,t[n]);if(zC)for(var n of zC(t))zI.call(t,n)&&HC(e,n,t[n]);return e},ZI=(e,t)=>PI(e,_I(t));const sS=g.forwardRef((e,t)=>l.jsx(W1,ZI(HI({ref:t},e),{weights:d_})));sS.displayName="AlarmPause";var VI=Object.defineProperty,WI=Object.defineProperties,$I=Object.getOwnPropertyDescriptors,ZC=Object.getOwnPropertySymbols,UI=Object.prototype.hasOwnProperty,qI=Object.prototype.propertyIsEnumerable,VC=(e,t,n)=>t in e?VI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,YI=(e,t)=>{for(var n in t||(t={}))UI.call(t,n)&&VC(e,n,t[n]);if(ZC)for(var n of ZC(t))qI.call(t,n)&&VC(e,n,t[n]);return e},GI=(e,t)=>WI(e,$I(t));const lS=g.forwardRef((e,t)=>l.jsx(W1,GI(YI({ref:t},e),{weights:h_})));lS.displayName="AlarmPlay";var KI=Object.defineProperty,XI=Object.defineProperties,QI=Object.getOwnPropertyDescriptors,WC=Object.getOwnPropertySymbols,JI=Object.prototype.hasOwnProperty,ez=Object.prototype.propertyIsEnumerable,$C=(e,t,n)=>t in e?KI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tz=(e,t)=>{for(var n in t||(t={}))JI.call(t,n)&&$C(e,n,t[n]);if(WC)for(var n of WC(t))ez.call(t,n)&&$C(e,n,t[n]);return e},nz=(e,t)=>XI(e,QI(t));const uS=g.forwardRef((e,t)=>l.jsx(W1,nz(tz({ref:t},e),{weights:p_})));uS.displayName="PaletteRound";var rz=Object.defineProperty,az=Object.defineProperties,oz=Object.getOwnPropertyDescriptors,UC=Object.getOwnPropertySymbols,iz=Object.prototype.hasOwnProperty,sz=Object.prototype.propertyIsEnumerable,qC=(e,t,n)=>t in e?rz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lz=(e,t)=>{for(var n in t||(t={}))iz.call(t,n)&&qC(e,n,t[n]);if(UC)for(var n of UC(t))sz.call(t,n)&&qC(e,n,t[n]);return e},uz=(e,t)=>az(e,oz(t));const cS=g.forwardRef((e,t)=>l.jsx(W1,uz(lz({ref:t},e),{weights:C_})));cS.displayName="Bolt";var cz=Object.defineProperty,fz=Object.defineProperties,dz=Object.getOwnPropertyDescriptors,YC=Object.getOwnPropertySymbols,hz=Object.prototype.hasOwnProperty,pz=Object.prototype.propertyIsEnumerable,GC=(e,t,n)=>t in e?cz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cz=(e,t)=>{for(var n in t||(t={}))hz.call(t,n)&&GC(e,n,t[n]);if(YC)for(var n of YC(t))pz.call(t,n)&&GC(e,n,t[n]);return e},gz=(e,t)=>fz(e,dz(t));const fS=g.forwardRef((e,t)=>l.jsx(W1,gz(Cz({ref:t},e),{weights:g_})));fS.displayName="MusicNotes";var mz=Object.defineProperty,vz=Object.defineProperties,yz=Object.getOwnPropertyDescriptors,KC=Object.getOwnPropertySymbols,xz=Object.prototype.hasOwnProperty,wz=Object.prototype.propertyIsEnumerable,XC=(e,t,n)=>t in e?mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bz=(e,t)=>{for(var n in t||(t={}))xz.call(t,n)&&XC(e,n,t[n]);if(KC)for(var n of KC(t))wz.call(t,n)&&XC(e,n,t[n]);return e},Sz=(e,t)=>vz(e,yz(t));const s6=g.forwardRef((e,t)=>l.jsx(W1,Sz(bz({ref:t},e),{weights:m_})));s6.displayName="Pause";var Dz=Object.defineProperty,Lz=Object.defineProperties,Mz=Object.getOwnPropertyDescriptors,QC=Object.getOwnPropertySymbols,Ez=Object.prototype.hasOwnProperty,kz=Object.prototype.propertyIsEnumerable,JC=(e,t,n)=>t in e?Dz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jz=(e,t)=>{for(var n in t||(t={}))Ez.call(t,n)&&JC(e,n,t[n]);if(QC)for(var n of QC(t))kz.call(t,n)&&JC(e,n,t[n]);return e},Az=(e,t)=>Lz(e,Mz(t));const l6=g.forwardRef((e,t)=>l.jsx(W1,Az(jz({ref:t},e),{weights:v_})));l6.displayName="Play";var Oz=Object.defineProperty,Bz=Object.defineProperties,Rz=Object.getOwnPropertyDescriptors,eg=Object.getOwnPropertySymbols,Tz=Object.prototype.hasOwnProperty,Nz=Object.prototype.propertyIsEnumerable,tg=(e,t,n)=>t in e?Oz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fz=(e,t)=>{for(var n in t||(t={}))Tz.call(t,n)&&tg(e,n,t[n]);if(eg)for(var n of eg(t))Nz.call(t,n)&&tg(e,n,t[n]);return e},Pz=(e,t)=>Bz(e,Rz(t));const dS=g.forwardRef((e,t)=>l.jsx(W1,Pz(Fz({ref:t},e),{weights:y_})));dS.displayName="SkipNext";var _z=Object.defineProperty,Iz=Object.defineProperties,zz=Object.getOwnPropertyDescriptors,ng=Object.getOwnPropertySymbols,Hz=Object.prototype.hasOwnProperty,Zz=Object.prototype.propertyIsEnumerable,rg=(e,t,n)=>t in e?_z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vz=(e,t)=>{for(var n in t||(t={}))Hz.call(t,n)&&rg(e,n,t[n]);if(ng)for(var n of ng(t))Zz.call(t,n)&&rg(e,n,t[n]);return e},Wz=(e,t)=>Iz(e,zz(t));const hS=g.forwardRef((e,t)=>l.jsx(W1,Wz(Vz({ref:t},e),{weights:x_})));hS.displayName="SkipPrevious";var $z=Object.defineProperty,Uz=Object.defineProperties,qz=Object.getOwnPropertyDescriptors,ag=Object.getOwnPropertySymbols,Yz=Object.prototype.hasOwnProperty,Gz=Object.prototype.propertyIsEnumerable,og=(e,t,n)=>t in e?$z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kz=(e,t)=>{for(var n in t||(t={}))Yz.call(t,n)&&og(e,n,t[n]);if(ag)for(var n of ag(t))Gz.call(t,n)&&og(e,n,t[n]);return e},Xz=(e,t)=>Uz(e,qz(t));const pS=g.forwardRef((e,t)=>l.jsx(W1,Xz(Kz({ref:t},e),{weights:w_})));pS.displayName="Soundwave";var Qz=Object.defineProperty,Jz=Object.defineProperties,eH=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertySymbols,tH=Object.prototype.hasOwnProperty,nH=Object.prototype.propertyIsEnumerable,sg=(e,t,n)=>t in e?Qz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rH=(e,t)=>{for(var n in t||(t={}))tH.call(t,n)&&sg(e,n,t[n]);if(ig)for(var n of ig(t))nH.call(t,n)&&sg(e,n,t[n]);return e},aH=(e,t)=>Jz(e,eH(t));const CS=g.forwardRef((e,t)=>l.jsx(W1,aH(rH({ref:t},e),{weights:b_})));CS.displayName="Stop";var oH=Object.defineProperty,iH=Object.defineProperties,sH=Object.getOwnPropertyDescriptors,lg=Object.getOwnPropertySymbols,lH=Object.prototype.hasOwnProperty,uH=Object.prototype.propertyIsEnumerable,ug=(e,t,n)=>t in e?oH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cH=(e,t)=>{for(var n in t||(t={}))lH.call(t,n)&&ug(e,n,t[n]);if(lg)for(var n of lg(t))uH.call(t,n)&&ug(e,n,t[n]);return e},fH=(e,t)=>iH(e,sH(t));const gS=g.forwardRef((e,t)=>l.jsx(W1,fH(cH({ref:t},e),{weights:S_})));gS.displayName="VolumeCross";var dH=Object.defineProperty,hH=Object.defineProperties,pH=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,CH=Object.prototype.hasOwnProperty,gH=Object.prototype.propertyIsEnumerable,fg=(e,t,n)=>t in e?dH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mH=(e,t)=>{for(var n in t||(t={}))CH.call(t,n)&&fg(e,n,t[n]);if(cg)for(var n of cg(t))gH.call(t,n)&&fg(e,n,t[n]);return e},vH=(e,t)=>hH(e,pH(t));const mS=g.forwardRef((e,t)=>l.jsx(W1,vH(mH({ref:t},e),{weights:D_})));mS.displayName="VolumeLoud";var yH=Object.defineProperty,xH=Object.defineProperties,wH=Object.getOwnPropertyDescriptors,dg=Object.getOwnPropertySymbols,bH=Object.prototype.hasOwnProperty,SH=Object.prototype.propertyIsEnumerable,hg=(e,t,n)=>t in e?yH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DH=(e,t)=>{for(var n in t||(t={}))bH.call(t,n)&&hg(e,n,t[n]);if(dg)for(var n of dg(t))SH.call(t,n)&&hg(e,n,t[n]);return e},LH=(e,t)=>xH(e,wH(t));const vS=g.forwardRef((e,t)=>l.jsx(W1,LH(DH({ref:t},e),{weights:L_})));vS.displayName="CloudRain";function MH({messages:e,isOpen:t,onOpenChange:n,currentTheme:r,setTheme:o}){return l.jsxs(Wl,{open:t,onOpenChange:n,children:[l.jsx(TP,{asChild:!0,children:l.jsx(l.Fragment,{})}),l.jsxs($l,{className:"size-lg",children:[l.jsx(Ul,{children:l.jsxs(ql,{className:"flex-text",children:[l.jsx(uS,{weight:"BoldDuotone"})," ",e.menu.themes]})}),["light","dark"].map(s=>l.jsxs("div",{children:[l.jsxs("h1",{children:[s.charAt(0).toUpperCase()+s.slice(1)," themes"]}),l.jsx("div",{className:"theme-entries",children:Object.entries(pF).map(([c,d])=>{const h=c+"-"+s;return l.jsxs("div",{className:"theme-entry-container","data-theme":h,children:[l.jsxs("div",{className:"theme-entry "+(r===h?"selected":""),style:{backgroundColor:o6[c][s].drawDefaults.canvas},onClick:()=>{o(h)},children:[l.jsxs("svg",{height:"2vh",className:"drawo-logopreview",viewBox:"0 0 500 361",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M97.4727 185.494L98.1824 196.042C98.2021 196.336 98.3215 196.615 98.5206 196.832C99.1163 197.481 100.172 197.359 100.604 196.591L104.463 189.742C104.647 189.416 104.857 189.105 105.091 188.812L124.535 164.445L163.624 120.469L178.566 105.908C181.707 102.847 185.198 100.167 188.966 97.9241L190.02 97.297C192.546 95.7937 195.216 94.5492 197.992 93.5825C202.61 91.9739 207.466 91.1524 212.356 91.1524H216.119L219.852 91.6647C225.803 92.4816 231.488 94.6537 236.468 98.0137C238.35 99.2838 240.119 100.715 241.754 102.291L242.13 102.654C247.108 107.451 250.92 113.325 253.275 119.824L255.96 127.235C258.371 134.552 259.788 142.16 260.173 149.854L260.345 153.294L262.062 165.924C262.086 166.106 262.145 166.281 262.234 166.441C262.756 167.381 264.076 167.463 264.711 166.595L272.874 155.424L315.221 97.4168L340.779 61.4596L353.156 40.9819C354.087 39.441 355.245 38.0492 356.59 36.8531L358.652 35.0208C360.382 33.4826 361.533 31.3981 361.914 29.1143C362.023 28.4619 362.195 27.8218 362.429 27.203L363.194 25.1745C364.116 22.7307 365.352 20.417 366.87 18.2915C368.264 16.3402 369.885 14.5622 371.7 12.9949L375.25 9.92907C378.38 7.22611 382.025 5.18496 385.965 3.9287C387.743 3.36159 389.57 2.95828 391.422 2.72381L393.095 2.51207C396.706 2.05495 400.362 2.08788 403.964 2.60997C406.105 2.92032 408.218 3.40217 410.282 4.05087L411.152 4.32435C414.335 5.32467 417.357 6.77719 420.127 8.63736L420.412 8.82904C423.02 10.5808 425.36 12.7019 427.359 15.1259C429.266 17.4387 430.844 20.0044 432.047 22.7501L432.665 24.1614C434.291 27.8715 435.313 31.8176 435.694 35.8504L435.802 36.9941C436.179 40.9909 435.8 45.0229 434.685 48.8795C433.81 51.9045 432.493 54.7836 430.777 57.4238L428.479 60.9591C421.995 68.5241 416.576 76.941 412.374 85.9754L411.19 88.522L397.283 116.962L384.128 142.52L375.609 160.938L355.062 197.271L335.893 229.97L326.246 242.875L325.049 244.228C315.011 255.578 303.918 265.948 291.917 275.199L283.523 280.711L281.45 281.918C277.252 284.361 272.766 286.272 268.096 287.607L267.689 287.723C262.734 289.139 257.605 289.857 252.452 289.857L245.051 289.268C242.639 289.077 240.244 288.7 237.889 288.142C233.916 287.201 230.082 285.751 226.481 283.827L226.31 283.736C223.947 282.473 221.691 281.019 219.567 279.387L214.114 275.199L209.879 270.963C207.446 268.53 205.246 265.875 203.308 263.032C201.495 260.374 199.918 257.562 198.596 254.628L193.693 243.752L189.882 231.091C189.834 230.931 189.747 230.786 189.629 230.667C189.154 230.192 188.356 230.304 188.03 230.891L171.893 259.914L158.613 281.839L144.706 303.263L139.193 311.281L130.924 320.302L122.405 328.696L119.92 330.598C113.426 335.568 106.244 339.57 98.6004 342.477C91.946 344.224 85.0948 345.108 78.215 345.108H75.5477L70.4907 344.673C66.1148 344.297 61.8109 343.324 57.6986 341.782C54.4893 340.579 51.4175 339.036 48.5354 337.181L46.8387 336.089C43.6011 334.005 40.5721 331.613 37.7937 328.948C34.4095 325.701 31.4185 322.067 28.8823 318.122L27.7015 316.285C25.026 312.123 22.7504 307.717 20.9055 303.126L18.2918 296.623C13.788 284.362 10.2229 271.777 7.62738 258.976L6.01377 251.018L2.1299 224.959L0.877018 210.426L0 182.111L0.877018 166.074L3.63335 150.915L4.04047 149.092C5.51648 142.485 7.86538 136.104 11.0253 130.117L12.5537 127.843C14.9445 124.286 17.8771 121.125 21.2453 118.475L21.3289 118.409C22.9767 117.112 24.7245 115.948 26.556 114.927C29.8006 113.119 33.2827 111.774 36.9006 110.933L37.3853 110.82C40.5989 110.073 43.8875 109.696 47.1869 109.696H48.4125C53.1843 109.696 57.918 110.544 62.3926 112.201L67.1788 114.744C69.3282 115.886 71.359 117.238 73.2411 118.782C75.5222 120.652 77.5699 122.791 79.3399 125.151L80.4334 126.608C82.1846 128.943 83.7355 131.422 85.0695 134.018L85.1578 134.19C86.8484 137.48 88.1974 140.934 89.1835 144.499L90.9579 150.915L93.9648 165.072L95.3429 174.218L97.4727 185.494Z",fill:"var(--logoduotone-firstcolor)"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M398.287 263.487C420.774 251.477 432.017 245.472 433.905 237.606C434.793 233.904 434.485 230.017 433.025 226.501C429.922 219.031 417.903 214.882 393.866 206.584L366.132 197.01C336.381 186.739 321.506 181.604 313.555 189.4C305.605 197.196 310.447 212.17 320.131 242.116L329.408 270.8C337.139 294.709 341.005 306.663 348.176 309.964C351.915 311.686 356.131 312.074 360.122 311.063C367.774 309.125 373.756 298.077 385.719 275.979C387.529 272.635 388.435 270.963 389.643 269.538C390.304 268.758 391.029 268.037 391.812 267.381C393.245 266.18 394.926 265.283 398.287 263.487Z",fill:"var(--logoduotone-secondcolor)"}),l.jsx("path",{d:"M662.494 353.246C656.101 353.246 650.918 348.063 650.918 341.67V295.243C650.918 288.85 656.101 283.667 662.494 283.667H753.145C771.7 283.667 787.221 279.742 799.71 271.892C812.198 264.042 821.475 252.268 827.541 236.568C833.964 220.868 837.175 201.243 837.175 177.693C837.175 158.782 835.213 142.547 831.288 128.988C827.363 115.429 821.475 104.368 813.625 95.8046C806.132 86.8842 796.32 80.2832 784.188 76.0014C772.413 71.7196 758.498 69.5787 742.441 69.5787H662.494C656.101 69.5787 650.918 64.3959 650.918 58.0026V11.5761C650.918 5.18281 656.101 0 662.494 0H739.23C783.118 0 818.977 6.95787 846.809 20.8736C874.64 34.7894 894.979 54.771 907.824 80.8184C920.669 106.509 927.092 137.373 927.092 173.412C927.092 201.243 923.702 225.328 916.923 245.666C910.5 266.005 901.58 283.132 890.162 297.048C878.744 310.607 865.542 321.668 850.556 330.231C835.926 338.438 820.405 344.326 803.991 347.894C787.935 351.462 771.878 353.246 755.821 353.246H662.494ZM622.353 353.246C615.959 353.246 610.776 348.063 610.776 341.67V11.5761C610.776 5.18281 615.959 0 622.353 0H685.371C691.764 0 696.947 5.1828 696.947 11.5761V341.67C696.947 348.063 691.764 353.246 685.371 353.246H622.353Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M958.513 353.246C952.12 353.246 946.937 348.063 946.937 341.67V82.2253C946.937 75.832 952.12 70.6492 958.513 70.6492H1006.2C1012.52 70.6492 1017.67 75.7145 1017.78 82.0313L1019.1 160.88C1019.15 163.973 1021.67 166.454 1024.77 166.454C1027.68 166.454 1030.11 164.244 1030.44 161.351C1033.05 138.765 1037.5 120.663 1043.81 107.044C1050.95 92.058 1060.94 81.1752 1073.78 74.3957C1086.99 67.6163 1103.22 64.2265 1122.49 64.2265C1125.34 64.2265 1128.56 64.4049 1132.12 64.7617C1132.8 64.7617 1133.49 64.7745 1134.2 64.8C1140.07 65.0097 1144.28 70.2495 1144.08 76.113L1141.85 139.881C1141.56 148.306 1132.41 153.819 1124.05 152.722C1123.53 152.654 1123.01 152.593 1122.49 152.538C1116.07 151.468 1110.36 150.932 1105.36 150.932C1091.45 150.932 1079.32 153.608 1068.97 158.961C1058.98 164.313 1050.95 172.52 1044.88 183.581C1039.17 194.642 1035.43 208.558 1033.64 225.328V341.67C1033.64 348.063 1028.46 353.246 1022.07 353.246H958.513Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M1223.48 360.739C1207.78 360.739 1193.86 357.706 1181.73 351.64C1169.6 345.218 1160.14 336.119 1153.36 324.344C1146.58 312.212 1143.19 297.583 1143.19 280.456C1143.19 264.399 1146.23 251.197 1152.29 240.849C1158.71 230.145 1167.81 221.76 1179.59 215.694C1191.72 209.271 1206.17 204.098 1222.94 200.173C1239.71 195.891 1258.8 192.144 1280.21 188.933C1290.56 187.149 1299.12 185.543 1305.9 184.116C1313.04 182.332 1318.39 179.656 1321.96 176.088C1325.52 172.52 1327.31 167.346 1327.31 160.566C1327.31 151.646 1324.1 143.974 1317.67 137.552C1311.25 131.129 1300.9 127.918 1286.63 127.918C1276.64 127.918 1267.54 129.702 1259.34 133.27C1251.49 136.838 1244.71 142.012 1239 148.791C1235.56 152.875 1232.64 157.477 1230.23 162.596C1227.52 168.382 1221.19 171.943 1215.06 170.13L1161.39 154.257C1155.21 152.428 1151.66 145.871 1154.04 139.875C1158.17 129.446 1163.3 120.108 1169.42 111.861C1177.98 100.8 1188.15 91.7012 1199.93 84.5649C1211.7 77.0718 1225.08 71.7196 1240.07 68.5083C1255.41 64.9402 1271.65 63.1561 1288.77 63.1561C1317.32 63.1561 1340.51 67.7947 1358.35 77.0718C1376.55 85.9922 1389.93 100.086 1398.49 119.354C1407.41 138.265 1411.87 162.707 1411.87 192.68V236.033C1411.87 248.878 1412.05 261.902 1412.41 275.104C1413.12 287.949 1413.84 300.973 1414.55 314.175C1415.27 322.842 1416.08 331.591 1416.96 340.42C1417.65 347.272 1412.29 353.246 1405.4 353.246H1352.03C1346.4 353.246 1341.58 349.2 1340.73 343.636C1339.83 337.676 1338.92 331.067 1338.01 323.809C1336.82 313.926 1335.87 303.917 1335.17 293.783C1334.95 290.508 1332.24 287.949 1328.96 287.949C1326.36 287.949 1324.05 289.574 1323.07 291.979C1318.15 303.991 1311.36 315.136 1302.69 325.414C1293.41 336.476 1281.99 345.218 1268.43 351.64C1255.23 357.706 1240.25 360.739 1223.48 360.739ZM1262.55 299.724C1268.97 299.724 1275.39 298.653 1281.81 296.513C1288.59 294.015 1295.02 290.803 1301.08 286.879C1307.15 282.597 1312.68 277.423 1317.67 271.357C1322.2 265.858 1325.71 259.92 1328.18 253.541C1328.69 252.236 1328.9 250.836 1328.86 249.436L1327.95 213.472C1327.9 211.341 1329.86 209.73 1331.94 210.203C1334.78 210.847 1335.37 214.518 1332.78 215.842C1327.89 218.339 1322.68 220.431 1317.14 222.117C1308.93 224.614 1300.55 226.577 1291.98 228.004C1283.78 229.431 1275.57 231.037 1267.36 232.821C1259.51 234.248 1252.38 236.211 1245.96 238.709C1239.89 241.206 1235.07 244.596 1231.5 248.878C1227.94 253.16 1226.15 259.047 1226.15 266.54C1226.15 276.531 1229.54 284.559 1236.32 290.625C1243.1 296.691 1251.84 299.724 1262.55 299.724Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M1497.86 353.246C1492.52 353.246 1487.87 349.59 1486.61 344.397L1454.5 211.948L1423.72 84.9526C1421.95 77.6667 1427.47 70.6492 1434.97 70.6492H1500.31C1505.99 70.6492 1510.83 74.7703 1511.74 80.3775L1544.08 280.421C1544.59 283.526 1547.27 285.808 1550.41 285.808C1553.46 285.808 1556.09 283.656 1556.7 280.664L1597.14 79.9388C1598.23 74.5355 1602.98 70.6492 1608.49 70.6492H1691.83C1697.31 70.6492 1702.04 74.4927 1703.16 79.8576L1745.08 280.455C1745.73 283.574 1748.48 285.808 1751.67 285.808C1754.99 285.808 1757.81 283.386 1758.32 280.104L1789.11 80.4608C1789.98 74.8156 1794.84 70.6492 1800.55 70.6492H1864.22C1871.71 70.6492 1877.23 77.6667 1875.47 84.9526L1812.57 344.397C1811.31 349.59 1806.66 353.246 1801.32 353.246H1701.25C1695.66 353.246 1690.87 349.254 1689.87 343.758L1653.45 145.198C1652.92 142.319 1650.41 140.228 1647.48 140.228C1644.53 140.228 1642 142.358 1641.5 145.271L1607.62 343.619C1606.67 349.18 1601.85 353.246 1596.21 353.246H1497.86Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M2009.49 360.739C1980.94 360.739 1955.61 355.208 1933.49 344.147C1911.72 333.086 1894.6 316.494 1882.11 294.372C1869.62 272.249 1863.37 244.596 1863.37 211.412C1863.37 178.229 1869.62 150.754 1882.11 128.988C1894.6 106.866 1911.9 90.4524 1934.02 79.7479C1956.15 68.6867 1981.48 63.1561 2010.03 63.1561C2038.57 63.1561 2063.9 68.6867 2086.03 79.7479C2108.15 90.8092 2125.45 107.401 2137.94 129.524C2150.43 151.289 2156.68 178.764 2156.68 211.948C2156.68 245.845 2150.25 273.855 2137.41 295.977C2124.56 318.1 2106.9 334.513 2084.42 345.218C2062.3 355.565 2037.32 360.739 2009.49 360.739ZM2012.17 298.118C2025.01 298.118 2035.72 295.264 2044.28 289.555C2052.84 283.489 2059.27 274.39 2063.55 262.258C2067.83 250.127 2069.97 235.14 2069.97 217.3C2069.97 198.389 2067.65 182.51 2063.01 169.665C2058.37 156.463 2051.42 146.472 2042.14 139.693C2033.22 132.556 2021.62 128.988 2007.35 128.988C1995.22 128.988 1984.69 132.021 1975.77 138.087C1967.21 143.796 1960.79 152.716 1956.5 164.848C1952.22 176.98 1950.08 192.144 1950.08 210.342C1950.08 239.601 1955.43 261.545 1966.14 276.174C1977.2 290.803 1992.54 298.118 2012.17 298.118Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M2212.44 360.204C2193.88 360.204 2179.97 356.279 2170.69 348.429C2161.77 340.579 2157.31 328.447 2157.31 312.034C2157.31 295.264 2161.77 282.954 2170.69 275.104C2179.97 267.254 2193.88 263.329 2212.44 263.329C2231.35 263.329 2245.44 267.254 2254.72 275.104C2264 282.954 2268.63 295.264 2268.63 312.034C2268.63 344.147 2249.9 360.204 2212.44 360.204Z",fill:"var(--logocolor)"})]}),l.jsx("div",{className:"drawo-themepreview-bottombar",children:l.jsx("div",{className:"drawo-themepreview-bottombar-item","data-isdark":s==="dark"})})]}),l.jsxs("p",{children:[d," (",s,")"]})]},h)})})]},s))]})]})}function Yn({...e}){return l.jsx(lO,{"data-slot":"select",...e})}function dr({...e}){return l.jsx(cO,{"data-slot":"select-value",...e})}function Gn({className:e,size:t="default",noArrow:n=!1,children:r,...o}){return l.jsxs(uO,{"data-slot":"select-trigger","data-size":t,className:`select-trigger ${e??""}`.trim(),...o,children:[r,!n&&l.jsx(fO,{asChild:!0,children:l.jsx(Gb,{className:"select-trigger-icon"})})]})}function Kn({className:e,children:t,position:n="item-aligned",align:r="center",...o}){return l.jsx(dO,{children:l.jsxs(hO,{"data-slot":"select-content","data-align-trigger":n==="item-aligned",className:`select-content ${e??""}`.trim(),position:n,align:r,...o,children:[l.jsx(kH,{}),l.jsx(pO,{"data-position":n,className:"select-viewport",children:t}),l.jsx(jH,{})]})})}function t1({className:e,children:t,check:n=!0,...r}){return l.jsxs(CO,{"data-slot":"select-item",className:`select-item ${e??""}`.trim(),...r,children:[n&&l.jsx("span",{className:"select-item-indicator",children:l.jsx(mO,{children:l.jsx(Yb,{className:"select-item-check"})})}),l.jsx(gO,{children:t})]})}function EH({className:e,...t}){return l.jsx(xO,{"data-slot":"select-separator",className:e+" select-separator",...t})}function kH({className:e,...t}){return l.jsx(vO,{"data-slot":"select-scroll-up-button",className:`select-scroll-button ${e??""}`.trim(),...t,children:l.jsx($F,{})})}function jH({className:e,...t}){return l.jsx(yO,{"data-slot":"select-scroll-down-button",className:`select-scroll-button ${e??""}`.trim(),...t,children:l.jsx(Gb,{})})}const AH=({scene:e,locale:t,messages:n,setLocale:r,setScene:o,setSceneWithoutHistory:s,onExportProject:c,onExportImage:d,onOpenProject:h})=>{const[p,m]=g.useState(!1),[v,y]=g.useState(!1),[b,D]=g.useState(!1),[S,L]=g.useState(!1),[M,w]=g.useState("png"),[E,O]=g.useState(2),[B,T]=g.useState(24),[P,_]=g.useState(!1),[Z,K]=g.useState(!1),[W,z]=g.useState(!1),[q,te]=g.useState(null),[X,H]=g.useState(e.settings.laserSettings),Q=g.useRef(null),oe=e.elements.length>0,U=e.selectedIds.length>0?e.selectedIds.length:e.selectedId?1:0,ie=U>0,N=I=>{K(I),I&&H(e.settings.laserSettings)},$=()=>{s(I=>cr(I,{laserSettings:X})),K(!1)},V=()=>{H({lifetime:600,baseWidth:11,shadow:!1,minWidth:.3,color:"#FF1A28"})},se=g.useCallback(()=>{o(I=>I.elements.length===0?I:{...I,elements:[],selectedId:null,selectedIds:[]}),y(!1)},[o]),ke=g.useCallback(async I=>{try{await h(I)}catch{window.alert(n.dialogs.openProject.invalidFile)}},[n.dialogs.openProject.invalidFile,h]),We=g.useCallback(I=>{const fe=I.target.files?.[0]??null;if(I.currentTarget.value="",!!fe){if(!fe.name.toLowerCase().endsWith(".drawo")){window.alert(n.dialogs.openProject.invalidExtension);return}if(oe){te(fe),z(!0);return}ke(fe)}},[ke,oe,n.dialogs.openProject.invalidExtension]),Ae=g.useCallback(()=>{if(!q){z(!1);return}const I=q;te(null),z(!1),ke(I)},[ke,q]),Qe=g.useCallback(async()=>{if(!S){L(!0);try{await d({format:M,qualityScale:E,transparentBackground:P,padding:B}),D(!1)}catch{window.alert(n.dialogs.exportImage.genericError)}finally{L(!1)}}},[M,B,E,P,S,n.dialogs.exportImage.genericError,d]);return l.jsxs("div",{className:"settings-bar",children:[l.jsx("input",{ref:Q,type:"file",accept:".drawo",hidden:!0,onChange:We}),l.jsxs(OP,{children:[l.jsx(BP,{asChild:!0,children:l.jsx("button",{type:"button",className:"tool-item",onClick:()=>{},children:l.jsx(TF,{})})}),l.jsxs(RP,{children:[l.jsxs(Fn,{disabled:!0,variant:"accent",children:[l.jsx(EP,{})," ",n.menu.quickActions]}),l.jsx(Go,{}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(nP,{}),n.menu.file]}),l.jsxs(uo,{children:[l.jsxs(Fn,{onClick:()=>{Q.current?.click()},children:[l.jsx(rP,{})," ",n.menu.openProject]}),l.jsxs(Fn,{onClick:c,children:[l.jsx(IF,{})," ",n.menu.saveProject]}),l.jsxs(Fn,{onClick:()=>D(!0),disabled:!oe,children:[l.jsx(yP,{})," ",n.menu.exportProject]}),l.jsx(Go,{}),l.jsxs(Fn,{onClick:()=>y(!0),disabled:!oe,children:[l.jsx(VF,{})," ",n.menu.clearCanvas]})]})]}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(vP,{}),n.menu.edit]}),l.jsx(uo,{})]}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(tP,{}),n.menu.view]}),l.jsxs(uo,{children:[l.jsxs(Js,{checked:e.settings.showGrid,onClick:()=>{s(I=>cr(I,{showGrid:!I.settings.showGrid}))},children:[l.jsx(lP,{})," ",n.menu.showGrid," "]}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(uP,{}),n.menu.gridStyle]}),l.jsx(uo,{children:l.jsxs(yC,{value:e.settings.gridStyle,onValueChange:I=>{I!=="dots"&&I!=="squares"||s(fe=>cr(fe,{gridStyle:I}))},children:[l.jsxs(_4,{value:"dots",children:[l.jsx(JF,{}),n.menu.gridStyleDots]}),l.jsxs(_4,{value:"squares",children:[l.jsx(xP,{}),n.menu.gridStyleSquares]})]})})]}),l.jsx(Go,{}),l.jsxs(Js,{checked:e.settings.zenMode,onClick:()=>{s(I=>cr(I,{zenMode:!I.settings.zenMode}))},children:[l.jsx(QF,{})," ",n.menu.zenMode,l.jsxs("div",{className:"drawo-keybind",children:[l.jsx("span",{children:xC()}),"+ ",l.jsx("span",{children:"Z"})]})]}),l.jsxs(Js,{checked:e.settings.presentationMode,onClick:()=>{s(I=>cr(I,{presentationMode:!I.settings.presentationMode}))},children:[l.jsx(UF,{})," ",n.menu.presentationMode,l.jsxs("div",{className:"drawo-keybind",children:[l.jsx("span",{children:xC()}),"+ ",l.jsx("span",{children:"R"})]})]}),l.jsx(Go,{}),l.jsxs(Js,{checked:e.settings.quillDrawOptimizations,onClick:()=>{s(I=>cr(I,{quillDrawOptimizations:!I.settings.quillDrawOptimizations}))},children:[l.jsx(fP,{})," ",n.menu.quillDrawOptimizations]})]})]}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(Kb,{}),n.menu.object]}),l.jsx(uo,{})]}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(MP,{}),n.menu.text]}),l.jsx(uo,{})]}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(CC,{}),n.menu.organize]}),l.jsxs(uo,{children:[l.jsxs(Fn,{disabled:U<2,onClick:()=>{o(I=>Ks(I,"left"))},children:[l.jsx(pP,{}),n.menu.organizeActions.alignLeft]}),l.jsxs(Fn,{disabled:U<2,onClick:()=>{o(I=>Ks(I,"center"))},children:[l.jsx(dP,{}),n.menu.organizeActions.alignCenter]}),l.jsxs(Fn,{disabled:U<2,onClick:()=>{o(I=>Ks(I,"right"))},children:[l.jsx(CP,{}),n.menu.organizeActions.alignRight]}),l.jsx(Go,{}),l.jsxs(Fn,{disabled:U<2,onClick:()=>{o(I=>Ks(I,"top"))},children:[l.jsx(gP,{}),n.menu.organizeActions.alignTop]}),l.jsxs(Fn,{disabled:U<2,onClick:()=>{o(I=>Ks(I,"middle"))},children:[l.jsx(hP,{}),n.menu.organizeActions.alignMiddle]}),l.jsxs(Fn,{disabled:U<2,onClick:()=>{o(I=>Ks(I,"bottom"))},children:[l.jsx(CC,{}),n.menu.organizeActions.alignBottom]})]})]}),l.jsx(Go,{}),l.jsxs(Fn,{onClick:()=>{window.open("https://github.com/drawo-app/drawo","_blank")},children:[l.jsx(cP,{})," Github"]}),l.jsxs(Fn,{disabled:!0,children:[l.jsx(r_,{})," Discord"]}),l.jsxs(Fn,{onClick:()=>{window.open("https://buymeacoffee.com/pico190_","_blank")},children:[l.jsx(KF,{})," ",n.menu.donate]}),l.jsx(Go,{}),l.jsxs(Fn,{onClick:()=>{m(!0)},children:[l.jsx(mP,{}),n.menu.themes]}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(aP,{}),n.menu.settings]}),l.jsxs(uo,{children:[l.jsxs(Js,{checked:e.settings.snapToGrid,onClick:()=>{s(I=>cr(I,{snapToGrid:!I.settings.snapToGrid}))},children:[l.jsx(SP,{})," ",n.menu.snapToGrid]}),l.jsxs(Js,{checked:e.settings.smartGuides,onClick:()=>{s(I=>cr(I,{smartGuides:!I.settings.smartGuides}))},children:[l.jsx(wP,{})," ",n.menu.smartGuides]}),l.jsx(Go,{}),l.jsxs(so,{children:[l.jsxs(lo,{children:[l.jsx(oP,{}),n.menu.language]}),l.jsx(uo,{children:l.jsx(yC,{value:t,onValueChange:I=>{Zw(I)&&r(I)},children:Object.entries(jR).map(([I,fe])=>l.jsx(_4,{value:I,children:fe}))})})]}),l.jsxs(Fn,{onClick:()=>{N(!0)},children:[l.jsx(_P,{})," ",n.dialogs.laserCanvas.label]})]})]})]})]}),l.jsx(Wl,{open:Z,onOpenChange:N,children:l.jsxs($l,{children:[l.jsxs(Ul,{children:[l.jsx(ql,{children:n.dialogs.laserCanvas.title}),l.jsx(y0,{children:n.dialogs.laserCanvas.description})]}),l.jsx("p",{className:"label",children:n.dialogs.laserCanvas.color}),l.jsx("div",{className:"colorswatch-dialog",children:l.jsx(Ba,{colors:["#FF1A28","#FF7A00","#FFD400","#00E05A","#008CFF","#7c5cff","#FF2BD6","#00E5FF"],currentColor:X.color,uniColor:I=>I,renderItem:({color:I,swatch:fe})=>l.jsx("div",{className:"drawo-colorselect-item",onPointerDown:()=>{H(me=>({...me,color:I}))},children:fe},I)})}),l.jsx("p",{className:"label",children:n.dialogs.laserCanvas.lifetime}),l.jsx(t2,{value:[X.lifetime],onValueChange:I=>{H(fe=>({...fe,lifetime:I[0]}))},max:2e3,min:100,step:10}),l.jsx("p",{className:"label",children:n.dialogs.laserCanvas.baseWidth}),l.jsx(t2,{value:[X.baseWidth],onValueChange:I=>{H(fe=>({...fe,baseWidth:I[0]}))},max:30,min:1,step:.5}),l.jsx("p",{className:"label",children:n.dialogs.laserCanvas.minWidth}),l.jsx(t2,{value:[X.minWidth],onValueChange:I=>{H(fe=>({...fe,minWidth:I[0]}))},max:5,min:.1,step:.1}),l.jsxs("div",{className:"drawo-checkbox-section",children:[l.jsx(wC,{checked:X.shadow,onCheckedChange:I=>{H(fe=>({...fe,shadow:I}))}}),l.jsxs("span",{className:"text-flex",children:[n.dialogs.laserCanvas.enableShadows," ",l.jsx("span",{className:"drawo-beta",children:l.jsx("span",{children:"BETA"})})]})]}),l.jsx(v0,{children:l.jsxs("div",{className:"drawo-dialog-actions drawo-dialog-actions-separated",children:[l.jsx("div",{className:"drawo-dialog-actions-section",children:l.jsx("button",{type:"button",className:"drawo-btn-secondary",onClick:V,children:n.dialogs.laserCanvas.reset})}),l.jsxs("div",{className:"drawo-dialog-actions-section",children:[l.jsx(m0,{asChild:!0,children:l.jsx("button",{type:"button",className:"drawo-btn-secondary",children:n.dialogs.laserCanvas.cancel})}),l.jsx("button",{type:"button",className:"drawo-btn-primary",onClick:$,children:n.dialogs.laserCanvas.save})]})]})})]})}),l.jsx(Wl,{open:b,onOpenChange:D,children:l.jsxs($l,{children:[l.jsxs(Ul,{children:[l.jsx(ql,{children:n.dialogs.exportImage.title}),l.jsx(y0,{children:ie?n.dialogs.exportImage.descriptionSelection:n.dialogs.exportImage.descriptionAll})]}),l.jsxs("div",{className:"drawo-export-grid",children:[l.jsxs("div",{className:"drawo-export-field",children:[l.jsx("p",{className:"label",children:n.dialogs.exportImage.format}),l.jsxs(Yn,{value:M,onValueChange:I=>{(I==="png"||I==="jpg"||I==="svg"||I==="pdf")&&w(I)},children:[l.jsx(Gn,{className:"drawo-select-trigger",children:l.jsx(dr,{placeholder:n.dialogs.exportImage.format})}),l.jsxs(Kn,{children:[l.jsx(t1,{value:"png",children:"PNG"}),l.jsx(t1,{value:"jpg",children:"JPG"}),l.jsx(t1,{value:"svg",children:"SVG"}),l.jsx(t1,{value:"pdf",children:"PDF"})]})]})]}),l.jsxs("div",{className:"drawo-export-field",children:[l.jsxs("p",{className:"label",children:[n.dialogs.exportImage.quality," (",E,"x)"]}),l.jsx(t2,{value:[E],min:1,max:4,step:1,onValueChange:I=>{O(I[0])}})]}),l.jsxs("div",{className:"drawo-export-field",children:[l.jsxs("p",{className:"label",children:[n.dialogs.exportImage.padding," (",B,"px)"]}),l.jsx(t2,{value:[B],min:0,max:96,step:2,onValueChange:I=>{T(I[0])}})]})]}),l.jsxs("div",{className:"drawo-checkbox-section",children:[l.jsx(wC,{disabled:M==="jpg",checked:M==="jpg"?!1:P,onCheckedChange:I=>{_(I)}}),l.jsx("span",{className:"text-flex",children:n.dialogs.exportImage.transparentBackground})]}),M==="jpg"&&l.jsx("p",{className:"label drawo-export-note",children:n.dialogs.exportImage.jpgNoTransparency}),l.jsx(v0,{children:l.jsxs("div",{className:"drawo-dialog-actions",children:[l.jsx(m0,{asChild:!0,children:l.jsx("button",{type:"button",className:"drawo-btn-secondary",children:n.dialogs.exportImage.cancel})}),l.jsx("button",{type:"button",className:"drawo-btn-primary",onClick:()=>{Qe()},disabled:S,children:S?n.dialogs.exportImage.exporting:n.dialogs.exportImage.export})]})})]})}),l.jsx(MH,{isOpen:p,onOpenChange:m,currentTheme:`${e.settings.colorScheme}-${e.settings.theme==="dark"?"dark":"light"}`,messages:n,setTheme:I=>{const fe=I.lastIndexOf("-");if(fe===-1)return;const me=I.slice(0,fe),Se=I.slice(fe+1);Se!=="light"&&Se!=="dark"||s(Xe=>cr(Xe,{colorScheme:me,theme:Se}))}}),l.jsx(Wl,{open:v,onOpenChange:y,children:l.jsxs($l,{children:[l.jsxs(Ul,{children:[l.jsx(ql,{children:n.dialogs.clearCanvas.title}),l.jsx(y0,{children:n.dialogs.clearCanvas.description})]}),l.jsx(v0,{children:l.jsxs("div",{className:"drawo-dialog-actions",children:[l.jsx(m0,{asChild:!0,children:l.jsx("button",{type:"button",className:"drawo-btn-secondary",children:n.dialogs.clearCanvas.cancel})}),l.jsx("button",{type:"button",className:"drawo-btn-danger",onClick:se,children:n.dialogs.clearCanvas.confirm})]})})]})}),l.jsx(Wl,{open:W,onOpenChange:z,children:l.jsxs($l,{children:[l.jsxs(Ul,{children:[l.jsx(ql,{children:n.dialogs.openProject.title}),l.jsx(y0,{children:n.dialogs.openProject.description})]}),l.jsx(v0,{children:l.jsxs("div",{className:"drawo-dialog-actions",children:[l.jsx(m0,{asChild:!0,children:l.jsx("button",{type:"button",className:"drawo-btn-secondary",onClick:()=>{te(null)},children:n.dialogs.openProject.cancel})}),l.jsx("button",{type:"button",className:"drawo-btn-danger",onClick:Ae,children:n.dialogs.openProject.confirm})]})})]})})]})},OH=[{label:"1 min",sec:60},{label:"5 min",sec:300},{label:"10 min",sec:600},{label:"25 min",sec:1500}],$8=300,U8=3600,pg=e=>Number.isFinite(e)?Math.max(0,Math.min(U8,Math.floor(e))):$8,BH=()=>{const e={total:$8,remaining:$8,running:!1,done:!1,updatedAt:Date.now()};try{const t=localStorage.getItem(Ql);if(!t)return e;const n=JSON.parse(t),r=pg(n.total??e.total),o=pg(n.remaining??r),s=typeof n.updatedAt=="number"?n.updatedAt:Date.now(),c=Math.max(0,Math.floor((Date.now()-s)/1e3)),d=n.running===!0,h=d?Math.max(0,o-c):o,p=d&&h>0,m=h===0?!0:n.done===!0&&h===0;return{total:Math.max(r,h),remaining:h,running:p,done:m,updatedAt:Date.now()}}catch{return e}},RH=({isOpen:e,onOpenChange:t,messages:n})=>{const r=g.useMemo(()=>BH(),[]),[o,s]=g.useState(r.total),[c,d]=g.useState(r.remaining),[h,p]=g.useState(r.running),[m,v]=g.useState(r.done),y=g.useRef(null),b=Math.floor(c/60),D=c%60,S=o>0?(o-c)/o*100:0,L=g.useCallback(()=>{y.current&&clearInterval(y.current),y.current=null,p(!1)},[]),M=g.useCallback(()=>{h||c<=0||(v(!1),p(!0))},[c,h]),w=g.useCallback(()=>L(),[L]),E=g.useCallback(()=>{L(),v(!1),d(o)},[L,o]),O=g.useCallback(T=>{L(),v(!1),s(T),d(T)},[L]),B=g.useCallback(()=>{v(!1),s(T=>Math.min(U8,T+60)),d(T=>Math.min(U8,T+60))},[]);return g.useEffect(()=>{if(h)return y.current=setInterval(()=>{d(T=>T<=1?(p(!1),v(!0),0):T-1)},1e3),()=>{y.current&&(clearInterval(y.current),y.current=null)}},[h]),g.useEffect(()=>()=>L(),[L]),g.useEffect(()=>{const T={total:o,remaining:c,running:h,done:m,updatedAt:Date.now()};try{localStorage.setItem(Ql,JSON.stringify(T))}catch{}},[m,c,h,o]),l.jsx("div",{className:"timer-container "+(e?"active":""),children:l.jsxs("div",{className:`music-bar ${e?"music-bar-open":""}`,children:[l.jsx("button",{type:"button",className:"music-bar-toggle",onClick:()=>t(!e),"aria-expanded":e,"aria-controls":"timer-panel",children:l.jsxs("div",{className:"music-bar-toggle-content",children:[l.jsx("div",{className:"music-bar-icon",children:h?l.jsx(sS,{weight:"Bold"}):l.jsx(lS,{weight:"Bold"})}),l.jsx("span",{className:"music-bar-now-playing timer-font",children:`${b.toString().length>1?b:`0${b}`}:${D.toString().length>1?D:`0${D}`}`})]})}),e&&l.jsxs("div",{id:"timer-panel",className:"music-panel timer-panel",children:[l.jsxs("div",{className:"timer-content-container",children:[l.jsx("p",{className:"timer-font timer-content",children:`${b.toString().length>1?b:`0${b}`}:${D.toString().length>1?D:`0${D}`}`}),l.jsx("p",{className:"timer-font timer-content timer-background",children:"88:88"})]}),l.jsx("div",{className:"timer-progress-wrap",children:l.jsx("div",{className:"timer-progress-bar",style:{width:`${S}%`}})}),l.jsxs("div",{className:"timer-controls",children:[l.jsx("div",{className:"timer-controls-section",children:l.jsx("button",{className:"timer-btn timer-textbtn",onClick:B,children:"+1 min"})}),l.jsxs("div",{className:"timer-controls-section",children:[l.jsx("button",{className:"timer-btn timer-iconbtn",onClick:E,children:l.jsx(CS,{})}),l.jsx("button",{className:"timer-btn timer-iconbtn timer-btn--primary",onClick:h?w:M,disabled:m&&!h,children:h?l.jsx(s6,{weight:"Bold"}):l.jsx(l6,{weight:"Bold"})})]})]}),l.jsx("div",{className:"timer-presets",children:OH.map(T=>l.jsx("button",{className:"timer-preset",onClick:()=>O(T.sec),children:T.label},T.sec))})]})]})})},TH='<svg width="100%" height="100%" viewBox="0 0 96 96" fill="none" style="height: 100%; width: 100%; filter: drop-shadow(rgba(0, 0, 0, 0.15) 0px 1.625px 4.0625px) drop-shadow(rgba(0, 0, 0, 0.12) 0px 8.125px 13px) drop-shadow(rgba(0, 0, 0, 0.12) 0px 0px 0.40625px);"><mask id="mask0_134_226" style="mask-type: alpha;" maskUnits="userSpaceOnUse" x="0" y="0" width="96" height="96"><circle cx="48" cy="48" r="48" fill="black"></circle><circle cx="48" cy="48" r="48" fill="url(#paint0_radial_134_226)"></circle><circle cx="48" cy="48" r="47.1875" stroke="black" stroke-opacity="0.8" stroke-width="1.625"></circle></mask><g mask="url(#mask0_134_226)"><circle cx="48" cy="48" r="48" fill="black"></circle><circle cx="48" cy="48" r="48" fill="url(#paint1_radial_134_226)"></circle><circle cx="48" cy="48" r="47.1875" stroke="black" stroke-opacity="0.3" stroke-width="1.625"></circle><circle cx="47.9999" cy="48" r="48.3438" stroke="url(#paint2_linear_134_226)" stroke-width="0.8125"></circle><circle cx="47.9999" cy="48" r="45.0938" stroke="url(#paint3_linear_134_226)" stroke-width="0.8125"></circle><circle cx="47.9999" cy="48" r="41.8438" stroke="url(#paint4_linear_134_226)" stroke-width="0.8125"></circle><circle cx="47.9999" cy="48" r="38.5938" stroke="url(#paint5_linear_134_226)" stroke-width="0.8125"></circle><circle cx="47.9999" cy="48" r="35.3438" stroke="url(#paint6_linear_134_226)" stroke-width="0.8125"></circle><circle cx="47.9999" cy="48" r="32.0938" stroke="url(#paint7_linear_134_226)" stroke-width="0.8125"></circle><g filter="url(#filter0_f_134_226)"><path d="M47.6379 42.7921L50.2388 118.707L-34.6776 45.6123L47.6379 42.7921Z" fill="url(#paint8_linear_134_226)"></path></g><g filter="url(#filter1_f_134_226)"><path d="M56.3805 43.3806L56.3805 -32.5788L138.744 43.3806L56.3805 43.3806Z" fill="url(#paint9_linear_134_226)"></path></g></g><defs><filter id="filter0_f_134_226" x="-42.8026" y="34.6671" width="101.166" height="92.1648" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="4.0625" result="effect1_foregroundBlur_134_226"></feGaussianBlur></filter><filter id="filter1_f_134_226" x="48.2555" y="-40.7038" width="98.6138" height="92.2094" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="4.0625" result="effect1_foregroundBlur_134_226"></feGaussianBlur></filter><radialGradient id="paint0_radial_134_226" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(48 48) rotate(135) scale(65.7609 27.1741)"><stop stop-color="white" stop-opacity="0.63"></stop><stop offset="0.66129" stop-color="white" stop-opacity="0.17"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></radialGradient><radialGradient id="paint1_radial_134_226" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(48 48) rotate(135) scale(65.7609 27.1741)"><stop stop-color="white" stop-opacity="0.63"></stop><stop offset="0.66129" stop-color="white" stop-opacity="0.17"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></radialGradient><linearGradient id="paint2_linear_134_226" x1="96.7498" y1="96.75" x2="-0.750201" y2="-0.75003" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.05"></stop><stop offset="0.394591" stop-color="white" stop-opacity="0.12"></stop><stop offset="0.498177" stop-color="white" stop-opacity="0.2"></stop><stop offset="0.60488" stop-color="white" stop-opacity="0.12"></stop><stop offset="1" stop-color="white" stop-opacity="0.05"></stop></linearGradient><linearGradient id="paint3_linear_134_226" x1="93.4998" y1="93.5" x2="2.49981" y2="2.49997" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.05"></stop><stop offset="0.394591" stop-color="white" stop-opacity="0.12"></stop><stop offset="0.498177" stop-color="white" stop-opacity="0.2"></stop><stop offset="0.60488" stop-color="white" stop-opacity="0.12"></stop><stop offset="1" stop-color="white" stop-opacity="0.05"></stop></linearGradient><linearGradient id="paint4_linear_134_226" x1="90.2498" y1="90.25" x2="5.74982" y2="5.74997" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.05"></stop><stop offset="0.394591" stop-color="white" stop-opacity="0.12"></stop><stop offset="0.498177" stop-color="white" stop-opacity="0.2"></stop><stop offset="0.60488" stop-color="white" stop-opacity="0.12"></stop><stop offset="1" stop-color="white" stop-opacity="0.05"></stop></linearGradient><linearGradient id="paint5_linear_134_226" x1="86.9998" y1="87" x2="8.99983" y2="8.99997" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.05"></stop><stop offset="0.394591" stop-color="white" stop-opacity="0.12"></stop><stop offset="0.498177" stop-color="white" stop-opacity="0.2"></stop><stop offset="0.60488" stop-color="white" stop-opacity="0.12"></stop><stop offset="1" stop-color="white" stop-opacity="0.05"></stop></linearGradient><linearGradient id="paint6_linear_134_226" x1="83.7498" y1="83.75" x2="12.2498" y2="12.25" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.05"></stop><stop offset="0.394591" stop-color="white" stop-opacity="0.12"></stop><stop offset="0.498177" stop-color="white" stop-opacity="0.2"></stop><stop offset="0.60488" stop-color="white" stop-opacity="0.12"></stop><stop offset="1" stop-color="white" stop-opacity="0.05"></stop></linearGradient><linearGradient id="paint7_linear_134_226" x1="80.4998" y1="80.5" x2="15.4998" y2="15.5" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.05"></stop><stop offset="0.394591" stop-color="white" stop-opacity="0.12"></stop><stop offset="0.498177" stop-color="white" stop-opacity="0.2"></stop><stop offset="0.60488" stop-color="white" stop-opacity="0.12"></stop><stop offset="1" stop-color="white" stop-opacity="0.05"></stop></linearGradient><linearGradient id="paint8_linear_134_226" x1="11.6492" y1="45.2351" x2="48.238" y2="80.972" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0"></stop><stop offset="0.452124" stop-color="white" stop-opacity="0.1"></stop><stop offset="0.539969" stop-color="white" stop-opacity="0.48"></stop><stop offset="0.635517" stop-color="white" stop-opacity="0.1"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></linearGradient><linearGradient id="paint9_linear_134_226" x1="92.4318" y1="42.1712" x2="57.088" y2="5.20249" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0"></stop><stop offset="0.452124" stop-color="white" stop-opacity="0.1"></stop><stop offset="0.539969" stop-color="white" stop-opacity="0.48"></stop><stop offset="0.635517" stop-color="white" stop-opacity="0.1"></stop><stop offset="1" stop-color="white" stop-opacity="0"></stop></linearGradient></defs></svg>',Cg={lofi:eS,ambient:pS,rain:vS,chill:nS,energy:cS,creative:Jb,default:tS},x0={lofi:"#7C6CF2",ambient:"#3A6FF7",rain:"#6BA4B8",chill:"#4CB782",energy:"#FF8A3D",creative:"#E35D9A",default:"#3A6FF7"},yS="https://url.shard.es",dc=`${yS}/music`,NH=1e4,FH=100,q8=.9,gg=1e4,PH=18e-5,v2=e=>e.replaceAll("\\","").replace(/^\/+/,"").replace(/\/{2,}/g,"/"),_H=e=>{const n=v2(e).split("/").filter(Boolean);return n[n.length-1]??""},xS=e=>{const t=v2(e),n=t.split("/").filter(Boolean);return(n[n.length-1]??t).replace(/\.mp3$/i,"").replaceAll("-"," ")},mg=(e,t)=>{const n=v2(t);return n.startsWith("music/")?`${yS}/${n}`:n.endsWith(".mp3")?`${dc}/${e}/${n}`:`${dc}/${e}/${n}.mp3`},IH=e=>{const t=[...e];for(let n=t.length-1;n>0;n-=1){const r=Math.floor(Math.random()*(n+1)),o=t[n];t[n]=t[r],t[r]=o}return t},wS=e=>Number.isFinite(e)?Math.max(0,Math.min(1,e)):q8,vg=e=>{if(!e||typeof e!="object")return!1;const t=e;return typeof t.station=="string"&&typeof t.url=="string"&&typeof t.label=="string"},yg=e=>{if(!e||typeof e!="object")return{};const t=e,n={};for(const r of Object.keys(t)){const o=t[r];Array.isArray(o)&&(n[r]=o.filter(s=>typeof s=="string"))}return n},zH=()=>{const e={activeStation:null,currentTrackLabel:"",currentTrackUrl:null,isPlaying:!1,hasPrevious:!1,volume:q8,activeAudioIndex:0,tracksByStation:{},unplayedByStation:{},trackHistory:[],currentTrack:null};try{const t=localStorage.getItem(eb);if(!t)return e;const n=JSON.parse(t),r=Array.isArray(n.trackHistory)?n.trackHistory.filter(vg):[],o=vg(n.currentTrack)?n.currentTrack:null,s=typeof n.currentTrackUrl=="string"?n.currentTrackUrl:null,c=typeof n.currentTrackLabel=="string"?n.currentTrackLabel:"";return{activeStation:typeof n.activeStation=="string"?n.activeStation:null,currentTrackLabel:c,currentTrackUrl:s,isPlaying:n.isPlaying===!0,hasPrevious:n.hasPrevious===!0||r.length>0,volume:wS(n.volume??q8),activeAudioIndex:n.activeAudioIndex===1?1:0,tracksByStation:yg(n.tracksByStation),unplayedByStation:yg(n.unplayedByStation),trackHistory:r,currentTrack:o??(s?{station:typeof n.activeStation=="string"?n.activeStation:"",url:s,label:c||xS(s)}:null)}}catch{return e}},HH=({isOpen:e,onOpenChange:t,messages:n})=>{const r=g.useMemo(zH,[]),[o,s]=g.useState(!1),[c,d]=g.useState(r.isPlaying),[h,p]=g.useState(null),[m,v]=g.useState([]),[y,b]=g.useState(r.activeStation),[D,S]=g.useState(r.currentTrackLabel),[L,M]=g.useState(r.currentTrackUrl),[w,E]=g.useState(r.hasPrevious),[O,B]=g.useState(r.volume),T=g.useRef(null),P=g.useRef(null),_=g.useRef(r.activeAudioIndex),Z=g.useRef(null),K=g.useRef(!1),W=g.useRef(r.tracksByStation),z=g.useRef(r.unplayedByStation),q=g.useRef(r.trackHistory),te=g.useRef(r.currentTrack),X=g.useRef(r.volume),H=g.useRef(null),Q=g.useRef(null),oe=g.useRef(null),U=g.useRef(0),ie=g.useRef(0),N=g.useRef(0),$=g.useRef(!1),V=g.useMemo(()=>[T,P],[T,P]),se=g.useCallback(()=>{Z.current!==null&&(window.clearInterval(Z.current),Z.current=null)},[]),ke=g.useCallback(async()=>{p(null);try{const Me=await fetch(`${dc}/`);if(!Me.ok)throw new Error("No se pudieron cargar las radios");const Y=(await Me.json()).map(_H).filter(Boolean);v(Y),Y.length>0&&b(he=>he??Y[0])}catch{p("Error cargando radios")}},[]),We=g.useCallback(async Me=>{const tt=W.current[Me];if(tt&&tt.length>0)return tt;const Y=await fetch(`${dc}/${Me}/`);if(!Y.ok)throw new Error("No se pudieron cargar canciones");const ve=(await Y.json()).map(v2).filter(Boolean);return W.current[Me]=ve,ve},[]),Ae=g.useCallback((Me,tt)=>{if(tt.length===0)return null;const Y=te.current?.url??L,he=Y?v2(Y):null,ve=te.current?.station===Me;if(!z.current[Me]||z.current[Me].length===0){const Ze=IH(tt);if(he&&ve&&Ze.length>1)if(v2(mg(Me,Ze[0]))===he){const[_e,...ue]=Ze;z.current[Me]=[...ue,_e]}else z.current[Me]=Ze;else z.current[Me]=Ze}return z.current[Me].shift()??null},[L]),Qe=g.useCallback(async(Me,tt,Y)=>{if(K.current)return;const he=_.current,ve=he===0?1:0,Be=V[he].current,Ze=V[ve].current;if(!Ze)return;K.current=!0,se();const Ee=Y?.pushToHistory??!0,_e=Y?.station??y,ue=Y?.instant??!1;Ee&&te.current&&te.current.url!==Me&&(q.current.push(te.current),E(q.current.length>0)),Ze.src=Me,Ze.currentTime=0,Ze.volume=0;try{await Ze.play()}catch{K.current=!1,p("El navegador bloqueó la reproducción automática");return}if(d(!0),_.current=ve,ue){se(),Be&&(Be.pause(),Be.currentTime=0,Be.removeAttribute("src"),Be.load(),Be.volume=X.current),Ze.volume=X.current,M(Me),S(tt),te.current={station:_e??"",url:Me,label:tt},d(!0),K.current=!1;return}const at=performance.now(),rt=Be?.volume??0;Z.current=window.setInterval(()=>{const Tt=performance.now()-at,p1=Math.min(1,Tt/NH),v1=X.current;Ze.volume=v1*p1,Be&&!Be.paused&&(Be.volume=Math.max(0,rt*(1-p1))),p1>=1&&(se(),Be&&(Be.pause(),Be.currentTime=0,Be.removeAttribute("src"),Be.load(),Be.volume=v1),Ze.volume=v1,M(Me),S(tt),te.current={station:_e??"",url:Me,label:tt},d(!0),K.current=!1)},FH)},[y,V,se]),I=g.useCallback(async(Me,tt)=>{if(Me){p(null),s(!0);try{const Y=await We(Me),he=Ae(Me,Y);if(!he)throw new Error("No hay canciones para esta radio");const ve=mg(Me,he);await Qe(ve,xS(he),{pushToHistory:!0,station:Me,instant:tt?.instant??!1})}catch{p("No se pudo reproducir la radio seleccionada")}finally{s(!1)}}},[We,Ae,Qe]),fe=g.useCallback(async Me=>{b(Me),q.current=[],E(!1),z.current[Me]=[],await I(Me,{instant:!0})},[I]),me=g.useCallback(async()=>{const Me=V[_.current].current;if(Me){if(!y){m.length>0&&await fe(m[0]);return}if(Me.paused){if(!Me.src){await I(y,{instant:!0});return}await Me.play(),d(!0);return}for(const tt of V){const Y=tt.current;Y&&Y.pause()}d(!1)}},[y,V,fe,I,m]),Se=g.useCallback(async()=>{const Me=V[_.current].current;if(Me){if(!y){m.length>0&&await fe(m[0]);return}if(!Me.src){await I(y,{instant:!0});return}await Me.play(),d(!0)}},[y,V,fe,I,m]),Xe=g.useCallback(()=>{for(const Me of V){const tt=Me.current;tt&&tt.pause()}d(!1)},[V]),He=g.useCallback(async()=>{y&&await I(y,{instant:!0})},[y,I]),Ct=g.useCallback(async()=>{if(q.current.length===0)return;const Me=q.current.pop();if(E(q.current.length>0),!!Me){Me.station&&Me.station!==y&&b(Me.station),p(null),s(!0);try{await Qe(Me.url,Me.label,{pushToHistory:!1,station:Me.station,instant:!0})}catch{p("No se pudo volver a la canción anterior")}finally{s(!1)}}},[y,Qe]),mt=g.useCallback(Me=>{const tt=wS(Number(Me.target.value));B(tt),X.current=tt;for(const Y of V){const he=Y.current;he&&(he.paused||(he.volume=tt))}},[V]),dt=g.useCallback(()=>{const Me={activeStation:y,currentTrackLabel:D,currentTrackUrl:L,isPlaying:c,hasPrevious:w||q.current.length>0,volume:O,activeAudioIndex:_.current,tracksByStation:W.current,unplayedByStation:z.current,trackHistory:q.current,currentTrack:te.current};try{localStorage.setItem(eb,JSON.stringify(Me))}catch{}},[y,D,L,w,c,O]);g.useEffect(()=>{if($.current)return;const Me=T.current,tt=P.current;if(!Me||!tt||($.current=!0,Me.volume=X.current,tt.volume=X.current,!L))return;const Y=V[_.current].current;Y&&(Y.src=L,Y.load(),c&&Y.play().catch(()=>{d(!1),p("El navegador bloqueó la reproducción automática")}))},[V,L,c]),g.useEffect(()=>{dt()},[dt]),g.useEffect(()=>{const Me=()=>dt();return window.addEventListener("beforeunload",Me),()=>{Me(),window.removeEventListener("beforeunload",Me)}},[dt]),g.useEffect(()=>{ke()},[ke]),g.useEffect(()=>{if(!("mediaSession"in navigator))return;const Me=navigator.mediaSession;return Me.setActionHandler("play",()=>{Se()}),Me.setActionHandler("pause",()=>{Xe()}),Me.setActionHandler("nexttrack",()=>{He()}),Me.setActionHandler("previoustrack",()=>{Ct()}),Me.setActionHandler("stop",()=>{Xe()}),()=>{Me.setActionHandler("play",null),Me.setActionHandler("pause",null),Me.setActionHandler("nexttrack",null),Me.setActionHandler("previoustrack",null),Me.setActionHandler("stop",null)}},[Xe,Se,Ct,He]),g.useEffect(()=>{if(!("mediaSession"in navigator))return;const Me=navigator.mediaSession,tt=y||"Unknown";Me.metadata=new MediaMetadata({title:tt[0].toUpperCase()+tt.slice(1)+" radio",artist:"Drawo music"}),Me.playbackState=L?c?"playing":"paused":"none"},[y,D,L,c]),g.useEffect(()=>{const Me=()=>{y&&I(y)},tt=T.current,Y=P.current;return tt?.addEventListener("ended",Me),Y?.addEventListener("ended",Me),()=>{tt?.removeEventListener("ended",Me),Y?.removeEventListener("ended",Me)}},[y,I]),g.useEffect(()=>()=>{se(),Q.current!==null&&(window.cancelAnimationFrame(Q.current),Q.current=null);for(const Me of V){const tt=Me.current;tt&&(tt.pause(),tt.removeAttribute("src"),tt.load())}},[V,se]),g.useEffect(()=>{const Me=360/gg,tt=Y=>{Q.current=window.requestAnimationFrame(tt),oe.current===null&&(oe.current=Y);const he=Math.min(64,Y-oe.current);oe.current=Y;const ve=N.current,Be=ie.current,Ze=ve-Be,Ee=PH*he,_e=Math.abs(Ze)<=Ee?ve:Be+Math.sign(Ze)*Ee;ie.current=Math.max(0,Math.min(Me,_e)),U.current=(U.current+ie.current*he)%360;const ue=H.current;ue&&(ue.style.transform=`translate(-50%, -50%) rotate(${U.current}deg)`)};return Q.current=window.requestAnimationFrame(tt),()=>{Q.current!==null&&(window.cancelAnimationFrame(Q.current),Q.current=null),oe.current=null}},[]),g.useEffect(()=>{N.current=c?360/gg:0},[c]);const xe=y??"sin radio",Ue=Me=>{const tt=Me.toLowerCase();return Cg[tt]||Cg.default},ht=Me=>{const tt=Me.toLowerCase();return x0[tt]||x0.default},Ie=Ue(xe);function Lt(){return l.jsxs("div",{style:{display:"flex",width:"90%",margin:"0px auto",zIndex:5,position:"relative",transform:"translateY(18%)"},children:[l.jsxs("div",{ref:H,className:"music-cd-disc",style:{width:"66%",height:"66%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) rotate(0deg)",transformOrigin:"center center",borderRadius:"50%",overflow:"hidden",zIndex:5,backdropFilter:"blur(200px)",background:`linear-gradient(to right, ${ht(xe)}, ${ht(xe)}50)`},children:[l.jsx("p",{children:"a"}),l.jsx(Ie,{style:{width:"50%",height:"50%",top:"50%",left:"50%",color:"white",zIndex:10,position:"absolute",transform:"translate(-50%, -50%)"},weight:"BoldDuotone"})]}),l.jsx("span",{dangerouslySetInnerHTML:{__html:TH}})]})}const n1=P5(x0[y]||"#000000");return l.jsxs("div",{className:"music-bar-container "+(e?"active":""),children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:`
211
+ .music-bar-container *, html.dark .music-bar-container * {
212
+ --accent: rgba(${n1.r}, ${n1.g}, ${n1.b}, ${n1.a})!important;
213
+ --accent-rgb: ${n1.r}, ${n1.g}, ${n1.b}!important;
214
+ }
215
+ `}}),l.jsxs("div",{className:`music-bar ${e?"music-bar-open":""}`,children:[l.jsx("button",{type:"button",className:"music-bar-toggle",onClick:()=>t(!e),"aria-expanded":e,"aria-controls":"music-panel",style:{background:c?"rgba(var(--accent-rgb), .5)":void 0},children:l.jsx("div",{className:"music-bar-toggle-content",children:c?l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"music-bar-icon",children:l.jsx(Ie,{weight:"Bold"})}),l.jsxs("span",{className:"music-bar-now-playing",children:[xe," ",l.jsx("span",{style:{fontWeight:"normal",opacity:.5},children:n.panels.playing})]})]}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"music-bar-icon",children:l.jsx(fS,{weight:"Bold"})}),l.jsx("span",{className:"music-bar-now-playing",children:n.panels.music})]})})}),e?l.jsxs("div",{id:"music-panel",className:"music-panel",children:[l.jsxs("div",{style:{transform:"translateY(-10%)"},className:"music-station-select-container",children:[l.jsx("div",{style:{background:x0[y],height:"10%",width:"80%",filter:"blur(100px)",position:"absolute",top:0,transform:"translateX(-50%)",left:"50%",zIndex:-1}}),l.jsx(Lt,{}),l.jsxs(Yn,{value:y??"",onValueChange:Me=>{fe(Me)},children:[l.jsx(Gn,{className:"music-selecttrigger",style:{zIndex:10,position:"relative"},children:l.jsx(dr,{placeholder:"Selecciona una radio..."})}),l.jsx(Kn,{children:m.map(Me=>{const tt=Ue(Me);return l.jsx(t1,{value:Me,children:l.jsxs("div",{className:"music-elem",children:[l.jsx("span",{className:ht(Me),children:l.jsx(tt,{})}),l.jsxs("span",{children:[Me[0].toUpperCase(),Me.slice(1)]})]})},Me)})})]})]}),l.jsxs("div",{className:"music-controls-row",style:{transform:"translateY(-30%)"},children:[l.jsx("button",{type:"button",className:"music-ctl",onClick:()=>{Ct()},disabled:!w||o,title:"Anterior",children:l.jsx(hS,{size:20})}),l.jsx("button",{type:"button",className:"music-ctl music-ctl-play",onClick:()=>{me()},title:c?"Pausar":"Reproducir",children:c?l.jsx(s6,{weight:"Bold",size:24}):l.jsx(l6,{weight:"Bold",size:24})}),l.jsx("button",{type:"button",className:"music-ctl",onClick:()=>{He()},title:"Saltar",children:l.jsx(dS,{size:20})})]}),l.jsxs("div",{className:"music-volume-row",children:[O<=.01?l.jsx(gS,{size:24}):l.jsx(mS,{size:24}),l.jsx("input",{className:"music-volume-slider",type:"range",min:0,max:1,step:.01,value:O,onChange:mt,"aria-label":"Volumen"}),l.jsxs("span",{className:"music-volume-value",children:[Math.round(O*100),"%"]})]}),h?l.jsx("p",{className:"music-status music-status-error",children:h}):null]}):null]}),l.jsx("audio",{ref:T,className:"music-audio-hidden",preload:"none"}),l.jsx("audio",{ref:P,className:"music-audio-hidden",preload:"none"})]})};function m5({children:e,left:t,right:n,showMenuBar:r=!0}){const o=is(),{scene:s,locale:c,messages:d,openTopbarPanel:h,setLocale:p,setScene:m,setSceneWithoutHistory:v,setOpenTopbarPanel:y,handlers:b}=o,D=h==="sidebar",S=l.jsxs(l.Fragment,{children:[l.jsx(RH,{messages:d,isOpen:h==="timer",onOpenChange:L=>y(L?"timer":null)}),l.jsx(HH,{messages:d,isOpen:h==="music",onOpenChange:L=>y(L?"music":null)}),l.jsx("div",{className:`sidebar-launcher-wrap ${D?"active":""}`,children:l.jsx("button",{type:"button",className:"sidebar-launcher",onClick:()=>y(L=>L==="sidebar"?null:"sidebar"),"aria-expanded":D,"aria-controls":"search-library-sidebar",title:"Abrir sidebar",children:l.jsx(rS,{weight:"Bold"})})})]});return l.jsxs("div",{className:"drawo-topbar",children:[l.jsxs("div",{className:"drawo-topbar-left",children:[e,r&&l.jsx(AH,{scene:s,locale:c,messages:d,setLocale:p,setScene:m,setSceneWithoutHistory:v,onExportProject:b.handleExportProject,onExportImage:b.handleExportImage,onOpenProject:b.handleOpenProject}),t]}),l.jsx("div",{className:"drawo-topbar-right",children:n!==void 0?n:S})]})}m5.displayName="DrawoTopBar";var ZH={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ee.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},VH={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=m1.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},WH={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=Te.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},hc=new WeakMap,pc=new WeakMap,t5=new WeakMap,bS=new WeakMap,xg=new WeakMap,wg=new WeakMap,bg=new WeakMap,ee={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=ee.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],s=t[r];if(o!==s)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),s=e[n],c=t[n];return ee.equals(r,o)&&s>c},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return ee.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),s=e[n],c=t[n];return ee.equals(r,o)&&s<c},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return ee.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&ee.compare(e,t)===0},isBefore(e,t){return ee.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&ee.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&ee.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&ee.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&ee.compare(e,t)===0},isPath(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],s=t[t.length-1];return o!==s&&ee.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!ee.isAncestor(t,e)&&!ee.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:s}=t;(ee.equals(s,r)||ee.endsBefore(s,r)||ee.isAncestor(s,r))&&(r[s.length-1]+=1);break}case"remove_node":{var{path:c}=t;if(ee.equals(c,r)||ee.isAncestor(c,r))return null;ee.endsBefore(c,r)&&(r[c.length-1]-=1);break}case"merge_node":{var{path:d,position:h}=t;ee.equals(d,r)||ee.endsBefore(d,r)?r[d.length-1]-=1:ee.isAncestor(d,r)&&(r[d.length-1]-=1,r[d.length]+=h);break}case"split_node":{var{path:p,position:m}=t;if(ee.equals(p,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else ee.endsBefore(p,r)?r[p.length-1]+=1:ee.isAncestor(p,r)&&e[p.length]>=m&&(r[p.length-1]+=1,r[p.length]-=m);break}case"move_node":{var{path:v,newPath:y}=t;if(ee.equals(v,y))return r;if(ee.isAncestor(v,r)||ee.equals(v,r)){var b=y.slice();return ee.endsBefore(v,y)&&v.length<y.length&&(b[v.length-1]-=1),b.concat(r.slice(v.length))}else ee.isSibling(v,y)&&(ee.isAncestor(y,r)||ee.equals(y,r))?ee.endsBefore(v,r)?r[v.length-1]-=1:r[v.length-1]+=1:ee.endsBefore(y,r)||ee.equals(y,r)||ee.isAncestor(y,r)?(ee.endsBefore(v,r)&&(r[v.length-1]-=1),r[y.length-1]+=1):ee.endsBefore(v,r)&&(ee.equals(y,r)&&(r[y.length-1]+=1),r[v.length-1]-=1);break}}return r}};function v5(e){"@babel/helpers - typeof";return v5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v5(e)}function $H(e,t){if(v5(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(v5(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UH(e){var t=$H(e,"string");return v5(t)==="symbol"?t:String(t)}function On(e,t,n){return t=UH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qH(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function yo(e,t){if(e==null)return{};var n=qH(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var YH=["anchor","focus"];function Sg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function GH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Te={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Te.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Te.edges(e);return t},equals(e,t){return m1.equals(e.anchor,t.anchor)&&m1.equals(e.focus,t.focus)},surrounds(e,t){var n=Te.intersection(e,t);return n?Te.equals(n,t):!1},includes(e,t){if(Rt.isRange(t)){if(Te.includes(e,t.anchor)||Te.includes(e,t.focus))return!0;var[n,r]=Te.edges(e),[o,s]=Te.edges(t);return m1.isBefore(n,o)&&m1.isAfter(r,s)}var[c,d]=Te.edges(e),h=!1,p=!1;return Rt.isPoint(t)?(h=m1.compare(t,c)>=0,p=m1.compare(t,d)<=0):(h=ee.compare(t,c.path)>=0,p=ee.compare(t,d.path)<=0),h&&p},intersection(e,t){var n=yo(e,YH),[r,o]=Te.edges(e),[s,c]=Te.edges(t),d=m1.isBefore(r,s)?s:r,h=m1.isBefore(o,c)?o:c;return m1.isBefore(h,d)?null:GH({anchor:d,focus:h},n)},isBackward(e){var{anchor:t,focus:n}=e;return m1.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return m1.equals(t,n)},isExpanded(e){return!Te.isCollapsed(e)},isForward(e){return!Te.isBackward(e)},isRange(e){return Pn(e)&&m1.isPoint(e.anchor)&&m1.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Te.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="inward"}=n,o,s;if(r==="inward"){var c=Te.isCollapsed(e);Te.isForward(e)?(o="forward",s=c?o:"backward"):(o="backward",s=c?o:"forward")}else r==="outward"?Te.isForward(e)?(o="backward",s="forward"):(o="forward",s="backward"):(o=r,s=r);var d=m1.transform(e.anchor,t,{affinity:o}),h=m1.transform(e.focus,t,{affinity:s});return!d||!h?null:{anchor:d,focus:h}}},Dg=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Pn(t))return!1;var r=typeof t.apply=="function";if(r)return!1;var o=n?re.isNodeList(t.children):Array.isArray(t.children);return o},z0={isAncestor(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Pn(e)&&re.isNodeList(e.children,{deep:t})},isElement:Dg,isElementList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>z0.isElement(n,{deep:t}))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Dg(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},KH=["text"],XH=["children"];function Lg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var re={ancestor(e,t){var n=re.get(e,t);if(re.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(gn.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of ee.ancestors(t,n)){var o=re.ancestor(e,r),s=[o,r];yield s}})()},child(e,t){if(re.isText(e))throw new Error("Cannot get the child of a text node: ".concat(gn.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(gn.stringify(e)));return n},children(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var{reverse:r=!1}=n,o=re.ancestor(e,t),{children:s}=o,c=r?s.length-1:0;r?c>=0:c<s.length;){var d=re.child(o,c),h=t.concat(c);yield[d,h],c=r?c-1:c+1}})()},common(e,t,n){var r=ee.common(t,n),o=re.get(e,r);return[o,r]},descendant(e,t){var n=re.get(e,t);if(re.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(gn.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of re.nodes(e,t))r.length!==0&&(yield[n,r])})()},elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of re.nodes(e,t))re.isElement(n)&&(yield[n,r])})()},extractProps(e){if(re.isText(e)){var t=yo(e,KH);return t}else{var t=yo(e,XH);return t}},first(e,t){for(var n=t.slice(),r=re.get(e,n);r&&!(re.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){var n={children:e.children},[r,o]=Te.edges(t),s=re.nodes(n,{reverse:!0,pass:h=>{var[,p]=h;return!Te.includes(t,p)}}),c=function(){if(!Te.includes(t,d)){var p=d[d.length-1];zi(n,ee.parent(d),m=>Y8(m,p,1))}ee.equals(d,o.path)&&gc(n,d,m=>{var v=m.text.slice(0,o.offset);return w0(w0({},m),{},{text:v})}),ee.equals(d,r.path)&&gc(n,d,m=>{var v=m.text.slice(r.offset);return w0(w0({},m),{},{text:v})})};for(var[,d]of s)c();return n.children},get(e,t){var n=re.getIf(e,t);if(n===void 0)throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(gn.stringify(e)));return n},getIf(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(re.isText(n)||!n.children[o])return;n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(re.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isAncestor(e){return!re.isText(e)},isEditor(e){return typeof e.apply=="function"},isElement(e){return Array.isArray(e.children)&&typeof e.apply!="function"},isNode(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return go.isText(e)||z0.isElement(e,{deep:t})||R.isEditor(e,{deep:t})},isNodeList(e){var{deep:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Array.isArray(e)&&e.every(n=>re.isNode(n,{deep:t}))},isText(e){return typeof e.text=="string"},last(e,t){for(var n=t.slice(),r=re.get(e,n);r&&!(re.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=re.get(e,t);if(!re.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(gn.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return(function*(){for(var r of ee.levels(t,n)){var o=re.get(e,r);yield[o,r]}})()},matches(e,t){return re.isElement(e)&&z0.isElementProps(t)&&z0.matches(e,t)||re.isText(e)&&go.isTextProps(t)&&go.matches(e,t)},nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:s}=t,c=new Set,d=[],h=e;!(s&&(r?ee.isBefore(d,s):ee.isAfter(d,s)));){if(c.has(h)||(yield[h,d]),!c.has(h)&&!re.isText(h)&&h.children.length!==0&&(n==null||n([h,d])===!1)){c.add(h);var p=r?h.children.length-1:0;ee.isAncestor(d,o)&&(p=o[d.length]),d=d.concat(p),h=re.get(e,d);continue}if(d.length===0)break;if(!r){var m=ee.next(d);if(re.has(e,m)){d=m,h=re.get(e,d);continue}}if(r&&d[d.length-1]!==0){var v=ee.previous(d);d=v,h=re.get(e,d);continue}d=ee.parent(d),h=re.get(e,d),c.add(h)}})()},parent(e,t){var n=ee.parent(t),r=re.get(e,n);if(re.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return re.isText(e)?e.text:e.children.map(re.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){for(var[n,r]of re.nodes(e,t))re.isText(n)&&(yield[n,r])})()}};function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ri={isNodeOperation(e){return ri.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Pn(e))return!1;switch(e.type){case"insert_node":return ee.isPath(e.path)&&re.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&ee.isPath(e.path);case"merge_node":return typeof e.position=="number"&&ee.isPath(e.path)&&Pn(e.properties);case"move_node":return ee.isPath(e.path)&&ee.isPath(e.newPath);case"remove_node":return ee.isPath(e.path)&&re.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&ee.isPath(e.path);case"set_node":return ee.isPath(e.path)&&Pn(e.properties)&&Pn(e.newProperties);case"set_selection":return e.properties===null&&Te.isRange(e.newProperties)||e.newProperties===null&&Te.isRange(e.properties)||Pn(e.properties)&&Pn(e.newProperties);case"split_node":return ee.isPath(e.path)&&typeof e.position=="number"&&Pn(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>ri.isOperation(t))},isSelectionOperation(e){return ri.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return ri.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return _1(_1({},e),{},{type:"remove_node"});case"insert_text":return _1(_1({},e),{},{type:"remove_text"});case"merge_node":return _1(_1({},e),{},{type:"split_node",path:ee.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(ee.equals(t,n))return e;if(ee.isSibling(n,t))return _1(_1({},e),{},{path:t,newPath:n});var r=ee.transform(n,e),o=ee.transform(ee.next(n),e);return _1(_1({},e),{},{path:r,newPath:o})}case"remove_node":return _1(_1({},e),{},{type:"insert_node"});case"remove_text":return _1(_1({},e),{},{type:"insert_text"});case"set_node":{var{properties:s,newProperties:c}=e;return _1(_1({},e),{},{properties:c,newProperties:s})}case"set_selection":{var{properties:d,newProperties:h}=e;return d==null?_1(_1({},e),{},{properties:h,newProperties:null}):h==null?_1(_1({},e),{},{properties:null,newProperties:d}):_1(_1({},e),{},{properties:h,newProperties:d})}case"split_node":return _1(_1({},e),{},{type:"merge_node",path:ee.next(e.path)})}}},Pn=e=>typeof e=="object"&&e!==null,SS=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var s=0;s<r.length;s++)if(r[s]!==o[s])return!1}else if(Pn(r)&&Pn(o)){if(!SS(r,o))return!1}else if(r!==o)return!1}for(var c in t)if(e[c]===void 0&&t[c]!==void 0)return!1;return!0},u6=e=>e.selection?e.selection:e.children.length>0?R.end(e,[]):[0],I2=(e,t)=>{var[n]=R.node(e,t);return r=>r===n},c6=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?rZ(t):t,s=jt.None,c=jt.None,d=0,h=null,p=null;for(var m of o){var v=m.codePointAt(0);if(!v)break;var y=CZ(m,v);if([s,c]=r?[c,y]:[y,s],l2(s,jt.ZWJ)&&l2(c,jt.ExtPict)&&(r?h=Eg(t.substring(0,d)):h=Eg(t.substring(0,t.length-d)),!h)||l2(s,jt.RI)&&l2(c,jt.RI)&&(p!==null?p=!p:r?p=!0:p=xZ(t.substring(0,t.length-d)),!p)||s!==jt.None&&c!==jt.None&&mZ(s,c))break;d+=m.length}return d||1},QH=/\s/,JH=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,eZ=/['\u2018\u2019]/,tZ=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var s=c6(t,n),[c,d]=f6(t,s,n);if(nZ(c,d,n))o=!0,r+=s;else if(!o)r+=s;else break;t=d}return r},f6=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},nZ=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(QH.test(t))return!1;if(eZ.test(t)){var o=c6(n,r),[s,c]=f6(n,o,r);if(e(s,c,r))return!0}return!JH.test(t)},rZ=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(oZ(o.charCodeAt(0))){var s=t.charAt(n-r-1);if(aZ(s.charCodeAt(0))){yield s+o,r++;continue}}yield o}},aZ=e=>e>=55296&&e<=56319,oZ=e=>e>=56320&&e<=57343,jt;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(jt||(jt={}));var iZ=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,sZ=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,lZ=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,uZ=/^[\u1100-\u115F\uA960-\uA97C]$/,cZ=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,fZ=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,dZ=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,hZ=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,pZ=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,CZ=(e,t)=>{var n=jt.Any;return e.search(iZ)!==-1&&(n|=jt.Extend),t===8205&&(n|=jt.ZWJ),t>=127462&&t<=127487&&(n|=jt.RI),e.search(sZ)!==-1&&(n|=jt.Prepend),e.search(lZ)!==-1&&(n|=jt.SpacingMark),e.search(uZ)!==-1&&(n|=jt.L),e.search(cZ)!==-1&&(n|=jt.V),e.search(fZ)!==-1&&(n|=jt.T),e.search(dZ)!==-1&&(n|=jt.LV),e.search(hZ)!==-1&&(n|=jt.LVT),e.search(pZ)!==-1&&(n|=jt.ExtPict),n};function l2(e,t){return(e&t)!==0}var gZ=[[jt.L,jt.L|jt.V|jt.LV|jt.LVT],[jt.LV|jt.V,jt.V|jt.T],[jt.LVT|jt.T,jt.T],[jt.Any,jt.Extend|jt.ZWJ],[jt.Any,jt.SpacingMark],[jt.Prepend,jt.Any],[jt.ZWJ,jt.ExtPict],[jt.RI,jt.RI]];function mZ(e,t){return gZ.findIndex(n=>l2(e,n[0])&&l2(t,n[1]))===-1}var vZ=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Eg=e=>e.search(vZ)!==-1,yZ=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,xZ=e=>{var t=e.match(yZ);if(t===null)return!1;var n=t[0].length/2;return n%2===1},wZ=function(t){var{deep:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Pn(t))return!1;var r=typeof t.above=="function"&&typeof t.addMark=="function"&&typeof t.after=="function"&&typeof t.apply=="function"&&typeof t.before=="function"&&typeof t.collapse=="function"&&typeof t.delete=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.deselect=="function"&&typeof t.edges=="function"&&typeof t.elementReadOnly=="function"&&typeof t.end=="function"&&typeof t.first=="function"&&typeof t.fragment=="function"&&typeof t.getDirtyPaths=="function"&&typeof t.getFragment=="function"&&typeof t.getMarks=="function"&&typeof t.hasBlocks=="function"&&typeof t.hasInlines=="function"&&typeof t.hasPath=="function"&&typeof t.hasTexts=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertNodes=="function"&&typeof t.insertSoftBreak=="function"&&typeof t.insertText=="function"&&typeof t.isBlock=="function"&&typeof t.isEdge=="function"&&typeof t.isElementReadOnly=="function"&&typeof t.isEmpty=="function"&&typeof t.isEnd=="function"&&typeof t.isInline=="function"&&typeof t.isNormalizing=="function"&&typeof t.isSelectable=="function"&&typeof t.isStart=="function"&&typeof t.isVoid=="function"&&typeof t.last=="function"&&typeof t.leaf=="function"&&typeof t.levels=="function"&&typeof t.liftNodes=="function"&&typeof t.markableVoid=="function"&&typeof t.mergeNodes=="function"&&typeof t.move=="function"&&typeof t.moveNodes=="function"&&typeof t.next=="function"&&typeof t.node=="function"&&typeof t.nodes=="function"&&typeof t.normalize=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.parent=="function"&&typeof t.path=="function"&&typeof t.pathRef=="function"&&typeof t.pathRefs=="function"&&typeof t.point=="function"&&typeof t.pointRef=="function"&&typeof t.pointRefs=="function"&&typeof t.positions=="function"&&typeof t.previous=="function"&&typeof t.range=="function"&&typeof t.rangeRef=="function"&&typeof t.rangeRefs=="function"&&typeof t.removeMark=="function"&&typeof t.removeNodes=="function"&&typeof t.select=="function"&&typeof t.setNodes=="function"&&typeof t.setNormalizing=="function"&&typeof t.setPoint=="function"&&typeof t.setSelection=="function"&&typeof t.shouldMergeNodesRemovePrevNode=="function"&&typeof t.shouldNormalize=="function"&&typeof t.splitNodes=="function"&&typeof t.start=="function"&&typeof t.string=="function"&&typeof t.unhangRange=="function"&&typeof t.unsetNodes=="function"&&typeof t.unwrapNodes=="function"&&typeof t.void=="function"&&typeof t.withoutNormalizing=="function"&&typeof t.wrapNodes=="function"&&(t.marks===null||Pn(t.marks))&&(t.selection===null||Te.isRange(t.selection))&&(n?re.isNodeList(t.children)&&ri.isOperationList(t.operations):Array.isArray(t.children)&&Array.isArray(t.operations));return r},R={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor:wZ,isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)},Rt={isLocation(e){return ee.isPath(e)||m1.isPoint(e)||Te.isRange(e)},isPath(e){return Array.isArray(e)},isPoint(e){return"offset"in e},isRange(e){return"anchor"in e},isSpan(e){return Array.isArray(e)&&Array.isArray(e[0])}};function kg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function jg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var m1={compare(e,t){var n=ee.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return m1.compare(e,t)===1},isBefore(e,t){return m1.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&ee.equals(e.path,t.path)},isPoint(e){return Pn(e)&&typeof e.offset=="number"&&ee.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e===null)return null;var{affinity:r="forward"}=n,{path:o,offset:s}=e;switch(t.type){case"insert_node":case"move_node":{o=ee.transform(o,t,n);break}case"insert_text":{ee.equals(t.path,o)&&(t.offset<s||t.offset===s&&r==="forward")&&(s+=t.text.length);break}case"merge_node":{ee.equals(t.path,o)&&(s+=t.position),o=ee.transform(o,t,n);break}case"remove_text":{ee.equals(t.path,o)&&t.offset<=s&&(s-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(ee.equals(t.path,o)||ee.isAncestor(t.path,o))return null;o=ee.transform(o,t,n);break}case"split_node":{if(ee.equals(t.path,o)){if(t.position===s&&r==null)return null;(t.position<s||t.position===s&&r==="forward")&&(s-=t.position,o=ee.transform(o,t,jg(jg({},n),{},{affinity:"forward"})))}else o=ee.transform(o,t,n);break}default:return e}return{path:o,offset:s}}},Ag=void 0,gn={setScrubber(e){Ag=e},stringify(e){return JSON.stringify(e,Ag)}},bZ=["text"],SZ=["anchor","focus","merge"];function Og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function co(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Og(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var go={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(s){var c=yo(s,bZ);return c}return SS(r?o(e):e,r?o(t):t)},isText(e){return Pn(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>go.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[{leaf:co({},e)}];for(var r of t){var{anchor:o,focus:s,merge:c}=r,d=yo(r,SZ),[h,p]=Te.edges(r),m=[],v=0,y=h.offset,b=p.offset,D=c??Object.assign;for(var{leaf:S}of n){var{length:L}=S.text,M=v;if(v+=L,y<=M&&v<=b){D(S,d),m.push({leaf:S});continue}if(y!==b&&(y===v||b===M)||y>v||b<M||b===M&&M!==0){m.push({leaf:S});continue}var w=S,E=void 0,O=void 0;if(b<v){var B=b-M;O={leaf:co(co({},w),{},{text:w.text.slice(B)})},w=co(co({},w),{},{text:w.text.slice(0,B)})}if(y>M){var T=y-M;E={leaf:co(co({},w),{},{text:w.text.slice(0,T)})},w=co(co({},w),{},{text:w.text.slice(T)})}D(w,d),E&&m.push(E),m.push({leaf:w}),O&&m.push(O)}n=m}if(n.length>1){var P=0;for(var[_,Z]of n.entries()){var K=P,W=K+Z.leaf.text.length,z={start:K,end:W};_===0&&(z.isFirst=!0),_===n.length-1&&(z.isLast=!0),Z.position=z,P=W}}return n}};function Bg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rg=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return[...t.slice(0,n),...o,...t.slice(n)]},y5=function(t,n,r){for(var o=arguments.length,s=new Array(o>3?o-3:0),c=3;c<o;c++)s[c-3]=arguments[c];return[...t.slice(0,n),...s,...t.slice(n+r)]},Y8=y5,d6=(e,t,n)=>{if(t.length===0)throw new Error("Cannot modify the editor");for(var r=re.get(e,t),o=t.slice(),s=n(r);o.length>1;){var c=o.pop(),d=re.get(e,o);s=Cc(Cc({},d),{},{children:y5(d.children,c,1,s)})}var h=o.pop();e.children=y5(e.children,h,1,s)},zi=(e,t,n)=>{t.length===0?e.children=n(e.children):d6(e,t,r=>{if(re.isText(r))throw new Error("Cannot get the element at path [".concat(t,"] because it refers to a leaf node: ").concat(gn.stringify(r)));return Cc(Cc({},r),{},{children:n(r.children)})})},gc=(e,t,n)=>d6(e,t,r=>{if(!re.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(gn.stringify(r)));return n(r)});function Tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function J1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var DZ={transform(e,t){var n=!1;switch(t.type){case"insert_node":{var{path:r,node:o}=t;zi(e,ee.parent(r),fe=>{var me=r[r.length-1];if(me>fe.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));return Rg(fe,me,o)}),n=!0;break}case"insert_text":{var{path:s,offset:c,text:d}=t;if(d.length===0)break;gc(e,s,fe=>{var me=fe.text.slice(0,c),Se=fe.text.slice(c);return J1(J1({},fe),{},{text:me+d+Se})}),n=!0;break}case"merge_node":{var{path:h}=t,p=h[h.length-1],m=ee.previous(h),v=m[m.length-1];zi(e,ee.parent(h),fe=>{var me=fe[p],Se=fe[v],Xe;if(re.isText(me)&&re.isText(Se))Xe=J1(J1({},Se),{},{text:Se.text+me.text});else if(re.isElement(me)&&re.isElement(Se))Xe=J1(J1({},Se),{},{children:Se.children.concat(me.children)});else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(h,"] to nodes of different interfaces: ").concat(gn.stringify(me)," ").concat(gn.stringify(Se)));return y5(fe,v,2,Xe)}),n=!0;break}case"move_node":{var{path:y,newPath:b}=t,D=y[y.length-1];if(ee.isAncestor(y,b))throw new Error("Cannot move a path [".concat(y,"] to new path [").concat(b,"] because the destination is inside itself."));var S=re.get(e,y);zi(e,ee.parent(y),fe=>Y8(fe,D,1));var L=ee.transform(y,t),M=L[L.length-1];zi(e,ee.parent(L),fe=>Rg(fe,M,S)),n=!0;break}case"remove_node":{var{path:w}=t,E=w[w.length-1];if(zi(e,ee.parent(w),fe=>Y8(fe,E,1)),e.selection){var O=J1({},e.selection);for(var[B,T]of Te.points(O)){var P=m1.transform(B,t);if(O!=null&&P!=null)O[T]=P;else{var _=void 0,Z=void 0;for(var[K,W]of re.texts(e))if(ee.compare(W,w)===-1)_=[K,W];else{Z=[K,W];break}var z=!1;_&&Z&&(ee.isSibling(_[1],w)?z=!1:ee.equals(Z[1],w)?z=!0:z=ee.common(_[1],w).length<ee.common(Z[1],w).length),_&&!z?O[T]={path:_[1],offset:_[0].text.length}:Z?O[T]={path:Z[1],offset:0}:O=null}}(!O||!Te.equals(O,e.selection))&&(e.selection=O)}break}case"remove_text":{var{path:q,offset:te,text:X}=t;if(X.length===0)break;gc(e,q,fe=>{var me=fe.text.slice(0,te),Se=fe.text.slice(te+X.length);return J1(J1({},fe),{},{text:me+Se})}),n=!0;break}case"set_node":{var{path:H,properties:Q,newProperties:oe}=t;if(H.length===0)throw new Error("Cannot set properties on the root node!");d6(e,H,fe=>{var me=J1({},fe);for(var Se in oe){if(Se==="children"||Se==="text")throw new Error('Cannot set the "'.concat(Se,'" property of nodes!'));var Xe=oe[Se];Xe==null?delete me[Se]:me[Se]=Xe}for(var He in Q)oe.hasOwnProperty(He)||delete me[He];return me});break}case"set_selection":{var{newProperties:U}=t;if(U==null){e.selection=null;break}if(e.selection==null){if(!(U.anchor&&U.focus))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(gn.stringify(U)," when there is no current selection."));e.selection=J1({},U);break}var ie=J1({},e.selection);for(var N in U){var $=U[N];if($==null){if(N==="anchor"||N==="focus")throw new Error('Cannot remove the "'.concat(N,'" selection property'));delete ie[N]}else ie[N]=$}e.selection=ie;break}case"split_node":{var{path:V,position:se,properties:ke}=t,We=V[V.length-1];if(V.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(V,"] because the root node cannot be split."));zi(e,ee.parent(V),fe=>{var me=fe[We],Se,Xe;if(re.isText(me)){var He=me.text.slice(0,se),Ct=me.text.slice(se);Se=J1(J1({},me),{},{text:He}),Xe=J1(J1({},ke),{},{text:Ct})}else{var mt=me.children.slice(0,se),dt=me.children.slice(se);Se=J1(J1({},me),{},{children:mt}),Xe=J1(J1({},ke),{},{children:dt})}return y5(fe,We,1,Se,Xe)}),n=!0;break}}if(n&&e.selection){var Ae=J1({},e.selection);for(var[Qe,I]of Te.points(Ae))Ae[I]=m1.transform(Qe,t);Te.equals(Ae,e.selection)||(e.selection=Ae)}}},LZ={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},MZ={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},EZ={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=u6(e)}=n;if(Rt.isPath(o)&&(o=R.range(e,o)),Rt.isRange(o))if(Te.isCollapsed(o))o=o.anchor;else{var s=Te.end(o);if(!r&&R.void(e,{at:s}))return;var c=Te.start(o),d=R.pointRef(e,c),h=R.pointRef(e,s);Pe.delete(e,{at:o,voids:r});var p=d.unref(),m=h.unref();o=p||m,Pe.setSelection(e,{anchor:o,focus:o})}if(!(!r&&R.void(e,{at:o})||R.elementReadOnly(e,{at:o}))){var{path:v,offset:y}=o;t.length>0&&e.apply({type:"insert_text",path:v,offset:y,text:t})}})}};function Ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function b0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ng(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Pe=b0(b0(b0(b0({},DZ),LZ),MZ),EZ),H0=new WeakMap,kZ=e=>H0.get(e)||!1,jZ=(e,t,n)=>{var r=H0.get(e)||!1;H0.set(e,!0);try{t(),n()}finally{H0.set(e,r)}};function DS(e,t,n){var r=hc.get(e)||[],o=pc.get(e)||new Set,s,c,d=v=>{if(v){var y=v.join(",");c.has(y)||(c.add(y),s.push(v))}};if(n){s=[],c=new Set;for(var h of r){var p=n(h);d(p)}}else s=r,c=o;for(var m of t)d(m);hc.set(e,s),pc.set(e,c)}var AZ=(e,t)=>{for(var n of R.pathRefs(e))ZH.transform(n,t);for(var r of R.pointRefs(e))VH.transform(r,t);for(var o of R.rangeRefs(e))WH.transform(o,t);if(!kZ(e)){var s=ee.operationCanTransformPath(t)?c=>ee.transform(c,t):void 0;DS(e,e.getDirtyPaths(t),s)}Pe.transform(e,t),e.operations.push(t),R.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),t5.get(e)||(t5.set(e,!0),Promise.resolve().then(()=>{t5.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},OZ=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return ee.levels(n)}case"insert_node":{var{node:r,path:o}=t,s=ee.levels(o),c=re.isText(r)?[]:Array.from(re.nodes(r),K=>{var[,W]=K;return o.concat(W)});return[...s,...c]}case"merge_node":{var{path:d}=t,h=ee.ancestors(d),p=ee.previous(d);return[...h,p]}case"move_node":{var{path:m,newPath:v}=t;if(ee.equals(m,v))return[];var y=[],b=[];for(var D of ee.ancestors(m)){var S=ee.transform(D,t);y.push(S)}for(var L of ee.ancestors(v)){var M=ee.transform(L,t);b.push(M)}var w=b[b.length-1],E=v[v.length-1],O=w.concat(E);return[...y,...b,O]}case"remove_node":{var{path:B}=t,T=ee.ancestors(B);return[...T]}case"split_node":{var{path:P}=t,_=ee.levels(P),Z=ee.next(P);return[..._,Z]}default:return[]}},BZ=e=>{var{selection:t}=e;return t?re.fragment(e,t):[]},RZ=(e,t,n)=>{var[r,o]=t;if(!re.isText(r)){"children"in r||(r.children=[]);var s=r;if(s!==e&&s.children.length===0){var c={text:""};Pe.insertNodes(e,c,{at:o.concat(0),voids:!0}),s=re.get(e,o)}var d=s!==e&&(e.isInline(s)||re.isText(s.children[0])||e.isInline(s.children[0]));if(d)for(var h=0;h<s.children.length;h++){var p=s.children[h],m=s.children[h-1];if(re.isText(p))m!=null&&re.isText(m)&&(p.text===""?(Pe.removeNodes(e,{at:o.concat(h),voids:!0}),s=re.get(e,o),h--):m.text===""?(Pe.removeNodes(e,{at:o.concat(h-1),voids:!0}),s=re.get(e,o),h--):go.equals(p,m,{loose:!0})&&(Pe.mergeNodes(e,{at:o.concat(h),voids:!0}),s=re.get(e,o),h--));else if(e.isInline(p)){if(m==null||!re.isText(m)){var v={text:""};Pe.insertNodes(e,v,{at:o.concat(h),voids:!0}),s=re.get(e,o),h++}if(h===s.children.length-1){var y={text:""};Pe.insertNodes(e,y,{at:o.concat(h+1),voids:!0}),s=re.get(e,o),h++}}else Pe.unwrapNodes(e,{at:o.concat(h),voids:!0}),s=re.get(e,o),h--}else for(var b=0;b<s.children.length;b++){var D=s.children[b];(re.isText(D)||e.isInline(D))&&(n!=null&&n.fallbackElement?Pe.wrapNodes(e,n.fallbackElement(),{at:o.concat(b),voids:!0}):Pe.removeNodes(e,{at:o.concat(b),voids:!0}),s=re.get(e,o),b--)}}},TZ=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=r*42;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},NZ=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:o="lowest",at:s=t.selection,match:c}=n;if(s){var d=R.path(t,s);if(!Rt.isRange(s)||ee.equals(s.focus.path,s.anchor.path)){if(d.length===0)return;d=ee.parent(d)}var h=o==="lowest",[p]=R.levels(t,{at:d,voids:r,match:c,reverse:h});return p}};function Fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var FZ=(e,t,n)=>{var{selection:r}=e;if(r){var o=(v,y)=>{if(!re.isText(v))return!1;var[b,D]=R.parent(e,y);return!e.isVoid(b)||e.markableVoid(b)},s=Te.isExpanded(r),c=!1;if(!s){var[d,h]=R.node(e,r);if(d&&o(d,h)){var[p]=R.parent(e,h);c=p&&e.markableVoid(p)}}if(s||c)Pe.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var m=Pg(Pg({},R.marks(e)||{}),{},{[t]:n});e.marks=m,t5.get(e)||e.onChange()}}};function _g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ig(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_g(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var PZ=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=R.point(t,n,{edge:"end"}),s=R.end(t,[]),c={anchor:o,focus:s},{distance:d=1}=r,h=0,p;for(var m of R.positions(t,Ig(Ig({},r),{},{at:c}))){if(h>d)break;h!==0&&(p=m),h++}return p};function zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Hg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _Z=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=R.start(t,[]),s=R.point(t,n,{edge:"start"}),c={anchor:o,focus:s},{distance:d=1}=r,h=0,p;for(var m of R.positions(t,Hg(Hg({},r),{},{at:c,reverse:!0}))){if(h>d)break;h!==0&&(p=m),h++}return p},IZ=(e,t)=>{var{selection:n}=e;n&&Te.isCollapsed(n)&&Pe.delete(e,{unit:t,reverse:!0})},zZ=(e,t)=>{var{selection:n}=e;n&&Te.isCollapsed(n)&&Pe.delete(e,{unit:t})},HZ=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&Te.isExpanded(r)&&Pe.delete(t,{reverse:n==="backward"})},ZZ=(e,t)=>[R.start(e,t),R.end(e,t)];function Zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Vg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var VZ=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R.above(t,Vg(Vg({},n),{},{match:r=>re.isElement(r)&&R.isElementReadOnly(t,r)}))},WZ=(e,t)=>R.point(e,t,{edge:"end"}),$Z=(e,t)=>{var n=R.path(e,t,{edge:"start"});return R.node(e,n)},UZ=(e,t)=>{var n=R.range(e,t);return re.fragment(e,n)};function Wg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $g(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qZ=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return R.above(t,$g($g({},n),{},{match:r=>re.isElement(r)&&R.isVoid(t,r)}))},YZ=(e,t)=>t.children.some(n=>re.isElement(n)&&R.isBlock(e,n)),GZ=(e,t)=>t.children.some(n=>re.isText(n)||R.isInline(e,n)),KZ=(e,t)=>re.has(e,t),XZ=(e,t)=>t.children.every(n=>re.isText(n)),QZ=e=>{Pe.splitNodes(e,{always:!0})},JZ=(e,t,n)=>{Pe.insertNodes(e,t,n)},eV=e=>{Pe.splitNodes(e,{always:!0})};function Ug(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ug(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ug(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var nV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:s}=t;if(o){if(s){var c=tV({text:n},s);Pe.insertNodes(t,c,{at:r.at,voids:r.voids})}else Pe.insertText(t,n,r);t.marks=null}},rV=(e,t)=>!e.isInline(t),aV=(e,t,n)=>R.isStart(e,t,n)||R.isEnd(e,t,n),oV=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&re.isText(r)&&r.text===""&&!e.isVoid(t)},iV=(e,t,n)=>{var r=R.end(e,n);return m1.equals(t,r)},sV=e=>{var t=bS.get(e);return t===void 0?!0:t},lV=(e,t,n)=>{if(t.offset!==0)return!1;var r=R.start(e,n);return m1.equals(t,r)},uV=(e,t)=>{var n=R.path(e,t,{edge:"end"});return R.node(e,n)},cV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=R.path(t,n,r),s=re.leaf(t,o);return[s,o]};function fV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:s}=t;if(s==null&&(s=()=>!0),!!n){var c=[],d=R.path(e,n);for(var[h,p]of re.levels(e,d))if(s(h,p)&&(c.push([h,p]),!o&&re.isElement(h)&&R.isVoid(e,h)))break;r&&c.reverse(),yield*c}})()}var dV=["text"],hV=["text"],pV=function(t){var{marks:n,selection:r}=t;if(!r)return null;var{anchor:o,focus:s}=r;if(n)return n;if(Te.isExpanded(r)){var c=Te.isBackward(r);c&&([s,o]=[o,s]);var d=R.isEnd(t,o,o.path);if(d){var h=R.after(t,o);h&&(o=h)}var[p]=R.nodes(t,{match:re.isText,at:{anchor:o,focus:s}});if(p){var[m]=p,v=yo(m,dV);return v}else return{}}var{path:y}=o,[b]=R.leaf(t,y);if(o.offset===0){var D=R.previous(t,{at:y,match:re.isText}),S=R.above(t,{match:B=>re.isElement(B)&&R.isVoid(t,B)&&t.markableVoid(B)});if(!S){var L=R.above(t,{match:B=>re.isElement(B)&&R.isBlock(t,B)});if(D&&L){var[M,w]=D,[,E]=L;ee.isAncestor(E,w)&&(b=M)}}}var O=yo(b,hV);return O},CV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:s,at:c=t.selection}=n;if(c){var d=R.after(t,c,{voids:o});if(d){var[,h]=R.last(t,[]),p=[d.path,h];if(Rt.isPath(c)&&c.length===0)throw new Error("Cannot get the next node from the root node!");if(s==null)if(Rt.isPath(c)){var[m]=R.parent(t,c);s=y=>m.children.includes(y)}else s=()=>!0;var[v]=R.nodes(t,{at:p,match:s,mode:r,voids:o});return v}}},gV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=R.path(t,n,r),s=re.get(t,o);return[s,o]};function mV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=e.selection,mode:r="all",universal:o=!1,reverse:s=!1,voids:c=!1,pass:d}=t,{match:h}=t;if(h||(h=()=>!0),!!n){var p,m;if(Rt.isSpan(n))p=n[0],m=n[1];else{var v=R.path(e,n,{edge:"start"}),y=R.path(e,n,{edge:"end"});p=s?y:v,m=s?v:y}var b=re.nodes(e,{reverse:s,from:p,to:m,pass:O=>{var[B,T]=O;return d&&d([B,T])?!0:re.isElement(B)?!!(!c&&(R.isVoid(e,B)||R.isElementReadOnly(e,B))):!1}}),D=[],S;for(var[L,M]of b){var w=S&&ee.compare(M,S[1])===0;if(!(r==="highest"&&w)){if(!h(L,M)){if(o&&!w&&re.isText(L))return;continue}if(r==="lowest"&&w){S=[L,M];continue}var E=r==="lowest"?S:[L,M];E&&(o?D.push(E):yield E),S=[L,M]}}r==="lowest"&&S&&(o?D.push(S):yield S),o&&(yield*D)}})()}var vV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,s=m=>hc.get(m)||[],c=m=>pc.get(m)||new Set,d=m=>{var v=s(m).pop(),y=v.join(",");return c(m).delete(y),v};if(R.isNormalizing(t)){if(r){var h=Array.from(re.nodes(t),m=>{var[,v]=m;return v}),p=new Set(h.map(m=>m.join(",")));hc.set(t,h),pc.set(t,p)}s(t).length!==0&&R.withoutNormalizing(t,()=>{for(var m of s(t))if(re.has(t,m)){var v=R.node(t,m),[y,b]=v;re.isElement(y)&&y.children.length===0&&t.normalizeNode(v,{operation:o})}for(var D=s(t),S=D.length,L=0;D.length!==0;){if(!t.shouldNormalize({dirtyPaths:D,iteration:L,initialDirtyPathsLength:S,operation:o}))return;var M=d(t);if(re.has(t,M)){var w=R.node(t,M);t.normalizeNode(w,{operation:o})}L++,D=s(t)}})}},yV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=R.path(t,n,r),s=ee.parent(o),c=R.node(t,s);return c},xV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,s={current:n,affinity:o,unref(){var{current:d}=s,h=R.pathRefs(t);return h.delete(s),s.current=null,d}},c=R.pathRefs(t);return c.add(s),s},wV=e=>{var t=xg.get(e);return t||(t=new Set,xg.set(e,t)),t},bV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:s}=r;if(Rt.isPath(n)){if(s==="start"){var[,c]=re.first(t,n);n=c}else if(s==="end"){var[,d]=re.last(t,n);n=d}}return Rt.isRange(n)&&(s==="start"?n=Te.start(n):s==="end"?n=Te.end(n):n=ee.common(n.anchor.path,n.focus.path)),Rt.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},SV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,s={current:n,affinity:o,unref(){var{current:d}=s,h=R.pointRefs(t);return h.delete(s),s.current=null,d}},c=R.pointRefs(t);return c.add(s),s},DV=e=>{var t=wg.get(e);return t||(t=new Set,wg.set(e,t)),t},LV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=r;if(Rt.isPath(n)){var s;if(o==="end"){var[,c]=re.last(t,n);s=c}else{var[,d]=re.first(t,n);s=d}var h=re.get(t,s);if(!re.isText(h))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(n,"] because it has no ").concat(o," text node."));return{path:s,offset:o==="end"?h.text.length:0}}if(Rt.isRange(n)){var[p,m]=Te.edges(n);return o==="start"?p:m}return n};function MV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(function*(){var{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:s=!1}=t;if(!n)return;var c=R.range(e,n),[d,h]=Te.edges(c),p=o?h:d,m=!1,v="",y=0,b=0,D=0,S=[],L=function*(T){var P=S.some(q=>ee.isAncestor(q,T));function*_(q){P||(yield q)}if(re.isElement(w)){if(!e.isSelectable(w)){if(S.push(T),o)return ee.hasPrevious(T)&&(yield*_(R.end(e,ee.previous(T)))),0;var Z=ee.next(T);return R.hasPath(e,Z)&&(yield*_(R.start(e,Z))),0}if(!s&&(e.isVoid(w)||e.isElementReadOnly(w)))return yield*_(R.start(e,T)),0;if(e.isInline(w))return 0;if(R.hasInlines(e,w)){var K=ee.isAncestor(T,h.path)?h:R.end(e,T),W=ee.isAncestor(T,d.path)?d:R.start(e,T);v=R.string(e,{anchor:W,focus:K},{voids:s}),m=!0}}if(re.isText(w)){var z=ee.equals(T,p.path);for(z?(b=o?p.offset:w.text.length-p.offset,D=p.offset):(b=w.text.length,D=o?b:0),(z||m||r==="offset")&&(yield*_({path:T,offset:D}),m=!1);;){if(y===0){if(v==="")break;y=O(v,r,o),v=f6(v,y,o)[1]}if(D=o?D-y:D+y,b=b-y,b<0){y=-b;break}y=0,yield*_({path:T,offset:D})}}},M;for(var[w,E]of R.nodes(e,{at:n,reverse:o,voids:s}))M=yield*L(E);function O(B,T,P){return T==="character"?c6(B,P):T==="word"?tZ(B,P):T==="line"||T==="block"?B.length:1}})()}var EV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:s,at:c=t.selection}=n;if(c){var d=R.before(t,c,{voids:o});if(d){var[,h]=R.first(t,[]),p=[d.path,h];if(Rt.isPath(c)&&c.length===0)throw new Error("Cannot get the previous node from the root node!");if(s==null)if(Rt.isPath(c)){var[m]=R.parent(t,c);s=y=>m.children.includes(y)}else s=()=>!0;var[v]=R.nodes(t,{reverse:!0,at:p,match:s,mode:r,voids:o});return v}}},kV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,s={current:n,affinity:o,unref(){var{current:d}=s,h=R.rangeRefs(t);return h.delete(s),s.current=null,d}},c=R.rangeRefs(t);return c.add(s),s},jV=e=>{var t=bg.get(e);return t||(t=new Set,bg.set(e,t)),t},AV=(e,t,n)=>{if(Rt.isRange(t)&&!n)return t;var r=R.start(e,t),o=R.end(e,n||t);return{anchor:r,focus:o}};function qg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BV=(e,t)=>{var{selection:n}=e;if(n){var r=(m,v)=>{if(!re.isText(m))return!1;var[y,b]=R.parent(e,v);return!e.isVoid(y)||e.markableVoid(y)},o=Te.isExpanded(n),s=!1;if(!o){var[c,d]=R.node(e,n);if(c&&r(c,d)){var[h]=R.parent(e,d);s=h&&e.markableVoid(h)}}if(o||s)Pe.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var p=OV({},R.marks(e)||{});delete p[t],e.marks=p,t5.get(e)||e.onChange()}}},RV=(e,t)=>{bS.set(e,t)},TV=(e,t)=>R.point(e,t,{edge:"start"}),NV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,s=R.range(t,n),[c,d]=Te.edges(s),h="";for(var[p,m]of R.nodes(t,{at:s,match:re.isText,voids:o})){var v=p.text;ee.equals(m,d.path)&&(v=v.slice(0,d.offset)),ee.equals(m,c.path)&&(v=v.slice(c.offset)),h+=v}return h},FV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,[s,c]=Te.edges(n);if(s.offset!==0||c.offset!==0||Te.isCollapsed(n)||ee.hasPrevious(c.path))return n;var d=R.above(t,{at:c,match:D=>re.isElement(D)&&R.isBlock(t,D),voids:o}),h=d?d[1]:[],p=R.start(t,s),m={anchor:p,focus:c},v=!0;for(var[y,b]of R.nodes(t,{at:m,match:re.isText,reverse:!0,voids:o})){if(v){v=!1;continue}if(y.text!==""||ee.isBefore(b,h)){c={path:b,offset:y.text.length};break}}return{anchor:s,focus:c}},PV=(e,t)=>{var n=R.isNormalizing(e);R.setNormalizing(e,!1);try{t()}finally{R.setNormalizing(e,n)}R.normalize(e)},_V=(e,t,n)=>{var[r,o]=t;return re.isElement(r)&&R.isEmpty(e,r)||re.isText(r)&&r.text===""&&o[o.length-1]!==0},IV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(t,()=>{var r,o,{reverse:s=!1,unit:c="character",distance:d=1,voids:h=!1}=n,{at:p=t.selection,hanging:m=!1}=n;if(p){var v=!1;if(Rt.isRange(p)&&Te.isCollapsed(p)&&(v=!0,p=p.anchor),Rt.isPoint(p)){var y=R.void(t,{at:p,mode:"highest"});if(!h&&y){var[,b]=y;p=b}else{var D={unit:c,distance:d},S=s?R.before(t,p,D)||R.start(t,[]):R.after(t,p,D)||R.end(t,[]);p={anchor:p,focus:S},m=!0}}if(Rt.isPath(p)){Pe.removeNodes(t,{at:p,voids:h});return}if(!Te.isCollapsed(p)){if(!m){var[,L]=Te.edges(p),M=R.end(t,[]);m1.equals(L,M)||(p=R.unhangRange(t,p,{voids:h}))}var[w,E]=Te.edges(p),O=R.above(t,{match:He=>re.isElement(He)&&R.isBlock(t,He),at:w,voids:h}),B=R.above(t,{match:He=>re.isElement(He)&&R.isBlock(t,He),at:E,voids:h}),T=O&&B&&!ee.equals(O[1],B[1]),P=ee.equals(w.path,E.path),_=h?null:(r=R.void(t,{at:w,mode:"highest"}))!==null&&r!==void 0?r:R.elementReadOnly(t,{at:w,mode:"highest"}),Z=h?null:(o=R.void(t,{at:E,mode:"highest"}))!==null&&o!==void 0?o:R.elementReadOnly(t,{at:E,mode:"highest"});if(_){var K=R.before(t,w);K&&O&&ee.isAncestor(O[1],K.path)&&(w=K)}if(Z){var W=R.after(t,E);W&&B&&ee.isAncestor(B[1],W.path)&&(E=W)}var z=[],q;for(var te of R.nodes(t,{at:p,voids:h})){var[X,H]=te;q&&ee.compare(H,q)===0||(!h&&re.isElement(X)&&(R.isVoid(t,X)||R.isElementReadOnly(t,X))||!ee.isCommon(H,w.path)&&!ee.isCommon(H,E.path))&&(z.push(te),q=H)}var Q=Array.from(z,He=>{var[,Ct]=He;return R.pathRef(t,Ct)}),oe=R.pointRef(t,w),U=R.pointRef(t,E),ie="";if(!P&&!_){var N=oe.current,[$]=R.leaf(t,N),{path:V}=N,{offset:se}=w,ke=$.text.slice(se);ke.length>0&&(t.apply({type:"remove_text",path:V,offset:se,text:ke}),ie=ke)}if(Q.reverse().map(He=>He.unref()).filter(He=>He!==null).forEach(He=>Pe.removeNodes(t,{at:He,voids:h})),!Z){var We=U.current,[Ae]=R.leaf(t,We),{path:Qe}=We,I=P?w.offset:0,fe=Ae.text.slice(I,E.offset);fe.length>0&&(t.apply({type:"remove_text",path:Qe,offset:I,text:fe}),ie=fe)}!P&&T&&U.current&&oe.current&&Pe.mergeNodes(t,{at:U.current,hanging:!0,voids:h}),v&&s&&c==="character"&&ie.length>1&&ie.match(/[\u0980-\u09FF\u0E00-\u0E7F\u1000-\u109F\u0900-\u097F\u1780-\u17FF\u0D00-\u0D7F\u0B00-\u0B7F\u0A00-\u0A7F\u0B80-\u0BFF\u0C00-\u0C7F]+/)&&Pe.insertText(t,ie.slice(0,ie.length-d));var me=oe.unref(),Se=U.unref(),Xe=s?me||Se:Se||me;n.at==null&&Xe&&Pe.select(t,Xe)}}})},zV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:s=!1}=r,{at:c=u6(t),batchDirty:d=!0}=r;if(n.length){if(Rt.isRange(c))if(o||(c=R.unhangRange(t,c,{voids:s})),Te.isCollapsed(c))c=c.anchor;else{var[,h]=Te.edges(c);if(!s&&R.void(t,{at:h}))return;var p=R.pointRef(t,h);Pe.delete(t,{at:c}),c=p.unref()}else Rt.isPath(c)&&(c=R.start(t,c));if(!(!s&&R.void(t,{at:c}))){var m=R.above(t,{at:c,match:V=>re.isElement(V)&&R.isInline(t,V),mode:"highest",voids:s});if(m){var[,v]=m;if(R.isEnd(t,c,v)){var y=R.after(t,v);c=y}else if(R.isStart(t,c,v)){var b=R.before(t,v);c=b}}var D=R.above(t,{match:V=>re.isElement(V)&&R.isBlock(t,V),at:c,voids:s}),[,S]=D,L=R.isStart(t,c,S),M=R.isEnd(t,c,S),w=L&&M,[,E]=re.first({children:n},[]),[,O]=re.last({children:n},[]),B=V=>{var[se,ke]=V,We=ke.length===0;return We?!1:w?!0:!(!L&&ee.isAncestor(ke,E)&&re.isElement(se)&&!t.isVoid(se)&&!t.isInline(se)||!M&&ee.isAncestor(ke,O)&&re.isElement(se)&&!t.isVoid(se)&&!t.isInline(se))},T=!0,P=[],_=[],Z=[];for(var K of re.nodes({children:n},{pass:B})){var[W,z]=K;T&&re.isElement(W)&&!t.isInline(W)&&!ee.isAncestor(z,E)&&(T=!1),B(K)&&(re.isElement(W)&&!t.isInline(W)?(T=!1,_.push(W)):T?P.push(W):Z.push(W))}var[q]=R.nodes(t,{at:c,match:V=>re.isText(V)||R.isInline(t,V),mode:"highest",voids:s}),[,te]=q,X=R.isStart(t,c,te),H=R.isEnd(t,c,te),Q=R.pathRef(t,M&&!Z.length?ee.next(S):S),oe=R.pathRef(t,H?ee.next(te):te),U=Z.length>0;Pe.splitNodes(t,{at:c,match:V=>U?re.isElement(V)&&R.isBlock(t,V):re.isText(V)||R.isInline(t,V),mode:U?"lowest":"highest",always:U&&(!L||P.length>0)&&(!M||Z.length>0),voids:s});var ie=R.pathRef(t,!X||X&&H?ee.next(te):te);if(Pe.insertNodes(t,P,{at:ie.current,match:V=>re.isText(V)||R.isInline(t,V),mode:"highest",voids:s,batchDirty:d}),w&&!P.length&&_.length&&!Z.length&&Pe.delete(t,{at:S,voids:s}),Pe.insertNodes(t,_,{at:Q.current,match:V=>re.isElement(V)&&R.isBlock(t,V),mode:"lowest",voids:s,batchDirty:d}),Pe.insertNodes(t,Z,{at:oe.current,match:V=>re.isText(V)||R.isInline(t,V),mode:"highest",voids:s,batchDirty:d}),!r.at){var N;if(Z.length>0&&oe.current?N=ee.previous(oe.current):_.length>0&&Q.current?N=ee.previous(Q.current):ie.current&&(N=ee.previous(ie.current)),N){var $=R.end(t,N);Pe.select(t,$)}}ie.unref(),Q.unref(),oe.unref()}}})},HV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:o}=t;if(o){if(r==="anchor")Pe.select(t,o.anchor);else if(r==="focus")Pe.select(t,o.focus);else if(r==="start"){var[s]=Te.edges(o);Pe.select(t,s)}else if(r==="end"){var[,c]=Te.edges(o);Pe.select(t,c)}}else return},ZV=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},VV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:o=1,unit:s="character",reverse:c=!1}=n,{edge:d=null}=n;if(r){d==="start"&&(d=Te.isBackward(r)?"focus":"anchor"),d==="end"&&(d=Te.isBackward(r)?"anchor":"focus");var{anchor:h,focus:p}=r,m={distance:o,unit:s},v={};if(d==null||d==="anchor"){var y=c?R.before(t,h,m):R.after(t,h,m);y&&(v.anchor=y)}if(d==null||d==="focus"){var b=c?R.before(t,p,m):R.after(t,p,m);b&&(v.focus=b)}Pe.setSelection(t,v)}},WV=(e,t)=>{var{selection:n}=e;if(t=R.range(e,t),n){Pe.setSelection(e,t);return}if(!Rt.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(gn.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $V=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:s="both"}=r;if(o){s==="start"&&(s=Te.isBackward(o)?"focus":"anchor"),s==="end"&&(s=Te.isBackward(o)?"anchor":"focus");var{anchor:c,focus:d}=o,h=s==="anchor"?c:d;Pe.setSelection(t,{[s==="anchor"?"anchor":"focus"]:Gg(Gg({},h),n)})}},UV=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var s in t)(s==="anchor"&&t.anchor!=null&&!m1.equals(t.anchor,n.anchor)||s==="focus"&&t.focus!=null&&!m1.equals(t.focus,n.focus)||s!=="anchor"&&s!=="focus"&&t[s]!==n[s])&&(r[s]=n[s],o[s]=t[s]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},qV=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:s=!1,mode:c="lowest",batchDirty:d=!0}=r,{at:h,match:p,select:m}=r;if(re.isNode(n)&&(n=[n]),n.length!==0){var[v]=n;if(h||(h=u6(t),m!==!1&&(m=!0)),m==null&&(m=!1),Rt.isRange(h))if(o||(h=R.unhangRange(t,h,{voids:s})),Te.isCollapsed(h))h=h.anchor;else{var[,y]=Te.edges(h),b=R.pointRef(t,y);Pe.delete(t,{at:h}),h=b.unref()}if(Rt.isPoint(h)){p==null&&(re.isText(v)?p=K=>re.isText(K):t.isInline(v)?p=K=>re.isText(K)||R.isInline(t,K):p=K=>re.isElement(K)&&R.isBlock(t,K));var[D]=R.nodes(t,{at:h.path,match:p,mode:c,voids:s});if(D){var[,S]=D,L=R.pathRef(t,S),M=R.isEnd(t,h,S);Pe.splitNodes(t,{at:h,match:p,mode:c,voids:s});var w=L.unref();h=M?ee.next(w):w}else return}var E=ee.parent(h),O=h[h.length-1];if(!(!s&&R.void(t,{at:E}))){if(d){var B=[],T=ee.levels(E);jZ(t,()=>{var K=function(){var q=E.concat(O);O++;var te={type:"insert_node",path:q,node:W};t.apply(te),h=ee.next(h),B.push(te),re.isText(W)?T.push(q):T.push(...Array.from(re.nodes(W),X=>{var[,H]=X;return q.concat(H)}))};for(var W of n)K()},()=>{DS(t,T,K=>{var W=K;for(var z of B)if(ee.operationCanTransformPath(z)&&(W=ee.transform(W,z),!W))return null;return W})})}else for(var P of n){var _=E.concat(O);O++,t.apply({type:"insert_node",path:_,node:P}),h=ee.next(h)}if(h=ee.previous(h),m){var Z=R.end(t,h);Z&&Pe.select(t,Z)}}}})},YV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:o="lowest",voids:s=!1}=n,{match:c}=n;if(r){c==null&&(c=Rt.isPath(r)?I2(t,r):O=>re.isElement(O)&&R.isBlock(t,O));var d=R.nodes(t,{at:r,match:c,mode:o,voids:s}),h=Array.from(d,O=>{var[,B]=O;return R.pathRef(t,B)});for(var p of h){var m=p.unref();if(m.length<2)throw new Error("Cannot lift node at a path [".concat(m,"] because it has a depth of less than `2`."));var v=R.node(t,ee.parent(m)),[y,b]=v,D=m[m.length-1],{length:S}=y.children;if(S===1){var L=ee.next(b);Pe.moveNodes(t,{at:m,to:L,voids:s}),Pe.removeNodes(t,{at:b,voids:s})}else if(D===0)Pe.moveNodes(t,{at:m,to:b,voids:s});else if(D===S-1){var M=ee.next(b);Pe.moveNodes(t,{at:m,to:M,voids:s})}else{var w=ee.next(m),E=ee.next(b);Pe.splitNodes(t,{at:w,voids:s}),Pe.moveNodes(t,{at:m,to:E,voids:s})}}}})},GV=["text"],KV=["children"],LS=(e,t)=>t!==e&&(re.isText(t)||R.isVoid(e,t)||t.children.length===1&&LS(e,t.children[0])),XV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:s=!1,voids:c=!1,mode:d="lowest"}=n;if(o){if(r==null)if(Rt.isPath(o)){var[h]=R.parent(t,o);r=K=>h.children.includes(K)}else r=K=>re.isElement(K)&&R.isBlock(t,K);if(!s&&Rt.isRange(o)&&(o=R.unhangRange(t,o,{voids:c})),Rt.isRange(o))if(Te.isCollapsed(o))o=o.anchor;else{var[,p]=Te.edges(o),m=R.pointRef(t,p);Pe.delete(t,{at:o}),o=m.unref(),n.at==null&&Pe.select(t,o)}var[v]=R.nodes(t,{at:o,match:r,voids:c,mode:d}),y=R.previous(t,{at:o,match:r,voids:c,mode:d});if(!(!v||!y)){var[b,D]=v,[S,L]=y;if(!(D.length===0||L.length===0)){var M=ee.next(L),w=ee.common(D,L),E=ee.isSibling(D,L),O=Array.from(R.levels(t,{at:D}),K=>{var[W]=K;return W}).slice(w.length).slice(0,-1),B=R.above(t,{at:D,mode:"highest",match:K=>O.includes(K)&&LS(t,K)}),T=B&&R.pathRef(t,B[1]),P,_;if(re.isText(b)&&re.isText(S)){var Z=yo(b,GV);_=S.text.length,P=Z}else if(re.isElement(b)&&re.isElement(S)){var Z=yo(b,KV);_=S.children.length,P=Z}else throw new Error("Cannot merge the node at path [".concat(D,"] with the previous sibling because it is not the same kind: ").concat(gn.stringify(b)," ").concat(gn.stringify(S)));E||Pe.moveNodes(t,{at:D,to:M,voids:c}),T&&Pe.removeNodes(t,{at:T.current,voids:c}),R.shouldMergeNodesRemovePrevNode(t,y,v)?Pe.removeNodes(t,{at:L,voids:c}):t.apply({type:"merge_node",path:M,position:_,properties:P}),T&&T.unref()}}}})},QV=(e,t)=>{R.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:s=!1}=t,{match:c}=t;if(r){c==null&&(c=Rt.isPath(r)?I2(e,r):b=>re.isElement(b)&&R.isBlock(e,b));var d=R.pathRef(e,n),h=R.nodes(e,{at:r,match:c,mode:o,voids:s}),p=Array.from(h,b=>{var[,D]=b;return R.pathRef(e,D)});for(var m of p){var v=m.unref(),y=d.current;v.length!==0&&e.apply({type:"move_node",path:v,newPath:y}),d.current&&ee.isSibling(y,v)&&ee.isAfter(y,v)&&(d.current=ee.next(d.current))}d.unref()}})},JV=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:s="lowest"}=n,{at:c=t.selection,match:d}=n;if(c){d==null&&(d=Rt.isPath(c)?I2(t,c):b=>re.isElement(b)&&R.isBlock(t,b)),!r&&Rt.isRange(c)&&(c=R.unhangRange(t,c,{voids:o}));var h=R.nodes(t,{at:c,match:d,mode:s,voids:o}),p=Array.from(h,b=>{var[,D]=b;return R.pathRef(t,D)});for(var m of p){var v=m.unref();if(v){var[y]=R.node(t,v);t.apply({type:"remove_node",path:v,node:y})}}}})},eW=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(t,()=>{var{match:o,at:s=t.selection,compare:c,merge:d}=r,{hanging:h=!1,mode:p="lowest",split:m=!1,voids:v=!1}=r;if(s){if(o==null&&(o=Rt.isPath(s)?I2(t,s):_=>re.isElement(_)&&R.isBlock(t,_)),!h&&Rt.isRange(s)&&(s=R.unhangRange(t,s,{voids:v})),m&&Rt.isRange(s)){if(Te.isCollapsed(s)&&R.leaf(t,s.anchor)[0].text.length>0)return;var y=R.rangeRef(t,s,{affinity:"inward"}),[b,D]=Te.edges(s),S=p==="lowest"?"lowest":"highest",L=R.isEnd(t,D,D.path);Pe.splitNodes(t,{at:D,match:o,mode:S,voids:v,always:!L});var M=R.isStart(t,b,b.path);Pe.splitNodes(t,{at:b,match:o,mode:S,voids:v,always:!M}),s=y.unref(),r.at==null&&Pe.select(t,s)}c||(c=(_,Z)=>_!==Z);for(var[w,E]of R.nodes(t,{at:s,match:o,mode:p,voids:v})){var O={},B={};if(E.length!==0){var T=!1;for(var P in n)P==="children"||P==="text"||c(n[P],w[P])&&(T=!0,w.hasOwnProperty(P)&&(O[P]=w[P]),d?n[P]!=null&&(B[P]=d(w[P],n[P])):n[P]!=null&&(B[P]=n[P]));T&&t.apply({type:"set_node",path:E,properties:O,newProperties:B})}}}})},tW=(e,t)=>{if(Te.isCollapsed(t))return t.anchor;var[,n]=Te.edges(t),r=R.pointRef(e,n);return Pe.delete(e,{at:t}),r.unref()},nW=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:o=!1}=n,{match:s,at:c=t.selection,height:d=0,always:h=!1}=n;if(c&&(s==null&&(s=U=>re.isElement(U)&&R.isBlock(t,U)),!(Rt.isRange(c)&&(c=tW(t,c),!c)))){if(Rt.isPath(c)){var p=c,m=R.point(t,p),[v]=R.parent(t,p);s=U=>U===v,d=m.path.length-p.length+1,c=m,h=!0}var y=R.pointRef(t,c,{affinity:"backward"}),b;try{var[D]=R.nodes(t,{at:c,match:s,mode:r,voids:o});if(!D)return;var S=R.void(t,{at:c,mode:"highest"}),L=0;if(!o&&S){var[M,w]=S;if(t.isInline(M)){var E=R.after(t,w);if(!E){var O={text:""},B=ee.next(w);Pe.insertNodes(t,O,{at:B,voids:o}),E=R.point(t,B)}c=E,h=!0}var T=c.path.length-w.length;d=T+1,h=!0}b=R.pointRef(t,c);var P=c.path.length-d,[,_]=D,Z=c.path.slice(0,P),K=d===0?c.offset:c.path[P]+L;for(var[W,z]of R.levels(t,{at:Z,reverse:!0,voids:o})){var q=!1;if(z.length<_.length||z.length===0||!o&&re.isElement(W)&&R.isVoid(t,W))break;var te=y.current,X=R.isEnd(t,te,z);if(h||!y||!R.isEdge(t,te,z)){q=!0;var H=re.extractProps(W);t.apply({type:"split_node",path:z,position:K,properties:H})}K=z[z.length-1]+(q||X?1:0)}if(n.at==null){var Q=b.current||R.end(t,[]);Pe.select(t,Q)}}finally{var oe;y.unref(),(oe=b)===null||oe===void 0||oe.unref()}}})},rW=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var o={};for(var s of n)o[s]=null;Pe.setNodes(t,o,r)},aW=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};R.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:s=!1}=n,{at:c=t.selection,match:d}=n;if(c){d==null&&(d=Rt.isPath(c)?I2(t,c):b=>re.isElement(b)&&R.isBlock(t,b)),Rt.isPath(c)&&(c=R.range(t,c));var h=Rt.isRange(c)?R.rangeRef(t,c):null,p=R.nodes(t,{at:c,match:d,mode:r,voids:s}),m=Array.from(p,b=>{var[,D]=b;return R.pathRef(t,D)}).reverse(),v=function(){var D=y.unref(),[S]=R.node(t,D),L=R.range(t,D);o&&h&&(L=Te.intersection(h.current,L)),Pe.liftNodes(t,{at:L,match:M=>!re.isText(S)&&S.children.includes(M),voids:s})};for(var y of m)v();h&&h.unref()}})};function Kg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oW=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R.withoutNormalizing(t,()=>{var{mode:o="lowest",split:s=!1,voids:c=!1}=r,{match:d,at:h=t.selection}=r;if(h){if(d==null&&(Rt.isPath(h)?d=I2(t,h):t.isInline(n)?d=M=>re.isElement(M)&&R.isInline(t,M)||re.isText(M):d=M=>re.isElement(M)&&R.isBlock(t,M)),s&&Rt.isRange(h)){var[p,m]=Te.edges(h),v=R.rangeRef(t,h,{affinity:"inward"}),y=M=>{var w=R.above(t,{at:M,match:E=>re.isElement(E)&&R.isBlock(t,E)});return w&&R.isEdge(t,M,w[1])};Pe.splitNodes(t,{at:m,match:d,voids:c,always:!y(m)}),Pe.splitNodes(t,{at:p,match:d,voids:c,always:!y(p)}),h=v.unref(),r.at==null&&Pe.select(t,h)}var b=Array.from(R.nodes(t,{at:h,match:t.isInline(n)?M=>re.isElement(M)&&R.isBlock(t,M):M=>re.isEditor(M),mode:"lowest",voids:c})),D=function(){var w=Rt.isRange(h)?Te.intersection(h,R.range(t,L)):h;if(!w)return 0;var E=Array.from(R.nodes(t,{at:w,match:d,mode:o,voids:c}));if(E.length>0){var[O]=E,B=E[E.length-1],[,T]=O,[,P]=B;if(T.length===0&&P.length===0)return 0;var _=ee.equals(T,P)?ee.parent(T):ee.common(T,P),Z=R.range(t,T,P),K=R.node(t,_),[W]=K,z=_.length+1,q=ee.next(P.slice(0,z)),te=Xg(Xg({},n),{},{children:[]});Pe.insertNodes(t,te,{at:q,voids:c}),Pe.moveNodes(t,{at:Z,match:X=>!re.isText(W)&&W.children.includes(X),to:q.concat(0),voids:c})}},S;for(var[,L]of b)S=D()}})},iW=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AZ(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return FZ(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return IZ(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zZ(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return HZ(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BZ(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return QZ(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return eV(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zV(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JZ(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nV(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RZ(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BV(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OZ(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return TZ(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NZ(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return PZ(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _Z(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return HV(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return IV(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ZV(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ZZ(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VZ(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WZ(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $Z(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return UZ(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pV(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YZ(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return GZ(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return KZ(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return XZ(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qV(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rV(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return aV(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return oV(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return iV(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sV(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lV(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return uV(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cV(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fV(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YV(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return XV(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VV(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return QV(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return CV(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gV(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mV(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vV(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yV(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bV(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return xV(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wV(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return LV(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SV(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return DV(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return MV(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return EV(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AV(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return kV(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jV(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JV(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WV(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return eW(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RV(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $V(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return UV(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nW(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return TV(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NV(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return FV(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rW(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return aW(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qZ(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return PV(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return oW(e,...r)},shouldMergeNodesRemovePrevNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _V(e,...r)}};return e},z4,Qg;function sW(){if(Qg)return z4;Qg=1,z4=o;var e="֑-߿יִ-﷽ﹰ-ﻼ",t="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",n=new RegExp("^[^"+t+"]*["+e+"]"),r=new RegExp("^[^"+e+"]*["+t+"]");function o(s){return s=String(s||""),n.test(s)?"rtl":r.test(s)?"ltr":"neutral"}return z4}var lW=sW();const MS=L5(lW);var H4,Jg;function h6(){if(Jg)return H4;Jg=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return H4=e,H4}var Z4,em;function uW(){if(em)return Z4;em=1;var e=typeof e0=="object"&&e0&&e0.Object===Object&&e0;return Z4=e,Z4}var V4,tm;function ES(){if(tm)return V4;tm=1;var e=uW(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return V4=n,V4}var W4,nm;function cW(){if(nm)return W4;nm=1;var e=ES(),t=function(){return e.Date.now()};return W4=t,W4}var $4,rm;function fW(){if(rm)return $4;rm=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return $4=t,$4}var U4,am;function dW(){if(am)return U4;am=1;var e=fW(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return U4=n,U4}var q4,om;function kS(){if(om)return q4;om=1;var e=ES(),t=e.Symbol;return q4=t,q4}var Y4,im;function hW(){if(im)return Y4;im=1;var e=kS(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function s(c){var d=n.call(c,o),h=c[o];try{c[o]=void 0;var p=!0}catch{}var m=r.call(c);return p&&(d?c[o]=h:delete c[o]),m}return Y4=s,Y4}var G4,sm;function pW(){if(sm)return G4;sm=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return G4=n,G4}var K4,lm;function CW(){if(lm)return K4;lm=1;var e=kS(),t=hW(),n=pW(),r="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function c(d){return d==null?d===void 0?o:r:s&&s in Object(d)?t(d):n(d)}return K4=c,K4}var X4,um;function gW(){if(um)return X4;um=1;function e(t){return t!=null&&typeof t=="object"}return X4=e,X4}var Q4,cm;function mW(){if(cm)return Q4;cm=1;var e=CW(),t=gW(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return Q4=r,Q4}var J4,fm;function vW(){if(fm)return J4;fm=1;var e=dW(),t=h6(),n=mW(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;function h(p){if(typeof p=="number")return p;if(n(p))return r;if(t(p)){var m=typeof p.valueOf=="function"?p.valueOf():p;p=t(m)?m+"":m}if(typeof p!="string")return p===0?p:+p;p=e(p);var v=s.test(p);return v||c.test(p)?d(p.slice(2),v?2:8):o.test(p)?r:+p}return J4=h,J4}var e8,dm;function jS(){if(dm)return e8;dm=1;var e=h6(),t=cW(),n=vW(),r="Expected a function",o=Math.max,s=Math.min;function c(d,h,p){var m,v,y,b,D,S,L=0,M=!1,w=!1,E=!0;if(typeof d!="function")throw new TypeError(r);h=n(h)||0,e(p)&&(M=!!p.leading,w="maxWait"in p,y=w?o(n(p.maxWait)||0,h):y,E="trailing"in p?!!p.trailing:E);function O(q){var te=m,X=v;return m=v=void 0,L=q,b=d.apply(X,te),b}function B(q){return L=q,D=setTimeout(_,h),M?O(q):b}function T(q){var te=q-S,X=q-L,H=h-te;return w?s(H,y-X):H}function P(q){var te=q-S,X=q-L;return S===void 0||te>=h||te<0||w&&X>=y}function _(){var q=t();if(P(q))return Z(q);D=setTimeout(_,T(q))}function Z(q){return D=void 0,E&&m?O(q):(m=v=void 0,b)}function K(){D!==void 0&&clearTimeout(D),L=0,m=S=v=D=void 0}function W(){return D===void 0?b:Z(t())}function z(){var q=t(),te=P(q);if(m=arguments,v=this,S=q,te){if(D===void 0)return B(S);if(w)return clearTimeout(D),D=setTimeout(_,h),O(S)}return D===void 0&&(D=setTimeout(_,h)),b}return z.cancel=K,z.flush=W,z}return e8=c,e8}var yW=jS();const xW=L5(yW);var t8,hm;function wW(){if(hm)return t8;hm=1;var e=jS(),t=h6(),n="Expected a function";function r(o,s,c){var d=!0,h=!0;if(typeof o!="function")throw new TypeError(n);return t(c)&&(d="leading"in c?!!c.leading:d,h="trailing"in c?!!c.trailing:h),e(o,s,{leading:d,maxWait:s,trailing:h})}return t8=r,t8}var bW=wW();const SW=L5(bW),pm=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Cm=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",S0=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Cm(n.overflowY,t)||Cm(n.overflowX,t)||(r=>{const o=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},D0=(e,t,n,r,o,s,c,d)=>s<e&&c>t||s>e&&c<t?0:s<=e&&d<=n||c>=t&&d>=n?s-e-r:c>t&&d<n||s<e&&d>n?c-t+o:0,DW=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},gm=(e,t)=>{var n,r,o,s;if(typeof document>"u")return[];const{scrollMode:c,block:d,inline:h,boundary:p,skipOverflowHiddenElements:m}=t,v=typeof p=="function"?p:H=>H!==p;if(!pm(e))throw new TypeError("Invalid target");const y=document.scrollingElement||document.documentElement,b=[];let D=e;for(;pm(D)&&v(D);){if(D=DW(D),D===y){b.push(D);break}D!=null&&D===document.body&&S0(D)&&!S0(document.documentElement)||D!=null&&S0(D,m)&&b.push(D)}const S=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,L=(s=(o=window.visualViewport)==null?void 0:o.height)!=null?s:innerHeight,{scrollX:M,scrollY:w}=window,{height:E,width:O,top:B,right:T,bottom:P,left:_}=e.getBoundingClientRect(),{top:Z,right:K,bottom:W,left:z}=(H=>{const Q=window.getComputedStyle(H);return{top:parseFloat(Q.scrollMarginTop)||0,right:parseFloat(Q.scrollMarginRight)||0,bottom:parseFloat(Q.scrollMarginBottom)||0,left:parseFloat(Q.scrollMarginLeft)||0}})(e);let q=d==="start"||d==="nearest"?B-Z:d==="end"?P+W:B+E/2-Z+W,te=h==="center"?_+O/2-z+K:h==="end"?T+K:_-z;const X=[];for(let H=0;H<b.length;H++){const Q=b[H],{height:oe,width:U,top:ie,right:N,bottom:$,left:V}=Q.getBoundingClientRect();if(c==="if-needed"&&B>=0&&_>=0&&P<=L&&T<=S&&(Q===y&&!S0(Q)||B>=ie&&P<=$&&_>=V&&T<=N))return X;const se=getComputedStyle(Q),ke=parseInt(se.borderLeftWidth,10),We=parseInt(se.borderTopWidth,10),Ae=parseInt(se.borderRightWidth,10),Qe=parseInt(se.borderBottomWidth,10);let I=0,fe=0;const me="offsetWidth"in Q?Q.offsetWidth-Q.clientWidth-ke-Ae:0,Se="offsetHeight"in Q?Q.offsetHeight-Q.clientHeight-We-Qe:0,Xe="offsetWidth"in Q?Q.offsetWidth===0?0:U/Q.offsetWidth:0,He="offsetHeight"in Q?Q.offsetHeight===0?0:oe/Q.offsetHeight:0;if(y===Q)I=d==="start"?q:d==="end"?q-L:d==="nearest"?D0(w,w+L,L,We,Qe,w+q,w+q+E,E):q-L/2,fe=h==="start"?te:h==="center"?te-S/2:h==="end"?te-S:D0(M,M+S,S,ke,Ae,M+te,M+te+O,O),I=Math.max(0,I+w),fe=Math.max(0,fe+M);else{I=d==="start"?q-ie-We:d==="end"?q-$+Qe+Se:d==="nearest"?D0(ie,$,oe,We,Qe+Se,q,q+E,E):q-(ie+oe/2)+Se/2,fe=h==="start"?te-V-ke:h==="center"?te-(V+U/2)+me/2:h==="end"?te-N+Ae+me:D0(V,N,U,ke,Ae+me,te,te+O,O);const{scrollLeft:Ct,scrollTop:mt}=Q;I=He===0?0:Math.max(0,Math.min(mt+I/He,Q.scrollHeight-oe/He+Se)),fe=Xe===0?0:Math.max(0,Math.min(Ct+fe/Xe,Q.scrollWidth-U/Xe+me)),q+=mt-I,te+=Ct-fe}X.push({el:Q,top:I,left:fe})}return X},LW=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function MW(e,t){if(!e.isConnected||!(o=>{let s=o;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;const n=(o=>{const s=window.getComputedStyle(o);return{top:parseFloat(s.scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(gm(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:s,left:c}of gm(e,LW(t))){const d=s-n.top+n.bottom,h=c-n.left+n.right;o.scroll({top:d,left:h,behavior:r})}}var sa={},mm;function EW(){if(mm)return sa;mm=1,Object.defineProperty(sa,"__esModule",{value:!0});for(var e=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},n={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:e?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},r={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},o=1;o<20;o++)r["f"+o]=111+o;function s(y,b,D){b&&!("byKey"in b)&&(D=b,b=null),Array.isArray(y)||(y=[y]);var S=y.map(function(w){return h(w,b)}),L=function(E){return S.some(function(O){return p(O,E)})},M=D==null?L:L(D);return M}function c(y,b){return s(y,b)}function d(y,b){return s(y,{byKey:!0},b)}function h(y,b){var D=b&&b.byKey,S={};y=y.replace("++","+add");var L=y.split("+"),M=L.length;for(var w in t)S[t[w]]=!1;var E=!0,O=!1,B=void 0;try{for(var T=L[Symbol.iterator](),P;!(E=(P=T.next()).done);E=!0){var _=P.value,Z=_.endsWith("?")&&_.length>1;Z&&(_=_.slice(0,-1));var K=v(_),W=t[K];if(_.length>1&&!W&&!n[_]&&!r[K])throw new TypeError('Unknown modifier: "'+_+'"');(M===1||!W)&&(D?S.key=K:S.which=m(_)),W&&(S[W]=Z?null:!0)}}catch(z){O=!0,B=z}finally{try{!E&&T.return&&T.return()}finally{if(O)throw B}}return S}function p(y,b){for(var D in y){var S=y[D],L=void 0;if(S!=null&&(D==="key"&&b.key!=null?L=b.key.toLowerCase():D==="which"?L=S===91&&b.which===93?91:b.which:L=b[D],!(L==null&&S===!1)&&L!==S))return!1}return!0}function m(y){y=v(y);var b=r[y]||y.toUpperCase().charCodeAt(0);return b}function v(y){return y=y.toLowerCase(),y=n[y]||y,y}return sa.default=s,sa.isHotkey=s,sa.isCodeHotkey=c,sa.isKeyHotkey=d,sa.parseHotkey=h,sa.compareHotkey=p,sa.toKeyCode=m,sa.toKeyName=v,sa}var n8=EW(),AS=globalThis.Node,kW=globalThis.Text,p6=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,jW=e=>li(e)&&e.nodeType===8,Hr=e=>li(e)&&e.nodeType===1,li=e=>{var t=p6(e);return!!t&&e instanceof t.Node},G8=e=>{var t=e&&e.anchorNode&&p6(e.anchorNode);return!!t&&e instanceof t.Selection},OS=e=>li(e)&&e.nodeType===3,AW=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,OW=e=>{var[t,n]=e;if(Hr(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=BS(t,o,r?"backward":"forward"),r=o<n;Hr(t)&&t.childNodes.length;){var s=r?t.childNodes.length-1:0;t=RW(t,s,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},BW=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},BS=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],s=t,c=!1,d=!1;(jW(o)||Hr(o)&&o.childNodes.length===0||Hr(o)&&o.getAttribute("contenteditable")==="false")&&!(c&&d);){if(s>=r.length){c=!0,s=t-1,n="backward";continue}if(s<0){d=!0,s=t+1,n="forward";continue}o=r[s],t=s,s+=n==="forward"?1:-1}return[o,t]},RW=(e,t,n)=>{var[r]=BS(e,t,n);return r},RS=e=>{var t="";if(OS(e)&&e.nodeValue)return e.nodeValue;if(Hr(e)){for(var n of Array.from(e.childNodes))t+=RS(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
216
+ `)}return t},TW=/data-slate-fragment="(.+?)"/m,NW=e=>{var t=e.getData("text/html"),[,n]=t.match(TW)||[];return n},n5=e=>e.getSelection!=null?e.getSelection():document.getSelection(),C6=(e,t,n)=>{var{target:r}=t;if(Hr(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=Bt.getWindow(e);if($i(o,r))return Bt.hasDOMNode(e,r,{editable:!0});var s=n.find(c=>{var{addedNodes:d,removedNodes:h}=c;for(var p of d)if(p===r||$i(p,r))return!0;for(var m of h)if(m===r||$i(m,r))return!0});return!s||s===t?!1:C6(e,s,n)},FW=()=>{for(var e=document.activeElement;(t=e)!==null&&t!==void 0&&t.shadowRoot&&(n=e.shadowRoot)!==null&&n!==void 0&&n.activeElement;){var t,n,r;e=(r=e)===null||r===void 0||(r=r.shadowRoot)===null||r===void 0?void 0:r.activeElement}return e},vm=(e,t)=>!!(e.compareDocumentPosition(t)&AS.DOCUMENT_POSITION_PRECEDING),PW=(e,t)=>!!(e.compareDocumentPosition(t)&AS.DOCUMENT_POSITION_FOLLOWING),ym=(e,t)=>{if(!e)return null;for(var n=e;n;){if(n.matches&&n.matches(t))return n;if(n.parentElement)n=n.parentElement;else if(n.parentNode&&"host"in n.parentNode)n=n.parentNode.host;else return null}return null},$i=(e,t)=>{if(!e||!t)return!1;if(e.contains(t))return!0;for(var n=t;n;){if(n===e)return!0;if(n.parentNode)"host"in n.parentNode?n=n.parentNode.host:n=n.parentNode;else return!1}return!1},r8,a8,_W=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,xm=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),_n=typeof navigator<"u"&&/Android/.test(navigator.userAgent),u2=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Hi=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),IW=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),g6=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),TS=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),zW=_n&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),HW=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),ZW=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),VW=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent)&&(!g6||TS),Z0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((r8=navigator.userAgent.match(/Version\/(\d+)/))!==null&&r8!==void 0&&r8[1]&&parseInt((a8=navigator.userAgent.match(/Version\/(\d+)/))===null||a8===void 0?void 0:a8[1],10)<17);var Ko=(!TS||!zW)&&!IW&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function";function x5(e){"@babel/helpers - typeof";return x5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x5(e)}function WW(e,t){if(x5(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(x5(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $W(e){var t=WW(e,"string");return x5(t)==="symbol"?t:String(t)}function m6(e,t,n){return t=$W(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UW=0;class NS{constructor(){m6(this,"id",void 0),this.id="".concat(UW++)}}var y2=new WeakMap,c2=new WeakMap,r5=new WeakMap,FS=new WeakMap,a5=new WeakMap,K8=new WeakMap,w5=new WeakMap,Ui=new WeakMap,mc=new WeakMap,i7=new WeakMap,X8=new WeakMap,ai=new WeakMap,Wi=new WeakMap,o5=new WeakMap,Q8=new WeakMap,v6=new WeakMap,ca=new WeakMap,po=new WeakMap,fr=new WeakMap,ei=new WeakMap,fo=new WeakMap,PS=new WeakMap,E2=Symbol("placeholder"),_S=Symbol("mark-placeholder"),Bt={androidPendingDiffs:e=>fr.get(e),androidScheduleFlush:e=>{var t;(t=v6.get(e))===null||t===void 0||t()},blur:e=>{var t=Bt.toDOMNode(e,e),n=Bt.findDocumentOrShadowRoot(e);ai.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=Bt.findDocumentOrShadowRoot(e),r=n5(n);r&&r.rangeCount>0&&r.removeAllRanges(),t&&Pe.deselect(e)},findDocumentOrShadowRoot:e=>{var t=Bt.toDOMNode(e,e),n=t.getRootNode();return n instanceof Document||n instanceof ShadowRoot?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var s=Bt.toSlateNode(e,t.target),c=Bt.findPath(e,s);if(re.isElement(s)&&R.isVoid(e,s)){var d=o.getBoundingClientRect(),h=e.isInline(s)?n-d.left<d.left+d.width-n:r-d.top<d.top+d.height-r,p=R.point(e,c,{edge:h?"start":"end"}),m=h?R.before(e,p):R.after(e,p);if(m){var v=R.range(e,m);return v}}var y,{document:b}=Bt.getWindow(e);if(b.caretRangeFromPoint)y=b.caretRangeFromPoint(n,r);else{var D=b.caretPositionFromPoint(n,r);D&&(y=b.createRange(),y.setStart(D.offsetNode,D.offset),y.setEnd(D.offsetNode,D.offset))}if(!y)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var S=Bt.toSlateRange(e,y,{exactMatch:!1,suppressThrow:!1});return S},findKey:(e,t)=>{var n=mc.get(t);return n||(n=new NS,mc.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=r5.get(r);if(o==null){if(r===e)return n;break}var s=c2.get(r);if(s==null)break;n.unshift(s),r=o}throw new Error("Unable to find the path for Slate node: ".concat(gn.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!ai.get(t)&&a5.get(t)){if(n.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(t.operations.length>0){setTimeout(()=>{Bt.focus(t,{retries:n.retries-1})},10);return}var r=Bt.toDOMNode(t,t),o=Bt.findDocumentOrShadowRoot(t);if(o.activeElement!==r){if(t.selection&&o instanceof Document){var s=n5(o),c=Bt.toDOMRange(t,t.selection);s?.removeAllRanges(),s?.addRange(c)}t.selection||Pe.select(t,R.start(t,[])),ai.set(t,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=FS.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:o=!1}=r,s=Bt.toDOMNode(t,t),c;try{c=Hr(n)?n:n.parentElement}catch(d){if(d instanceof Error&&!d.message.includes('Permission denied to access property "nodeType"'))throw d}return c?ym(c,"[data-slate-editor]")===s&&(!o||c.isContentEditable?!0:typeof c.isContentEditable=="boolean"&&ym(c,'[contenteditable="false"]')===s||!!c.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>li(t)&&Bt.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return R.hasPath(e,n.path)&&R.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>Bt.hasEditableTarget(e,t)||Bt.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>li(t)&&Bt.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Wi.get(e),isFocused:e=>!!ai.get(e),isReadOnly:e=>!!X8.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(X8.get(e)||!Bt.hasTarget(e,t))return!1;var n=Bt.toSlateNode(e,t);return re.isElement(n)&&R.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n,r=t===e?a5.get(e):(n=i7.get(e))===null||n===void 0?void 0:n.get(Bt.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(gn.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=R.node(e,t.path),r=Bt.toDOMNode(e,n),o;R.void(e,{at:t})&&(t={path:t.path,offset:0});for(var s="[data-slate-string], [data-slate-zero-width]",c=Array.from(r.querySelectorAll(s)),d=0,h=0;h<c.length;h++){var p=c[h],m=p.childNodes[0];if(!(m==null||m.textContent==null)){var{length:v}=m.textContent,y=p.getAttribute("data-slate-length"),b=y==null?v:parseInt(y,10),D=d+b,S=c[h+1];if(t.offset===D&&S!==null&&S!==void 0&&S.hasAttribute("data-slate-mark-placeholder")){var L,M=S.childNodes[0];o=[M instanceof kW?M:S,(L=S.textContent)!==null&&L!==void 0&&L.startsWith("\uFEFF")?1:0];break}if(t.offset<=D){var w=Math.min(v,Math.max(0,t.offset-d));o=[m,w];break}d=D}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(gn.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=Te.isBackward(t),s=Bt.toDOMPoint(e,n),c=Te.isCollapsed(t)?s:Bt.toDOMPoint(e,r),d=Bt.getWindow(e),h=d.document.createRange(),[p,m]=o?c:s,[v,y]=o?s:c,b=Hr(p)?p:p.parentElement,D=!!b.getAttribute("data-slate-zero-width"),S=Hr(v)?v:v.parentElement,L=!!S.getAttribute("data-slate-zero-width");return h.setStart(p,D?1:m),h.setEnd(v,L?1:y),h},toSlateNode:(e,t)=>{var n=Hr(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?w5.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o,searchDirection:s}=n,[c,d]=r?t:OW(t),h=c.parentNode,p=null,m=0;if(h){var v,y,b=Bt.toDOMNode(e,e),D=h.closest('[data-slate-void="true"]'),S=D&&$i(b,D)?D:null,L=h.closest('[contenteditable="false"]'),M=L&&$i(b,L)?L:null,w=h.closest("[data-slate-leaf]"),E=null;if(w){if(p=w.closest('[data-slate-node="text"]'),p){var O=Bt.getWindow(e),B=O.document.createRange();B.setStart(p,0),B.setEnd(c,d);var T=B.cloneContents(),P=[...Array.prototype.slice.call(T.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(T.querySelectorAll("[contenteditable=false]"))];P.forEach(V=>{if(_n&&!r&&V.hasAttribute("data-slate-zero-width")&&V.textContent.length>0&&V.textContext!=="\uFEFF"){V.textContent.startsWith("\uFEFF")&&(V.textContent=V.textContent.slice(1));return}V.parentNode.removeChild(V)}),m=T.textContent.length,E=p}}else if(S){for(var _=S.querySelectorAll("[data-slate-leaf]"),Z=0;Z<_.length;Z++){var K=_[Z];if(Bt.hasDOMNode(e,K)){w=K;break}}w?(p=w.closest('[data-slate-node="text"]'),E=w,m=E.textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(V=>{m-=V.textContent.length})):m=1}else if(M){var W=V=>V?V.querySelectorAll("[data-slate-leaf]:not(:scope [data-slate-editor] [data-slate-leaf])"):[],z=M.closest('[data-slate-node="element"]');if(s==="backward"||!s){var q,te=[...W(z?.previousElementSibling),...W(z)];w=(q=te.findLast(V=>vm(M,V)))!==null&&q!==void 0?q:null}if(s==="forward"||!s){var X,H=[...W(z),...W(z?.nextElementSibling)];w=(X=H.find(V=>PW(M,V)))!==null&&X!==void 0?X:null}w&&(p=w.closest('[data-slate-node="text"]'),E=w,s==="forward"?m=0:(m=E.textContent.length,E.querySelectorAll("[data-slate-zero-width]").forEach(V=>{m-=V.textContent.length})))}E&&m===E.textContent.length&&_n&&E.getAttribute("data-slate-zero-width")==="z"&&(v=E.textContent)!==null&&v!==void 0&&v.startsWith("\uFEFF")&&(h.hasAttribute("data-slate-zero-width")||u2&&(y=E.textContent)!==null&&y!==void 0&&y.endsWith(`
217
+
218
+ `))&&m--}if(_n&&!p&&!r){var Q=h.hasAttribute("data-slate-node")?h:h.closest("[data-slate-node]");if(Q&&Bt.hasDOMNode(e,Q,{editable:!0})){var oe=Bt.toSlateNode(e,Q),{path:U,offset:ie}=R.start(e,Bt.findPath(e,oe));return Q.querySelector("[data-slate-leaf]")||(ie=d),{path:U,offset:ie}}}if(!p){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var N=Bt.toSlateNode(e,p),$=Bt.findPath(e,N);return{path:$,offset:m}},toSlateRange:(e,t,n)=>{var r,{exactMatch:o,suppressThrow:s}=n,c=G8(t)?t.anchorNode:t.startContainer,d,h,p,m,v;if(c)if(G8(t)){if(u2&&t.rangeCount>1){p=t.focusNode;var y=t.getRangeAt(0),b=t.getRangeAt(t.rangeCount-1);if(p instanceof HTMLTableRowElement&&y.startContainer instanceof HTMLTableRowElement&&b.startContainer instanceof HTMLTableRowElement){let T=function(P){return P.childElementCount>0?T(P.children[0]):P};var D=y.startContainer,S=b.startContainer,L=T(D.children[y.startOffset]),M=T(S.children[b.startOffset]);m=0,M.childNodes.length>0?d=M.childNodes[0]:d=M,L.childNodes.length>0?p=L.childNodes[0]:p=L,M instanceof HTMLElement?h=M.innerHTML.length:h=0}else y.startContainer===p?(d=b.endContainer,h=b.endOffset,m=y.startOffset):(d=y.startContainer,h=y.endOffset,m=b.startOffset)}else d=t.anchorNode,h=t.anchorOffset,p=t.focusNode,m=t.focusOffset;g6&&BW(d)||u2?v=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:v=t.isCollapsed}else d=t.startContainer,h=t.startOffset,p=t.endContainer,m=t.endOffset,v=t.collapsed;if(d==null||p==null||h==null||m==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));u2&&(r=p.textContent)!==null&&r!==void 0&&r.endsWith(`
219
+
220
+ `)&&m===p.textContent.length&&m--;var w=Bt.toSlatePoint(e,[d,h],{exactMatch:o,suppressThrow:s});if(!w)return null;var E=vm(d,p)||d===p&&m<h,O=v?w:Bt.toSlatePoint(e,[p,m],{exactMatch:o,suppressThrow:s,searchDirection:E?"forward":"backward"});if(!O)return null;var B={anchor:w,focus:O};return Te.isExpanded(B)&&Te.isForward(B)&&Hr(p)&&R.void(e,{at:B.focus,mode:"highest"})&&(B=R.unhangRange(e,B,{voids:!0})),B}};function qW(e,t){var{path:n,diff:r}=t;if(!R.hasPath(e,n))return!1;var o=re.get(e,n);if(!re.isText(o))return!1;if(r.start!==o.text.length||r.text.length===0)return o.text.slice(r.start,r.start+r.text.length)===r.text;var s=ee.next(n);if(!R.hasPath(e,s))return!1;var c=re.get(e,s);return re.isText(c)&&c.text.startsWith(r.text)}function IS(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((o,s)=>o.slice(0,s.start)+s.text+o.slice(s.end),e)}function YW(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function GW(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}function zS(e,t){var{start:n,end:r,text:o}=t,s=e.slice(n,r),c=YW(s,o),d=Math.min(s.length-c,o.length-c),h=GW(s,o,d),p={start:n+c,end:r-h,text:o.slice(c,o.length-h)};return p.start===p.end&&p.text.length===0?null:p}function KW(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),s=IS(e,t,n),c=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),d=s.slice(r,c),h=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return zS(e,{start:r,end:h,text:d})}function XW(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function J8(e,t){var{path:n,offset:r}=t;if(!R.hasPath(e,n))return null;var o=re.get(e,n);if(!re.isText(o))return null;var s=R.above(e,{match:d=>re.isElement(d)&&R.isBlock(e,d),at:n});if(!s)return null;for(;r>o.text.length;){var c=R.next(e,{at:n,match:re.isText});if(!c||!ee.isDescendant(c[1],s[1]))return null;r-=o.text.length,o=c[0],n=c[1]}return{path:n,offset:r}}function wm(e,t){var n=J8(e,t.anchor);if(!n)return null;if(Te.isCollapsed(t))return{anchor:n,focus:n};var r=J8(e,t.focus);return r?{anchor:n,focus:r}:null}function e9(e,t,n){var r=fr.get(e),o=r?.find(m=>{var{path:v}=m;return ee.equals(v,t.path)});if(!o||t.offset<=o.diff.start)return m1.transform(t,n,{affinity:"backward"});var{diff:s}=o;if(t.offset<=s.start+s.text.length){var c={path:t.path,offset:s.start},d=m1.transform(c,n,{affinity:"backward"});return d?{path:d.path,offset:d.offset+t.offset-s.start}:null}var h={path:t.path,offset:t.offset-s.text.length+s.end-s.start},p=m1.transform(h,n,{affinity:"backward"});return p?n.type==="split_node"&&ee.equals(n.path,t.path)&&h.offset<n.position&&s.start<n.position?p:{path:p.path,offset:p.offset+s.text.length-s.end+s.start}:null}function bm(e,t,n){var r=e9(e,t.anchor,n);if(!r)return null;if(Te.isCollapsed(t))return{anchor:r,focus:r};var o=e9(e,t.focus,n);return o?{anchor:r,focus:o}:null}function QW(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!ee.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!ee.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!ee.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:ee.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:ee.transform(n,t,{affinity:"forward"})};case"merge_node":return ee.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:ee.transform(n,t)}:{diff:r,id:o,path:ee.transform(n,t)}}var s=ee.transform(n,t);return s?{diff:r,path:s,id:o}:null}var Sm=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Dm=(e,t,n)=>{var r=Bt.toDOMRange(e,t).getBoundingClientRect(),o=Bt.toDOMRange(e,n).getBoundingClientRect();return Sm(r,o)&&Sm(o,r)},JW=(e,t)=>{var n=R.range(e,Te.end(t)),r=Array.from(R.positions(e,{at:t})),o=0,s=r.length,c=Math.floor(s/2);if(Dm(e,R.range(e,r[o]),n))return R.range(e,r[o],n);if(r.length<2)return R.range(e,r[r.length-1],n);for(;c!==r.length&&c!==o;)Dm(e,R.range(e,r[c]),n)?s=c:o=c,c=Math.floor((o+s)/2);return R.range(e,r[o],n)};function Lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Mm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lm(Object(n),!0).forEach(function(r){m6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var e$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:o,onChange:s,deleteBackward:c,addMark:d,removeMark:h}=r;return i7.set(r,new WeakMap),r.addMark=(p,m)=>{var v,y;(v=v6.get(r))===null||v===void 0||v(),!ca.get(r)&&(y=fr.get(r))!==null&&y!==void 0&&y.length&&ca.set(r,null),po.delete(r),d(p,m)},r.removeMark=p=>{var m;!ca.get(r)&&(m=fr.get(r))!==null&&m!==void 0&&m.length&&ca.set(r,null),po.delete(r),h(p)},r.deleteBackward=p=>{if(p!=="line")return c(p);if(r.selection&&Te.isCollapsed(r.selection)){var m=R.above(r,{match:D=>re.isElement(D)&&R.isBlock(r,D),at:r.selection});if(m){var[,v]=m,y=R.range(r,v,r.selection.anchor),b=JW(r,y);Te.isCollapsed(b)||Pe.delete(r,{at:b})}}},r.apply=p=>{var m=[],v=[],y=fr.get(r);if(y!=null&&y.length){var b=y.map(te=>QW(te,p)).filter(Boolean);fr.set(r,b)}var D=fo.get(r);D&&fo.set(r,bm(r,D,p));var S=ei.get(r);if(S!=null&&S.at){var L=Rt.isPoint(S?.at)?e9(r,S.at,p):bm(r,S.at,p);ei.set(r,L?Mm(Mm({},S),{},{at:L}):null)}switch(p.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{m.push(...e2(r,p.path));break}case"set_selection":{var M;(M=o5.get(r))===null||M===void 0||M.unref(),o5.delete(r);break}case"insert_node":case"remove_node":{m.push(...e2(r,ee.parent(p.path)));break}case"merge_node":{var w=ee.previous(p.path);m.push(...e2(r,w));break}case"move_node":{var E=ee.common(ee.parent(p.path),ee.parent(p.newPath));m.push(...e2(r,E));var O;ee.isBefore(p.path,p.newPath)?(m.push(...e2(r,ee.parent(p.path))),O=p.newPath):(m.push(...e2(r,ee.parent(p.newPath))),O=p.path);var B=re.get(t,ee.parent(O)),T=Bt.findKey(r,B),P=R.pathRef(r,ee.parent(O));v.push([P,T]);break}}switch(o(p),p.type){case"insert_node":case"remove_node":case"merge_node":case"move_node":case"split_node":case"insert_text":case"remove_text":case"set_selection":y2.set(r,!0)}for(var[_,Z]of m){var[K]=R.node(r,_);mc.set(K,Z)}for(var[W,z]of v){if(W.current){var[q]=R.node(r,W.current);mc.set(q,z)}W.unref()}},r.setFragmentData=p=>{var{selection:m}=r;if(m){var[v,y]=Te.edges(m),b=R.void(r,{at:v.path}),D=R.void(r,{at:y.path});if(!(Te.isCollapsed(m)&&!b)){var S=Bt.toDOMRange(r,m),L=S.cloneContents(),M=L.childNodes[0];if(L.childNodes.forEach(K=>{K.textContent&&K.textContent.trim()!==""&&(M=K)}),D){var[w]=D,E=S.cloneRange(),O=Bt.toDOMNode(r,w);E.setEndAfter(O),L=E.cloneContents()}if(b&&(M=L.querySelector("[data-slate-spacer]")),Array.from(L.querySelectorAll("[data-slate-zero-width]")).forEach(K=>{var W=K.getAttribute("data-slate-zero-width")==="n";K.textContent=W?`
221
+ `:""}),OS(M)){var B=M.ownerDocument.createElement("span");B.style.whiteSpace="pre",B.appendChild(M),L.appendChild(B),M=B}var T=r.getFragment(),P=JSON.stringify(T),_=window.btoa(encodeURIComponent(P));M.setAttribute("data-slate-fragment",_),p.setData("application/".concat(n),_);var Z=L.ownerDocument.createElement("div");return Z.appendChild(L),Z.setAttribute("hidden","true"),L.ownerDocument.body.appendChild(Z),p.setData("text/html",Z.innerHTML),p.setData("text/plain",RS(Z)),L.ownerDocument.body.removeChild(Z),p}}},r.insertData=p=>{r.insertFragmentData(p)||r.insertTextData(p)},r.insertFragmentData=p=>{var m=p.getData("application/".concat(n))||NW(p);if(m){var v=decodeURIComponent(window.atob(m)),y=JSON.parse(v);return r.insertFragment(y),!0}return!1},r.insertTextData=p=>{var m=p.getData("text/plain");if(m){var v=m.split(/\r\n|\r|\n/),y=!1;for(var b of v)y&&Pe.splitNodes(r,{always:!0}),r.insertText(b),y=!0;return!0}return!1},r.onChange=p=>{var m=Q8.get(r);m&&m(p),s(p)},r},e2=(e,t)=>{var n=[];for(var[r,o]of R.levels(e,{at:t})){var s=Bt.findKey(e,r);n.push([o,s])}return n},t$=3,n$={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},r$={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},a$={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},I1=e=>{var t=n$[e],n=r$[e],r=a$[e],o=t&&n8.isHotkey(t),s=n&&n8.isHotkey(n),c=r&&n8.isHotkey(r);return d=>!!(o&&o(d)||xm&&s&&s(d)||!xm&&c&&c(d))},V1={isBold:I1("bold"),isCompose:I1("compose"),isMoveBackward:I1("moveBackward"),isMoveForward:I1("moveForward"),isDeleteBackward:I1("deleteBackward"),isDeleteForward:I1("deleteForward"),isDeleteLineBackward:I1("deleteLineBackward"),isDeleteLineForward:I1("deleteLineForward"),isDeleteWordBackward:I1("deleteWordBackward"),isDeleteWordForward:I1("deleteWordForward"),isExtendBackward:I1("extendBackward"),isExtendForward:I1("extendForward"),isExtendLineBackward:I1("extendLineBackward"),isExtendLineForward:I1("extendLineForward"),isItalic:I1("italic"),isMoveLineBackward:I1("moveLineBackward"),isMoveLineForward:I1("moveLineForward"),isMoveWordBackward:I1("moveWordBackward"),isMoveWordForward:I1("moveWordForward"),isRedo:I1("redo"),isSoftBreak:I1("insertSoftBreak"),isSplitBlock:I1("splitBlock"),isTransposeCharacter:I1("transposeCharacter"),isUndo:I1("undo")};function o$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Em(e,t){if(e==null)return{};var n=o$(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var i$=["anchor","focus"],s$=["anchor","focus"];function km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function jm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?km(Object(n),!0).forEach(function(r){m6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var l$=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),HS=(e,t)=>{var n=Em(e,i$),r=Em(t,s$);return e[E2]===t[E2]&&l$(n,r)},y6=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!Te.equals(r,o)||!HS(r,o))return!1}return!0},ZS=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!HS(r,o))return!1}return!0},u$=(e,t,n)=>{var r=Array.from(t.children,()=>[]);if(n.length===0)return r;var o=Bt.findPath(e,t),s=o.length,c=R.range(e,o),d=new Array(t.children.length),h=E=>{var O=d[E];if(O)return O;var B=R.range(e,[...o,E]);return d[E]=B,B};for(var p of n){var m=Te.intersection(c,p);if(m)for(var[v,y]=Te.edges(m),b=v.path[s],D=y.path[s],S=b;S<=D;S++){var L=r[S];if(L){var M=h(S),w=Te.intersection(M,p);w&&L.push(jm(jm({},p),w))}}}return r},qi=[],c$=function(){return qi.some(function(e){return e.activeTargets.length>0})},f$=function(){return qi.some(function(e){return e.skippedTargets.length>0})},Am="ResizeObserver loop completed with undelivered notifications.",d$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Am}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Am),window.dispatchEvent(e)},b5;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(b5||(b5={}));var Yi=function(e){return Object.freeze(e)},h$=(function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Yi(this)}return e})(),VS=(function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Yi(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,s=t.right,c=t.bottom,d=t.left,h=t.width,p=t.height;return{x:n,y:r,top:o,right:s,bottom:c,left:d,width:h,height:p}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),x6=function(e){return e instanceof SVGElement&&"getBBox"in e},WS=function(e){if(x6(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,s=o.offsetWidth,c=o.offsetHeight;return!(s||c||e.getClientRects().length)},Om=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},p$=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},i5=typeof window<"u"?window:{},L0=new WeakMap,Bm=/auto|scroll/,C$=/^tb|vertical/,g$=/msie|trident/i.test(i5.navigator&&i5.navigator.userAgent),Ma=function(e){return parseFloat(e||"0")},x2=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new h$((n?t:e)||0,(n?e:t)||0)},Rm=Yi({devicePixelContentBoxSize:x2(),borderBoxSize:x2(),contentBoxSize:x2(),contentRect:new VS(0,0,0,0)}),$S=function(e,t){if(t===void 0&&(t=!1),L0.has(e)&&!t)return L0.get(e);if(WS(e))return L0.set(e,Rm),Rm;var n=getComputedStyle(e),r=x6(e)&&e.ownerSVGElement&&e.getBBox(),o=!g$&&n.boxSizing==="border-box",s=C$.test(n.writingMode||""),c=!r&&Bm.test(n.overflowY||""),d=!r&&Bm.test(n.overflowX||""),h=r?0:Ma(n.paddingTop),p=r?0:Ma(n.paddingRight),m=r?0:Ma(n.paddingBottom),v=r?0:Ma(n.paddingLeft),y=r?0:Ma(n.borderTopWidth),b=r?0:Ma(n.borderRightWidth),D=r?0:Ma(n.borderBottomWidth),S=r?0:Ma(n.borderLeftWidth),L=v+p,M=h+m,w=S+b,E=y+D,O=d?e.offsetHeight-E-e.clientHeight:0,B=c?e.offsetWidth-w-e.clientWidth:0,T=o?L+w:0,P=o?M+E:0,_=r?r.width:Ma(n.width)-T-B,Z=r?r.height:Ma(n.height)-P-O,K=_+L+B+w,W=Z+M+O+E,z=Yi({devicePixelContentBoxSize:x2(Math.round(_*devicePixelRatio),Math.round(Z*devicePixelRatio),s),borderBoxSize:x2(K,W,s),contentBoxSize:x2(_,Z,s),contentRect:new VS(v,h,_,Z)});return L0.set(e,z),z},US=function(e,t,n){var r=$S(e,n),o=r.borderBoxSize,s=r.contentBoxSize,c=r.devicePixelContentBoxSize;switch(t){case b5.DEVICE_PIXEL_CONTENT_BOX:return c;case b5.BORDER_BOX:return o;default:return s}},m$=(function(){function e(t){var n=$S(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Yi([n.borderBoxSize]),this.contentBoxSize=Yi([n.contentBoxSize]),this.devicePixelContentBoxSize=Yi([n.devicePixelContentBoxSize])}return e})(),qS=function(e){if(WS(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},v$=function(){var e=1/0,t=[];qi.forEach(function(c){if(c.activeTargets.length!==0){var d=[];c.activeTargets.forEach(function(p){var m=new m$(p.target),v=qS(p.target);d.push(m),p.lastReportedSize=US(p.target,p.observedBox),v<e&&(e=v)}),t.push(function(){c.callback.call(c.observer,d,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Tm=function(e){qi.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(qS(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},y$=function(){var e=0;for(Tm(e);c$();)e=v$(),Tm(e);return f$()&&d$(),e>0},o8,YS=[],x$=function(){return YS.splice(0).forEach(function(e){return e()})},w$=function(e){if(!o8){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return x$()}).observe(n,r),o8=function(){n.textContent="".concat(t?t--:t++)}}YS.push(e),o8()},b$=function(e){w$(function(){requestAnimationFrame(e)})},V0=0,S$=function(){return!!V0},D$=250,L$={attributes:!0,characterData:!0,childList:!0,subtree:!0},Nm=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Fm=function(e){return e===void 0&&(e=0),Date.now()+e},i8=!1,M$=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=D$),!i8){i8=!0;var r=Fm(t);b$(function(){var o=!1;try{o=y$()}finally{if(i8=!1,t=r-Fm(),!S$())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,L$)};document.body?n():i5.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Nm.forEach(function(n){return i5.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Nm.forEach(function(n){return i5.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e})(),t9=new M$,Pm=function(e){!V0&&e>0&&t9.start(),V0+=e,!V0&&t9.stop()},E$=function(e){return!x6(e)&&!p$(e)&&getComputedStyle(e).display==="inline"},k$=(function(){function e(t,n){this.target=t,this.observedBox=n||b5.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=US(this.target,this.observedBox,!0);return E$(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),j$=(function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e})(),M0=new WeakMap,_m=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},E0=(function(){function e(){}return e.connect=function(t,n){var r=new j$(t,n);M0.set(t,r)},e.observe=function(t,n,r){var o=M0.get(t),s=o.observationTargets.length===0;_m(o.observationTargets,n)<0&&(s&&qi.push(o),o.observationTargets.push(new k$(n,r&&r.box)),Pm(1),t9.schedule())},e.unobserve=function(t,n){var r=M0.get(t),o=_m(r.observationTargets,n),s=r.observationTargets.length===1;o>=0&&(s&&qi.splice(qi.indexOf(r),1),r.observationTargets.splice(o,1),Pm(-1))},e.disconnect=function(t){var n=this,r=M0.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),A$=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");E0.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Om(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");E0.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Om(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");E0.unobserve(this,t)},e.prototype.disconnect=function(){E0.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();function O$(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function vc(e,t){if(e==null)return{};var n=O$(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S5(e){"@babel/helpers - typeof";return S5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S5(e)}function B$(e,t){if(S5(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(S5(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R$(e){var t=B$(e,"string");return S5(t)==="symbol"?t:String(t)}function A1(e,t,n){return t=R$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w6=g.createContext(null),Ia=()=>{var e=g.useContext(w6);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},$e=Bt;function Im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function k0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Im(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Im(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var T$=25,N$=200,F$=function(){},P$=e=>e?.constructor.name==="DataTransfer";function _$(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,s=null,c=null,d=null,h=0,p=!1,m=()=>{var z=fo.get(t);if(fo.delete(t),z){var{selection:q}=t,te=wm(t,z);te&&(!q||!Te.equals(te,q))&&Pe.select(t,te)}},v=()=>{var z=ei.get(t);if(ei.delete(t),!!z){if(z.at){var q=Rt.isPoint(z.at)?J8(t,z.at):wm(t,z.at);if(!q)return;var te=R.range(t,q);(!t.selection||!Te.equals(t.selection,te))&&Pe.select(t,q)}z.run()}},y=()=>{if(c&&(clearTimeout(c),c=null),d&&(clearTimeout(d),d=null),!O()&&!E()){m();return}o||(o=!0,setTimeout(()=>o=!1)),E()&&(o="action");var z=t.selection&&R.rangeRef(t,t.selection,{affinity:"forward"});po.set(t,t.marks),F$("flush",ei.get(t),fr.get(t));for(var q=O(),te;te=(X=fr.get(t))===null||X===void 0?void 0:X[0];){var X,H,Q=ca.get(t);Q!==void 0&&(ca.delete(t),t.marks=Q),Q&&p===!1&&(p=null);var oe=XW(te);(!t.selection||!Te.equals(t.selection,oe))&&Pe.select(t,oe),te.diff.text?R.insertText(t,te.diff.text):R.deleteFragment(t),fr.set(t,(H=fr.get(t))===null||H===void 0?void 0:H.filter(N=>{var{id:$}=N;return $!==te.id})),qW(t,te)||(q=!1,ei.delete(t),po.delete(t),o="action",fo.delete(t),n.cancel(),r.cancel(),z?.unref())}var U=z?.unref();if(U&&!fo.get(t)&&(!t.selection||!Te.equals(U,t.selection))&&Pe.select(t,U),E()){v();return}q&&n(),n.flush(),r.flush(),m();var ie=po.get(t);po.delete(t),ie!==void 0&&(t.marks=ie,t.onChange())},b=z=>{s&&clearTimeout(s),s=setTimeout(()=>{Wi.set(t,!1),y()},T$)},D=z=>{Wi.set(t,!0),s&&(clearTimeout(s),s=null)},S=function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,te=K8.get(t);if(te){if(O()||q){te.style.display="none";return}te.style.removeProperty("display")}},L=(z,q)=>{var te,X=(te=fr.get(t))!==null&&te!==void 0?te:[];fr.set(t,X);var H=re.leaf(t,z),Q=X.findIndex(ie=>ee.equals(ie.path,z));if(Q<0){var oe=zS(H.text,q);oe&&X.push({path:z,diff:q,id:h++}),S();return}var U=KW(H.text,X[Q].diff,q);if(!U){X.splice(Q,1),S();return}X[Q]=k0(k0({},X[Q]),{},{diff:U})},M=function(q){var{at:te}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};p=!1,fo.delete(t),n.cancel(),r.cancel(),E()&&y(),ei.set(t,{at:te,run:q}),d=setTimeout(y)},w=z=>{var q;if(c&&(clearTimeout(c),c=null),!y2.get(t)){var{inputType:te}=z,X=null,H=z.dataTransfer||z.data||void 0;p!==!1&&te!=="insertText"&&te!=="insertCompositionText"&&(p=!1);var[Q]=z.getTargetRanges();Q&&(X=$e.toSlateRange(t,Q,{exactMatch:!1,suppressThrow:!0}));var oe=$e.getWindow(t),U=oe.getSelection();if(!X&&U&&(Q=U,X=$e.toSlateRange(t,U,{exactMatch:!1,suppressThrow:!0})),X=(q=X)!==null&&q!==void 0?q:t.selection,!!X){var ie=!0;if(te.startsWith("delete")){var N=te.endsWith("Backward")?"backward":"forward",[$,V]=Te.edges(X),[se,ke]=R.leaf(t,$.path);if(Te.isExpanded(X)&&se.text.length===$.offset&&V.offset===0){var We=R.next(t,{at:$.path,match:re.isText});We&&ee.equals(We[1],V.path)&&(N==="backward"?(X={anchor:V,focus:V},$=V,[se,ke]=We):(X={anchor:$,focus:$},V=$))}var Ae={text:"",start:$.offset,end:V.offset},Qe=fr.get(t),I=Qe?.find(he=>ee.equals(he.path,ke)),fe=I?[I.diff,Ae]:[Ae],me=IS(se.text,...fe);if(me.length===0&&(ie=!1),Te.isExpanded(X)){if(ie&&ee.equals(X.anchor.path,X.focus.path)){var Se={path:X.anchor.path,offset:$.offset},Xe=R.range(t,Se,Se);return P(Xe),L(X.anchor.path,{text:"",end:V.offset,start:$.offset})}return M(()=>R.deleteFragment(t,{direction:N}),{at:X})}}switch(te){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return M(()=>R.deleteFragment(t),{at:X});case"deleteContent":case"deleteContentForward":{var{anchor:He}=X;if(ie&&Te.isCollapsed(X)){var Ct=re.leaf(t,He.path);if(He.offset<Ct.text.length)return L(He.path,{text:"",start:He.offset,end:He.offset+1})}return M(()=>R.deleteForward(t),{at:X})}case"deleteContentBackward":{var mt,{anchor:dt}=X,xe=G8(Q)?Q.isCollapsed:!!((mt=Q)!==null&&mt!==void 0&&mt.collapsed);return ie&&xe&&Te.isCollapsed(X)&&dt.offset>0?L(dt.path,{text:"",start:dt.offset-1,end:dt.offset}):M(()=>R.deleteBackward(t),{at:X})}case"deleteEntireSoftLine":return M(()=>{R.deleteBackward(t,{unit:"line"}),R.deleteForward(t,{unit:"line"})},{at:X});case"deleteHardLineBackward":return M(()=>R.deleteBackward(t,{unit:"block"}),{at:X});case"deleteSoftLineBackward":return M(()=>R.deleteBackward(t,{unit:"line"}),{at:X});case"deleteHardLineForward":return M(()=>R.deleteForward(t,{unit:"block"}),{at:X});case"deleteSoftLineForward":return M(()=>R.deleteForward(t,{unit:"line"}),{at:X});case"deleteWordBackward":return M(()=>R.deleteBackward(t,{unit:"word"}),{at:X});case"deleteWordForward":return M(()=>R.deleteForward(t,{unit:"word"}),{at:X});case"insertLineBreak":return M(()=>R.insertSoftBreak(t),{at:X});case"insertParagraph":return M(()=>R.insertBreak(t),{at:X});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(P$(H))return M(()=>$e.insertData(t,H),{at:X});var Ue=H??"";if(ca.get(t)&&(Ue=Ue.replace("\uFEFF","")),te==="insertText"&&/.*\n.*\n$/.test(Ue)&&(Ue=Ue.slice(0,-1)),Ue.includes(`
222
+ `))return M(()=>{var he=Ue.split(`
223
+ `);he.forEach((ve,Be)=>{ve&&R.insertText(t,ve),Be!==he.length-1&&R.insertSoftBreak(t)})},{at:X});if(ee.equals(X.anchor.path,X.focus.path)){var[ht,Ie]=Te.edges(X),Lt={start:ht.offset,end:Ie.offset,text:Ue};if(Ue&&p&&te==="insertCompositionText"){var n1=p.start+p.text.search(/\S|$/),Me=Lt.start+Lt.text.search(/\S|$/);Me===n1+1&&Lt.end===p.start+p.text.length?(Lt.start-=1,p=null,K()):p=!1}else te==="insertText"?p===null?p=Lt:p&&Te.isCollapsed(X)&&p.end+p.text.length===ht.offset?p=k0(k0({},p),{},{text:p.text+Ue}):p=!1:p=!1;if(ie){var tt=t.selection;if(L(ht.path,Lt),tt){var Y={path:ht.path,offset:ht.offset+Ue.length};M(()=>{Pe.select(t,{anchor:Y,focus:Y})},{at:Y})}return}}return M(()=>R.insertText(t,Ue),{at:X})}}}}},E=()=>!!ei.get(t),O=()=>{var z;return!!((z=fr.get(t))!==null&&z!==void 0&&z.length)},B=()=>E()||O(),T=()=>o,P=z=>{fo.set(t,z),c&&(clearTimeout(c),c=null);var{selection:q}=t;if(z){var te=!q||!ee.equals(q.anchor.path,z.anchor.path),X=!q||!ee.equals(q.anchor.path.slice(0,-1),z.anchor.path.slice(0,-1));(te&&p||X)&&(p=!1),(te||O())&&(c=setTimeout(y,N$))}},_=()=>{(E()||!O())&&y()},Z=z=>{O()||(S(!0),setTimeout(S))},K=()=>{E()||(d=setTimeout(y))},W=z=>{if(!(O()||E())&&z.some(te=>C6(t,te,z))){var q;(q=PS.get(t))===null||q===void 0||q()}};return{flush:y,scheduleFlush:K,hasPendingDiffs:O,hasPendingAction:E,hasPendingChanges:B,isFlushing:T,handleUserSelect:P,handleCompositionEnd:b,handleCompositionStart:D,handleDOMBeforeInput:w,handleKeyDown:Z,handleDomMutations:W,handleInput:_}}function I$(){var e=g.useRef(!1);return g.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var xo=Z0?g.useLayoutEffect:g.useEffect;function z$(e,t,n){var[r]=g.useState(()=>new MutationObserver(t));xo(()=>{r.takeRecords()}),g.useEffect(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}var H$=["node"];function zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Z$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zm(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var V$={subtree:!0,childList:!0,characterData:!0},W$=_n?e=>{var{node:t}=e,n=vc(e,H$);if(!_n)return null;var r=Ia(),o=I$(),[s]=g.useState(()=>_$(Z$({editor:r},n)));return z$(t,s.handleDomMutations,V$),v6.set(r,s.scheduleFlush),o&&s.flush(),s}:()=>null;function Hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hm(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var U$=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,s=Ia(),c=$e.findPath(s,o),d=ee.parent(c),h=!!n[_S];return s.isVoid(r)?et.createElement(s8,{length:re.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!s.isInline(r)&&R.string(s,d)===""?et.createElement(s8,{isLineBreak:!0,isMarkPlaceholder:h}):n.text===""?et.createElement(s8,{isMarkPlaceholder:h}):t&&n.text.slice(-1)===`
224
+ `?et.createElement(Zm,{isTrailing:!0,text:n.text}):et.createElement(Zm,{text:n.text})},Zm=e=>{var{text:t,isTrailing:n=!1}=e,r=g.useRef(null),o=()=>"".concat(t??"").concat(n?`
225
+ `:""),[s]=g.useState(o);return xo(()=>{var c=o();r.current&&r.current.textContent!==c&&(r.current.textContent=c)}),et.createElement(q$,{ref:r},s)},q$=g.memo(g.forwardRef((e,t)=>et.createElement("span",{"data-slate-string":!0,ref:t},e.children))),s8=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),et.createElement("span",$$({},o),!_n||!n?"\uFEFF":null,n?et.createElement("br",null):null)};function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function GS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vm(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Y$=_n?300:0;function G$(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function Wm(e){e.current&&(clearTimeout(e.current),e.current=null)}var K$=e=>et.createElement(J$,GS({},e)),X$=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:s,renderLeaf:c=K$,leafPosition:d}=e,h=Ia(),p=g.useRef(null),m=g.useRef(null),[v,y]=g.useState(!1),b=g.useRef(null),D=g.useCallback(E=>{if(G$(p,E==null),E==null){var O;K8.delete(h),(O=t.onPlaceholderResize)===null||O===void 0||O.call(t,null)}else{if(K8.set(h,E),!p.current){var B=window.ResizeObserver||A$;p.current=new B(()=>{var T;(T=t.onPlaceholderResize)===null||T===void 0||T.call(t,E)})}p.current.observe(E),m.current=E}},[m,t,h]),S=et.createElement(U$,{isLast:n,leaf:t,parent:o,text:r}),L=!!t[E2];if(g.useEffect(()=>(L?b.current||(b.current=setTimeout(()=>{y(!0),b.current=null},Y$)):(Wm(b),y(!1)),()=>Wm(b)),[L,y]),L&&v){var M={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Hi?"inherit":void 0},contentEditable:!1,ref:D}};S=et.createElement(et.Fragment,null,S,s(M))}var w={"data-slate-leaf":!0};return c({attributes:w,children:S,leaf:t,text:r,leafPosition:d})},Q$=et.memo(X$,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&go.equals(t.leaf,e.leaf)&&t.leaf[E2]===e.leaf[E2]),J$=e=>{var{attributes:t,children:n}=e;return et.createElement("span",GS({},t),n)};function eU(e,t){var[,n]=g.useReducer(p=>p+1,0),r=g.useRef(),o=g.useRef(()=>null),s=g.useRef(null),c;try{if(e!==o.current||r.current){var d=e();t(s.current,d)?c=s.current:c=d}else c=s.current}catch(p){throw r.current&&tU(p)&&(p.message+=`
226
+ The error may be correlated with this previous error:
227
+ `.concat(r.current.stack,`
228
+
229
+ `)),p}o.current=e,s.current=c,r.current=void 0;var h=g.useCallback(()=>{try{var p=o.current();if(t(s.current,p))return;s.current=p}catch(m){m instanceof Error?r.current=m:r.current=new Error(String(m))}n()},[]);return[c,h]}function tU(e){return e instanceof Error}var KS=g.createContext({}),XS=(e,t)=>{var n=Ia(),{decorate:r,addEventListener:o}=g.useContext(KS),s=()=>{var p=$e.findPath(n,e);return r([e,p])},c=re.isText(e)?ZS:y6,[d,h]=eU(s,c);return xo(()=>{var p=o(h);return h(),p},[o,h]),g.useMemo(()=>[...d,...t],[d,t])},nU=e=>{var t=g.useRef(new Set),n=g.useRef(e);xo(()=>{n.current=e,t.current.forEach(s=>s())},[e]);var r=g.useCallback(s=>n.current(s),[]),o=g.useCallback(s=>(t.current.add(s),()=>{t.current.delete(s)}),[]);return g.useMemo(()=>({decorate:r,addEventListener:o}),[r,o])};function $m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function QS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$m(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$m(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var rU=e=>et.createElement(oU,QS({},e)),aU=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:s,renderText:c=rU,text:d}=e,h=Ia(),p=g.useRef(null),m=XS(d,t),v=go.decorations(d,m),y=$e.findKey(h,d),b=[],D=0;D<v.length;D++){var{leaf:S,position:L}=v[D];b.push(et.createElement(Q$,{isLast:n&&D===v.length-1,key:"".concat(y.id,"-").concat(D),renderPlaceholder:o,leaf:S,leafPosition:L,text:d,parent:r,renderLeaf:s}))}var M=g.useCallback(E=>{var O=i7.get(h);E?(O?.set(y,E),Ui.set(d,E),w5.set(E,d)):(O?.delete(y),Ui.delete(d),p.current&&w5.delete(p.current)),p.current=E},[p,h,y,d]),w={"data-slate-node":"text",ref:M};return c({text:d,children:b,attributes:w})},JS=et.memo(aU,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderText===e.renderText&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&ZS(t.decorations,e.decorations)),oU=e=>{var{attributes:t,children:n}=e;return et.createElement("span",QS({},t),n)};function Um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function n9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Um(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var iU=e=>et.createElement(uU,n9({},e)),sU=e=>{var{decorations:t,element:n,renderElement:r=iU,renderChunk:o,renderPlaceholder:s,renderLeaf:c,renderText:d}=e,h=Ia(),p=xU(),m=h.isInline(n),v=XS(n,t),y=$e.findKey(h,n),b=g.useCallback(O=>{var B=i7.get(h);O?(B?.set(y,O),Ui.set(n,O),w5.set(O,n)):(B?.delete(y),Ui.delete(n))},[h,y,n]),D=nD({decorations:v,node:n,renderElement:r,renderChunk:o,renderPlaceholder:s,renderLeaf:c,renderText:d}),S={"data-slate-node":"element",ref:b};if(m&&(S["data-slate-inline"]=!0),!m&&R.hasInlines(h,n)){var L=re.string(n),M=MS(L);M==="rtl"&&(S.dir=M)}if(R.isVoid(h,n)){S["data-slate-void"]=!0,!p&&m&&(S.contentEditable=!1);var w=m?"span":"div",[[E]]=re.texts(n);D=et.createElement(w,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},et.createElement(JS,{renderPlaceholder:s,decorations:[],isLast:!1,parent:n,text:E})),c2.set(E,0),r5.set(E,n)}return r({attributes:S,children:D,element:n})},lU=et.memo(sU,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderChunk===t.renderChunk&&e.renderText===t.renderText&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&y6(e.decorations,t.decorations)),uU=e=>{var{attributes:t,children:n,element:r}=e,o=Ia(),s=o.isInline(r)?"span":"div";return et.createElement(s,n9(n9({},t),{},{style:{position:"relative"}}),n)};class cU{constructor(t,n){var{chunkSize:r,debug:o}=n;A1(this,"root",void 0),A1(this,"chunkSize",void 0),A1(this,"debug",void 0),A1(this,"reachedEnd",void 0),A1(this,"pointerChunk",void 0),A1(this,"pointerIndex",void 0),A1(this,"pointerIndexStack",void 0),A1(this,"cachedPointerNode",void 0),this.root=t,this.chunkSize=r,this.debug=o??!1,this.pointerChunk=t,this.pointerIndex=-1,this.pointerIndexStack=[],this.reachedEnd=!1,this.validateState()}readLeaf(){if(this.reachedEnd)return null;for(;;)if(this.pointerIndex+1<this.pointerSiblings.length){this.pointerIndex++,this.cachedPointerNode=void 0;break}else{if(this.pointerChunk.type==="root")return this.reachedEnd=!0,null;this.exitChunk()}return this.validateState(),this.enterChunkUntilLeaf(!1),this.pointerNode}returnToPreviousLeaf(){if(this.reachedEnd){this.reachedEnd=!1,this.enterChunkUntilLeaf(!0);return}for(;;)if(this.pointerIndex>=1){this.pointerIndex--,this.cachedPointerNode=void 0;break}else if(this.pointerChunk.type==="root"){this.pointerIndex=-1;return}else this.exitChunk();this.validateState(),this.enterChunkUntilLeaf(!0)}insertBefore(t){this.returnToPreviousLeaf(),this.insertAfter(t),this.readLeaf()}insertAfter(t){if(t.length!==0){for(var n=0,r=0;this.pointerChunk.type==="chunk"&&this.pointerIndex===this.pointerSiblings.length-1;){var o=this.chunkSize-this.pointerSiblings.length,s=Math.min(o,t.length);if(s>0){var c=t.splice(0,s);this.rawInsertAfter(c,n)}this.exitChunk(),n++}if(t.length!==0){var d=this.savePointer(),h=null;if(this.readLeaf())for(;this.pointerChunk.type==="chunk"&&this.pointerIndex===0;){var p=this.chunkSize-this.pointerSiblings.length,m=Math.min(p,t.length);if(m>0){var v=t.splice(-m,m);this.pointerIndex=-1,this.cachedPointerNode=void 0,this.rawInsertAfter(v,r),h||(h=this.savePointer())}this.exitChunk(),r++}this.restorePointer(d);var y=Math.max(n,r);this.rawInsertAfter(t,y),h&&this.restorePointer(h),this.validateState()}}}remove(){this.pointerSiblings.splice(this.pointerIndex--,1),this.cachedPointerNode=void 0,this.pointerSiblings.length===0&&this.pointerChunk.type==="chunk"?(this.exitChunk(),this.remove()):this.invalidateChunk(),this.validateState()}invalidateChunk(){for(var t=this.pointerChunk;t.type==="chunk";t=t.parent)this.root.modifiedChunks.add(t)}get atStart(){return this.pointerChunk.type==="root"&&this.pointerIndex===-1}get pointerSiblings(){return this.pointerChunk.children}getPointerNode(){return this.reachedEnd||this.pointerIndex===-1?null:this.pointerSiblings[this.pointerIndex]}get pointerNode(){if(this.cachedPointerNode!==void 0)return this.cachedPointerNode;var t=this.getPointerNode();return this.cachedPointerNode=t,t}getChunkPath(t){for(var n=[],r=t;r.type==="chunk";r=r.parent){var o=r.parent.children.indexOf(r);if(o===-1)return null;n.unshift(o)}return n}savePointer(){if(this.atStart)return"start";if(!this.pointerNode)throw new Error("Cannot save pointer when pointerNode is null");return{chunk:this.pointerChunk,node:this.pointerNode}}restorePointer(t){if(t==="start"){this.pointerChunk=this.root,this.pointerIndex=-1,this.pointerIndexStack=[],this.reachedEnd=!1,this.cachedPointerNode=void 0;return}var{chunk:n,node:r}=t,o=n.children.indexOf(r);if(o===-1)throw new Error("Cannot restore point because saved node is no longer in saved chunk");var s=this.getChunkPath(n);if(!s)throw new Error("Cannot restore point because saved chunk is no longer connected to root");this.pointerChunk=n,this.pointerIndex=o,this.pointerIndexStack=s,this.reachedEnd=!1,this.cachedPointerNode=r,this.validateState()}enterChunk(t){var n;if(((n=this.pointerNode)===null||n===void 0?void 0:n.type)!=="chunk")throw new Error("Cannot enter non-chunk");if(this.pointerIndexStack.push(this.pointerIndex),this.pointerChunk=this.pointerNode,this.pointerIndex=t?this.pointerSiblings.length-1:0,this.cachedPointerNode=void 0,this.validateState(),this.pointerChunk.children.length===0)throw new Error("Cannot enter empty chunk")}enterChunkUntilLeaf(t){for(;((n=this.pointerNode)===null||n===void 0?void 0:n.type)==="chunk";){var n;this.enterChunk(t)}}exitChunk(){if(this.pointerChunk.type==="root")throw new Error("Cannot exit root");var t=this.pointerChunk;this.pointerChunk=t.parent,this.pointerIndex=this.pointerIndexStack.pop(),this.cachedPointerNode=void 0,this.validateState()}rawInsertAfter(t,n){if(t.length!==0){for(var r=(m,v,y)=>{if(y===1)return m;for(var b=[],D=0;D<this.chunkSize;D++){var S=m.slice(D*y,(D+1)*y);if(S.length===0)break;var L={type:"chunk",key:new NS,parent:v,children:[]};L.children=r(S,L,y/this.chunkSize),b.push(L)}return b},o=this.pointerSiblings.length+t.length,s=0,c=this.chunkSize;c<o;c*=this.chunkSize)s++;var d=Math.max(s,n),h=Math.pow(this.chunkSize,d),p=r(t,this.pointerChunk,h);this.pointerSiblings.splice(this.pointerIndex+1,0,...p),this.pointerIndex+=p.length,this.cachedPointerNode=void 0,this.invalidateChunk(),this.validateState()}}validateState(){if(this.debug){var t=r=>{if(r.type==="chunk"){var{parent:o,children:s}=r;if(!o.children.includes(r))throw new Error("Debug: Chunk ".concat(r.key.id," has an incorrect parent property"));s.forEach(t)}};if(this.root.children.forEach(t),this.cachedPointerNode!==void 0&&this.cachedPointerNode!==this.getPointerNode())throw new Error("Debug: The cached pointer is incorrect and has not been invalidated");var n=this.getChunkPath(this.pointerChunk);if(!n)throw new Error("Debug: The pointer chunk is not connected to the root");if(!ee.equals(this.pointerIndexStack,n))throw new Error("Debug: The cached index stack [".concat(this.pointerIndexStack.join(", "),"] does not match the path of the pointer chunk [").concat(n.join(", "),"]"))}}}class fU{constructor(t,n){A1(this,"editor",void 0),A1(this,"children",void 0),A1(this,"cachedKeys",void 0),A1(this,"pointerIndex",void 0),this.editor=t,this.children=n,this.cachedKeys=new Array(n.length),this.pointerIndex=0}read(t){if(t===1)return[this.children[this.pointerIndex++]];var n=this.remaining(t);return this.pointerIndex+=t,n}remaining(t){return t===void 0?this.children.slice(this.pointerIndex):this.children.slice(this.pointerIndex,this.pointerIndex+t)}get reachedEnd(){return this.pointerIndex>=this.children.length}lookAhead(t,n){var r=this.children.indexOf(t,this.pointerIndex);if(r>-1)return r-this.pointerIndex;for(var o=this.pointerIndex;o<this.children.length;o++){var s=this.children[o],c=this.findKey(s,o);if(c===n)return o-this.pointerIndex}return-1}toChunkLeaves(t,n){return t.map((r,o)=>({type:"leaf",node:r,key:this.findKey(r,n+o),index:n+o}))}findKey(t,n){var r=this.cachedKeys[n];if(r)return r;var o=$e.findKey(this.editor,t);return this.cachedKeys[n]=o,o}}var dU=(e,t)=>{for(var{chunkTree:n,children:r,chunkSize:o,rerenderChildren:s=[],onInsert:c,onUpdate:d,onIndexChange:h,debug:p}=t,m=new cU(n,{chunkSize:o,debug:p}),v=new fU(e,r),y,b=function(){var M=v.lookAhead(y.node,y.key),w=M>0&&n.movedNodeKeys.has(y.key);if(M===-1||w)return m.remove(),1;var E=v.pointerIndex,O=v.read(M+1),B=O.pop();if(O.length){var T=v.toChunkLeaves(O,E);m.insertBefore(T),O.forEach((_,Z)=>{c?.(_,E+Z)})}var P=v.pointerIndex-1;y.node!==B&&(y.node=B,m.invalidateChunk(),d?.(B,P)),y.index!==P&&(y.index=P,h?.(B,P)),s.includes(P)&&m.invalidateChunk()};y=m.readLeaf();)b();if(!v.reachedEnd){var D=v.remaining(),S=v.toChunkLeaves(D,v.pointerIndex);m.returnToPreviousLeaf(),m.insertAfter(S),D.forEach((L,M)=>{c?.(L,v.pointerIndex+M)})}n.movedNodeKeys.clear()};function qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qm(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ym=new WeakMap,eD=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=$e.findKey(t,n),s=Ym.get(o);return s||(s={type:"root",movedNodeKeys:new Set,modifiedChunks:new Set,children:[]},Ym.set(o,s)),r.reconcile&&dU(t,hU({chunkTree:s,children:n.children},r.reconcile)),s};function Gm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gm(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var CU=e=>{var{children:t}=e;return t},tD=e=>{var{root:t,ancestor:n,renderElement:r,renderChunk:o=CU}=e;return n.children.map(s=>{if(s.type==="chunk"){var c=s.key.id,d=o({highest:n===t,lowest:s.children.some(p=>p.type==="leaf"),attributes:{"data-slate-chunk":!0},children:et.createElement(mU,{root:t,ancestor:s,renderElement:r,renderChunk:o})});return et.createElement(g.Fragment,{key:c},d)}var h=s.node;return r(h,s.index,s.key)})},gU=e=>(g.useEffect(()=>{e.root.modifiedChunks.clear()}),et.createElement(tD,pU({},e))),mU=et.memo(tD,(e,t)=>e.root===t.root&&e.renderElement===t.renderElement&&e.renderChunk===t.renderChunk&&!t.root.modifiedChunks.has(t.ancestor)),vU=g.createContext(null),nD=e=>{var{decorations:t,node:n,renderElement:r,renderChunk:o,renderPlaceholder:s,renderText:c,renderLeaf:d}=e,h=Ia();y2.set(h,!1);var p=re.isElement(n)&&!h.isInline(n),m=p&&R.hasInlines(h,n),v=m?null:h.getChunkSize(n),y=!!v,{decorationsByChild:b,childrenToRedecorate:D}=yU(h,n,t);y||n.children.forEach((w,E)=>{c2.set(w,E),r5.set(w,n)});var S=g.useCallback((w,E,O)=>{var B=O??$e.findKey(h,w);return et.createElement(vU.Provider,{key:"provider-".concat(B.id),value:w},et.createElement(lU,{decorations:b[E],element:w,key:B.id,renderElement:r,renderChunk:o,renderPlaceholder:s,renderLeaf:d,renderText:c}))},[h,b,r,o,s,d,c]),L=(w,E)=>{var O=$e.findKey(h,w);return et.createElement(JS,{decorations:b[E],key:O.id,isLast:E===n.children.length-1,parent:n,renderPlaceholder:s,renderLeaf:d,renderText:c,text:w})};if(!y)return n.children.map((w,E)=>re.isText(w)?L(w,E):S(w,E));var M=eD(h,n,{reconcile:{chunkSize:v,rerenderChildren:D,onInsert:(w,E)=>{c2.set(w,E),r5.set(w,n)},onUpdate:(w,E)=>{c2.set(w,E),r5.set(w,n)},onIndexChange:(w,E)=>{c2.set(w,E)}}});return et.createElement(gU,{root:M,ancestor:M,renderElement:S,renderChunk:o})},yU=(e,t,n)=>{var r=u$(e,t,n),o=g.useRef(r).current,s=[];o.length=r.length;for(var c=0;c<r.length;c++){var d,h=r[c],p=(d=o[c])!==null&&d!==void 0?d:null;y6(p,h)||(o[c]=h,s.push(c))}return{decorationsByChild:o,childrenToRedecorate:s}},rD=g.createContext(!1),xU=()=>g.useContext(rD),b6=g.createContext({});function wU(){var e=g.useRef(new Set),t=g.useRef(new Set),n=g.useCallback(()=>{e.current.forEach(c=>c())},[]),r=g.useCallback(()=>{t.current.forEach(c=>c()),t.current.clear()},[]),o=g.useCallback(function(c){var{deferred:d=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=d?()=>t.current.add(c):c;return e.current.add(h),()=>{e.current.delete(h)}},[]),s=g.useMemo(()=>({addEventListener:o,flushDeferred:r}),[o,r]);return{selectorContext:s,onChange:n}}function bU(){var{flushDeferred:e}=g.useContext(b6);xo(e)}var SU=()=>{var{addEventListener:e}=g.useContext(b6),[,t]=g.useReducer(n=>n+1,0);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");return xo(()=>e(t),[e]),Ia()};function DU(){var e=Ia(),t=g.useRef(!1),n=g.useRef(0),r=g.useCallback(()=>{if(!t.current){t.current=!0;var o=$e.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return g.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var LU=(e,t)=>{var n=[],r=()=>{n=[]},o=c=>{if(t.current){var d=c.filter(h=>C6(e,h,c));n.push(...d)}};function s(){n.length>0&&(n.reverse().forEach(c=>{c.type!=="characterData"&&(c.removedNodes.forEach(d=>{c.target.insertBefore(d,c.nextSibling)}),c.addedNodes.forEach(d=>{c.target.removeChild(d)}))}),r())}return{registerMutations:o,restoreDOM:s,clear:r}},MU={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class aD extends g.Component{constructor(){super(...arguments),A1(this,"context",null),A1(this,"manager",null),A1(this,"mutationObserver",null)}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,MU)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=LU(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,o=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(o!=null&&o.length){var s;(s=this.manager)===null||s===void 0||s.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}A1(aD,"contextType",w6);var EU=_n?aD:e=>{var{children:t}=e;return et.createElement(et.Fragment,null,t)},kU=g.createContext(!1),jU=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderChunk","renderLeaf","renderText","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],AU=["text"];function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Km(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var OU=e=>et.createElement(et.Fragment,null,nD(e)),BU=g.forwardRef((e,t)=>{var n=g.useCallback(I=>et.createElement(RU,ka({},I)),[]),{autoFocus:r,decorate:o=TU,onDOMBeforeInput:s,placeholder:c,readOnly:d=!1,renderElement:h,renderChunk:p,renderLeaf:m,renderText:v,renderPlaceholder:y=n,scrollSelectionIntoView:b=NU,style:D={},as:S="div",disableDefaultStyles:L=!1}=e,M=vc(e,jU),w=SU(),[E,O]=g.useState(!1),B=g.useRef(null),T=g.useRef([]),[P,_]=g.useState(),Z=g.useRef(!1),{onUserInput:K,receivedUserInput:W}=DU(),[,z]=g.useReducer(I=>I+1,0);PS.set(w,z),X8.set(w,d);var q=g.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);g.useEffect(()=>{B.current&&r&&B.current.focus()},[r]);var te=g.useRef(),X=g.useMemo(()=>SW(()=>{if(y2.get(w)){X();return}var I=$e.toDOMNode(w,w),fe=I.getRootNode();if(!Z.current&&Hi&&fe instanceof ShadowRoot){Z.current=!0;var me=FW();me?document.execCommand("indent"):Pe.deselect(w),Z.current=!1;return}var Se=te.current;if((_n||!$e.isComposing(w))&&(!q.isUpdatingSelection||Se!=null&&Se.isFlushing())&&!q.isDraggingInternally){var Xe=$e.findDocumentOrShadowRoot(w),{activeElement:He}=Xe,Ct=$e.toDOMNode(w,w),mt=n5(Xe);if(He===Ct?(q.latestElement=He,ai.set(w,!0)):ai.delete(w),!mt)return Pe.deselect(w);var{anchorNode:dt,focusNode:xe}=mt,Ue=$e.hasEditableTarget(w,dt)||$e.isTargetInsideNonReadonlyVoid(w,dt),ht=$e.hasTarget(w,xe);if(Ue&&ht){var Ie=$e.toSlateRange(w,mt,{exactMatch:!1,suppressThrow:!0});Ie&&(!$e.isComposing(w)&&!(Se!=null&&Se.hasPendingChanges())&&!(Se!=null&&Se.isFlushing())?Pe.select(w,Ie):Se?.handleUserSelect(Ie))}d&&(!Ue||!ht)&&Pe.deselect(w)}},100),[w,d,q]),H=g.useMemo(()=>xW(X,0),[X]);te.current=W$({node:B,onDOMSelectionChange:X,scheduleOnDOMSelectionChange:H}),xo(()=>{var I,fe,me;B.current&&(me=p6(B.current))?(FS.set(w,me),a5.set(w,B.current),Ui.set(w,B.current),w5.set(B.current,w)):Ui.delete(w);var{selection:Se}=w,Xe=$e.findDocumentOrShadowRoot(w),He=n5(Xe);if(!(!He||!$e.isFocused(w)||(I=te.current)!==null&&I!==void 0&&I.hasPendingAction())){var Ct=Ue=>{var ht=He.type!=="None";if(!(!Se&&!ht)){var Ie=He.focusNode,Lt;if(u2&&He.rangeCount>1){var n1=He.getRangeAt(0),Me=He.getRangeAt(He.rangeCount-1);n1.startContainer===Ie?Lt=Me.endContainer:Lt=n1.startContainer}else Lt=He.anchorNode;var tt=a5.get(w),Y=!1;if($i(tt,Lt)&&$i(tt,Ie)&&(Y=!0),ht&&Y&&Se&&!Ue){var he=$e.toSlateRange(w,He,{exactMatch:!0,suppressThrow:!0});if(he&&Te.equals(he,Se)){var ve;if(!q.hasMarkPlaceholder||(ve=Lt)!==null&&ve!==void 0&&(ve=ve.parentElement)!==null&&ve!==void 0&&ve.hasAttribute("data-slate-mark-placeholder"))return}}if(Se&&!$e.hasRange(w,Se)){w.selection=$e.toSlateRange(w,He,{exactMatch:!1,suppressThrow:!0});return}q.isUpdatingSelection=!0;var Be=null;try{Be=Se&&$e.toDOMRange(w,Se)}catch{}return Be?($e.isComposing(w)&&!_n?He.collapseToEnd():Te.isBackward(Se)?He.setBaseAndExtent(Be.endContainer,Be.endOffset,Be.startContainer,Be.startOffset):He.setBaseAndExtent(Be.startContainer,Be.startOffset,Be.endContainer,Be.endOffset),b(w,Be)):He.removeAllRanges(),Be}};He.rangeCount<=1&&Ct();var mt=((fe=te.current)===null||fe===void 0?void 0:fe.isFlushing())==="action";if(!_n||!mt){setTimeout(()=>{q.isUpdatingSelection=!1});return}var dt=null,xe=requestAnimationFrame(()=>{if(mt){var Ue=ht=>{try{var Ie=$e.toDOMNode(w,w);Ie.focus(),Ct(ht)}catch{}};Ue(),dt=setTimeout(()=>{Ue(!0),q.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(xe),dt&&clearTimeout(dt)}}});var Q=g.useCallback(I=>{Xm(w,I);var fe=$e.toDOMNode(w,w),me=fe.getRootNode();if(Z!=null&&Z.current&&Hi&&me instanceof ShadowRoot){var Se=I.getTargetRanges(),Xe=Se[0],He=new window.Range;He.setStart(Xe.startContainer,Xe.startOffset),He.setEnd(Xe.endContainer,Xe.endOffset);var Ct=$e.toSlateRange(w,He,{exactMatch:!1,suppressThrow:!1});Pe.select(w,Ct),I.preventDefault(),I.stopImmediatePropagation();return}if(K(),!d&&$e.hasEditableTarget(w,I.target)&&!FU(I,s)){var mt;if(te.current)return te.current.handleDOMBeforeInput(I);H.flush(),X.flush();var{selection:dt}=w,{inputType:xe}=I,Ue=I.dataTransfer||I.data||void 0,ht=xe==="insertCompositionText"||xe==="deleteCompositionText";if(ht&&$e.isComposing(w))return;var Ie=!1;if(xe==="insertText"&&dt&&Te.isCollapsed(dt)&&I.data&&I.data.length===1&&/[a-z ]/i.test(I.data)&&dt.anchor.offset!==0&&(Ie=!0,w.marks&&(Ie=!1),!y2.get(w))){var Lt,n1,{anchor:Me}=dt,[tt,Y]=$e.toDOMPoint(w,Me),he=(Lt=tt.parentElement)===null||Lt===void 0?void 0:Lt.closest("a"),ve=$e.getWindow(w);if(Ie&&he&&$e.hasDOMNode(w,he)){var Be,Ze=ve?.document.createTreeWalker(he,NodeFilter.SHOW_TEXT).lastChild();Ze===tt&&((Be=Ze.textContent)===null||Be===void 0?void 0:Be.length)===Y&&(Ie=!1)}if(Ie&&tt.parentElement&&(ve==null||(n1=ve.getComputedStyle(tt.parentElement))===null||n1===void 0?void 0:n1.whiteSpace)==="pre"){var Ee=R.above(w,{at:Me.path,match:p1=>re.isElement(p1)&&R.isBlock(w,p1)});Ee&&re.string(Ee[0]).includes(" ")&&(Ie=!1)}}if((!xe.startsWith("delete")||xe.startsWith("deleteBy"))&&!y2.get(w)){var[_e]=I.getTargetRanges();if(_e){var ue=$e.toSlateRange(w,_e,{exactMatch:!1,suppressThrow:!1});if(!dt||!Te.equals(dt,ue)){Ie=!1;var at=!ht&&w.selection&&R.rangeRef(w,w.selection);Pe.select(w,ue),at&&o5.set(w,at)}}}if(ht)return;if(Ie||I.preventDefault(),dt&&Te.isExpanded(dt)&&xe.startsWith("delete")){var rt=xe.endsWith("Backward")?"backward":"forward";R.deleteFragment(w,{direction:rt});return}switch(xe){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{R.deleteFragment(w);break}case"deleteContent":case"deleteContentForward":{R.deleteForward(w);break}case"deleteContentBackward":{R.deleteBackward(w);break}case"deleteEntireSoftLine":{R.deleteBackward(w,{unit:"line"}),R.deleteForward(w,{unit:"line"});break}case"deleteHardLineBackward":{R.deleteBackward(w,{unit:"block"});break}case"deleteSoftLineBackward":{R.deleteBackward(w,{unit:"line"});break}case"deleteHardLineForward":{R.deleteForward(w,{unit:"block"});break}case"deleteSoftLineForward":{R.deleteForward(w,{unit:"line"});break}case"deleteWordBackward":{R.deleteBackward(w,{unit:"word"});break}case"deleteWordForward":{R.deleteForward(w,{unit:"word"});break}case"insertLineBreak":R.insertSoftBreak(w);break;case"insertParagraph":{R.insertBreak(w);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{xe==="insertFromComposition"&&$e.isComposing(w)&&(O(!1),Wi.set(w,!1)),Ue?.constructor.name==="DataTransfer"?$e.insertData(w,Ue):typeof Ue=="string"&&(Ie?T.current.push(()=>R.insertText(w,Ue)):R.insertText(w,Ue));break}}var Tt=(mt=o5.get(w))===null||mt===void 0?void 0:mt.unref();o5.delete(w),Tt&&(!w.selection||!Te.equals(w.selection,Tt))&&Pe.select(w,Tt)}},[w,X,K,s,d,H]),oe=g.useCallback(I=>{I==null?(X.cancel(),H.cancel(),a5.delete(w),Ui.delete(w),B.current&&Ko&&B.current.removeEventListener("beforeinput",Q)):Ko&&I.addEventListener("beforeinput",Q),B.current=I,typeof t=="function"?t(I):t&&(t.current=I)},[X,H,w,Q,t]);xo(()=>{var I=$e.getWindow(w),fe=Se=>{var{target:Xe}=Se,He=Xe instanceof HTMLElement?Xe:null,Ct=He?.tagName;Ct==="INPUT"||Ct==="TEXTAREA"||H()};I.document.addEventListener("selectionchange",fe);var me=()=>{q.isDraggingInternally=!1};return I.document.addEventListener("dragend",me),I.document.addEventListener("drop",me),()=>{I.document.removeEventListener("selectionchange",fe),I.document.removeEventListener("dragend",me),I.document.removeEventListener("drop",me)}},[H,q]);var U=o([w,[]]),ie=nU(o),N=c&&w.children.length===1&&Array.from(re.texts(w)).length===1&&re.string(w)===""&&!E,$=g.useCallback(I=>{if(I&&N){var fe;_((fe=I.getBoundingClientRect())===null||fe===void 0?void 0:fe.height)}else _(void 0)},[N]);if(N){var V=R.start(w,[]);U.push({[E2]:!0,placeholder:c,onPlaceholderResize:$,anchor:V,focus:V})}var{marks:se}=w;if(q.hasMarkPlaceholder=!1,w.selection&&Te.isCollapsed(w.selection)&&se){var{anchor:ke}=w.selection,We=re.leaf(w,ke.path),Ae=vc(We,AU);if(!go.equals(We,se,{loose:!0})){q.hasMarkPlaceholder=!0;var Qe=Object.fromEntries(Object.keys(Ae).map(I=>[I,null]));U.push(ka(ka(ka({[_S]:!0},Qe),se),{},{anchor:ke,focus:ke}))}}return g.useEffect(()=>{setTimeout(()=>{var{selection:I}=w;if(I){var{anchor:fe}=I,me=re.leaf(w,fe.path);if(se&&!go.equals(me,se,{loose:!0})){ca.set(w,se);return}}ca.delete(w)})}),bU(),et.createElement(rD.Provider,{value:d},et.createElement(kU.Provider,{value:E},et.createElement(KS.Provider,{value:ie},et.createElement(EU,{node:B,receivedUserInput:W},et.createElement(S,ka(ka({role:d?void 0:"textbox","aria-multiline":d?void 0:!0,translate:"no"},M),{},{spellCheck:Ko||!Z0?M.spellCheck:!1,autoCorrect:Ko||!Z0?M.autoCorrect:"false",autoCapitalize:Ko||!Z0?M.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!d,zindex:-1,suppressContentEditableWarning:!0,ref:oe,style:ka(ka({},L?{}:ka({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},P?{minHeight:P}:{})),D),onBeforeInput:g.useCallback(I=>{if(!Ko&&!d&&!Un(I,M.onBeforeInput)&&$e.hasSelectableTarget(w,I.target)&&(I.preventDefault(),!$e.isComposing(w))){var fe=I.data;R.insertText(w,fe)}},[M.onBeforeInput,w,d]),onInput:g.useCallback(I=>{if(!Un(I,M.onInput)){if(te.current){te.current.handleInput();return}for(var fe of T.current)fe();T.current=[],$e.isFocused(w)||Xm(w,I.nativeEvent)}},[M.onInput,w]),onBlur:g.useCallback(I=>{if(!(d||q.isUpdatingSelection||!$e.hasSelectableTarget(w,I.target)||Un(I,M.onBlur))){var fe=$e.findDocumentOrShadowRoot(w);if(q.latestElement!==fe.activeElement){var{relatedTarget:me}=I,Se=$e.toDOMNode(w,w);if(me!==Se&&!(Hr(me)&&me.hasAttribute("data-slate-spacer"))){if(me!=null&&li(me)&&$e.hasDOMNode(w,me)){var Xe=$e.toSlateNode(w,me);if(re.isElement(Xe)&&!w.isVoid(Xe))return}if(Hi){var He=n5(fe);He?.removeAllRanges()}ai.delete(w)}}}},[d,q.isUpdatingSelection,q.latestElement,w,M.onBlur]),onClick:g.useCallback(I=>{if($e.hasTarget(w,I.target)&&!Un(I,M.onClick)&&li(I.target)){var fe=$e.toSlateNode(w,I.target),me=$e.findPath(w,fe);if(!R.hasPath(w,me)||re.get(w,me)!==fe)return;if(I.detail===t$&&me.length>=1){var Se=me;if(!(re.isElement(fe)&&R.isBlock(w,fe))){var Xe,He=R.above(w,{match:Ie=>re.isElement(Ie)&&R.isBlock(w,Ie),at:me});Se=(Xe=He?.[1])!==null&&Xe!==void 0?Xe:me.slice(0,1)}var Ct=R.range(w,Se);Pe.select(w,Ct);return}if(d)return;var mt=R.start(w,me),dt=R.end(w,me),xe=R.void(w,{at:mt}),Ue=R.void(w,{at:dt});if(xe&&Ue&&ee.equals(xe[1],Ue[1])){var ht=R.range(w,mt);Pe.select(w,ht)}}},[w,M.onClick,d]),onCompositionEnd:g.useCallback(I=>{if(!Tl(I)&&$e.hasSelectableTarget(w,I.target)){var fe;if($e.isComposing(w)&&Promise.resolve().then(()=>{O(!1),Wi.set(w,!1)}),(fe=te.current)===null||fe===void 0||fe.handleCompositionEnd(I),Un(I,M.onCompositionEnd)||_n)return;if(!Hi&&!HW&&!_W&&!VW&&!ZW&&I.data){var me=ca.get(w);ca.delete(w),me!==void 0&&(po.set(w,w.marks),w.marks=me),R.insertText(w,I.data);var Se=po.get(w);po.delete(w),Se!==void 0&&(w.marks=Se)}}},[M.onCompositionEnd,w]),onCompositionUpdate:g.useCallback(I=>{$e.hasSelectableTarget(w,I.target)&&!Un(I,M.onCompositionUpdate)&&!Tl(I)&&($e.isComposing(w)||(O(!0),Wi.set(w,!0)))},[M.onCompositionUpdate,w]),onCompositionStart:g.useCallback(I=>{if(!Tl(I)&&$e.hasSelectableTarget(w,I.target)){var fe;if((fe=te.current)===null||fe===void 0||fe.handleCompositionStart(I),Un(I,M.onCompositionStart)||_n)return;O(!0);var{selection:me}=w;if(me&&Te.isExpanded(me)){R.deleteFragment(w);return}}},[M.onCompositionStart,w]),onCopy:g.useCallback(I=>{$e.hasSelectableTarget(w,I.target)&&!Un(I,M.onCopy)&&!Tl(I)&&(I.preventDefault(),$e.setFragmentData(w,I.clipboardData,"copy"))},[M.onCopy,w]),onCut:g.useCallback(I=>{if(!d&&$e.hasSelectableTarget(w,I.target)&&!Un(I,M.onCut)&&!Tl(I)){I.preventDefault(),$e.setFragmentData(w,I.clipboardData,"cut");var{selection:fe}=w;if(fe)if(Te.isExpanded(fe))R.deleteFragment(w);else{var me=re.parent(w,fe.anchor.path);R.isVoid(w,me)&&Pe.delete(w)}}},[d,w,M.onCut]),onDragOver:g.useCallback(I=>{if($e.hasTarget(w,I.target)&&!Un(I,M.onDragOver)){var fe=$e.toSlateNode(w,I.target);re.isElement(fe)&&R.isVoid(w,fe)&&I.preventDefault()}},[M.onDragOver,w]),onDragStart:g.useCallback(I=>{if(!d&&$e.hasTarget(w,I.target)&&!Un(I,M.onDragStart)){var fe=$e.toSlateNode(w,I.target),me=$e.findPath(w,fe),Se=re.isElement(fe)&&R.isVoid(w,fe)||R.void(w,{at:me,voids:!0});if(Se){var Xe=R.range(w,me);Pe.select(w,Xe)}q.isDraggingInternally=!0,$e.setFragmentData(w,I.dataTransfer,"drag")}},[d,w,M.onDragStart,q]),onDrop:g.useCallback(I=>{if(!d&&$e.hasTarget(w,I.target)&&!Un(I,M.onDrop)){I.preventDefault();var fe=w.selection,me=$e.findEventRange(w,I),Se=I.dataTransfer;Pe.select(w,me),q.isDraggingInternally&&fe&&!Te.equals(fe,me)&&!R.void(w,{at:me,voids:!0})&&Pe.delete(w,{at:fe}),$e.insertData(w,Se),$e.isFocused(w)||$e.focus(w)}},[d,w,M.onDrop,q]),onDragEnd:g.useCallback(I=>{!d&&q.isDraggingInternally&&M.onDragEnd&&$e.hasTarget(w,I.target)&&M.onDragEnd(I)},[d,q,M,w]),onFocus:g.useCallback(I=>{if(!d&&!q.isUpdatingSelection&&$e.hasEditableTarget(w,I.target)&&!Un(I,M.onFocus)){var fe=$e.toDOMNode(w,w),me=$e.findDocumentOrShadowRoot(w);if(q.latestElement=me.activeElement,u2&&I.target!==fe){fe.focus();return}ai.set(w,!0)}},[d,q,w,M.onFocus]),onKeyDown:g.useCallback(I=>{if(!d&&$e.hasEditableTarget(w,I.target)){var fe;(fe=te.current)===null||fe===void 0||fe.handleKeyDown(I);var{nativeEvent:me}=I;if($e.isComposing(w)&&me.isComposing===!1&&(Wi.set(w,!1),O(!1)),Un(I,M.onKeyDown)||$e.isComposing(w))return;var{selection:Se}=w,Xe=w.children[Se!==null?Se.focus.path[0]:0],He=MS(re.string(Xe))==="rtl";if(V1.isRedo(me)){I.preventDefault();var Ct=w;typeof Ct.redo=="function"&&Ct.redo();return}if(V1.isUndo(me)){I.preventDefault();var mt=w;typeof mt.undo=="function"&&mt.undo();return}if(V1.isMoveLineBackward(me)){I.preventDefault(),Pe.move(w,{unit:"line",reverse:!0});return}if(V1.isMoveLineForward(me)){I.preventDefault(),Pe.move(w,{unit:"line"});return}if(V1.isExtendLineBackward(me)){I.preventDefault(),Pe.move(w,{unit:"line",edge:"focus",reverse:!0});return}if(V1.isExtendLineForward(me)){I.preventDefault(),Pe.move(w,{unit:"line",edge:"focus"});return}if(V1.isMoveBackward(me)){I.preventDefault(),Se&&Te.isCollapsed(Se)?Pe.move(w,{reverse:!He}):Pe.collapse(w,{edge:He?"end":"start"});return}if(V1.isMoveForward(me)){I.preventDefault(),Se&&Te.isCollapsed(Se)?Pe.move(w,{reverse:He}):Pe.collapse(w,{edge:He?"start":"end"});return}if(V1.isMoveWordBackward(me)){I.preventDefault(),Se&&Te.isExpanded(Se)&&Pe.collapse(w,{edge:"focus"}),Pe.move(w,{unit:"word",reverse:!He});return}if(V1.isMoveWordForward(me)){I.preventDefault(),Se&&Te.isExpanded(Se)&&Pe.collapse(w,{edge:"focus"}),Pe.move(w,{unit:"word",reverse:He});return}if(Ko){if((g6||Hi)&&Se&&(V1.isDeleteBackward(me)||V1.isDeleteForward(me))&&Te.isCollapsed(Se)){var dt=re.parent(w,Se.anchor.path);if(re.isElement(dt)&&R.isVoid(w,dt)&&(R.isInline(w,dt)||R.isBlock(w,dt))){I.preventDefault(),R.deleteBackward(w,{unit:"block"});return}}}else{if(V1.isBold(me)||V1.isItalic(me)||V1.isTransposeCharacter(me)){I.preventDefault();return}if(V1.isSoftBreak(me)){I.preventDefault(),R.insertSoftBreak(w);return}if(V1.isSplitBlock(me)){I.preventDefault(),R.insertBreak(w);return}if(V1.isDeleteBackward(me)){I.preventDefault(),Se&&Te.isExpanded(Se)?R.deleteFragment(w,{direction:"backward"}):R.deleteBackward(w);return}if(V1.isDeleteForward(me)){I.preventDefault(),Se&&Te.isExpanded(Se)?R.deleteFragment(w,{direction:"forward"}):R.deleteForward(w);return}if(V1.isDeleteLineBackward(me)){I.preventDefault(),Se&&Te.isExpanded(Se)?R.deleteFragment(w,{direction:"backward"}):R.deleteBackward(w,{unit:"line"});return}if(V1.isDeleteLineForward(me)){I.preventDefault(),Se&&Te.isExpanded(Se)?R.deleteFragment(w,{direction:"forward"}):R.deleteForward(w,{unit:"line"});return}if(V1.isDeleteWordBackward(me)){I.preventDefault(),Se&&Te.isExpanded(Se)?R.deleteFragment(w,{direction:"backward"}):R.deleteBackward(w,{unit:"word"});return}if(V1.isDeleteWordForward(me)){I.preventDefault(),Se&&Te.isExpanded(Se)?R.deleteFragment(w,{direction:"forward"}):R.deleteForward(w,{unit:"word"});return}}}},[d,w,M.onKeyDown]),onPaste:g.useCallback(I=>{!d&&$e.hasEditableTarget(w,I.target)&&!Un(I,M.onPaste)&&(!Ko||AW(I.nativeEvent)||Hi)&&(I.preventDefault(),$e.insertData(w,I.clipboardData))},[d,w,M.onPaste])}),et.createElement(OU,{decorations:U,node:w,renderElement:h,renderChunk:p,renderPlaceholder:y,renderLeaf:m,renderText:v}))))))}),RU=e=>{var{attributes:t,children:n}=e;return et.createElement("span",ka({},t),n,_n&&et.createElement("br",null))},TU=()=>[],NU=(e,t)=>{var n=!!e.selection&&Te.isBackward(e.selection),r=t.cloneRange();if(r.collapse(n),r.getBoundingClientRect){var o=r.startContainer.parentElement,s=r.getBoundingClientRect(),c=s.width===0&&s.height===0&&s.x===0&&s.y===0;if(c){var d=o.getBoundingClientRect(),h=d.width>0||d.height>0;if(h)return}o.getBoundingClientRect=r.getBoundingClientRect.bind(r),MW(o,{scrollMode:"if-needed"}),delete o.getBoundingClientRect}},Un=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},Tl=e=>li(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),FU=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},Xm=(e,t)=>{var n=e;if(t.inputType==="historyUndo"&&typeof n.undo=="function"){n.undo();return}if(t.inputType==="historyRedo"&&typeof n.redo=="function"){n.redo();return}},PU=g.createContext(!1),oD=parseInt(et.version.split(".")[0],10),_U=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],IU=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:s,initialValue:c}=e,d=vc(e,_U);et.useState(()=>{if(!re.isNodeList(c))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(gn.stringify(c)));if(!R.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(gn.stringify(t)));t.children=c,Object.assign(t,d)});var{selectorContext:h,onChange:p}=wU(),m=g.useCallback(()=>{r&&r(t.children),o&&t.operations.find(b=>b.type==="set_selection")&&o(t.selection),s&&t.operations.find(b=>b.type!=="set_selection")&&s(t.children),p()},[t,p,r,o,s]);g.useEffect(()=>(Q8.set(t,m),()=>{Q8.set(t,()=>{})}),[t,m]);var[v,y]=g.useState($e.isFocused(t));return g.useEffect(()=>{y($e.isFocused(t))},[t]),xo(()=>{var b=()=>y($e.isFocused(t));return oD>=17?(document.addEventListener("focusin",b),document.addEventListener("focusout",b),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",b)}):(document.addEventListener("focus",b,!0),document.addEventListener("blur",b,!0),()=>{document.removeEventListener("focus",b,!0),document.removeEventListener("blur",b,!0)})},[]),et.createElement(b6.Provider,{value:h},et.createElement(w6.Provider,{value:t},et.createElement(PU.Provider,{value:v},n)))},zU=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t;r=e$(r,n);var{onChange:o,apply:s,insertText:c}=r;return r.getChunkSize=()=>null,_n&&(r.insertText=(d,h)=>(fo.delete(r),c(d,h))),r.onChange=d=>{var h=oD<18?fv.unstable_batchedUpdates:p=>p();h(()=>{o(d)})},r.apply=d=>{if(d.type==="move_node"){var h=re.parent(r,d.path),p=!!r.getChunkSize(h);if(p){var m=re.get(r,d.path),v=eD(r,h),y=$e.findKey(r,m);v.movedNodeKeys.add(y)}}s(d)},r};function Qm(e){return Object.prototype.toString.call(e)==="[object Object]"}function HU(e){var t,n;return Qm(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Qm(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var ZU={isHistory(e){return HU(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||ri.isOperationList(e.redos[0].operations))&&(e.undos.length===0||ri.isOperationList(e.undos[0].operations))}},l8=new WeakMap,Pi=new WeakMap,j0=new WeakMap,ja={isHistoryEditor(e){return ZU.isHistory(e.history)&&R.isEditor(e)},isMerging(e){return Pi.get(e)},isSplittingOnce(e){return j0.get(e)},setSplittingOnce(e,t){j0.set(e,t)},isSaving(e){return l8.get(e)},redo(e){e.redo()},undo(e){e.undo()},withMerging(e,t){var n=ja.isMerging(e);Pi.set(e,!0),t(),Pi.set(e,n)},withNewBatch(e,t){var n=ja.isMerging(e);Pi.set(e,!0),j0.set(e,!0),t(),Pi.set(e,n),j0.delete(e)},withoutMerging(e,t){var n=ja.isMerging(e);Pi.set(e,!1),t(),Pi.set(e,n)},withoutSaving(e,t){var n=ja.isSaving(e);l8.set(e,!1);try{t()}finally{l8.set(e,n)}}},VU=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:o}=r;if(o.length>0){var s=o[o.length-1];s.selectionBefore&&Pe.setSelection(t,s.selectionBefore),ja.withoutSaving(t,()=>{R.withoutNormalizing(t,()=>{for(var c of s.operations)t.apply(c)})}),r.redos.pop(),t.writeHistory("undos",s)}},t.undo=()=>{var{history:r}=t,{undos:o}=r;if(o.length>0){var s=o[o.length-1];ja.withoutSaving(t,()=>{R.withoutNormalizing(t,()=>{var c=s.operations.map(ri.inverse).reverse();for(var d of c)t.apply(d);s.selectionBefore&&Pe.setSelection(t,s.selectionBefore)})}),t.writeHistory("redos",s),r.undos.pop()}},t.apply=r=>{var{operations:o,history:s}=t,{undos:c}=s,d=c[c.length-1],h=d&&d.operations[d.operations.length-1],p=ja.isSaving(t),m=ja.isMerging(t);if(p==null&&(p=$U(r)),p){if(m==null&&(d==null?m=!1:o.length!==0?m=!0:m=WU(r,h)),ja.isSplittingOnce(t)&&(m=!1,ja.setSplittingOnce(t,void 0)),d&&m)d.operations.push(r);else{var v={operations:[r],selectionBefore:t.selection};t.writeHistory("undos",v)}for(;c.length>100;)c.shift();s.redos=[]}n(r)},t.writeHistory=(r,o)=>{t.history[r].push(o)},t},WU=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&ee.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&ee.equals(e.path,t.path)),$U=(e,t)=>e.type!=="set_selection";const u8=[{type:"paragraph",children:[{text:""}]}],UU=e=>e!==null&&typeof e=="object"&&typeof e.text=="string",qU=e=>{if(e===null||typeof e!="object"||e.type!=="paragraph")return!1;const t=e.children;return Array.isArray(t)&&t.every(UU)},D5=e=>{if(!e.trim())return u8;try{const t=JSON.parse(e);if(Array.isArray(t)&&t.every(qU))return t.length>0?t:u8}catch{const t=e.split(`
230
+ `);return(t.length>0?t:[""]).map(n=>({type:"paragraph",children:[{text:n}]}))}return u8},W0=e=>JSON.stringify(e),iD=()=>l.jsx("div",{style:{position:"absolute",left:"50%",top:"50%",display:"flex",justifyContent:"center",alignItems:"center",opacity:.5,flexDirection:"column",transform:"translate(-50%, -50%)",pointerEvents:"none",userSelect:"none"},children:l.jsxs("svg",{height:"14vh",viewBox:"0 0 2551 599",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M97.4727 185.493L98.1824 196.042C98.2021 196.336 98.3215 196.614 98.5206 196.831C99.1163 197.48 100.172 197.358 100.604 196.591L104.463 189.742C104.647 189.415 104.857 189.104 105.091 188.811L124.535 164.444L163.624 120.469L178.566 105.907C181.707 102.847 185.198 100.167 188.966 97.9237L190.02 97.2965C192.546 95.7932 195.216 94.5487 197.992 93.582C202.61 91.9734 207.466 91.152 212.356 91.152H216.119L219.852 91.6643C225.803 92.4812 231.488 94.6532 236.468 98.0132C238.35 99.2833 240.119 100.714 241.754 102.29L242.13 102.653C247.108 107.451 250.92 113.324 253.275 119.824L255.96 127.234C258.371 134.551 259.788 142.159 260.173 149.854L260.345 153.294L262.062 165.924C262.086 166.105 262.145 166.281 262.234 166.441C262.756 167.381 264.076 167.463 264.711 166.595L272.874 155.424L315.221 97.4163L340.779 61.4591L353.156 40.9814C354.087 39.4405 355.245 38.0487 356.59 36.8526L358.652 35.0204C360.382 33.4822 361.533 31.3976 361.914 29.1138C362.023 28.4615 362.195 27.8213 362.429 27.2025L363.194 25.174C364.116 22.7302 365.352 20.4165 366.87 18.291C368.264 16.3398 369.885 14.5617 371.7 12.9944L375.25 9.92858C378.38 7.22562 382.025 5.18447 385.965 3.92821C387.743 3.3611 389.57 2.95779 391.422 2.72332L393.095 2.51158C396.706 2.05446 400.362 2.08739 403.964 2.60948C406.105 2.91983 408.218 3.40168 410.282 4.05038L411.152 4.32386C414.335 5.32418 417.357 6.7767 420.127 8.63687L420.412 8.82855C423.02 10.5803 425.36 12.7014 427.359 15.1254C429.266 17.4382 430.844 20.004 432.047 22.7496L432.665 24.1609C434.291 27.8711 435.313 31.8172 435.694 35.85L435.802 36.9936C436.179 40.9904 435.8 45.0224 434.685 48.879C433.81 51.904 432.493 54.7831 430.777 57.4233L428.479 60.9586C421.995 68.5236 416.576 76.9405 412.374 85.9749L411.19 88.5216L397.283 116.962L384.128 142.52L375.609 160.937L355.062 197.27L335.893 229.97L326.246 242.874L325.049 244.228C315.011 255.578 303.918 265.948 291.917 275.198L283.523 280.711L281.45 281.917C277.252 284.361 272.766 286.272 268.096 287.606L267.689 287.723C262.734 289.138 257.605 289.857 252.452 289.857L245.051 289.268C242.639 289.076 240.244 288.7 237.889 288.142C233.916 287.201 230.082 285.751 226.481 283.827L226.31 283.735C223.947 282.473 221.691 281.018 219.567 279.386L214.114 275.198L209.879 270.962C207.446 268.53 205.246 265.874 203.308 263.032C201.495 260.373 199.918 257.561 198.596 254.628L193.693 243.751L189.882 231.09C189.834 230.931 189.747 230.785 189.629 230.667C189.154 230.192 188.356 230.303 188.03 230.891L171.893 259.913L158.613 281.838L144.706 303.262L139.193 311.281L130.924 320.301L122.405 328.695L119.92 330.597C113.426 335.567 106.244 339.569 98.6004 342.477C91.946 344.224 85.0948 345.108 78.215 345.108H75.5477L70.4907 344.673C66.1148 344.297 61.8109 343.324 57.6986 341.782C54.4893 340.578 51.4175 339.036 48.5354 337.181L46.8387 336.089C43.6011 334.004 40.5721 331.613 37.7937 328.947C34.4095 325.7 31.4185 322.067 28.8823 318.122L27.7015 316.285C25.026 312.123 22.7504 307.717 20.9055 303.126L18.2918 296.622C13.788 284.362 10.2229 271.777 7.62738 258.976L6.01377 251.018L2.1299 224.958L0.877018 210.425L0 182.11L0.877018 166.074L3.63335 150.914L4.04047 149.092C5.51648 142.485 7.86538 136.104 11.0253 130.117L12.5537 127.843C14.9445 124.286 17.8771 121.125 21.2453 118.474L21.3289 118.408C22.9767 117.112 24.7245 115.948 26.556 114.927C29.8006 113.119 33.2827 111.774 36.9006 110.933L37.3853 110.82C40.5989 110.072 43.8875 109.695 47.1869 109.695H48.4125C53.1843 109.695 57.918 110.544 62.3926 112.201L67.1788 114.743C69.3282 115.885 71.359 117.238 73.2411 118.781C75.5222 120.652 77.5699 122.79 79.3399 125.15L80.4334 126.608C82.1846 128.943 83.7355 131.422 85.0695 134.018L85.1578 134.189C86.8484 137.479 88.1974 140.934 89.1835 144.499L90.9579 150.914L93.9648 165.072L95.3429 174.218L97.4727 185.493Z",fill:"var(--logoduotone-firstcolor)"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M398.287 263.487C420.774 251.477 432.017 245.471 433.905 237.605C434.793 233.904 434.485 230.016 433.025 226.501C429.922 219.03 417.903 214.881 393.866 206.583L366.132 197.009C336.381 186.739 321.506 181.604 313.555 189.4C305.605 197.196 310.447 212.169 320.131 242.116L329.407 270.8C337.139 294.708 341.005 306.663 348.175 309.964C351.915 311.685 356.131 312.073 360.122 311.063C367.774 309.125 373.756 298.076 385.719 275.979C387.529 272.635 388.435 270.963 389.643 269.537C390.304 268.758 391.029 268.036 391.812 267.38C393.245 266.18 394.926 265.282 398.287 263.487Z",fill:"var(--logoduotone-secondcolor)"}),l.jsx("path",{d:"M662.494 353.246C656.101 353.246 650.918 348.063 650.918 341.67V295.243C650.918 288.85 656.101 283.667 662.494 283.667H753.145C771.7 283.667 787.221 279.742 799.71 271.892C812.198 264.042 821.475 252.268 827.541 236.568C833.964 220.868 837.175 201.243 837.175 177.693C837.175 158.782 835.213 142.547 831.288 128.988C827.363 115.429 821.475 104.368 813.625 95.8046C806.132 86.8842 796.32 80.2832 784.188 76.0014C772.413 71.7196 758.498 69.5787 742.441 69.5787H662.494C656.101 69.5787 650.918 64.3959 650.918 58.0026C650.918 51.6093 650.918 11.5761 650.918 11.5761C650.918 5.18281 656.101 0 662.494 0H739.23C783.118 0 818.977 6.95787 846.809 20.8736C874.64 34.7894 894.979 54.771 907.824 80.8184C920.669 106.509 927.092 137.373 927.092 173.412C927.092 201.243 923.702 225.328 916.923 245.666C910.5 266.005 901.58 283.132 890.162 297.048C878.744 310.607 865.542 321.668 850.556 330.231C835.926 338.438 820.405 344.326 803.991 347.894C787.935 351.462 771.878 353.246 755.821 353.246H662.494ZM622.353 353.246C615.959 353.246 610.776 348.063 610.776 341.67V11.5761C610.776 5.18281 615.959 0 622.353 0H685.371C691.764 0 696.947 5.1828 696.947 11.5761V341.67C696.947 348.063 691.764 353.246 685.371 353.246H622.353Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M958.513 353.246C952.12 353.246 946.937 348.063 946.937 341.67V82.2253C946.937 75.832 952.12 70.6492 958.513 70.6492H1006.2C1012.52 70.6492 1017.67 75.7145 1017.78 82.0313L1019.1 160.88C1019.15 163.973 1021.67 166.454 1024.77 166.454C1027.68 166.454 1030.11 164.244 1030.44 161.351C1033.05 138.765 1037.5 120.663 1043.81 107.044C1050.95 92.058 1060.94 81.1752 1073.78 74.3957C1086.99 67.6163 1103.22 64.2265 1122.49 64.2265C1125.34 64.2265 1128.56 64.4049 1132.12 64.7617C1132.8 64.7617 1133.49 64.7745 1134.2 64.8C1140.07 65.0097 1144.28 70.2495 1144.08 76.113L1141.85 139.881C1141.56 148.306 1132.41 153.819 1124.05 152.722C1123.53 152.654 1123.01 152.593 1122.49 152.538C1116.07 151.468 1110.36 150.932 1105.36 150.932C1091.45 150.932 1079.32 153.608 1068.97 158.961C1058.98 164.313 1050.95 172.52 1044.88 183.581C1039.17 194.642 1035.43 208.558 1033.64 225.328V341.67C1033.64 348.063 1028.46 353.246 1022.07 353.246H958.513Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M1223.48 360.739C1207.78 360.739 1193.86 357.706 1181.73 351.64C1169.6 345.218 1160.14 336.119 1153.36 324.344C1146.58 312.212 1143.19 297.583 1143.19 280.456C1143.19 264.399 1146.23 251.197 1152.29 240.849C1158.71 230.145 1167.81 221.76 1179.59 215.694C1191.72 209.271 1206.17 204.098 1222.94 200.173C1239.71 195.891 1258.8 192.144 1280.21 188.933C1290.56 187.149 1299.12 185.543 1305.9 184.116C1313.04 182.332 1318.39 179.656 1321.96 176.088C1325.52 172.52 1327.31 167.346 1327.31 160.566C1327.31 151.646 1324.1 143.974 1317.67 137.552C1311.25 131.129 1300.9 127.918 1286.63 127.918C1276.64 127.918 1267.54 129.702 1259.34 133.27C1251.49 136.838 1244.71 142.012 1239 148.791C1235.56 152.875 1232.64 157.477 1230.23 162.596C1227.52 168.382 1221.19 171.943 1215.06 170.13L1161.39 154.257C1155.21 152.428 1151.66 145.871 1154.04 139.875C1158.17 129.446 1163.3 120.108 1169.42 111.861C1177.98 100.8 1188.15 91.7012 1199.93 84.5649C1211.7 77.0718 1225.08 71.7196 1240.07 68.5083C1255.41 64.9402 1271.65 63.1561 1288.77 63.1561C1317.32 63.1561 1340.51 67.7947 1358.35 77.0718C1376.55 85.9922 1389.93 100.086 1398.49 119.354C1407.41 138.265 1411.87 162.707 1411.87 192.68V236.033C1411.87 248.878 1412.05 261.902 1412.41 275.104C1413.12 287.949 1413.84 300.973 1414.55 314.175C1415.27 322.842 1416.08 331.591 1416.96 340.42C1417.65 347.272 1412.29 353.246 1405.4 353.246H1352.03C1346.4 353.246 1341.58 349.2 1340.73 343.636C1339.83 337.676 1338.92 331.067 1338.01 323.809C1336.82 313.926 1335.87 303.917 1335.17 293.783C1334.95 290.508 1332.24 287.949 1328.96 287.949C1326.36 287.949 1324.05 289.574 1323.07 291.979C1318.15 303.991 1311.36 315.136 1302.69 325.414C1293.41 336.476 1281.99 345.218 1268.43 351.64C1255.23 357.706 1240.25 360.739 1223.48 360.739ZM1262.55 299.724C1268.97 299.724 1275.39 298.653 1281.81 296.513C1288.59 294.015 1295.02 290.803 1301.08 286.879C1307.15 282.597 1312.68 277.423 1317.67 271.357C1322.2 265.858 1325.71 259.92 1328.18 253.541C1328.69 252.236 1328.9 250.836 1328.86 249.436L1327.95 213.472C1327.9 211.341 1329.86 209.73 1331.94 210.203C1334.78 210.847 1335.37 214.518 1332.78 215.842C1327.89 218.339 1322.68 220.431 1317.14 222.117C1308.93 224.614 1300.55 226.577 1291.98 228.004C1283.78 229.431 1275.57 231.037 1267.36 232.821C1259.51 234.248 1252.38 236.211 1245.96 238.709C1239.89 241.206 1235.07 244.596 1231.5 248.878C1227.94 253.16 1226.15 259.047 1226.15 266.54C1226.15 276.531 1229.54 284.559 1236.32 290.625C1243.1 296.691 1251.84 299.724 1262.55 299.724Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M1497.86 353.246C1492.52 353.246 1487.87 349.59 1486.61 344.397L1454.5 211.948L1423.72 84.9526C1421.95 77.6667 1427.47 70.6492 1434.97 70.6492H1500.31C1505.99 70.6492 1510.83 74.7703 1511.74 80.3775L1544.08 280.421C1544.59 283.526 1547.27 285.808 1550.41 285.808C1553.46 285.808 1556.09 283.656 1556.7 280.664L1597.14 79.9388C1598.23 74.5355 1602.98 70.6492 1608.49 70.6492H1691.83C1697.31 70.6492 1702.04 74.4927 1703.16 79.8576L1745.08 280.455C1745.73 283.574 1748.48 285.808 1751.67 285.808C1754.99 285.808 1757.81 283.386 1758.32 280.104L1789.11 80.4608C1789.98 74.8156 1794.84 70.6492 1800.55 70.6492H1864.22C1871.71 70.6492 1877.23 77.6667 1875.47 84.9526L1812.57 344.397C1811.31 349.59 1806.66 353.246 1801.32 353.246H1701.25C1695.66 353.246 1690.87 349.254 1689.87 343.758L1653.45 145.198C1652.92 142.319 1650.41 140.228 1647.48 140.228C1644.53 140.228 1642 142.358 1641.5 145.271L1607.62 343.619C1606.67 349.18 1601.85 353.246 1596.21 353.246H1497.86Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M2009.49 360.739C1980.94 360.739 1955.61 355.208 1933.49 344.147C1911.72 333.086 1894.6 316.494 1882.11 294.372C1869.62 272.249 1863.37 244.596 1863.37 211.412C1863.37 178.229 1869.62 150.754 1882.11 128.988C1894.6 106.866 1911.9 90.4524 1934.02 79.7479C1956.15 68.6867 1981.48 63.1561 2010.03 63.1561C2038.57 63.1561 2063.9 68.6867 2086.03 79.7479C2108.15 90.8092 2125.45 107.401 2137.94 129.524C2150.43 151.289 2156.68 178.764 2156.68 211.948C2156.68 245.845 2150.25 273.855 2137.41 295.977C2124.56 318.1 2106.9 334.513 2084.42 345.218C2062.3 355.565 2037.32 360.739 2009.49 360.739ZM2012.17 298.118C2025.01 298.118 2035.72 295.264 2044.28 289.555C2052.84 283.489 2059.27 274.39 2063.55 262.258C2067.83 250.127 2069.97 235.14 2069.97 217.3C2069.97 198.389 2067.65 182.51 2063.01 169.665C2058.37 156.463 2051.42 146.472 2042.14 139.693C2033.22 132.556 2021.62 128.988 2007.35 128.988C1995.22 128.988 1984.69 132.021 1975.77 138.087C1967.21 143.796 1960.79 152.716 1956.5 164.848C1952.22 176.98 1950.08 192.144 1950.08 210.342C1950.08 239.601 1955.43 261.545 1966.14 276.174C1977.2 290.803 1992.54 298.118 2012.17 298.118Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M2212.44 360.204C2193.88 360.204 2179.97 356.279 2170.69 348.429C2161.77 340.579 2157.31 328.447 2157.31 312.034C2157.31 295.264 2161.77 282.954 2170.69 275.104C2179.97 267.254 2193.88 263.329 2212.44 263.329C2231.35 263.329 2245.44 267.254 2254.72 275.104C2264 282.954 2268.63 295.264 2268.63 312.034C2268.63 344.147 2249.9 360.204 2212.44 360.204Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M603.674 565.71V469.556H609.355V509.699H609.918C611.045 506.6 612.641 503.752 614.707 501.154C616.773 498.556 619.34 496.474 622.407 494.909C625.474 493.313 629.058 492.515 633.159 492.515C638.949 492.515 644.004 494.127 648.324 497.351C652.643 500.543 655.992 504.957 658.371 510.591C660.75 516.193 661.939 522.61 661.939 529.84C661.939 537.133 660.75 543.597 658.371 549.231C655.992 554.834 652.659 559.231 648.371 562.424C644.082 565.617 639.027 567.213 633.206 567.213C629.105 567.213 625.521 566.43 622.454 564.865C619.387 563.269 616.82 561.172 614.754 558.574C612.688 555.945 611.076 553.081 609.918 549.982H609.261V565.71H603.674ZM609.308 529.793C609.308 535.928 610.231 541.421 612.078 546.273C613.956 551.093 616.648 554.912 620.153 557.729C623.659 560.515 627.853 561.907 632.736 561.907C637.682 561.907 641.907 560.499 645.413 557.682C648.918 554.834 651.595 550.984 653.441 546.132C655.319 541.281 656.258 535.834 656.258 529.793C656.258 523.752 655.319 518.322 653.441 513.502C651.595 508.681 648.918 504.878 645.413 502.093C641.907 499.276 637.682 497.867 632.736 497.867C627.853 497.867 623.659 499.26 620.153 502.046C616.648 504.8 613.956 508.587 612.078 513.408C610.231 518.197 609.308 523.659 609.308 529.793ZM673.147 592.754C671.707 592.754 670.283 592.597 668.875 592.284C667.466 591.971 666.199 591.564 665.072 591.064L666.762 586.04C669.704 587.167 672.365 587.574 674.744 587.261C677.154 586.948 679.282 585.852 681.129 583.974C682.976 582.096 684.541 579.342 685.824 575.711L689.11 566.696L662.677 493.595H668.828L691.74 558.339H692.209L715.121 493.595H721.272L690.848 577.965C689.69 581.22 688.234 583.943 686.481 586.134C684.728 588.325 682.725 589.968 680.472 591.064C678.249 592.19 675.808 592.754 673.147 592.754Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M886.198 490.56V463.005L804.95 500.439C785.564 509.37 773.147 528.764 773.147 550.108V575.76L853.416 540.668C873.329 531.963 886.198 512.293 886.198 490.56Z",fill:"var(--logocolor)"}),l.jsx("path",{d:"M885.734 490.561C885.734 512.109 872.975 531.613 853.231 540.244L773.61 575.052V550.107C773.611 528.944 785.923 509.715 805.144 500.859L885.734 463.729V490.561Z",stroke:"var(--logocolor)","stroke-opacity":"0.22","stroke-width":"0.926904"}),l.jsx("path",{d:"M970.151 576.816C961.375 576.816 952.974 575.585 944.947 573.124C936.92 570.555 930.553 567.291 925.844 563.331L933.068 547.117C937.563 550.649 943.128 553.592 949.763 555.947C956.398 558.301 963.194 559.478 970.151 559.478C976.037 559.478 980.799 558.836 984.438 557.552C988.077 556.268 990.752 554.555 992.465 552.415C994.177 550.167 995.033 547.652 995.033 544.87C995.033 541.445 993.802 538.716 991.341 536.683C988.879 534.542 985.669 532.883 981.709 531.706C977.856 530.422 973.522 529.245 968.706 528.174C963.997 527.104 959.234 525.873 954.418 524.482C949.71 522.984 945.375 521.111 941.415 518.864C937.563 516.509 934.405 513.405 931.944 509.553C929.482 505.7 928.252 500.777 928.252 494.784C928.252 488.683 929.857 483.118 933.068 478.088C936.385 472.951 941.362 468.884 947.997 465.888C954.74 462.784 963.248 461.232 973.522 461.232C980.264 461.232 986.953 462.089 993.588 463.801C1000.22 465.513 1006 467.975 1010.93 471.185L1004.34 487.399C999.314 484.403 994.124 482.209 988.772 480.817C983.421 479.319 978.284 478.57 973.361 478.57C967.582 478.57 962.873 479.266 959.234 480.657C955.703 482.048 953.081 483.868 951.368 486.115C949.763 488.362 948.96 490.931 948.96 493.821C948.96 497.245 950.138 500.028 952.492 502.168C954.954 504.202 958.111 505.807 961.964 506.984C965.923 508.161 970.311 509.339 975.127 510.516C979.943 511.586 984.706 512.817 989.415 514.208C994.231 515.599 998.565 517.419 1002.42 519.666C1006.38 521.914 1009.53 524.964 1011.89 528.817C1014.35 532.669 1015.58 537.539 1015.58 543.425C1015.58 549.418 1013.92 554.983 1010.6 560.12C1007.39 565.15 1002.42 569.217 995.675 572.321C988.933 575.317 980.425 576.816 970.151 576.816ZM1073.36 488.523C1080.21 488.523 1086.31 489.861 1091.66 492.536C1097.12 495.212 1101.4 499.332 1104.5 504.897C1107.6 510.355 1109.16 517.419 1109.16 526.088V575.21H1089.09V528.656C1089.09 521.058 1087.27 515.385 1083.63 511.64C1080.1 507.894 1075.12 506.021 1068.7 506.021C1063.99 506.021 1059.82 506.984 1056.18 508.911C1052.54 510.837 1049.71 513.727 1047.67 517.579C1045.75 521.325 1044.78 526.088 1044.78 531.867V575.21H1024.72V456.095H1044.78V512.603L1040.45 505.539C1043.45 500.081 1047.78 495.907 1053.45 493.018C1059.23 490.021 1065.87 488.523 1073.36 488.523ZM1177.8 575.21V557.873L1176.67 554.181V523.84C1176.67 517.954 1174.91 513.405 1171.37 510.195C1167.84 506.877 1162.49 505.218 1155.32 505.218C1150.51 505.218 1145.74 505.967 1141.03 507.466C1136.43 508.964 1132.53 511.051 1129.31 513.727L1121.45 499.118C1126.05 495.586 1131.51 492.964 1137.82 491.252C1144.24 489.433 1150.88 488.523 1157.73 488.523C1170.14 488.523 1179.72 491.52 1186.46 497.513C1193.31 503.399 1196.74 512.549 1196.74 524.964V575.21H1177.8ZM1150.83 576.334C1144.4 576.334 1138.79 575.264 1133.97 573.124C1129.15 570.876 1125.41 567.826 1122.73 563.973C1120.16 560.013 1118.88 555.572 1118.88 550.649C1118.88 545.833 1120 541.499 1122.25 537.646C1124.61 533.793 1128.41 530.743 1133.65 528.496C1138.89 526.248 1145.85 525.124 1154.52 525.124H1179.4V538.449H1155.96C1149.11 538.449 1144.51 539.572 1142.16 541.82C1139.8 543.96 1138.63 546.636 1138.63 549.846C1138.63 553.485 1140.07 556.375 1142.96 558.515C1145.85 560.656 1149.86 561.726 1155 561.726C1159.92 561.726 1164.31 560.602 1168.16 558.355C1172.12 556.107 1174.96 552.789 1176.67 548.402L1180.04 560.441C1178.12 565.471 1174.64 569.378 1169.61 572.16C1164.69 574.943 1158.42 576.334 1150.83 576.334ZM1212.86 575.21V489.486H1231.96V513.084L1229.72 506.182C1232.28 500.402 1236.3 496.014 1241.76 493.018C1247.32 490.021 1254.22 488.523 1262.46 488.523V507.626C1261.61 507.412 1260.81 507.305 1260.06 507.305C1259.31 507.198 1258.56 507.145 1257.81 507.145C1250.21 507.145 1244.16 509.392 1239.67 513.887C1235.17 518.275 1232.93 524.857 1232.93 533.633V575.21H1212.86ZM1305.35 576.334C1297.11 576.334 1289.67 574.515 1283.04 570.876C1276.51 567.13 1271.37 561.993 1267.63 555.465C1263.88 548.937 1262.01 541.231 1262.01 532.348C1262.01 523.466 1263.88 515.76 1267.63 509.232C1271.37 502.703 1276.51 497.62 1283.04 493.981C1289.67 490.342 1297.11 488.523 1305.35 488.523C1312.52 488.523 1318.94 490.128 1324.61 493.339C1330.29 496.443 1334.78 501.205 1338.1 507.626C1341.42 514.048 1343.08 522.288 1343.08 532.348C1343.08 542.301 1341.47 550.542 1338.26 557.07C1335.05 563.492 1330.61 568.308 1324.94 571.518C1319.26 574.729 1312.74 576.334 1305.35 576.334ZM1307.76 559.157C1312.58 559.157 1316.86 558.087 1320.6 555.947C1324.45 553.806 1327.5 550.703 1329.75 546.636C1332.11 542.569 1333.28 537.806 1333.28 532.348C1333.28 526.783 1332.11 522.021 1329.75 518.061C1327.5 513.994 1324.45 510.89 1320.6 508.75C1316.86 506.61 1312.58 505.539 1307.76 505.539C1302.94 505.539 1298.61 506.61 1294.76 508.75C1291.01 510.89 1287.96 513.994 1285.61 518.061C1283.36 522.021 1282.23 526.783 1282.23 532.348C1282.23 537.806 1283.36 542.569 1285.61 546.636C1287.96 550.703 1291.01 553.806 1294.76 555.947C1298.61 558.087 1302.94 559.157 1307.76 559.157ZM1333.77 575.21V554.983L1334.57 532.188L1332.96 509.392V456.095H1352.87V575.21H1333.77Z",fill:"var(--logocolor)"})]})}),YU=()=>l.jsx(l.Fragment,{});function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ge.apply(null,arguments)}function qr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var f2=255,fa=100,Yl=e=>{var{r:t,g:n,b:r,a:o}=e,s=Math.max(t,n,r),c=s-Math.min(t,n,r),d=c?s===t?(n-r)/c:s===n?2+(r-t)/c:4+(t-n)/c:0;return{h:60*(d<0?d+6:d),s:s?c/s*fa:0,v:s/f2*fa,a:o}},sD=e=>{var{h:t,s:n,l:r,a:o}=S6(e);return"hsla("+t+", "+n+"%, "+r+"%, "+o+")"},A0=e=>{var{h:t,s:n,l:r,a:o}=e;return n*=(r<50?r:fa-r)/fa,{h:t,s:n>0?2*n/(r+n)*fa:0,v:r+n,a:o}},S6=e=>{var{h:t,s:n,v:r,a:o}=e,s=(200-n)*r/fa;return{h:t,s:s>0&&s<200?n*r/fa/(s<=fa?s:200-s)*fa:0,l:s/2,a:o}},lD=e=>{var{r:t,g:n,b:r}=e,o=t<<16|n<<8|r;return"#"+(s=>new Array(7-s.length).join("0")+s)(o.toString(16))},uD=e=>{var{r:t,g:n,b:r,a:o}=e,s=typeof o=="number"&&(o*255|256).toString(16).slice(1);return""+lD({r:t,g:n,b:r})+(s||"")},Gi=e=>Yl(GU(e)),GU=e=>{var t=e.replace("#","");/^#?/.test(e)&&t.length===3&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=new RegExp("[A-Za-z0-9]{2}","g"),[r,o,s=0,c]=e.match(n).map(d=>parseInt(d,16));return{r,g:o,b:s,a:(c??255)/f2}},V5=e=>{var{h:t,s:n,v:r,a:o}=e,s=t/60,c=n/fa,d=r/fa,h=Math.floor(s)%6,p=s-Math.floor(s),m=f2*d*(1-c),v=f2*d*(1-c*p),y=f2*d*(1-c*(1-p));d*=f2;var b={};switch(h){case 0:b.r=d,b.g=y,b.b=m;break;case 1:b.r=v,b.g=d,b.b=m;break;case 2:b.r=m,b.g=d,b.b=y;break;case 3:b.r=m,b.g=v,b.b=d;break;case 4:b.r=y,b.g=m,b.b=d;break;case 5:b.r=d,b.g=m,b.b=v;break}return b.r=Math.round(b.r),b.g=Math.round(b.g),b.b=Math.round(b.b),Ge({},b,{a:o})},KU=e=>{var{r:t,g:n,b:r,a:o}=V5(e);return"rgba("+t+", "+n+", "+r+", "+o+")"},XU=e=>{var{r:t,g:n,b:r}=e;return{r:t,g:n,b:r}},QU=e=>{var{h:t,s:n,l:r}=e;return{h:t,s:n,l:r}},D6=e=>lD(V5(e)),JU=e=>uD(V5(e)),eq=e=>{var{h:t,s:n,v:r}=e;return{h:t,s:n,v:r}},tq=e=>{var{r:t,g:n,b:r}=e,o=function(m){return m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)},s=o(t/255),c=o(n/255),d=o(r/255),h={};return h.x=s*.4124+c*.3576+d*.1805,h.y=s*.2126+c*.7152+d*.0722,h.bri=s*.0193+c*.1192+d*.9505,h},da=e=>{var t,n,r,o,s,c,d,h,p;return typeof e=="string"&&L6(e)?(c=Gi(e),h=e):typeof e!="string"&&(c=e),c&&(r=eq(c),s=S6(c),o=V5(c),p=uD(o),h=D6(c),n=QU(s),t=XU(o),d=tq(t)),{rgb:t,hsl:n,hsv:r,rgba:o,hsla:s,hsva:c,hex:h,hexa:p,xy:d}},L6=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e);function nq(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var rq=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],cD=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-swatch",className:r,color:o,colors:s=[],style:c,rectProps:d={},onChange:h,addonAfter:p,addonBefore:m,rectRender:v}=e,y=qr(e,rq),b=Ge({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},d.style),D=(S,L)=>{h&&h(Gi(S),da(Gi(S)),L)};return l.jsxs("div",Ge({ref:t},y,{className:[n,r||""].filter(Boolean).join(" "),style:Ge({display:"flex",flexWrap:"wrap",position:"relative"},c),children:[m&&et.isValidElement(m)&&m,s&&Array.isArray(s)&&s.map((S,L)=>{var M="",w="";typeof S=="string"&&(M=S,w=S),typeof S=="object"&&S.color&&(M=S.title||S.color,w=S.color);var E=o&&o.toLocaleLowerCase()===w.toLocaleLowerCase(),O=v&&v({title:M,color:w,checked:!!E,style:Ge({},b,{background:w}),onClick:T=>D(w,T)});if(O)return l.jsx(g.Fragment,{children:O},L);var B=d.children&&et.isValidElement(d.children)?et.cloneElement(d.children,{color:w,checked:E}):null;return l.jsx("div",Ge({tabIndex:0,title:M,onClick:T=>D(w,T)},d,{children:B,style:Ge({},b,{background:w})}),L)}),p&&et.isValidElement(p)&&p]}))});cD.displayName="Swatch";var aq={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function oq(e){var{style:t,title:n,checked:r,color:o,onClick:s,rectProps:c}=e,d=g.useRef(null),h=g.useCallback(()=>{d.current.style.zIndex="2",d.current.style.outline="#fff solid 2px",d.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),p=g.useCallback(()=>{r||(d.current.style.zIndex="0",d.current.style.outline="initial",d.current.style.boxShadow="initial")},[r]),m=r?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return l.jsx("div",Ge({ref:d,title:n},c,{onClick:s,onMouseEnter:h,onMouseLeave:p,style:Ge({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},aq,m,c?.style)}))}var iq=["prefixCls","placement","className","style","color","colors","showTriangle","rectProps","onChange","rectRender"],sq=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],cn=(function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e})({}),fD=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-github",placement:r=cn.TopRight,className:o,style:s,color:c,colors:d=sq,showTriangle:h=!0,rectProps:p={},onChange:m,rectRender:v}=e,y=qr(e,iq),b=typeof c=="string"&&L6(c)?Gi(c):c,D=c?D6(b):"",S=B=>m&&m(da(B)),L=Ge({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},s),M={borderStyle:"solid",position:"absolute"},w=Ge({},M),E=Ge({},M);/^T/.test(r)&&(w.borderWidth="0 8px 8px",w.borderColor="transparent transparent var(--github-arrow-border-color)",E.borderWidth="0 7px 7px",E.borderColor="transparent transparent var(--github-background-color)"),r===cn.TopRight&&(w.top=-8,E.top=-7),r===cn.Top&&(w.top=-8,E.top=-7),r===cn.TopLeft&&(w.top=-8,E.top=-7),/^B/.test(r)&&(w.borderWidth="8px 8px 0",w.borderColor="var(--github-arrow-border-color) transparent transparent",E.borderWidth="7px 7px 0",E.borderColor="var(--github-background-color) transparent transparent",r===cn.BottomRight&&(w.top="100%",E.top="100%"),r===cn.Bottom&&(w.top="100%",E.top="100%"),r===cn.BottomLeft&&(w.top="100%",E.top="100%")),/^(B|T)/.test(r)&&((r===cn.Top||r===cn.Bottom)&&(w.left="50%",w.marginLeft=-8,E.left="50%",E.marginLeft=-7),(r===cn.TopRight||r===cn.BottomRight)&&(w.right=10,E.right=11),(r===cn.TopLeft||r===cn.BottomLeft)&&(w.left=7,E.left=8)),/^L/.test(r)&&(w.borderWidth="8px 8px 8px 0",w.borderColor="transparent var(--github-arrow-border-color) transparent transparent",E.borderWidth="7px 7px 7px 0",E.borderColor="transparent var(--github-background-color) transparent transparent",w.left=-8,E.left=-7),/^R/.test(r)&&(w.borderWidth="8px 0 8px 8px",w.borderColor="transparent transparent transparent var(--github-arrow-border-color)",E.borderWidth="7px 0 7px 7px",E.borderColor="transparent transparent transparent var(--github-background-color)",w.right=-8,E.right=-7),/^(L|R)/.test(r)&&((r===cn.RightTop||r===cn.LeftTop)&&(w.top=5,E.top=6),(r===cn.Left||r===cn.Right)&&(w.top="50%",E.top="50%",w.marginTop=-8,E.marginTop=-7),(r===cn.LeftBottom||r===cn.RightBottom)&&(w.top="100%",E.top="100%",w.marginTop=-21,E.marginTop=-20));var O=B=>{var T=Ge({},(nq(B),B)),P=v&&v(Ge({},T));return P||l.jsx(oq,Ge({},T,{rectProps:p}))};return l.jsx(cD,Ge({ref:t,className:[n,o].filter(Boolean).join(" "),colors:d,color:D,rectRender:O},y,{onChange:S,style:L,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:l.jsx(g.Fragment,{children:h&&l.jsxs(g.Fragment,{children:[l.jsx("div",{style:w}),l.jsx("div",{style:E})]})})}))});fD.displayName="Github";function Jm(e){var t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useCallback((n,r)=>t.current&&t.current(n,r),[])}var s5=e=>"touches"in e,ev=e=>{!s5(e)&&e.preventDefault&&e.preventDefault()},tv=function(t,n,r){return n===void 0&&(n=0),r===void 0&&(r=1),t>r?r:t<n?n:t},nv=(e,t)=>{var n=e.getBoundingClientRect(),r=s5(t)?t.touches[0]:t;return{left:tv((r.pageX-(n.left+window.pageXOffset))/n.width),top:tv((r.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:r.pageX-(n.left+window.pageXOffset),y:r.pageY-(n.top+window.pageYOffset)}},lq=["prefixCls","className","onMove","onDown"],M6=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-interactive",className:r,onMove:o,onDown:s}=e,c=qr(e,lq),d=g.useRef(null),h=g.useRef(!1),[p,m]=g.useState(!1),v=Jm(o),y=Jm(s),b=w=>h.current&&!s5(w)?!1:(h.current=s5(w),!0),D=g.useCallback(w=>{if(ev(w),!!d.current){var E=s5(w)?w.touches.length>0:w.buttons>0;if(!E){m(!1);return}v?.(nv(d.current,w),w)}},[v]),S=g.useCallback(()=>m(!1),[]),L=g.useCallback(w=>{w?(window.addEventListener(h.current?"touchmove":"mousemove",D),window.addEventListener(h.current?"touchend":"mouseup",S)):(window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",S),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",S))},[D,S]);g.useEffect(()=>(L(p),()=>{L(!1)}),[p,D,S,L]);var M=g.useCallback(w=>{var E=document.activeElement;E?.blur(),ev(w.nativeEvent),b(w.nativeEvent)&&d.current&&(y?.(nv(d.current,w.nativeEvent),w.nativeEvent),m(!0))},[y]);return l.jsx("div",Ge({},c,{className:[n,r||""].filter(Boolean).join(" "),style:Ge({},c.style,{touchAction:"none"}),ref:d,tabIndex:0,onMouseDown:M,onTouchStart:M}))});M6.displayName="Interactive";var uq=e=>{var{className:t,color:n,left:r,top:o,prefixCls:s}=e,c={position:"absolute",top:o,left:r},d={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:n};return g.useMemo(()=>l.jsx("div",{className:s+"-pointer "+(t||""),style:c,children:l.jsx("div",{className:s+"-fill",style:d})}),[o,r,n,t,s])},cq=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],dD=et.forwardRef((e,t)=>{var n,{prefixCls:r="w-color-saturation",radius:o=0,pointer:s,className:c,hue:d=0,style:h,hsva:p,onChange:m}=e,v=qr(e,cq),y=Ge({width:200,height:200,borderRadius:o},h,{position:"relative"}),b=g.useRef(null),D=g.useCallback(E=>{b.current=E,typeof t=="function"?t(E):t&&"current"in t&&(t.current=E)},[t]),S=g.useCallback((E,O)=>{m&&p&&m({h:p.h,s:E.left*100,v:(1-E.top)*100,a:p.a});var B=b.current;B&&B.focus()},[p,m]),L=g.useCallback(E=>{if(!(!p||!m)){var O=1,B=p.s,T=p.v,P=!1;switch(E.key){case"ArrowLeft":B=Math.max(0,p.s-O),P=!0,E.preventDefault();break;case"ArrowRight":B=Math.min(100,p.s+O),P=!0,E.preventDefault();break;case"ArrowUp":T=Math.min(100,p.v+O),P=!0,E.preventDefault();break;case"ArrowDown":T=Math.max(0,p.v-O),P=!0,E.preventDefault();break;default:return}P&&m({h:p.h,s:B,v:T,a:p.a})}},[p,m]),M=g.useMemo(()=>{if(!p)return null;var E={top:100-p.v+"%",left:p.s+"%",color:sD(p)};return s&&typeof s=="function"?s(Ge({prefixCls:r},E)):l.jsx(uq,Ge({prefixCls:r},E))},[p,s,r]),w=g.useCallback(E=>{E.target.focus()},[]);return l.jsx(M6,Ge({className:[r,c||""].filter(Boolean).join(" ")},v,{style:Ge({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((n=p?.h)!=null?n:d)+", 100%, 50%))"},y,{outline:"none"}),ref:D,onMove:S,onDown:S,onKeyDown:L,onClick:w,children:M}))});dD.displayName="Saturation";var fq=["className","prefixCls","left","top","style","fillProps"],dq=e=>{var{className:t,prefixCls:n,left:r,top:o,style:s,fillProps:c}=e,d=qr(e,fq),h=Ge({},s,{position:"absolute",left:r,top:o}),p=Ge({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},c?.style,{transform:r?"translate(-9px, -1px)":"translate(-1px, -9px)"});return l.jsx("div",Ge({className:n+"-pointer "+(t||""),style:h},d,{children:l.jsx("div",Ge({className:n+"-fill"},c,{style:p}))}))},hq=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],pq="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",yc=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-alpha",className:r,hsva:o,background:s,bgProps:c={},innerProps:d={},pointerProps:h={},radius:p=0,width:m,height:v=16,direction:y="horizontal",style:b,onChange:D,pointer:S}=e,L=qr(e,hq),M=Z=>{D&&D(Ge({},o,{a:y==="horizontal"?Z.left:Z.top}),Z)},w=sD(Object.assign({},o,{a:1})),E="linear-gradient(to "+(y==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+w+" 100%)",O={};y==="horizontal"?O.left=o.a*100+"%":O.top=o.a*100+"%";var B=Ge({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:p,background:"url("+pq+") left center",backgroundColor:"var(--alpha-background-color)"},{width:m,height:v},b,{position:"relative"}),T=g.useCallback(Z=>{var K=.01,W=o.a,z=W;switch(Z.key){case"ArrowLeft":y==="horizontal"&&(z=Math.max(0,W-K),Z.preventDefault());break;case"ArrowRight":y==="horizontal"&&(z=Math.min(1,W+K),Z.preventDefault());break;case"ArrowUp":y==="vertical"&&(z=Math.max(0,W-K),Z.preventDefault());break;case"ArrowDown":y==="vertical"&&(z=Math.min(1,W+K),Z.preventDefault());break;default:return}if(z!==W){var q={left:y==="horizontal"?z:o.a,top:y==="vertical"?z:o.a,width:0,height:0,x:0,y:0};D&&D(Ge({},o,{a:z}),q)}},[o,y,D]),P=g.useCallback(Z=>{Z.target.focus()},[]),_=S&&typeof S=="function"?S(Ge({prefixCls:n},h,O)):l.jsx(dq,Ge({},h,{prefixCls:n},O));return l.jsxs("div",Ge({},L,{className:[n,n+"-"+y,r||""].filter(Boolean).join(" "),style:B,ref:t,children:[l.jsx("div",Ge({},c,{style:Ge({inset:0,position:"absolute",background:s||E,borderRadius:p},c.style)})),l.jsx(M6,Ge({},d,{style:Ge({},d.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:M,onDown:M,onClick:P,onKeyDown:T,children:_}))]}))});yc.displayName="Alpha";var Cq=["prefixCls","className","hue","onChange","direction"],hD=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-hue",className:r,hue:o=0,onChange:s,direction:c="horizontal"}=e,d=qr(e,Cq);return l.jsx(yc,Ge({ref:t,className:n+" "+(r||"")},d,{direction:c,background:"linear-gradient(to "+(c==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:o,s:100,v:100,a:o/360},onChange:(h,p)=>{s&&s({h:c==="horizontal"?360*p.left:360*p.top})}}))});hD.displayName="Hue";var gq=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],mq=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),vq=e=>Number(String(e).replace(/%/g,"")),d2=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input",placement:r="bottom",label:o,value:s,className:c,style:d,labelStyle:h,inputStyle:p,onChange:m,onBlur:v,renderInput:y}=e,b=qr(e,gq),[D,S]=g.useState(s),L=g.useRef(!1);g.useEffect(()=>{e.value!==D&&(L.current||S(e.value))},[e.value]);function M(P,_){var Z=(_||P.target.value).trim().replace(/^#/,"");mq(Z)&&m&&m(P,Z);var K=vq(Z);isNaN(K)||m&&m(P,K),S(Z)}function w(P){L.current=!1,S(e.value),v&&v(P)}var E={};r==="bottom"&&(E.flexDirection="column"),r==="top"&&(E.flexDirection="column-reverse"),r==="left"&&(E.flexDirection="row-reverse");var O=Ge({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},E,d),B=Ge({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},p),T=Ge({value:D,onChange:M,onBlur:w,autoComplete:"off",onFocus:()=>L.current=!0},b,{style:B,onFocusCapture:P=>{var _=P.target;_.setSelectionRange(_.value.length,_.value.length)}});return l.jsxs("div",{className:[n,c||""].filter(Boolean).join(" "),style:O,children:[y?y(T,t):l.jsx("input",Ge({ref:t},T)),o&&l.jsx("span",{style:Ge({color:"var(--editable-input-label-color)",textTransform:"capitalize"},h),children:o})]})});d2.displayName="EditableInput";var yq=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],E6=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-rgba",hsva:r,placement:o="bottom",rProps:s={},gProps:c={},bProps:d={},aProps:h={},className:p,style:m,onChange:v}=e,y=qr(e,yq),b=r?V5(r):{};function D(w){var E=Number(w.target.value);E&&E>255&&(w.target.value="255"),E&&E<0&&(w.target.value="0")}var S=w=>{var E=Number(w.target.value);E&&E>100&&(w.target.value="100"),E&&E<0&&(w.target.value="0")},L=(w,E,O)=>{typeof w=="number"&&(E==="a"&&(w<0&&(w=0),w>100&&(w=100),v&&v(da(Yl(Ge({},b,{a:w/100}))))),w>255&&(w=255,O.target.value="255"),w<0&&(w=0,O.target.value="0"),E==="r"&&v&&v(da(Yl(Ge({},b,{r:w})))),E==="g"&&v&&v(da(Yl(Ge({},b,{g:w})))),E==="b"&&v&&v(da(Yl(Ge({},b,{b:w})))))},M=b.a?Math.round(b.a*100)/100:0;return l.jsxs("div",Ge({ref:t,className:[n,p||""].filter(Boolean).join(" ")},y,{style:Ge({fontSize:11,display:"flex"},m),children:[l.jsx(d2,Ge({label:"R",value:b.r||0,onBlur:D,placement:o,onChange:(w,E)=>L(E,"r",w)},s,{style:Ge({},s.style)})),l.jsx(d2,Ge({label:"G",value:b.g||0,onBlur:D,placement:o,onChange:(w,E)=>L(E,"g",w)},c,{style:Ge({marginLeft:5},c.style)})),l.jsx(d2,Ge({label:"B",value:b.b||0,onBlur:D,placement:o,onChange:(w,E)=>L(E,"b",w)},d,{style:Ge({marginLeft:5},d.style)})),h&&l.jsx(d2,Ge({label:"A",value:parseInt(String(M*100),10),onBlur:S,placement:o,onChange:(w,E)=>L(E,"a",w)},h,{style:Ge({marginLeft:5},h.style)}))]}))});E6.displayName="EditableInputRGBA";var xq=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],pD=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-hsla",hsva:r,hProps:o={},sProps:s={},lProps:c={},aProps:d={},className:h,onChange:p}=e,m=qr(e,xq),v=r?S6(r):{h:0,s:0,l:0,a:0},y=(D,S,L)=>{typeof D=="number"&&(S==="h"&&(D<0&&(D=0),D>360&&(D=360),p&&p(da(A0(Ge({},v,{h:D}))))),S==="s"&&(D<0&&(D=0),D>100&&(D=100),p&&p(da(A0(Ge({},v,{s:D}))))),S==="l"&&(D<0&&(D=0),D>100&&(D=100),p&&p(da(A0(Ge({},v,{l:D}))))),S==="a"&&(D<0&&(D=0),D>1&&(D=1),p&&p(da(A0(Ge({},v,{a:D}))))))},b=d==!1?!1:Ge({label:"A",value:Math.round(v.a*100)/100},d,{onChange:(D,S)=>y(S,"a")});return l.jsx(E6,Ge({ref:t,hsva:r,rProps:Ge({label:"H",value:Math.round(v.h)},o,{onChange:(D,S)=>y(S,"h")}),gProps:Ge({label:"S",value:Math.round(v.s)+"%"},s,{onChange:(D,S)=>y(S,"s")}),bProps:Ge({label:"L",value:Math.round(v.l)+"%"},c,{onChange:(D,S)=>y(S,"l")}),aProps:b,className:[n,h||""].filter(Boolean).join(" ")},m))});pD.displayName="EditableInputHSLA";var wq=["style"];function bq(e){var{style:t}=e,n=qr(e,wq),r=g.useRef(null),o=g.useCallback(()=>{r.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),s=g.useCallback(()=>{r.current.style.backgroundColor="transparent"},[]);return l.jsx("div",Ge({ref:r,style:Ge({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},t)},n,{onMouseEnter:o,onMouseLeave:s,children:l.jsx("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:l.jsx("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}function Sq(){return"EyeDropper"in window}function Dq(e){var t=()=>{if("EyeDropper"in window){var n=new window.EyeDropper;n.open().then(r=>{e.onPickColor==null||e.onPickColor(r.sRGBHex)}).catch(r=>{r.name})}};return l.jsx("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:t,children:l.jsx("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var Lq=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],Ea=(function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e})({}),ts=et.forwardRef((e,t)=>{var{prefixCls:n="w-color-chrome",className:r,style:o,color:s,showEditableInput:c=!0,showEyeDropper:d=!0,showColorPreview:h=!0,showHue:p=!0,showAlpha:m=!0,inputType:v=Ea.RGBA,rectProps:y={},onChange:b}=e,D=qr(e,Lq),S=typeof s=="string"&&L6(s)?Gi(s):s||{h:0,s:0,l:0,a:0},L=W=>b&&b(da(W)),[M,w]=g.useState(v),E=()=>{M===Ea.RGBA&&w(Ea.HSLA),M===Ea.HSLA&&w(Ea.HEXA),M===Ea.HEXA&&w(Ea.RGBA)},O={paddingTop:6},B={textAlign:"center",paddingTop:4,paddingBottom:4},T=Ge({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},o),P={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:KU(S),boxShadow:"var(--chrome-alpha-box-shadow)"},_=W=>{var z=Gi(W);L(Ge({},z))},Z={height:14,width:14},K={style:Ge({},Z),fillProps:{style:Z}};return l.jsx(fD,Ge({ref:t,color:S,style:T,colors:void 0,className:[n,r].filter(Boolean).join(" "),placement:cn.TopLeft},D,{addonAfter:l.jsxs(g.Fragment,{children:[l.jsx(dD,{hsva:S,style:{width:"100%",height:130},onChange:W=>{L(Ge({},S,W,{a:S.a}))}}),l.jsxs("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[Sq()&&d&&l.jsx(Dq,{onPickColor:_}),h&&l.jsx(yc,{width:28,height:28,hsva:S,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:P},pointer:()=>l.jsx(g.Fragment,{})}),l.jsxs("div",{style:{flex:1},children:[p==!0&&l.jsx(hD,{hue:S.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:K,bgProps:{style:{borderRadius:2}},onChange:W=>{L(Ge({},S,W))}}),m==!0&&l.jsx(yc,{hsva:S,style:{marginTop:6,height:12,borderRadius:2},pointerProps:K,bgProps:{style:{borderRadius:2}},onChange:W=>{L(Ge({},S,W))}})]})]}),c&&l.jsxs("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[l.jsxs("div",{style:{flex:1},children:[M==Ea.RGBA&&l.jsx(E6,{hsva:S,rProps:{labelStyle:O,inputStyle:B},gProps:{labelStyle:O,inputStyle:B},bProps:{labelStyle:O,inputStyle:B},aProps:m==!1?!1:{labelStyle:O,inputStyle:B},onChange:W=>L(W.hsva)}),M===Ea.HEXA&&l.jsx(d2,{label:"HEX",labelStyle:O,inputStyle:B,value:S.a>0&&S.a<1?JU(S).toLocaleUpperCase():D6(S).toLocaleUpperCase(),onChange:(W,z)=>{typeof z=="string"&&L(Gi(/^#/.test(z)?z:"#"+z))}}),M===Ea.HSLA&&l.jsx(pD,{hsva:S,hProps:{labelStyle:O,inputStyle:B},sProps:{labelStyle:O,inputStyle:B},lProps:{labelStyle:O,inputStyle:B},aProps:m==!1?!1:{labelStyle:O,inputStyle:B},onChange:W=>L(W.hsva)})]}),l.jsx(bq,{onClick:E})]})]}),rectRender:()=>l.jsx(g.Fragment,{})}))});ts.displayName="Chrome";const Mq=e=>e.selectedIds.length>0?e.selectedIds:e.selectedId?[e.selectedId]:[],r9=(e,t)=>e.filter(n=>t.includes(n.id)&&(n.type==="text"||n.type==="rectangle"||n.type==="circle")),CD=(e,t)=>e.filter(n=>t.includes(n.id)&&(n.type==="rectangle"||n.type==="circle"||n.type==="svg")),Eq=(e,t)=>e.filter(n=>t.includes(n.id)&&n.type==="image"),gD=(e,t)=>e.filter(n=>t.includes(n.id)&&n.type==="draw"),kq=(e,t)=>e.filter(n=>t.includes(n.id)&&n.type==="line"),jn=(e,t)=>{if(e.length===0)return;const n=t(e[0]);return e.every(r=>t(r)===n)?n:void 0},jq=({scene:e,shapeColors:t,selectedIds:n,localeMessages:r,customDrawColorPickerWrapRef:o,customDrawColorPickerContentRef:s,customDrawColorPickerColor:c,setCustomDrawColorPickerColor:d,onShapeFillColorChange:h,onShapeFillStyleChange:p,onShapeStrokeColorChange:m,onShapeStrokeWidthChange:v,onShapeStrokeStyleChange:y,uniColor:b,activeSelectId:D,setActiveSelectId:S})=>{const L=CD(e.elements,n),M=L.map(U=>U.id),w=jn(L,U=>U.fill)??"multi",E=w==="multi"?L[0]?.fill??e.settings.shapeDefaults.fill:w,O=jn(L,U=>U.fillStyle)??"solid",B=[...t[0],...t[1]],T=B.some(U=>U!=="multi"&&U.toLowerCase()===E.toLowerCase())?E:"multi",P=B.some(U=>U!=="multi"&&U.toLowerCase()===E.toLowerCase()),_=jn(L,U=>U.stroke)??"multi",Z=_==="multi"?L[0]?.stroke??e.settings.shapeDefaults.stroke:_,K=B.some(U=>U!=="multi"&&U.toLowerCase()===Z.toLowerCase())?Z:"multi",W=jn(L,U=>U.strokeStyle),z=W==="solid"||W==="dashed"||W==="none"?W:"solid",q=B.some(U=>U!=="multi"&&U.toLowerCase()===Z.toLowerCase()),te=g.useRef(!1),X=g.useRef(!1),[H,Q]=g.useState(null),oe=U=>{const ie=U==="fill"?E:Z;Q(U),S(U==="fill"?"shape-fill-color":"shape-stroke-color"),d(Z9(ie))};return l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[l.jsx("div",{ref:o,style:{position:"relative",display:"inline-flex"},children:l.jsxs(Yn,{open:D==="shape-fill-color",onOpenChange:U=>{if(U){Q(null),S("shape-fill-color");return}if(te.current){te.current=!1;return}H==="fill"&&Q(null),S(null)},value:String(T),onValueChange:U=>{if(["solid","hachure","none"].includes(U)){p(M,U);return}if(U==="multi"){oe("fill");return}S(null),h(M,U)},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{onPointerDown:U=>{T==="multi"&&(U.preventDefault(),U.stopPropagation(),oe("fill"))},style:{gap:"0px",width:"fit-content"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:r.selectionBar.fillColor})}),l.jsx("div",{style:{width:"20px",borderRadius:"100%",border:"1px solid #ffffff20",height:"20px",background:b(E)}})]})}),l.jsx(Kt,{children:l.jsx("p",{children:r.selectionBar.fillColor})})]}),l.jsxs(Kn,{position:"popper",className:"drawo-colorselect-content",children:[l.jsxs("div",{className:"drawo-colorstyle-container",children:[l.jsxs(t1,{className:"drawo-colorstyle-optionitem"+(O==="solid"?" active":""),value:"solid",children:[l.jsx(qP,{})," Relleno"]}),l.jsxs(t1,{className:"drawo-colorstyle-optionitem"+(O==="hachure"?" active":""),value:"hachure",children:[l.jsx(QP,{})," Hachure"]}),l.jsxs(t1,{className:"drawo-colorstyle-optionitem"+(O==="none"?" active":""),value:"none",children:[l.jsx(XP,{})," Sin relleno"]})]}),l.jsx("hr",{className:"drawo-colorstyle-separator"}),l.jsxs("div",{className:"drawo-bigcolorpicker "+(O==="none"?"disabled":""),children:[l.jsx("div",{children:l.jsx(Ba,{colors:t[0],currentColor:E,uniColor:b,renderItem:({color:U,isMulti:ie,swatch:N})=>l.jsx(t1,{value:U,className:"drawo-colorselect-item",check:!1,onPointerDown:ie?$=>{$.preventDefault(),$.stopPropagation(),te.current=!0,oe("fill")}:void 0,onSelect:ie?$=>{$.preventDefault(),$.stopPropagation(),te.current=!0,oe("fill")}:void 0,children:N},U)})}),l.jsx("div",{children:l.jsx(Ba,{colors:t[1],realTotalColors:B,currentColor:E,uniColor:b,renderItem:({color:U,isMulti:ie,swatch:N})=>l.jsx(t1,{value:U,className:"drawo-colorselect-item",check:!1,onPointerDown:ie?$=>{$.preventDefault(),$.stopPropagation(),te.current=!0,oe("fill")}:void 0,onSelect:ie?$=>{$.preventDefault(),$.stopPropagation(),te.current=!0,oe("fill")}:void 0,children:N},U)})})]})]})]})}),l.jsxs(Yt,{open:D==="shape-fill-color"&&(H==="fill"||!P),children:[l.jsx(Gt,{asChild:!0,children:l.jsx("div",{className:"selectionbar-separator"})}),l.jsx(Kt,{className:"drawo-content-color drawo-ultrainferior-colorcontent",side:"bottom",style:{background:"transparent"},children:l.jsx("div",{ref:s,onPointerDown:U=>U.stopPropagation(),children:l.jsx(ts,{color:c,onChange:U=>{const ie=U.hexa||U.hex;ie&&(d(ie),h(M,ie))}})})})]}),l.jsxs(Yn,{open:D==="shape-stroke-color",onOpenChange:U=>{if(U){Q(null),S("shape-stroke-color");return}if(X.current){X.current=!1;return}H==="stroke"&&Q(null),S(null)},value:String(K),onValueChange:U=>{if(["solid","dashed","none"].includes(U)){y(M,U);return}if(U==="multi"){oe("stroke");return}S(null),m(M,U)},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{onPointerDown:U=>{K==="multi"&&(U.preventDefault(),U.stopPropagation(),oe("stroke"))},style:{gap:"0px",width:"fit-content"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:r.selectionBar.strokeColor})}),l.jsx("div",{style:{width:"20px",borderRadius:"3px",border:"2px solid "+b(Z),height:"20px",background:"transparent"}})]})}),l.jsx(Kt,{children:l.jsx("p",{children:r.selectionBar.strokeColor})})]}),l.jsxs(Kn,{position:"popper",className:"drawo-colorselect-content",children:[l.jsxs("div",{className:"drawo-colorstyle-container",children:[l.jsxs(t1,{className:"drawo-colorstyle-optionitem"+(z==="solid"?" active":""),value:"solid",children:[l.jsx(GP,{})," Sólido"]}),l.jsxs(t1,{className:"drawo-colorstyle-optionitem"+(z==="dashed"?" active":""),value:"dashed",children:[l.jsx(YP,{})," Discontinuo"]}),l.jsxs(t1,{className:"drawo-colorstyle-optionitem"+(z==="none"?" active":""),value:"none",children:[l.jsx(KP,{})," Ninguno"]})]}),l.jsx("hr",{className:"drawo-colorstyle-separator"}),l.jsx("div",{children:l.jsx(Ba,{colors:t[0],currentColor:Z,uniColor:b,renderItem:({color:U,isMulti:ie,swatch:N})=>l.jsx(t1,{value:U,className:"drawo-colorselect-item",check:!1,onPointerDown:ie?$=>{$.preventDefault(),$.stopPropagation(),X.current=!0,oe("stroke")}:void 0,onSelect:ie?$=>{$.preventDefault(),$.stopPropagation(),X.current=!0,oe("stroke")}:void 0,children:N},U)})}),l.jsx("div",{children:l.jsx(Ba,{colors:t[1],realTotalColors:B,currentColor:Z,uniColor:b,renderItem:({color:U,isMulti:ie,swatch:N})=>l.jsx(t1,{value:U,className:"drawo-colorselect-item",check:!1,onPointerDown:ie?$=>{$.preventDefault(),$.stopPropagation(),X.current=!0,oe("stroke")}:void 0,onSelect:ie?$=>{$.preventDefault(),$.stopPropagation(),X.current=!0,oe("stroke")}:void 0,children:N},U)})})]})]}),l.jsxs(Yt,{open:D==="shape-stroke-color"&&(H==="stroke"||!q),children:[l.jsx(Gt,{asChild:!0,children:l.jsx("div",{})}),l.jsx(Kt,{className:"drawo-content-color drawo-ultrainferior-colorcontent2",side:"bottom",style:{background:"transparent"},children:l.jsx("div",{ref:s,onPointerDown:U=>U.stopPropagation(),children:l.jsx(ts,{color:c,onChange:U=>{const ie=U.hexa||U.hex;ie&&(d(ie),m(M,ie))}})})})]})]})},O0=(e,t)=>{const n=e[t]??e[0];return n?l.jsx("svg",{width:n.width,height:n.height,viewBox:n.viewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:n.path,stroke:n.strokeWidth?"currentColor":void 0,strokeWidth:n.strokeWidth,strokeLinecap:n.strokeWidth?"round":void 0,fill:n.fill})}):null},Aq=({scene:e,strokeColors:t,selectedIds:n,drawingTool:r,localeMessages:o,customDrawColorPickerWrapRef:s,customDrawColorPickerContentRef:c,isCustomDrawColorPickerOpen:d,setIsCustomDrawColorPickerOpen:h,customDrawColorPickerColor:p,setCustomDrawColorPickerColor:m,onDrawStrokeWidthChange:v,onDrawStrokeColorChange:y,onDrawDefaultStrokeColorChange:b,onLineStartCapChange:D,onLineEndCapChange:S,uniColor:L,activeSelectId:M,setActiveSelectId:w})=>{const E=gD(e.elements,n),O=kq(e.elements,n),B=jn(E,N=>N.drawMode??"draw")??"draw",T=B==="marker"?p5:ti,P=B==="marker"?Gw:F0,_=B==="marker"?dT(jn(E,N=>N.strokeWidth)??p5[0]):zp(jn(E,N=>N.strokeWidth)??ti[1]),Z=B==="marker"?e.settings.drawDefaults.markerStroke:B==="quill"?e.settings.drawDefaults.quillStroke:e.settings.drawDefaults.drawStroke,K=E[0]?.stroke||Z,W=t.some(N=>N!=="multi"&&N.toLowerCase()===K.toLowerCase())?K:"multi",z=jn(O,N=>N.stroke)??"multi",q=z==="multi"?O[0]?.stroke??e.settings.shapeDefaults.lineStroke:z,te=t.some(N=>N!=="multi"&&N.toLowerCase()===z.toLowerCase())?z:"multi",X=zp(jn(O,N=>N.strokeWidth)??ti[1]),H=N=>{m(Z9(N)),h(!0)},Q=()=>l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[l.jsx("div",{ref:s,style:{position:"relative",display:"inline-flex"},children:l.jsxs(Yn,{open:M==="draw-stroke-color"||d||void 0,onOpenChange:N=>{N?w("draw-stroke-color"):M==="draw-stroke-color"&&w(null)},value:String(W),onValueChange:N=>{if(N==="multi"){H(K);return}if(h(!1),w(null),E.length===0){b(B,N);return}y(E.map($=>$.id),N)},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{onPointerDown:N=>{W==="multi"&&(N.preventDefault(),N.stopPropagation(),H(K))},style:{gap:"0px",width:"fit-content"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:o.selectionBar.strokeColor})}),l.jsx("div",{style:{width:"20px",borderRadius:"100%",border:"1px solid #ffffff20",height:"20px",background:L(K||Z)}})]})}),l.jsx(Kt,{children:l.jsx("p",{children:o.selectionBar.strokeColor})})]}),l.jsx(Kn,{position:"popper",className:"drawo-colorselect-content",children:l.jsx(Ba,{colors:t,currentColor:K,uniColor:L,renderItem:({color:N,isMulti:$,swatch:V})=>l.jsx(t1,{value:N,className:"drawo-colorselect-item",check:!1,onPointerDown:$?se=>{se.preventDefault(),se.stopPropagation(),H(K)}:void 0,onSelect:$?se=>{se.preventDefault(),H(K)}:void 0,children:V},N)})})]})}),l.jsxs(Yt,{open:d,children:[l.jsx(Gt,{asChild:!0,children:l.jsx("div",{className:"selectionbar-separator"})}),l.jsx(Kt,{className:"drawo-content-color",side:"bottom",style:{background:"transparent"},children:l.jsx("div",{ref:c,onPointerDown:N=>N.stopPropagation(),children:l.jsx(ts,{color:p,onChange:N=>{const $=N.hexa||N.hex;if($){if(m($),E.length===0){b(B,$);return}y(E.map(V=>V.id),$)}}})})})]}),l.jsxs(Yn,{open:M==="draw-stroke-width",onOpenChange:N=>{N?w("draw-stroke-width"):M==="draw-stroke-width"&&w(null)},value:String(_),onValueChange:N=>{w(null),v(E.map($=>$.id),Number(N))},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{className:"draw-stroke-trigger",style:{gap:"0px",width:"fit-content"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:o.selectionBar.strokeWidth})}),l.jsx("span",{className:"draw-stroke-option-line-wrap",children:O0(P,Math.max(0,T.findIndex(N=>N===_)))})]})}),l.jsx(Kt,{children:l.jsx("p",{children:o.selectionBar.strokeWidth})})]}),l.jsx(Kn,{position:"popper",children:T.map((N,$)=>l.jsx(t1,{check:!1,value:String(N),className:"draw-stroke-select-item",children:l.jsx("span",{className:"draw-stroke-option-line-wrap",children:O0(P,$)})},N))})]})]}),oe=()=>l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[l.jsx("div",{ref:s,style:{position:"relative",display:"inline-flex"},children:l.jsxs(Yn,{open:M==="line-stroke-color"||d,onOpenChange:N=>{N?w("line-stroke-color"):M==="line-stroke-color"&&w(null)},value:String(te),onValueChange:N=>{if(N==="multi"){H(q);return}h(!1),w(null),y(O.map($=>$.id),N)},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{onPointerDown:N=>{te==="multi"&&(N.preventDefault(),N.stopPropagation(),H(q))},style:{gap:"0px",width:"fit-content"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:o.selectionBar.strokeColor})}),l.jsx("div",{style:{width:"20px",borderRadius:"100%",border:"1px solid #ffffff20",height:"20px",background:L(q)}})]})}),l.jsx(Kt,{children:l.jsx("p",{children:o.selectionBar.strokeColor})})]}),l.jsx(Kn,{position:"popper",className:"drawo-colorselect-content",children:l.jsx(Ba,{colors:t,currentColor:q,uniColor:L,renderItem:({color:N,isMulti:$,swatch:V})=>l.jsx(t1,{value:N,className:"drawo-colorselect-item",check:!1,onPointerDown:$?se=>{se.preventDefault(),se.stopPropagation(),H(q)}:void 0,onSelect:$?se=>{se.preventDefault(),H(q)}:void 0,children:V},N)})})]})}),l.jsxs(Yt,{open:d,children:[l.jsx(Gt,{asChild:!0,children:l.jsx("div",{className:"selectionbar-separator"})}),l.jsx(Kt,{className:"drawo-content-color",side:"bottom",style:{background:"transparent"},children:l.jsx("div",{ref:c,onPointerDown:N=>N.stopPropagation(),children:l.jsx(ts,{color:p,onChange:N=>{const $=N.hexa||N.hex;$&&(m($),y(O.map(V=>V.id),$))}})})})]})]}),U=()=>{const N=jn(O,V=>V.startCap),$=jn(O,V=>V.endCap);return l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[l.jsxs(Yn,{open:M==="line-start-cap",onOpenChange:V=>{V?w("line-start-cap"):M==="line-start-cap"&&w(null)},value:N||"",onValueChange:V=>{w(null),D(O.map(se=>se.id),V)},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx(Gn,{children:l.jsx(dr,{placeholder:"Start cap"})})}),l.jsx(Kt,{children:l.jsx("p",{children:"Line start cap"})})]}),l.jsx(Kn,{position:"popper",children:_p.map((V,se)=>{const ke=Ip[se];return l.jsx(t1,{className:"arrowlinecap-selectitem",check:!1,style:{cssText:`
231
+ align-items: center!important;
232
+ justify-content: center!important;
233
+ width: fit-content!important
234
+ display: flex;
235
+ padding: 8px 0px!important;
236
+ `},value:V,children:l.jsx("svg",{width:ke.width/2,viewBox:ke.viewBox,fill:"none",style:{cssText:`
237
+ scale: 0.8;
238
+ transform: scaleX(-1)!important;
239
+ `},xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:ke.path,strokeWidth:ke.strokeWidth,strokeLinecap:ke.strokeLinecap,fill:ke.fill,stroke:ke.stroke})})},`${V}-${se}-start`)})})]}),l.jsx("div",{className:"selectionbar-separator"}),l.jsxs(Yn,{open:M==="line-end-cap",onOpenChange:V=>{V?w("line-end-cap"):M==="line-end-cap"&&w(null)},value:$||"",onValueChange:V=>{w(null),S(O.map(se=>se.id),V)},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx(Gn,{children:l.jsx(dr,{placeholder:"End cap"})})}),l.jsx(Kt,{children:l.jsx("p",{children:"Line end cap"})})]}),l.jsx(Kn,{position:"popper",children:_p.map((V,se)=>{const ke=Ip[se];return l.jsx(t1,{className:"arrowlinecap-selectitem",check:!1,style:{cssText:`
240
+ align-items: center!important;
241
+ justify-content: center!important;
242
+ width: fit-content!important
243
+ display: flex;
244
+ padding: 8px 0px!important;
245
+ `},value:V,children:l.jsx("svg",{width:ke.width/2,viewBox:ke.viewBox,fill:"none",style:{cssText:`
246
+ scale: 0.8;
247
+ `},xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:ke.path,strokeWidth:ke.strokeWidth,strokeLinecap:ke.strokeLinecap,fill:ke.fill,stroke:ke.stroke})})},`${V}-${se}-end`)})})]})]})},ie=()=>l.jsxs(Yn,{open:M==="line-stroke-width",onOpenChange:N=>{N?w("line-stroke-width"):M==="line-stroke-width"&&w(null)},value:String(X),onValueChange:N=>{w(null),v(O.map($=>$.id),Number(N))},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{className:"draw-stroke-trigger",style:{gap:"0px",width:"fit-content"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:o.selectionBar.strokeWidth})}),l.jsx("span",{className:"draw-stroke-option-line-wrap",children:O0(F0,Math.max(0,ti.findIndex(N=>N===X)))})]})}),l.jsx(Kt,{children:l.jsx("p",{children:o.selectionBar.strokeWidth})})]}),l.jsx(Kn,{position:"popper",children:ti.map((N,$)=>l.jsx(t1,{check:!1,value:String(N),className:"draw-stroke-select-item",children:l.jsx("span",{className:"draw-stroke-option-line-wrap",children:O0(F0,$)})},N))})]});return n.length>1?E.length===n.length?Q():l.jsx(l.Fragment,{}):E.length>0?Q():O.length>0?l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[oe(),ie(),l.jsx("div",{className:"selectionbar-separator"}),U()]}):r==="draw"||r==="marker"||r==="quill"?Q():l.jsx(l.Fragment,{})};function Oq({className:e,type:t,value:n,onValueChange:r,...o}){const[s,c]=g.useState(typeof n=="number"&&Number.isFinite(n)?n:10);g.useEffect(()=>{typeof n=="number"&&Number.isFinite(n)&&c(n)},[n]);const d=h=>{Number.isFinite(h)&&(c(h),r(h))};return l.jsxs("div",{className:"drawo-numberinput-container",children:[l.jsx("button",{onClick:()=>{d((Number.isFinite(s)?s:10)-1)},children:l.jsx(Ub,{})}),l.jsx("input",{type:t,"data-slot":"input",className:"drawo-numberinput"+(e?" "+e:""),...o,value:s,onChange:h=>{const p=Number.parseInt(h.target.value,10);Number.isFinite(p)&&d(p)}}),l.jsx("button",{onClick:()=>{d((Number.isFinite(s)?s:10)+1)},children:l.jsx(qb,{})})]})}const Bq=({scene:e,selectedIds:t,localeMessages:n,editor:r,editingText:o,setEditingText:s,worldToScreen:c,toggleEditorMark:d,onTextCommit:h,onTextFontFamilyChange:p,onTextFontSizeChange:m,onTextFontWeightChange:v,onTextFontStyleChange:y,onTextAlignChange:b,onTextColorChange:D,shapeColors:S,customDrawColorPickerWrapRef:L,customDrawColorPickerContentRef:M,customDrawColorPickerColor:w,setCustomDrawColorPickerColor:E,activeSelectId:O,setActiveSelectId:B})=>{const T=r9(e.elements,t),P=jn(T,xe=>xe.textAlign),_=hT(P),Z=jn(T,xe=>xe.fontFamily),K=jn(T,xe=>xe.fontSize),W=typeof K=="number"&&Number.isFinite(K),z=jn(T,xe=>xe.fontWeight),q=jn(T,xe=>xe.fontStyle),te=jn(T,xe=>xe.color)??"multi",X=te==="multi"?T[0]?.color??e.settings.shapeDefaults.textColor:te,H=[...S[0],...S[1]],Q=H.some(xe=>xe!=="multi"&&xe.toLowerCase()===X.toLowerCase())?X:"multi",oe=H.some(xe=>xe!=="multi"&&xe.toLowerCase()===X.toLowerCase()),U=g.useRef(!1),[ie,N]=g.useState(!1),$=z==="bold"||z==="700"||z==="800"||z==="900",V=q==="italic",se=(()=>{if(!o)return null;try{return R.marks(r)??null}catch{return null}})(),ke=o&&(o.style.fontWeight==="bold"||o.style.fontWeight==="700"||o.style.fontWeight==="800"||o.style.fontWeight==="900"),We=o?.style.fontStyle==="italic",Ae=se?.bold===!0||se?.bold!==!1&&ke,Qe=se?.italic===!0||se?.italic!==!1&&We,I=xe=>D5(xe.text).every(ht=>ht.children.every(Ie=>Ie.strikethrough===!0)),fe=T.length>0&&T.every(xe=>I(xe)),me=o?Ae:$,Se=o?Qe:V,Xe=o?se?.strikethrough===!0:fe,He=()=>{const xe=!fe;for(const Ue of T){const Ie=D5(Ue.text).map(Lt=>({...Lt,children:Lt.children.map(n1=>({...n1,strikethrough:xe}))}));h(Ue.id,W0(Ie))}},Ct=()=>{o&&requestAnimationFrame(()=>{try{$e.focus(r)}catch{return}})},mt=xe=>{N(!0),B("text-color"),E(Z9(xe))},dt=xe=>{const Ue=T.map(ht=>ht.id);D(Ue,xe),o&&Ue.includes(o.id)&&s(ht=>ht&&{...ht,style:{...ht.style,color:xe}}),Ct()};return l.jsxs("div",{style:{display:"flex",alignItems:"center",gap:2},children:[l.jsx("div",{ref:L,style:{position:"relative",display:"inline-flex"},children:l.jsxs(Yn,{open:O==="text-color",onOpenChange:xe=>{if(xe){N(!1),B("text-color");return}if(U.current){U.current=!1;return}ie&&N(!1),B(null)},value:String(Q),onValueChange:xe=>{if(xe==="multi"){mt(X);return}B(null),dt(xe)},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{onPointerDown:xe=>{Q==="multi"&&(xe.preventDefault(),xe.stopPropagation(),mt(X))},style:{gap:"0px",width:"fit-content"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:n.selectionBar.textColor})}),l.jsx("div",{style:{width:"20px",borderRadius:"100%",border:"1px solid #ffffff20",height:"20px",background:X}})]})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.textColor})})]}),l.jsxs(Kn,{position:"popper",className:"drawo-colorselect-content",children:[l.jsx("div",{children:l.jsx(Ba,{colors:S[0],currentColor:X,uniColor:xe=>xe,renderItem:({color:xe,isMulti:Ue,swatch:ht})=>l.jsx(t1,{value:xe,className:"drawo-colorselect-item",check:!1,onPointerDown:Ue?Ie=>{Ie.preventDefault(),Ie.stopPropagation(),U.current=!0,mt(X)}:void 0,onSelect:Ue?Ie=>{Ie.preventDefault(),Ie.stopPropagation(),U.current=!0,mt(X)}:void 0,children:ht},xe)})}),l.jsx("div",{children:l.jsx(Ba,{colors:S[1],realTotalColors:H,currentColor:X,uniColor:xe=>xe,renderItem:({color:xe,isMulti:Ue,swatch:ht})=>l.jsx(t1,{value:xe,className:"drawo-colorselect-item",check:!1,onPointerDown:Ue?Ie=>{Ie.preventDefault(),Ie.stopPropagation(),U.current=!0,mt(X)}:void 0,onSelect:Ue?Ie=>{Ie.preventDefault(),Ie.stopPropagation(),U.current=!0,mt(X)}:void 0,children:ht},xe)})})]})]})}),l.jsxs(Yt,{open:O==="text-color"&&(ie||!oe),children:[l.jsx(Gt,{asChild:!0,children:l.jsx("div",{className:"selectionbar-separator"})}),l.jsx(Kt,{className:"drawo-content-color drawo-ultrainferior-colorcontent3",side:"bottom",style:{background:"transparent"},children:l.jsx("div",{ref:M,onPointerDown:xe=>xe.stopPropagation(),children:l.jsx(ts,{color:w,onChange:xe=>{const Ue=xe.hexa||xe.hex;Ue&&(E(Ue),dt(Ue))}})})})]}),l.jsxs(Yn,{open:O==="text-font-family",onOpenChange:xe=>{xe?B("text-font-family"):O==="text-font-family"&&B(null)},value:Z,onValueChange:xe=>{B(null),p(T.map(Ue=>Ue.id),xe),Ct()},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{style:{gap:"0px"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:n.selectionBar.fontFamily})}),Z==="Shantell Sans"?l.jsx(HP,{}):Z==="Cascadia Code"?l.jsx(IP,{}):Z==="Imbue"?l.jsx(zP,{}):l.jsx(PP,{})]})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.fontFamily})})]}),l.jsxs(Kn,{position:"popper",children:[l.jsx(t1,{check:!1,value:"Rubik",children:n.fontFamilies.simple}),l.jsx(t1,{check:!1,value:"Shantell Sans",children:n.fontFamilies.handwritten}),l.jsx(t1,{check:!1,value:"Imbue",children:n.fontFamilies.elegant}),l.jsx(t1,{check:!1,value:"Cascadia Code",children:n.fontFamilies.technical})]})]}),l.jsx("div",{className:"selectionbar-separator"}),l.jsxs(Yn,{open:O==="text-font-size",onOpenChange:xe=>{xe?B("text-font-size"):O==="text-font-size"&&B(null)},value:W?String(K):void 0,onValueChange:xe=>{B(null);const Ue=Number.parseInt(xe,10);Number.isFinite(Ue)&&(m(T.map(ht=>ht.id),Ue),Ct())},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{style:{gap:"0px"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:""})}),W?K:"-"]})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.fontSize})})]}),l.jsxs(Kn,{position:"popper",children:[l.jsxs(t1,{check:!1,className:"fontSize-item",value:"16",children:[n.fontSizes.small,l.jsx("span",{style:{opacity:.5,marginLeft:"auto",display:"flex"},children:"16"})]}),l.jsxs(t1,{check:!1,className:"fontSize-item",value:"24",children:[n.fontSizes.medium,l.jsx("span",{style:{opacity:.5,marginLeft:"auto",display:"flex"},children:"24"})]}),l.jsxs(t1,{check:!1,className:"fontSize-item",value:"40",children:[n.fontSizes.large,l.jsx("span",{style:{opacity:.5,marginLeft:"auto",display:"flex"},children:"40"})]}),l.jsxs(t1,{check:!1,className:"fontSize-item",value:"64",children:[n.fontSizes.extraLarge,l.jsx("span",{style:{opacity:.5,marginLeft:"auto",display:"flex"},children:"64"})]}),l.jsxs(t1,{check:!1,className:"fontSize-item",value:"96",children:[n.fontSizes.huge,l.jsx("span",{style:{opacity:.5,marginLeft:"auto",display:"flex"},children:"96"})]}),l.jsx(EH,{}),l.jsx(Oq,{value:K,onValueChange:xe=>{Number.isFinite(xe)&&(m(T.map(Ue=>Ue.id),xe),Ct())},placeholder:n.fontSizes.placeholder,type:"number"})]})]}),l.jsx("div",{className:"selectionbar-separator"}),l.jsxs("div",{style:{display:"flex"},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",onPointerDown:xe=>{xe.preventDefault(),xe.stopPropagation()},onClick:()=>{if(o){d("bold"),$e.focus(r);return}v(T.map(xe=>xe.id),me?"200":"700")},className:"toggle-selectionbar-button"+(me?" active":""),children:l.jsx(ZF,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.bold})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",onPointerDown:xe=>{xe.preventDefault(),xe.stopPropagation()},onClick:()=>{if(o){d("italic"),$e.focus(r);return}y(T.map(xe=>xe.id),Se?"normal":"italic")},className:"toggle-selectionbar-button"+(Se?" active":""),children:l.jsx(iP,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.italic})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",onPointerDown:xe=>{xe.preventDefault(),xe.stopPropagation()},onClick:()=>{if(o){d("strikethrough"),$e.focus(r);return}He()},className:"toggle-selectionbar-button"+(Xe?" active":""),children:l.jsx(LP,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.strikethrough||"Strikethrough (Ctrl+S)"})})]}),l.jsx("div",{className:"selectionbar-separator"}),l.jsxs(Yn,{open:O==="text-align",onOpenChange:xe=>{xe?B("text-align"):O==="text-align"&&B(null)},value:_,onValueChange:xe=>{B(null);const Ue=xe==="center"?"center":xe==="end"?"end":"left",ht=T.map(Lt=>Lt.id);if(b(ht,Ue),!o||!ht.includes(o.id)){Ct();return}const Ie=e.elements.find(Lt=>Lt.id===o.id);s(Lt=>{if(!Lt)return Lt;const n1=Ie&&(Ie.type==="rectangle"||Ie.type==="circle")?Kl(Ie,Ue):Lt.anchorX,Me=Qo(n1,Lt.width,Ue),tt=c(Me,Lt.anchorY);return{...Lt,anchorX:n1,left:tt.x,style:{...Lt.style,textAlign:Ue}}}),Ct()},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsxs(Gn,{style:{gap:"0px"},children:[l.jsx("span",{style:{width:"0px",overflow:"hidden"},children:l.jsx(dr,{placeholder:""})}),_==="left"?l.jsx(mC,{}):_==="center"?l.jsx(gC,{}):l.jsx(vC,{})]})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.textAlign})})]}),l.jsxs(Kn,{position:"popper",className:"drawo-colorselect-content",children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx(t1,{check:!1,className:"drawo-textAlign-item",value:"left",children:l.jsx(mC,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.textAlignDirection.left})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx(t1,{check:!1,className:"drawo-textAlign-item",value:"center",children:l.jsx(gC,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.textAlignDirection.center})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx(t1,{check:!1,className:"drawo-textAlign-item",value:"end",children:l.jsx(vC,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:n.selectionBar.textAlignDirection.right})})]})]})]})]})]})},Rq=({left:e,top:t,toolbarKey:n,viewportWidth:r,children:o})=>{const s=g.useRef(null),[c,d]=g.useState(0);g.useEffect(()=>{const p=s.current;if(!p)return;const m=new ResizeObserver(v=>{const y=v[0]?.contentRect.width??p.offsetWidth;d(y)});return m.observe(p),d(p.offsetWidth),()=>{m.disconnect()}},[n]);const h=g.useMemo(()=>{const p=c/2,m=8,v=p+m,y=Math.max(v,r-p-m);return Math.min(Math.max(e,v),y)},[e,c,r]);return l.jsx("div",{ref:s,className:"selection-toolbar",onPointerDown:p=>{p.stopPropagation()},onMouseDown:p=>{p.stopPropagation()},style:{left:h,top:t},children:o},n)},Tq=({editorWrapRef:e,editor:t,editingText:n,editingDocument:r,editorSessionKey:o,cameraZoom:s,setEditingDocument:c,setEditingText:d,toThemeColor:h,getTextLineHeight:p,onEditorChange:m,onCommitEditingText:v,onToggleEditorMark:y})=>{const b=M=>M instanceof HTMLElement?!!(M.closest(".selection-toolbar")||M.closest(".select-content")||M.closest('[data-slot="select-content"]')||M.closest('[data-slot="select-trigger"]')):!1,D=()=>{requestAnimationFrame(()=>{const M=document.activeElement;e.current?.contains(M)||b(M)||v()})},S=M=>{if((M.ctrlKey||M.metaKey)&&M.key==="Enter"){M.preventDefault(),v();return}if((M.ctrlKey||M.metaKey)&&M.key.toLowerCase()==="b"){M.preventDefault(),y("bold");return}if((M.ctrlKey||M.metaKey)&&M.key.toLowerCase()==="i"){M.preventDefault(),y("italic");return}if((M.ctrlKey||M.metaKey)&&M.key.toLowerCase()==="s"){M.preventDefault(),y("strikethrough");return}M.key==="Escape"&&(c(null),d(null))},L=g.useCallback(({attributes:M,children:w,leaf:E})=>{const O=E;return l.jsx("span",{...M,style:{fontWeight:O.bold===!0?700:O.bold===!1?400:void 0,fontStyle:O.italic===!0?"italic":O.italic===!1?"normal":void 0,textDecorationLine:O.strikethrough===!0?"line-through":"none",textDecorationColor:O.strikethrough===!0?"currentColor":void 0,textDecorationThickness:O.strikethrough===!0?"0.05em":void 0},children:w})},[]);return n?l.jsx("div",{ref:e,style:{position:"absolute",left:n.left,top:n.top,width:n.width,height:n.height,maxWidth:n.maxWidth,margin:0,padding:0,border:"none",outline:"none",cursor:'url("../cursors/text.svg") 12 12, auto',background:"transparent",boxShadow:"none",color:h(n.style.color),fontFamily:n.style.fontFamily,fontSize:n.style.fontSize*s,fontWeight:n.style.fontWeight,fontStyle:n.style.fontStyle,textAlign:n.style.textAlign,lineHeight:`${p(n.style.fontSize)*s}px`},children:l.jsx(IU,{editor:t,initialValue:r??D5(n.value),onChange:m,children:l.jsx(BU,{className:"canvas-text-editor-input",renderLeaf:L,onBlur:D,onKeyDown:S,spellCheck:!1,style:{width:"100%",height:"100%",minHeight:`${n.style.fontSize*s}px`,outline:"none",whiteSpace:"pre",wordBreak:"normal",background:"transparent",color:"inherit",WebkitTextFillColor:"currentColor",caretColor:"currentColor"}})},`${n.id}-${o}`)}):null},Nq=(e,t)=>{const n=F5(1-e/t);return Math.pow(n,1.3)},_i=(e,t)=>{const n=P5(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${F5(n.a*t)})`:e},Fq=typeof navigator<"u"&&/firefox/i.test(navigator.userAgent),Pq=(e,t,n)=>{const o=[];let s=0,c=0;for(let d=0;d<e.length-1;d++){const h=e[d===0?0:d-1],p=e[d],m=e[d+1],v=e[d+2]||e[d+1];for(let y=0;y<=1;y+=1/3){const b=y*y,D=b*y,S=(m.x-h.x)*.5,L=(v.x-p.x)*.5,M=p.x+S*y+(3*(m.x-p.x)-2*S-L)*b+(2*(p.x-m.x)+S+L)*D,w=(m.y-h.y)*.5,E=(v.y-p.y)*.5,O=p.y+w*y+(3*(m.y-p.y)-2*w-E)*b+(2*(p.y-m.y)+w+E)*D,B=p.t+(m.t-p.t)*y,T=Nq(t-B,n.lifetime),P=Math.max(n.minWidth,n.baseWidth*T);if(P<=n.minWidth+.01)continue;const _=o[o.length-1];_&&_.x===M&&_.y===O||(o.push({x:M,y:O,widthPx:P}),s+=P,c=Math.max(c,P))}}return{samples:o,maxWidthPx:c,avgWidthPx:o.length>0?s/o.length:n.minWidth}},_q=e=>{const t=new Path2D;t.moveTo(e[0].x,e[0].y);for(let n=1;n<e.length;n++){const r=e[n];t.lineTo(r.x,r.y)}return t},B0=(e,t,n,r)=>{e.strokeStyle=r.strokeColor,e.lineWidth=r.widthPx/n.zoom,e.shadowColor=r.shadowColor,e.shadowBlur=r.shadowBlurPx/n.zoom,e.shadowOffsetX=0,e.shadowOffsetY=0,e.stroke(t)},Iq=(e,t,n,r,o)=>{e.shadowBlur=0,e.shadowColor="rgba(0, 0, 0, 0)",e.shadowOffsetX=0,e.shadowOffsetY=0,e.strokeStyle=r,e.lineWidth=o/n.zoom,e.stroke(t)},zq=(e,t,n,r,o)=>{if(t.length<2)return;const{samples:s,maxWidthPx:c,avgWidthPx:d}=Pq(t,n,o);if(s.length<2)return;const h=_q(s);if(e.lineJoin="round",e.lineCap="round",o.shadow){const p=Math.max(o.minWidth,d),m=document.querySelector("html")?.classList.contains("dark");Fq?B0(e,h,r,{strokeColor:_i(o.color,1),shadowColor:_i(o.color,1),widthPx:p,shadowBlurPx:Math.max(18,c*2.5)}):(B0(e,h,r,{strokeColor:_i(o.color,1),shadowColor:_i(o.color,.75),widthPx:p,shadowBlurPx:Math.max(60,c*7)}),B0(e,h,r,{strokeColor:_i(o.color,1),shadowColor:_i(o.color,.9),widthPx:p,shadowBlurPx:Math.max(30,c*3.5)}),B0(e,h,r,{strokeColor:_i(o.color,1),shadowColor:m?"rgba(0,0,0,0.55)":"rgba(255, 255, 255, 0.55)",widthPx:p,shadowBlurPx:Math.max(12,c*1.2)}))}Iq(e,h,r,o.color,Math.max(o.minWidth,d))},Hq=()=>`laser-${An("draw")}`,Zq=600,xc=(e,t)=>e.map(n=>({...n,points:n.points.filter(r=>t-r.t<=Zq)})).filter(n=>n.points.length>0),Vq=(e,t,n,r)=>xc(t?e.map(o=>{if(o.id!==t)return o;const s=o.points[o.points.length-1],c=.3/r;return s&&Math.hypot(n.x-s.x,n.y-s.y)<c?o:{...o,points:[...o.points,n]}}):e,n.t),Wq=()=>{const[e,t]=g.useState([]),[n,r]=g.useState(()=>performance.now()),o=g.useRef(null),s=g.useCallback(h=>{const p=performance.now(),m=Hq();r(p),t(v=>[...xc(v,p),{id:m,points:[{x:h.x,y:h.y,t:p}]}]),o.current=m},[]),c=g.useCallback((h,p)=>{const m=performance.now();r(m),t(v=>Vq(v,o.current,{x:h.x,y:h.y,t:m},p))},[]),d=g.useCallback(()=>{o.current=null},[]);return g.useEffect(()=>{if(e.length===0)return;let h=0;const p=()=>{const m=performance.now();r(m),t(v=>xc(v,m)),h=window.requestAnimationFrame(p)};return h=window.requestAnimationFrame(p),()=>{window.cancelAnimationFrame(h)}},[e.length]),{laserTrails:e,laserNow:n,startLaserTrail:s,appendLaserPoint:c,clearActiveLaserTrail:d}};function $q(e){return l.jsx(tA,{"data-slot":"context-menu",...e})}function Uq({className:e,...t}){return l.jsx(nA,{"data-slot":"context-menu-trigger",className:"drawo-contextmenu-trigger"+(e?" "+e:""),...t})}function rv(e){return l.jsx(sA,{"data-slot":"context-menu-sub",...e})}function qq({className:e,...t}){return l.jsx(rA,{children:l.jsx(aA,{"data-slot":"context-menu-content",className:"drawo-contextmenu-content"+(e?" "+e:""),...t})})}function ur({className:e,inset:t,disabled:n=!1,variant:r="default",...o}){return l.jsx(oA,{"data-slot":"context-menu-item","data-inset":t,"data-disabled":n,"data-variant":r,className:"drawo-contextmenu-item"+(e?" "+e:""),...o})}function av({className:e,inset:t,children:n,...r}){return l.jsxs(lA,{"data-slot":"context-menu-sub-trigger","data-inset":t,className:"drawo-contextmenu-subtrigger"+(e?" "+e:""),...r,children:[n,l.jsx(AF,{className:"drawo-contextmenu-chevron"})]})}function ov({className:e,...t}){return l.jsx(uA,{"data-slot":"context-menu-sub-content",className:"drawo-contextmenu-subcontent"+(e?" "+e:""),...t})}function c8({className:e,...t}){return l.jsx(iA,{"data-slot":"context-menu-separator",className:"drawo-contextmenu-separator"+(e?" "+e:""),...t})}const Yq=({children:e,hasSelection:t,canFlipSelection:n,selectionType:r,selectionOpacity:o,hasElements:s,localeMessages:c,canUngroupSelection:d,onCut:h,onCopy:p,onPaste:m,onDuplicate:v,onDelete:y,onGroup:b,onUngroup:D,onSelectAll:S,onMoveForward:L,onBringToFront:M,onSendToBack:w,onMoveBackward:E,onFlipHorizontal:O,onFlipVertical:B,onSelectionOpacityChange:T})=>{const P=t&&r==="multiple",_=g.useMemo(()=>typeof o!="number"||!Number.isFinite(o)?100:Math.max(0,Math.min(100,Math.round(o))),[o]),[Z,K]=g.useState(_),[W,z]=g.useState(String(_));g.useEffect(()=>{K(_),z(String(_))},[_,t]);const q=te=>{const X=Math.max(0,Math.min(100,Math.round(te)));K(X),z(String(X)),T(X)};return l.jsxs($q,{children:[l.jsx(Uq,{children:e}),l.jsxs(qq,{children:[t&&l.jsxs(l.Fragment,{children:[l.jsxs(ur,{onClick:h,children:[l.jsx(bP,{}),c.contextMenu.cut,l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:Fi()})," + ",l.jsx("span",{children:"X"})]})]}),l.jsxs(ur,{onClick:p,children:[l.jsx(YF,{}),c.contextMenu.copy,l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:Fi()})," + ",l.jsx("span",{children:"C"})]})]})]}),l.jsxs(ur,{onClick:m,children:[l.jsx(DP,{}),c.contextMenu.paste,l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:Fi()})," + ",l.jsx("span",{children:"V"})]})]}),t&&l.jsxs(l.Fragment,{children:[l.jsxs(ur,{onClick:v,children:[l.jsx(GF,{}),c.contextMenu.duplicate,l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:Fi()}),"+",l.jsx("span",{children:"D"})]})]}),l.jsxs(ur,{onClick:y,variant:"destructive",children:[l.jsx(AP,{}),c.contextMenu.delete,l.jsx("span",{className:"drawo-keybind",children:l.jsx("span",{children:"Del"})})]})]}),(P||d||t)&&l.jsx(c8,{}),(P||d)&&l.jsxs(l.Fragment,{children:[P&&l.jsxs(ur,{onClick:b,children:[l.jsx(Kb,{}),c.contextMenu.group,l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:Fi()}),"+",l.jsx("span",{children:"G"})]})]}),d&&l.jsxs(ur,{onClick:D,children:[l.jsx(qF,{}),c.contextMenu.ungroup,l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:Fi()}),"+",l.jsx("span",{children:I4()}),"+",l.jsx("span",{children:"G"})]})]})]}),t&&l.jsxs(l.Fragment,{children:[l.jsxs(rv,{children:[l.jsxs(av,{children:[l.jsx(sP,{}),c.contextMenu.layers.text]}),l.jsxs(ov,{children:[l.jsxs(ur,{onClick:M,children:[l.jsx(t_,{}),c.contextMenu.layers.bringToFront]}),l.jsxs(ur,{onClick:L,children:[l.jsx(n_,{}),c.contextMenu.layers.bringForward]}),l.jsxs(ur,{onClick:w,children:[l.jsx(JP,{}),c.contextMenu.layers.sendToBack]}),l.jsxs(ur,{onClick:E,children:[l.jsx(e_,{}),c.contextMenu.layers.sendBackward]})]})]}),l.jsxs(rv,{children:[l.jsxs(av,{children:[l.jsx(eP,{}),c.selectionBar.opacity,"..."]}),l.jsx(ov,{className:"drawo-contextmenu-opacity-subcontent",children:l.jsxs("div",{className:"drawo-contextmenu-opacity-popover",onPointerDown:te=>te.stopPropagation(),onClick:te=>te.stopPropagation(),children:[l.jsxs("div",{className:"drawo-contextmenu-opacity-header",children:[l.jsx("span",{children:c.selectionBar.opacity}),l.jsxs("div",{className:"drawo-contextmenu-opacity-input-wrap",children:[l.jsx("input",{className:"drawo-input drawo-numberinput drawo-contextmenu-opacity-input",type:"number",min:0,max:100,step:1,value:W,onChange:te=>{const X=te.target.value.replace(/[^0-9]/g,"");z(X)},onBlur:()=>{const te=Number.parseInt(W,10);q(Number.isFinite(te)?te:Z)},onKeyDown:te=>{if(te.key==="Enter"){const X=Number.parseInt(W,10);q(Number.isFinite(X)?X:Z),te.currentTarget.blur();return}te.key==="Escape"&&(z(String(Z)),te.currentTarget.blur())}}),l.jsx("span",{className:"drawo-contextmenu-opacity-unit",children:"%"})]})]}),l.jsx(t2,{className:"drawo-contextmenu-opacity-slider",value:[Z],min:0,max:100,step:1,onValueChange:te=>{const X=te[0]??Z;K(X),z(String(Math.round(X)))},onValueCommit:te=>{q(te[0]??Z)}})]})})]}),l.jsx(c8,{}),l.jsxs(ur,{disabled:!n,onClick:O,children:[l.jsx(jP,{}),"Voltear horizontalmente",l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:I4()}),"+",l.jsx("span",{children:"H"})]})]}),l.jsxs(ur,{disabled:!n,onClick:B,children:[l.jsx(kP,{}),"Voltear verticalmente",l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:I4()}),"+",l.jsx("span",{children:"V"})]})]})]}),l.jsx(c8,{}),l.jsxs(ur,{disabled:!s,onClick:S,children:[l.jsx(XF,{}),c.contextMenu.selectEverything,l.jsxs("span",{className:"drawo-keybind",children:[l.jsx("span",{children:Fi()})," + ",l.jsx("span",{children:"A"})]})]})]})]})},Nl=()=>performance.now(),Gq=220,Kq=4,Xq=4,iv=e=>e.type!=="text",Qq=e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,sv=(e,t,n)=>e+(t-e)*n,lv=(e,t,n,r,o)=>{const s=6/r;e.save(),e.strokeStyle=o,e.lineWidth=1/r,e.lineCap="round",e.setLineDash([]),e.beginPath(),e.moveTo(t-s/2,n-s/2),e.lineTo(t+s/2,n+s/2),e.moveTo(t+s/2,n-s/2),e.lineTo(t-s/2,n+s/2),e.stroke(),e.restore()},Jq=(e,t,n,r)=>{if(t.length!==0){e.save(),e.strokeStyle=r,e.fillStyle=r,e.lineWidth=1/n,e.setLineDash([6/n,4/n]);for(const o of t)e.beginPath(),o.kind==="spacing"&&o.segmentStart&&o.segmentEnd?(e.moveTo(o.segmentStart.x,o.segmentStart.y),e.lineTo(o.segmentEnd.x,o.segmentEnd.y)):o.axis==="x"?(e.moveTo(o.value,o.start),e.lineTo(o.value,o.end)):(e.moveTo(o.start,o.value),e.lineTo(o.end,o.value)),e.stroke(),lv(e,o.movingPoint.x,o.movingPoint.y,n,r),lv(e,o.targetPoint.x,o.targetPoint.y,n,r);e.restore()}},a9=(e,t,n)=>{if(t.type==="circle"){e.beginPath(),e.ellipse(t.x+t.width/2,t.y+t.height/2,t.width/2,t.height/2,0,0,Math.PI*2);return}Sr(e,t.x,t.y,t.width,t.height,n)},eY=(e,t,n,r)=>{if(t.fillStyle==="none")return;const o=r(t.fill);if(e.save(),t.fillStyle==="solid"){e.fillStyle=o,a9(e,t,n),e.fill(),e.restore();return}const s=8,c=Math.max(1,t.strokeWidth),d=Math.hypot(t.width,t.height)+Math.max(t.width,t.height)*2;a9(e,t,n),e.clip(),e.strokeStyle=o,e.lineWidth=c,e.lineCap="round",e.lineJoin="round";for(let h=t.x-d;h<=t.x+t.width+d;h+=s)e.beginPath(),e.moveTo(h,t.y+t.height+d),e.lineTo(h+d,t.y-d),e.stroke();e.restore()},tY=(e,t,n,r)=>{t.strokeStyle!=="none"&&(e.save(),e.strokeStyle=r(t.stroke),e.lineCap="round",e.lineJoin="round",e.lineWidth=Math.max(1,t.strokeWidth),t.strokeStyle==="dashed"?e.setLineDash([8,4]):e.setLineDash([]),a9(e,t,n),e.stroke(),e.restore())},nY=({scene:e,showDefaultEmptyState:t=!0,shapeColors:n,strokeColors:r,alignmentGuides:o,interactionMode:s,drawingTool:c,localeMessages:d,onPointerDown:h,onPointerMove:p,onPointerUp:m,onWheelPan:v,onWheelZoom:y,onCreateElement:b,onCreateDrawElement:D,onCreateLinePathElement:S,onDrawingToolComplete:L,onDropImageFiles:M,onSelectElements:w,onCopySelection:E,onCutSelection:O,onPasteAt:B,onDuplicateSelection:T,onDeleteSelection:P,onGroupSelection:_,onUngroupSelection:Z,onSelectGroupForElement:K,onReorderSelection:W,onFlipSelection:z,onTextFontFamilyChange:q,onTextFontSizeChange:te,onTextFontWeightChange:X,onTextFontStyleChange:H,onTextAlignChange:Q,onTextColorChange:oe,onDrawStrokeWidthChange:U,onDrawStrokeColorChange:ie,onShapeFillColorChange:N,onShapeFillStyleChange:$,onElementsOpacityChange:V,onShapeStrokeColorChange:se,onShapeStrokeWidthChange:ke,onShapeStrokeStyleChange:We,onDrawDefaultStrokeColorChange:Ae,onLineStartCapChange:Qe,onLineEndCapChange:I,onLineEditStart:fe,onLineGeometryChange:me,onRectangleBorderRadiusChange:Se,onGroupResizeStart:Xe,onGroupRotateStart:He,onResizeStart:Ct,onRotateStart:mt,onTextCommit:dt})=>{const xe=g.useRef(null),Ue=g.useRef(null),ht=g.useRef(null),[Ie,Lt]=g.useState(null),[n1,Me]=g.useState(null),[tt,Y]=g.useState(0),he=g.useMemo(()=>VU(zU(iW())),[tt]),ve=g.useRef(new Map),Be=g.useRef(null),[Ze,Ee]=g.useState(()=>({width:window.innerWidth,height:window.innerHeight})),[_e,ue]=g.useState("default"),[at,rt]=g.useState(null),[Tt,p1]=g.useState(null),[v1,kt]=g.useState(null),[Qt,ft]=g.useState(!1),[zt,ut]=g.useState(!1),[c1,f1]=g.useState(null),[Zn,Ht]=g.useState([]),[s1,Nt]=g.useState(null),[nt,fn]=g.useState(null),[Y1,G1]=g.useState(null),_t=g.useRef(!1),[,d1]=g.useState(0),[Vt,dn]=g.useState(null),{laserTrails:xt,laserNow:Dt,startLaserTrail:o1,appendLaserPoint:S1,clearActiveLaserTrail:mn}=Wq(),Mr=g.useRef(null),Er=g.useRef(null),[hr,Bn]=g.useState(!1),[Qn,hn]=g.useState(!1),[pr,kr]=g.useState(e.settings.drawDefaults.drawStroke),[bn,D1]=g.useState(null),[va,Jn]=g.useState(null),[Vn,vn]=g.useState(null),[ls,er]=g.useState(null),[Le,qe]=g.useState(null),[Ke,Et]=g.useState(null),[vt,lt]=g.useState(null),ct=j=>{if(!j)return null;const A=ve.current.get(j);if(A)return A;const be=new window.Image;be.decoding="async",be.onload=()=>{d1(ae=>ae+1)},be.onerror=()=>{d1(ae=>ae+1)};const ce=Be.current;return ce&&(be.style.cssText="position:absolute;width:1px;height:1px;",ce.appendChild(be)),be.src=j,ve.current.set(j,be),be},i1=g.useRef(null),r1=g.useRef(null),rn=g.useRef(null),an=g.useRef(null),us=g.useRef(null),y1=g.useRef(null),jr=g.useRef(!1),za=g.useRef(!1),Yr=g.useRef(!1),Rn=g.useRef(null),Mt=Mq(e),Gr=Mt.length>0,Tn=Mt.length===1,K1=Tn?Mt[0]:null,tr=e.elements.filter(j=>Mt.includes(j.id)),z2=j=>{const A=j.opacity;return typeof A!="number"||!Number.isFinite(A)?100:Math.max(0,Math.min(100,A))},wo=tr.map(z2),s7=wo.length===0?100:wo.every(j=>j===wo[0])?wo[0]:null,cs=tr.some(j=>iv(j)),fs=Mt.length===1&&(tr[0]?.type==="draw"||tr[0]?.type==="image")?tr[0].type:"multiple",Kr=tr.some(j=>j.groupId),hi=tr.length>0&&tr.every(j=>j.groupId&&j.groupId===tr[0]?.groupId)?tr[0]?.groupId??null:null,bo=hi?e.elements.filter(j=>j.groupId===hi).map(j=>j.id):[],So=!!hi&&bo.length>1&&bo.length===Mt.length&&bo.every(j=>Mt.includes(j)),Do=Mt.length===1&&!!tr[0]?.groupId,Fe=e.camera,Ha=e.settings.theme==="dark"||e.settings.theme==="system"&&document.documentElement.classList.contains("dark"),H2=Ha&&e.settings.colorScheme==="drawo",Xr=g.useCallback(j=>!j||j.points.length<2?!1:(S(j.points),G1(null),rn.current=null,Nt(null),ue("crosshair"),!0),[S]),Qr=j=>{const A=gD(e.elements,Mt).filter(ae=>(ae.drawMode??"draw")===j);if(A.length===0){const ae=j==="marker"?e.settings.drawDefaults.markerStroke:j==="quill"?e.settings.drawDefaults.quillStroke:e.settings.drawDefaults.drawStroke;return{drawMode:j,stroke:ae,strokeWidth:j==="marker"?e.settings.drawDefaults.markerStrokeWidth:j==="quill"?e.settings.drawDefaults.quillStrokeWidth:e.settings.drawDefaults.drawStrokeWidth}}const be=A[0].stroke,ce=A[0].strokeWidth;return{drawMode:j,stroke:typeof be=="string"&&be.trim().length>0?be:j==="marker"?e.settings.drawDefaults.markerStroke:j==="quill"?e.settings.drawDefaults.quillStroke:e.settings.drawDefaults.drawStroke,strokeWidth:typeof ce=="number"&&Number.isFinite(ce)?Math.max(1,ce):j==="marker"?e.settings.drawDefaults.markerStrokeWidth:j==="quill"?e.settings.drawDefaults.quillStrokeWidth:e.settings.drawDefaults.drawStrokeWidth}},O1=j=>{const A=typeof j=="string"&&j.trim().length>0?j:e.settings.shapeDefaults.textColor;return H2?sc(A):A},pn=g.useCallback((j,A)=>({x:j/Fe.zoom+Fe.x,y:A/Fe.zoom+Fe.y}),[Fe.x,Fe.y,Fe.zoom]),Sn=g.useCallback((j,A)=>({x:(j-Fe.x)*Fe.zoom,y:(A-Fe.y)*Fe.zoom}),[Fe.x,Fe.y,Fe.zoom]),Cr=g.useCallback((j,A,be)=>{const ce=qc(A),ae=ce.map(pe=>Nw(j,be,pe)),de=Math.max(16,...ae),Oe=tc(be.fontSize),we=be.fontSize+(ce.length-1)*Oe;return{lines:ce,lineWidths:ae,width:de,height:we,lineHeight:Oe}},[]),ya=g.useRef(new Map),ds=(j,A,be,ce)=>{const ae=`${be}::${ce.fontFamily}::${ce.fontSize}::${ce.fontWeight}::${ce.fontStyle}`,de=ya.current.get(A);if(de&&de.cacheKey===ae)return de.layout;const Oe=Cr(j,be,ce);if(ya.current.set(A,{cacheKey:ae,layout:Oe}),ya.current.size>6e3){const we=ya.current.keys().next().value;typeof we=="string"&&ya.current.delete(we)}return Oe},hs=(j,A,be,ce,ae,de)=>{const Oe=de?ds(j,de,A,ae):Cr(j,A,ae);return Oe.lines.forEach((we,pe)=>{const ze=Oe.lineWidths[pe]??0,it=Qo(be,ze,ae.textAlign),Ve=ce+pe*Oe.lineHeight;let bt=it;for(const yt of we.runs){if(!yt.text)continue;j.font=d5(ae,yt);const Wt=j.measureText(yt.text).width;if(j.fillText(yt.text,bt,Ve),yt.strikethrough){const J=j.strokeStyle,wt=j.lineWidth;if(j.strokeStyle=j.fillStyle,j.lineWidth=Math.max(ae.fontSize*.04,.75),yt.strikethrough){const pt=Ve-ae.fontSize*.3;j.beginPath(),j.moveTo(bt,pt),j.lineTo(bt+Wt,pt),j.stroke()}j.strokeStyle=J,j.lineWidth=wt}bt+=Wt}}),Oe},ps=(j,A,be,ce,ae,de)=>{const Oe=de?ds(j,de,A,ae):Cr(j,A,ae),we=ce-Oe.height/2;return Oe.lines.forEach((pe,ze)=>{const it=Oe.lineWidths[ze]??0;let Ve=Qo(be,it,ae.textAlign);const bt=we+ae.fontSize+ze*Oe.lineHeight;for(const yt of pe.runs){if(!yt.text)continue;j.font=d5(ae,yt);const Wt=j.measureText(yt.text).width;if(j.fillText(yt.text,Ve,bt),yt.strikethrough){const J=j.strokeStyle,wt=j.lineWidth;if(j.strokeStyle=j.fillStyle,j.lineWidth=Math.max(ae.fontSize*.04,.75),yt.strikethrough){const pt=bt-ae.fontSize*.3;j.beginPath(),j.moveTo(Ve,pt),j.lineTo(Ve+Wt,pt),j.stroke()}j.strokeStyle=J,j.lineWidth=wt}Ve+=Wt}}),Oe};g.useEffect(()=>{if(!(hr||Qn||bn==="shape-fill-color"||bn==="shape-stroke-color"||bn==="text-color"))return;const A=ce=>{const ae=ce.target;ae&&(Mr.current?.contains(ae)||Er.current?.contains(ae)||(Bn(!1),hn(!1),D1(null)))},be=ce=>{ce.key==="Escape"&&(Bn(!1),hn(!1),D1(null))};return window.addEventListener("pointerdown",A),window.addEventListener("keydown",be),()=>{window.removeEventListener("pointerdown",A),window.removeEventListener("keydown",be)}},[bn,hr,Qn]);const Z2=(j,A,be,ce)=>{if(ua(j))return null;const{start:ae,end:de,throughPoint:Oe}=H9(j),we=Math.max(7/ce,Gl/(2.3*ce));return Math.hypot(A-ae.x,be-ae.y)<=we?"start":Math.hypot(A-de.x,be-de.y)<=we?"end":Math.hypot(A-Oe.x,be-Oe.y)<=we?"control":null},Dn=(j,A,be,ce)=>{if(!ua(j)||!j.points)return null;const ae=Math.max(7/ce,Gl/(2.15*ce));let de=null,Oe=Number.POSITIVE_INFINITY;for(let we=0;we<j.points.length;we++){const pe=j.points[we],ze=Math.hypot(A-pe.x,be-pe.y);ze<=ae&&ze<Oe&&(de=we,Oe=ze)}return de},xa=(j,A,be=!0)=>{if(j.type==="rectangle"||j.type==="circle"||j.type==="image"||j.type==="svg")return{x:j.x,y:j.y,width:j.width,height:j.height};if(j.type==="draw")return gT(j);if(j.type==="line")return Xl(j);const ce=A?Cr(A,j.text,{fontFamily:j.fontFamily,fontSize:j.fontSize,fontWeight:j.fontWeight,fontStyle:j.fontStyle}).width:Math.max(16,di(j)),ae=Qo(j.x,ce,j.textAlign),de=rs(j),Oe={x:ae,y:j.y-j.fontSize,width:ce,height:de};if(!be)return Oe;const we=uT/Fe.zoom;return{x:Oe.x-we,y:Oe.y-we,width:Oe.width+we*2,height:Oe.height+we*2}},Ar=(j,A,be=!0)=>{const ce=e.elements.find(ae=>ae.id===j);return ce?xa(ce,A,be):null},Jr=(j,A,be,ce)=>{const ae=Gl/be,de=lT/be,Oe=["nw","ne","se","sw"],we=pe=>{const ze=Kw(A,pe),it=Tt===pe,Ve=at===pe;let bt=1,yt=2/be,$t=.1,Wt=1/be;Ve?(bt=1.35,yt=8/be,$t=.25,Wt=2.5/be):it&&(bt=1.2,yt=5/be,$t=.18,Wt=1.5/be);const J=ae*bt,wt=J/2,pt=ze.x-wt,At=ze.y-wt;if(j.save(),j.shadowColor=`rgba(0, 0, 0, ${$t})`,j.shadowBlur=yt,j.shadowOffsetX=0,j.shadowOffsetY=1.5/be,j.fillStyle=Ve?ce:O1(e.settings.shapeDefaults.fill),j.strokeStyle=ce,j.lineWidth=Wt,Sr(j,pt,At,J,J,de*bt),j.fill(),j.stroke(),(it||Ve)&&(j.strokeStyle=ce,j.globalAlpha=Ve?.15:.08,j.lineWidth=(4+(Ve?2:0))/be,Sr(j,pt,At,J,J,de*bt),j.stroke(),j.globalAlpha=1),it||Ve){j.fillStyle=Ve?"rgba(255, 255, 255, 0.25)":"rgba(255, 255, 255, 0.15)";const z1=J*.5;j.beginPath(),j.arc(ze.x,ze.y,z1/2,0,Math.PI*2),j.fill()}j.restore()};for(const pe of Oe)we(pe)},pi=(j,A,be=!0)=>{if(j.length===0)return null;const ce=j.map(pe=>Ar(pe,A,be)).filter(pe=>pe!==null);if(ce.length===0)return null;const ae=Math.min(...ce.map(pe=>pe.x)),de=Math.min(...ce.map(pe=>pe.y)),Oe=Math.max(...ce.map(pe=>pe.x+pe.width)),we=Math.max(...ce.map(pe=>pe.y+pe.height));return{x:ae,y:de,width:Oe-ae,height:we-de}},Za=j=>{if(Vt)return;const A=e.elements.filter(pe=>Mt.includes(pe.id)&&iv(pe));if(A.length===0)return;const be=A.map(pe=>({id:pe.id,bounds:xa(pe)})),ce=Math.min(...be.map(pe=>pe.bounds.x)),ae=Math.min(...be.map(pe=>pe.bounds.y)),de=Math.max(...be.map(pe=>pe.bounds.x+pe.bounds.width)),Oe=Math.max(...be.map(pe=>pe.bounds.y+pe.bounds.height)),we=new Map;for(const pe of be){const ze=oa(pe.bounds),it=j==="horizontal"?ce+de-(pe.bounds.x+pe.bounds.width):pe.bounds.x,Ve=j==="vertical"?ae+Oe-(pe.bounds.y+pe.bounds.height):pe.bounds.y;we.set(pe.id,{fromCenterX:ze.x,fromCenterY:ze.y,toCenterX:ze.x+(it-pe.bounds.x),toCenterY:ze.y+(Ve-pe.bounds.y)})}dn({axis:j,startedAt:Nl(),durationMs:Gq,items:we})};g.useEffect(()=>{if(!Vt)return;let j=0;const A=()=>{if(Nl()-Vt.startedAt>=Vt.durationMs){dn(null),z(Vt.axis);return}d1(ce=>ce+1),j=requestAnimationFrame(A)};return j=requestAnimationFrame(A),()=>{cancelAnimationFrame(j)}},[Vt,z]);const Cs=e.elements.some(j=>j.type==="image"&&j.isAnimated===!0);g.useEffect(()=>{if(!Cs)return;let j=0;const A=()=>{d1(be=>be+1),j=requestAnimationFrame(A)};return j=requestAnimationFrame(A),()=>{cancelAnimationFrame(j)}},[Cs]),g.useEffect(()=>{r1.current=Y1},[Y1]),g.useEffect(()=>{c!=="line"&&(r1.current&&Xr(r1.current),rn.current&&(rn.current=null,G1(null)))},[Xr,c]);const wa=(()=>{if(Mt.length===0||Qt||at||v1||Le||vt!==null)return null;const j=pi(Mt,void 0,!0);if(!j)return null;const A=Sn(j.x,j.y),be=Sn(j.x+j.width,j.y+j.height),ce=(A.x+be.x)/2,ae=Math.max(8,Math.min(A.y-42,Ze.height-46));return{left:ce,top:ae,key:Mt.join("|")}})(),gs=(j,A)=>{if(Ie)return null;const be=xe.current;if(!be)return null;const ce=be.getContext("2d");if(!ce)return null;if(Mt.length>1){const ze=pi(Mt,ce,!0);return ze?u0(ze,j,A,Fe.zoom):null}if(!K1)return null;const ae=e.elements.find(ze=>ze.id===K1);if(ae?.type==="line")return null;ae?.type==="text"&&(ce.font=kl(ae));const de=Ar(K1,ce);if(!de)return null;const Oe=(ae?.rotation??0)*Math.PI/180,we=oa(de),pe=Il(j,A,we.x,we.y,-Oe);return u0(de,pe.x,pe.y,Fe.zoom)},V2=(j,A,be,ce)=>{const ae=Math.min(j.width,j.height)/2,Oe=Math.max(0,Math.min(A,ae))+Pp/be;return ce==="nw"?{x:j.x+Oe,y:j.y+Oe}:ce==="ne"?{x:j.x+j.width-Oe,y:j.y+Oe}:ce==="se"?{x:j.x+j.width-Oe,y:j.y+j.height-Oe}:{x:j.x+Oe,y:j.y+j.height-Oe}},l7=()=>{if(!K1)return null;const j=e.elements.find(A=>A.id===K1);return!j||j.type!=="rectangle"?null:j},W2=(j,A,be,ce)=>{const ae={x:j.x,y:j.y,width:j.width,height:j.height},de=["nw","ne","se","sw"],Oe=Fp/(2*ce);for(const we of de){const pe=V2(ae,j.borderRadius,ce,we);if(Math.hypot(A-pe.x,be-pe.y)<=Oe)return we}return null},u7=()=>r9(e.elements,Mt).some(ae=>ae.type==="text")||Ie?l.jsx(Bq,{scene:e,selectedIds:Mt,localeMessages:d,editor:he,editingText:Ie,setEditingText:Lt,worldToScreen:Sn,toggleEditorMark:K5,onTextCommit:dt,onTextFontFamilyChange:q,onTextFontSizeChange:te,onTextFontWeightChange:X,onTextFontStyleChange:H,onTextAlignChange:Q,onTextColorChange:oe,shapeColors:n,customDrawColorPickerWrapRef:Mr,customDrawColorPickerContentRef:Er,customDrawColorPickerColor:pr,setCustomDrawColorPickerColor:kr,activeSelectId:bn,setActiveSelectId:D1}):Eq(e.elements,Mt).length>0?l.jsx(YU,{}):CD(e.elements,Mt).length>0?l.jsx(jq,{scene:e,shapeColors:n,selectedIds:Mt,localeMessages:d,customDrawColorPickerWrapRef:Mr,customDrawColorPickerContentRef:Er,customDrawColorPickerColor:pr,setCustomDrawColorPickerColor:kr,onShapeFillColorChange:N,onShapeFillStyleChange:$,onShapeStrokeColorChange:se,onShapeStrokeWidthChange:ke,onShapeStrokeStyleChange:We,uniColor:X5,activeSelectId:bn,setActiveSelectId:D1}):l.jsx(Aq,{scene:e,strokeColors:r,selectedIds:Mt,drawingTool:c,localeMessages:d,customDrawColorPickerWrapRef:Mr,customDrawColorPickerContentRef:Er,isCustomDrawColorPickerOpen:hr,setIsCustomDrawColorPickerOpen:Bn,customDrawColorPickerColor:pr,setCustomDrawColorPickerColor:kr,onDrawStrokeWidthChange:U,onDrawStrokeColorChange:ie,onDrawDefaultStrokeColorChange:Ae,onLineStartCapChange:Qe,onLineEndCapChange:I,uniColor:X5,activeSelectId:bn,setActiveSelectId:D1}),Or=(j,A,be)=>{if(za.current&&!Ie)return"grab";if(c&&c!=="image")return"crosshair";const ce=l7();if(ce){const Oe={x:ce.x,y:ce.y,width:ce.width,height:ce.height},we=oa(Oe),pe=Il(j,A,we.x,we.y,-ce.rotation*Math.PI/180);if(W2(ce,pe.x,pe.y,Fe.zoom))return"pointer"}if(s==="pan")return"grab";if(K1){const Oe=e.elements.find(we=>we.id===K1&&we.type==="line");if(Oe){const we=k4(Oe,j,A);if(ua(Oe)){const pe=Dn(Oe,we.x,we.y,Fe.zoom);if(Et(pe),er(null),pe!==null)return"pointer"}else{const pe=Z2(Oe,we.x,we.y,Fe.zoom);if(er(pe),Et(null),pe)return"pointer"}}else er(null),Et(null)}else er(null),Et(null);const ae=gs(j,A);return ae?(p1(ae.mode==="resize"?ae.handle:null),ae.mode==="resize"?Al(ae.handle):Ol(ae.handle)):(p1(null),_l(e.elements,j,A)?be?"clone":"grab":"default")},W5=j=>{const A=Math.min(j.startX,j.currentX),be=Math.min(j.startY,j.currentY),ce=Math.abs(j.currentX-j.startX),ae=Math.abs(j.currentY-j.startY);return{x:A,y:be,width:ce,height:ae}},$5=j=>{const A=j.currentX-j.startX,be=j.currentY-j.startY;if(j.fromCenter){let ce=Math.abs(A),ae=Math.abs(be);if(j.lockAspect){const de=Math.max(ce,ae);ce=de,ae=de}return{x:j.startX-ce,y:j.startY-ae,width:ce*2,height:ae*2}}if(j.lockAspect){const ce=Math.max(Math.abs(A),Math.abs(be));return{x:A>=0?j.startX:j.startX-ce,y:be>=0?j.startY:j.startY-ce,width:ce,height:ce}}return{x:Math.min(j.startX,j.currentX),y:Math.min(j.startY,j.currentY),width:Math.abs(A),height:Math.abs(be)}},Va=(j,A,be,ce)=>{const ae=be-j,de=ce-A;if(ae===0&&de===0)return{x:be,y:ce};const Oe=Math.atan2(de,ae),we=Math.round(Oe/(Math.PI/4))*(Math.PI/4),pe=Math.hypot(ae,de);return{x:j+Math.cos(we)*pe,y:A+Math.sin(we)*pe}},U5=j=>{if(j.lockAspect){const A=Va(j.startX,j.startY,j.currentX,j.currentY);return{startX:j.startX,startY:j.startY,endX:A.x,endY:A.y}}return{startX:j.startX,startY:j.startY,endX:j.currentX,endY:j.currentY}},c7=(j,A)=>j.x<A.x+A.width&&j.x+j.width>A.x&&j.y<A.y+A.height&&j.y+j.height>A.y,$2=j=>{const be=xe.current?.getContext("2d"),ce=W5(j),ae=new Set;for(const de of e.elements){de.type==="text"&&be&&(be.font=kl(de));const Oe=Ar(de.id,be,!0);if(!(!Oe||!c7(ce,Oe))){if(!de.groupId){ae.add(de.id);continue}for(const we of e.elements)we.groupId===de.groupId&&ae.add(we.id)}}return[...ae]},ms=g.useCallback(j=>{const A=xe.current;if(!A)return;const be=A.getContext("2d");if(!be)return;if(Y(Ve=>Ve+1),j.type==="text"){Me(D5(j.text));const Ve=Cr(be,j.text,{fontFamily:j.fontFamily,fontSize:j.fontSize,fontWeight:j.fontWeight,fontStyle:j.fontStyle}),bt=Qo(j.x,Ve.width,j.textAlign),yt=Sn(bt,j.y-j.fontSize);Lt({id:j.id,value:j.text,anchorX:j.x,anchorY:j.y-j.fontSize,left:yt.x,top:yt.y,width:Ve.width*Fe.zoom,height:Ve.height*Fe.zoom,style:{fontFamily:j.fontFamily,fontSize:j.fontSize,fontWeight:j.fontWeight,fontStyle:j.fontStyle,color:j.color,textAlign:j.textAlign}});return}const ce={id:j.id,x:Kl(j,j.textAlign),y:j.y+j.height/2,text:j.text,fontFamily:j.fontFamily,fontSize:j.fontSize,fontWeight:j.fontWeight,fontStyle:j.fontStyle,color:j.color,textAlign:j.textAlign},ae=Cr(be,ce.text,{fontFamily:ce.fontFamily,fontSize:ce.fontSize,fontWeight:ce.fontWeight,fontStyle:ce.fontStyle}),de=Math.max(16,j.width-A8*2),Oe=Math.min(ae.width,de),we=Kl(j,j.textAlign),pe=j.y+j.height/2-ae.height/2,ze=Qo(we,Oe,j.textAlign),it=Sn(ze,pe);Me(D5(j.text)),Lt({id:j.id,value:j.text,anchorX:we,anchorY:pe,left:it.x,top:it.y,width:Oe*Fe.zoom,height:ae.height*Fe.zoom,maxWidth:de*Fe.zoom,style:{fontFamily:j.fontFamily,fontSize:j.fontSize,fontWeight:j.fontWeight,fontStyle:j.fontStyle,color:j.color,textAlign:j.textAlign}})},[Fe.zoom,Cr,Sn]),vs=j=>{if(!Ie)return;const A=n1?W0(n1):Ie.value;dt(Ie.id,A);try{Pe.deselect(he)}catch{}Me(null),Lt(null)};g.useEffect(()=>{const j=()=>{Ee({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",j),()=>{window.removeEventListener("resize",j)}},[]),g.useEffect(()=>{const j=xe.current;if(!j)return;const A=be=>{if(Ie){be.preventDefault();return}const ce=j.getBoundingClientRect(),ae=be.clientX-ce.left,de=be.clientY-ce.top;if(be.preventDefault(),be.ctrlKey||be.metaKey){y(ae,de,be.deltaY);return}const Oe=be.shiftKey&&Math.abs(be.deltaX)<Math.abs(be.deltaY)?be.deltaY:be.deltaX,we=be.shiftKey&&Math.abs(be.deltaX)<Math.abs(be.deltaY)?0:be.deltaY;v(Oe,we)};return j.addEventListener("wheel",A,{passive:!1}),()=>{j.removeEventListener("wheel",A)}},[Ie,v,y]),g.useEffect(()=>{const j=xe.current;if(!j)return;const A=j.getContext("2d");if(!A)return;const be=getComputedStyle(j),ce=be.getPropertyValue("--accent").trim()||"#7c5cff",ae=Wp(be.getPropertyValue("--accent-rgb"))||Wp(ce)||"124, 92, 255",de=`rgba(${ae}, 0.45)`,Oe=`rgba(${ae}, 0.12)`,we=Ha?"#ff9b9b":"#ff7a7a",pe=Vt?Math.min(1,Math.max(0,(Nl()-Vt.startedAt)/Vt.durationMs)):null,ze=pe===null?null:Qq(pe),it=(J,wt,pt)=>{if(!Vt||ze===null)return;const At=Vt.items.get(pt);if(!At)return;const z1=sv(At.fromCenterX,At.toCenterX,ze),Wn=sv(At.fromCenterY,At.toCenterY,ze),yn=Vt.axis==="horizontal"?1-ze*2:1,gr=Vt.axis==="vertical"?1-ze*2:1,ea=Math.abs(yn)<.001?yn<0?-.001:.001:yn,Wa=Math.abs(gr)<.001?gr<0?-.001:.001:gr,B1=oa(wt);J.translate(z1,Wn),J.scale(ea,Wa),J.translate(-B1.x,-B1.y)};if(A.fillStyle=e.settings.drawDefaults.canvas,A.fillRect(0,0,j.width,j.height),A.save(),A.setTransform(Fe.zoom,0,0,Fe.zoom,-Fe.x*Fe.zoom,-Fe.y*Fe.zoom),e.settings.showGrid){const J=Math.max(4,e.settings.gridSize),wt=Math.max(1,Math.ceil(cT/(J*Fe.zoom))),pt=J*wt,At=Fe.x,z1=Fe.y,Wn=Fe.x+j.width/Fe.zoom,yn=Fe.y+j.height/Fe.zoom,gr=Math.floor(At/pt)*pt,ea=Math.floor(z1/pt)*pt,Wa=Ha?"#ffffff10":"#B3B2B370";if(e.settings.gridStyle==="squares"){A.strokeStyle=Wa,A.lineWidth=1/Fe.zoom,A.beginPath();for(let B1=gr;B1<=Wn;B1+=pt)A.moveTo(B1,z1),A.lineTo(B1,yn);for(let B1=ea;B1<=yn;B1+=pt)A.moveTo(At,B1),A.lineTo(Wn,B1);A.stroke()}else{const B1=2/Fe.zoom,Ci=B1/2;A.fillStyle=Wa;for(let Ye=gr;Ye<=Wn;Ye+=pt)for(let H1=ea;H1<=yn;H1+=pt)A.fillRect(Ye-Ci,H1-Ci,B1,B1)}}const Ve=new Set(Mt),bt=c1!==null?new Set(Zn):null,yt=Math.max(160/Fe.zoom,48),$t={x:Fe.x-yt,y:Fe.y-yt,width:j.width/Fe.zoom+yt*2,height:j.height/Fe.zoom+yt*2},Wt=J=>!(J.x+J.width<$t.x||J.x>$t.x+$t.width||J.y+J.height<$t.y||J.y>$t.y+$t.height);for(const J of e.elements){const wt=Ve.has(J.id),pt=wt&&(!So||Mt.length===1),At=c1!==null&&bt?.has(J.id)&&!wt,z1=Mt.length>1,Wn=J.rotation*Math.PI/180,yn=z2(J)/100;if(!wt&&!At&&Ie?.id!==J.id){let Ye=null;if(J.type==="draw"||J.type==="image"||J.type==="rectangle"||J.type==="circle"?Ye={x:J.x,y:J.y,width:J.width,height:J.height}:J.type==="line"&&(Ye=Xl(J)),Ye&&!Wt(Ye))continue}if(J.type==="draw"){const Ye=J.drawMode??"draw",H1={x:J.x,y:J.y,width:J.width,height:J.height},R1={x:H1.x-J.x,y:H1.y-J.y,width:H1.width,height:H1.height},nr=oa(H1);if(A.save(),it(A,H1,J.id),A.translate(nr.x,nr.y),A.rotate(Wn),A.translate(-nr.x,-nr.y),A.translate(J.x,J.y),J.points.length>0){const $1=R8(Ye,Ha),xn=A.globalCompositeOperation,$a=A.globalAlpha;A.globalCompositeOperation=$1.compositeOperation,A.globalAlpha*=$1.opacity*yn;const ta=B8(J.strokeWidth);A.strokeStyle=O1(J.stroke),A.fillStyle=O1(J.stroke),A.lineWidth=ta,A.lineJoin="round",A.lineCap=T8();const rr=J.points;rr.length===1?Ye==="marker"?r2(A,rr,ta):Ye==="quill"?a2(A,rr,ta,e.settings.quillDrawOptimizations):(A.beginPath(),A.arc(rr[0].x,rr[0].y,A.lineWidth/2,0,Math.PI*2),A.fillStyle=O1(J.stroke),A.fill()):rr.length>1&&(Ye==="marker"?r2(A,rr,ta):Ye==="quill"?a2(A,rr,ta,e.settings.quillDrawOptimizations):(A.beginPath(),lc(A,rr),A.stroke())),A.globalCompositeOperation=xn,A.globalAlpha=$a}pt?(A.strokeStyle=z1?de:ce,A.lineWidth=1/Fe.zoom,A.strokeRect(R1.x,R1.y,R1.width,R1.height),Tn&&Jr(A,R1,Fe.zoom,ce)):At&&(A.strokeStyle=ce,A.lineWidth=1/Fe.zoom,A.strokeRect(R1.x,R1.y,R1.width,R1.height)),A.restore();continue}if(J.type==="image"){const Ye=J,H1={x:Ye.x,y:Ye.y,width:Ye.width,height:Ye.height},R1=oa(H1),nr=Ye.src?ct(Ye.src):null,$1=Math.min(16/Fe.zoom,Math.min(Ye.width,Ye.height)/6);A.save(),it(A,H1,Ye.id),A.translate(R1.x,R1.y),A.rotate(Wn),A.translate(-R1.x,-R1.y);const xn=A.globalAlpha;A.globalAlpha*=yn,(Ye.flipX||Ye.flipY)&&(A.translate(R1.x,R1.y),A.scale(Ye.flipX?-1:1,Ye.flipY?-1:1),A.translate(-R1.x,-R1.y)),A.shadowColor="rgba(15, 23, 42, 0.14)",A.shadowBlur=18/Fe.zoom,A.shadowOffsetY=6/Fe.zoom,A.fillStyle=O1(e.settings.shapeDefaults.fill),Sr(A,Ye.x,Ye.y,Ye.width,Ye.height,$1),A.fill(),A.save(),Sr(A,Ye.x,Ye.y,Ye.width,Ye.height,$1),A.clip(),nr&&nr.complete&&nr.naturalWidth>0&&nr.naturalHeight>0?A.drawImage(nr,Ye.x,Ye.y,Ye.width,Ye.height):(A.fillStyle=O1("#e6e7e8"),A.fillRect(Ye.x,Ye.y,Ye.width,Ye.height)),A.restore(),A.shadowColor="transparent",A.strokeStyle=O1("rgba(15, 23, 42, 0.08)"),A.lineWidth=1/Fe.zoom,Sr(A,Ye.x,Ye.y,Ye.width,Ye.height,$1),A.stroke(),A.globalAlpha=xn,pt?(A.strokeStyle=z1?de:ce,A.lineWidth=1/Fe.zoom,A.strokeRect(Ye.x,Ye.y,Ye.width,Ye.height)):At&&(A.strokeStyle=ce,A.lineWidth=1/Fe.zoom,A.strokeRect(Ye.x,Ye.y,Ye.width,Ye.height)),pt&&Tn&&Jr(A,H1,Fe.zoom,ce),A.restore();continue}if(J.type==="rectangle"||J.type==="circle"){const Ye={x:J.x,y:J.y,width:J.width,height:J.height},H1=oa(Ye),R1=J.type==="rectangle"?Math.max(0,Math.min(J.borderRadius,Math.min(J.width,J.height)/2)):0;A.save(),it(A,Ye,J.id),A.translate(H1.x,H1.y),A.rotate(Wn),A.translate(-H1.x,-H1.y);const nr=A.globalAlpha;if(A.globalAlpha*=yn,eY(A,J,R1,O1),tY(A,J,R1,O1),Ie?.id!==J.id&&J.text.trim().length>0){const $1={id:`${J.id}-shape-text`,x:Kl(J,J.textAlign),y:J.y+J.height/2,text:J.text,fontFamily:J.fontFamily,fontSize:J.fontSize,fontWeight:J.fontWeight,fontStyle:J.fontStyle,color:J.color,textAlign:J.textAlign};A.save(),J.type==="circle"?(A.beginPath(),A.ellipse(J.x+J.width/2,J.y+J.height/2,J.width/2,J.height/2,0,0,Math.PI*2),A.clip()):(Sr(A,J.x,J.y,J.width,J.height,R1),A.clip()),A.font=kl($1),A.fillStyle=O1($1.color),A.textAlign="left",A.textBaseline="alphabetic",ps(A,$1.text,$1.x,J.y+J.height/2,{fontFamily:$1.fontFamily,fontSize:$1.fontSize,fontWeight:$1.fontWeight,fontStyle:$1.fontStyle,textAlign:$1.textAlign},`shape:${J.id}`),A.restore()}if(A.globalAlpha=nr,pt?(A.strokeStyle=z1?de:ce,A.lineWidth=1/Fe.zoom,A.strokeRect(J.x,J.y,J.width,J.height)):At&&(A.strokeStyle=ce,A.lineWidth=1/Fe.zoom,A.strokeRect(J.x,J.y,J.width,J.height)),pt&&Tn&&(Jr(A,Ye,Fe.zoom,ce),J.type==="rectangle")){const $1=an.current;if($1&&Tw(J,$1.x,$1.y)){const $a=["nw","ne","se","sw"],ta=Fp/(2*Fe.zoom);for(const rr of $a){const gi=V2(Ye,J.borderRadius,Fe.zoom,rr);A.fillStyle=ce,A.beginPath(),A.arc(gi.x,gi.y,ta,0,Math.PI*2),A.fill(),A.strokeStyle=O1(e.settings.shapeDefaults.fill),A.lineWidth=1/Fe.zoom,A.beginPath(),A.arc(gi.x,gi.y,ta,0,Math.PI*2),A.stroke()}}}A.restore();continue}if(J.type==="line"){const Ye=J,H1=Xl(Ye);A.save(),it(A,H1,Ye.id),Qw({ctx:A,lineElement:Ye,elementOpacity:yn,zoom:Fe.zoom,accentColor:ce,accentSelectionColor:de,toThemeColor:O1,shouldShowElementSelection:pt,isMultiSelection:z1,isMarqueePreview:At,canTransformSelection:Tn,hoveredLineHandle:ls,activeLineHandle:Le,hoveredLinePointIndex:Ke,activeLinePointIndex:vt}),A.restore();continue}if(Ie?.id===J.id||J.type==="svg")continue;const gr=ds(A,`text:${J.id}`,J.text,{fontFamily:J.fontFamily,fontSize:J.fontSize,fontWeight:J.fontWeight,fontStyle:J.fontStyle}),ea=gr.width,Wa={x:Qo(J.x,ea,J.textAlign),y:J.y-J.fontSize,width:ea,height:gr.height},B1=oa(Wa);A.save(),A.translate(B1.x,B1.y),A.rotate(Wn),A.translate(-B1.x,-B1.y);const Ci=A.globalAlpha;if(A.globalAlpha*=yn,A.fillStyle=O1(J.color),A.textAlign="left",A.textBaseline="alphabetic",hs(A,J.text,J.x,J.y,{fontFamily:J.fontFamily,fontSize:J.fontSize,fontWeight:J.fontWeight,fontStyle:J.fontStyle,textAlign:J.textAlign},`text:${J.id}`),A.globalAlpha=Ci,pt){const Ye=Ar(J.id,A,!0);if(!Ye){A.restore();continue}A.strokeStyle=Mt.length>1?de:ce,A.lineWidth=1/Fe.zoom,A.strokeRect(Ye.x,Ye.y,Ye.width,Ye.height),Tn&&Jr(A,Ye,Fe.zoom,ce)}else if(At){const Ye=Ar(J.id,A,!0);Ye&&(A.strokeStyle=ce,A.lineWidth=1/Fe.zoom,A.strokeRect(Ye.x,Ye.y,Ye.width,Ye.height))}A.restore()}if(Mt.length>1&&!Vt){const J=pi(Mt,A,!0);J&&(A.save(),A.strokeStyle=ce,A.lineWidth=1/Fe.zoom,A.setLineDash([6/Fe.zoom,4/Fe.zoom]),A.strokeRect(J.x,J.y,J.width,J.height),A.setLineDash([]),Jr(A,J,Fe.zoom,ce),A.restore())}if(Do&&!Vt){const J=pi(bo,A,!0);J&&(A.save(),A.strokeStyle=de,A.lineWidth=1/Fe.zoom,A.setLineDash([6/Fe.zoom,4/Fe.zoom]),A.strokeRect(J.x,J.y,J.width,J.height),A.setLineDash([]),A.restore())}if(Jq(A,o,Fe.zoom,we),c1){const J=W5(c1),wt=8/Fe.zoom;A.fillStyle=Oe,A.strokeStyle=ce,A.lineWidth=1/Fe.zoom,Sr(A,J.x,J.y,J.width,J.height,wt),A.fill(),A.stroke()}if(s1){const J=$5(s1);if(s1.type==="rectangle")A.fillStyle=O1(e.settings.shapeDefaults.fill),A.fillRect(J.x,J.y,J.width,J.height),A.strokeStyle=ce,A.lineWidth=1/Fe.zoom,A.strokeRect(J.x,J.y,J.width,J.height);else if(s1.type==="circle"){const wt=J.x+J.width/2,pt=J.y+J.height/2;A.fillStyle=O1(e.settings.shapeDefaults.fill),A.beginPath(),A.ellipse(wt,pt,J.width/2,J.height/2,0,0,Math.PI*2),A.fill(),A.strokeStyle=ce,A.lineWidth=1/Fe.zoom,A.beginPath(),A.ellipse(wt,pt,J.width/2,J.height/2,0,0,Math.PI*2),A.stroke()}else if(s1.type==="line"){const wt=U5(s1);A.strokeStyle=ce,A.lineWidth=2/Fe.zoom,A.lineCap="round",A.lineJoin="round",A.beginPath(),A.moveTo(wt.startX,wt.startY),A.lineTo(wt.endX,wt.endY),A.stroke()}else{const wt=Math.max(10,Math.round(J.height)),pt={x:J.x,y:J.y+wt,text:d.canvas.newText,fontFamily:"Shantell Sans, sans-serif",fontSize:wt,fontWeight:"200",fontStyle:"normal",color:e.settings.shapeDefaults.textColor};A.font=kl(pt),A.fillStyle=O1(pt.color),A.textAlign="left",A.textBaseline="alphabetic",A.fillText(pt.text,pt.x,pt.y)}}if(Y1&&Y1.points.length>0&&Y1.preview){const J=[...Y1.points,Y1.preview];if(A.strokeStyle=ce,A.lineWidth=2/Fe.zoom,A.lineCap="round",A.lineJoin="round",A.beginPath(),Xw(A,J),A.stroke(),J.length>1){const wt=Math.max(A.lineWidth*.52,1/Fe.zoom);A.fillStyle=ce;for(let pt=0;pt<J.length;pt++){const At=J[pt];A.beginPath(),A.arc(At.x,At.y,wt,0,Math.PI*2),A.fill()}}}if(nt&&nt.points.length>0){const J=R8(nt.drawMode,Ha),wt=A.globalCompositeOperation,pt=A.globalAlpha;A.globalCompositeOperation=J.compositeOperation,A.globalAlpha*=J.opacity,A.save();const At=B8(nt.strokeWidth);A.strokeStyle=O1(nt.stroke),A.fillStyle=O1(nt.stroke),A.lineWidth=At,A.lineJoin="round",A.lineCap=T8(),nt.points.length===1?nt.drawMode==="marker"?r2(A,nt.points,At):nt.drawMode==="quill"?a2(A,nt.points,At,e.settings.quillDrawOptimizations):(A.beginPath(),A.arc(nt.points[0].x,nt.points[0].y,A.lineWidth/2,0,Math.PI*2),A.fillStyle=O1(nt.stroke),A.fill()):nt.drawMode==="marker"?r2(A,nt.points,At):nt.drawMode==="quill"?a2(A,nt.points,At,e.settings.quillDrawOptimizations):(A.beginPath(),lc(A,nt.points),A.stroke()),A.restore(),A.globalCompositeOperation=wt,A.globalAlpha=pt}if(xt.length>0){A.save();const J=e.settings.laserSettings;A.fillStyle=J.color;for(const wt of xt)wt.points.length!==0&&zq(A,wt.points,Dt,Fe,J);A.restore()}A.restore()}),g.useEffect(()=>{if(!Ie){ht.current=null;return}ht.current!==Ie.id&&(ht.current=Ie.id,requestAnimationFrame(()=>{try{$e.focus(he);const j=R.end(he,[]);Pe.select(he,j)}catch(j){console.warn("Failed to focus text editor:",j)}}))},[he,Ie]),g.useEffect(()=>{const j=A=>{if(A.target instanceof HTMLElement){const ae=A.target.tagName.toLowerCase();if(A.target.isContentEditable||ae==="input"||ae==="textarea"||ae==="select")return}if(A.key==="Escape"&&(r1.current||rn.current)){A.preventDefault(),rn.current=null,G1(null),Nt(null);return}if((A.key===" "||A.code==="Space")&&A.target instanceof HTMLElement&&!A.target.isContentEditable&&A.target.tagName.toLowerCase()!=="input"&&A.target.tagName.toLowerCase()!=="textarea"&&(za.current=!0),A.key==="Enter"&&!Ie&&Xr(r1.current)){A.preventDefault();return}const be=A.key.toLowerCase();if(A.shiftKey&&!A.ctrlKey&&!A.metaKey&&!A.altKey&&!Ie){if(be==="h"){if(!cs)return;A.preventDefault(),Za("horizontal");return}if(be==="v"){if(!cs)return;A.preventDefault(),Za("vertical");return}}if(A.ctrlKey||A.metaKey){const ae=be;if(ae==="b"||ae==="i"){if(Ie)return;const de=r9(e.elements,Mt);if(de.length===0)return;if(A.preventDefault(),ae==="b"){const we=de.every(pe=>pe.fontWeight==="700"||pe.fontWeight==="800"||pe.fontWeight==="900"||pe.fontWeight==="bold");X(de.map(pe=>pe.id),we?"200":"700");return}const Oe=de.every(we=>we.fontStyle==="italic");H(de.map(we=>we.id),Oe?"normal":"italic");return}}if(A.key!=="Enter"||Ie)return;const ce=e.elements.find(ae=>ae.id===K1);!ce||ce.type!=="text"&&ce.type!=="rectangle"&&ce.type!=="circle"||(A.preventDefault(),ms(ce))};return window.addEventListener("keydown",j),()=>{window.removeEventListener("keydown",j)}},[ms,cs,Fe.zoom,Xr,Za,Cr,Sn,e.elements,K1,Mt,Ie,X,H]),g.useEffect(()=>{const j=A=>{(A.key===" "||A.code==="Space")&&(za.current=!1,Yr.current=!1)};return window.addEventListener("keyup",j),()=>{window.removeEventListener("keyup",j)}},[]),g.useEffect(()=>{if(!Ie)return;const j=24,A=1,be=Ie.left+Ie.width-Ze.width,ce=-Ie.left,ae=Ie.top+Ie.height-Ze.height,de=-Ie.top;let Oe=0,we=0;be>-j+A?Oe=be+j:ce>-j+A&&(Oe=-(ce+j)),ae>-j+A?we=ae+j:de>-j+A&&(we=-(de+j)),Math.abs(Oe)<=A&&(Oe=0),Math.abs(we)<=A&&(we=0),(Oe!==0||we!==0)&&v(Oe,we)},[Fe.zoom,Ze.height,Ze.width,Ie,v]),g.useEffect(()=>{const j=()=>{_t.current||(_t.current=!0,setTimeout(()=>{d1(A=>A+1)},0))};return window.__FONTS_LOADED__&&(_t.current=!0),window.addEventListener("fontsLoaded",j),()=>{window.removeEventListener("fontsLoaded",j)}},[]);const f7=j=>{Array.from(j.dataTransfer.items).some(A=>A.kind==="file")&&(j.preventDefault(),j.dataTransfer.dropEffect="copy")},d7=j=>{const A=Array.from(j.dataTransfer.files).filter(we=>we.type.startsWith("image/"));if(A.length===0)return;j.preventDefault();const be=xe.current;if(!be)return;const ce=be.getBoundingClientRect(),ae=j.clientX-ce.left,de=j.clientY-ce.top,Oe=pn(ae,de);M(A,Oe.x,Oe.y)},U2=j=>{const A=xe.current;if(!A)return;const be=A.getBoundingClientRect(),ce=j.clientX-be.left,ae=j.clientY-be.top,de=pn(ce,ae);if(an.current=de,Rn.current=null,j.button===1){j.preventDefault(),jr.current=!0,y1.current={screenX:ce,screenY:ae},i1.current=null,qe(null),lt(null),kt(null),rt(null),f1(null),ft(!1),ut(!1),ue("grabbing"),A.setPointerCapture(j.pointerId);return}if(s==="pan"){y1.current={screenX:ce,screenY:ae},i1.current=null,qe(null),lt(null),kt(null),rt(null),f1(null),ft(!1),ut(!1),ue("grabbing"),A.setPointerCapture(j.pointerId);return}if(za.current&&!Ie&&!c&&!jr.current){Yr.current=!0,y1.current={screenX:ce,screenY:ae},i1.current=null,qe(null),lt(null),kt(null),rt(null),f1(null),ft(!1),ut(!1),ue("grabbing"),A.setPointerCapture(j.pointerId);return}if(c&&c!=="image"){if(Ie&&vs(),i1.current=null,qe(null),lt(null),c==="laser")o1(de);else if(c==="draw"||c==="marker"||c==="quill"){const it=Nl(),Ve=c,bt=Qr(Ve);fn({points:[{...de,t:it}],stroke:bt.stroke,strokeWidth:bt.strokeWidth,drawMode:Ve,isLine:j.shiftKey})}else if(c==="line"){const it=r1.current;it&&it.points.length>0?rn.current=null:rn.current={screenX:ce,screenY:ae,startX:de.x,startY:de.y},Nt(null)}else Nt({type:c,startX:de.x,startY:de.y,currentX:de.x,currentY:de.y,fromCenter:j.altKey,lockAspect:j.shiftKey});ue(c==="laser"?"laser":c==="draw"?"pencil":c==="quill"?"quill":c==="marker"?"marker":"crosshair"),kt(null),rt(null),f1(null),ft(!1),ut(!1),A.setPointerCapture(j.pointerId);return}if(Mt.length>1&&!Ie){const it=A.getContext("2d");if(it){const Ve=pi(Mt,it,!0);if(Ve){const bt=u0(Ve,de.x,de.y,Fe.zoom);if(bt?.mode==="resize"){Xe(bt.handle,de.x,de.y,Ve,Mt),rt(bt.handle),kt(null),ft(!1),ut(!1),f1(null),Ht([]),ue(Al(bt.handle)),A.setPointerCapture(j.pointerId);return}const yt=O8(Ve,de.x,de.y,Fe.zoom);if(yt?.mode==="rotate"){const $t=oa(Ve);He($t.x,$t.y,de.x,de.y,Mt),kt(yt.handle),rt(null),ft(!1),ut(!1),f1(null),Ht([]),ue(Ol(yt.handle)),A.setPointerCapture(j.pointerId);return}}}}if(K1&&!Ie){const it=A.getContext("2d");if(it){const Ve=e.elements.find(yt=>yt.id===K1);if(Ve?.type==="line"){const yt=k4(Ve,de.x,de.y);if(ua(Ve)){const Wt=Dn(Ve,yt.x,yt.y,Fe.zoom);if(Wt!==null){fe(),i1.current={id:Ve.id,handle:"point",pointIndex:Wt,startLine:{x:Ve.x,y:Ve.y,width:Ve.width,height:Ve.height,controlPoint:null,points:Ve.points?[...Ve.points]:[]}},lt(Wt),Et(Wt),qe(null),er(null),kt(null),rt(null),ft(!1),ut(!1),f1(null),ue("pointer"),A.setPointerCapture(j.pointerId);return}}const $t=Z2(Ve,yt.x,yt.y,Fe.zoom);if($t){fe(),i1.current={id:Ve.id,handle:$t,startLine:{x:Ve.x,y:Ve.y,width:Ve.width,height:Ve.height,controlPoint:Ve.controlPoint??null,points:Ve.points?[...Ve.points]:void 0}},qe($t),er($t),lt(null),Et(null),kt(null),rt(null),ft(!1),ut(!1),f1(null),ue("pointer"),A.setPointerCapture(j.pointerId);return}}Ve?.type==="text"&&(it.font=kl(Ve));const bt=Ve?.type==="line"?null:Ar(K1,it,!0);if(bt){const yt=e.elements.find(At=>At.id===K1),$t=(yt?.rotation??0)*Math.PI/180,Wt=oa(bt),J=Il(de.x,de.y,Wt.x,Wt.y,-$t);if(yt?.type==="rectangle"&&W2(yt,J.x,J.y,Fe.zoom)){const At=W2(yt,J.x,J.y,Fe.zoom);if(!At)return;Jn(yt.id),vn(At),kt(null),rt(null),ft(!1),ut(!1),f1(null),ue("pointer"),A.setPointerCapture(j.pointerId);return}const wt=u0(bt,J.x,J.y,Fe.zoom);if(wt?.mode==="resize"){const At=Ar(K1,it,!1);Ct(K1,wt.handle,de.x,de.y,At??bt),rt(wt.handle),kt(null),ft(!1),ut(!1),ue(Al(wt.handle)),A.setPointerCapture(j.pointerId);return}const pt=O8(bt,J.x,J.y,Fe.zoom);if(pt?.mode==="rotate"){mt(K1,Wt.x,Wt.y,de.x,de.y),kt(pt.handle),rt(null),ft(!1),ut(!1),ue(Ol(pt.handle)),A.setPointerCapture(j.pointerId);return}}}}Ie&&vs();const Oe=_l(e.elements,de.x,de.y);if(!Oe){kt(null),rt(null),ft(!1),ut(!1),f1({startX:de.x,startY:de.y,currentX:de.x,currentY:de.y}),ue("default"),A.setPointerCapture(j.pointerId);return}j.shiftKey&&!j.altKey&&Mt.length>1&&Mt.includes(Oe)&&(Rn.current={hitId:Oe,selectedIds:[...Mt],startScreenX:ce,startScreenY:ae,shouldDeselect:!0});const we=!!Oe,pe=e.elements.find(it=>it.id===Oe),ze=we&&j.altKey&&!pe?.groupId;kt(null),rt(null),f1(null),ft(we),ut(ze),ue(we?ze?"clone":"grabbing":"default"),h(de.x,de.y,j.altKey,j.shiftKey,j.ctrlKey||j.metaKey),A.setPointerCapture(j.pointerId)},h7=j=>{const A=xe.current;if(!A)return;const be=A.getBoundingClientRect(),ce=j.clientX-be.left,ae=j.clientY-be.top,de=pn(ce,ae);an.current=de;const Oe=Rn.current;if(Oe?.shouldDeselect&&Math.hypot(ce-Oe.startScreenX,ae-Oe.startScreenY)>Kq&&(Rn.current={...Oe,shouldDeselect:!1}),jr.current){const pe=y1.current;if(pe){const ze=ce-pe.screenX,it=ae-pe.screenY;(ze!==0||it!==0)&&(v(-ze,-it),y1.current={screenX:ce,screenY:ae})}ue("grabbing");return}if(Yr.current){const pe=y1.current;if(pe){const ze=ce-pe.screenX,it=ae-pe.screenY;(ze!==0||it!==0)&&(v(-ze,-it),y1.current={screenX:ce,screenY:ae})}ue("grabbing");return}if(s==="pan"){const pe=y1.current;if(pe){const ze=ce-pe.screenX,it=ae-pe.screenY;(ze!==0||it!==0)&&(v(-ze,-it),y1.current={screenX:ce,screenY:ae}),ue("grabbing")}else ue("grab");return}if(c){if(c==="line"){const pe=r1.current;if(pe&&pe.points.length>0){const it=pe.points[pe.points.length-1],Ve=j.shiftKey?Va(it.x,it.y,de.x,de.y):de;G1({points:pe.points,preview:Ve}),ue("crosshair");return}const ze=rn.current;ze&&Math.hypot(ce-ze.screenX,ae-ze.screenY)>=Xq&&(Nt({type:"line",startX:ze.startX,startY:ze.startY,currentX:de.x,currentY:de.y,fromCenter:!1,lockAspect:j.shiftKey}),rn.current=null)}if(c==="laser")S1(de,Fe.zoom);else if(c==="draw"||c==="marker"||c==="quill"){const pe=Nl();fn(ze=>{if(!ze)return ze;const it=j.shiftKey;let Ve={...de,t:pe};if(it&&ze.points.length>0){const $t=ze.points[0],Wt=Math.abs(de.x-$t.x),J=Math.abs(de.y-$t.y);Wt>J?Ve={x:de.x,y:$t.y,t:pe}:Ve={x:$t.x,y:de.y,t:pe};const wt=ze.points.length>1?ze.points[1]:null,pt=.5/Fe.zoom;return wt&&Math.hypot(Ve.x-wt.x,Ve.y-wt.y)<pt?ze:{...ze,isLine:!0,points:[$t,Ve]}}typeof Ve.t!="number"&&(Ve={...Ve,t:pe});const bt=ze.points[ze.points.length-1],yt=2/Fe.zoom;return bt&&Math.hypot(Ve.x-bt.x,Ve.y-bt.y)<yt?ze:{...ze,isLine:!1,points:[...ze.points,Ve]}})}else s1&&Nt(pe=>{if(!pe)return pe;if(pe.type==="line"){const ze=j.shiftKey?Va(pe.startX,pe.startY,de.x,de.y):de;return{...pe,currentX:ze.x,currentY:ze.y,lockAspect:j.shiftKey}}return{...pe,currentX:de.x,currentY:de.y,fromCenter:j.altKey,lockAspect:j.shiftKey}});ue(c==="laser"?"laser":c==="draw"?"pencil":c==="quill"?"quill":c==="marker"?"marker":"crosshair");return}const we=i1.current;if(we){const pe=e.elements.find(ze=>ze.id===we.id&&ze.type==="line");if(pe){const ze=k4(pe,de.x,de.y),it={x:we.startLine.x,y:we.startLine.y},Ve={x:we.startLine.x+we.startLine.width,y:we.startLine.y+we.startLine.height};let bt=it,yt=Ve,$t=we.startLine.controlPoint;if(we.handle==="start"||we.handle==="point")bt=j.shiftKey?Va(Ve.x,Ve.y,ze.x,ze.y):ze;else if(we.handle==="end")yt=j.shiftKey?Va(it.x,it.y,ze.x,ze.y):ze;else if(we.handle==="control"){const At=(it.x+Ve.x)/2,z1=(it.y+Ve.y)/2;$t=j.shiftKey?Va(At,z1,ze.x,ze.y):{x:ze.x,y:ze.y}}const Wt=At=>e.settings.snapToGrid?Math.round(At/e.settings.gridSize)*e.settings.gridSize:At,J={x:Wt(bt.x),y:Wt(bt.y)},wt={x:Wt(yt.x),y:Wt(yt.y)},pt=$t?{x:Wt($t.x),y:Wt($t.y)}:null;if(we.handle==="point"&&typeof we.pointIndex=="number"&&we.startLine.points&&we.startLine.points.length>we.pointIndex){const At=we.startLine.points.map((Wn,yn)=>yn===we.pointIndex?{x:J.x,y:J.y}:Wn),z1=D2(At);me(we.id,{x:z1.x,y:z1.y,width:z1.width,height:z1.height,controlPoint:null,points:At})}else me(we.id,{x:J.x,y:J.y,width:wt.x-J.x,height:wt.y-J.y,controlPoint:pt})}ue("pointer");return}if(va){const pe=e.elements.find(ze=>ze.id===va);if(pe&&pe.type==="rectangle"&&Vn){const ze={x:pe.x,y:pe.y,width:pe.width,height:pe.height},it=oa(ze),Ve=Il(de.x,de.y,it.x,it.y,-pe.rotation*Math.PI/180),bt=Pp/Fe.zoom,yt=pe.x+pe.width,$t=pe.y+pe.height;let Wt;Vn==="nw"?Wt=Math.min(Ve.x-pe.x-bt,Ve.y-pe.y-bt):Vn==="ne"?Wt=Math.min(yt-Ve.x-bt,Ve.y-pe.y-bt):Vn==="se"?Wt=Math.min(yt-Ve.x-bt,$t-Ve.y-bt):Wt=Math.min(Ve.x-pe.x-bt,$t-Ve.y-bt);const J=Math.max(0,Math.min(Wt,Math.min(pe.width,pe.height)/2));Se([pe.id],J)}ue("pointer");return}if(c1){f1(pe=>{if(!pe)return pe;const ze={...pe,currentX:de.x,currentY:de.y};return Ht($2(ze)),ze}),ue("default");return}if(p(de.x,de.y,j.shiftKey,j.altKey),v1){ue(Ol(v1));return}if(at){ue(Al(at));return}if(Qt){ue(zt?"clone":"grabbing");return}ue(Or(de.x,de.y,j.altKey))},q5=j=>{const A=xe.current;A?.hasPointerCapture(j.pointerId)&&A.releasePointerCapture(j.pointerId);const be=Rn.current;if(Rn.current=null,s==="pan"){y1.current=null,Jn(null),vn(null),ue("grab");return}if(jr.current){jr.current=!1,y1.current=null,Jn(null),vn(null);const ae=A?.getBoundingClientRect();if(ae){const de=j.clientX-ae.left,Oe=j.clientY-ae.top,we=pn(de,Oe);an.current=we,ue(Or(we.x,we.y,j.altKey))}else ue("default");return}if(Yr.current){Yr.current=!1,y1.current=null,Jn(null),vn(null);const ae=A?.getBoundingClientRect();if(ae){const de=j.clientX-ae.left,Oe=j.clientY-ae.top,we=pn(de,Oe);an.current=we,ue(Or(we.x,we.y,j.altKey))}else ue("default");return}if(c){if(c==="line"){const ae=rn.current;if(ae){rn.current=null,Nt(null),G1({points:[{x:ae.startX,y:ae.startY}],preview:{x:ae.startX,y:ae.startY}}),Jn(null),vn(null),ue("crosshair");return}const de=r1.current;if(de&&de.points.length>0){const Oe=A?.getBoundingClientRect();if(Oe){const we=j.clientX-Oe.left,pe=j.clientY-Oe.top,ze=pn(we,pe),it=de.points[de.points.length-1],Ve=j.shiftKey?Va(it.x,it.y,ze.x,ze.y):ze;Math.hypot(Ve.x-it.x,Ve.y-it.y)>=1?G1({points:[...de.points,Ve],preview:Ve}):G1({points:de.points,preview:Ve})}Jn(null),vn(null),ue("crosshair");return}}if(c==="laser")mn();else if(c==="draw"||c==="marker"||c==="quill")nt&&nt.points.length>=1&&D(nt.points,{drawMode:nt.drawMode,stroke:nt.stroke}),fn(null);else if(s1){if(s1.type==="line"){const ae=U5(s1);Math.hypot(ae.endX-ae.startX,ae.endY-ae.startY)>=1&&b("line",ae.startX,ae.startY,d,{x:ae.startX,y:ae.startY,width:ae.endX-ae.startX,height:ae.endY-ae.startY})}else{const ae=$5(s1);b(s1.type,ae.x,ae.y,d,ae)}Nt(null),L()}Jn(null),vn(null),ue(c==="laser"?"laser":c==="draw"?"pencil":c==="quill"?"quill":c==="marker"?"marker":"crosshair");return}if(i1.current){m(),i1.current=null,qe(null),lt(null);const ae=A?.getBoundingClientRect();if(ae){const de=j.clientX-ae.left,Oe=j.clientY-ae.top,we=pn(de,Oe);an.current=we,ue(Or(we.x,we.y,j.altKey))}else ue("default");return}if(va){Jn(null),vn(null);const ae=A?.getBoundingClientRect();if(ae){const de=j.clientX-ae.left,Oe=j.clientY-ae.top,we=pn(de,Oe);ue(Or(we.x,we.y,j.altKey))}else ue("default");return}if(c1){const ae=$2(c1),de=j.shiftKey?Array.from(new Set([...Mt,...ae])):ae;w(de),f1(null),Ht([]),kt(null),rt(null),ft(!1),ut(!1);const Oe=A?.getBoundingClientRect();if(Oe){const we=j.clientX-Oe.left,pe=j.clientY-Oe.top,ze=pn(we,pe);an.current=ze,ue(Or(ze.x,ze.y,j.altKey))}else ue("default");return}if(be?.shouldDeselect&&!j.altKey){m(),w(be.selectedIds.filter(de=>de!==be.hitId)),kt(null),rt(null),p1(null),i1.current=null,qe(null),lt(null),er(null),Et(null),ft(!1),ut(!1);const ae=A?.getBoundingClientRect();if(ae){const de=j.clientX-ae.left,Oe=j.clientY-ae.top,we=pn(de,Oe);an.current=we,ue(Or(we.x,we.y,j.altKey))}else ue("default");return}m(),kt(null),rt(null),p1(null),i1.current=null,qe(null),lt(null),er(null),Et(null),ft(!1),ut(!1);const ce=A?.getBoundingClientRect();if(ce){const ae=j.clientX-ce.left,de=j.clientY-ce.top,Oe=pn(ae,de);an.current=Oe,ue(Or(Oe.x,Oe.y,j.altKey))}else ue("default")},p7=()=>{if(an.current=null,jr.current){ue("grabbing");return}if(s==="pan"){ue(y1.current?"grabbing":"grab");return}if(c){c==="laser"?(mn(),ue("laser")):ue(c==="draw"?"pencil":c==="quill"?"quill":c==="marker"?"marker":"crosshair");return}if(i1.current||Le||vt!==null){ue("pointer");return}if(va){ue("pointer");return}if(c1){ue("default");return}if(p1(null),er(null),Et(null),v1){ue(Ol(v1));return}if(at){ue(Al(at));return}if(Qt){ue(zt?"clone":"grabbing");return}ue("default")},Y5=j=>{if(c==="line"&&Xr(r1.current)){j.preventDefault();return}if(s==="pan"||c)return;const A=xe.current;if(!A)return;const be=A.getBoundingClientRect(),ce=j.clientX-be.left,ae=j.clientY-be.top,de=pn(ce,ae),Oe=_l(e.elements,de.x,de.y);if(!Oe)return;const we=e.elements.find(pe=>pe.id===Oe);if(we?.groupId&&Mt.length>1&&Mt.includes(we.id)){w([we.id]);return}if(!(!we||we.type!=="text"&&we.type!=="rectangle"&&we.type!=="circle")){if(Ie&&Ie.id!==we.id){vs(),requestAnimationFrame(()=>{ms(we)});return}ms(we)}},G5=j=>{Lt(A=>{if(!A)return A;const ce=xe.current?.getContext("2d");if(!ce)return A.value===j?A:{...A,value:j};const ae=Cr(ce,j,{fontFamily:A.style.fontFamily,fontSize:A.style.fontSize,fontWeight:A.style.fontWeight,fontStyle:A.style.fontStyle}),de=A.maxWidth?Math.min(ae.width*Fe.zoom,A.maxWidth):ae.width*Fe.zoom,Oe=Qo(A.anchorX,de/Fe.zoom,A.style.textAlign),we=Sn(Oe,A.anchorY),pe=ae.height*Fe.zoom,ze=Math.abs(A.left-we.x)<.001&&Math.abs(A.top-we.y)<.001&&Math.abs(A.width-de)<.001&&Math.abs(A.height-pe)<.001;return A.value===j&&ze?A:{...A,value:j,left:we.x,top:we.y,width:de,height:pe}})};g.useEffect(()=>{if(!Ie)return;const j=n1!==null?W0(n1):Ie.value;G5(j)},[Fe.x,Fe.y,Fe.zoom,n1,Ie?.id]);const C7=j=>{try{if(he.selection)try{R.node(he,he.selection.anchor.path),R.node(he,he.selection.focus.path)}catch{Pe.deselect(he)}const A=j;for(const ce of A)if(!ce||typeof ce!="object")return;if(Me(A),!he.operations.some(ce=>ce.type!=="set_selection"))return;G5(W0(A))}catch(A){console.warn("Editor change failed:",A)}},K5=j=>{let A=null;try{A=R.marks(he)}catch{return}const be=A?.[j];if(j==="bold"||j==="italic"){if(j==="bold"?!!Ie&&(Ie.style.fontWeight==="bold"||Ie.style.fontWeight==="700"||Ie.style.fontWeight==="800"||Ie.style.fontWeight==="900"):!!Ie&&Ie.style.fontStyle==="italic"){R.addMark(he,j,be===!1);return}if(be===!0){R.removeMark(he,j);return}R.addMark(he,j,!0);return}be===!0?R.removeMark(he,j):R.addMark(he,j,!0)},X5=j=>H2?sc(j):j,g7=j=>{const A=xe.current;if(!A)return;const be=A.getBoundingClientRect(),ce=j.clientX-be.left,ae=j.clientY-be.top,de=pn(ce,ae);us.current=de,an.current=de;const Oe=_l(e.elements,de.x,de.y);if(!Oe){w([]);return}const we=e.elements.find(ze=>ze.id===Oe);if(!we)return;const pe=j.ctrlKey||j.metaKey;if(we.groupId&&!pe){K(we.id);return}(!Mt.includes(Oe)||pe)&&w([Oe])},m7=()=>{const j=us.current;j&&B(j.x,j.y)};return l.jsxs("div",{style:{position:"relative",width:Ze.width,height:Ze.height},children:[l.jsx("div",{ref:Be,style:{position:"fixed",top:0,left:0,pointerEvents:"none",opacity:0,zIndex:-9999},"aria-hidden":"true"}),l.jsx(Yq,{hasSelection:Gr,canFlipSelection:cs,selectionType:fs,selectionOpacity:s7,hasElements:e.elements.length>0,canUngroupSelection:Kr,onCut:O,localeMessages:d,onCopy:E,onPaste:m7,onDuplicate:T,onSelectionOpacityChange:j=>{Gr&&V(Mt,j)},onDelete:P,onGroup:_,onUngroup:Z,onSelectAll:()=>{e.elements.length!==0&&w(e.elements.map(j=>j.id))},onMoveForward:()=>W("forward"),onBringToFront:()=>W("front"),onSendToBack:()=>W("back"),onMoveBackward:()=>W("backward"),onFlipHorizontal:()=>Za("horizontal"),onFlipVertical:()=>Za("vertical"),children:l.jsx("canvas",{ref:xe,width:Ze.width,height:Ze.height,onDragOver:f7,onDrop:d7,onPointerDown:U2,onPointerMove:h7,onPointerUp:q5,onPointerCancel:q5,onPointerLeave:p7,onDoubleClick:Y5,onContextMenu:g7,onMouseDown:j=>{j.button===1&&j.preventDefault()},onAuxClick:j=>{j.button===1&&j.preventDefault()},style:{display:"block",cursor:'url("../cursors/'+_e+'.svg")'+(["default","pointer","clone","laser"].includes(_e)?"":["marker","pencil","quill"].includes(_e)?" -4 26":" 12 12")+', url("../cursors/default.svg"), auto',touchAction:"none"}})}),t&&e.elements.length===0&&!s1&&!nt&&!Y1&&l.jsx(iD,{}),l.jsx(Tq,{editorWrapRef:Ue,editor:he,editingText:Ie,editingDocument:n1,editorSessionKey:tt,cameraZoom:Fe.zoom,setEditingDocument:Me,setEditingText:Lt,toThemeColor:O1,getTextLineHeight:tc,onEditorChange:C7,onCommitEditingText:()=>vs(),onToggleEditorMark:K5}),wa&&l.jsx(Rq,{toolbarKey:wa.key,left:wa.left,top:wa.top,viewportWidth:Ze.width,children:u7()})]})};function wc({showDefaultEmptyState:e=!0}){const t=is(),{scene:n,resolvedTheme:r,isPresentationMode:o,interactionMode:s,drawingTool:c,messages:d,handlers:h,setDrawingTool:p}=t,m={scene:n,showDefaultEmptyState:e,strokeColors:r.preset.strokeColors,shapeColors:r.preset.shapeColors,alignmentGuides:[],interactionMode:s,drawingTool:c,localeMessages:d,onPointerDown:h.handlePointerDown,onPointerMove:h.handlePointerMove,onPointerUp:h.handlePointerUp,onResizeStart:h.handleResizeStart,onRotateStart:h.handleRotateStart,onTextCommit:h.handleTextCommit,onWheelPan:h.handleWheelPan,onWheelZoom:h.handleWheelZoom,onCreateElement:h.handleCreateElement,onCreateDrawElement:h.handleCreateDrawElement,onCreateLinePathElement:h.handleCreateLinePathElement,onDrawingToolComplete:()=>p(null),onDropImageFiles:h.handleInsertImageFiles,onSelectElements:h.handleSelectElements,onGroupResizeStart:h.handleGroupResizeStart,onGroupRotateStart:h.handleGroupRotateStart,onTextFontFamilyChange:h.handleTextFontFamilyChange,onTextFontSizeChange:h.handleTextFontSizeChange,onTextFontWeightChange:h.handleTextFontWeightChange,onTextFontStyleChange:h.handleTextFontStyleChange,onTextAlignChange:h.handleTextAlignChange,onTextColorChange:h.handleTextColorChange,onDrawStrokeWidthChange:h.handleDrawStrokeWidthChange,onDrawStrokeColorChange:h.handleDrawStrokeColorChange,onShapeFillColorChange:h.handleShapeFillColorChange,onShapeFillStyleChange:h.handleShapeFillStyleChange,onElementsOpacityChange:h.handleElementsOpacityChange,onShapeStrokeColorChange:h.handleShapeStrokeColorChange,onShapeStrokeWidthChange:h.handleShapeStrokeWidthChange,onShapeStrokeStyleChange:h.handleShapeStrokeStyleChange,onDrawDefaultStrokeColorChange:h.handleDrawDefaultStrokeColorChange,onDrawDefaultStrokeWidthChange:h.handleDrawDefaultStrokeWidthChange,onLineStartCapChange:h.handleLineStartCapChange,onLineEndCapChange:h.handleLineEndCapChange,onLineEditStart:h.handleLineEditStart,onLineGeometryChange:h.handleLineGeometryChange,onRectangleBorderRadiusChange:h.handleRectangleBorderRadiusChange,onCopySelection:h.handleCopySelection,onCutSelection:h.handleCutSelection,onPasteAt:h.handlePasteAt,onDuplicateSelection:h.handleDuplicateSelection,onDeleteSelection:h.handleDeleteSelection,onGroupSelection:h.handleGroupSelection,onUngroupSelection:h.handleUngroupSelection,onSelectGroupForElement:h.handleSelectGroupForElement,onReorderSelection:h.handleReorderSelection,onFlipSelection:h.handleFlipSelection};return l.jsx(nY,{...m})}function rY({className:e,color:t}){return l.jsxs("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("g",{"clip-path":"url(#clip0_1539_179)",children:l.jsxs("g",{"clip-path":"url(#clip1_1539_179)",children:[l.jsx("path",{d:"M7.99556 10.0703C8.19978 9.56757 8.68826 9.23877 9.23085 9.23877H14.7692C15.3118 9.23877 15.8003 9.56757 16.0045 10.0703L19.2157 17.9747C19.7337 19.2498 20.0001 20.6131 20.0001 21.9895V45.2389H4V21.9895C4 20.6131 4.26635 19.2498 4.78436 17.9747L7.99556 10.0703Z",fill:"white"}),l.jsx("path",{d:"M7.99556 10.0703C8.19978 9.56757 8.68826 9.23877 9.23085 9.23877H14.7692C15.3118 9.23877 15.8003 9.56757 16.0045 10.0703L19.2157 17.9747C19.7337 19.2498 20.0001 20.6131 20.0001 21.9895V45.2389H4V21.9895C4 20.6131 4.26635 19.2498 4.78436 17.9747L7.99556 10.0703Z",fill:"url(#paint0_linear_1539_179)","fill-opacity":"0.6"}),l.jsx("path",{d:"M9.23047 9.48877H14.7695C15.1552 9.48887 15.5071 9.6934 15.7002 10.0181L15.7725 10.1645L18.9844 18.0688C19.4902 19.314 19.75 20.6457 19.75 21.9897V44.9888H4.25V21.9897C4.25 20.6457 4.50979 19.314 5.01562 18.0688L8.22754 10.1645C8.39342 9.75622 8.78976 9.48892 9.23047 9.48877Z",stroke:"black","stroke-opacity":"0.3","stroke-width":"0.5"}),l.jsx("g",{opacity:"0.2",filter:"url(#filter0_f_1539_179)",children:l.jsx("path",{d:"M18.6635 20.6615V44.3282H12.3301V10.3281L14.6634 10.2388L18.6635 20.6615Z",fill:"url(#paint1_linear_1539_179)"})}),l.jsx("g",{filter:"url(#filter1_i_1539_179)",children:l.jsx("path",{d:"M11.383 3.74726C11.6089 3.19493 12.3911 3.19493 12.6171 3.74725L15 9.57232H9L11.383 3.74726Z",fill:t||"#1E1E1E"})}),l.jsx("path",{d:"M11.6143 3.84158C11.7556 3.49681 12.2444 3.49682 12.3857 3.84158L14.6279 9.32205H9.37207L11.6143 3.84158Z",stroke:"black","stroke-opacity":"0.3","stroke-width":"0.5"}),l.jsx("path",{d:"M4.33008 23.9058H19.6635",stroke:"black","stroke-opacity":"0.15","stroke-width":"0.66667"})]})}),l.jsxs("defs",{children:[l.jsxs("filter",{id:"filter0_f_1539_179",x:"10.3301",y:"8.23875",width:"10.3335",height:"38.0894",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.jsx("feGaussianBlur",{stdDeviation:"1.00001",result:"effect1_foregroundBlur_1539_179"})]}),l.jsxs("filter",{id:"filter1_i_1539_179",x:"7.55999",y:"3.33301",width:"7.44001",height:"6.95926",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.jsx("feOffset",{dx:"-1.44001",dy:"0.720004"}),l.jsx("feGaussianBlur",{stdDeviation:"1.08001"}),l.jsx("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.jsx("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_1539_179"})]}),l.jsxs("linearGradient",{id:"paint0_linear_1539_179",x1:"4",y1:"38.2389",x2:"20.0001",y2:"38.2389",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{"stop-opacity":"0.1"}),l.jsx("stop",{offset:"0.4","stop-opacity":"0"}),l.jsx("stop",{offset:"1","stop-opacity":"0.15"})]}),l.jsxs("linearGradient",{id:"paint1_linear_1539_179",x1:"12.3301",y1:"1.57206",x2:"17.1673",y2:"36.2341",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{"stop-opacity":"0.2"}),l.jsx("stop",{offset:"1","stop-opacity":"0.4"})]}),l.jsx("clipPath",{id:"clip0_1539_179",children:l.jsx("rect",{width:"24",height:"24",fill:"white"})}),l.jsx("clipPath",{id:"clip1_1539_179",children:l.jsx("rect",{width:"16",height:"34",fill:"white",transform:"translate(4 2.57227)"})})]})]})}function aY({className:e,color:t}){return l.jsxs("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("g",{"clip-path":"url(#clip0_1571_205)",children:l.jsxs("g",{"clip-path":"url(#clip1_1571_205)",children:[l.jsx("path",{opacity:"0.75",d:"M12 9.66211C12.5694 9.66211 13.1156 9.88833 13.5182 10.291C13.9209 10.6937 14.1471 11.2398 14.1471 11.8093C14.1471 12.3787 13.9209 12.9249 13.5182 13.3276C13.1156 13.7302 12.5694 13.9565 12 13.9565C11.4305 13.9565 10.8843 13.7302 10.4817 13.3276C10.079 12.9249 9.85278 12.3787 9.85278 11.8093C9.85278 11.2398 10.079 10.6937 10.4817 10.291C10.8843 9.88833 11.4305 9.66211 12 9.66211Z",fill:t||"#1E1E1E"}),l.jsx("path",{d:"M12.6409 1.61035C12.9169 1.61035 13.1466 1.8197 13.1863 2.09347C13.6442 5.2482 15.4741 7.95793 18.0518 9.59891C18.2558 9.72882 18.3578 9.97413 18.2961 10.2076L15.5418 20.5366C15.5112 20.6509 15.4438 20.752 15.3499 20.824C15.2561 20.896 15.141 20.935 15.0227 20.9349H8.97679C8.85856 20.9349 8.74364 20.8958 8.64988 20.8238C8.55611 20.7518 8.48875 20.6508 8.45825 20.5366L5.7045 10.2076C5.67486 10.0934 5.68253 9.97277 5.72638 9.86325C5.77022 9.75373 5.84795 9.6611 5.9482 9.59891C8.52588 7.95793 10.3558 5.2482 10.8142 2.09293C10.854 1.82024 11.0832 1.61035 11.3591 1.61035H12.6409ZM12 9.66225C11.4305 9.66225 10.8844 9.88847 10.4817 10.2911C10.0791 10.6938 9.85284 11.24 9.85284 11.8094C9.85284 12.3789 10.0791 12.925 10.4817 13.3277C10.8844 13.7304 11.4305 13.9566 12 13.9566C12.5695 13.9566 13.1156 13.7304 13.5183 13.3277C13.921 12.925 14.1472 12.3789 14.1472 11.8094C14.1472 11.24 13.921 10.6938 13.5183 10.2911C13.1156 9.88847 12.5695 9.66225 12 9.66225Z",fill:"white"}),l.jsxs("mask",{id:"mask0_1571_205",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"5",y:"1",width:"15",height:"21",children:[l.jsx("path",{d:"M5.14941 1.07373H19.106V21.4719H5.14941V1.07373Z",fill:"white"}),l.jsx("path",{d:"M12.6409 1.61035C12.9169 1.61035 13.1466 1.8197 13.1863 2.09347C13.6442 5.2482 15.4741 7.95793 18.0518 9.59891C18.2558 9.72882 18.3578 9.97413 18.2961 10.2076L15.5418 20.5366C15.5112 20.6509 15.4438 20.752 15.3499 20.824C15.2561 20.896 15.141 20.935 15.0227 20.9349H8.97679C8.85856 20.9349 8.74364 20.8958 8.64988 20.8238C8.55611 20.7518 8.48875 20.6508 8.45825 20.5366L5.7045 10.2076C5.67486 10.0934 5.68253 9.97277 5.72638 9.86325C5.77022 9.75373 5.84795 9.6611 5.9482 9.59891C8.52588 7.95793 10.3558 5.2482 10.8142 2.09293C10.854 1.82024 11.0832 1.61035 11.3591 1.61035H12.6409ZM12 9.66225C11.4305 9.66225 10.8844 9.88847 10.4817 10.2911C10.0791 10.6938 9.85284 11.24 9.85284 11.8094C9.85284 12.3789 10.0791 12.925 10.4817 13.3277C10.8844 13.7304 11.4305 13.9566 12 13.9566C12.5695 13.9566 13.1156 13.7304 13.5183 13.3277C13.921 12.925 14.1472 12.3789 14.1472 11.8094C14.1472 11.24 13.921 10.6938 13.5183 10.2911C13.1156 9.88847 12.5695 9.66225 12 9.66225Z",fill:"black"})]}),l.jsx("g",{mask:"url(#mask0_1571_205)",children:l.jsx("path",{d:"M13.1863 2.09331L12.9206 2.13196C13.3903 5.36667 15.2664 8.14404 17.9074 9.82582L18.0523 9.59929L18.1962 9.37276C15.6824 7.77312 13.8986 5.12995 13.452 2.05466L13.1863 2.09331ZM18.296 10.208L18.0367 10.1388L15.2825 20.4677L15.5417 20.537L15.801 20.6057L18.5548 10.2773L18.296 10.208ZM15.0221 20.9348V20.6664H8.97675V21.2032H15.0227L15.0221 20.9348ZM8.45713 20.5365L8.71694 20.4667L5.96319 10.1382L5.70392 10.2075L5.44465 10.2767L8.1984 20.6052L8.45713 20.5365ZM5.9487 9.59822L6.09309 9.82528C8.73412 8.14351 10.6107 5.36614 11.0799 2.13142L10.8147 2.09277L10.549 2.05412C10.1024 5.12995 8.3181 7.77205 5.80483 9.37276L5.9487 9.59822ZM11.359 1.61019V1.87859H12.6409V1.3418H11.359V1.61019ZM12 9.66209V9.3937C11.3593 9.3937 10.7449 9.6482 10.2919 10.1012C9.83889 10.5542 9.5844 11.1686 9.5844 11.8093H10.1212C10.1212 11.311 10.3191 10.8331 10.6715 10.4808C11.0238 10.1284 11.5017 9.93049 12 9.93049V9.66209ZM9.85279 11.8093H9.5844C9.5844 12.4499 9.83889 13.0643 10.2919 13.5173C10.7449 13.9703 11.3593 14.2248 12 14.2248V13.688C11.5017 13.688 11.0238 13.4901 10.6715 13.1378C10.3191 12.7854 10.1212 12.3076 10.1212 11.8093H9.85279ZM12 13.9564V14.2248C12.6406 14.2248 13.255 13.9703 13.708 13.5173C14.161 13.0643 14.4155 12.4499 14.4155 11.8093H13.8787C13.8787 12.3076 13.6808 12.7854 13.3285 13.1378C12.9761 13.4901 12.4983 13.688 12 13.688V13.9564ZM14.1471 11.8093H14.4155C14.4155 11.1686 14.161 10.5542 13.708 10.1012C13.255 9.6482 12.6406 9.3937 12 9.3937V9.93049C12.4983 9.93049 12.9761 10.1284 13.3285 10.4808C13.6808 10.8331 13.8787 11.311 13.8787 11.8093H14.1471ZM10.8137 2.09331L11.0799 2.13142C11.0887 2.06294 11.1216 1.99985 11.1728 1.9535C11.224 1.90715 11.29 1.88059 11.359 1.87859V1.3418C10.9425 1.3418 10.6065 1.65689 10.5485 2.05412L10.8137 2.09331ZM5.70499 10.2069L5.96426 10.1377C5.9494 10.0786 5.95389 10.0163 5.97708 9.95998C6.00028 9.90364 6.04094 9.85624 6.09309 9.82474L5.9487 9.59822L5.80483 9.37169C5.65629 9.46442 5.54128 9.6022 5.47658 9.76492C5.41187 9.92764 5.40088 10.1068 5.44518 10.2762L5.70499 10.2069ZM8.97675 20.9348V20.6664C8.91763 20.6664 8.86017 20.6468 8.81329 20.6108C8.76641 20.5748 8.73273 20.5243 8.71748 20.4672L8.45821 20.5365L8.1984 20.6052C8.24408 20.7767 8.34569 20.9283 8.48646 21.0365C8.62722 21.1446 8.79978 21.2032 8.97728 21.2032L8.97675 20.9348ZM15.5417 20.537L15.2825 20.4667C15.2673 20.524 15.2336 20.5746 15.1866 20.6108C15.1396 20.6469 15.0819 20.6664 15.0227 20.6664V21.2032C15.2002 21.2032 15.3727 21.1446 15.5135 21.0365C15.6542 20.9283 15.7553 20.7772 15.801 20.6057L15.5417 20.537ZM18.0518 9.59875L17.9079 9.82528C18.018 9.89506 18.0668 10.0239 18.0367 10.1382L18.296 10.208L18.5553 10.2767C18.5995 10.1074 18.5884 9.92837 18.5237 9.76576C18.459 9.60315 18.3446 9.46546 18.1962 9.37276L18.0518 9.59875ZM13.1863 2.09331L13.452 2.05466C13.3946 1.65743 13.058 1.3418 12.6409 1.3418V1.87859C12.7762 1.87859 12.8991 1.98326 12.9206 2.13196L13.1863 2.09331Z",fill:"black","fill-opacity":"0.15"})}),l.jsx("mask",{id:"mask1_1571_205",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"5",y:"1",width:"14",height:"20",children:l.jsx("path",{d:"M12.6409 1.61035C12.9169 1.61035 13.1466 1.8197 13.1863 2.09347C13.6442 5.2482 15.4741 7.95793 18.0518 9.59891C18.2558 9.72882 18.3578 9.97413 18.2961 10.2076L15.5418 20.5366C15.5112 20.6509 15.4438 20.752 15.3499 20.824C15.2561 20.896 15.141 20.935 15.0227 20.9349H8.97679C8.85856 20.9349 8.74364 20.8958 8.64988 20.8238C8.55611 20.7518 8.48875 20.6508 8.45825 20.5366L5.7045 10.2076C5.67486 10.0934 5.68253 9.97277 5.72638 9.86325C5.77022 9.75373 5.84795 9.6611 5.9482 9.59891C8.52588 7.95793 10.3558 5.2482 10.8142 2.09293C10.854 1.82024 11.0832 1.61035 11.3591 1.61035H12.6409ZM12 9.66225C11.4305 9.66225 10.8844 9.88847 10.4817 10.2911C10.0791 10.6938 9.85284 11.24 9.85284 11.8094C9.85284 12.3789 10.0791 12.925 10.4817 13.3277C10.8844 13.7304 11.4305 13.9566 12 13.9566C12.5695 13.9566 13.1156 13.7304 13.5183 13.3277C13.921 12.925 14.1472 12.3789 14.1472 11.8094C14.1472 11.24 13.921 10.6938 13.5183 10.2911C13.1156 9.88847 12.5695 9.66225 12 9.66225Z",fill:"white"})}),l.jsxs("g",{mask:"url(#mask1_1571_205)",children:[l.jsxs("g",{opacity:"0.75",filter:"url(#filter0_f_1571_205)",children:[l.jsx("path",{d:"M13.1272 1.61035C13.4745 5.11347 15.5062 8.12058 18.4006 9.81256L15.4354 20.9349H8.56442L5.59863 9.81256C8.49356 8.12005 10.5253 5.11293 10.8726 1.61035H11.4631V9.17914C10.8114 9.31217 10.2323 9.68243 9.83812 10.2182C9.44391 10.7539 9.26267 11.4169 9.32952 12.0786C9.39637 12.7404 9.70656 13.3538 10.1999 13.7998C10.6933 14.2459 11.3348 14.4928 11.9999 14.4928C12.665 14.4928 13.3065 14.2459 13.7998 13.7998C14.2932 13.3538 14.6034 12.7404 14.6703 12.0786C14.7371 11.4169 14.5559 10.7539 14.1617 10.2182C13.7675 9.68243 13.1884 9.31217 12.5367 9.17914V1.61035H13.1272Z",fill:"url(#paint0_linear_1571_205)"}),l.jsx("path",{d:"M13.1272 1.61035C13.4745 5.11347 15.5062 8.12058 18.4006 9.81256L15.4354 20.9349H8.56442L5.59863 9.81256C8.49356 8.12005 10.5253 5.11293 10.8726 1.61035H11.4631V9.17914C10.8114 9.31217 10.2323 9.68243 9.83812 10.2182C9.44391 10.7539 9.26267 11.4169 9.32952 12.0786C9.39637 12.7404 9.70656 13.3538 10.1999 13.7998C10.6933 14.2459 11.3348 14.4928 11.9999 14.4928C12.665 14.4928 13.3065 14.2459 13.7998 13.7998C14.2932 13.3538 14.6034 12.7404 14.6703 12.0786C14.7371 11.4169 14.5559 10.7539 14.1617 10.2182C13.7675 9.68243 13.1884 9.31217 12.5367 9.17914V1.61035H13.1272Z",fill:"url(#paint1_linear_1571_205)"}),l.jsx("mask",{id:"mask2_1571_205",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"5",y:"1",width:"14",height:"20",children:l.jsx("path",{d:"M13.1272 1.61035C13.4745 5.11347 15.5062 8.12058 18.4006 9.81256L15.4354 20.9349H8.56442L5.59863 9.81256C8.49356 8.12005 10.5253 5.11293 10.8726 1.61035H11.4631V9.17914C10.8114 9.31217 10.2323 9.68243 9.83812 10.2182C9.44391 10.7539 9.26267 11.4169 9.32952 12.0786C9.39637 12.7404 9.70656 13.3538 10.1999 13.7998C10.6933 14.2459 11.3348 14.4928 11.9999 14.4928C12.665 14.4928 13.3065 14.2459 13.7998 13.7998C14.2932 13.3538 14.6034 12.7404 14.6703 12.0786C14.7371 11.4169 14.5559 10.7539 14.1617 10.2182C13.7675 9.68243 13.1884 9.31217 12.5367 9.17914V1.61035H13.1272Z",fill:"white"})}),l.jsx("g",{mask:"url(#mask2_1571_205)",children:l.jsx("path",{d:"M13.1272 1.61052L13.6608 1.55738L13.6124 1.07373H13.1272V1.61052ZM18.4006 9.81273L18.9197 9.95068L19.0249 9.5556L18.6717 9.34894L18.4006 9.81273ZM15.4354 20.9351V21.4719H15.8477L15.9539 21.0736L15.4354 20.9351ZM8.56444 20.9351L8.0459 21.0736L8.15218 21.4719H8.56444V20.9351ZM5.59866 9.81273L5.32758 9.34894L4.97437 9.55507L5.08011 9.95068L5.59866 9.81273ZM10.8727 1.61052V1.07373H10.3863L10.3385 1.55738L10.8727 1.61052ZM11.4631 1.61052H11.9999V1.07373H11.4631V1.61052ZM11.4631 9.17931L11.5699 9.70537L11.9994 9.61787V9.17931H11.4631ZM12.5367 9.17931H11.9994V9.61787L12.4294 9.70537L12.5367 9.17931ZM12.5367 1.61052V1.07373H11.9999V1.61052H12.5367ZM13.1272 1.61052L12.5925 1.66367C12.9576 5.34339 15.0918 8.50027 18.1301 10.276L18.4006 9.81219L18.6717 9.34894C15.9207 7.74124 13.9909 4.88389 13.6608 1.55738L13.1272 1.61052ZM18.4006 9.81273L17.8821 9.67423L14.9169 20.7966L15.4354 20.9351L15.9539 21.0736L18.9197 9.95068L18.4006 9.81273ZM15.4354 20.9351V20.3983H8.56444V21.4719H15.4354V20.9351ZM8.56444 20.9351L9.08298 20.7966L6.1172 9.67423L5.59866 9.81219L5.08011 9.95068L8.0459 21.0736L8.56444 20.9351ZM5.59866 9.81273L5.8692 10.276C8.90745 8.50027 11.0423 5.34339 11.4073 1.66367L10.8732 1.61052L10.3391 1.55738C10.009 4.88389 8.07918 7.74124 5.32758 9.34894L5.59866 9.81273ZM10.8727 1.61052V2.14732H11.4631V1.07373H10.8727V1.61052ZM11.4631 1.61052H10.9263V9.17931H11.9994L11.9999 1.61052H11.4631ZM11.4631 9.17931L11.3558 8.65325C10.6283 8.80175 9.97445 9.19704 9.50492 9.77221C9.03539 10.3474 8.77901 11.0671 8.77916 11.8096H9.85274C9.85262 11.3147 10.0235 10.8349 10.3364 10.4515C10.6493 10.068 11.0851 9.80447 11.5699 9.70537L11.4631 9.17931ZM9.31595 11.8096H8.77916C8.77916 12.6638 9.11849 13.483 9.7225 14.087C10.3265 14.691 11.1457 15.0304 11.9999 15.0304V13.9568C11.4305 13.9568 10.8843 13.7306 10.4816 13.3279C10.079 12.9252 9.85274 12.3791 9.85274 11.8096H9.31595ZM11.9999 14.4936V15.0304C12.8541 15.0304 13.6733 14.691 14.2773 14.087C14.8813 13.483 15.2207 12.6638 15.2207 11.8096H14.1471C14.1471 12.3791 13.9209 12.9252 13.5182 13.3279C13.1155 13.7306 12.5694 13.9568 11.9999 13.9568V14.4936ZM14.6839 11.8096H15.2207C15.2208 11.067 14.9643 10.3472 14.4947 9.77206C14.0251 9.19688 13.3711 8.80164 12.6435 8.65325L12.5367 9.17931L12.4299 9.70537C12.9148 9.80447 13.3505 10.068 13.6635 10.4515C13.9764 10.8349 14.1472 11.3147 14.1471 11.8096H14.6839ZM12.5367 9.17931H13.0735V1.61052H11.9999L11.9994 9.17931H12.5367ZM12.5367 1.61052V2.14732H13.1272V1.07373H12.5367V1.61052Z",fill:"white","fill-opacity":"0.5"})})]}),l.jsx("path",{d:"M12.0001 0.805176C12.0713 0.805176 12.1395 0.833453 12.1899 0.883787C12.2402 0.934121 12.2685 1.00239 12.2685 1.07357V10.7359C12.2685 10.807 12.2402 10.8753 12.1899 10.9256C12.1395 10.976 12.0713 11.0043 12.0001 11.0043C11.9289 11.0043 11.8606 10.976 11.8103 10.9256C11.76 10.8753 11.7317 10.807 11.7317 10.7359V1.07357C11.7317 1.00239 11.76 0.934121 11.8103 0.883787C11.8606 0.833453 11.9289 0.805176 12.0001 0.805176Z",fill:"black","fill-opacity":"0.15"}),l.jsxs("mask",{id:"mask3_1571_205",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"11",y:"0",width:"2",height:"12",children:[l.jsx("path",{d:"M11.1948 0.268555H12.8052V11.5412H11.1948V0.268555Z",fill:"white"}),l.jsx("path",{d:"M12.0001 0.805176C12.0713 0.805176 12.1395 0.833453 12.1899 0.883787C12.2402 0.934121 12.2685 1.00239 12.2685 1.07357V10.7359C12.2685 10.807 12.2402 10.8753 12.1899 10.9256C12.1395 10.976 12.0713 11.0043 12.0001 11.0043C11.9289 11.0043 11.8606 10.976 11.8103 10.9256C11.76 10.8753 11.7317 10.807 11.7317 10.7359V1.07357C11.7317 1.00239 11.76 0.934121 11.8103 0.883787C11.8606 0.833453 11.9289 0.805176 12.0001 0.805176Z",fill:"black"})]}),l.jsx("g",{mask:"url(#mask3_1571_205)",children:l.jsx("path",{d:"M12 0.805348V1.34214C11.9288 1.34214 11.8606 1.31386 11.8102 1.26353C11.7599 1.2132 11.7316 1.14493 11.7316 1.07374H12.8052C12.8052 0.860195 12.7204 0.655392 12.5694 0.504389C12.4184 0.353387 12.2136 0.268555 12 0.268555V0.805348ZM12.2684 1.07374H11.7316V10.736H12.8052V1.07374H12.2684ZM12.2684 10.736H11.7316C11.7316 10.6648 11.7599 10.5966 11.8102 10.5462C11.8606 10.4959 11.9288 10.4676 12 10.4676V11.5412C12.2136 11.5412 12.4184 11.4564 12.5694 11.3054C12.7204 11.1544 12.8052 10.9496 12.8052 10.736H12.2684ZM12 11.0044V10.4676C12.0712 10.4676 12.1395 10.4959 12.1898 10.5462C12.2401 10.5966 12.2684 10.6648 12.2684 10.736H11.1948C11.1948 10.9496 11.2797 11.1544 11.4307 11.3054C11.5817 11.4564 11.7865 11.5412 12 11.5412V11.0044ZM11.7316 10.736H12.2684V1.07374H11.1948V10.736H11.7316ZM11.7316 1.07374H12.2684C12.2684 1.14493 12.2401 1.2132 12.1898 1.26353C12.1395 1.31386 12.0712 1.34214 12 1.34214V0.268555C11.7865 0.268555 11.5817 0.353387 11.4307 0.504389C11.2797 0.655392 11.1948 0.860195 11.1948 1.07374H11.7316Z",fill:"white"})})]}),l.jsx("path",{d:"M5.55859 20.9348C5.55859 20.3653 5.78481 19.8192 6.18749 19.4165C6.59016 19.0138 7.1363 18.7876 7.70577 18.7876H16.2945C16.8639 18.7876 17.4101 19.0138 17.8127 19.4165C18.2154 19.8192 18.4416 20.3653 18.4416 20.9348V35.965H5.55859V20.9348Z",fill:"white"}),l.jsx("path",{d:"M16.2944 18.6538L16.4119 18.657C16.9958 18.6872 17.5459 18.9403 17.9485 19.3642C18.3512 19.7882 18.5757 20.3505 18.5758 20.9352V36.0996H5.42432V20.9352C5.42432 20.3301 5.66467 19.7498 6.09251 19.322C6.52036 18.8942 7.10063 18.6538 7.70569 18.6538H16.2944Z",stroke:"black","stroke-opacity":"0.15","stroke-width":"0.268397"}),l.jsx("mask",{id:"mask4_1571_205",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"5",y:"18",width:"14",height:"18",children:l.jsx("path",{d:"M5.55859 20.9353C5.55859 20.3658 5.78481 19.8197 6.18749 19.417C6.59016 19.0143 7.1363 18.7881 7.70577 18.7881H16.2945C16.8639 18.7881 17.4101 19.0143 17.8127 19.417C18.2154 19.8197 18.4416 20.3658 18.4416 20.9353V35.9655H5.55859V20.9353Z",fill:"white"})}),l.jsxs("g",{mask:"url(#mask4_1571_205)",children:[l.jsxs("g",{filter:"url(#filter1_dd_1571_205)",children:[l.jsx("path",{d:"M5.55859 20.9353C5.55859 20.3658 5.78481 19.8197 6.18749 19.417C6.59016 19.0143 7.1363 18.7881 7.70577 18.7881H16.2945C16.8639 18.7881 17.4101 19.0143 17.8127 19.417C18.2154 19.8197 18.4416 20.3658 18.4416 20.9353V35.9655H5.55859V20.9353Z",fill:"white"}),l.jsx("path",{d:"M16.2944 18.6543L16.4119 18.6575C16.9958 18.6876 17.5459 18.9408 17.9485 19.3647C18.3512 19.7887 18.5757 20.351 18.5758 20.9357V36.1001H5.42432V20.9357C5.42432 20.3306 5.66467 19.7503 6.09251 19.3225C6.52036 18.8947 7.10063 18.6543 7.70569 18.6543H16.2944Z",stroke:"black","stroke-opacity":"0.15","stroke-width":"0.268397"})]}),l.jsxs("g",{opacity:"0.75",filter:"url(#filter2_f_1571_205)",children:[l.jsx("path",{d:"M5.55859 20.9353C5.55859 20.3658 5.78481 19.8197 6.18749 19.417C6.59016 19.0143 7.1363 18.7881 7.70577 18.7881H16.2945C16.8639 18.7881 17.4101 19.0143 17.8127 19.417C18.2154 19.8197 18.4416 20.3658 18.4416 20.9353V35.9655H5.55859V20.9353Z",fill:"url(#paint2_linear_1571_205)"}),l.jsx("path",{d:"M7.70568 19.0566H16.2944C16.7927 19.0566 17.2705 19.2546 17.6229 19.6069C17.9752 19.9593 18.1732 20.4371 18.1732 20.9354V35.6972H5.8269V20.9354C5.82695 20.4539 6.01189 19.9908 6.34352 19.6417C6.67515 19.2925 7.12817 19.0841 7.60906 19.0593L7.70568 19.0566Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"0.536793"})]})]})]})}),l.jsxs("defs",{children:[l.jsxs("filter",{id:"filter0_f_1571_205",x:"4.52505",y:"0.536765",width:"14.9492",height:"21.4719",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.jsx("feGaussianBlur",{stdDeviation:"0.536793",result:"effect1_foregroundBlur_1571_205"})]}),l.jsxs("filter",{id:"filter1_dd_1571_205",x:"3.14287",y:"17.4464",width:"17.7143",height:"22.0087",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.jsx("feOffset",{dy:"0.536793"}),l.jsx("feGaussianBlur",{stdDeviation:"0.536793"}),l.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_1571_205"}),l.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.jsx("feOffset",{dy:"1.07359"}),l.jsx("feGaussianBlur",{stdDeviation:"1.07359"}),l.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),l.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),l.jsx("feBlend",{mode:"normal",in2:"effect1_dropShadow_1571_205",result:"effect2_dropShadow_1571_205"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect2_dropShadow_1571_205",result:"shape"})]}),l.jsxs("filter",{id:"filter2_f_1571_205",x:"4.48501",y:"17.7145",width:"15.0302",height:"19.3249",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.jsx("feGaussianBlur",{stdDeviation:"0.536793",result:"effect1_foregroundBlur_1571_205"})]}),l.jsxs("linearGradient",{id:"paint0_linear_1571_205",x1:"4.53739",y1:"10.1244",x2:"19.4624",y2:"10.1244",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{offset:"0.49","stop-color":"#999999","stop-opacity":"0"}),l.jsx("stop",{offset:"1","stop-color":"#999999"})]}),l.jsxs("linearGradient",{id:"paint1_linear_1571_205",x1:"10.134",y1:"1.36987",x2:"13.2506",y2:"18.9257",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{offset:"0.726","stop-color":"#999999","stop-opacity":"0"}),l.jsx("stop",{offset:"1","stop-color":"#999999"})]}),l.jsxs("linearGradient",{id:"paint2_linear_1571_205",x1:"5.55859",y1:"27.3768",x2:"18.4416",y2:"27.3768",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{"stop-color":"#AAAAAA","stop-opacity":"0.5"}),l.jsx("stop",{offset:"0.394","stop-color":"#AAAAAA","stop-opacity":"0"}),l.jsx("stop",{offset:"0.832","stop-color":"#999999"})]}),l.jsx("clipPath",{id:"clip0_1571_205",children:l.jsx("rect",{width:"24",height:"24",fill:"white"})}),l.jsx("clipPath",{id:"clip1_1571_205",children:l.jsx("rect",{width:"18.251",height:"36.502",fill:"white",transform:"translate(2.87451)"})})]})]})}function oY({className:e,color:t}){return l.jsxs("svg",{width:"24",height:"24",className:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsxs("g",{"clip-path":"url(#clip0_1538_150)",children:[l.jsx("path",{d:"M7.95337 5.71142C7.95337 5.36004 8.16295 5.04253 8.48605 4.9044L13.7522 2.65314C14.3313 2.40559 14.9748 2.83041 14.9748 3.46017L14.9748 10.9073L7.95337 10.9073L7.95337 5.71142Z",fill:t||"#FFEE00"}),l.jsx("path",{d:"M7.95337 5.71142C7.95337 5.36004 8.16295 5.04253 8.48605 4.9044L13.7522 2.65314C14.3313 2.40559 14.9748 2.83041 14.9748 3.46017L14.9748 10.9073L7.95337 10.9073L7.95337 5.71142Z",fill:"url(#paint0_linear_1538_150)"}),l.jsx("path",{d:"M14.0947 2.62097C14.4884 2.45264 14.9256 2.74131 14.9259 3.16947L14.9259 10.9171L8.00098 10.9171L8.00098 5.61955L8.00798 5.53139C8.03836 5.32877 8.17118 5.15321 8.36338 5.07104L14.0947 2.62097Z",stroke:"black","stroke-opacity":"0.3","stroke-width":"0.1"}),l.jsx("path",{d:"M8.21993 10.3188C7.31667 10.3188 6.58444 11.0468 6.58444 11.9446C6.58444 17.2642 4.51919 21.2529 0.638381 24.8865C0.238494 25.2609 0.000244048 25.7803 0.000244045 26.3283L0.000244012 31.8114C0.000244008 32.6027 0.641734 33.2442 1.43307 33.2444L21.4927 33.2444C22.2841 33.2444 22.9255 32.6029 22.9255 31.8115L22.9255 26.3283C22.9255 25.7805 22.6873 25.2611 22.2874 24.8867C18.4065 21.253 16.3414 17.2643 16.3414 11.9447C16.3414 11.0469 15.6091 10.3189 14.7059 10.3189L8.21993 10.3188Z",fill:"url(#paint1_linear_1538_150)","fill-opacity":"0.6"}),l.jsx("path",{d:"M8.24279 10.6406C7.34604 10.6406 6.61908 11.3633 6.61908 12.2547C6.61908 17.536 4.56869 21.496 0.715818 25.1035C0.31881 25.4752 0.0822753 25.9908 0.0822753 26.5348L0.0822753 31.9784C0.0822753 32.7641 0.719147 33.4009 1.50478 33.4011L21.42 33.4011C22.2057 33.4011 22.8425 32.7642 22.8425 31.9786L22.8425 26.5348C22.8425 25.991 22.606 25.4753 22.2089 25.1036C18.3561 21.4961 16.3058 17.5361 16.3058 12.2548C16.3058 11.3634 15.5788 10.6407 14.682 10.6407L8.24279 10.6406Z",fill:"white"}),l.jsx("path",{d:"M8.22911 10.9165L14.716 10.9165C15.4232 10.9167 15.9935 11.4863 15.9935 12.1842C15.9935 17.6193 18.1121 21.6982 22.0522 25.3875C22.3839 25.698 22.5768 26.1242 22.5769 26.567L22.5769 32.0507C22.5769 32.6442 22.0958 33.1253 21.5023 33.1253L1.44278 33.1253L1.33224 33.1197C0.790689 33.0643 0.368164 32.6068 0.368164 32.0507L0.368164 26.567C0.368322 26.1795 0.516175 25.8049 0.775344 25.5093L0.892879 25.3875C4.83304 21.6982 6.95297 17.6193 6.95299 12.1842C6.95299 11.5297 7.45337 10.9885 8.09898 10.9235L8.22911 10.9165Z",stroke:"black","stroke-opacity":"0.3","stroke-width":"0.5"}),l.jsx("g",{opacity:"0.1",filter:"url(#filter0_f_1538_150)",children:l.jsx("path",{d:"M15.2885 12.2295L11.9453 12.2295L11.9453 31.8116L21.4975 31.8116L21.4975 26.0801C18.6319 23.2145 15.2885 20.8266 15.2885 12.2295Z",fill:"black"})})]}),l.jsxs("defs",{children:[l.jsxs("filter",{id:"filter0_f_1538_150",x:"9.94529",y:"10.2295",width:"13.5523",height:"23.5821",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[l.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),l.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.jsx("feGaussianBlur",{stdDeviation:"1.00001",result:"effect1_foregroundBlur_1538_150"})]}),l.jsxs("linearGradient",{id:"paint0_linear_1538_150",x1:"11.4641",y1:"3.00812",x2:"11.4641",y2:"8.71307",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{"stop-color":"white","stop-opacity":"0.8"}),l.jsx("stop",{offset:"1","stop-color":"white","stop-opacity":"0"})]}),l.jsxs("linearGradient",{id:"paint1_linear_1538_150",x1:"0.000244031",y1:"28.7867",x2:"22.9255",y2:"28.7867",gradientUnits:"userSpaceOnUse",children:[l.jsx("stop",{"stop-opacity":"0.1"}),l.jsx("stop",{offset:"0.4","stop-opacity":"0"}),l.jsx("stop",{offset:"1","stop-opacity":"0.15"})]}),l.jsx("clipPath",{id:"clip0_1538_150",children:l.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})}const iY=({interactionMode:e,drawingTool:t,isPresentationMode:n,messages:r,setInteractionMode:o,setDrawingTool:s,drawDefaults:c,invertPaletteInDarkMode:d,strokeColors:h,onDrawDefaultStrokeColorChange:p,onDrawDefaultStrokeWidthChange:m,onSelectImageFiles:v})=>{const[y,b]=g.useState(!1),D=g.useRef(null),S=W=>{n&&W!=="pan"||o(W)},L=W=>{n||s(W)},M=()=>t==="marker"?"marker":t==="quill"?"quill":"draw",[w,E]=g.useState(t==="marker"?c.markerStroke:t==="quill"?c.quillStroke:c.drawStroke),O=t==="marker"?p5:ti,B=t==="marker"?Gw:F0,T=W=>d?sc(W):W,P=t==="marker"?c.markerStroke:t==="quill"?c.quillStroke:c.drawStroke;g.useEffect(()=>{E(P)},[P]);const _=W=>{const z=W.hexa||W.hex;if(z){E(z);const q=M();p(q,z)}},Z=(W,z)=>{const q=W[z]??W[0];return q?l.jsx("svg",{width:q.width,height:q.height,viewBox:q.viewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:q.path,stroke:q.strokeWidth?"currentColor":void 0,strokeWidth:q.strokeWidth,strokeLinecap:q.strokeWidth?"round":void 0,fill:q.fill})}):null},K=["draw","marker","quill"];return l.jsxs("div",{className:"tool-bar",children:[l.jsx("input",{ref:D,type:"file",accept:"image/*",multiple:!0,hidden:!0,onChange:W=>{const z=Array.from(W.target.files??[]).filter(q=>q.type.startsWith("image/"));z.length>0&&v(z),W.currentTarget.value=""}}),K.includes(t)?l.jsxs("div",{className:"top-toolbar",children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`drawtool-elem tool-item${t==="draw"?" active":""}`,onClick:()=>{S("select"),L("draw"),b(!1)},children:l.jsx(rY,{color:T(c.drawStroke),className:"drawtool-icon"})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.pen})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`drawtool-elem tool-item${t==="quill"?" active":""}`,onClick:()=>{S("select"),L("quill"),b(!1)},children:l.jsx(aY,{color:T(c.quillStroke),className:"drawtool-icon "})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.quill})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`drawtool-elem tool-item${t==="marker"?" active":""}`,onClick:()=>{S("select"),L("marker"),b(!1)},children:l.jsx(oY,{color:T(c.markerStroke),className:"drawtool-icon"})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.marker})})]}),l.jsx("div",{className:"tool-separator"}),l.jsx(Ba,{colors:h,currentColor:P,uniColor:T,renderItem:({color:W,swatch:z})=>l.jsx("div",{className:"drawo-colorselect-item",onClick:()=>{if(W==="multi"){b(q=>!q);return}b(!1),_({hex:W})},children:z},W)}),l.jsxs(Yt,{open:y,children:[l.jsx(Gt,{asChild:!0,children:l.jsx("span",{style:{opacity:0},children:"."})}),l.jsx(Kt,{className:"drawo-content-color inferior",side:"bottom",style:{background:"transparent",padding:0},onPointerDown:W=>W.stopPropagation(),children:l.jsx(ts,{color:w,onChange:_})})]}),l.jsx("div",{className:"tool-separator"}),l.jsxs(Yn,{value:String(t==="marker"?c.markerStrokeWidth:t==="quill"?c.quillStrokeWidth:c.drawStrokeWidth),onValueChange:W=>{const z=M();m(z,Number(W))},children:[l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx(Gn,{noArrow:!0,className:"draw-stroke-trigger",style:{gap:"0px",width:"fit-content"},children:l.jsx("span",{className:"draw-stroke-option-line-wrap",children:(()=>{const W=t==="marker"?c.markerStrokeWidth:t==="quill"?c.quillStrokeWidth:c.drawStrokeWidth,z=Math.max(0,O.findIndex(q=>q===W));return Z(B,z)})()})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.selectionBar?.strokeWidth||"Stroke Width"})})]}),l.jsx(Kn,{position:"popper",children:O.map((W,z)=>l.jsx(t1,{check:!1,value:String(W),className:"draw-stroke-select-item",children:l.jsx("span",{className:"draw-stroke-option-line-wrap",children:Z(B,z)})},W))})]})]}):l.jsx(l.Fragment,{}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`tool-item${e==="select"&&!t?" active":""}`,onClick:()=>{S("select"),L(null)},children:l.jsx(aS,{style:{transform:"translateY(-2px) translateX(-3px) rotate(-46deg)"},strokeWidth:.1})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.selection})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`tool-item${e==="pan"?" active":""}`,onClick:()=>{S("pan"),L(null)},children:l.jsx(ZP,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.pan})})]}),l.jsx("div",{className:"tool-separator"}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`tool-item${t==="text"?" active":""}`,onClick:()=>{S("select"),L("text")},children:l.jsx(iS,{strokeWidth:.1})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.text})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`tool-item${t==="rectangle"?" active":""}`,onClick:()=>{S("select"),L("rectangle")},children:l.jsx(WP,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.rectangle})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`tool-item${t==="circle"?" active":""}`,onClick:()=>{S("select"),L("circle")},children:l.jsx(BF,{strokeWidth:1.5})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.ellipse})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`tool-item${t==="line"?" active":""}`,onClick:()=>{S("select"),L("line")},children:l.jsx(UP,{style:{scale:"1.2"}})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.line})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`tool-item${K.includes(t)?" active":""}`,onClick:()=>{S("select"),L("draw")},children:l.jsx(oS,{strokeWidth:1.5})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.draw})})]}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:"tool-item",onClick:()=>{S("select"),L(null),D.current?.click()},children:l.jsx($P,{})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.image})})]}),l.jsx("div",{className:"tool-separator"}),l.jsxs(Yt,{children:[l.jsx(Gt,{asChild:!0,children:l.jsx("button",{type:"button",className:`tool-item${t==="laser"?" active":""}`,onClick:()=>{S("select"),L("laser")},children:l.jsx(VP,{strokeWidth:1.5})})}),l.jsx(Kt,{children:l.jsx("p",{children:r.toolNames.laser})})]})]})};function bc(){const e=is(),{scene:t,resolvedTheme:n,isDarkMode:r,isPresentationMode:o,interactionMode:s,drawingTool:c,messages:d,setInteractionMode:h,setDrawingTool:p,handlers:m}=e;return l.jsx(iY,{interactionMode:s,drawingTool:c,isPresentationMode:o,messages:d,setInteractionMode:h,setDrawingTool:p,drawDefaults:t.settings.drawDefaults,invertPaletteInDarkMode:r&&t.settings.colorScheme==="drawo",strokeColors:n.preset.strokeColors,onDrawDefaultStrokeColorChange:m.handleDrawDefaultStrokeColorChange,onDrawDefaultStrokeWidthChange:m.handleDrawDefaultStrokeWidthChange,onSelectImageFiles:v=>m.handleInsertImageFiles?.(v)})}function sY({canUndo:e,canRedo:t,onUndo:n,onRedo:r}){return l.jsxs("div",{className:"undo-bar bottompanel-bar",children:[l.jsx("button",{type:"button",onClick:n,disabled:!e,"aria-label":"Undo",children:l.jsx(zF,{})}),l.jsx("button",{type:"button",onClick:r,disabled:!t,"aria-label":"Redo",children:l.jsx(HF,{})})]})}function Sc(){const e=is(),{canUndo:t,canRedo:n,undo:r,redo:o}=e;return l.jsx("div",{className:"drawo-bottomleft-bar",children:l.jsx(sY,{canUndo:t,canRedo:n,onUndo:r,onRedo:o})})}function lY({zoomPercent:e,canZoomOut:t,canZoomIn:n,onZoomOut:r,onZoomIn:o,onZoomReset:s}){const c=Math.max(0,Math.min(200,e));return l.jsxs("div",{className:"zoom-bar bottompanel-bar",children:[l.jsx("button",{type:"button",onClick:r,disabled:!t,"aria-label":"Zoom out",children:l.jsx(Ub,{strokeWidth:1})}),l.jsx("div",{className:"bottompanel-separator"}),l.jsx("button",{type:"button",onClick:s,"aria-label":"Reset zoom",children:l.jsxs("span",{children:[c,"%"]})}),l.jsx("div",{className:"bottompanel-separator"}),l.jsx("button",{type:"button",onClick:o,disabled:!n,"aria-label":"Zoom in",children:l.jsx(qb,{strokeWidth:1})})]})}function Dc(){const e=is(),{scene:t,handlers:n}=e;return l.jsx("div",{className:"drawo-bottomright-bar",children:l.jsx(lY,{zoomPercent:Math.round(t.camera.zoom*100),canZoomOut:t.camera.zoom>Yc,canZoomIn:t.camera.zoom<Gc,onZoomOut:n.handleZoomOut,onZoomIn:n.handleZoomIn,onZoomReset:n.handleZoomReset})})}function k6({children:e,config:t}){const n=is(),{scene:r,messages:o,handlers:s}=n;if(r.elements.length>0||!(t?.enabled??!0))return null;const d=t?.render;return d?l.jsx("div",{style:t?.style,className:t?.className,children:d({messages:o,onInsertImage:()=>{const h=document.createElement("input");h.type="file",h.accept="image/*",h.multiple=!0,h.onchange=p=>{const m=Array.from(p.target.files??[]);m.length>0&&s.handleInsertImageFiles?.(m)},h.click()}})}):l.jsx("div",{style:{...t?.style,position:"absolute",left:"50%",top:"50%",display:"flex",justifyContent:"center",alignItems:"center",opacity:.5,flexDirection:"column",transform:"translate(-50%, -50%)",pointerEvents:"none",userSelect:"none"},className:t?.className,children:e??l.jsx(iD,{})})}function uY({children:e,className:t,style:n}){const r=is(),{openTopbarPanel:o}=r,s=o==="sidebar",c={},d=[];for(const v of g.Children.toArray(e)){if(g.isValidElement(v)){if(v.type===m5){c.topBar??=v;continue}if(v.type===wc){c.canvas??=v;continue}if(v.type===bc){c.toolBar??=v;continue}if(v.type===Sc){c.undoBar??=v;continue}if(v.type===Dc){c.zoomBar??=v;continue}if(v.type===k6){c.emptyState??=v;continue}}d.push(v)}const h=c.emptyState!==void 0,p=c.canvas??l.jsx(wc,{showDefaultEmptyState:!h}),m=g.isValidElement(p)?g.cloneElement(p,{showDefaultEmptyState:!h}):p;return l.jsx("div",{className:`app-root ${t??""}`,style:n,children:l.jsx(hB,{children:l.jsx("div",{className:`app-shell ${s?"app-shell--sidebar-open":""}`,children:l.jsxs("div",{className:"app-workspace",children:[c.topBar??l.jsx(m5,{}),m,c.toolBar??l.jsx(bc,{}),c.undoBar??l.jsx(Sc,{}),h?c.emptyState:null,c.zoomBar??l.jsx(Dc,{}),d]})})})})}function cY(e){const{children:t,className:n,style:r,...o}=e;return l.jsx(bF,{...o,children:l.jsx(uY,{className:n,style:r,children:t})})}const fY=Object.assign(cY,{TopBar:m5,Canvas:wc,ToolBar:bc,UndoBar:Sc,ZoomBar:Dc,EmptyState:k6});qL.createRoot(document.getElementById("root")).render(l.jsx(g.StrictMode,{children:l.jsxs(fY,{children:[l.jsx(m5,{left:l.jsx("h1",{children:"My App"}),right:l.jsx("span",{children:"Custom"})}),l.jsx(wc,{}),l.jsx(bc,{}),l.jsx(Sc,{}),l.jsx(k6,{children:l.jsx("p",{children:"hola"})}),l.jsx(Dc,{})]})}));export{sT as _,e0 as c,L5 as g};