@agent-dock/cli 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-dock/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +1 @@
1
- import{j as pn}from"./index-RVKphYoh.js";import{r as n}from"./syntax-highlighter-DOKegME5.js";import{r as gn}from"./main-BHjClXhJ.js";const Ot="carousel",Nt="controller",vn="navigation",En="no-scroll",Be="portal",xn="root",Rt="toolbar",mt="zoom",Ze="loading",We="error",$e="complete",bn="placeholder",wn=e=>`active-slide-${e}`,Cn="fullsize",Ke="flex_center",_n="no_scroll",Tt="no_scroll_padding",je="slide",kt="slide_wrapper",Pn="slide_wrapper_interactive",ue="prev",de="next",pt="swipe",ge="close",Dt="onPointerDown",At="onPointerMove",Zt="onPointerUp",Wt="onPointerLeave",$t="onPointerCancel",Ge="onKeyDown",Mn="onKeyUp",qe="onWheel",Sn="Escape",yn="ArrowLeft",Ln="ArrowRight",In="button",Xe="icon",Ft="contain",gt="cover",Vt="Unknown action type",Ut="yarl__";function oe(...e){return e.filter(Boolean).join(" ")}function T(e){return`${Ut}${e}`}function K(e){return`--${Ut}${e}`}function we(e,t){return`${e}${t?`_${t}`:""}`}function Qe(e){return t=>we(e,t)}function ve(e,t){var r;return(r=e==null?void 0:e[t])!==null&&r!==void 0?r:t}function On(e,t,r){return ve(e,"{index} of {total}").replace(/\{index}/g,`${ot(r,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Je(...e){return()=>{e.forEach(t=>{t()})}}function ie(e,t,r){return()=>{const o=n.useContext(r);if(!o)throw new Error(`${e} must be used within a ${t}.Provider`);return o}}function et(){return typeof window<"u"}function tt(e,t=0){const r=10**t;return Math.round((e+Number.EPSILON)*r)/r}function fe(e){return e.type===void 0||e.type==="image"}function nt(e,t){return e.imageFit===gt||e.imageFit!==Ft&&t===gt}function ye(e){return typeof e=="string"?Number.parseInt(e,10):e}function Me(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=ye(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function Nn(e,t){const r=Me(t),o=r.percent!==void 0?e.width/100*r.percent:r.pixel;return{width:Math.max(e.width-2*o,0),height:Math.max(e.height-2*o,0)}}function Rn(){return(et()?window==null?void 0:window.devicePixelRatio:void 0)||1}function ot(e,t){return t>0?(e%t+t)%t:0}function Xt(e){return e.length>0}function Yt(e,t){return e[ot(t,e.length)]}function Ye(e,t){return Xt(e)?Yt(e,t):void 0}function Tn(e){return fe(e)?e.src:void 0}function kn(e,t,r){if(!r)return e;const{buttons:o,...i}=e,c=o.findIndex(l=>l===t),s=n.isValidElement(r)?n.cloneElement(r,{key:t},null):r;if(c>=0){const l=[...o];return l.splice(c,1,s),{buttons:l,...i}}return{buttons:[s,...o],...i}}function Dn(e,t,r=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),r))}const An=Number(n.version.split(".")[0])>=19;function Zn(e){return{inert:An?e:e?"":void 0}}function Wn(e){e.scrollTop}const ze={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[ge]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:Ft,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,closeOnEscape:!0,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function se(e,t){return{name:e,component:t}}function Y(e,t){return{module:e,children:t}}function zt(e,t,r){return e.module.name===t?r(e):e.children?[Y(e.module,e.children.flatMap(o=>{var i;return(i=zt(o,t,r))!==null&&i!==void 0?i:[]}))]:[e]}function pe(e,t,r){return e.flatMap(o=>{var i;return(i=zt(o,t,r))!==null&&i!==void 0?i:[]})}function $n(e,t=[],r=[]){let o=e;const i=h=>{const m=[...o];for(;m.length>0;){const f=m.pop();if((f==null?void 0:f.module.name)===h)return!0;f!=null&&f.children&&m.push(...f.children)}return!1},c=(h,m)=>{if(h===""){o=[Y(m,o)];return}o=pe(o,h,f=>[Y(m,[f])])},s=(h,m)=>{o=pe(o,h,f=>[Y(f.module,[Y(m,f.children)])])},l=(h,m,f)=>{o=pe(o,h,b=>{var _;return[Y(b.module,[...f?[Y(m)]:[],...(_=b.children)!==null&&_!==void 0?_:[],...f?[]:[Y(m)]])]})},a=(h,m,f)=>{o=pe(o,h,b=>[...f?[Y(m)]:[],b,...f?[]:[Y(m)]])},d=h=>{s(Nt,h)},p=(h,m)=>{o=pe(o,h,f=>[Y(m,f.children)])},u=h=>{o=pe(o,h,m=>m.children)},g=h=>{r.push(h)};return t.forEach(h=>{h({contains:i,addParent:c,append:s,addChild:l,addSibling:a,addModule:d,replace:p,remove:u,augment:g})}),{config:o,augmentation:h=>r.reduce((m,f)=>f(m),h)}}const Ht=n.createContext(null),Bt=ie("useA11yContext","A11yContext",Ht);function Fn({children:e}){const[t,r]=n.useState(!1),[o,i]=n.useState(!1),c=n.useMemo(()=>({focusWithin:t,trackFocusWithin:(l,a)=>{const d=p=>u=>{var g;u.currentTarget.contains(u.relatedTarget)||r(p),(g=p?l:a)===null||g===void 0||g(u)};return{onFocus:d(!0),onBlur:d(!1)}},autoPlaying:o,setAutoPlaying:i}),[t,o]);return n.createElement(Ht.Provider,{value:c},e)}const Kt=n.createContext(null),Le=ie("useDocument","DocumentContext",Kt);function Vn({nodeRef:e,children:t}){const r=n.useMemo(()=>{const o=c=>{var s;return((s=c||e.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:o,getOwnerWindow:c=>{var s;return((s=o(c))===null||s===void 0?void 0:s.defaultView)||window}}},[e]);return n.createElement(Kt.Provider,{value:r},t)}const jt=n.createContext(null),Ie=ie("useEvents","EventsContext",jt);function Un({children:e}){const[t]=n.useState({});n.useEffect(()=>()=>{Object.keys(t).forEach(o=>delete t[o])},[t]);const r=n.useMemo(()=>{const o=(s,l)=>{var a;(a=t[s])===null||a===void 0||a.splice(0,t[s].length,...t[s].filter(d=>d!==l))};return{publish:(...[s,l])=>{var a;(a=t[s])===null||a===void 0||a.forEach(d=>d(l))},subscribe:(s,l)=>(t[s]||(t[s]=[]),t[s].push(l),()=>o(s,l)),unsubscribe:o}},[t]);return n.createElement(jt.Provider,{value:r},e)}const Gt=n.createContext(null),G=ie("useLightboxProps","LightboxPropsContext",Gt);function Xn({children:e,...t}){return n.createElement(Gt.Provider,{value:t},e)}const qt=n.createContext(null),le=ie("useLightboxState","LightboxStateContext",qt),Qt=n.createContext(null),Yn=ie("useLightboxDispatch","LightboxDispatchContext",Qt);function zn(e,t){switch(t.type){case"swipe":{const{slides:r}=e,o=(t==null?void 0:t.increment)||0,i=e.globalIndex+o,c=ot(i,r.length),s=Ye(r,c),l=o||t.duration!==void 0?{increment:o,duration:t.duration,easing:t.easing}:void 0;return{slides:r,currentIndex:c,globalIndex:i,currentSlide:s,animation:l}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:Ye(t.slides,t.index)}:e;default:throw new Error(Vt)}}function Hn({slides:e,index:t,children:r}){const[o,i]=n.useReducer(zn,{slides:e,currentIndex:t,globalIndex:t,currentSlide:Ye(e,t)}),[c,s]=n.useState(e),[l,a]=n.useState(t);(e!==c||t!==l)&&(s(e),a(t),i({type:"update",slides:e,index:t}));const d=n.useMemo(()=>({...o,state:o,dispatch:i}),[o,i]);return n.createElement(Qt.Provider,{value:i},n.createElement(qt.Provider,{value:d},r))}const Jt=n.createContext(null),Bn=ie("useRTLContext","RTLContext",Jt);function Kn({isRTL:e,children:t}){const r=n.useMemo(()=>({isRTL:e}),[e]);return n.createElement(Jt.Provider,{value:r},t)}const en=n.createContext(null),Oe=ie("useTimeouts","TimeoutsContext",en);function jn({children:e}){const[t]=n.useState([]);n.useEffect(()=>()=>{t.forEach(o=>window.clearTimeout(o)),t.splice(0,t.length)},[t]);const r=n.useMemo(()=>{const o=s=>{t.splice(0,t.length,...t.filter(l=>l!==s))};return{setTimeout:(s,l)=>{const a=window.setTimeout(()=>{o(a),s()},l);return t.push(a),a},clearTimeout:s=>{s!==void 0&&(o(s),window.clearTimeout(s))}}},[t]);return n.createElement(en.Provider,{value:r},e)}const rt=n.forwardRef(function({label:t,className:r,icon:o,renderIcon:i,onClick:c,style:s,...l},a){const{styles:d,labels:p}=G(),u=ve(p,t);return n.createElement("button",{ref:a,type:"button",title:u,"aria-label":u,className:oe(T(In),r),onClick:c,style:{...s,...d.button},...l},i?i():n.createElement(o,{className:T(Xe),style:d.icon}))});function Gn(e,t){const r=o=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...o},t);return r.displayName=e,r}function he(e,t){return Gn(e,n.createElement("g",{fill:"currentColor"},n.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const qn=he("Close",n.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Qn=he("Previous",n.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Jn=he("Next",n.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),eo=he("Loading",n.createElement(n.Fragment,null,Array.from({length:8}).map((e,t,r)=>n.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/r.length*(t+1),transform:`rotate(${360/r.length*t}, 12, 12)`})))),to=he("Error",n.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),re=et()?n.useLayoutEffect:n.useEffect;function it(){const[e,t]=n.useState(!1);return n.useEffect(()=>{var r,o;const i=(r=window.matchMedia)===null||r===void 0?void 0:r.call(window,"(prefers-reduced-motion: reduce)");t(i==null?void 0:i.matches);const c=s=>t(s.matches);return(o=i==null?void 0:i.addEventListener)===null||o===void 0||o.call(i,"change",c),()=>{var s;return(s=i==null?void 0:i.removeEventListener)===null||s===void 0?void 0:s.call(i,"change",c)}},[]),e}function no(e){let t=0,r=0,o=0;const c=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(c){const s=c[1].split(",").map(ye);s.length===6?(t=s[4],r=s[5]):s.length===16&&(t=s[12],r=s[13],o=s[14])}return{x:t,y:r,z:o}}function vt(e,t){const r=n.useRef(void 0),o=n.useRef(void 0),i=it();return re(()=>{var c,s,l;if(e.current&&r.current!==void 0&&!i){const{keyframes:a,duration:d,easing:p,onfinish:u}=t(r.current,e.current.getBoundingClientRect(),no(e.current))||{};if(a&&d){(c=o.current)===null||c===void 0||c.cancel(),o.current=void 0;try{o.current=(l=(s=e.current).animate)===null||l===void 0?void 0:l.call(s,a,{duration:d,easing:p})}catch(g){console.error(g)}o.current&&(o.current.onfinish=()=>{o.current=void 0,u==null||u()})}}r.current=void 0}),{prepareAnimation:c=>{r.current=c},isAnimationPlaying:()=>{var c;return((c=o.current)===null||c===void 0?void 0:c.playState)==="running"}}}function tn(){const e=n.useRef(null),t=n.useRef(void 0),[r,o]=n.useState();return{setContainerRef:n.useCallback(c=>{e.current=c,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(c){const l=window.getComputedStyle(c),a=d=>parseFloat(d)||0;o({width:Math.round(c.clientWidth-a(l.paddingLeft)-a(l.paddingRight)),height:Math.round(c.clientHeight-a(l.paddingTop)-a(l.paddingBottom))})}else o(void 0)};s(),c&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(c))},[]),containerRef:e,containerRect:r}}function Pe(){const e=n.useRef(void 0),{setTimeout:t,clearTimeout:r}=Oe();return n.useCallback((o,i)=>{r(e.current),e.current=t(o,i>0?i:0)},[t,r])}function D(e){const t=n.useRef(e);return re(()=>{t.current=e}),n.useCallback((...r)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...r)},[])}function Et(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function He(e,t){return n.useMemo(()=>e==null&&t==null?null:r=>{Et(e,r),Et(t,r)},[e,t])}function oo(e,t=!1){const r=n.useRef(!1);re(()=>{t&&r.current&&(r.current=!1,e())},[t,e]);const o=n.useCallback(()=>{r.current=!0},[]),i=n.useCallback(()=>{r.current=!1},[]);return{onFocus:o,onBlur:i}}function ct(){return Bn().isRTL}function ro(){const[e]=n.useState({}),t=n.useCallback((i,c)=>{var s;(s=e[i])===null||s===void 0||s.forEach(l=>{c.isPropagationStopped()||l(c)})},[e]),r=n.useMemo(()=>({onPointerDown:i=>t(Dt,i),onPointerMove:i=>t(At,i),onPointerUp:i=>t(Zt,i),onPointerLeave:i=>t(Wt,i),onPointerCancel:i=>t($t,i),onKeyDown:i=>t(Ge,i),onKeyUp:i=>t(Mn,i),onWheel:i=>t(qe,i)}),[t]),o=n.useCallback((i,c)=>(e[i]||(e[i]=[]),e[i].unshift(c),()=>{const s=e[i];s&&s.splice(0,s.length,...s.filter(l=>l!==c))}),[e]);return{registerSensors:r,subscribeSensors:o}}function xt(e,t){const r=n.useRef(0),o=Pe(),i=D((...c)=>{r.current=Date.now(),e(...c)});return n.useCallback((...c)=>{o(()=>{i(...c)},t-(Date.now()-r.current))},[t,i,o])}const Fe=Qe("slide"),Ve=Qe("slide_image");function Se({slide:e,offset:t,render:r,rect:o,imageFit:i,imageProps:c,onClick:s,onLoad:l,onError:a,style:d}){var p,u,g,h,m,f,b,_;const[P,I]=n.useState(Ze),{publish:L}=Ie(),{setTimeout:M}=Oe(),k=n.useRef(null);n.useEffect(()=>{t===0&&L(wn(P))},[t,P,L]);const E=D(S=>{("decode"in S?S.decode():Promise.resolve()).catch(()=>{}).then(()=>{S.parentNode&&(I($e),M(()=>{l==null||l(S)},0))})}),N=n.useCallback(S=>{k.current=S,S!=null&&S.complete&&E(S)},[E]),w=n.useCallback(S=>{E(S.currentTarget)},[E]),A=D(()=>{I(We),a==null||a()}),W=nt(e,i),X=(S,z)=>Number.isFinite(S)?S:z,C=X(Math.max(...((u=(p=e.srcSet)===null||p===void 0?void 0:p.map(S=>S.width))!==null&&u!==void 0?u:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((g=k.current)===null||g===void 0?void 0:g.naturalWidth)||0),O=X(Math.max(...((m=(h=e.srcSet)===null||h===void 0?void 0:h.map(S=>S.height))!==null&&m!==void 0?m:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((f=k.current)===null||f===void 0?void 0:f.naturalHeight)||0),y=C&&O?{maxWidth:`min(${C}px, 100%)`,maxHeight:`min(${O}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},F=(b=e.srcSet)===null||b===void 0?void 0:b.slice().sort((S,z)=>S.width-z.width).map(S=>`${S.src} ${S.width}w`).join(", "),$=()=>o&&!W&&e.width&&e.height?o.height/e.height*e.width:Number.MAX_VALUE,x=F&&o&&et()?`${Math.round(Math.min($(),o.width))}px`:void 0,{style:R,className:U,...V}=(typeof c=="function"?c(e):c)||{};return n.createElement(n.Fragment,null,n.createElement("img",{ref:N,onLoad:w,onError:A,onClick:s,draggable:!1,className:oe(T(Ve()),W&&T(Ve("cover")),P!==$e&&T(Ve("loading")),U),style:{...y,...d,...R},...V,alt:(_=e.alt)!==null&&_!==void 0?_:"",sizes:x,srcSet:F,src:e.src}),P!==$e&&n.createElement("div",{className:T(Fe(bn))},P===Ze&&(r!=null&&r.iconLoading?r.iconLoading():n.createElement(eo,{className:oe(T(Xe),T(Fe(Ze)))})),P===We&&(r!=null&&r.iconError?r.iconError():n.createElement(to,{className:oe(T(Xe),T(Fe(We)))}))))}const io=n.forwardRef(function({className:t,children:r,onFocus:o,onBlur:i,...c},s){const l=n.useRef(null),[a,d]=n.useState(!1),{trackFocusWithin:p}=Bt(),u=D(()=>{if(l.current){const g=window.getComputedStyle(l.current).direction==="rtl";g!==a&&d(g)}});return n.useEffect(u),n.createElement(Vn,{nodeRef:l},n.createElement(Kn,{isRTL:a},n.createElement("div",{ref:He(s,l),className:oe(T("root"),t),...p(o,i),...c},r)))});var H;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(H||(H={}));function nn(e,t,r,o,i){n.useEffect(()=>i?()=>{}:Je(e(Dt,t),e(At,r),e(Zt,o),e(Wt,o),e($t,o)),[e,t,r,o,i])}var Q;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(Q||(Q={}));const Ue=30;function co({disableSwipeNavigation:e,closeOnBackdropClick:t},r,o,i,c,s,l,a,d,p,u,g,h,m,f,b){const _=n.useRef(0),P=n.useRef([]),I=n.useRef(void 0),L=n.useRef(0),M=n.useRef(Q.NONE),k=n.useCallback(C=>{I.current===C.pointerId&&(I.current=void 0,M.current=Q.NONE);const O=P.current;O.splice(0,O.length,...O.filter(y=>y.pointerId!==C.pointerId))},[]),E=n.useCallback(C=>{k(C),C.persist(),P.current.push(C)},[k]),N=n.useCallback(C=>P.current.find(({pointerId:O})=>C.pointerId===O),[]),w=D(C=>{E(C)}),A=(C,O)=>u&&C>O||p&&C<-O,W=D(C=>{const O=N(C);if(O)if(I.current===C.pointerId){const y=Date.now()-L.current,F=_.current;M.current===Q.SWIPE?Math.abs(F)>.3*i||Math.abs(F)>5&&y<c?a(F,y):d(F):M.current===Q.PULL&&(A(F,2*Ue)?m(F,y):f(F)),_.current=0,M.current=Q.NONE}else{const{target:y}=C;t&&y instanceof HTMLElement&&y===O.target&&(y.classList.contains(T(je))||y.classList.contains(T(kt)))&&b()}k(C)}),X=D(C=>{const O=N(C);if(O){const y=I.current===C.pointerId;if(C.buttons===0){y&&_.current!==0?W(C):k(O);return}const F=C.clientX-O.clientX,$=C.clientY-O.clientY;if(I.current===void 0){const x=R=>{E(C),I.current=C.pointerId,L.current=Date.now(),M.current=R};Math.abs(F)>Math.abs($)&&Math.abs(F)>Ue&&o(F)?e||(x(Q.SWIPE),s()):Math.abs($)>Math.abs(F)&&A($,Ue)&&(x(Q.PULL),g())}else y&&(M.current===Q.SWIPE?(_.current=F,l(F)):M.current===Q.PULL&&(_.current=$,h($)))}});nn(r,w,X,W)}function so({preventDefaultWheelX:e,preventDefaultWheelY:t}){const r=n.useRef(null),o=D(i=>{const c=Math.abs(i.deltaX)>Math.abs(i.deltaY);(c&&e||!c&&t||i.ctrlKey)&&i.preventDefault()});return n.useCallback(i=>{var c;i?i.addEventListener("wheel",o,{passive:!1}):(c=r.current)===null||c===void 0||c.removeEventListener("wheel",o),r.current=i},[o])}function lo(e,t,r,o,i,c,s,l,a){const d=n.useRef(0),p=n.useRef(0),u=n.useRef(void 0),g=n.useRef(void 0),h=n.useRef(0),m=n.useRef(void 0),f=n.useRef(0),{setTimeout:b,clearTimeout:_}=Oe(),P=n.useCallback(()=>{u.current&&(_(u.current),u.current=void 0)},[_]),I=n.useCallback(()=>{g.current&&(_(g.current),g.current=void 0)},[_]),L=D(()=>{e!==H.SWIPE&&(d.current=0,f.current=0,P(),I())});n.useEffect(L,[e,L]);const M=D(E=>{g.current=void 0,d.current===E&&a(d.current)}),k=D(E=>{if(E.ctrlKey||Math.abs(E.deltaY)>Math.abs(E.deltaX))return;const N=w=>{h.current=w,_(m.current),m.current=w>0?b(()=>{h.current=0,m.current=void 0},300):void 0};if(e===H.NONE){if(Math.abs(E.deltaX)<=1.2*Math.abs(h.current)){N(E.deltaX);return}if(!r(-E.deltaX))return;if(p.current+=E.deltaX,P(),Math.abs(p.current)>30)p.current=0,N(0),f.current=Date.now(),c();else{const w=p.current;u.current=b(()=>{u.current=void 0,w===p.current&&(p.current=0)},i)}}else if(e===H.SWIPE){let w=d.current-E.deltaX;if(w=Math.min(Math.abs(w),o)*Math.sign(w),d.current=w,s(w),I(),Math.abs(w)>.2*o){N(E.deltaX),l(w,Date.now()-f.current);return}g.current=b(()=>M(w),2*i)}else N(E.deltaX)});n.useEffect(()=>t(qe,k),[t,k])}const bt=Qe("container"),on=n.createContext(null),ce=ie("useController","ControllerContext",on);function ao({children:e,...t}){var r;const{carousel:o,animation:i,controller:c,on:s,styles:l,render:a}=t,{closeOnPullUp:d,closeOnPullDown:p,preventDefaultWheelX:u,preventDefaultWheelY:g}=c,[h,m]=n.useState(),f=le(),b=Yn(),[_,P]=n.useState(H.NONE),I=n.useRef(0),L=n.useRef(0),M=n.useRef(1),{registerSensors:k,subscribeSensors:E}=ro(),{subscribe:N,publish:w}=Ie(),A=Pe(),W=Pe(),X=Pe(),{containerRef:C,setContainerRef:O,containerRect:y}=tn(),F=He(so({preventDefaultWheelX:u,preventDefaultWheelY:g}),O),$=n.useRef(null),x=He($,void 0),{getOwnerDocument:R}=Le(),U=ct(),V=v=>(U?-1:1)*(typeof v=="number"?v:1),S=D(()=>{var v;return(v=C.current)===null||v===void 0?void 0:v.focus()}),z=D(()=>t),q=D(()=>f),J=n.useCallback(v=>w(ue,v),[w]),ee=n.useCallback(v=>w(de,v),[w]),me=n.useCallback(()=>w(ge),[w]),Re=v=>!(o.finite&&(V(v)>0&&f.currentIndex===0||V(v)<0&&f.currentIndex===f.slides.length-1)),lt=v=>{var Z;I.current=v,(Z=C.current)===null||Z===void 0||Z.style.setProperty(K("swipe_offset"),`${Math.round(v)}px`)},Te=v=>{var Z,B;L.current=v,M.current=(()=>{const xe=p&&v>0?v:d&&v<0?-v:0;return Math.min(Math.max(tt(1-xe/60*(1-.5),2),.5),1)})(),(Z=C.current)===null||Z===void 0||Z.style.setProperty(K("pull_offset"),`${Math.round(v)}px`),(B=C.current)===null||B===void 0||B.style.setProperty(K("pull_opacity"),`${M.current}`)},{prepareAnimation:un}=vt($,(v,Z,B)=>{if($.current&&y)return{keyframes:[{transform:`translate(0, ${v.rect.y-Z.y+B.y}px)`,opacity:v.opacity},{transform:"translate(0, 0)",opacity:1}],duration:v.duration,easing:i.easing.fade}}),at=(v,Z)=>{if(d||p){Te(v);let B=0;$.current&&(B=i.fade*(Z?2:1),un({rect:$.current.getBoundingClientRect(),opacity:M.current,duration:B})),X(()=>{Te(0),P(H.NONE)},B),P(H.ANIMATION),Z||me()}},{prepareAnimation:dn,isAnimationPlaying:fn}=vt($,(v,Z,B)=>{var te;if($.current&&y&&(!((te=f.animation)===null||te===void 0)&&te.duration)){const j=Me(o.spacing),xe=(j.percent?j.percent*y.width/100:j.pixel)||0;return{keyframes:[{transform:`translate(${V(f.globalIndex-v.index)*(y.width+xe)+v.rect.x-Z.x+B.x}px, 0)`},{transform:"translate(0, 0)"}],duration:f.animation.duration,easing:f.animation.easing}}}),Ee=D(v=>{var Z,B;const te=v.offset||0,j=te?i.swipe:(Z=i.navigation)!==null&&Z!==void 0?Z:i.swipe,xe=!te&&!fn()?i.easing.navigation:i.easing.swipe;let{direction:Ce}=v;const _e=(B=v.count)!==null&&B!==void 0?B:1;let ke=H.ANIMATION,ne=j*_e;if(!Ce){const be=y==null?void 0:y.width,ht=v.duration||0,Ae=be?j/be*Math.abs(te):j;_e!==0?(ht<Ae?ne=ne/Ae*Math.max(ht,Ae/5):be&&(ne=j/be*(be-Math.abs(te))),Ce=V(te)>0?ue:de):ne=j/2}let De=0;Ce===ue?Re(V(1))?De=-_e:(ke=H.NONE,ne=j):Ce===de&&(Re(V(-1))?De=_e:(ke=H.NONE,ne=j)),ne=Math.round(ne),W(()=>{lt(0),P(H.NONE)},ne),$.current&&dn({rect:$.current.getBoundingClientRect(),index:f.globalIndex}),P(ke),w(pt,{type:"swipe",increment:De,duration:ne,easing:xe})});n.useEffect(()=>{var v,Z;!((v=f.animation)===null||v===void 0)&&v.increment&&(!((Z=f.animation)===null||Z===void 0)&&Z.duration)&&A(()=>b({type:"swipe",increment:0}),f.animation.duration)},[f.animation,b,A]);const ut=[E,Re,(y==null?void 0:y.width)||0,i.swipe,()=>P(H.SWIPE),v=>lt(v),(v,Z)=>Ee({offset:v,duration:Z,count:1}),v=>Ee({offset:v,count:0})],hn=[()=>{p&&P(H.PULL)},v=>Te(v),v=>at(v),v=>at(v,!0)];co(c,...ut,d,p,...hn,me),lo(_,...ut);const dt=D(()=>{c.focus&&R().querySelector(`.${T(Be)} .${T(bt())}`)&&S()});n.useEffect(dt,[dt]);const ft=D(()=>{var v;(v=s.view)===null||v===void 0||v.call(s,{index:f.currentIndex})});n.useEffect(ft,[f.globalIndex,ft]),n.useEffect(()=>Je(N(ue,v=>Ee({direction:ue,...v})),N(de,v=>Ee({direction:de,...v})),N(pt,v=>b(v))),[N,Ee,b]);const mn=n.useMemo(()=>({prev:J,next:ee,close:me,focus:S,slideRect:y?Nn(y,o.padding):{width:0,height:0},containerRect:y||{width:0,height:0},subscribeSensors:E,containerRef:C,setCarouselRef:x,toolbarWidth:h,setToolbarWidth:m}),[J,ee,me,S,E,y,C,x,h,m,o.padding]);return n.useImperativeHandle(c.ref,()=>({prev:J,next:ee,close:me,focus:S,getLightboxProps:z,getLightboxState:q}),[J,ee,me,S,z,q]),n.createElement("div",{ref:F,className:oe(T(bt()),T(Ke)),style:{..._===H.SWIPE?{[K("swipe_offset")]:`${Math.round(I.current)}px`}:null,..._===H.PULL?{[K("pull_offset")]:`${Math.round(L.current)}px`,[K("pull_opacity")]:`${M.current}`}:null,...c.touchAction!=="none"?{[K("controller_touch_action")]:c.touchAction}:null,...l.container},tabIndex:-1,...k},y&&n.createElement(on.Provider,{value:mn},e,(r=a.controls)===null||r===void 0?void 0:r.call(a)))}const uo=se(Nt,ao);function ae(e){return we(Ot,e)}function wt(e){return we(je,e)}function fo({slide:e,offset:t}){const r=n.useRef(null),{currentIndex:o,slides:i}=le(),{slideRect:c,focus:s}=ce(),{render:l,carousel:{imageFit:a,imageProps:d},on:{click:p},styles:{slide:u},labels:g}=G(),{getOwnerDocument:h}=Le(),m=t!==0;n.useEffect(()=>{var b;m&&(!((b=r.current)===null||b===void 0)&&b.contains(h().activeElement))&&s()},[m,s,h]);const f=()=>{var b,_,P,I;let L=(b=l.slide)===null||b===void 0?void 0:b.call(l,{slide:e,offset:t,rect:c});return!L&&fe(e)&&(L=n.createElement(Se,{slide:e,offset:t,render:l,rect:c,imageFit:a,imageProps:d,onClick:m?void 0:()=>p==null?void 0:p({index:o})})),L?n.createElement(n.Fragment,null,(_=l.slideHeader)===null||_===void 0?void 0:_.call(l,{slide:e}),((P=l.slideContainer)!==null&&P!==void 0?P:(({children:M})=>M))({slide:e,children:L}),(I=l.slideFooter)===null||I===void 0?void 0:I.call(l,{slide:e})):null};return n.createElement("div",{ref:r,className:oe(T(wt()),!m&&T(wt("current")),T(Ke)),...Zn(m),style:u,role:"group","aria-roledescription":ve(g,"Slide"),"aria-label":On(g,i,o+t)},f())}function ho(){const e=G().styles.slide;return n.createElement("div",{className:T(je),style:e})}function mo({carousel:e,labels:t}){const{slides:r,currentIndex:o,globalIndex:i}=le(),{setCarouselRef:c}=ce(),{autoPlaying:s,focusWithin:l}=Bt(),a=Me(e.spacing),d=Me(e.padding),p=Dn(e,r,1),u=[];if(Xt(r))for(let g=o-p;g<=o+p;g+=1){const h=Yt(r,g),m=i-o+g,f=e.finite&&(g<0||g>r.length-1);u.push(f?{key:m}:{key:[`${m}`,Tn(h)].filter(Boolean).join("|"),offset:g-o,slide:h})}return n.createElement("div",{ref:c,className:oe(T(ae()),u.length>0&&T(ae("with_slides"))),style:{[`${K(ae("slides_count"))}`]:u.length,[`${K(ae("spacing_px"))}`]:a.pixel||0,[`${K(ae("spacing_percent"))}`]:a.percent||0,[`${K(ae("padding_px"))}`]:d.pixel||0,[`${K(ae("padding_percent"))}`]:d.percent||0},role:"region","aria-live":s&&!l?"off":"polite","aria-roledescription":ve(t,"Carousel"),"aria-label":ve(t,"Photo gallery")},u.map(({key:g,slide:h,offset:m})=>h?n.createElement(fo,{key:g,slide:h,offset:m}):n.createElement(ho,{key:g})))}const po=se(Ot,mo);function rn(){const{carousel:e}=G(),{slides:t,currentIndex:r}=le(),o=t.length===0||e.finite&&r===0,i=t.length===0||e.finite&&r===t.length-1;return{prevDisabled:o,nextDisabled:i}}function go(e){var t;const r=ct(),{publish:o}=Ie(),{animation:i,controller:c}=G(),{prevDisabled:s,nextDisabled:l}=rn(),a=((t=i.navigation)!==null&&t!==void 0?t:i.swipe)/2,d=xt(()=>o(ue),a),p=xt(()=>o(de),a),u=D(g=>{switch(g.key){case Sn:if(!c.closeOnEscape)return;o(ge);break;case yn:(r?l:s)||(r?p:d)();break;case Ln:(r?s:l)||(r?d:p)();break;default:return}g.stopPropagation()});n.useEffect(()=>e(Ge,u),[e,u])}function Ct({label:e,icon:t,renderIcon:r,action:o,onClick:i,disabled:c,style:s}){return n.createElement(rt,{label:e,icon:t,renderIcon:r,className:T(`navigation_${o}`),disabled:c,onClick:i,style:s,...oo(ce().focus,c)})}function vo({render:{buttonPrev:e,buttonNext:t,iconPrev:r,iconNext:o},styles:i}){const{prev:c,next:s,subscribeSensors:l}=ce(),{prevDisabled:a,nextDisabled:d}=rn();return go(l),n.createElement(n.Fragment,null,e?e():n.createElement(Ct,{label:"Previous",action:ue,icon:Qn,renderIcon:r,style:i.navigationPrev,disabled:a,onClick:c}),t?t():n.createElement(Ct,{label:"Next",action:de,icon:Jn,renderIcon:o,style:i.navigationNext,disabled:d,onClick:s}))}const Eo=se(vn,vo),_t=T(_n),xo=T(Tt);function bo(e){return"style"in e}function Pt(e,t,r){const o=window.getComputedStyle(e),i=r?"padding-left":"padding-right",c=r?o.paddingLeft:o.paddingRight,s=e.style.getPropertyValue(i);return e.style.setProperty(i,`${(ye(c)||0)+t}px`),()=>{s?e.style.setProperty(i,s):e.style.removeProperty(i)}}function wo({noScroll:{disabled:e},children:t}){const r=ct(),{getOwnerDocument:o,getOwnerWindow:i}=Le();return n.useEffect(()=>{if(e)return()=>{};const c=[],s=i(),{body:l,documentElement:a}=o(),d=Math.round(s.innerWidth-a.clientWidth);if(d>0){c.push(Pt(l,d,r));const p=l.getElementsByTagName("*");for(let u=0;u<p.length;u+=1){const g=p[u];bo(g)&&s.getComputedStyle(g).getPropertyValue("position")==="fixed"&&!g.classList.contains(xo)&&c.push(Pt(g,d,r))}}return l.classList.add(_t),()=>{l.classList.remove(_t),c.forEach(p=>p())}},[r,e,o,i]),n.createElement(n.Fragment,null,t)}const Co=se(En,wo);function Mt(e){return we(Be,e)}function St(e,t,r){const o=e.getAttribute(t);return e.setAttribute(t,r),()=>{o?e.setAttribute(t,o):e.removeAttribute(t)}}function _o({portal:{root:e,container:{className:t,style:r,...o}={}},animation:i,styles:c,className:s,on:l,close:a,labels:d,children:p}){const[u,g]=n.useState(!1),[h,m]=n.useState(!1),f=n.useRef([]),b=n.useRef(null),{setTimeout:_}=Oe(),{subscribe:P}=Ie(),L=it()?0:i.fade;n.useEffect(()=>(g(!0),()=>{g(!1),m(!1)}),[]);const M=D(()=>{f.current.forEach(w=>w()),f.current=[]}),k=D(()=>{var w;m(!1),M(),(w=l.exiting)===null||w===void 0||w.call(l),_(()=>{var A;(A=l.exited)===null||A===void 0||A.call(l),a()},L)});n.useEffect(()=>P(ge,k),[P,k]);const E=D(w=>{var A,W,X;Wn(w),m(!0),(A=l.entering)===null||A===void 0||A.call(l);const C=(X=(W=w.parentNode)===null||W===void 0?void 0:W.children)!==null&&X!==void 0?X:[];for(let O=0;O<C.length;O+=1){const y=C[O];["TEMPLATE","SCRIPT","STYLE"].indexOf(y.tagName)===-1&&y!==w&&(f.current.push(St(y,"inert","")),f.current.push(St(y,"aria-hidden","true")))}f.current.push(()=>{var O,y;(y=(O=b.current)===null||O===void 0?void 0:O.focus)===null||y===void 0||y.call(O)}),_(()=>{var O;(O=l.entered)===null||O===void 0||O.call(l)},L)}),N=n.useCallback(w=>{w?E(w):M()},[E,M]);return u?gn.createPortal(n.createElement(io,{ref:N,className:oe(s,t,T(Mt()),T(Tt),h&&T(Mt("open"))),"aria-modal":!0,role:"dialog","aria-label":ve(d,"Lightbox"),style:{...i.fade!==ze.animation.fade?{[K("fade_animation_duration")]:`${L}ms`}:null,...i.easing.fade!==ze.animation.easing.fade?{[K("fade_animation_timing_function")]:i.easing.fade}:null,...c.root,...r},onFocus:w=>{b.current||(b.current=w.relatedTarget)},...o},p),(typeof e=="function"?e():e)||document.body):null}const Po=se(Be,_o);function Mo({children:e}){return n.createElement(n.Fragment,null,e)}const So=se(xn,Mo);function yo(e){return we(Rt,e)}function Lo({toolbar:{buttons:e},render:{buttonClose:t,iconClose:r},styles:o}){const{close:i,setToolbarWidth:c}=ce(),{setContainerRef:s,containerRect:l}=tn();re(()=>{c(l==null?void 0:l.width)},[c,l==null?void 0:l.width]);const a=()=>t?t():n.createElement(rt,{key:ge,label:"Close",icon:qn,renderIcon:r,onClick:i});return n.createElement("div",{ref:s,style:o.toolbar,className:T(yo())},e==null?void 0:e.map(d=>d===ge?a():d))}const Io=se(Rt,Lo);function cn(e,t){var r;return n.createElement(e.module.component,{key:e.module.name,...t},(r=e.children)===null||r===void 0?void 0:r.map(o=>cn(o,t)))}function Oo(e,t={}){const{easing:r,...o}=e,{easing:i,...c}=t;return{easing:{...r,...i},...o,...c}}function No({carousel:e,animation:t,render:r,toolbar:o,controller:i,noScroll:c,on:s,plugins:l,slides:a,index:d,...p}){const{animation:u,carousel:g,render:h,toolbar:m,controller:f,noScroll:b,on:_,slides:P,index:I,plugins:L,...M}=ze,{config:k,augmentation:E}=$n([Y(Po,[Y(Co,[Y(uo,[Y(po),Y(Io),Y(Eo)])])])],l||L),N=E({animation:Oo(u,t),carousel:{...g,...e},render:{...h,...r},toolbar:{...m,...o},controller:{...f,...i},noScroll:{...b,...c},on:{..._,...s},...M,...p});return N.open?n.createElement(Xn,{...N},n.createElement(Hn,{slides:a||P,index:ye(d||I)},n.createElement(jn,null,n.createElement(Un,null,n.createElement(Fn,null,cn(Y(So,k),N)))))):null}const sn={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1,maxZoom:8};function Ro(e){return Math.min(Math.max(e,Number.EPSILON),1)}function ln(e){const{minZoom:t,...r}={...sn,...e};return{minZoom:Ro(t),...r}}function To(e,t,r,o){const i=n.useRef(void 0),c=n.useRef(void 0),{zoom:s}=G().animation,l=it(),a=D(()=>{var d,p,u;if((d=i.current)===null||d===void 0||d.cancel(),i.current=void 0,c.current&&(o!=null&&o.current)){try{i.current=(u=(p=o.current).animate)===null||u===void 0?void 0:u.call(p,[{transform:c.current},{transform:`scale(${e}) translateX(${t}px) translateY(${r}px)`}],{duration:l?0:s??500,easing:i.current?"ease-out":"ease-in-out"})}catch(g){console.error(g)}c.current=void 0,i.current&&(i.current.onfinish=()=>{i.current=void 0})}});return re(a,[e,t,r,a]),n.useCallback(()=>{c.current=o!=null&&o.current?window.getComputedStyle(o.current).transform:void 0},[o])}function ko(e,t){const{on:r}=G(),o=D(()=>{var i;t||(i=r.zoom)===null||i===void 0||i.call(r,{zoom:e})});n.useEffect(o,[e,o])}function Ne(){const{zoom:e}=G();return ln(e)}function Do(e,t){var r;const o=typeof e=="function"?(r=e(t))!==null&&r!==void 0?r:sn.maxZoom:e;return Math.max(o,1)}function Ao(e,t){var r,o;let i={width:0,height:0},c={width:0,height:0};const{currentSlide:s}=le(),{imageFit:l}=G().carousel,{maxZoomPixelRatio:a,maxZoom:d}=Ne();if(e&&s){const u={...s,...t};if(fe(u)){const g=nt(u,l),h=Math.max(...(((r=u.srcSet)===null||r===void 0?void 0:r.map(f=>f.width))||[]).concat(u.width?[u.width]:[])),m=Math.max(...(((o=u.srcSet)===null||o===void 0?void 0:o.map(f=>f.height))||[]).concat(u.height?[u.height]:[]));h>0&&m>0&&e.width>0&&e.height>0&&(c=g?{width:Math.round(Math.min(h,e.width/e.height*m)),height:Math.round(Math.min(m,e.height/e.width*h))}:{width:h,height:m},c={width:c.width*a,height:c.height*a},i=g?{width:Math.min(e.width,c.width,h),height:Math.min(e.height,c.height,m)}:{width:Math.round(Math.min(e.width,e.height/m*h,h)),height:Math.round(Math.min(e.height,e.width/h*m,m))})}else e.width>0&&e.height>0&&(t&&t.width>0&&t.height>0?i={width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}:i={width:e.width,height:e.height})}const p=s&&i.width?fe(s)?Math.max(tt(c.width/i.width,5),1):Do(d,s):1;return{imageRect:i,maxZoom:p}}function yt(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function Lt(e,t,r=100,o=2){return e*Math.min(1+Math.abs(t/r),o)**Math.sign(t)}function Zo(e,t,r,o,i,c,s,l,a){const d=n.useRef([]),p=n.useRef(0),u=n.useRef(void 0),{globalIndex:g}=le(),{getOwnerWindow:h}=Le(),{containerRef:m,subscribeSensors:f}=ce(),{keyboardMoveDistance:b,zoomInMultiplier:_,wheelZoomDistanceFactor:P,scrollToZoom:I,doubleTapDelay:L,doubleClickDelay:M,doubleClickMaxStops:k,pinchZoomDistanceFactor:E,pinchZoomV4:N}=Ne(),w=n.useCallback(x=>{if(m.current){const{pageX:R,pageY:U}=x,{scrollX:V,scrollY:S}=h(),{left:z,top:q,width:J,height:ee}=m.current.getBoundingClientRect();return[R-z-V-J/2,U-q-S-ee/2]}return[]},[m,h]),A=D(x=>{const{key:R,metaKey:U,ctrlKey:V}=x,S=U||V,z=()=>{x.preventDefault(),x.stopPropagation()};if(e>1){const q=(J,ee)=>{z(),l(J,ee)};R==="ArrowDown"?q(0,b):R==="ArrowUp"?q(0,-b):R==="ArrowLeft"?q(-b,0):R==="ArrowRight"&&q(b,0)}R==="+"||S&&R==="="?(z(),i()):R==="-"||S&&R==="_"?(z(),c()):S&&R==="0"&&(z(),s(1))}),W=D(x=>{if((x.ctrlKey||I)&&Math.abs(x.deltaY)>Math.abs(x.deltaX)){x.stopPropagation(),s(Lt(e,-x.deltaY,P),!0,...w(x));return}e>1&&(x.stopPropagation(),I||l(x.deltaX,x.deltaY))}),X=n.useCallback(x=>{const R=d.current;R.splice(0,R.length,...R.filter(U=>U.pointerId!==x.pointerId))},[]),C=n.useCallback(x=>{X(x),x.persist(),d.current.push(x)},[X]),O=D(x=>{var R;const U=d.current;if(x.pointerType==="mouse"&&x.buttons>1||!(!((R=a==null?void 0:a.current)===null||R===void 0)&&R.contains(x.target)))return;e>1&&x.stopPropagation();const{timeStamp:V}=x;if(U.length===0&&V-p.current<(x.pointerType==="touch"?L:M)){p.current=0;const S=e>=1?e!==r?e*Math.max(r**(1/k),_):1:e!==t?e/Math.max(t**(-1/k),_):1;s(S,!1,...w(x))}else p.current=V;if(C(x),U.length===2){const S=yt(U[0],U[1]);u.current={previousDistance:S,initialDistance:Math.max(S,1),initialZoom:e}}}),y=D(x=>{const R=d.current,U=R.find(V=>V.pointerId===x.pointerId);if(R.length===2&&u.current){x.stopPropagation(),C(x);const V=yt(R[0],R[1]),S=N?u.current.initialZoom/u.current.initialDistance*V:Lt(e,V-u.current.previousDistance,E);s(S,!0,...R.map(z=>w(z)).reduce((z,q)=>q.map((J,ee)=>z[ee]+J/2))),u.current.previousDistance=V;return}e>1&&(x.stopPropagation(),U&&(R.length===1&&l((U.clientX-x.clientX)/e,(U.clientY-x.clientY)/e),C(x)))}),F=n.useCallback(x=>{const R=d.current;R.length===2&&R.find(U=>U.pointerId===x.pointerId)&&(u.current=void 0),X(x)},[X]),$=n.useCallback(()=>{const x=d.current;x.splice(0,x.length),p.current=0,u.current=void 0},[]);nn(f,O,y,F,o),n.useEffect($,[g,$]),n.useEffect(()=>o?()=>{}:Je($,f(Ge,A),f(qe,W)),[o,f,$,A,W])}function Wo(e,t,r){const[o,i]=n.useState(1),[c,s]=n.useState(0),[l,a]=n.useState(0),d=To(o,c,l,r),{currentSlide:p,globalIndex:u}=le(),{containerRect:g,slideRect:h}=ce(),{minZoom:m,zoomInMultiplier:f}=Ne(),b=p&&fe(p)?p.src:void 0,_=!(r!=null&&r.current);re(()=>{i(1),s(0),a(0)},[u,b]);const P=n.useCallback((E,N,w)=>{const A=w||o,W=c-(E||0),X=l-(N||0),C=(e.width*A-h.width)/2/A,O=(e.height*A-h.height)/2/A;s(Math.min(Math.abs(W),Math.max(C,0))*Math.sign(W)),a(Math.min(Math.abs(X),Math.max(O,0))*Math.sign(X))},[o,c,l,h,e.width,e.height]),I=n.useCallback((E,N,w,A)=>{const W=tt(E+.01<t?E-.01>m?E:m:t,5);N||d(),P(w?w*(1/o-1/W):0,A?A*(1/o-1/W):0,W),i(W)},[o,m,t,P,d]),L=D(()=>{o>1&&(o>t&&I(t,!0),P())});re(L,[g.width,g.height,L]);const M=n.useCallback(()=>{const E=o*f;I(o<1&&E>1?1:E)},[o,f,I]),k=n.useCallback(()=>{const E=o/f;I(o>1&&E<1?1:E)},[o,f,I]);return{zoom:o,offsetX:c,offsetY:l,disabled:_,changeOffsets:P,changeZoom:I,zoomIn:M,zoomOut:k}}const an=n.createContext(null),st=ie("useZoom","ZoomControllerContext",an);function $o({children:e}){const[t,r]=n.useState(),{slideRect:o}=ce(),{ref:i,minZoom:c}=Ne(),{imageRect:s,maxZoom:l}=Ao(o,t==null?void 0:t.imageDimensions),{zoom:a,offsetX:d,offsetY:p,disabled:u,changeZoom:g,changeOffsets:h,zoomIn:m,zoomOut:f}=Wo(s,l,t==null?void 0:t.zoomWrapperRef);ko(a,u),Zo(a,c,l,u,m,f,g,h,t==null?void 0:t.zoomWrapperRef);const b=n.useMemo(()=>({zoom:a,minZoom:c,maxZoom:l,offsetX:d,offsetY:p,disabled:u,zoomIn:m,zoomOut:f,changeZoom:g}),[a,c,l,d,p,u,m,f,g]);n.useImperativeHandle(i,()=>b,[b]);const _=n.useMemo(()=>({...b,setZoomWrapper:r}),[b,r]);return n.createElement(an.Provider,{value:_},e)}const Fo=he("ZoomIn",n.createElement(n.Fragment,null,n.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),n.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),Vo=he("ZoomOut",n.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),It=n.forwardRef(function({zoomIn:t,onLoseFocus:r},o){const i=n.useRef(!1),c=n.useRef(!1),{zoom:s,minZoom:l,maxZoom:a,zoomIn:d,zoomOut:p,disabled:u}=st(),{render:g}=G(),h=u||(t?s>=a:s<=l);return n.useEffect(()=>{h&&i.current&&c.current&&r(),h||(i.current=!0)},[h,r]),n.createElement(rt,{ref:o,disabled:h,label:t?"Zoom in":"Zoom out",icon:t?Fo:Vo,renderIcon:t?g.iconZoomIn:g.iconZoomOut,onClick:t?d:p,onFocus:()=>{c.current=!0},onBlur:()=>{c.current=!1}})});function Uo(){const e=n.useRef(null),t=n.useRef(null),{focus:r}=ce(),o=n.useCallback(s=>{var l,a;!((l=s.current)===null||l===void 0)&&l.disabled?r():(a=s.current)===null||a===void 0||a.focus()},[r]),i=n.useCallback(()=>o(e),[o]),c=n.useCallback(()=>o(t),[o]);return n.createElement(n.Fragment,null,n.createElement(It,{zoomIn:!0,ref:e,onLoseFocus:c}),n.createElement(It,{ref:t,onLoseFocus:i}))}function Xo(){const{render:e}=G(),t=st();return e.buttonZoom?n.createElement(n.Fragment,null,e.buttonZoom(t)):n.createElement(Uo,null)}function Yo(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function zo({current:e,preload:t},{type:r,source:o}){switch(r){case"fetch":return e?{current:e,preload:o}:{current:o};case"done":return o===t?{current:o}:{current:e,preload:t};default:throw new Error(Vt)}}function Ho(e){var t,r;const[{current:o,preload:i},c]=n.useReducer(zo,{}),{slide:s,rect:l,imageFit:a,render:d,interactive:p}=e,u=s.srcSet.sort((M,k)=>M.width-k.width),g=(t=s.width)!==null&&t!==void 0?t:u[u.length-1].width,h=(r=s.height)!==null&&r!==void 0?r:u[u.length-1].height,m=nt(s,a),f=Math.max(...u.map(M=>M.width)),b=Math.min((m?Math.max:Math.min)(l.width,g*(l.height/h)),f),_=Rn(),P=D(()=>{var M;const k=(M=u.find(E=>E.width>=b*_))!==null&&M!==void 0?M:u[u.length-1];(!o||u.findIndex(E=>E.src===o)<u.findIndex(E=>E===k))&&c({type:"fetch",source:k.src})});re(P,[l.width,l.height,_,P]);const I=D(M=>c({type:"done",source:M})),L={WebkitTransform:p?"initial":"translateZ(0)"};return m||Object.assign(L,l.width/l.height<g/h?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),n.createElement(n.Fragment,null,i&&i!==o&&n.createElement(Se,{key:"preload",...e,offset:void 0,slide:{...s,src:i,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...L},onLoad:()=>I(i),render:{...d,iconLoading:()=>null,iconError:()=>null}}),o&&n.createElement(Se,{key:"current",...e,slide:{...s,src:o,srcSet:void 0},style:L}))}function Bo({render:e,slide:t,offset:r,rect:o}){var i;const[c,s]=n.useState(),l=n.useRef(null),a=fe(t),{zoom:d,maxZoom:p,offsetX:u,offsetY:g,setZoomWrapper:h}=st(),m=d>1,{carousel:f,on:b}=G(),{currentIndex:_}=le();re(()=>{if(r!==0||a||!l.current)return()=>{};const I=()=>{const M=l.current;if(!M)return;let k=0,E=0;for(const N of M.children)N instanceof HTMLElement&&(k=Math.max(k,N.offsetWidth),E=Math.max(E,N.offsetHeight));s(N=>N&&N.width===k&&N.height===E?N:{width:k,height:E})};if(I(),typeof ResizeObserver>"u")return()=>{};const L=new ResizeObserver(I);for(const M of l.current.children)L.observe(M);return()=>L.disconnect()},[r,a,o]),re(()=>r===0?(h({zoomWrapperRef:l,imageDimensions:c}),()=>h(void 0)):()=>{},[r,c,h]);let P=(i=e.slide)===null||i===void 0?void 0:i.call(e,{slide:t,offset:r,rect:o,zoom:d,maxZoom:p});if(!P&&a){const I={slide:t,offset:r,rect:o,render:e,imageFit:f.imageFit,imageProps:f.imageProps,onClick:r===0?()=>{var L;return(L=b.click)===null||L===void 0?void 0:L.call(b,{index:_})}:void 0};P=Yo(t)?n.createElement(Ho,{...I,slide:t,interactive:m,rect:r===0?{width:o.width*d,height:o.height*d}:o}):n.createElement(Se,{onLoad:L=>s({width:L.naturalWidth,height:L.naturalHeight}),...I})}return P?n.createElement("div",{ref:l,className:oe(T(Cn),T(Ke),T(kt),m&&T(Pn)),style:r===0?{transform:`scale(${d}) translateX(${u}px) translateY(${g}px)`}:void 0},P):null}const Ko=({augment:e,addModule:t})=>{e(({zoom:r,toolbar:o,render:i,controller:c,...s})=>{const l=ln(r);return{zoom:l,toolbar:kn(o,mt,n.createElement(Xo,null)),render:{...i,slide:a=>{var d,p;return fe(a.slide)||a.slide.type!=null&&(!((d=l.supports)===null||d===void 0)&&d.includes(a.slide.type))?n.createElement(Bo,{render:i,...a}):(p=i.slide)===null||p===void 0?void 0:p.call(i,a)}},controller:{...c,preventDefaultWheelY:l.scrollToZoom},...s}}),t(se(mt,$o))};function Qo({src:e,alt:t,open:r,onClose:o}){return pn.jsx(No,{open:r,close:o,slides:[{src:e,alt:t}],plugins:[Ko],zoom:{scrollToZoom:!0,maxZoomPixelRatio:5},styles:{container:{backgroundColor:"rgba(0, 0, 0, 0.85)",backdropFilter:"blur(8px)"},toolbar:{background:"transparent",padding:"16px"},button:{backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:"9999px",color:"#fff",width:40,height:40},icon:{width:20,height:20}},animation:{fade:200}})}export{Qo as default};
1
+ import{j as pn}from"./index-DFjomhpK.js";import{r as n}from"./syntax-highlighter-DOKegME5.js";import{r as gn}from"./main-CzCxk59S.js";const Ot="carousel",Nt="controller",vn="navigation",En="no-scroll",Be="portal",xn="root",Rt="toolbar",mt="zoom",Ze="loading",We="error",$e="complete",bn="placeholder",wn=e=>`active-slide-${e}`,Cn="fullsize",Ke="flex_center",_n="no_scroll",Tt="no_scroll_padding",je="slide",kt="slide_wrapper",Pn="slide_wrapper_interactive",ue="prev",de="next",pt="swipe",ge="close",Dt="onPointerDown",At="onPointerMove",Zt="onPointerUp",Wt="onPointerLeave",$t="onPointerCancel",Ge="onKeyDown",Mn="onKeyUp",qe="onWheel",Sn="Escape",yn="ArrowLeft",Ln="ArrowRight",In="button",Xe="icon",Ft="contain",gt="cover",Vt="Unknown action type",Ut="yarl__";function oe(...e){return e.filter(Boolean).join(" ")}function T(e){return`${Ut}${e}`}function K(e){return`--${Ut}${e}`}function we(e,t){return`${e}${t?`_${t}`:""}`}function Qe(e){return t=>we(e,t)}function ve(e,t){var r;return(r=e==null?void 0:e[t])!==null&&r!==void 0?r:t}function On(e,t,r){return ve(e,"{index} of {total}").replace(/\{index}/g,`${ot(r,t.length)+1}`).replace(/\{total}/g,`${t.length}`)}function Je(...e){return()=>{e.forEach(t=>{t()})}}function ie(e,t,r){return()=>{const o=n.useContext(r);if(!o)throw new Error(`${e} must be used within a ${t}.Provider`);return o}}function et(){return typeof window<"u"}function tt(e,t=0){const r=10**t;return Math.round((e+Number.EPSILON)*r)/r}function fe(e){return e.type===void 0||e.type==="image"}function nt(e,t){return e.imageFit===gt||e.imageFit!==Ft&&t===gt}function ye(e){return typeof e=="string"?Number.parseInt(e,10):e}function Me(e){if(typeof e=="number")return{pixel:e};if(typeof e=="string"){const t=ye(e);return e.endsWith("%")?{percent:t}:{pixel:t}}return{pixel:0}}function Nn(e,t){const r=Me(t),o=r.percent!==void 0?e.width/100*r.percent:r.pixel;return{width:Math.max(e.width-2*o,0),height:Math.max(e.height-2*o,0)}}function Rn(){return(et()?window==null?void 0:window.devicePixelRatio:void 0)||1}function ot(e,t){return t>0?(e%t+t)%t:0}function Xt(e){return e.length>0}function Yt(e,t){return e[ot(t,e.length)]}function Ye(e,t){return Xt(e)?Yt(e,t):void 0}function Tn(e){return fe(e)?e.src:void 0}function kn(e,t,r){if(!r)return e;const{buttons:o,...i}=e,c=o.findIndex(l=>l===t),s=n.isValidElement(r)?n.cloneElement(r,{key:t},null):r;if(c>=0){const l=[...o];return l.splice(c,1,s),{buttons:l,...i}}return{buttons:[s,...o],...i}}function Dn(e,t,r=0){return Math.min(e.preload,Math.max(e.finite?t.length-1:Math.floor(t.length/2),r))}const An=Number(n.version.split(".")[0])>=19;function Zn(e){return{inert:An?e:e?"":void 0}}function Wn(e){e.scrollTop}const ze={open:!1,close:()=>{},index:0,slides:[],render:{},plugins:[],toolbar:{buttons:[ge]},labels:{},animation:{fade:250,swipe:500,easing:{fade:"ease",swipe:"ease-out",navigation:"ease-in-out"}},carousel:{finite:!1,preload:2,padding:"16px",spacing:"30%",imageFit:Ft,imageProps:{}},controller:{ref:null,focus:!0,aria:!1,touchAction:"none",closeOnPullUp:!1,closeOnPullDown:!1,closeOnBackdropClick:!1,closeOnEscape:!0,preventDefaultWheelX:!0,preventDefaultWheelY:!1,disableSwipeNavigation:!1},portal:{},noScroll:{disabled:!1},on:{},styles:{},className:""};function se(e,t){return{name:e,component:t}}function Y(e,t){return{module:e,children:t}}function zt(e,t,r){return e.module.name===t?r(e):e.children?[Y(e.module,e.children.flatMap(o=>{var i;return(i=zt(o,t,r))!==null&&i!==void 0?i:[]}))]:[e]}function pe(e,t,r){return e.flatMap(o=>{var i;return(i=zt(o,t,r))!==null&&i!==void 0?i:[]})}function $n(e,t=[],r=[]){let o=e;const i=h=>{const m=[...o];for(;m.length>0;){const f=m.pop();if((f==null?void 0:f.module.name)===h)return!0;f!=null&&f.children&&m.push(...f.children)}return!1},c=(h,m)=>{if(h===""){o=[Y(m,o)];return}o=pe(o,h,f=>[Y(m,[f])])},s=(h,m)=>{o=pe(o,h,f=>[Y(f.module,[Y(m,f.children)])])},l=(h,m,f)=>{o=pe(o,h,b=>{var _;return[Y(b.module,[...f?[Y(m)]:[],...(_=b.children)!==null&&_!==void 0?_:[],...f?[]:[Y(m)]])]})},a=(h,m,f)=>{o=pe(o,h,b=>[...f?[Y(m)]:[],b,...f?[]:[Y(m)]])},d=h=>{s(Nt,h)},p=(h,m)=>{o=pe(o,h,f=>[Y(m,f.children)])},u=h=>{o=pe(o,h,m=>m.children)},g=h=>{r.push(h)};return t.forEach(h=>{h({contains:i,addParent:c,append:s,addChild:l,addSibling:a,addModule:d,replace:p,remove:u,augment:g})}),{config:o,augmentation:h=>r.reduce((m,f)=>f(m),h)}}const Ht=n.createContext(null),Bt=ie("useA11yContext","A11yContext",Ht);function Fn({children:e}){const[t,r]=n.useState(!1),[o,i]=n.useState(!1),c=n.useMemo(()=>({focusWithin:t,trackFocusWithin:(l,a)=>{const d=p=>u=>{var g;u.currentTarget.contains(u.relatedTarget)||r(p),(g=p?l:a)===null||g===void 0||g(u)};return{onFocus:d(!0),onBlur:d(!1)}},autoPlaying:o,setAutoPlaying:i}),[t,o]);return n.createElement(Ht.Provider,{value:c},e)}const Kt=n.createContext(null),Le=ie("useDocument","DocumentContext",Kt);function Vn({nodeRef:e,children:t}){const r=n.useMemo(()=>{const o=c=>{var s;return((s=c||e.current)===null||s===void 0?void 0:s.ownerDocument)||document};return{getOwnerDocument:o,getOwnerWindow:c=>{var s;return((s=o(c))===null||s===void 0?void 0:s.defaultView)||window}}},[e]);return n.createElement(Kt.Provider,{value:r},t)}const jt=n.createContext(null),Ie=ie("useEvents","EventsContext",jt);function Un({children:e}){const[t]=n.useState({});n.useEffect(()=>()=>{Object.keys(t).forEach(o=>delete t[o])},[t]);const r=n.useMemo(()=>{const o=(s,l)=>{var a;(a=t[s])===null||a===void 0||a.splice(0,t[s].length,...t[s].filter(d=>d!==l))};return{publish:(...[s,l])=>{var a;(a=t[s])===null||a===void 0||a.forEach(d=>d(l))},subscribe:(s,l)=>(t[s]||(t[s]=[]),t[s].push(l),()=>o(s,l)),unsubscribe:o}},[t]);return n.createElement(jt.Provider,{value:r},e)}const Gt=n.createContext(null),G=ie("useLightboxProps","LightboxPropsContext",Gt);function Xn({children:e,...t}){return n.createElement(Gt.Provider,{value:t},e)}const qt=n.createContext(null),le=ie("useLightboxState","LightboxStateContext",qt),Qt=n.createContext(null),Yn=ie("useLightboxDispatch","LightboxDispatchContext",Qt);function zn(e,t){switch(t.type){case"swipe":{const{slides:r}=e,o=(t==null?void 0:t.increment)||0,i=e.globalIndex+o,c=ot(i,r.length),s=Ye(r,c),l=o||t.duration!==void 0?{increment:o,duration:t.duration,easing:t.easing}:void 0;return{slides:r,currentIndex:c,globalIndex:i,currentSlide:s,animation:l}}case"update":return t.slides!==e.slides||t.index!==e.currentIndex?{slides:t.slides,currentIndex:t.index,globalIndex:t.index,currentSlide:Ye(t.slides,t.index)}:e;default:throw new Error(Vt)}}function Hn({slides:e,index:t,children:r}){const[o,i]=n.useReducer(zn,{slides:e,currentIndex:t,globalIndex:t,currentSlide:Ye(e,t)}),[c,s]=n.useState(e),[l,a]=n.useState(t);(e!==c||t!==l)&&(s(e),a(t),i({type:"update",slides:e,index:t}));const d=n.useMemo(()=>({...o,state:o,dispatch:i}),[o,i]);return n.createElement(Qt.Provider,{value:i},n.createElement(qt.Provider,{value:d},r))}const Jt=n.createContext(null),Bn=ie("useRTLContext","RTLContext",Jt);function Kn({isRTL:e,children:t}){const r=n.useMemo(()=>({isRTL:e}),[e]);return n.createElement(Jt.Provider,{value:r},t)}const en=n.createContext(null),Oe=ie("useTimeouts","TimeoutsContext",en);function jn({children:e}){const[t]=n.useState([]);n.useEffect(()=>()=>{t.forEach(o=>window.clearTimeout(o)),t.splice(0,t.length)},[t]);const r=n.useMemo(()=>{const o=s=>{t.splice(0,t.length,...t.filter(l=>l!==s))};return{setTimeout:(s,l)=>{const a=window.setTimeout(()=>{o(a),s()},l);return t.push(a),a},clearTimeout:s=>{s!==void 0&&(o(s),window.clearTimeout(s))}}},[t]);return n.createElement(en.Provider,{value:r},e)}const rt=n.forwardRef(function({label:t,className:r,icon:o,renderIcon:i,onClick:c,style:s,...l},a){const{styles:d,labels:p}=G(),u=ve(p,t);return n.createElement("button",{ref:a,type:"button",title:u,"aria-label":u,className:oe(T(In),r),onClick:c,style:{...s,...d.button},...l},i?i():n.createElement(o,{className:T(Xe),style:d.icon}))});function Gn(e,t){const r=o=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",...o},t);return r.displayName=e,r}function he(e,t){return Gn(e,n.createElement("g",{fill:"currentColor"},n.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),t))}const qn=he("Close",n.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Qn=he("Previous",n.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Jn=he("Next",n.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),eo=he("Loading",n.createElement(n.Fragment,null,Array.from({length:8}).map((e,t,r)=>n.createElement("line",{key:t,x1:"12",y1:"6.5",x2:"12",y2:"1.8",strokeLinecap:"round",strokeWidth:"2.6",stroke:"currentColor",strokeOpacity:1/r.length*(t+1),transform:`rotate(${360/r.length*t}, 12, 12)`})))),to=he("Error",n.createElement("path",{d:"M21.9,21.9l-8.49-8.49l0,0L3.59,3.59l0,0L2.1,2.1L0.69,3.51L3,5.83V19c0,1.1,0.9,2,2,2h13.17l2.31,2.31L21.9,21.9z M5,18 l3.5-4.5l2.5,3.01L12.17,15l3,3H5z M21,18.17L5.83,3H19c1.1,0,2,0.9,2,2V18.17z"})),re=et()?n.useLayoutEffect:n.useEffect;function it(){const[e,t]=n.useState(!1);return n.useEffect(()=>{var r,o;const i=(r=window.matchMedia)===null||r===void 0?void 0:r.call(window,"(prefers-reduced-motion: reduce)");t(i==null?void 0:i.matches);const c=s=>t(s.matches);return(o=i==null?void 0:i.addEventListener)===null||o===void 0||o.call(i,"change",c),()=>{var s;return(s=i==null?void 0:i.removeEventListener)===null||s===void 0?void 0:s.call(i,"change",c)}},[]),e}function no(e){let t=0,r=0,o=0;const c=window.getComputedStyle(e).transform.match(/matrix.*\((.+)\)/);if(c){const s=c[1].split(",").map(ye);s.length===6?(t=s[4],r=s[5]):s.length===16&&(t=s[12],r=s[13],o=s[14])}return{x:t,y:r,z:o}}function vt(e,t){const r=n.useRef(void 0),o=n.useRef(void 0),i=it();return re(()=>{var c,s,l;if(e.current&&r.current!==void 0&&!i){const{keyframes:a,duration:d,easing:p,onfinish:u}=t(r.current,e.current.getBoundingClientRect(),no(e.current))||{};if(a&&d){(c=o.current)===null||c===void 0||c.cancel(),o.current=void 0;try{o.current=(l=(s=e.current).animate)===null||l===void 0?void 0:l.call(s,a,{duration:d,easing:p})}catch(g){console.error(g)}o.current&&(o.current.onfinish=()=>{o.current=void 0,u==null||u()})}}r.current=void 0}),{prepareAnimation:c=>{r.current=c},isAnimationPlaying:()=>{var c;return((c=o.current)===null||c===void 0?void 0:c.playState)==="running"}}}function tn(){const e=n.useRef(null),t=n.useRef(void 0),[r,o]=n.useState();return{setContainerRef:n.useCallback(c=>{e.current=c,t.current&&(t.current.disconnect(),t.current=void 0);const s=()=>{if(c){const l=window.getComputedStyle(c),a=d=>parseFloat(d)||0;o({width:Math.round(c.clientWidth-a(l.paddingLeft)-a(l.paddingRight)),height:Math.round(c.clientHeight-a(l.paddingTop)-a(l.paddingBottom))})}else o(void 0)};s(),c&&typeof ResizeObserver<"u"&&(t.current=new ResizeObserver(s),t.current.observe(c))},[]),containerRef:e,containerRect:r}}function Pe(){const e=n.useRef(void 0),{setTimeout:t,clearTimeout:r}=Oe();return n.useCallback((o,i)=>{r(e.current),e.current=t(o,i>0?i:0)},[t,r])}function D(e){const t=n.useRef(e);return re(()=>{t.current=e}),n.useCallback((...r)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...r)},[])}function Et(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function He(e,t){return n.useMemo(()=>e==null&&t==null?null:r=>{Et(e,r),Et(t,r)},[e,t])}function oo(e,t=!1){const r=n.useRef(!1);re(()=>{t&&r.current&&(r.current=!1,e())},[t,e]);const o=n.useCallback(()=>{r.current=!0},[]),i=n.useCallback(()=>{r.current=!1},[]);return{onFocus:o,onBlur:i}}function ct(){return Bn().isRTL}function ro(){const[e]=n.useState({}),t=n.useCallback((i,c)=>{var s;(s=e[i])===null||s===void 0||s.forEach(l=>{c.isPropagationStopped()||l(c)})},[e]),r=n.useMemo(()=>({onPointerDown:i=>t(Dt,i),onPointerMove:i=>t(At,i),onPointerUp:i=>t(Zt,i),onPointerLeave:i=>t(Wt,i),onPointerCancel:i=>t($t,i),onKeyDown:i=>t(Ge,i),onKeyUp:i=>t(Mn,i),onWheel:i=>t(qe,i)}),[t]),o=n.useCallback((i,c)=>(e[i]||(e[i]=[]),e[i].unshift(c),()=>{const s=e[i];s&&s.splice(0,s.length,...s.filter(l=>l!==c))}),[e]);return{registerSensors:r,subscribeSensors:o}}function xt(e,t){const r=n.useRef(0),o=Pe(),i=D((...c)=>{r.current=Date.now(),e(...c)});return n.useCallback((...c)=>{o(()=>{i(...c)},t-(Date.now()-r.current))},[t,i,o])}const Fe=Qe("slide"),Ve=Qe("slide_image");function Se({slide:e,offset:t,render:r,rect:o,imageFit:i,imageProps:c,onClick:s,onLoad:l,onError:a,style:d}){var p,u,g,h,m,f,b,_;const[P,I]=n.useState(Ze),{publish:L}=Ie(),{setTimeout:M}=Oe(),k=n.useRef(null);n.useEffect(()=>{t===0&&L(wn(P))},[t,P,L]);const E=D(S=>{("decode"in S?S.decode():Promise.resolve()).catch(()=>{}).then(()=>{S.parentNode&&(I($e),M(()=>{l==null||l(S)},0))})}),N=n.useCallback(S=>{k.current=S,S!=null&&S.complete&&E(S)},[E]),w=n.useCallback(S=>{E(S.currentTarget)},[E]),A=D(()=>{I(We),a==null||a()}),W=nt(e,i),X=(S,z)=>Number.isFinite(S)?S:z,C=X(Math.max(...((u=(p=e.srcSet)===null||p===void 0?void 0:p.map(S=>S.width))!==null&&u!==void 0?u:[]).concat(e.width?[e.width]:[]).filter(Boolean)),((g=k.current)===null||g===void 0?void 0:g.naturalWidth)||0),O=X(Math.max(...((m=(h=e.srcSet)===null||h===void 0?void 0:h.map(S=>S.height))!==null&&m!==void 0?m:[]).concat(e.height?[e.height]:[]).filter(Boolean)),((f=k.current)===null||f===void 0?void 0:f.naturalHeight)||0),y=C&&O?{maxWidth:`min(${C}px, 100%)`,maxHeight:`min(${O}px, 100%)`}:{maxWidth:"100%",maxHeight:"100%"},F=(b=e.srcSet)===null||b===void 0?void 0:b.slice().sort((S,z)=>S.width-z.width).map(S=>`${S.src} ${S.width}w`).join(", "),$=()=>o&&!W&&e.width&&e.height?o.height/e.height*e.width:Number.MAX_VALUE,x=F&&o&&et()?`${Math.round(Math.min($(),o.width))}px`:void 0,{style:R,className:U,...V}=(typeof c=="function"?c(e):c)||{};return n.createElement(n.Fragment,null,n.createElement("img",{ref:N,onLoad:w,onError:A,onClick:s,draggable:!1,className:oe(T(Ve()),W&&T(Ve("cover")),P!==$e&&T(Ve("loading")),U),style:{...y,...d,...R},...V,alt:(_=e.alt)!==null&&_!==void 0?_:"",sizes:x,srcSet:F,src:e.src}),P!==$e&&n.createElement("div",{className:T(Fe(bn))},P===Ze&&(r!=null&&r.iconLoading?r.iconLoading():n.createElement(eo,{className:oe(T(Xe),T(Fe(Ze)))})),P===We&&(r!=null&&r.iconError?r.iconError():n.createElement(to,{className:oe(T(Xe),T(Fe(We)))}))))}const io=n.forwardRef(function({className:t,children:r,onFocus:o,onBlur:i,...c},s){const l=n.useRef(null),[a,d]=n.useState(!1),{trackFocusWithin:p}=Bt(),u=D(()=>{if(l.current){const g=window.getComputedStyle(l.current).direction==="rtl";g!==a&&d(g)}});return n.useEffect(u),n.createElement(Vn,{nodeRef:l},n.createElement(Kn,{isRTL:a},n.createElement("div",{ref:He(s,l),className:oe(T("root"),t),...p(o,i),...c},r)))});var H;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL",e[e.ANIMATION=3]="ANIMATION"})(H||(H={}));function nn(e,t,r,o,i){n.useEffect(()=>i?()=>{}:Je(e(Dt,t),e(At,r),e(Zt,o),e(Wt,o),e($t,o)),[e,t,r,o,i])}var Q;(function(e){e[e.NONE=0]="NONE",e[e.SWIPE=1]="SWIPE",e[e.PULL=2]="PULL"})(Q||(Q={}));const Ue=30;function co({disableSwipeNavigation:e,closeOnBackdropClick:t},r,o,i,c,s,l,a,d,p,u,g,h,m,f,b){const _=n.useRef(0),P=n.useRef([]),I=n.useRef(void 0),L=n.useRef(0),M=n.useRef(Q.NONE),k=n.useCallback(C=>{I.current===C.pointerId&&(I.current=void 0,M.current=Q.NONE);const O=P.current;O.splice(0,O.length,...O.filter(y=>y.pointerId!==C.pointerId))},[]),E=n.useCallback(C=>{k(C),C.persist(),P.current.push(C)},[k]),N=n.useCallback(C=>P.current.find(({pointerId:O})=>C.pointerId===O),[]),w=D(C=>{E(C)}),A=(C,O)=>u&&C>O||p&&C<-O,W=D(C=>{const O=N(C);if(O)if(I.current===C.pointerId){const y=Date.now()-L.current,F=_.current;M.current===Q.SWIPE?Math.abs(F)>.3*i||Math.abs(F)>5&&y<c?a(F,y):d(F):M.current===Q.PULL&&(A(F,2*Ue)?m(F,y):f(F)),_.current=0,M.current=Q.NONE}else{const{target:y}=C;t&&y instanceof HTMLElement&&y===O.target&&(y.classList.contains(T(je))||y.classList.contains(T(kt)))&&b()}k(C)}),X=D(C=>{const O=N(C);if(O){const y=I.current===C.pointerId;if(C.buttons===0){y&&_.current!==0?W(C):k(O);return}const F=C.clientX-O.clientX,$=C.clientY-O.clientY;if(I.current===void 0){const x=R=>{E(C),I.current=C.pointerId,L.current=Date.now(),M.current=R};Math.abs(F)>Math.abs($)&&Math.abs(F)>Ue&&o(F)?e||(x(Q.SWIPE),s()):Math.abs($)>Math.abs(F)&&A($,Ue)&&(x(Q.PULL),g())}else y&&(M.current===Q.SWIPE?(_.current=F,l(F)):M.current===Q.PULL&&(_.current=$,h($)))}});nn(r,w,X,W)}function so({preventDefaultWheelX:e,preventDefaultWheelY:t}){const r=n.useRef(null),o=D(i=>{const c=Math.abs(i.deltaX)>Math.abs(i.deltaY);(c&&e||!c&&t||i.ctrlKey)&&i.preventDefault()});return n.useCallback(i=>{var c;i?i.addEventListener("wheel",o,{passive:!1}):(c=r.current)===null||c===void 0||c.removeEventListener("wheel",o),r.current=i},[o])}function lo(e,t,r,o,i,c,s,l,a){const d=n.useRef(0),p=n.useRef(0),u=n.useRef(void 0),g=n.useRef(void 0),h=n.useRef(0),m=n.useRef(void 0),f=n.useRef(0),{setTimeout:b,clearTimeout:_}=Oe(),P=n.useCallback(()=>{u.current&&(_(u.current),u.current=void 0)},[_]),I=n.useCallback(()=>{g.current&&(_(g.current),g.current=void 0)},[_]),L=D(()=>{e!==H.SWIPE&&(d.current=0,f.current=0,P(),I())});n.useEffect(L,[e,L]);const M=D(E=>{g.current=void 0,d.current===E&&a(d.current)}),k=D(E=>{if(E.ctrlKey||Math.abs(E.deltaY)>Math.abs(E.deltaX))return;const N=w=>{h.current=w,_(m.current),m.current=w>0?b(()=>{h.current=0,m.current=void 0},300):void 0};if(e===H.NONE){if(Math.abs(E.deltaX)<=1.2*Math.abs(h.current)){N(E.deltaX);return}if(!r(-E.deltaX))return;if(p.current+=E.deltaX,P(),Math.abs(p.current)>30)p.current=0,N(0),f.current=Date.now(),c();else{const w=p.current;u.current=b(()=>{u.current=void 0,w===p.current&&(p.current=0)},i)}}else if(e===H.SWIPE){let w=d.current-E.deltaX;if(w=Math.min(Math.abs(w),o)*Math.sign(w),d.current=w,s(w),I(),Math.abs(w)>.2*o){N(E.deltaX),l(w,Date.now()-f.current);return}g.current=b(()=>M(w),2*i)}else N(E.deltaX)});n.useEffect(()=>t(qe,k),[t,k])}const bt=Qe("container"),on=n.createContext(null),ce=ie("useController","ControllerContext",on);function ao({children:e,...t}){var r;const{carousel:o,animation:i,controller:c,on:s,styles:l,render:a}=t,{closeOnPullUp:d,closeOnPullDown:p,preventDefaultWheelX:u,preventDefaultWheelY:g}=c,[h,m]=n.useState(),f=le(),b=Yn(),[_,P]=n.useState(H.NONE),I=n.useRef(0),L=n.useRef(0),M=n.useRef(1),{registerSensors:k,subscribeSensors:E}=ro(),{subscribe:N,publish:w}=Ie(),A=Pe(),W=Pe(),X=Pe(),{containerRef:C,setContainerRef:O,containerRect:y}=tn(),F=He(so({preventDefaultWheelX:u,preventDefaultWheelY:g}),O),$=n.useRef(null),x=He($,void 0),{getOwnerDocument:R}=Le(),U=ct(),V=v=>(U?-1:1)*(typeof v=="number"?v:1),S=D(()=>{var v;return(v=C.current)===null||v===void 0?void 0:v.focus()}),z=D(()=>t),q=D(()=>f),J=n.useCallback(v=>w(ue,v),[w]),ee=n.useCallback(v=>w(de,v),[w]),me=n.useCallback(()=>w(ge),[w]),Re=v=>!(o.finite&&(V(v)>0&&f.currentIndex===0||V(v)<0&&f.currentIndex===f.slides.length-1)),lt=v=>{var Z;I.current=v,(Z=C.current)===null||Z===void 0||Z.style.setProperty(K("swipe_offset"),`${Math.round(v)}px`)},Te=v=>{var Z,B;L.current=v,M.current=(()=>{const xe=p&&v>0?v:d&&v<0?-v:0;return Math.min(Math.max(tt(1-xe/60*(1-.5),2),.5),1)})(),(Z=C.current)===null||Z===void 0||Z.style.setProperty(K("pull_offset"),`${Math.round(v)}px`),(B=C.current)===null||B===void 0||B.style.setProperty(K("pull_opacity"),`${M.current}`)},{prepareAnimation:un}=vt($,(v,Z,B)=>{if($.current&&y)return{keyframes:[{transform:`translate(0, ${v.rect.y-Z.y+B.y}px)`,opacity:v.opacity},{transform:"translate(0, 0)",opacity:1}],duration:v.duration,easing:i.easing.fade}}),at=(v,Z)=>{if(d||p){Te(v);let B=0;$.current&&(B=i.fade*(Z?2:1),un({rect:$.current.getBoundingClientRect(),opacity:M.current,duration:B})),X(()=>{Te(0),P(H.NONE)},B),P(H.ANIMATION),Z||me()}},{prepareAnimation:dn,isAnimationPlaying:fn}=vt($,(v,Z,B)=>{var te;if($.current&&y&&(!((te=f.animation)===null||te===void 0)&&te.duration)){const j=Me(o.spacing),xe=(j.percent?j.percent*y.width/100:j.pixel)||0;return{keyframes:[{transform:`translate(${V(f.globalIndex-v.index)*(y.width+xe)+v.rect.x-Z.x+B.x}px, 0)`},{transform:"translate(0, 0)"}],duration:f.animation.duration,easing:f.animation.easing}}}),Ee=D(v=>{var Z,B;const te=v.offset||0,j=te?i.swipe:(Z=i.navigation)!==null&&Z!==void 0?Z:i.swipe,xe=!te&&!fn()?i.easing.navigation:i.easing.swipe;let{direction:Ce}=v;const _e=(B=v.count)!==null&&B!==void 0?B:1;let ke=H.ANIMATION,ne=j*_e;if(!Ce){const be=y==null?void 0:y.width,ht=v.duration||0,Ae=be?j/be*Math.abs(te):j;_e!==0?(ht<Ae?ne=ne/Ae*Math.max(ht,Ae/5):be&&(ne=j/be*(be-Math.abs(te))),Ce=V(te)>0?ue:de):ne=j/2}let De=0;Ce===ue?Re(V(1))?De=-_e:(ke=H.NONE,ne=j):Ce===de&&(Re(V(-1))?De=_e:(ke=H.NONE,ne=j)),ne=Math.round(ne),W(()=>{lt(0),P(H.NONE)},ne),$.current&&dn({rect:$.current.getBoundingClientRect(),index:f.globalIndex}),P(ke),w(pt,{type:"swipe",increment:De,duration:ne,easing:xe})});n.useEffect(()=>{var v,Z;!((v=f.animation)===null||v===void 0)&&v.increment&&(!((Z=f.animation)===null||Z===void 0)&&Z.duration)&&A(()=>b({type:"swipe",increment:0}),f.animation.duration)},[f.animation,b,A]);const ut=[E,Re,(y==null?void 0:y.width)||0,i.swipe,()=>P(H.SWIPE),v=>lt(v),(v,Z)=>Ee({offset:v,duration:Z,count:1}),v=>Ee({offset:v,count:0})],hn=[()=>{p&&P(H.PULL)},v=>Te(v),v=>at(v),v=>at(v,!0)];co(c,...ut,d,p,...hn,me),lo(_,...ut);const dt=D(()=>{c.focus&&R().querySelector(`.${T(Be)} .${T(bt())}`)&&S()});n.useEffect(dt,[dt]);const ft=D(()=>{var v;(v=s.view)===null||v===void 0||v.call(s,{index:f.currentIndex})});n.useEffect(ft,[f.globalIndex,ft]),n.useEffect(()=>Je(N(ue,v=>Ee({direction:ue,...v})),N(de,v=>Ee({direction:de,...v})),N(pt,v=>b(v))),[N,Ee,b]);const mn=n.useMemo(()=>({prev:J,next:ee,close:me,focus:S,slideRect:y?Nn(y,o.padding):{width:0,height:0},containerRect:y||{width:0,height:0},subscribeSensors:E,containerRef:C,setCarouselRef:x,toolbarWidth:h,setToolbarWidth:m}),[J,ee,me,S,E,y,C,x,h,m,o.padding]);return n.useImperativeHandle(c.ref,()=>({prev:J,next:ee,close:me,focus:S,getLightboxProps:z,getLightboxState:q}),[J,ee,me,S,z,q]),n.createElement("div",{ref:F,className:oe(T(bt()),T(Ke)),style:{..._===H.SWIPE?{[K("swipe_offset")]:`${Math.round(I.current)}px`}:null,..._===H.PULL?{[K("pull_offset")]:`${Math.round(L.current)}px`,[K("pull_opacity")]:`${M.current}`}:null,...c.touchAction!=="none"?{[K("controller_touch_action")]:c.touchAction}:null,...l.container},tabIndex:-1,...k},y&&n.createElement(on.Provider,{value:mn},e,(r=a.controls)===null||r===void 0?void 0:r.call(a)))}const uo=se(Nt,ao);function ae(e){return we(Ot,e)}function wt(e){return we(je,e)}function fo({slide:e,offset:t}){const r=n.useRef(null),{currentIndex:o,slides:i}=le(),{slideRect:c,focus:s}=ce(),{render:l,carousel:{imageFit:a,imageProps:d},on:{click:p},styles:{slide:u},labels:g}=G(),{getOwnerDocument:h}=Le(),m=t!==0;n.useEffect(()=>{var b;m&&(!((b=r.current)===null||b===void 0)&&b.contains(h().activeElement))&&s()},[m,s,h]);const f=()=>{var b,_,P,I;let L=(b=l.slide)===null||b===void 0?void 0:b.call(l,{slide:e,offset:t,rect:c});return!L&&fe(e)&&(L=n.createElement(Se,{slide:e,offset:t,render:l,rect:c,imageFit:a,imageProps:d,onClick:m?void 0:()=>p==null?void 0:p({index:o})})),L?n.createElement(n.Fragment,null,(_=l.slideHeader)===null||_===void 0?void 0:_.call(l,{slide:e}),((P=l.slideContainer)!==null&&P!==void 0?P:(({children:M})=>M))({slide:e,children:L}),(I=l.slideFooter)===null||I===void 0?void 0:I.call(l,{slide:e})):null};return n.createElement("div",{ref:r,className:oe(T(wt()),!m&&T(wt("current")),T(Ke)),...Zn(m),style:u,role:"group","aria-roledescription":ve(g,"Slide"),"aria-label":On(g,i,o+t)},f())}function ho(){const e=G().styles.slide;return n.createElement("div",{className:T(je),style:e})}function mo({carousel:e,labels:t}){const{slides:r,currentIndex:o,globalIndex:i}=le(),{setCarouselRef:c}=ce(),{autoPlaying:s,focusWithin:l}=Bt(),a=Me(e.spacing),d=Me(e.padding),p=Dn(e,r,1),u=[];if(Xt(r))for(let g=o-p;g<=o+p;g+=1){const h=Yt(r,g),m=i-o+g,f=e.finite&&(g<0||g>r.length-1);u.push(f?{key:m}:{key:[`${m}`,Tn(h)].filter(Boolean).join("|"),offset:g-o,slide:h})}return n.createElement("div",{ref:c,className:oe(T(ae()),u.length>0&&T(ae("with_slides"))),style:{[`${K(ae("slides_count"))}`]:u.length,[`${K(ae("spacing_px"))}`]:a.pixel||0,[`${K(ae("spacing_percent"))}`]:a.percent||0,[`${K(ae("padding_px"))}`]:d.pixel||0,[`${K(ae("padding_percent"))}`]:d.percent||0},role:"region","aria-live":s&&!l?"off":"polite","aria-roledescription":ve(t,"Carousel"),"aria-label":ve(t,"Photo gallery")},u.map(({key:g,slide:h,offset:m})=>h?n.createElement(fo,{key:g,slide:h,offset:m}):n.createElement(ho,{key:g})))}const po=se(Ot,mo);function rn(){const{carousel:e}=G(),{slides:t,currentIndex:r}=le(),o=t.length===0||e.finite&&r===0,i=t.length===0||e.finite&&r===t.length-1;return{prevDisabled:o,nextDisabled:i}}function go(e){var t;const r=ct(),{publish:o}=Ie(),{animation:i,controller:c}=G(),{prevDisabled:s,nextDisabled:l}=rn(),a=((t=i.navigation)!==null&&t!==void 0?t:i.swipe)/2,d=xt(()=>o(ue),a),p=xt(()=>o(de),a),u=D(g=>{switch(g.key){case Sn:if(!c.closeOnEscape)return;o(ge);break;case yn:(r?l:s)||(r?p:d)();break;case Ln:(r?s:l)||(r?d:p)();break;default:return}g.stopPropagation()});n.useEffect(()=>e(Ge,u),[e,u])}function Ct({label:e,icon:t,renderIcon:r,action:o,onClick:i,disabled:c,style:s}){return n.createElement(rt,{label:e,icon:t,renderIcon:r,className:T(`navigation_${o}`),disabled:c,onClick:i,style:s,...oo(ce().focus,c)})}function vo({render:{buttonPrev:e,buttonNext:t,iconPrev:r,iconNext:o},styles:i}){const{prev:c,next:s,subscribeSensors:l}=ce(),{prevDisabled:a,nextDisabled:d}=rn();return go(l),n.createElement(n.Fragment,null,e?e():n.createElement(Ct,{label:"Previous",action:ue,icon:Qn,renderIcon:r,style:i.navigationPrev,disabled:a,onClick:c}),t?t():n.createElement(Ct,{label:"Next",action:de,icon:Jn,renderIcon:o,style:i.navigationNext,disabled:d,onClick:s}))}const Eo=se(vn,vo),_t=T(_n),xo=T(Tt);function bo(e){return"style"in e}function Pt(e,t,r){const o=window.getComputedStyle(e),i=r?"padding-left":"padding-right",c=r?o.paddingLeft:o.paddingRight,s=e.style.getPropertyValue(i);return e.style.setProperty(i,`${(ye(c)||0)+t}px`),()=>{s?e.style.setProperty(i,s):e.style.removeProperty(i)}}function wo({noScroll:{disabled:e},children:t}){const r=ct(),{getOwnerDocument:o,getOwnerWindow:i}=Le();return n.useEffect(()=>{if(e)return()=>{};const c=[],s=i(),{body:l,documentElement:a}=o(),d=Math.round(s.innerWidth-a.clientWidth);if(d>0){c.push(Pt(l,d,r));const p=l.getElementsByTagName("*");for(let u=0;u<p.length;u+=1){const g=p[u];bo(g)&&s.getComputedStyle(g).getPropertyValue("position")==="fixed"&&!g.classList.contains(xo)&&c.push(Pt(g,d,r))}}return l.classList.add(_t),()=>{l.classList.remove(_t),c.forEach(p=>p())}},[r,e,o,i]),n.createElement(n.Fragment,null,t)}const Co=se(En,wo);function Mt(e){return we(Be,e)}function St(e,t,r){const o=e.getAttribute(t);return e.setAttribute(t,r),()=>{o?e.setAttribute(t,o):e.removeAttribute(t)}}function _o({portal:{root:e,container:{className:t,style:r,...o}={}},animation:i,styles:c,className:s,on:l,close:a,labels:d,children:p}){const[u,g]=n.useState(!1),[h,m]=n.useState(!1),f=n.useRef([]),b=n.useRef(null),{setTimeout:_}=Oe(),{subscribe:P}=Ie(),L=it()?0:i.fade;n.useEffect(()=>(g(!0),()=>{g(!1),m(!1)}),[]);const M=D(()=>{f.current.forEach(w=>w()),f.current=[]}),k=D(()=>{var w;m(!1),M(),(w=l.exiting)===null||w===void 0||w.call(l),_(()=>{var A;(A=l.exited)===null||A===void 0||A.call(l),a()},L)});n.useEffect(()=>P(ge,k),[P,k]);const E=D(w=>{var A,W,X;Wn(w),m(!0),(A=l.entering)===null||A===void 0||A.call(l);const C=(X=(W=w.parentNode)===null||W===void 0?void 0:W.children)!==null&&X!==void 0?X:[];for(let O=0;O<C.length;O+=1){const y=C[O];["TEMPLATE","SCRIPT","STYLE"].indexOf(y.tagName)===-1&&y!==w&&(f.current.push(St(y,"inert","")),f.current.push(St(y,"aria-hidden","true")))}f.current.push(()=>{var O,y;(y=(O=b.current)===null||O===void 0?void 0:O.focus)===null||y===void 0||y.call(O)}),_(()=>{var O;(O=l.entered)===null||O===void 0||O.call(l)},L)}),N=n.useCallback(w=>{w?E(w):M()},[E,M]);return u?gn.createPortal(n.createElement(io,{ref:N,className:oe(s,t,T(Mt()),T(Tt),h&&T(Mt("open"))),"aria-modal":!0,role:"dialog","aria-label":ve(d,"Lightbox"),style:{...i.fade!==ze.animation.fade?{[K("fade_animation_duration")]:`${L}ms`}:null,...i.easing.fade!==ze.animation.easing.fade?{[K("fade_animation_timing_function")]:i.easing.fade}:null,...c.root,...r},onFocus:w=>{b.current||(b.current=w.relatedTarget)},...o},p),(typeof e=="function"?e():e)||document.body):null}const Po=se(Be,_o);function Mo({children:e}){return n.createElement(n.Fragment,null,e)}const So=se(xn,Mo);function yo(e){return we(Rt,e)}function Lo({toolbar:{buttons:e},render:{buttonClose:t,iconClose:r},styles:o}){const{close:i,setToolbarWidth:c}=ce(),{setContainerRef:s,containerRect:l}=tn();re(()=>{c(l==null?void 0:l.width)},[c,l==null?void 0:l.width]);const a=()=>t?t():n.createElement(rt,{key:ge,label:"Close",icon:qn,renderIcon:r,onClick:i});return n.createElement("div",{ref:s,style:o.toolbar,className:T(yo())},e==null?void 0:e.map(d=>d===ge?a():d))}const Io=se(Rt,Lo);function cn(e,t){var r;return n.createElement(e.module.component,{key:e.module.name,...t},(r=e.children)===null||r===void 0?void 0:r.map(o=>cn(o,t)))}function Oo(e,t={}){const{easing:r,...o}=e,{easing:i,...c}=t;return{easing:{...r,...i},...o,...c}}function No({carousel:e,animation:t,render:r,toolbar:o,controller:i,noScroll:c,on:s,plugins:l,slides:a,index:d,...p}){const{animation:u,carousel:g,render:h,toolbar:m,controller:f,noScroll:b,on:_,slides:P,index:I,plugins:L,...M}=ze,{config:k,augmentation:E}=$n([Y(Po,[Y(Co,[Y(uo,[Y(po),Y(Io),Y(Eo)])])])],l||L),N=E({animation:Oo(u,t),carousel:{...g,...e},render:{...h,...r},toolbar:{...m,...o},controller:{...f,...i},noScroll:{...b,...c},on:{..._,...s},...M,...p});return N.open?n.createElement(Xn,{...N},n.createElement(Hn,{slides:a||P,index:ye(d||I)},n.createElement(jn,null,n.createElement(Un,null,n.createElement(Fn,null,cn(Y(So,k),N)))))):null}const sn={minZoom:1,maxZoomPixelRatio:1,zoomInMultiplier:2,doubleTapDelay:300,doubleClickDelay:500,doubleClickMaxStops:2,keyboardMoveDistance:50,wheelZoomDistanceFactor:100,pinchZoomDistanceFactor:100,pinchZoomV4:!1,scrollToZoom:!1,maxZoom:8};function Ro(e){return Math.min(Math.max(e,Number.EPSILON),1)}function ln(e){const{minZoom:t,...r}={...sn,...e};return{minZoom:Ro(t),...r}}function To(e,t,r,o){const i=n.useRef(void 0),c=n.useRef(void 0),{zoom:s}=G().animation,l=it(),a=D(()=>{var d,p,u;if((d=i.current)===null||d===void 0||d.cancel(),i.current=void 0,c.current&&(o!=null&&o.current)){try{i.current=(u=(p=o.current).animate)===null||u===void 0?void 0:u.call(p,[{transform:c.current},{transform:`scale(${e}) translateX(${t}px) translateY(${r}px)`}],{duration:l?0:s??500,easing:i.current?"ease-out":"ease-in-out"})}catch(g){console.error(g)}c.current=void 0,i.current&&(i.current.onfinish=()=>{i.current=void 0})}});return re(a,[e,t,r,a]),n.useCallback(()=>{c.current=o!=null&&o.current?window.getComputedStyle(o.current).transform:void 0},[o])}function ko(e,t){const{on:r}=G(),o=D(()=>{var i;t||(i=r.zoom)===null||i===void 0||i.call(r,{zoom:e})});n.useEffect(o,[e,o])}function Ne(){const{zoom:e}=G();return ln(e)}function Do(e,t){var r;const o=typeof e=="function"?(r=e(t))!==null&&r!==void 0?r:sn.maxZoom:e;return Math.max(o,1)}function Ao(e,t){var r,o;let i={width:0,height:0},c={width:0,height:0};const{currentSlide:s}=le(),{imageFit:l}=G().carousel,{maxZoomPixelRatio:a,maxZoom:d}=Ne();if(e&&s){const u={...s,...t};if(fe(u)){const g=nt(u,l),h=Math.max(...(((r=u.srcSet)===null||r===void 0?void 0:r.map(f=>f.width))||[]).concat(u.width?[u.width]:[])),m=Math.max(...(((o=u.srcSet)===null||o===void 0?void 0:o.map(f=>f.height))||[]).concat(u.height?[u.height]:[]));h>0&&m>0&&e.width>0&&e.height>0&&(c=g?{width:Math.round(Math.min(h,e.width/e.height*m)),height:Math.round(Math.min(m,e.height/e.width*h))}:{width:h,height:m},c={width:c.width*a,height:c.height*a},i=g?{width:Math.min(e.width,c.width,h),height:Math.min(e.height,c.height,m)}:{width:Math.round(Math.min(e.width,e.height/m*h,h)),height:Math.round(Math.min(e.height,e.width/h*m,m))})}else e.width>0&&e.height>0&&(t&&t.width>0&&t.height>0?i={width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}:i={width:e.width,height:e.height})}const p=s&&i.width?fe(s)?Math.max(tt(c.width/i.width,5),1):Do(d,s):1;return{imageRect:i,maxZoom:p}}function yt(e,t){return Math.hypot(e.clientX-t.clientX,e.clientY-t.clientY)}function Lt(e,t,r=100,o=2){return e*Math.min(1+Math.abs(t/r),o)**Math.sign(t)}function Zo(e,t,r,o,i,c,s,l,a){const d=n.useRef([]),p=n.useRef(0),u=n.useRef(void 0),{globalIndex:g}=le(),{getOwnerWindow:h}=Le(),{containerRef:m,subscribeSensors:f}=ce(),{keyboardMoveDistance:b,zoomInMultiplier:_,wheelZoomDistanceFactor:P,scrollToZoom:I,doubleTapDelay:L,doubleClickDelay:M,doubleClickMaxStops:k,pinchZoomDistanceFactor:E,pinchZoomV4:N}=Ne(),w=n.useCallback(x=>{if(m.current){const{pageX:R,pageY:U}=x,{scrollX:V,scrollY:S}=h(),{left:z,top:q,width:J,height:ee}=m.current.getBoundingClientRect();return[R-z-V-J/2,U-q-S-ee/2]}return[]},[m,h]),A=D(x=>{const{key:R,metaKey:U,ctrlKey:V}=x,S=U||V,z=()=>{x.preventDefault(),x.stopPropagation()};if(e>1){const q=(J,ee)=>{z(),l(J,ee)};R==="ArrowDown"?q(0,b):R==="ArrowUp"?q(0,-b):R==="ArrowLeft"?q(-b,0):R==="ArrowRight"&&q(b,0)}R==="+"||S&&R==="="?(z(),i()):R==="-"||S&&R==="_"?(z(),c()):S&&R==="0"&&(z(),s(1))}),W=D(x=>{if((x.ctrlKey||I)&&Math.abs(x.deltaY)>Math.abs(x.deltaX)){x.stopPropagation(),s(Lt(e,-x.deltaY,P),!0,...w(x));return}e>1&&(x.stopPropagation(),I||l(x.deltaX,x.deltaY))}),X=n.useCallback(x=>{const R=d.current;R.splice(0,R.length,...R.filter(U=>U.pointerId!==x.pointerId))},[]),C=n.useCallback(x=>{X(x),x.persist(),d.current.push(x)},[X]),O=D(x=>{var R;const U=d.current;if(x.pointerType==="mouse"&&x.buttons>1||!(!((R=a==null?void 0:a.current)===null||R===void 0)&&R.contains(x.target)))return;e>1&&x.stopPropagation();const{timeStamp:V}=x;if(U.length===0&&V-p.current<(x.pointerType==="touch"?L:M)){p.current=0;const S=e>=1?e!==r?e*Math.max(r**(1/k),_):1:e!==t?e/Math.max(t**(-1/k),_):1;s(S,!1,...w(x))}else p.current=V;if(C(x),U.length===2){const S=yt(U[0],U[1]);u.current={previousDistance:S,initialDistance:Math.max(S,1),initialZoom:e}}}),y=D(x=>{const R=d.current,U=R.find(V=>V.pointerId===x.pointerId);if(R.length===2&&u.current){x.stopPropagation(),C(x);const V=yt(R[0],R[1]),S=N?u.current.initialZoom/u.current.initialDistance*V:Lt(e,V-u.current.previousDistance,E);s(S,!0,...R.map(z=>w(z)).reduce((z,q)=>q.map((J,ee)=>z[ee]+J/2))),u.current.previousDistance=V;return}e>1&&(x.stopPropagation(),U&&(R.length===1&&l((U.clientX-x.clientX)/e,(U.clientY-x.clientY)/e),C(x)))}),F=n.useCallback(x=>{const R=d.current;R.length===2&&R.find(U=>U.pointerId===x.pointerId)&&(u.current=void 0),X(x)},[X]),$=n.useCallback(()=>{const x=d.current;x.splice(0,x.length),p.current=0,u.current=void 0},[]);nn(f,O,y,F,o),n.useEffect($,[g,$]),n.useEffect(()=>o?()=>{}:Je($,f(Ge,A),f(qe,W)),[o,f,$,A,W])}function Wo(e,t,r){const[o,i]=n.useState(1),[c,s]=n.useState(0),[l,a]=n.useState(0),d=To(o,c,l,r),{currentSlide:p,globalIndex:u}=le(),{containerRect:g,slideRect:h}=ce(),{minZoom:m,zoomInMultiplier:f}=Ne(),b=p&&fe(p)?p.src:void 0,_=!(r!=null&&r.current);re(()=>{i(1),s(0),a(0)},[u,b]);const P=n.useCallback((E,N,w)=>{const A=w||o,W=c-(E||0),X=l-(N||0),C=(e.width*A-h.width)/2/A,O=(e.height*A-h.height)/2/A;s(Math.min(Math.abs(W),Math.max(C,0))*Math.sign(W)),a(Math.min(Math.abs(X),Math.max(O,0))*Math.sign(X))},[o,c,l,h,e.width,e.height]),I=n.useCallback((E,N,w,A)=>{const W=tt(E+.01<t?E-.01>m?E:m:t,5);N||d(),P(w?w*(1/o-1/W):0,A?A*(1/o-1/W):0,W),i(W)},[o,m,t,P,d]),L=D(()=>{o>1&&(o>t&&I(t,!0),P())});re(L,[g.width,g.height,L]);const M=n.useCallback(()=>{const E=o*f;I(o<1&&E>1?1:E)},[o,f,I]),k=n.useCallback(()=>{const E=o/f;I(o>1&&E<1?1:E)},[o,f,I]);return{zoom:o,offsetX:c,offsetY:l,disabled:_,changeOffsets:P,changeZoom:I,zoomIn:M,zoomOut:k}}const an=n.createContext(null),st=ie("useZoom","ZoomControllerContext",an);function $o({children:e}){const[t,r]=n.useState(),{slideRect:o}=ce(),{ref:i,minZoom:c}=Ne(),{imageRect:s,maxZoom:l}=Ao(o,t==null?void 0:t.imageDimensions),{zoom:a,offsetX:d,offsetY:p,disabled:u,changeZoom:g,changeOffsets:h,zoomIn:m,zoomOut:f}=Wo(s,l,t==null?void 0:t.zoomWrapperRef);ko(a,u),Zo(a,c,l,u,m,f,g,h,t==null?void 0:t.zoomWrapperRef);const b=n.useMemo(()=>({zoom:a,minZoom:c,maxZoom:l,offsetX:d,offsetY:p,disabled:u,zoomIn:m,zoomOut:f,changeZoom:g}),[a,c,l,d,p,u,m,f,g]);n.useImperativeHandle(i,()=>b,[b]);const _=n.useMemo(()=>({...b,setZoomWrapper:r}),[b,r]);return n.createElement(an.Provider,{value:_},e)}const Fo=he("ZoomIn",n.createElement(n.Fragment,null,n.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),n.createElement("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"}))),Vo=he("ZoomOut",n.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7z"})),It=n.forwardRef(function({zoomIn:t,onLoseFocus:r},o){const i=n.useRef(!1),c=n.useRef(!1),{zoom:s,minZoom:l,maxZoom:a,zoomIn:d,zoomOut:p,disabled:u}=st(),{render:g}=G(),h=u||(t?s>=a:s<=l);return n.useEffect(()=>{h&&i.current&&c.current&&r(),h||(i.current=!0)},[h,r]),n.createElement(rt,{ref:o,disabled:h,label:t?"Zoom in":"Zoom out",icon:t?Fo:Vo,renderIcon:t?g.iconZoomIn:g.iconZoomOut,onClick:t?d:p,onFocus:()=>{c.current=!0},onBlur:()=>{c.current=!1}})});function Uo(){const e=n.useRef(null),t=n.useRef(null),{focus:r}=ce(),o=n.useCallback(s=>{var l,a;!((l=s.current)===null||l===void 0)&&l.disabled?r():(a=s.current)===null||a===void 0||a.focus()},[r]),i=n.useCallback(()=>o(e),[o]),c=n.useCallback(()=>o(t),[o]);return n.createElement(n.Fragment,null,n.createElement(It,{zoomIn:!0,ref:e,onLoseFocus:c}),n.createElement(It,{ref:t,onLoseFocus:i}))}function Xo(){const{render:e}=G(),t=st();return e.buttonZoom?n.createElement(n.Fragment,null,e.buttonZoom(t)):n.createElement(Uo,null)}function Yo(e){var t;return(((t=e.srcSet)===null||t===void 0?void 0:t.length)||0)>0}function zo({current:e,preload:t},{type:r,source:o}){switch(r){case"fetch":return e?{current:e,preload:o}:{current:o};case"done":return o===t?{current:o}:{current:e,preload:t};default:throw new Error(Vt)}}function Ho(e){var t,r;const[{current:o,preload:i},c]=n.useReducer(zo,{}),{slide:s,rect:l,imageFit:a,render:d,interactive:p}=e,u=s.srcSet.sort((M,k)=>M.width-k.width),g=(t=s.width)!==null&&t!==void 0?t:u[u.length-1].width,h=(r=s.height)!==null&&r!==void 0?r:u[u.length-1].height,m=nt(s,a),f=Math.max(...u.map(M=>M.width)),b=Math.min((m?Math.max:Math.min)(l.width,g*(l.height/h)),f),_=Rn(),P=D(()=>{var M;const k=(M=u.find(E=>E.width>=b*_))!==null&&M!==void 0?M:u[u.length-1];(!o||u.findIndex(E=>E.src===o)<u.findIndex(E=>E===k))&&c({type:"fetch",source:k.src})});re(P,[l.width,l.height,_,P]);const I=D(M=>c({type:"done",source:M})),L={WebkitTransform:p?"initial":"translateZ(0)"};return m||Object.assign(L,l.width/l.height<g/h?{width:"100%",height:"auto"}:{width:"auto",height:"100%"}),n.createElement(n.Fragment,null,i&&i!==o&&n.createElement(Se,{key:"preload",...e,offset:void 0,slide:{...s,src:i,srcSet:void 0},style:{position:"absolute",visibility:"hidden",...L},onLoad:()=>I(i),render:{...d,iconLoading:()=>null,iconError:()=>null}}),o&&n.createElement(Se,{key:"current",...e,slide:{...s,src:o,srcSet:void 0},style:L}))}function Bo({render:e,slide:t,offset:r,rect:o}){var i;const[c,s]=n.useState(),l=n.useRef(null),a=fe(t),{zoom:d,maxZoom:p,offsetX:u,offsetY:g,setZoomWrapper:h}=st(),m=d>1,{carousel:f,on:b}=G(),{currentIndex:_}=le();re(()=>{if(r!==0||a||!l.current)return()=>{};const I=()=>{const M=l.current;if(!M)return;let k=0,E=0;for(const N of M.children)N instanceof HTMLElement&&(k=Math.max(k,N.offsetWidth),E=Math.max(E,N.offsetHeight));s(N=>N&&N.width===k&&N.height===E?N:{width:k,height:E})};if(I(),typeof ResizeObserver>"u")return()=>{};const L=new ResizeObserver(I);for(const M of l.current.children)L.observe(M);return()=>L.disconnect()},[r,a,o]),re(()=>r===0?(h({zoomWrapperRef:l,imageDimensions:c}),()=>h(void 0)):()=>{},[r,c,h]);let P=(i=e.slide)===null||i===void 0?void 0:i.call(e,{slide:t,offset:r,rect:o,zoom:d,maxZoom:p});if(!P&&a){const I={slide:t,offset:r,rect:o,render:e,imageFit:f.imageFit,imageProps:f.imageProps,onClick:r===0?()=>{var L;return(L=b.click)===null||L===void 0?void 0:L.call(b,{index:_})}:void 0};P=Yo(t)?n.createElement(Ho,{...I,slide:t,interactive:m,rect:r===0?{width:o.width*d,height:o.height*d}:o}):n.createElement(Se,{onLoad:L=>s({width:L.naturalWidth,height:L.naturalHeight}),...I})}return P?n.createElement("div",{ref:l,className:oe(T(Cn),T(Ke),T(kt),m&&T(Pn)),style:r===0?{transform:`scale(${d}) translateX(${u}px) translateY(${g}px)`}:void 0},P):null}const Ko=({augment:e,addModule:t})=>{e(({zoom:r,toolbar:o,render:i,controller:c,...s})=>{const l=ln(r);return{zoom:l,toolbar:kn(o,mt,n.createElement(Xo,null)),render:{...i,slide:a=>{var d,p;return fe(a.slide)||a.slide.type!=null&&(!((d=l.supports)===null||d===void 0)&&d.includes(a.slide.type))?n.createElement(Bo,{render:i,...a}):(p=i.slide)===null||p===void 0?void 0:p.call(i,a)}},controller:{...c,preventDefaultWheelY:l.scrollToZoom},...s}}),t(se(mt,$o))};function Qo({src:e,alt:t,open:r,onClose:o}){return pn.jsx(No,{open:r,close:o,slides:[{src:e,alt:t}],plugins:[Ko],zoom:{scrollToZoom:!0,maxZoomPixelRatio:5},styles:{container:{backgroundColor:"rgba(0, 0, 0, 0.85)",backdropFilter:"blur(8px)"},toolbar:{background:"transparent",padding:"16px"},button:{backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:"9999px",color:"#fff",width:40,height:40},icon:{width:20,height:20}},animation:{fade:200}})}export{Qo as default};
@@ -1,4 +1,4 @@
1
- import{j as G}from"./index-RVKphYoh.js";import{r as he}from"./syntax-highlighter-DOKegME5.js";import{k as Iu,b as Pu,s as Nu,_ as Hu,a as Wu,P as Fu,E as zu,S as Vu,c as $u,M as qu,d as ju}from"./main-BHjClXhJ.js";let xr=[],fh=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?fh:xr).push(t=t+n[e])})();function Ku(n){if(n<768)return!1;for(let e=0,t=xr.length;;){let i=e+t>>1;if(n<xr[i])t=i;else if(n>=fh[i])e=i+1;else return!0;if(e==t)return!1}}function ol(n){return n>=127462&&n<=127487}const ll=8205;function _u(n,e,t=!0,i=!0){return(t?uh:Uu)(n,e,i)}function uh(n,e,t){if(e==n.length)return e;e&&dh(n.charCodeAt(e))&&ph(n.charCodeAt(e-1))&&e--;let i=Vs(n,e);for(e+=al(i);e<n.length;){let s=Vs(n,e);if(i==ll||s==ll||t&&Ku(s))e+=al(s),i=s;else if(ol(s)){let r=0,o=e-2;for(;o>=0&&ol(Vs(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Uu(n,e,t){for(;e>1;){let i=uh(n,e-2,t);if(i<e)return i;e--}return 0}function Vs(n,e){let t=n.charCodeAt(e);if(!ph(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return dh(i)?(t-55296<<10)+(i-56320)+65536:t}function dh(n){return n>=56320&&n<57344}function ph(n){return n>=55296&&n<56320}function al(n){return n<65536?1:2}class q{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=ui(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),nt.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=ui(this,e,t);let i=[];return this.decompose(e,t,i,0),nt.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Ri(this),r=new Ri(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Ri(this,e)}iterRange(e,t=this.length){return new mh(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new gh(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?q.empty:e.length<=32?new se(e):nt.from(se.split(e,[]))}}class se extends q{constructor(e,t=Gu(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Xu(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new se(hl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=zn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new se(l,o.length+r.length));else{let a=l.length>>1;i.push(new se(l.slice(0,a)),new se(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof se))return super.replace(e,t,i);[e,t]=ui(this,e,t);let s=zn(this.text,zn(i.text,hl(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new se(s,r):nt.from(se.split(s,[]),r)}sliceString(e,t=this.length,i=`
1
+ import{j as G}from"./index-DFjomhpK.js";import{r as he}from"./syntax-highlighter-DOKegME5.js";import{k as Iu,b as Pu,s as Nu,_ as Hu,a as Wu,P as Fu,E as zu,S as Vu,c as $u,M as qu,d as ju}from"./main-CzCxk59S.js";let xr=[],fh=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?fh:xr).push(t=t+n[e])})();function Ku(n){if(n<768)return!1;for(let e=0,t=xr.length;;){let i=e+t>>1;if(n<xr[i])t=i;else if(n>=fh[i])e=i+1;else return!0;if(e==t)return!1}}function ol(n){return n>=127462&&n<=127487}const ll=8205;function _u(n,e,t=!0,i=!0){return(t?uh:Uu)(n,e,i)}function uh(n,e,t){if(e==n.length)return e;e&&dh(n.charCodeAt(e))&&ph(n.charCodeAt(e-1))&&e--;let i=Vs(n,e);for(e+=al(i);e<n.length;){let s=Vs(n,e);if(i==ll||s==ll||t&&Ku(s))e+=al(s),i=s;else if(ol(s)){let r=0,o=e-2;for(;o>=0&&ol(Vs(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Uu(n,e,t){for(;e>1;){let i=uh(n,e-2,t);if(i<e)return i;e--}return 0}function Vs(n,e){let t=n.charCodeAt(e);if(!ph(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return dh(i)?(t-55296<<10)+(i-56320)+65536:t}function dh(n){return n>=56320&&n<57344}function ph(n){return n>=55296&&n<56320}function al(n){return n<65536?1:2}class q{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=ui(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),nt.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=ui(this,e,t);let i=[];return this.decompose(e,t,i,0),nt.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Ri(this),r=new Ri(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Ri(this,e)}iterRange(e,t=this.length){return new mh(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new gh(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?q.empty:e.length<=32?new se(e):nt.from(se.split(e,[]))}}class se extends q{constructor(e,t=Gu(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Xu(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new se(hl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=zn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new se(l,o.length+r.length));else{let a=l.length>>1;i.push(new se(l.slice(0,a)),new se(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof se))return super.replace(e,t,i);[e,t]=ui(this,e,t);let s=zn(this.text,zn(i.text,hl(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new se(s,r):nt.from(se.split(s,[]),r)}sliceString(e,t=this.length,i=`
2
2
  `){[e,t]=ui(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new se(i,s)),i=[],s=-1);return s>-1&&t.push(new se(i,s)),t}}class nt extends q{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let h=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=ui(this,e,t),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(e>=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new nt(c,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
3
3
  `){[e,t]=ui(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof nt))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new se(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof nt)for(let m of d.children)f(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof se&&a&&(p=c[c.length-1])instanceof se&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new se(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:nt.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new nt(l,t)}}q.empty=new se([""],0);function Gu(n){let e=-1;for(let t of n)e+=t.length+1;return e}function zn(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r<n.length&&s<=i;r++){let l=n[r],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function hl(n,e,t){return zn(n,[""],e,t)}class Ri{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof se?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof se?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(s instanceof se){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof se?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class mh{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Ri(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class gh{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(q.prototype[Symbol.iterator]=function(){return this.iter()},Ri.prototype[Symbol.iterator]=mh.prototype[Symbol.iterator]=gh.prototype[Symbol.iterator]=function(){return this});let Xu=class{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}};function ui(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function fe(n,e,t=!0,i=!0){return _u(n,e,t,i)}function Yu(n){return n>=56320&&n<57344}function Ju(n){return n>=55296&&n<56320}function Le(n,e){let t=n.charCodeAt(e);if(!Ju(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Yu(i)?(t-55296<<10)+(i-56320)+65536:t}function bo(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function st(n){return n<65536?1:2}const kr=/\r\n?|\n/;var Ce=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(Ce||(Ce={}));class ht{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(e,t=!1){wr(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new ht(e)}composeDesc(e){return this.empty?e:e.empty?this:bh(this,e)}mapDesc(e,t=!1){return e.empty?this:vr(this,e,t)}mapPos(e,t=-1,i=Ce.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],h=s+l;if(a<0){if(h>e)return r+(e-s);r+=l}else{if(i!=Ce.Simple&&h>=e&&(i==Ce.TrackDel&&s<e&&h>e||i==Ce.TrackBefore&&s<e||i==Ce.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ht(e)}static create(e){return new ht(e)}}class oe extends ht{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return wr(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return vr(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length<a;)i.push(q.empty);i.push(o?e.slice(r,r+o):q.empty)}r+=o}return new oe(t,i)}compose(e){return this.empty?e:e.empty?this:bh(this,e,!0)}map(e,t=!1){return e.empty?this:vr(this,e,t,!0)}iterChanges(e,t=!1){wr(this,e,t)}get desc(){return ht.create(this.sections)}filter(e){let t=[],i=[],s=[],r=new qi(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break e;let c=Math.min(r.len,a-l);be(s,c,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;be(t,c,f),f>0&&St(i,t,r.text),r.forward(c),l+=c}let h=e[o++];for(;l<h;){if(r.done)break e;let c=Math.min(r.len,h-l);be(t,c,-1),be(s,c,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(c),l+=c}}return{changes:new oe(t,i),filtered:ht.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!s.length)return;o<t&&be(s,t-o,-1);let f=new oe(s,r);l=l?l.compose(f.map(l)):f,s=[],r=[],o=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof oe){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:u=f,insert:d}=c;if(f>u||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?q.of(d.split(i||kr)):d:q.empty,m=p.length;if(f==u&&m==0)return;f<o&&a(),f>o&&be(s,f-o,-1),be(s,u-f,m),St(r,s,p),o=u}}return h(e),a(!l),l}static empty(e){return new oe(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length<s;)i.push(q.empty);i[s]=q.of(r.slice(1)),t.push(r[0],i[s].length)}}}return new oe(t,i)}static createSet(e,t){return new oe(e,t)}}function be(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function St(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(q.empty);n.push(t)}}function wr(n,e,t){let i=n.inserted;for(let s=0,r=0,o=0;o<n.sections.length;){let l=n.sections[o++],a=n.sections[o++];if(a<0)s+=l,r+=l;else{let h=s,c=r,f=q.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[o-2>>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,h,r,c,f),s=h,r=c}}}function vr(n,e,t,i=!1){let s=[],r=i?[]:null,o=new qi(n),l=new qi(e);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);be(s,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!t))){let h=l.len;for(be(s,l.ins,-1);h;){let c=Math.min(o.len,h);o.ins>=0&&a<o.i&&o.len<=c&&(be(s,0,o.ins),r&&St(r,s,o.text),a=o.i),o.forward(c),h-=c}l.next()}else if(o.ins>=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;be(s,h,a<o.i?o.ins:0),r&&a<o.i&&St(r,s,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&l.done)return r?oe.createSet(s,r):ht.create(s);throw new Error("Mismatched change set lengths")}}}function bh(n,e,t=!1){let i=[],s=t?[]:null,r=new qi(n),o=new qi(e);for(let l=!1;;){if(r.done&&o.done)return s?oe.createSet(i,s):ht.create(i);if(r.ins==0)be(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)be(i,0,o.ins,l),s&&St(s,i,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),h=i.length;if(r.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;be(i,a,c,l),s&&c&&St(s,i,o.text)}else o.ins==-1?(be(i,r.off?0:r.len,a,l),s&&St(s,i,r.textBit(a))):(be(i,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&St(s,i,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class qi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?q.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?q.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class wt{constructor(e,t,i,s){this.from=e,this.to=t,this.flags=i,this.goalColumn=s}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new wt(i,s,this.flags,this.goalColumn)}extend(e,t=e,i=0){if(e<=this.anchor&&t>=this.anchor)return x.range(e,t,void 0,void 0,i);let s=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return x.range(this.anchor,s,void 0,void 0,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return x.range(e.anchor,e.head)}static create(e,t,i,s){return new wt(e,t,i,s)}}class x{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:x.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new x([this.main],0)}addRange(e,t=!0){return x.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,x.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new x(e.ranges.map(t=>wt.fromJSON(t)),e.main)}static single(e,t=e){return new x([x.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=i:r.from<i)return x.normalized(e.slice(),t);i=r.to}return new x(e,t)}static cursor(e,t=0,i,s){return wt.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i)),s)}static range(e,t,i,s,r){let o=s==null?7:Math.min(6,s);return!r&&e!=t&&(r=t<e?1:-1),r&&(o|=r<0?8:16),t<e?wt.create(t,e,o|32,i):wt.create(e,t,o,i)}static undirectionalRange(e,t){return wt.create(e,t,64,void 0)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let r=e[s],o=e[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);s<=t&&t--,e.splice(--s,2,r.anchor>r.head?x.range(a,l):x.range(l,a))}}return new x(e,t)}}function yh(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let yo=0;class O{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=yo++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new O(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:xo),!!e.static,e.enables)}of(e){return new Vn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function xo(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class Vn{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=yo++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Sr(f,c)){let d=i(f);if(l?!cl(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let m=Yn(u,p);if(this.dependencies.every(g=>g instanceof O?u.facet(g)===f.facet(g):g instanceof xe?u.field(g,!1)==f.field(g,!1):!0)||(l?cl(d=i(f),m,s):s(d=i(f),m)))return f.values[o]=m,0}else d=i(f);return f.values[o]=d,1}}}get extension(){return this}}function cl(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function Sr(n,e){let t=!1;for(let i of e)Ii(n,i)&1&&(t=!0);return t}function Qu(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=Yn(a,i[c]);if(s[c]==2)for(let u of f)h.push(u);else h.push(f)}return e.combine(h)}return{create(a){for(let h of i)Ii(a,h);return a.values[o]=l(a),1},update(a,h){if(!Sr(a,r))return 0;let c=l(a);return e.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,h){let c=Sr(a,i),f=h.config.facets[e.id],u=h.facet(e);if(f&&!c&&xo(t,f))return a.values[o]=u,0;let d=l(a);return e.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const mn=O.define({static:!0});class xe{constructor(e,t,i,s,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new xe(yo++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(mn).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>{let r=i.facet(mn),o=s.facet(mn),l;return(l=r.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,mn.of({field:this,create:e})]}get extension(){return this}}const Wt={lowest:4,low:3,default:2,high:1,highest:0};function Ci(n){return e=>new xh(e,n)}const Yt={highest:Ci(Wt.highest),high:Ci(Wt.high),default:Ci(Wt.default),low:Ci(Wt.low),lowest:Ci(Wt.lowest)};class xh{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}}class ws{of(e){return new Cr(this,e)}reconfigure(e){return ws.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Cr{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}}class Xn{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of Zu(e,t,o))u instanceof xe?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of s)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=c&&c[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,xo(m,d))a.push(i.facet(p));else{let g=p.combine(d.map(b=>b.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(b=>g.dynamicSlot(b)));l[p.id]=h.length<<1,h.push(g=>Qu(g,p,d))}}let f=h.map(u=>u(l));return new Xn(e,o,f,l,a,r)}}function Zu(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof Cr&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof Cr){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof xh)r(o.inner,o.prec);else if(o instanceof xe)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Vn)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,Wt.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}).`);if(h==o)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(n,Wt.default),i.reduce((o,l)=>o.concat(l))}function Ii(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Yn(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const kh=O.define(),Ar=O.define({combine:n=>n.some(e=>e),static:!0}),wh=O.define({combine:n=>n.length?n[0]:void 0,static:!0}),vh=O.define(),Sh=O.define(),Ch=O.define(),Ah=O.define({combine:n=>n.length?n[0]:!1});class ft{constructor(e,t){this.type=e,this.value=t}static define(){return new ed}}class ed{of(e){return new ft(this,e)}}class td{constructor(e){this.map=e}of(e){return new I(this,e)}}class I{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new I(this.type,t)}is(e){return this.type==e}static define(e={}){return new td(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}I.reconfigure=I.define();I.appendConfig=I.define();class le{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&yh(i,t.newLength),r.some(l=>l.type==le.time)||(this.annotations=r.concat(le.time.of(Date.now())))}static create(e,t,i,s,r,o){return new le(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(le.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}le.time=ft.define();le.userEvent=ft.define();le.addToHistory=ft.define();le.remote=ft.define();function id(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i<n.length&&(s==e.length||e[s]>=n[i]))r=n[i++],o=n[i++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function Mh(n,e,t){var i;let s,r,o;return t?(s=e.changes,r=oe.empty(e.changes.length),o=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),r=n.changes.mapDesc(e.changes,!0),o=n.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:I.mapEffects(n.effects,s).concat(I.mapEffects(e.effects,r)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function Mr(n,e,t){let i=e.selection,s=oi(e.annotations);return e.userEvent&&(s=s.concat(le.userEvent.of(e.userEvent))),{changes:e.changes instanceof oe?e.changes:oe.of(e.changes||[],t,n.facet(wh)),selection:i&&(i instanceof x?i:x.single(i.anchor,i.head)),effects:oi(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function Lh(n,e,t){let i=Mr(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;i=Mh(i,Mr(n,e[r],o?i.changes.newLength:n.doc.length),o)}let s=le.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return sd(t?nd(s):s)}function nd(n){let e=n.startState,t=!0;for(let s of e.facet(vh)){let r=s(n);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:id(t,r))}if(t!==!0){let s,r;if(t===!1)r=n.changes.invertedDesc,s=oe.empty(e.doc.length);else{let o=n.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}n=le.create(e,s,n.selection&&n.selection.map(r),I.mapEffects(n.effects,r),n.annotations,n.scrollIntoView)}let i=e.facet(Sh);for(let s=i.length-1;s>=0;s--){let r=i[s](n);r instanceof le?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof le?n=r[0]:n=Lh(e,oi(r),!1)}return n}function sd(n){let e=n.startState,t=e.facet(Ch),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=Mh(i,Mr(e,r,n.changes.newLength),!0))}return i==n?n:le.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const rd=[];function oi(n){return n==null?rd:Array.isArray(n)?n:[n]}var Q=(function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n})(Q||(Q={}));const od=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Lr;try{Lr=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ld(n){if(Lr)return Lr.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||od.test(t)))return!0}return!1}function ad(n){return e=>{if(!/\S/.test(e))return Q.Space;if(ld(e))return Q.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return Q.Word;return Q.Other}}class V{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)Ii(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return Ii(this,i),Yn(this,i)}update(...e){return Lh(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(ws.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,h)=>s.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(I.reconfigure)?(t=null,i=l.value):l.is(I.appendConfig)&&(t=null,i=oi(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=Xn.resolve(i,s,this),r=new V(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=e.startState.facet(Ar)?e.newSelection:e.newSelection.asSingle();new V(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:x.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=oi(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),h=this.changes(a.changes),c=h.map(s);for(let u=0;u<l;u++)r[u]=r[u].map(c);let f=s.mapDesc(h,!0);r.push(a.range.map(f)),s=s.compose(c),o=I.mapEffects(o,c).concat(I.mapEffects(oi(a.effects),f))}return{changes:s,selection:x.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof oe?e:oe.of(e,this.doc.length,this.facet(V.lineSeparator))}toText(e){return q.of(e.split(this.facet(V.lineSeparator)||kr))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Ii(this,t),Yn(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof xe&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(e,r)){let o=i[r],l=e[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return V.create({doc:e.doc,selection:x.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=Xn.resolve(e.extensions||[],new Map),i=e.doc instanceof q?e.doc:q.of((e.doc||"").split(t.staticFacet(V.lineSeparator)||kr)),s=e.selection?e.selection instanceof x?e.selection:x.single(e.selection.anchor,e.selection.head):x.single(0);return yh(s,i.length),t.staticFacet(Ar)||(s=s.asSingle()),new V(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(V.tabSize)}get lineBreak(){return this.facet(V.lineSeparator)||`
@@ -0,0 +1 @@
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Fira Code,-apple-system,BlinkMacSystemFont,PingFang SC,Segoe UI,Helvetica Neue,Microsoft YaHei,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:Fira Code,SFMono-Regular,ui-monospace,Menlo,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-x-2{left:.5rem;right:.5rem}.inset-y-0{top:0;bottom:0}.inset-y-0\.5{top:.125rem;bottom:.125rem}.bottom-0{bottom:0}.bottom-12{bottom:3rem}.bottom-3{bottom:.75rem}.bottom-4{bottom:1rem}.bottom-\[calc\(100\%\+8px\)\]{bottom:calc(100% + 8px)}.bottom-full{bottom:100%}.left-0{left:0}.left-0\.5{left:.125rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-\[3px\]{left:3px}.left-\[max\(0\.75rem\,env\(safe-area-inset-left\)\)\]{left:max(.75rem,env(safe-area-inset-left))}.right-0{right:0}.right-1\.5{right:.375rem}.right-10{right:2.5rem}.right-2{right:.5rem}.right-8{right:2rem}.top-0{top:0}.top-1\.5{top:.375rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.top-\[5px\]{top:5px}.top-\[calc\(100\%\+6px\)\]{top:calc(100% + 6px)}.top-\[max\(0\.75rem\,env\(safe-area-inset-top\)\)\]{top:max(.75rem,env(safe-area-inset-top))}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[1\]{z-index:1}.z-\[60\]{z-index:60}.col-span-2{grid-column:span 2 / span 2}.col-start-2{grid-column-start:2}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.m-0{margin:0}.m-4{margin:1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\.5{margin-left:.625rem;margin-right:.625rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-1\.5{margin-top:.375rem;margin-bottom:.375rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-auto{margin-top:auto;margin-bottom:auto}.\!ml-auto{margin-left:auto!important}.-ml-1\.5{margin-left:-.375rem}.-mt-1{margin-top:-.25rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-2\.5{margin-bottom:.625rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-\[5px\]{margin-left:5px}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-auto{margin-right:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-\[3px\]{margin-top:3px}.mt-auto{margin-top:auto}.mt-px{margin-top:1px}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.hidden{display:none}.h-0\.5{height:.125rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-20{height:5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[13px\]{height:13px}.h-\[34px\]{height:34px}.h-\[7px\]{height:7px}.h-\[86dvh\]{height:86dvh}.h-\[min\(720px\,86dvh\)\]{height:min(720px,86dvh)}.h-auto{height:auto}.h-full{height:100%}.max-h-28{max-height:7rem}.max-h-40{max-height:10rem}.max-h-44{max-height:11rem}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-72{max-height:18rem}.max-h-80{max-height:20rem}.max-h-\[360px\]{max-height:360px}.max-h-\[46dvh\]{max-height:46dvh}.max-h-\[46vh\]{max-height:46vh}.max-h-\[75dvh\]{max-height:75dvh}.max-h-\[80dvh\]{max-height:80dvh}.max-h-\[88dvh\]{max-height:88dvh}.max-h-\[calc\(100dvh-1\.5rem\)\]{max-height:calc(100dvh - 1.5rem)}.max-h-\[calc\(100dvh-2rem\)\]{max-height:calc(100dvh - 2rem)}.max-h-\[min\(11rem\,30dvh\)\]{max-height:min(11rem,30dvh)}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-12{min-height:3rem}.min-h-14{min-height:3.5rem}.min-h-40{min-height:10rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.min-h-9{min-height:2.25rem}.min-h-\[120px\]{min-height:120px}.min-h-\[320px\]{min-height:320px}.min-h-\[420px\]{min-height:420px}.min-h-\[78px\]{min-height:78px}.min-h-full{min-height:100%}.\!w-40{width:10rem!important}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[13px\]{width:13px}.w-\[286px\]{width:286px}.w-\[320px\]{width:320px}.w-\[7px\]{width:7px}.w-\[calc\(\(100\%-4px\)\/3\)\]{width:calc((100% - 4px) / 3)}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-16{min-width:4rem}.min-w-20{min-width:5rem}.min-w-24{min-width:6rem}.min-w-36{min-width:9rem}.min-w-\[268px\]{min-width:268px}.max-w-2xl{max-width:42rem}.max-w-32{max-width:8rem}.max-w-40{max-width:10rem}.max-w-4xl{max-width:56rem}.max-w-\[160px\]{max-width:160px}.max-w-\[180px\]{max-width:180px}.max-w-\[248px\]{max-width:248px}.max-w-\[250px\]{max-width:250px}.max-w-\[380px\]{max-width:380px}.max-w-\[420px\]{max-width:420px}.max-w-\[440px\]{max-width:440px}.max-w-\[460px\]{max-width:460px}.max-w-\[48\%\]{max-width:48%}.max-w-\[50\%\]{max-width:50%}.max-w-\[640px\]{max-width:640px}.max-w-\[720px\]{max-width:720px}.max-w-\[760px\]{max-width:760px}.max-w-\[76vw\]{max-width:76vw}.max-w-\[78ch\]{max-width:78ch}.max-w-\[80\%\]{max-width:80%}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\[1_0_9rem\]{flex:1 0 9rem}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\.5{--tw-translate-y: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-zoom-in{cursor:zoom-in}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.grid-cols-\[minmax\(160px\,220px\)_1fr\]{grid-template-columns:minmax(160px,220px) 1fr}.grid-rows-\[0fr\]{grid-template-rows:0fr}.grid-rows-\[1fr\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-3\.5{gap:.875rem}.gap-5{gap:1.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-y-0\.5{row-gap:.125rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-3\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.875rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.875rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-zinc-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(var(--zinc-100) / var(--tw-divide-opacity, 1))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[10px\]{border-radius:10px}.rounded-\[14px\]{border-radius:14px}.rounded-\[18px\]{border-radius:18px}.rounded-\[20px\]{border-radius:20px}.rounded-\[5px\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-100{--tw-border-opacity: 1;border-color:rgb(var(--amber-100) / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(var(--amber-200) / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-current{border-color:currentColor}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(var(--emerald-200) / var(--tw-border-opacity, 1))}.border-emerald-300{--tw-border-opacity: 1;border-color:rgb(110 231 183 / var(--tw-border-opacity, 1))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(var(--orange-200) / var(--tw-border-opacity, 1))}.border-red-100{--tw-border-opacity: 1;border-color:rgb(var(--red-100) / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(var(--red-200) / var(--tw-border-opacity, 1))}.border-sky-100{--tw-border-opacity: 1;border-color:rgb(var(--sky-100) / var(--tw-border-opacity, 1))}.border-sky-200{--tw-border-opacity: 1;border-color:rgb(var(--sky-200) / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white\/15{border-color:rgb(var(--surface) / .15)}.border-zinc-100{--tw-border-opacity: 1;border-color:rgb(var(--zinc-100) / var(--tw-border-opacity, 1))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(var(--zinc-200) / var(--tw-border-opacity, 1))}.border-zinc-200\/70{border-color:rgb(var(--zinc-200) / .7)}.border-zinc-200\/80{border-color:rgb(var(--zinc-200) / .8)}.border-zinc-200\/90{border-color:rgb(var(--zinc-200) / .9)}.border-zinc-300{--tw-border-opacity: 1;border-color:rgb(var(--zinc-300) / var(--tw-border-opacity, 1))}.border-zinc-400{--tw-border-opacity: 1;border-color:rgb(var(--zinc-400) / var(--tw-border-opacity, 1))}.border-zinc-800{--tw-border-opacity: 1;border-color:rgb(var(--zinc-800) / var(--tw-border-opacity, 1))}.border-zinc-900{--tw-border-opacity: 1;border-color:rgb(var(--zinc-900) / var(--tw-border-opacity, 1))}.border-l-sky-400{--tw-border-opacity: 1;border-left-color:rgb(56 189 248 / var(--tw-border-opacity, 1))}.border-r-transparent{border-right-color:transparent}.bg-\[\#18181b\]{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity, 1))}.bg-\[rgb\(var\(--bubble\)\)\]{background-color:rgb(var(--bubble))}.bg-\[rgb\(var\(--code-bg\)\)\]{background-color:rgb(var(--code-bg))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(var(--amber-100) / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(var(--amber-50) / var(--tw-bg-opacity, 1))}.bg-amber-50\/60{background-color:rgb(var(--amber-50) / .6)}.bg-amber-50\/70{background-color:rgb(var(--amber-50) / .7)}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(var(--blue-50) / var(--tw-bg-opacity, 1))}.bg-blue-50\/70{background-color:rgb(var(--blue-50) / .7)}.bg-blue-50\/80{background-color:rgb(var(--blue-50) / .8)}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-canvas{--tw-bg-opacity: 1;background-color:rgb(var(--bg) / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(var(--emerald-100) / var(--tw-bg-opacity, 1))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(var(--emerald-50) / var(--tw-bg-opacity, 1))}.bg-emerald-50\/70{background-color:rgb(var(--emerald-50) / .7)}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-500\/10{background-color:#10b9811a}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(var(--orange-50) / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-rail{--tw-bg-opacity: 1;background-color:rgb(var(--rail) / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(var(--red-50) / var(--tw-bg-opacity, 1))}.bg-red-50\/60{background-color:rgb(var(--red-50) / .6)}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(var(--sky-50) / var(--tw-bg-opacity, 1))}.bg-sky-50\/50{background-color:rgb(var(--sky-50) / .5)}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(var(--surface) / var(--tw-bg-opacity, 1))}.bg-white\/20{background-color:rgb(var(--surface) / .2)}.bg-white\/75{background-color:rgb(var(--surface) / .75)}.bg-white\/80{background-color:rgb(var(--surface) / .8)}.bg-zinc-100{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-100) / var(--tw-bg-opacity, 1))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-200) / var(--tw-bg-opacity, 1))}.bg-zinc-200\/40{background-color:rgb(var(--zinc-200) / .4)}.bg-zinc-200\/50{background-color:rgb(var(--zinc-200) / .5)}.bg-zinc-200\/70{background-color:rgb(var(--zinc-200) / .7)}.bg-zinc-300{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-300) / var(--tw-bg-opacity, 1))}.bg-zinc-400{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-400) / var(--tw-bg-opacity, 1))}.bg-zinc-50{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-50) / var(--tw-bg-opacity, 1))}.bg-zinc-50\/50{background-color:rgb(var(--zinc-50) / .5)}.bg-zinc-50\/60{background-color:rgb(var(--zinc-50) / .6)}.bg-zinc-50\/70{background-color:rgb(var(--zinc-50) / .7)}.bg-zinc-500{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-500) / var(--tw-bg-opacity, 1))}.bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-900) / var(--tw-bg-opacity, 1))}.bg-zinc-900\/5{background-color:rgb(var(--zinc-900) / .05)}.bg-zinc-900\/95{background-color:rgb(var(--zinc-900) / .95)}.bg-zinc-950\/20{background-color:rgb(var(--zinc-950) / .2)}.bg-zinc-950\/25{background-color:rgb(var(--zinc-950) / .25)}.bg-zinc-950\/30{background-color:rgb(var(--zinc-950) / .3)}.bg-zinc-950\/35{background-color:rgb(var(--zinc-950) / .35)}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-canvas{--tw-gradient-from: rgb(var(--bg) / 1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(var(--bg) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-canvas{--tw-gradient-to: rgb(var(--bg) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(var(--bg) / 1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[\.32rem\]{padding-left:.32rem;padding-right:.32rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[\.12rem\]{padding-top:.12rem;padding-bottom:.12rem}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:.25rem}.pb-1\.5{padding-bottom:.375rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-3\.5{padding-bottom:.875rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\[max\(1rem\,env\(safe-area-inset-bottom\)\)\]{padding-bottom:max(1rem,env(safe-area-inset-bottom))}.pl-0\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-3\.5{padding-left:.875rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-14{padding-right:3.5rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-5{padding-right:1.25rem}.pr-8{padding-right:2rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:Fira Code,SFMono-Regular,ui-monospace,Menlo,monospace}.font-sans{font-family:Fira Code,-apple-system,BlinkMacSystemFont,PingFang SC,Segoe UI,Helvetica Neue,Microsoft YaHei,sans-serif}.text-\[\.9em\]{font-size:.9em}.text-\[11px\]{font-size:11px}.text-\[12\.5px\]{font-size:12.5px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[18px\]{font-size:18px}.text-\[22px\]{font-size:22px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-\[1\.5\]{line-height:1.5}.leading-\[1\.7\]{line-height:1.7}.leading-none{line-height:1}.tracking-\[-\.01em\]{letter-spacing:-.01em}.tracking-\[-\.02em\]{letter-spacing:-.02em}.tracking-\[\.08em\]{letter-spacing:.08em}.tracking-\[\.12em\]{letter-spacing:.12em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-700\/90{color:#b45309e6}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-700\/80{color:#047857cc}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / var(--tw-text-opacity, 1))}.text-link{--tw-text-opacity: 1;color:rgb(var(--link) / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-950{--tw-text-opacity: 1;color:rgb(69 10 10 / var(--tw-text-opacity, 1))}.text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity, 1))}.text-sky-600\/70{color:#0284c7b3}.text-sky-700{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(var(--surface) / var(--tw-text-opacity, 1))}.text-white\/60{color:rgb(var(--surface) / .6)}.text-white\/80{color:rgb(var(--surface) / .8)}.text-zinc-100{--tw-text-opacity: 1;color:rgb(var(--zinc-100) / var(--tw-text-opacity, 1))}.text-zinc-300{--tw-text-opacity: 1;color:rgb(var(--zinc-300) / var(--tw-text-opacity, 1))}.text-zinc-400{--tw-text-opacity: 1;color:rgb(var(--zinc-400) / var(--tw-text-opacity, 1))}.text-zinc-50{--tw-text-opacity: 1;color:rgb(var(--zinc-50) / var(--tw-text-opacity, 1))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(var(--zinc-500) / var(--tw-text-opacity, 1))}.text-zinc-600{--tw-text-opacity: 1;color:rgb(var(--zinc-600) / var(--tw-text-opacity, 1))}.text-zinc-700{--tw-text-opacity: 1;color:rgb(var(--zinc-700) / var(--tw-text-opacity, 1))}.text-zinc-800{--tw-text-opacity: 1;color:rgb(var(--zinc-800) / var(--tw-text-opacity, 1))}.text-zinc-900{--tw-text-opacity: 1;color:rgb(var(--zinc-900) / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.decoration-\[\#2563eb\]\/40{text-decoration-color:#2563eb66}.decoration-red-300{text-decoration-color:#fca5a5}.decoration-zinc-300{text-decoration-color:rgb(var(--zinc-300) / 1)}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow-\[-12px_0_36px_rgba\(24\,24\,27\,\.1\)\]{--tw-shadow: -12px 0 36px rgba(24,24,27,.1);--tw-shadow-colored: -12px 0 36px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_-12px_36px_rgba\(12\,13\,16\,\.14\)\]{--tw-shadow: 0 -12px 36px rgba(12,13,16,.14);--tw-shadow-colored: 0 -12px 36px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_-5px_18px_rgba\(24\,24\,27\,\.025\)\]{--tw-shadow: 0 -5px 18px rgba(24,24,27,.025);--tw-shadow-colored: 0 -5px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_30px_rgba\(0\,0\,0\,\.12\)\]{--tw-shadow: 0 10px 30px rgba(0,0,0,.12);--tw-shadow-colored: 0 10px 30px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_10px_30px_rgba\(24\,24\,27\,\.28\)\]{--tw-shadow: 0 10px 30px rgba(24,24,27,.28);--tw-shadow-colored: 0 10px 30px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_12px_32px_rgba\(24\,24\,27\,\.12\)\]{--tw-shadow: 0 12px 32px rgba(24,24,27,.12);--tw-shadow-colored: 0 12px 32px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_16px_40px_rgba\(24\,24\,27\,\.16\)\]{--tw-shadow: 0 16px 40px rgba(24,24,27,.16);--tw-shadow-colored: 0 16px 40px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_16px_45px_rgba\(24\,24\,27\,\.16\)\]{--tw-shadow: 0 16px 45px rgba(24,24,27,.16);--tw-shadow-colored: 0 16px 45px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_16px_48px_rgba\(0\,0\,0\,\.16\)\]{--tw-shadow: 0 16px 48px rgba(0,0,0,.16);--tw-shadow-colored: 0 16px 48px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_18px_48px_rgba\(24\,24\,27\,\.18\)\]{--tw-shadow: 0 18px 48px rgba(24,24,27,.18);--tw-shadow-colored: 0 18px 48px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_18px_55px_rgba\(24\,24\,27\,\.16\)\]{--tw-shadow: 0 18px 55px rgba(24,24,27,.16);--tw-shadow-colored: 0 18px 55px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_1px_rgba\(24\,24\,27\,\.04\)\]{--tw-shadow: 0 1px 1px rgba(24,24,27,.04);--tw-shadow-colored: 0 1px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_2px_rgba\(0\,0\,0\,\.04\)\]{--tw-shadow: 0 1px 2px rgba(0,0,0,.04);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_2px_rgba\(0\,0\,0\,\.06\)\]{--tw-shadow: 0 1px 2px rgba(0,0,0,.06);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_2px_rgba\(0\,0\,0\,\.16\)\]{--tw-shadow: 0 1px 2px rgba(0,0,0,.16);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_2px_rgba\(24\,24\,27\,\.04\)\]{--tw-shadow: 0 1px 2px rgba(24,24,27,.04);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_2px_rgba\(24\,24\,27\,\.06\)\]{--tw-shadow: 0 1px 2px rgba(24,24,27,.06);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_1px_2px_rgba\(24\,24\,27\,\.08\)\]{--tw-shadow: 0 1px 2px rgba(24,24,27,.08);--tw-shadow-colored: 0 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_20px_64px_rgba\(24\,24\,27\,\.18\)\]{--tw-shadow: 0 20px 64px rgba(24,24,27,.18);--tw-shadow-colored: 0 20px 64px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_24px_80px_rgba\(24\,24\,27\,\.08\)\]{--tw-shadow: 0 24px 80px rgba(24,24,27,.08);--tw-shadow-colored: 0 24px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_24px_80px_rgba\(24\,24\,27\,\.2\)\]{--tw-shadow: 0 24px 80px rgba(24,24,27,.2);--tw-shadow-colored: 0 24px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_24px_80px_rgba\(24\,24\,27\,\.22\)\]{--tw-shadow: 0 24px 80px rgba(24,24,27,.22);--tw-shadow-colored: 0 24px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_28px_90px_rgba\(24\,24\,27\,\.24\)\]{--tw-shadow: 0 28px 90px rgba(24,24,27,.24);--tw-shadow-colored: 0 28px 90px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_8px_rgba\(24\,24\,27\,\.03\)\]{--tw-shadow: 0 2px 8px rgba(24,24,27,.03);--tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_8px_rgba\(24\,24\,27\,\.08\)\]{--tw-shadow: 0 2px 8px rgba(24,24,27,.08);--tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_3px_12px_rgba\(24\,24\,27\,\.05\)\]{--tw-shadow: 0 3px 12px rgba(24,24,27,.05);--tw-shadow-colored: 0 3px 12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_4px_14px_rgba\(0\,0\,0\,\.12\)\]{--tw-shadow: 0 4px 14px rgba(0,0,0,.12);--tw-shadow-colored: 0 4px 14px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[12px_0_36px_rgba\(24\,24\,27\,\.08\)\]{--tw-shadow: 12px 0 36px rgba(24,24,27,.08);--tw-shadow-colored: 12px 0 36px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-amber-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--amber-100) / var(--tw-ring-opacity, 1))}.ring-blue-200\/70{--tw-ring-color: rgb(var(--blue-200) / .7)}.ring-red-100{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--red-100) / var(--tw-ring-opacity, 1))}.ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--surface) / var(--tw-ring-opacity, 1))}.ring-white\/10{--tw-ring-color: rgb(var(--surface) / .1)}.ring-zinc-200{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--zinc-200) / var(--tw-ring-opacity, 1))}.ring-zinc-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--zinc-300) / var(--tw-ring-opacity, 1))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.brightness-0{--tw-brightness: brightness(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[background-color\,opacity\,transform\]{transition-property:background-color,opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[border-color\,box-shadow\,background-color\]{transition-property:border-color,box-shadow,background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[border-color\,box-shadow\,transform\]{transition-property:border-color,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[color\,background-color\,transform\]{transition-property:color,background-color,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[color\,background-color\]{transition-property:color,background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[grid-template-rows\,opacity\]{transition-property:grid-template-rows,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[opacity\,transform\,visibility\]{transition-property:opacity,transform,visibility;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-\[cubic-bezier\(\.16\,1\,\.3\,1\)\]{transition-timing-function:cubic-bezier(.16,1,.3,1)}.ease-\[cubic-bezier\(\.2\,0\,0\,1\)\]{transition-timing-function:cubic-bezier(.2,0,0,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\[contain\:layout_paint\]{contain:layout paint}.\[overflow-anchor\:none\]{overflow-anchor:none}.\[writing-mode\:vertical-rl\]{writing-mode:vertical-rl}:root{color-scheme:light;--bg: 255 255 255;--rail: 249 249 249;--ink: 255 255 255;--surface: 255 255 255;--zinc-50: 250 250 250;--zinc-100: 236 236 236;--zinc-200: 236 236 236;--zinc-300: 212 212 212;--zinc-400: 163 163 163;--zinc-500: 107 107 107;--zinc-600: 82 82 82;--zinc-700: 63 63 63;--zinc-800: 38 38 38;--zinc-900: 13 13 13;--zinc-950: 0 0 0;--red-50: 254 242 242;--red-100: 254 226 226;--red-200: 254 202 202;--amber-50: 255 251 235;--amber-100: 254 243 199;--amber-200: 253 230 138;--orange-50: 255 247 237;--orange-100: 255 237 213;--orange-200: 254 215 170;--emerald-50: 236 253 245;--emerald-100: 209 250 229;--emerald-200: 167 243 208;--sky-50: 240 249 255;--sky-100: 224 242 254;--sky-200: 186 230 253;--blue-50: 239 246 255;--blue-100: 219 234 254;--blue-200: 191 219 254;--accent: 13 13 13;--link: 37 99 235;--bubble: 244 244 244;--code-bg: 247 247 247}:root[data-theme=dark]{color-scheme:dark;--bg: 33 33 33;--rail: 23 23 23;--ink: 33 33 33;--surface: 42 42 42;--zinc-50: 39 39 39;--zinc-100: 47 47 47;--zinc-200: 51 51 51;--zinc-300: 69 69 69;--zinc-400: 111 111 111;--zinc-500: 155 155 155;--zinc-600: 180 180 180;--zinc-700: 204 204 204;--zinc-800: 222 222 222;--zinc-900: 236 236 236;--zinc-950: 250 250 250;--red-50: 62 25 29;--red-100: 84 31 37;--red-200: 122 44 51;--amber-50: 60 43 14;--amber-100: 82 58 16;--amber-200: 116 82 20;--orange-50: 62 33 17;--orange-100: 84 44 20;--orange-200: 116 61 28;--emerald-50: 16 48 38;--emerald-100: 20 66 52;--emerald-200: 28 96 74;--sky-50: 18 42 62;--sky-100: 22 58 86;--sky-200: 30 82 118;--blue-50: 22 38 70;--blue-100: 28 52 96;--blue-200: 38 70 126;--accent: 236 236 236;--link: 122 167 255;--bubble: 47 47 47;--code-bg: 26 26 26}*{box-sizing:border-box}html,body{height:100%}#root{height:100dvh;overflow:hidden}@font-face{font-family:Fira Code;src:url(/fonts/FiraCode-VF.woff2) format("woff2");font-weight:300 700;font-style:normal;font-display:swap}body{margin:0;overflow:hidden;background:rgb(var(--bg));color:rgb(var(--zinc-900));font-family:Fira Code,-apple-system,BlinkMacSystemFont,PingFang SC,Segoe UI,Helvetica Neue,Microsoft YaHei,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button:not(:disabled){cursor:pointer}::-moz-selection{background:rgb(var(--zinc-300));color:rgb(var(--zinc-900))}::selection{background:rgb(var(--zinc-300));color:rgb(var(--zinc-900))}*{scrollbar-color:rgb(var(--zinc-300)) transparent;scrollbar-width:thin}button:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:none;box-shadow:0 0 0 3px #71717a38}input:focus,input:focus-visible,textarea:focus,textarea:focus-visible,select:focus,select:focus-visible{outline:none}.ant-segmented-item-label{display:inline-flex;align-items:center;justify-content:center;gap:6px}.ant-segmented-item-icon+*{margin-inline-start:0!important}.ant-input-prefix svg,.ant-input-suffix svg,.ant-select-selection-item svg{display:inline-block}.ui-field,.ui-field-within{transition:border-color .15s ease,box-shadow .15s ease}.ui-field:hover:not(:disabled):not(:focus),.ui-field-within:hover:not(:focus-within){border-color:rgb(var(--zinc-400))}.ui-field:focus,.ui-field:focus-visible,.ui-field-within:focus-within,button.ui-field[aria-expanded=true]{border-color:rgb(var(--zinc-500))!important;box-shadow:0 1px 2px #0000000d!important}.ui-field[aria-invalid=true],.ui-field[aria-invalid=true]:focus{border-color:#fca5a5!important;box-shadow:0 0 0 3px #f8717129!important}@media screen and (pointer:coarse)and (max-width:820px){textarea,input:not([type=checkbox]):not([type=radio]):not([type=range]),select,.composer-editor .ProseMirror{font-size:16px!important}.composer-editor .ProseMirror{line-height:26px!important}.composer-editor-placeholder{font-size:16px!important;line-height:26px!important}}.markdown{overflow-wrap:anywhere}.markdown-table-scroll{max-width:100%;min-width:0;overflow-x:auto}.markdown-table-scroll table{width:100%;border-collapse:collapse}.markdown th,.markdown td{border:1px solid rgb(var(--zinc-200));padding:.4rem .7rem;text-align:left;white-space:nowrap;overflow-wrap:normal;word-break:keep-all}.markdown th{background:rgb(var(--zinc-100))}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown p{margin:.75em 0}.markdown h1,.markdown h2,.markdown h3{margin:1.2em 0 .5em;color:rgb(var(--zinc-900));font-weight:650;letter-spacing:-.02em}.markdown h1{font-size:1.35rem}.markdown h2{font-size:1.15rem}.markdown h3{font-size:1rem}.markdown ul,.markdown ol{margin:.7em 0;padding-left:1.4rem}.markdown li{margin:.25em 0}.markdown a{color:rgb(var(--link));text-decoration:underline;text-underline-offset:3px}.ui-slash-command{display:inline-block;padding:0 .34rem;border-radius:.4rem;background:rgb(var(--link) / .08);box-shadow:inset 0 0 0 1px rgb(var(--link) / .14);color:rgb(var(--link));font-family:inherit;font-size:.9em;font-weight:600;line-height:1.5;white-space:nowrap}.markdown blockquote{margin:.8em 0;border-left:3px solid rgb(var(--zinc-300));padding-left:1em;color:rgb(var(--zinc-600))}.code-renderer,.code-renderer *{overflow-wrap:normal}.code-renderer-scroll{scrollbar-color:rgb(var(--zinc-600)) transparent;scrollbar-gutter:stable;-moz-tab-size:2;-o-tab-size:2;tab-size:2}.reasoning summary{list-style:none}.reasoning summary::-webkit-details-marker{display:none}.ui-palette-field input:focus,.ui-palette-field input:focus-visible{outline:none}.ui-scroll-fade{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 22px),transparent)}@keyframes ui-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes ui-dialog-in{0%{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}@keyframes ui-popover-in{0%{opacity:0;transform:translateY(-4px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes ui-timeline-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-empty-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-side-panel-in{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:translate(0)}}@keyframes ui-status-pulse{0%,to{opacity:.55}50%{opacity:1}}@keyframes ui-live-dot{0%,to{opacity:.55;transform:scale(.82)}50%{opacity:1;transform:scale(1)}}@keyframes ui-thinking-caret{0%,45%{opacity:1}46%,to{opacity:0}}@keyframes ui-live-orbit{0%,to{box-shadow:0 0 #d9770614}50%{box-shadow:0 0 0 5px #d9770600}}@keyframes ui-disclosure-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-shimmer{0%{background-position:120% 0}to{background-position:-120% 0}}@keyframes ui-tooltip-in{0%{opacity:0}to{opacity:1}}@keyframes ui-typewriter-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.ui-overlay{padding-top:max(1rem,env(safe-area-inset-top));padding-bottom:max(1rem,env(safe-area-inset-bottom))}.ui-page{padding-top:max(2rem,env(safe-area-inset-top));padding-bottom:max(2rem,env(safe-area-inset-bottom))}.ui-session-topbar{height:calc(52px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}.ui-sidebar-safe{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.ant-select-dropdown,.ant-picker-dropdown,.ant-dropdown{max-width:calc(100vw - 16px)}@media(prefers-reduced-motion:no-preference){.ui-overlay{animation:ui-overlay-in .16s ease-out both}.ui-dialog{animation:ui-dialog-in .2s cubic-bezier(.2,0,0,1) both;transform-origin:50% 35%}.ui-popover{animation:ui-popover-in .16s cubic-bezier(.2,0,0,1) both;transform-origin:top}.ui-disclosure-body{animation:ui-disclosure-in .18s cubic-bezier(.2,0,0,1) both}.ui-shimmer-text{color:transparent;background-image:linear-gradient(100deg,rgb(var(--zinc-500)) 35%,rgb(var(--zinc-900)),rgb(var(--zinc-500)) 65%);background-size:240% 100%;-webkit-background-clip:text;background-clip:text;animation:ui-shimmer 1.8s linear infinite}.ui-tooltip{animation:ui-tooltip-in .12s ease-out both}.ui-typewriter{animation:ui-typewriter-in .18s ease-out both}.ui-timeline-item{animation:ui-timeline-in .2s cubic-bezier(.2,0,0,1) both}.ui-empty-state{animation:ui-empty-in .22s cubic-bezier(.2,0,0,1) both}.ui-side-panel{animation:ui-side-panel-in .22s cubic-bezier(.2,0,0,1) both}.ui-session-row{animation:ui-timeline-in .18s cubic-bezier(.2,0,0,1) both}.ui-status-pulse{animation:ui-status-pulse 1.5s ease-in-out infinite}.ui-live-dot{animation:ui-live-dot 1.3s ease-in-out infinite}.ui-thinking-caret{animation:ui-thinking-caret .9s steps(1,end) infinite}.ui-live-orbit{animation:ui-live-orbit 1.8s ease-in-out infinite}}.ui-typewriter-caret>p:last-child:after,.ui-typewriter-caret>li:last-child:after,.ui-typewriter-caret>ul:last-child>li:last-child:after,.ui-typewriter-caret>ol:last-child>li:last-child:after,.ui-typewriter-caret>blockquote:last-child>p:last-child:after,.ui-typewriter-caret>pre:last-child:after,.ui-typewriter-caret>.markdown-table-scroll:last-child table tr:last-child>*:last-child:after{content:"";display:inline-block;width:2px;height:1.02em;margin-left:3px;vertical-align:text-bottom;background-color:currentColor;animation:ui-typewriter-caret-blink 1.1s steps(2,start) infinite}@keyframes ui-typewriter-caret-blink{0%,50%{opacity:1}50.01%,to{opacity:.15}}@media(prefers-reduced-motion:reduce){.ui-typewriter-caret>p:last-child:after,.ui-typewriter-caret>li:last-child:after,.ui-typewriter-caret>ul:last-child>li:last-child:after,.ui-typewriter-caret>ol:last-child>li:last-child:after,.ui-typewriter-caret>blockquote:last-child>p:last-child:after,.ui-typewriter-caret>pre:last-child:after,.ui-typewriter-caret>.markdown-table-scroll:last-child table tr:last-child>*:last-child:after{animation:none!important;opacity:.55}}.ui-tw-unit{animation:ui-tw-unit-in .2s cubic-bezier(.2,.8,.2,1) both}@keyframes ui-tw-unit-in{0%{opacity:.15;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.ui-tw-unit{animation:none}.ui-shimmer-text{color:rgb(var(--zinc-500));background:none;animation:none}}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.yarl__button:hover{background-color:#fff3!important}.yarl__toolbar{gap:8px}.ui-cat{--mx: 0;--my: 0;position:relative;color:rgb(var(--zinc-800))}.ui-cat-stage{display:block;padding:0;border:0;background:none;color:inherit;cursor:pointer}.ui-cat-head{transform:translate(calc(var(--mx) * 3px),calc(var(--my) * 2px)) rotate(calc(var(--mx) * 4deg));transform-box:view-box;transform-origin:48px 58px;transition:transform .12s linear}.ui-cat-pupil{transform:translate(calc(var(--mx) * 2.4px),calc(var(--my) * 2.4px));transition:transform .12s linear}.ui-cat-typing .ui-cat-pupil{transform:translateY(2.8px)}.ui-cat-eye{transform-box:fill-box;transform-origin:center;transition:transform .12s ease-out,opacity .15s ease}.ui-cat-blinking .ui-cat-eye{transform:scaleY(.1);transition-duration:60ms}.ui-cat-sleepy .ui-cat-eye{transform:scaleY(.45)}.ui-cat-happy{opacity:0;transition:opacity .15s ease}.ui-cat-stage:hover .ui-cat-happy{opacity:1}.ui-cat-stage:hover .ui-cat-eye{opacity:0}.ui-cat-ear{transform-box:fill-box;transform-origin:bottom center;transition:transform .18s ease-out}.ui-cat-stage:hover .ui-cat-ear-l{transform:rotate(-3deg)}.ui-cat-stage:hover .ui-cat-ear-r{transform:rotate(3deg)}.ui-cat-whiskers{transform-box:fill-box;transition:transform .18s ease-out}.ui-cat-stage:hover .ui-cat-whiskers-l{transform:rotate(-4deg)}.ui-cat-stage:hover .ui-cat-whiskers-r{transform:rotate(4deg)}.ui-cat-tail{transform-box:fill-box;transform-origin:0% 100%}.ui-cat-twitching-a .ui-cat-ear-l{animation:ui-cat-twitch-l .3s ease-in-out}.ui-cat-twitching-a .ui-cat-ear-r{animation:ui-cat-twitch-r .3s ease-in-out}.ui-cat-twitching-b .ui-cat-ear-l{animation:ui-cat-twitch-l-alt .3s ease-in-out}.ui-cat-twitching-b .ui-cat-ear-r{animation:ui-cat-twitch-r-alt .3s ease-in-out}@keyframes ui-cat-tail{0%,to{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}@keyframes ui-cat-twitch-l{0%,to{transform:rotate(0)}30%{transform:rotate(-10deg)}65%{transform:rotate(5deg)}}@keyframes ui-cat-twitch-r{0%,to{transform:rotate(0)}30%{transform:rotate(10deg)}65%{transform:rotate(-5deg)}}@keyframes ui-cat-twitch-l-alt{0%,to{transform:rotate(0)}30%{transform:rotate(-10deg)}65%{transform:rotate(5deg)}}@keyframes ui-cat-twitch-r-alt{0%,to{transform:rotate(0)}30%{transform:rotate(10deg)}65%{transform:rotate(-5deg)}}@keyframes ui-cat-ear-wiggle{0%,to{transform:rotate(0)}40%{transform:rotate(-4deg)}}@keyframes ui-cat-ear-wiggle-alt{0%,to{transform:rotate(0)}40%{transform:rotate(-4deg)}}@media(prefers-reduced-motion:no-preference){.ui-cat-tail{animation:ui-cat-tail 3s ease-in-out infinite}.ui-cat-ear-wiggle-a .ui-cat-ear-l{animation:ui-cat-ear-wiggle .16s ease-out}.ui-cat-ear-wiggle-a .ui-cat-ear-r{animation:ui-cat-ear-wiggle .16s ease-out reverse}.ui-cat-ear-wiggle-b .ui-cat-ear-l{animation:ui-cat-ear-wiggle-alt .16s ease-out}.ui-cat-ear-wiggle-b .ui-cat-ear-r{animation:ui-cat-ear-wiggle-alt .16s ease-out reverse}}@media(prefers-reduced-motion:reduce){.ui-cat-head,.ui-cat-pupil,.ui-cat-eye,.ui-cat-ear,.ui-cat-whiskers,.ui-cat-tail{transform:none!important;animation:none!important;transition:none!important}}@keyframes ui-skeleton{0%{background-position:150% 0}to{background-position:-150% 0}}.ui-skeleton{background-image:linear-gradient(100deg,transparent 30%,rgb(var(--zinc-50) / .9) 50%,transparent 70%);background-size:250% 100%}@media(prefers-reduced-motion:no-preference){.ui-skeleton{animation:ui-skeleton 1.6s linear infinite}}.ui-hero-title{color:rgb(var(--zinc-900))}html[data-theme=dark] .ui-mono-brand:not(.invert){filter:invert(1) hue-rotate(180deg)}html[data-theme=dark] .text-red-500{color:#f87171}html[data-theme=dark] .text-red-600,html[data-theme=dark] .text-red-700,html[data-theme=dark] .text-red-800{color:#fca5a5}html[data-theme=dark] .text-amber-500,html[data-theme=dark] .text-amber-600{color:#fbbf24}html[data-theme=dark] .text-amber-700,html[data-theme=dark] .text-amber-800,html[data-theme=dark] .text-amber-900,html[data-theme=dark] .text-amber-950{color:#fcd34d}html[data-theme=dark] .text-orange-700{color:#fdba74}html[data-theme=dark] .text-emerald-600,html[data-theme=dark] .text-emerald-700,html[data-theme=dark] .text-emerald-800{color:#6ee7b7}html[data-theme=dark] .text-sky-500,html[data-theme=dark] .text-sky-600,html[data-theme=dark] .text-sky-700{color:#7dd3fc}html[data-theme=dark] .text-blue-600,html[data-theme=dark] .text-blue-700{color:#93c5fd}[data-closing]{pointer-events:none}@keyframes ui-overlay-out{to{opacity:0}}@keyframes ui-dialog-out{to{opacity:0;transform:translateY(8px) scale(.97)}}@media(prefers-reduced-motion:no-preference){[data-closing] .ui-overlay{animation:ui-overlay-out .18s ease-in forwards}[data-closing] .ui-dialog{animation:ui-dialog-out .18s cubic-bezier(.4,0,1,1) forwards}}.composer-editor{position:relative;width:100%;min-width:0}.composer-editor .milkdown{min-width:0}.composer-editor .ProseMirror{box-sizing:border-box;min-height:44px;max-height:192px;overflow-y:auto;padding:6px 10px;outline:none;color:rgb(var(--zinc-900));font-family:inherit;font-size:14px;line-height:24px;caret-color:rgb(var(--zinc-900))}.composer-editor-placeholder{pointer-events:none;position:absolute;top:6px;left:10px;right:10px;color:rgb(var(--zinc-400));font-size:14px;line-height:24px}@media(min-width:640px){.composer-editor .ProseMirror{min-height:64px;padding:8px 10px}.composer-editor-placeholder{top:8px}}@media(max-width:639px){.composer-toolbar-scroll{mask-image:linear-gradient(to right,#000 calc(100% - 20px),transparent);-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 20px),transparent)}}.composer-editor .ProseMirror>*{margin:0}.composer-editor .ProseMirror>*+*{margin-top:4px}.composer-editor .ProseMirror p{margin:0}.composer-editor .ProseMirror h1{font-size:20px;line-height:28px;font-weight:600}.composer-editor .ProseMirror h2{font-size:18px;line-height:26px;font-weight:600}.composer-editor .ProseMirror h3{font-size:16px;line-height:24px;font-weight:600}.composer-editor .ProseMirror h4,.composer-editor .ProseMirror h5,.composer-editor .ProseMirror h6{font-size:14px;line-height:24px;font-weight:600}.composer-editor .ProseMirror h5,.composer-editor .ProseMirror h6{color:rgb(var(--zinc-600))}.composer-editor .ProseMirror blockquote{border-left:2px solid rgb(var(--zinc-200));padding-left:10px;color:rgb(var(--zinc-500))}.composer-editor .ProseMirror code{background:rgb(var(--code-bg));border-radius:4px;padding:1px 4px;font-family:Fira Code,ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}.composer-editor .ProseMirror pre{background:rgb(var(--code-bg));border-radius:6px;padding:8px 10px;overflow-x:auto}.composer-editor .ProseMirror pre code{background:none;padding:0;font-size:12px;line-height:20px}.composer-editor .ProseMirror a{color:rgb(var(--link));text-decoration:underline;text-underline-offset:2px}.composer-editor .ProseMirror ul,.composer-editor .ProseMirror ol{padding-left:20px}.composer-editor .ProseMirror ul{list-style:disc}.composer-editor .ProseMirror ol{list-style:decimal}.composer-editor .ProseMirror li{margin:0}.composer-editor .ProseMirror li[data-item-type=task]{list-style:none}.composer-editor .ProseMirror li[data-item-type=task] input{margin-right:6px;vertical-align:middle}.composer-editor .ProseMirror hr{border:0;border-top:1px solid rgb(var(--zinc-300));margin:8px 0}.composer-editor .ProseMirror table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.composer-editor .ProseMirror th,.composer-editor .ProseMirror td{border:1px solid rgb(var(--zinc-200));padding:3px 6px}.composer-editor .ProseMirror th{background:rgb(var(--zinc-50));font-weight:600}.composer-editor .ProseMirror img{max-width:100%;max-height:120px;border-radius:4px}.composer-editor .ProseMirror .ProseMirror-selectednode{outline:2px solid rgb(var(--zinc-300))}html[data-theme=dark] .ui-selected-tile{background-color:rgb(var(--accent) / .22);color:rgb(var(--accent));box-shadow:inset 0 0 0 1px rgb(var(--accent) / .35)}.ui-logo-tile{border-radius:25%}html[data-theme=dark] .ui-logo-tile{box-shadow:0 0 0 1px #ffffff24}.placeholder\:text-zinc-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(var(--zinc-400) / var(--tw-text-opacity, 1))}.placeholder\:text-zinc-400::placeholder{--tw-text-opacity: 1;color:rgb(var(--zinc-400) / var(--tw-text-opacity, 1))}.first\:border-t-0:first-child{border-top-width:0px}.last\:border-b-0:last-child{border-bottom-width:0px}.focus-within\:border-zinc-400:focus-within{--tw-border-opacity: 1;border-color:rgb(var(--zinc-400) / var(--tw-border-opacity, 1))}.focus-within\:bg-white:focus-within{--tw-bg-opacity: 1;background-color:rgb(var(--surface) / var(--tw-bg-opacity, 1))}.hover\:-translate-y-px:hover{--tw-translate-y: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-zinc-300:hover{--tw-border-opacity: 1;border-color:rgb(var(--zinc-300) / var(--tw-border-opacity, 1))}.hover\:border-zinc-400:hover{--tw-border-opacity: 1;border-color:rgb(var(--zinc-400) / var(--tw-border-opacity, 1))}.hover\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(var(--amber-100) / var(--tw-bg-opacity, 1))}.hover\:bg-blue-400\/30:hover{background-color:#60a5fa4d}.hover\:bg-emerald-50:hover{--tw-bg-opacity: 1;background-color:rgb(var(--emerald-50) / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(var(--red-50) / var(--tw-bg-opacity, 1))}.hover\:bg-sky-100:hover{--tw-bg-opacity: 1;background-color:rgb(var(--sky-100) / var(--tw-bg-opacity, 1))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(var(--surface) / var(--tw-bg-opacity, 1))}.hover\:bg-white\/15:hover{background-color:rgb(var(--surface) / .15)}.hover\:bg-white\/70:hover{background-color:rgb(var(--surface) / .7)}.hover\:bg-zinc-100:hover{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-100) / var(--tw-bg-opacity, 1))}.hover\:bg-zinc-100\/60:hover{background-color:rgb(var(--zinc-100) / .6)}.hover\:bg-zinc-100\/70:hover{background-color:rgb(var(--zinc-100) / .7)}.hover\:bg-zinc-200:hover{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-200) / var(--tw-bg-opacity, 1))}.hover\:bg-zinc-200\/60:hover{background-color:rgb(var(--zinc-200) / .6)}.hover\:bg-zinc-50:hover{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-50) / var(--tw-bg-opacity, 1))}.hover\:bg-zinc-50\/80:hover{background-color:rgb(var(--zinc-50) / .8)}.hover\:bg-zinc-700:hover{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-700) / var(--tw-bg-opacity, 1))}.hover\:bg-zinc-800:hover{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-800) / var(--tw-bg-opacity, 1))}.hover\:bg-zinc-900:hover{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-900) / var(--tw-bg-opacity, 1))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.hover\:text-red-950:hover{--tw-text-opacity: 1;color:rgb(69 10 10 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(var(--surface) / var(--tw-text-opacity, 1))}.hover\:text-zinc-100:hover{--tw-text-opacity: 1;color:rgb(var(--zinc-100) / var(--tw-text-opacity, 1))}.hover\:text-zinc-600:hover{--tw-text-opacity: 1;color:rgb(var(--zinc-600) / var(--tw-text-opacity, 1))}.hover\:text-zinc-700:hover{--tw-text-opacity: 1;color:rgb(var(--zinc-700) / var(--tw-text-opacity, 1))}.hover\:text-zinc-800:hover{--tw-text-opacity: 1;color:rgb(var(--zinc-800) / var(--tw-text-opacity, 1))}.hover\:text-zinc-900:hover{--tw-text-opacity: 1;color:rgb(var(--zinc-900) / var(--tw-text-opacity, 1))}.hover\:decoration-\[\#2563eb\]:hover{text-decoration-color:#2563eb}.hover\:shadow-\[0_4px_14px_rgba\(24\,24\,27\,\.06\)\]:hover{--tw-shadow: 0 4px 14px rgba(24,24,27,.06);--tw-shadow-colored: 0 4px 14px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-zinc-400:focus{--tw-border-opacity: 1;border-color:rgb(var(--zinc-400) / var(--tw-border-opacity, 1))}.focus\:border-zinc-500:focus{--tw-border-opacity: 1;border-color:rgb(var(--zinc-500) / var(--tw-border-opacity, 1))}.focus\:opacity-100:focus{opacity:1}.focus-visible\:relative:focus-visible{position:relative}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:bg-zinc-100:focus-visible{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-100) / var(--tw-bg-opacity, 1))}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-zinc-300:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--zinc-300) / var(--tw-ring-opacity, 1))}.focus-visible\:ring-zinc-400:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(var(--zinc-400) / var(--tw-ring-opacity, 1))}.focus-visible\:ring-zinc-400\/50:focus-visible{--tw-ring-color: rgb(var(--zinc-400) / .5)}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-\[\.96\]:active{--tw-scale-x: .96;--tw-scale-y: .96;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-\[\.98\]:active{--tw-scale-x: .98;--tw-scale-y: .98;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-zinc-200\/60:active{background-color:rgb(var(--zinc-200) / .6)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-default:disabled{cursor:default}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:cursor-wait:disabled{cursor:wait}.disabled\:bg-zinc-200:disabled{--tw-bg-opacity: 1;background-color:rgb(var(--zinc-200) / var(--tw-bg-opacity, 1))}.disabled\:text-zinc-400:disabled{--tw-text-opacity: 1;color:rgb(var(--zinc-400) / var(--tw-text-opacity, 1))}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-35:disabled{opacity:.35}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-55:disabled{opacity:.55}.disabled\:shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.disabled\:hover\:bg-transparent:hover:disabled{background-color:transparent}.disabled\:hover\:text-zinc-500:hover:disabled{--tw-text-opacity: 1;color:rgb(var(--zinc-500) / var(--tw-text-opacity, 1))}.group\/ctx:focus-within .group-focus-within\/ctx\:opacity-100{opacity:1}.group:hover .group-hover\:text-zinc-500{--tw-text-opacity: 1;color:rgb(var(--zinc-500) / var(--tw-text-opacity, 1))}.group\/agent:hover .group-hover\/agent\:opacity-100,.group\/ctx:hover .group-hover\/ctx\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-0{opacity:0}.group:hover .group-hover\:opacity-100{opacity:1}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}}@media not all and (min-width:768px){.max-md\:hidden{display:none}.max-md\:opacity-100{opacity:1}}@media(min-width:520px){.min-\[520px\]\:flex-row{flex-direction:row}.min-\[520px\]\:items-center{align-items:center}.min-\[520px\]\:justify-end{justify-content:flex-end}.min-\[520px\]\:gap-4{gap:1rem}}@media(min-width:640px){.sm\:left-2{left:.5rem}.sm\:col-span-2{grid-column:span 2 / span 2}.sm\:block{display:block}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:max-h-\[calc\(100dvh-2rem\)\]{max-height:calc(100dvh - 2rem)}.sm\:w-\[460px\]{width:460px}.sm\:w-auto{width:auto}.sm\:flex-none{flex:none}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:gap-1{gap:.25rem}.sm\:gap-3{gap:.75rem}.sm\:p-4{padding:1rem}.sm\:px-2{padding-left:.5rem;padding-right:.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:px-8{padding-left:2rem;padding-right:2rem}.sm\:py-8{padding-top:2rem;padding-bottom:2rem}.sm\:pb-\[max\(1\.25rem\,env\(safe-area-inset-bottom\)\)\]{padding-bottom:max(1.25rem,env(safe-area-inset-bottom))}.sm\:pt-7{padding-top:1.75rem}.sm\:opacity-0{opacity:0}.group:hover .sm\:group-hover\:opacity-100{opacity:1}}@media(min-width:768px){.md\:static{position:static}.md\:z-20{z-index:20}.md\:ml-4{margin-left:1rem}.md\:block{display:block}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:max-h-none{max-height:none}.md\:w-11{width:2.75rem}.md\:w-\[var\(--sb-w\)\]{width:var(--sb-w)}.md\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:grid-cols-\[200px_1fr\]{grid-template-columns:200px 1fr}.md\:grid-cols-\[220px_1fr\]{grid-template-columns:220px 1fr}.md\:border-b-0{border-bottom-width:0px}.md\:border-r{border-right-width:1px}.md\:px-5{padding-left:1.25rem;padding-right:1.25rem}.md\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media(min-width:1024px){.lg\:static{position:static}.lg\:z-auto{z-index:auto}.lg\:block{display:block}.lg\:w-\[var\(--pane-w\)\]{width:var(--pane-w)}.lg\:shrink-0{flex-shrink:0}.lg\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}.\[\&_\.xterm\]\:h-full .xterm{height:100%}