1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1882],{4803:(e,t,r)=>{"use strict";r.d(t,{AdminLanguageSwitcher:()=>i});var n=r(95155);function i(e){let{languages:t,current:r,onChange:i,completeness:o,disabled:s}=e;return(0,n.jsx)("div",{className:"flex items-center gap-1.5 flex-wrap",role:"tablist","aria-label":"Language",children:t.map(e=>{var t;let l=null!=(t=null==o?void 0:o[e.code])?t:"empty",a=e.code===r;return(0,n.jsxs)("button",{type:"button",role:"tab","aria-selected":a,disabled:s,onClick:()=>i(e.code),className:["inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",a?"bg-primary text-primary-foreground shadow-sm":"bg-muted text-muted-foreground hover:bg-muted/80",s?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),children:[(0,n.jsx)("span",{className:["inline-block h-1.5 w-1.5 rounded-full","filled"===l?"bg-green-400":"partial"===l?"bg-amber-400":a?"bg-primary-foreground/40":"bg-muted-foreground/40"].join(" "),"aria-label":l}),e.code.toUpperCase()]},e.code)})})}},6191:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},6815:(e,t,r)=>{"use strict";r.d(t,{AdminButton:()=>d});var n=r(95155),i=r(12115),o=r(52619),s=r.n(o),l=r(35299),a=r(40745);let c={primary:"border-[color:var(--admin-action,var(--primary))] text-foreground/85 hover:border-[color:var(--admin-action-hover,var(--primary))] hover:bg-[var(--primary)]/5 disabled:border-border disabled:opacity-40",secondary:"border-border text-foreground/80 hover:border-foreground
1/30 hover:text-foreground disabled:opacity-50",destructive:"border-destructive/30 bg-destructive/5 text-destructive hover:bg-destructive/10 disabled:opacity-50"},u={primary:"text-[var(--primary)]",secondary:"text-muted-foreground",destructive:"text-destructive"},d=(0,i.forwardRef)(function(e,t){let{variant:r="secondary",icon:i,iconOnly:o=!1,loading:d=!1,disabled:h=!1,href:p,type:f="button",className:m,children:g,...b}=e,y=(0,a.cn)("inline-flex h-10 items-center gap-2 rounded-xl border bg-card text-sm font-medium transition disabled:cursor-not-allowed disabled:pointer-events-none",o?"w-10 justify-center px-0":"px-4",c[r],m),v=(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)(l.A,{className:(0,a.cn)("h-4 w-4 animate-spin",u[r])}):i&&(0,n.jsx)(i,{className:(0,a.cn)("h-4 w-4",u[r])}),o?(0,n.jsx)("span",{className:"sr-only",children:g}):g]});return!p||h||d?(0,n.jsx)("button",{ref:t,type:f,disabled:h||d,className:y,...b,children:v}):(0,n.jsx)(s(),{href:p,className:y,children:v})})},7784:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,w:()=>i});let n=new Map;function i(e){return n.get(e)}function o(e,t){let r=n.get(e);n.set(e,r?{...r,...t}:t)}},8618:(e,t,r)=>{"use strict";r.d(t,{A:()=>n,y:()=>n});let n=r(76908).bP.create({name:"doc",topNode:!0,content:"block+"})},9672:(e,t,r)=>{"use strict";r.d(t,{AdminEmptyState:()=>i});var n=r(95155);function i(e){let{icon:t,title:r,description:i,children:o}=e;return(0,n.jsxs)("div",{className:"text-center py-16 border border-dashed border-border rounded-2xl",children:[t&&(0,n.jsx)(t,{className:"w-10 h-10 text-muted-foreground/40 mx-auto mb-3"}),(0,n.jsx)("p",{className:"text-muted-foreground font-medium",children:r}),i&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground/70 mt-1",children:i}),o&&(0,n.jsx)("div",{className:"mt-4",children:o})]})}},11828:(e,t,r)=>{"use strict";r.d(t,{G5:()=>eU,H_:()=>ez,JU:()=>eI,Mz:()=>e_,Pb:()=>eK,UC:()=>eL,UE:()=>F,VF:()=>e$,YJ:()=>eR,ZL:()=>eF,ZP:()=>eV,bL:()=>ej,hN:()=>eP,i3:()=>eq,q7:()=>eO,wv:()=>eH,z6:()=>eB});var n=r(12115),i=r(92556),o=r(49972),s=r(94446),l=r(3468),a=r(66218),c=r(40137),u=r(19526),d=r(69666),h=r(68946),p=r(66093),f=r(75433),m=r(76842),g=r(97602),b=r(72431),y=r(32467),v=r(70222),x=r(97745),k=r(14432),w=r(95155),C=["Enter"," "],E=["ArrowUp","PageDown","End"],A=["ArrowDown","PageUp","Home",...E],S={ltr:[...C,"ArrowRight"],rtl:[...C,"ArrowLeft"]},M={ltr:["ArrowLeft"],rtl:["ArrowRight"]},D="Menu",[N,T,j]=(0,o.N)(D),[_,F]=(0,l.A)(D,[j,p.Bk,b.RG]),L=(0,p.Bk)(),R=(0,b.RG)(),[I,O]=_(D),[z,B]=_(D),P=e=>{let{__scopeMenu:t,open:r=!1,children:i,dir:o,onOpenChange:s,modal:l=!0}=e,c=L(t),[u,d]=n.useState(null),h=n.useRef(!1),f=(0,v.c)(s),m=(0,a.jH)(o);return n.useEffect(()=>{let e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),n.useEffect(()=>{if(!r)return;let e=()=>f(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[r,f]),(0,w.jsx)(p.bL,{...c,children:(0,w.jsx)(I,{scope:t,open:r,onOpenChange:f,content:u,onContentChange:d,children:(0,w.jsx)(z,{scope:t,onClose:n.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:h,dir:m,modal:l,children:i})})})};P.displayName=D;var $=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=L(r);return(0,w.jsx)(p.Mz,{...i,...n,ref:t})});$.displayName="MenuAnchor";var H="MenuPortal",[q,K]=_(H,{forceMount:void 0}),V=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=O(H,t);return(0,w.jsx)(q,{scope:t,forceMount:r,children:(0,w.jsx)(m.C,{present:r||o.open,children:(0,w.jsx)(f.Z,{asChild:!0,container:i,children:n})})})};V.displayName=H;var U="MenuContent",[W,J]=_(U),G=n.forwardRef((e,t)=>{let r=K(U,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=O(U,e.__scopeMenu),s=B(U,e.__scopeMenu);return(0,w.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,w.jsx)(m.C,{present:n||o.open,children:(0,w.jsx)(N.Slot,{scope:e.__scopeMenu,children:s.modal?(0,w.jsx)(Z,{...i,ref:t}):(0,w.jsx)(Y,{...i,ref:t})})})})}),Z=n.forwardRef((e,t)=>
1{let r=O(U,e.__scopeMenu),o=n.useRef(null),l=(0,s.s)(t,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,x.Eq)(e)},[]),(0,w.jsx)(Q,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Y=n.forwardRef((e,t)=>{let r=O(U,e.__scopeMenu);return(0,w.jsx)(Q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),X=(0,y.TL)("MenuContent.ScrollLock"),Q=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:o=!1,trapFocus:l,onOpenAutoFocus:a,onCloseAutoFocus:h,disableOutsidePointerEvents:f,onEntryFocus:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:x,onDismiss:C,disableOutsideScroll:S,...M}=e,D=O(U,r),N=B(U,r),j=L(r),_=R(r),F=T(r),[I,z]=n.useState(null),P=n.useRef(null),$=(0,s.s)(t,P,D.onContentChange),H=n.useRef(0),q=n.useRef(""),K=n.useRef(0),V=n.useRef(null),J=n.useRef("right"),G=n.useRef(0),Z=S?k.A:n.Fragment;n.useEffect(()=>()=>window.clearTimeout(H.current),[]),(0,u.Oh)();let Y=n.useCallback(e=>{var t,r;return J.current===(null==(t=V.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e],l=t[o],a=s.x,c=s.y,u=l.x,d=l.y;c>n!=d>n&&r<(u-a)*(n-c)/(d-c)+a&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,null==(r=V.current)?void 0:r.area)},[]);return(0,w.jsx)(W,{scope:r,searchRef:q,onItemEnter:n.useCallback(e=>{Y(e)&&e.preventDefault()},[Y]),onItemLeave:n.useCallback(e=>{var t;Y(e)||(null==(t=P.current)||t.focus(),z(null))},[Y]),onTriggerLeave:n.useCallback(e=>{Y(e)&&e.preventDefault()},[Y]),pointerGraceTimerRef:K,onPointerGraceIntentChange:n.useCallback(e=>{V.current=e},[]),children:(0,w.jsx)(Z,{...S?{as:X,allowPinchZoom:!0}:void 0,children:(0,w.jsx)(d.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,i.mK)(a,e=>{var t;e.preventDefault(),null==(t=P.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:(0,w.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:x,onDismiss:C,children:(0,w.jsx)(b.bL,{asChild:!0,..._,dir:N.dir,orientation:"vertical",loop:o,currentTabStopId:I,onCurrentTabStopIdChange:z,onEntryFocus:(0,i.mK)(m,e=>{N.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,w.jsx)(p.UC,{role:"menu","aria-orientation":"vertical","data-state":eM(D.open),"data-radix-menu-content":"",dir:N.dir,...j,...M,ref:$,style:{outline:"none",...M.style},onKeyDown:(0,i.mK)(M.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{var t,r;let n=q.current+e,i=F().filter(e=>!e.disabled),o=document.activeElement,s=null==(t=i.find(e=>e.ref.current===o))?void 0:t.textValue,l=function(e,t,r){var n;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,s=(n=Math.max(o,0),e.map((t,r)=>e[(n+r)%e.length]));1===i.length&&(s=s.filter(e=>e!==r));let l=s.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}(i.map(e=>e.textValue),n,s),a=null==(r=i.find(e=>e.textValue===l))?void 0:r.ref.current;!function e(t){q.current=t,window.clearTimeout(H.current),""!==t&&(H.current=window.setTimeout(()=>e(""),1e3))}(n),a&&setTimeout(()=>a.focus())})(e.key));let i=P.current;if(e.target!==i||!A.includes(e.key))return;e.preventDefault();let o=F().filter(e=>!e.disabled).map(e=>e.ref.current);E.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(H.current),q.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,eT(e=>{let t=e.target,r=G.current!==e.clientX;e.currentTarget.contains(t)&&r&&(J.current=e.clientX>G.current?"right":"left",G.current=e.clientX)}))})})})})})})});G.displayName=U;var ee=n.forwardRef((e,t)=>
1{let{__scopeMenu:r,...n}=e;return(0,w.jsx)(g.sG.div,{role:"group",...n,ref:t})});ee.displayName="MenuGroup";var et=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,w.jsx)(g.sG.div,{...n,ref:t})});et.displayName="MenuLabel";var er="MenuItem",en="menu.itemSelect",ei=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:o,...l}=e,a=n.useRef(null),c=B(er,e.__scopeMenu),u=J(er,e.__scopeMenu),d=(0,s.s)(t,a),h=n.useRef(!1);return(0,w.jsx)(eo,{...l,ref:d,disabled:r,onClick:(0,i.mK)(e.onClick,()=>{let e=a.current;if(!r&&e){let t=new CustomEvent(en,{bubbles:!0,cancelable:!0});e.addEventListener(en,e=>null==o?void 0:o(e),{once:!0}),(0,g.hO)(e,t),t.defaultPrevented?h.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),h.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{var t;h.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;r||t&&" "===e.key||C.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ei.displayName=er;var eo=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:o=!1,textValue:l,...a}=e,c=J(er,r),u=R(r),d=n.useRef(null),h=(0,s.s)(t,d),[p,f]=n.useState(!1),[m,y]=n.useState("");return n.useEffect(()=>{let e=d.current;if(e){var t;y((null!=(t=e.textContent)?t:"").trim())}},[a.children]),(0,w.jsx)(N.ItemSlot,{scope:r,disabled:o,textValue:null!=l?l:m,children:(0,w.jsx)(b.q7,{asChild:!0,...u,focusable:!o,children:(0,w.jsx)(g.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...a,ref:h,onPointerMove:(0,i.mK)(e.onPointerMove,eT(e=>{o?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eT(e=>c.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>f(!0)),onBlur:(0,i.mK)(e.onBlur,()=>f(!1))})})})}),es=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,w.jsx)(ef,{scope:e.__scopeMenu,checked:r,children:(0,w.jsx)(ei,{role:"menuitemcheckbox","aria-checked":eD(r)?"mixed":r,...o,ref:t,"data-state":eN(r),onSelect:(0,i.mK)(o.onSelect,()=>null==n?void 0:n(!!eD(r)||!r),{checkForDefaultPrevented:!1})})})});es.displayName="MenuCheckboxItem";var el="MenuRadioGroup",[ea,ec]=_(el,{value:void 0,onValueChange:()=>{}}),eu=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...i}=e,o=(0,v.c)(n);return(0,w.jsx)(ea,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,w.jsx)(ee,{...i,ref:t})})});eu.displayName=el;var ed="MenuRadioItem",eh=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=ec(ed,e.__scopeMenu),s=r===o.value;return(0,w.jsx)(ef,{scope:e.__scopeMenu,checked:s,children:(0,w.jsx)(ei,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":eN(s),onSelect:(0,i.mK)(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});eh.displayName=ed;var ep="MenuItemIndicator",[ef,em]=_(ep,{checked:!1}),eg=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...i}=e,o=em(ep,r);return(0,w.jsx)(m.C,{present:n||eD(o.checked)||!0===o.checked,children:(0,w.jsx)(g.sG.span,{...i,ref:t,"data-state":eN(o.checked)})})});eg.displayName=ep;var eb=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,w.jsx)(g.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eb.displayName="MenuSeparator";var ey=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,i=L(r);return(0,w.jsx)(p.i3,{...i,...n,ref:t})});ey.displayName="MenuArrow";var ev="MenuSub",[ex,ek]=_(ev),ew=e=>{let{__scopeMenu:t,children:r,open:i=!1,onOpenChange:o}=e,s=O(ev,t),l=L(t),[a,c]=n.useState(null),[u,d]=n.useState(null),f=(0,v.c)(o);return n.useEffect(()=>(!1===s.open&&f(!1),()=>f(!1)),[s.open,f]),(0,w.jsx)(p.bL,{...l,children:(0,w.jsx)(I,{scope:t,open:i,onOpenChange:f,content:u,onContentChange:d,children:(0,w.jsx)(ex,{scope:t,contentId:(0,h.B)(),triggerId:(0,h.B)(),trigger:a,onTriggerChange:c,children:r})})})};ew.displayName=ev;var eC="MenuSubTrigger",eE=n.forwardRef((e,t)=>{let r=O(eC,e.__scopeMenu),o=B(eC,e.__scopeMenu),l=ek(eC,e.__scopeMenu),a=J(eC,e.__scopeMenu),c=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=a,h={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),d(null)}},[u,d]);let f=(0,s.s)(t,l.onTriggerChange);return(0,w.jsx)($,{asChild:!0,...h,children:(0,w.jsx)(eo,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?l.contentId:void 0,"data-state":eM(r.open),...e,ref:f,onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focu
1s(),r.open||r.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,eT(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||c.current||(a.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,eT(e=>{var t,n;p();let i=null==(t=r.content)?void 0:t.getBoundingClientRect();if(i){let t=null==(n=r.content)?void 0:n.dataset.side,o="right"===t,s=i[o?"left":"right"],l=i[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:s,y:i.top},{x:l,y:i.top},{x:l,y:i.bottom},{x:s,y:i.bottom}],side:t}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{let n=""!==a.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&S[o.dir].includes(t.key)){var i;r.onOpenChange(!0),null==(i=r.content)||i.focus(),t.preventDefault()}})})})});eE.displayName=eC;var eA="MenuSubContent",eS=n.forwardRef((e,t)=>{let r=K(U,e.__scopeMenu),{forceMount:o=r.forceMount,align:l="start",...a}=e,c=O(U,e.__scopeMenu),u=B(U,e.__scopeMenu),d=ek(eA,e.__scopeMenu),h=n.useRef(null),p=(0,s.s)(t,h);return(0,w.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,w.jsx)(m.C,{present:o||c.open,children:(0,w.jsx)(N.Slot,{scope:e.__scopeMenu,children:(0,w.jsx)(Q,{id:d.contentId,"aria-labelledby":d.triggerId,...a,ref:p,align:l,side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=h.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=M[u.dir].includes(e.key);if(t&&r){var n;c.onOpenChange(!1),null==(n=d.trigger)||n.focus(),e.preventDefault()}})})})})})});function eM(e){return e?"open":"closed"}function eD(e){return"indeterminate"===e}function eN(e){return eD(e)?"indeterminate":e?"checked":"unchecked"}function eT(e){return t=>"mouse"===t.pointerType?e(t):void 0}eS.displayName=eA;var ej=P,e_=$,eF=V,eL=G,eR=ee,eI=et,eO=ei,ez=es,eB=eu,eP=eh,e$=eg,eH=eb,eq=ey,eK=ew,eV=eE,eU=eS},12297:(e,t,r)=>{"use strict";r.d(t,{AdminToaster:()=>d});var n=r(95155),i=r(61362),o=r(78874),s=r(52056),l=r(23327),a=r(18720);let c={success:(0,n.jsx)(i.A,{className:"h-4 w-4 text-foreground","aria-hidden":!0}),error:(0,n.jsx)(o.A,{className:"h-4 w-4 text-destructive","aria-hidden":!0}),warning:(0,n.jsx)(s.A,{className:"h-4 w-4 text-amber-600","aria-hidden":!0}),info:(0,n.jsx)(l.A,{className:"h-4 w-4 text-muted-foreground","aria-hidden":!0})},u={toast:"flex w-full items-center gap-3 rounded-lg border border-border bg-background px-4 py-3 shadow-[0_8px_30px_rgba(0,0,0,0.08)] backdrop-blur-sm",icon:"flex shrink-0 items-center",content:"min-w-0 flex-1",title:"text-sm font-medium leading-tight tracking-tight text-foreground",description:"mt-0.5 text-xs leading-snug text-muted-foreground",error:"border-destructive/30",actionButton:"shrink-0 rounded-md px-2.5 py-1 text-xs font-medium text-foreground hover:bg-muted",cancelButton:"shrink-0 rounded-md px-2.5 py-1 text-xs font-medium text-muted-foreground hover:bg-muted",closeButton:"shrink-0 rounded-md border border-border bg-background text-muted-foreground hover:text-foreground"};function d(){let{position:e="bottom-center",richColors:t=!1,closeButton:r=!1,duration:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t?(0,n.jsx)(a.l,{position:e,richColors:!0,closeButton:r,duration:i}):(0,n.jsx)(a.l,{position:e,richColors:!1,closeButton:r,duration:i,gap:8,icons:c,toastOptions:{unstyled:!0,classNames:u}})}},13379:(e,t,r)=>{"use strict";r.d(t,{AdminResourceTimeline:()=>C});var n=r(95155),i=r(12115),o=r(90368),s=r(27937),l=r(6191),a=r(3998),c=r(11186),u=r(9672),d=r(54665),h=r(92649),p=r(58635),f=r(45412),m=r(40745),g=r(38855),b=r(7784);function y(e,t){return"".concat("af-core.timeline.").concat(e,".").concat(t)}function v(e,t){if("undefined"==typeof window)return null;try{return window.localStorage.getItem(y(e,t))}catch(e){return null}}function x(e,t,r){if("undefined"!=typeof window)try{window.localStorage.setItem(y(e,t),r)}catch(e){}}var k=r(71012);let w=["day","week","month"];function C(e){var t,r,y,C,A,S,M,D,N,T,j,_,F,L,R,I,O;let{config:z,toolbarExtras:B,wide:P,fluid:$=!0}=e,{items:H,loading:q,error:K,refetch:V}=z.data.useList(),U=(0,f.b)(),W=null!=(D=z.timeZone)?D:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch(e){return"UTC"}}
1(),J=null!=(N=z.locale)?N:"en",G=null!=(T=z.zooms)?T:w,Z=(0,i.useMemo)(()=>z.groupings.map(e=>e.key),[z.groupings]),[Y,X]=(0,i.useState)(()=>z.groupings[0].key);(0,i.useEffect)(()=>{let e=v(z.boardId,"grouping");e&&Z.includes(e)&&X(e)},[z.boardId,Z]);let Q=null!=(j=z.groupings.find(e=>e.key===Y))?j:z.groupings[0],[ee,et]=(0,i.useState)(()=>{var e,t;return null!=(t=null!=(e=z.defaultZoom)?e:G[0])?t:"day"}),[er,en]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=v(z.boardId,"zoom");e&&w.includes(e)&&G.includes(e)&&et(e)},[z.boardId]);let ei=function(e){let[t,r]=(0,i.useState)(()=>new Date);return(0,i.useEffect)(()=>{let e=setInterval(()=>r(new Date),6e4);return()=>clearInterval(e)},[e]),t}(6e4),eo=(0,i.useMemo)(()=>(0,k.qD)(ee,null!=er?er:ei,W),[ee,er,ei,W]),es=(0,i.useMemo)(()=>(0,k.wV)(ee,eo,W,J),[ee,eo,W,J]),el=e=>{en((0,k.dd)(eo,ee,e,W).start)},ea=null!=(_=z.list)?_:{},ec=z.resource.basePath,[eu,ed]=(0,i.useState)(()=>{var e,t;return null!=(t=null==(e=(0,b.w)(ec))?void 0:e.search)?t:""}),[eh,ep]=(0,i.useState)(()=>{var e,t,r,n;return null!=(n=null!=(r=null==(e=(0,b.w)(ec))?void 0:e.statusValue)?r:null==(t=ea.statusFilter)?void 0:t.defaultValue)?n:""}),[ef,em]=(0,i.useState)(()=>{var e,t,r;return null!=(r=null==(e=(0,b.w)(ec))?void 0:e.extraValues)?r:Object.fromEntries((null!=(t=ea.extraFilters)?t:[]).map(e=>[e.label,e.defaultValue]))});(0,i.useEffect)(()=>{(0,b.$)(ec,{search:eu,statusValue:eh,extraValues:ef})},[ec,eu,eh,ef]);let eg=(0,i.useMemo)(()=>{var e;let t=H;for(let r of(ea.statusFilter&&eh!==ea.statusFilter.defaultValue&&(t=t.filter(e=>ea.statusFilter.predicate(e,eh))),null!=(e=ea.extraFilters)?e:[])){let e=ef[r.label];e&&e!==r.defaultValue&&(t=t.filter(t=>r.predicate(t,e)))}if(ea.search&&eu.trim().length>0){let e=eu.trim().toLowerCase();t=t.filter(t=>(function(e,t,r){if("match"in e)return e.match(t,r);for(let n of e.fields){let e=t[n];if("string"==typeof e&&e.toLowerCase().includes(r))return!0}return!1})(ea.search,t,e))}return t},[H,ea.statusFilter,ea.extraFilters,ea.search,eh,ef,eu]),eb=(0,i.useMemo)(()=>Q.lanes(eg),[Q,eg]),ey=(0,i.useMemo)(()=>{var e,t;let r=[];for(let n of(ea.statusFilter&&r.push({id:"status",label:ea.statusFilter.label,value:eh,onChange:ep,options:ea.statusFilter.options,defaultValue:ea.statusFilter.defaultValue}),null!=(e=ea.extraFilters)?e:[]))r.push({id:n.label,label:n.label,value:null!=(t=ef[n.label])?t:n.defaultValue,onChange:e=>em(t=>({...t,[n.label]:e})),options:n.options,defaultValue:n.defaultValue});return r},[ea.statusFilter,ea.extraFilters,eh,ef]),ev=(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsx)(a.$,{type:"button",variant:"outline",size:"icon",className:"h-9 w-9","aria-label":U("core.timeline.previous"),onClick:()=>el(-1),children:(0,n.jsx)(o.A,{className:"h-4 w-4"})}),(0,n.jsx)(a.$,{type:"button",variant:"outline",className:"h-9",onClick:()=>en(null),disabled:null===er,children:U("core.timeline.today")}),(0,n.jsx)(a.$,{type:"button",variant:"outline",size:"icon",className:"h-9 w-9","aria-label":U("core.timeline.next"),onClick:()=>el(1),children:(0,n.jsx)(s.A,{className:"h-4 w-4"})})]}),(0,n.jsx)("span",{className:"text-sm font-medium tabular-nums",children:(0,k.Hf)(eo,ee,W,J)}),G.length>1&&(0,n.jsx)("div",{className:"flex overflow-hidden rounded-md border",role:"group","aria-label":U("core.timeline.zoomLabel"),children:G.map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>{et(e),x(z.boardId,"zoom",e)},"aria-pressed":e===ee,className:(0,m.cn)("px-2.5 py-1.5 text-xs transition-colors",e===ee?"bg-muted font-medium text-foreground":"text-muted-foreground hover:text-foreground"),children:U(E[e])},e))}),z.groupings.length>1&&(0,n.jsxs)(c.l6,{value:Q.key,onValueChange:e=>{Z.includes(e)&&(X(e),x(z.boardId,"grouping",e))},children:[(0,n.jsx)(c.bq,{className:"h-9 w-[10rem]","aria-label":U("core.timeline.groupByLabel"),children:(0,n.jsx)(c.yv,{placeholder:U("core.timeline.groupByLabel")})}),(0,n.jsx)(c.gC,{children:z.groupings.map(e=>{var t;return(0,n.jsx)(c.eb,{value:e.key,children:null!=(t=e.label)?t:e.key},e.key)})})]})]}),ex=(0,n.jsx)(d.AdminFilterBar,{filters:ey,onClearAll:ey.length>0?()=>{var e;ea.statusFilter&&ep(ea.statusFilter.defaultValue),em(Object.fromEntries((null!=(e=ea.extraFilters)?e:[]).map(e=>[e.label,e.defaultValue]))),ed("")}:void 0,children:ev});return(0,n.jsx)(h.AdminListPage,{title:z.resource.plural,eyebrow:U("core.adminList.eyebrow"),toolbarExtras:B,wide:P,fluid:$,primaryAction:z.create?{label:(0,g.G)(U("core.adminList.newItem"),{singular:z.resource.singular}),icon:l.A,...z.create.href?{href:z.create.href}:{onClick:z.create.onClick}}:void 0,onRefresh:V?()=>void V():void 0,refreshing:q,search:ea.search?{value:eu,onChange:ed,placeholder:null!=(F=ea.search.placeholder)?F:(0,g.G)(U("core.adminList.searchPlaceholderForResource"),{plural:z.resource.plural})}:void 0,filters:ex,children:K?(0,n.jsx)(u.AdminEmptyState,{icon:z.resource.icon,title:null!=(L=null==(t=z.messages)?void 0:t.errorTitle)?L:U("core.timeline.errorTitle"),description:null!=(R=null==(r=z.messages)?void 0:r.errorDescription)?R:"str
1ing"==typeof K&&K.length>0?K:U("core.timeline.errorDescription"),children:(0,n.jsx)(a.$,{type:"button",variant:"outline",onClick:()=>{if(V)return void V();"undefined"!=typeof window&&window.location.reload()},children:null!=(I=null==(y=z.messages)?void 0:y.errorRetry)?I:U("core.timeline.errorRetry")})}):(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)(p.TimelineBoard,{items:eg,lanes:eb,getLaneId:Q.getLaneId,getInterval:z.getInterval,getBar:z.getBar,window:eo,ticks:es,now:ei,loading:null!=q&&q,onMove:Q.onMove?(e,t,r)=>Q.onMove(e,t,r,Q.key):void 0,onReschedule:Q.onReschedule?(e,t,r)=>Q.onReschedule(e,t,r,Q.key):void 0,snapMinutes:z.snapMinutes,timeDragThresholdPx:z.timeDragThresholdPx,formatInstant:z.formatInstant,onItemClick:z.onItemClick,rollbackErrorMessage:Q.onReschedule?null!=(O=null==(C=z.messages)?void 0:C.errorReschedule)?O:null==(A=z.messages)?void 0:A.errorMove:null==(S=z.messages)?void 0:S.errorMove,emptyLabel:null==(M=z.messages)?void 0:M.empty,footer:z.renderFooter?z.renderFooter({window:eo,ticks:es,items:eg,zoom:ee}):void 0},Q.key),z.legend&&z.legend.length>0&&(0,n.jsx)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 rounded-md border px-4 py-3",children:z.legend.map(e=>(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:(0,m.cn)("h-3 w-6 rounded-[2px] border",p.TIMELINE_TONE_CLASS[e.tone],e.provisional&&"border-dashed")}),(0,n.jsx)("span",{className:"text-xs",children:e.label}),e.hint&&(0,n.jsx)("span",{className:"text-[11px] text-muted-foreground",children:e.hint})]},e.tone+e.label))})]})})}let E={day:"core.timeline.zoomDay",week:"core.timeline.zoomWeek",month:"core.timeline.zoomMonth"}},14479:(e,t,r)=>{"use strict";r.d(t,{createMessagesContext:()=>o});var n=r(12115),i=r(34143);function o(e){let t=(0,n.createContext)(null);return t.displayName="MessagesContext",{MessagesContext:t,useMessages:function(){let r=(0,n.useContext)(t);return r||(0,i.O)(e,"en")},createMessageResolver:i.O}}},15085:(e,t,r)=>{"use strict";r.d(t,{AdminCreateDialog:()=>h});var n=r(95155),i=r(12115),o=r(6815),s=r(51834),l=r(65142),a=r(76444),c=r(11186);function u(e){return e.toLowerCase().trim().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}var d=r(45412);function h(e){var t,r,h,f,m,g,b,y,v,x;let{open:k,onOpenChange:w,title:C,fields:E,onSubmit:A,submitLabel:S,cancelLabel:M}=e,D=(0,d.b)(),N=null!=S?S:D("core.adminCreate.create"),T=null!=M?M:D("core.adminCreate.cancel"),[j,_]=(0,i.useState)(""),[F,L]=(0,i.useState)(""),[R,I]=(0,i.useState)(!1),[O,z]=(0,i.useState)(null!=(y=null!=(b=null==(t=E.language)?void 0:t.defaultLanguage)?b:null==(h=E.language)||null==(r=h.languages[0])?void 0:r.code)?y:""),[B,P]=(0,i.useState)(()=>p(E.extraSelects)),[$,H]=(0,i.useState)({}),[q,K]=(0,i.useState)(!1),[V,U]=(0,i.useState)(null),[W,J]=(0,i.useState)({}),G=null==(v=null==(f=E.slug)?void 0:f.autofill)||v,Z=void 0!==E.slug;(0,i.useEffect)(()=>{Z&&G&&!R&&L(u(j))},[j,R,G,Z]),(0,i.useEffect)(()=>{if(!k){var e,t,r,n,i;_(""),L(""),I(!1),z(null!=(i=null!=(n=null==(e=E.language)?void 0:e.defaultLanguage)?n:null==(r=E.language)||null==(t=r.languages[0])?void 0:t.code)?i:""),P(p(E.extraSelects)),K(!1),U(null),J({}),H({})}},[k,null==(m=E.language)?void 0:m.defaultLanguage,null==(g=E.language)?void 0:g.languages,E.extraSelects]);let Y=async()=>{var e,t;if((null==(e=E.slug)?void 0:e.checkUnique)&&(null==(t=E.slug.checkOnBlur)||t)&&F)try{await E.slug.checkUnique(F)?J(e=>{let{slug:t,...r}=e;return r}):J(e=>{var t,r;return{...e,slug:null!=(r=null==(t=E.slug)?void 0:t.duplicateMessage)?r:D("core.adminCreate.slugInUse")}})}catch(e){}},X=async e=>{var t,r,n,i;e.preventDefault(),U(null),J({}),H({});let o=j.trim();if(!o)return void J({title:D("core.adminCreate.titleRequired")});let s="";if(Z&&!(s=F||u(o)))return void J({slug:D("core.adminCreate.slugRequired")});let l={};for(let e of null!=(t=E.extraSelects)?t:[])e.required&&!B[e.key]&&(l[e.key]=null!=(r=e.requiredMessage)?r:D("core.adminCreate.fieldRequired"));if(Object.keys(l).length>0)return void H(l);K(!0);try{if((null==(n=E.slug)?void 0:n.checkUnique)&&!await E.slug.checkUnique(s)){J({slug:null!=(i=E.slug.duplicateMessage)?i:D("core.adminCreate.slugInUse")}),K(!1);return}let e=await A({title:o,slug:s,language:E.language?O:void 0,extra:E.extraSelects?B:void 0});if(e.id||e.done)return void w(!1);e.fieldErrors&&J(e.fieldErrors),e.error&&U(e.error)}catch(e){U(e instanceof Error?e.message:D("core.adminCreate.couldNotCreate"))}finally{K(!1)}};return(0,n.jsx)(s.lG,{open:k,onOpenChange:w,children:(0,n.jsxs)(s.Cf,{children:[(0,n.jsx)(s.c7,{children:(0,n.jsx)(s.L3,{className:"m-0",children:C})}),(0,n.jsxs)("form",{onSubmit:X,className:"space-y-4",children:[V&&(0,n.jsx)("div",{className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:V}),(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(a.J,{htmlFor:"admin-create-title",children:E.title.label}),(0,n.jsx)(l.p,{id:"admin-create-title",value:j,onChange:e=>_(e.target.value),placeholder:E.title.placeholder,autoFocus:!0,disabled:q}),W.title&&(0,n.jsx)("p",{className:"text-xs text-destructive",children:W.title})]}),E.slug&&(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(a.J,{htmlFor:"admin-create-slug",children:E.slug.label}),(0,n.jsx)(l.p,{id:"admin-create-slug",value:F,onChange:e=>{I(!0),L(u(e.target.value))},onBlur:Y,placeholder:E.slug.placeholder,disabled:q}),W.slug&&(0,n.jsx)("p",{className:"text-xs text-destructive",children:W.slug})]}),E.language&&(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(a.J,{htmlFor:"admin-create-language",children:E.language.label}),(0,n.jsxs)(c.l6,{value:O,onValueChange:z,disabled:q,children:[(0,n.jsx)(c.bq,{children:(0,n.jsx)(c.yv,{})}),(0,n.jsx)(c.gC,{children:E.language.languages.map(e=>(0,n.jsx)(c.eb,{value:e.code,children:e.label},e.code))})]})]}),(null!=(x=E.extraSelects)?x:[]).map(e=>{var t;return(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(a.J,{htmlFor:"admin-create-".concat(e.key),children:e.label}),(0,n.jsxs)(c.l6,{value:null!=(t=B[e.key])?t:"",onValueChange:t=>{P(r=>({...r,[e.key]:t})),H(t=>{let{[e.key]:r,...n}=t;return n})},disabled:q,children:[(0,n.jsx)(c.bq,{children:(0,n.jsx)(c.yv,{placeholder:e.placeholder})}),(0,n.jsx)(c.gC,{children:e.options.map(e=>(0,n.jsx)(c.eb,{value:e.value,children:e.label},e.value))})]}),$[e.key]&&(0,n.jsx)("p",{className:"text-xs text-destructive",children:$[e.key]})]},e.key)}),(0,n.jsxs)(s.Es,{children:[(0,n.jsx)(o.AdminButton,{type:"button",variant:"secondary",onClick:()=>w(!1),disabled:q,children:T}),(0,n.jsx)(o.AdminButton,{type:"submit",variant:"primary",loading:q,children:N})]})]})]})})}function p(e){var t;let r={};for(let n of null!=e?e:[])r[n.key]=null!=(t=n.defaultValue)?t:"";return r}},16820:(e,t,r)=>{"use strict";r.d(t,{ImageLightbox:()=>p});var n=r(95155),i=r(12115),o=r(47650),s=r(65229),l=r(90368),a=r(27937),c=r(5917),u=r(40745),d=r(38855);let h={close:"Close",previous:"Previous image",next:"Next image",counter:"{index} / {total}",select:"Select",deselect:"Selected"};function p(e){var t,r;let{images:p,index:f,onIndexChange:m,onClose:g,selectedIds:b,onToggleSelect:y,labels:v}=e,x={...h,...v},k=p[f],w=!!y,C=!!(k&&(null==b?void 0:b.includes(k.id))),[E,A]=(0,i.useState)(!1);(0,i.useEffect)(()=>A(!0),[]);let S=(0,i.useCallback)(e=>{p.length<2||m((f+e+p.length)%p.length)},[p.length,f,m]);return((0,i.useEffect)(()=>
1{if(!k)return;let e=e=>{"Escape"===e.key?(e.preventDefault(),g()):"ArrowLeft"===e.key?(e.preventDefault(),S(-1)):"ArrowRight"===e.key?(e.preventDefault(),S(1)):" "===e.key&&y&&(e.preventDefault(),y(k.id))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[k,g,y,S]),(0,i.useEffect)(()=>{if(!k)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[k]),E&&k)?(0,o.createPortal)((0,n.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":null!=(t=k.title)?t:void 0,className:"fixed inset-0 z-[100] flex flex-col bg-neutral-950/95 backdrop-blur-sm",onClick:g,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 sm:px-6",children:[(0,n.jsx)("span",{className:"text-xs tabular-nums tracking-wide text-neutral-400",children:(0,d.G)(x.counter,{index:f+1,total:p.length})}),(0,n.jsx)("button",{type:"button",onClick:g,"aria-label":x.close,className:"-mr-1 rounded-full p-2 text-neutral-400 transition-colors hover:text-white focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-400",children:(0,n.jsx)(s.A,{className:"h-5 w-5"})})]}),(0,n.jsxs)("div",{className:"relative flex min-h-0 flex-1 items-center justify-center px-4 sm:px-14",children:[p.length>1&&(0,n.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),S(-1)},"aria-label":x.previous,className:"absolute left-1 top-1/2 -translate-y-1/2 rounded-full p-2 text-neutral-400 transition-colors hover:text-white focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-400 sm:left-3",children:(0,n.jsx)(l.A,{className:"h-7 w-7"})}),(0,n.jsx)("img",{src:k.src,alt:null!=(r=k.title)?r:"",onClick:e=>e.stopPropagation(),className:"max-h-full max-w-full object-contain"}),p.length>1&&(0,n.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),S(1)},"aria-label":x.next,className:"absolute right-1 top-1/2 -translate-y-1/2 rounded-full p-2 text-neutral-400 transition-colors hover:text-white focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-400 sm:right-3",children:(0,n.jsx)(a.A,{className:"h-7 w-7"})})]}),(0,n.jsxs)("div",{className:"flex min-h-[4rem] flex-col items-center justify-center gap-3 px-6 py-4",onClick:e=>e.stopPropagation(),children:[k.title&&(0,n.jsx)("p",{className:"m-0 max-w-2xl truncate text-center text-sm text-neutral-300",children:k.title}),w&&(0,n.jsxs)("button",{type:"button",onClick:()=>null==y?void 0:y(k.id),"aria-pressed":C,className:(0,u.cn)("inline-flex items-center gap-2 rounded-full border px-4 py-1.5 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-400",C?"border-white bg-white text-neutral-900":"border-neutral-600 text-neutral-300 hover:border-neutral-400 hover:text-white"),children:[(0,n.jsx)(c.A,{className:(0,u.cn)("h-3.5 w-3.5",!C&&"opacity-40")}),C?x.deselect:x.select]})]})]}),document.body):null}},16829:(e,t,r)=>{"use strict";r.d(t,{FormSection:()=>d,FormSectionCardsProvider:()=>a});var n=r(95155),i=r(12115),o=r(86259),s=r(40745);let l=(0,i.createContext)(!1);function a(e){let{children:t}=e;return(0,n.jsx)(l.Provider,{value:!0,children:t})}let c={h2:"[&:not(:first-child)]:mt-8",h3:"[&:not(:first-child)]:mt-6"},u={h2:"text-xl font-semibold mt-4 mb-0",h3:"text-base font-semibold mt-6 mb-2"};function d(e){let{title:t,description:r,level:a="h2",divider:d=!0,actions:h,className:p,children:f}=e,m=(0,i.useContext)(l),g="h3"===a;if(m&&!g)return(0,n.jsxs)("section",{className:(0,s.cn)("rounded-2xl border border-border bg-card p-7 [&:not(:first-child)]:mt-5",p),children:[h?(0,n.jsxs)("div",{className:"mb-5 flex items-start justify-between gap-3",children:[(0,n.jsx)("h2",{className:"mt-0 mb-0 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:t}),(0,n.jsx)("div",{className:"flex items-center gap-2",children:h})]}):(0,n.jsx)("h2",{className:"mt-0 mb-5 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:t}),r&&(0,n.jsx)("p",{className:"mb-4 mt-0 text-sm text-muted-foreground",children:r}),(0,n.jsx)("div",{className:"space-y-4",children:f})]});let b=g?(0,n.jsx)("h3",{className:u.h3,children:t}):(0,n.jsx)("h2",{className:u.h2,children:t});return(0,n.jsxs)("div",{className:(0,s.cn)(c[a],p),children:[h?(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[b,(0,n.jsx)("div",{className:"flex items-center gap-2",children:h})]}):b,!g&&d&&(0,n.jsx)(o.w,{className:"my-4"}),r&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground mt-1 mb-4",children:r}),(0,n.jsx)("div",{className:"space-y-4",children:f})]})}},17733:(e,t,r)=>{"use strict";r.d(t,{A:()=>ey});var n=r(76908);let i=/^\s*>\s$/,o=n.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}}
1,addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,n.tG)({find:i,type:this.type})]}}),s=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,l=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,a=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,u=n.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
1,addInputRules(){return[(0,n.OX)({find:s,type:this.type}),(0,n.OX)({find:a,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:l,type:this.type}),(0,n.Zc)({find:c,type:this.type})]}}),d="textStyle",h=/^\s*([-+*])\s$/,p=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(d)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,n.tG)({find:h,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:h,type:this.t
1ype,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(d),editor:this.editor})),[e]}}),f=/(^|[^`])`([^`]+)`(?!`)/,m=/(^|[^`])`([^`]+)`(?!`)/g,g=n.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,n.OX)({find:f,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:m,type:this.type})]}});var b=r(51876);let y=/^```([a-z]+)?[\s\n]$/,v=/^~~~([a-z]+)?[\s\n]$/,x=n.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;let{languageClassPrefix:r}=this.options,n=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(r)).map(e=>e.replace(r,""))[0];return n||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,n.KV)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,r=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!r||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:r}=t,{$from:n,empty:i}=r;if(!i||n.parent.type!==this.type)return!1;let o=n.parentOffset===n.parent.nodeSize-2,s=n.parent.textContent.endsWith("\n\n");return!!o&&!!s&&e.chain().command(({tr:e})=>(e.delete(n.pos-2,n.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:r,doc:n}=t,{$from:i,empty:o}=r;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let s=i.after();return void 0!==s&&(n.nodeAt(s)?e.commands.command(({tr:e})=>(e.setSelection(b.LN.near(n.resolve(s))),!0)):e.commands.exitCode())}}}
1,addInputRules(){return[(0,n.JJ)({find:y,type:this.type,getAttributes:e=>({language:e[1]})}),(0,n.JJ)({find:v,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new b.k_({key:new b.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let r=t.clipboardData.getData("text/plain"),n=t.clipboardData.getData("vscode-editor-data"),i=n?JSON.parse(n):void 0,o=null==i?void 0:i.mode;if(!r||!o)return!1;let{tr:s,schema:l}=e.state,a=l.text(r.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:o},a)),s.selection.$from.parent.type!==this.type&&s.setSelection(b.U3.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}});var k=r(8618),w=r(62463);class C{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!=(r=t.width)?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,r=this.editorView.state.doc.resolve(this.cursorPos),n=!r.parent.inlineContent,i,o=this.editorView.dom,s=o.getBoundingClientRect(),l=s.width/o.offsetWidth,a=s.height/o.offsetHeight;if(n){let e=r.nodeBefore,t=r.nodeAfter;if(e||t){let r=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(r){let n=r.getBoundingClientRect(),o=e?n.bottom:n.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*a;i={left:n.left,right:n.right,top:o-s,bottom:o+s}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*l;i={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let c=this.editorView.dom.offsetParent;if(!this.element&&(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),c&&(c!=document.body||"static"!=getComputedStyle(c).position)){let r=c.getBoundingClientRect(),n=r.width/c.offsetWidth,i=r.height/c.offsetHeight;e=r.left-c.scrollLeft*n,t=r.top-c.scrollTop*i}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=(i.left-e)/l+"px",this.element.style.top=(i.top-t)/a+"px",this.element.style.width=(i.right-i.left)/l+"px",this.element.style.height=(i.bottom-i.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,w.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}let E=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new b.k_({view:t=>new C(t,e)})}(this.options)]}});var A=r(24945),S=r(92322),M=r(32806);class D extends b.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));
1return D.valid(r)?new D(r):b.LN.near(r)}content(){return S.Ji.empty}eq(e){return e instanceof D&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for GapCursor.fromJSON");return new D(e.resolve(t.pos))}getBookmark(){return new N(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!function(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0==r){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||T(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r==n.childCount){if(n.type.spec.isolating)return!0;continue}for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||T(e.type))return!0;if(e.inlineContent)return!1}}return!0}(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,r=!1){e:for(;;){if(!r&&D.valid(e))return e;let n=e.pos,i=null;for(let r=e.depth;;r--){let o=e.node(r);if(t>0?e.indexAfter(r)<o.childCount:e.index(r)>0){i=o.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let s=e.doc.resolve(n);if(D.valid(s))return s}for(;;){let o=t>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!b.nh.isSelectable(i)){e=e.doc.resolve(n+i.nodeSize*t),r=!1;continue e}break}i=o,n+=t;let s=e.doc.resolve(n);if(D.valid(s))return s}return null}}}D.prototype.visible=!1,D.findFrom=D.findGapCursorFrom,b.LN.jsonID("gapcursor",D);class N{constructor(e){this.pos=e}map(e){return new N(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return D.valid(t)?new D(t):b.LN.near(t)}}function T(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}let j=(0,A.K)({ArrowLeft:_("horiz",-1),ArrowRight:_("horiz",1),ArrowUp:_("vert",-1),ArrowDown:_("vert",1)});function _(e,t){let r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,i){let o=e.selection,s=t>0?o.$to:o.$from,l=o.empty;if(o instanceof b.U3){if(!i.endOfTextblock(r)||0==s.depth)return!1;l=!1,s=e.doc.resolve(t>0?s.after():s.before())}let a=D.findGapCursorFrom(s,t,l);return!!a&&(n&&n(e.tr.setSelection(new D(a))),!0)}}function F(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!D.valid(n))return!1;let i=e.posAtCoords({left:r.clientX,top:r.clientY});return!(i&&i.inside>-1&&b.nh.isSelectable(e.state.doc.nodeAt(i.inside)))&&(e.dispatch(e.state.tr.setSelection(new D(n))),!0)}function L(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof D))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let i=S.FK.empty;for(let e=n.length-1;e>=0;e--)i=S.FK.from(n[e].createAndFill(null,i));let o=e.state.tr.replace(r.pos,r.pos,new S.Ji(i,0,0));return o.setSelection(b.U3.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function R(e){if(!(e.selection instanceof D))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",M.zF.create(e.doc,[M.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}let I=n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[new b.k_({props:{decorations:R,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&D.valid(r)?new D(r):null,handleClick:F,handleKeyDown:j,handleDOMEvents:{beforeinput
1:L}}})],extendNodeSchema(e){var t;let r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))?t:null}}}),O=n.bP.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,n.KV)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:r,editor:n})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=r;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:s}=n.extensionManager,l=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&l&&o){let t=l.filter(e=>s.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),z=n.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let r=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${r}`,(0,n.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,...{[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}}),{})},addInputRules(){return this.options.levels.map(e=>(0,n.JJ)({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
1)\\s$`),type:this.type,getAttributes:{level:e}}))}});var B=function(){};B.prototype.append=function(e){return e.length?(e=B.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},B.prototype.prepend=function(e){return e.length?B.from(e).append(this):this},B.prototype.appendInner=function(e){return new $(this,e)},B.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?B.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},B.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},B.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},B.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},B.from=function(e){return e instanceof B?e:e&&e.length?new P(e):B.empty};var P=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(B);B.empty=new P([]);var $=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;if(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n)||r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i)||r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))return!1},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(B);class H{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let r,n,i,o;if(0==this.eventCount)return null;let s=this.items.length;for(;;s--)if(this.items.get(s-1).selection){--s;break}t&&(n=(r=this.remapping(s,this.items.length)).maps.length);let l=e.tr,a=[],c=[];return this.items.forEach((e,t)=>{if(!e.step){r||(n=(r=this.remapping(s,t+1)).maps.length),n--,c.push(e);return}if(r){c.push(new q(e.map));let t=e.step.map(r.slice(n)),i;t&&l.maybeStep(t).doc&&(i=l.mapping.maps[l.mapping.maps.length-1],a.push(new q(i,void 0,void 0,a.length+c.length))),n--,i&&r.appendMap(i,n)}else l.maybeStep(e.step);if(e.selection)return i=r?e.selection.map(r.slice(n)):e.selection,o=new H(this.items.slice(0,s).append(c.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:l,selection:i}}addTransform(e,t,r,n){var i,o;let s,l=[],a=this.eventCount,c=this.items,u=!n&&c.length?c.get(c.length-1):null;for(let r=0;r<e.steps.length;r++){let i=e.steps[r].invert(e.docs[r]),o=new q(e.mapping.maps[r],i,t),s;(s=u&&u.merge(o))&&(o=s,r?l.pop():c=c.slice(0,c.length-1)),l.push(o),t&&(a++,t=void 0),n||(u=o)}let d=a-r.depth;return d>
1V&&(i=c,o=d,i.forEach((e,t)=>{if(e.selection&&0==o--)return s=t,!1}),c=i.slice(s),a-=d),new H(c.append(l),a)}remapping(e,t){let r=new w.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new H(this.items.append(e.map(e=>new q(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},n);let l=t;this.items.forEach(t=>{let n=i.getMirror(--l);if(null==n)return;o=Math.min(o,n);let a=i.maps[n];if(t.step){let o=e.steps[n].invert(e.docs[n]),c=t.selection&&t.selection.map(i.slice(l+1,n));c&&s++,r.push(new q(a,o,c))}else r.push(new q(a))},n);let a=[];for(let e=t;e<o;e++)a.push(new q(i.maps[e]));let c=new H(this.items.slice(0,n).append(a).append(r),s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-r.length)),c}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,n=[],i=0;return this.items.forEach((o,s)=>{if(s>=e)n.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(r)),s=e&&e.getMap();if(r--,s&&t.appendMap(s,r),e){let l=o.selection&&o.selection.map(t.slice(r));l&&i++;let a=new q(s.invert(),e,l),c,u=n.length-1;(c=n.length&&n[u].merge(a))?n[u]=c:n.push(a)}}else o.map&&r--},this.items.length,0),new H(B.from(n.reverse()),i)}}H.empty=new H(B.empty,0);class q{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new q(t.getMap().invert(),t,this.selection)}}}class K{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}let V=20;function U(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function W(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),o=t.map(e[n+1],-1);i<=o&&r.push(i,o)}return r}let J=!1,G=null;function Z(e){let t=e.plugins;if(G!=t){J=!1,G=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){J=!0;break}}return J}let Y=new b.hs("history"),X=new b.hs("closeHistory");function Q(e,t){return(r,n)=>{let i=Y.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let o=function(e,t,r){let n=Z(t),i=Y.get(t).spec.config,o=(r?e.undone:e.done).popEvent(t,n);if(!o)return null;let s=o.selection.resolve(o.transform.doc),l=(r?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,n),a=new K(r?l:o.remaining,r?o.remaining:l,null,0,-1);return o.transform.setSelection(s).setMeta(Y,{redo:r,historyState:a})}(i,r,e);o&&n(t?o.scrollIntoView():o)}return!0}}let ee=Q(!1,!0),et=Q(!0,!0);Q(!1,!1),Q(!0,!1);let er=n.YY.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>ee(e,t),redo:()=>({state:e,dispatch:t})=>et(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new b.k_({key:Y,state:{init:()=>new K(H.empty,H.empty,null,0,-1),apply:(t,r,n)=>(function(e,t,r,n){let i=r.getMeta(Y),o;if(i)return i.historyState;r.getMeta(X)&&(e=new K(e.done,e.undone,null,0,-1));let s=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(s&&s.getMeta(Y))if(s.getMeta(Y).redo)return new K(e.done.addTransform(r,void 0,n,Z(t)),e.undone,U(r.mapping.maps),e.prevTime,e.prevComposition);else return new K(e.done,e.undone.addTransform(r,void 0,n,Z(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))if(o=r.getMeta("rebased"))return new K(e.done.rebased(r,o),e.undone.rebased(r,o),W(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);else return new K(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),W(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),o=0==e.prevTime||!s&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;
1return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}(r,e.prevRanges)),l=s?W(e.prevRanges,r.mapping):U(r.mapping.maps);return new K(e.done.addTransform(r,o?t.selection.getBookmark():void 0,n,Z(t)),H.empty,l,r.time,null==i?e.prevComposition:i)}})(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?ee:"historyRedo"==r?et:null;return!!n&&!!e.editable&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}}),en=n.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,n.KV)(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!(0,n.AB)(t,t.schema.nodes[this.name]))return!1;let{selection:r}=t,{$from:i,$to:o}=r,s=e();return 0===i.parentOffset?s.insertContentAt({from:Math.max(i.pos-1,0),to:o.pos},{type:this.name}):(0,n.BQ)(r)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:e,dispatch:t})=>{var r;if(t){let{$to:t}=e.selection,n=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(b.U3.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(b.nh.create(e.doc,t.pos)):e.setSelection(b.U3.create(e.doc,t.pos));else{let i=null==(r=t.parent.type.contentMatch.defaultType)?void 0:r.create();i&&(e.insert(n,i),e.setSelection(b.U3.create(e.doc,n+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,n.jT)({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
1ype})]}}),ei=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,eo=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,es=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,el=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,ea=n.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:e}){return["em",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,n.OX)({find:ei,type:this.type}),(0,n.OX)({find:es,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:eo,type:this.type}),(0,n.Zc)({find:el,type:this.type})]}}),ec=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,n.KV)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),eu="textStyle",ed=/^(\d+)\.\s$/,eh=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...r}=e;return 1===t?["ol",(0,n.KV)(this.options.HTMLAttributes,r),0]:["ol",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(eu)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}}
1,addInputRules(){let e=(0,n.tG)({find:ed,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:ed,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(eu)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),ep=n.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),ef=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,em=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,eg=n.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,n.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,n.OX)({find:ef,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:em,type:this.type})]}}),eb=n.bP.create({name:"text",group:"inline"}),ey=n.YY.create({name:"starterKit",addExtensions(){let e=[];return!1!==this.options.bold&&e.push(u.configure(this.options.bold)),!1!==this.options.blockquote&&e.push(o.configure(this.options.blockquote)),!1!==this.options.bulletList&&e.push(p.configure(this.options.bulletList)),!1!==this.options.code&&e.push(g.configure(this.options.code)),!1!==this.options.codeBlock&&e.push(x.configure(this.options.codeBlock)),!1!==this.options.document&&e.push(k.y.configure(this.options.document)),!1!==this.options.dropcursor&&e.push(E.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&e.push(I.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&e.push(O.configure(this.options.hardBreak)),!1!==this.options.heading&&e.push(z.configure(this.options.heading)),!1!==this.options.history&&e.push(er.configure(this.options.history)),!1!==this.options.horizontalRule&&e.push(en.configure(this.options.horizontalRule)),!1!==this.options.italic&&e.push(ea.configure(this.options.italic)),!1!==this.options.listItem&&e.push(ec.configure(this.options.listItem)),!1!==this.options.orderedList&&e.push(eh.configure(this.options.orderedList)),!1!==this.options.paragraph&&e.push(ep.configure(this.options.paragraph)),!1!==this.options.strike&&e.push(eg.configure(this.options.strike)),!1!==this.options.text&&e.push(eb.configure(this.options.text)),e}})},17787:(e,t,r)=>{"use strict";r.d(t,{Mp:()=>ez,vL:()=>s,uN:()=>es,cA:()=>ep,AN:()=>ed,IG:()=>em,fp:()=>F,y$:()=>L,Sj:()=>P,Vy:()=>j,sl:()=>H,TT:()=>I,fF:()=>eH,PM:()=>e$,zM:()=>eK,MS:()=>E,FR:()=>A});var n,i,o,s,l,a,c,u,d,h,p=r(12115),f=r(47650),m=r(27587);let g={display:"none"};function b(e){let{id:t,value:r}=e;return p.createElement("div",{id:t,style:g},r)}function y(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return p.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}let v=(0,p.createContext)(null),x={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},k={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function w(e){let{announcements:t=k,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=x}=e,{announce:o,announcement:s}=function(){let[e,t]=(0,p.useState)("");return{announce:(0,p.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),l=(0,m.YG)("DndLiveRegion"),[a,c]=(0,p.useState)(!1);(0,p.useEffect)(()=>{c(!0)},[]);var u=(0,p.useMemo)(()=>({onDragStart(e){let{active:r}=e;o(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&o(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;o(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;o(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;
1o(t.onDragCancel({active:r,over:n}))}}),[o,t]);let d=(0,p.useContext)(v);if((0,p.useEffect)(()=>{if(!d)throw Error("useDndMonitor must be used within a children of <DndContext>");return d(u)},[u,d]),!a)return null;let h=p.createElement(p.Fragment,null,p.createElement(b,{id:n,value:i.draggable}),p.createElement(y,{id:l,announcement:s}));return r?(0,f.createPortal)(h,r):h}function C(){}function E(e,t){return(0,p.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function A(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,p.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(n||(n={}));let S=Object.freeze({x:0,y:0});function M(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function D(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function N(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function T(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function j(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function _(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let F=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=_(t,t.left,t.top),o=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=M(_(n),i);o.push({id:t,data:{droppableContainer:e,value:r}})}}return o.sort(D)},L=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=T(t),o=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=T(n),s=Number((i.reduce((e,t,n)=>e+M(r[n],t),0)/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(D)},R=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=[];for(let e of n){let{id:n}=e,o=r.get(n);if(o){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height);if(n<i&&r<o){let s=t.width*t.height,l=e.width*e.height,a=(i-n)*(o-r);return Number((a/(s+l-a)).toFixed(4))}return 0}(o,t);r>0&&i.push({id:n,data:{droppableContainer:e,value:r}})}}return i.sort(N)},I=e=>{let{droppableContainers:t,droppableRects:r,pointerCoordinates:n}=e;if(!n)return[];let i=[];for(let e of t){let{id:t}=e,o=r.get(t);if(o&&function(e,t){let{top:r,left:n,bottom:i,right:o}=t;return r<=e.y&&e.y<=i&&n<=e.x&&e.x<=o}(n,o)){let r=Number((T(o).reduce((e,t)=>e+M(n,t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:r}})}}return i.sort(D)};function O(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:S}let z=function(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x}),{...t})}}(1),B={ignoreTransform:!1};function P(e,t){void 0===t&&(t=B);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=(0,m.zk)(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=function(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!n)return e;let{scaleX:i,scaleY:o,x:s,y:l}=n,a=e.left-s-(1-i)*parseFloat(r),c=e.top-l-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:a+u,bottom:c+d,left:a}}(r,t,n))}let{top:n,left:i,width:o,height:s,bottom:l,right:a}=r;return{top:n,left:i,width:o,height:s,bottom:l,right:a}}function $(e){return P(e,{ignoreTransform:!0})}function H(e,t){let r=[];return e?function n(i){var o;if(null!=t&&r.length>=t||!i)return r;if((0,m.wz)(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!(0,m.sb)(i)||(0,m.xZ)(i)||r.includes(i))return r;let s=(0,m.zk)(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=(0,m.zk)(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let n=t[e];return"string"==typeof n&&r.test(n)})}(i,s)&&r.push(i),void 0===(o=s)&&(o=(0,m.zk)(i).getComputedStyle(i)),"fixed"===o.position)?r:n(i.parentNode)}(e):r}function q(e){let[t]=H(e,1);return null!=t?t:null}function K(e){return m.Sw&&e?(0,m.l6)(e)?e:(0,m.Ll)(e)?(0,m.wz)(e)||e===(0,m.TW)(e).scrollingElement?window:(0,m.sb)(e)?e:null:null:null}function V(e){return(0,m.l6)(e)?e.scrollX:e.scrollLeft}function U(e){return(0,m.l6)(e)?e.scrollY:e.scrollTop}function W(e){return{x:V(e),y:U(e)}}function J(e){return!!m.Sw&&!!e&&e===document.scrollingElement}function G(e){let t={x:0,y:0},r=J(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x;return{isTop:i,isLeft:o,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(i||(i={}));let Z={x:.2,y:.2};function Y(e){return e.reduce((e,t)=>
1(0,m.WQ)(e,W(t)),S)}let X=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+V(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+U(t),0)}]];class Q{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=H(t),n=Y(r);for(let[t,i,o]of(this.rect={...e},this.width=e.width,this.height=e.height,X))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=o(r),s=n[t]-i;return this.rect[e]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ee{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function et(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function er(e){e.preventDefault()}function en(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(o||(o={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(s||(s={}));let ei={start:[s.Space,s.Enter],cancel:[s.Esc],end:[s.Space,s.Enter,s.Tab]},eo=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case s.Right:return{...r,x:r.x+25};case s.Left:return{...r,x:r.x-25};case s.Down:return{...r,y:r.y+25};case s.Up:return{...r,y:r.y-25}}};class es{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new ee((0,m.TW)(t)),this.windowListeners=new ee((0,m.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(o.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&function(e,t){if(void 0===t&&(t=P),!e)return;let{top:r,left:n,bottom:i,right:o}=t(e);q(e)&&(i<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(r),t(S)}handleKeyDown(e){if((0,m.kx)(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:i=ei,coordinateGetter:o=eo,scrollBehavior:l="smooth"}=n,{code:a}=e;if(i.end.includes(a))return void this.handleEnd(e);if(i.cancel.includes(a))return void this.handleCancel(e);let{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:S;this.referenceCoordinates||(this.referenceCoordinates=u);let d=o(e,{active:t,context:r.current,currentCoordinates:u});if(d){let t=(0,m.Re)(d,u),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=e.code,{isTop:o,isRight:a,isLeft:c,isBottom:u,maxScroll:h,minScroll:p}=G(r),f=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}(r),m={x:Math.min(i===s.Right?f.right-f.width/2:f.right,Math.max(i===s.Right?f.left:f.left+f.width/2,d.x)),y:Math.min(i===s.Down?f.bottom-f.height/2:f.bottom,Math.max(i===s.Down?f.top:f.top+f.height/2,d.y))},g=i===s.Right&&!a||i===s.Left&&!c,b=i===s.Down&&!u||i===s.Up&&!o;if(g&&m.x!==d.x){let e=r.scrollLeft+t.x,o=i===s.Right&&e<=h.x||i===s.Left&&e>=p.x;if(o&&!t.y)return void r.scrollTo({left:e,behavior:l});o?n.x=r.scrollLeft-e:n.x=i===s.Right?r.scrollLeft-h.x:r.scrollLeft-p.x,n.x&&r.scrollBy({left:-n.x,behavior:l});break}if(b&&m.y!==d.y){let e=r.scrollTop+t.y,o=i===s.Down&&e<=h.y||i===s.Up&&e>=p.y;if(o&&!t.x)return void r.scrollTo({top:e,behavior:l});o?n.y=r.scrollTop-e:n.y=i===s.Down?r.scrollTop-h.y:r.scrollTop-p.y,n.y&&r.scrollBy({top:-n.y,behavior:l});break}}this.handleMove(e,(0,m.WQ)((0,m.Re)(d,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function el(e){return!!(e&&"distance"in e)}function ea(e){return!!(e&&"delay"in e)}es.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=ei,onActivation:i}=t,{active:o}=r,{code:s}=e.nativeEvent;
1if(n.start.includes(s)){let t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class ec{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=(0,m.zk)(e);return e instanceof t?e:(0,m.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=(0,m.TW)(o),this.documentListeners=new ee(this.document),this.listeners=new ee(r),this.windowListeners=new ee((0,m.zk)(o)),this.initialCoordinates=null!=(n=(0,m.e_)(i))?n:S,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.DragStart,er),this.windowListeners.add(o.VisibilityChange,this.handleCancel),this.windowListeners.add(o.ContextMenu,er),this.documentListeners.add(o.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ea(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(el(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(o.Click,en,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(o.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!n)return;let l=null!=(t=(0,m.e_)(e))?t:S,a=(0,m.Re)(n,l);if(!r&&s){if(el(s)){if(null!=s.tolerance&&et(a,s.tolerance))return this.handleCancel();if(et(a,s.distance))return this.handleStart()}return ea(s)&&et(a,s.tolerance)?this.handleCancel():void this.handlePending(s,a)}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===s.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let eu={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ed extends ec{constructor(e){let{event:t}=e;super(e,eu,(0,m.TW)(t.target))}}ed.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let eh={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(l||(l={}));class ep extends ec{constructor(e){super(e,eh,(0,m.TW)(e.event.target))}}ep.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==l.RightClick&&(null==n||n({event:r}),!0)}}];let ef={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class em extends ec{constructor(e){super(e,ef)}static setup(){return window.addEventListener(ef.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ef.move.name,e)};function e(){}}}em.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(a||(a={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
1sedTreeOrder"}(c||(c={}));let eg={x:{[i.Backward]:!1,[i.Forward]:!1},y:{[i.Backward]:!1,[i.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(u||(u={})),(d||(d={})).Optimized="optimized";let eb=new Map;function ey(e,t){return(0,m.KG)(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function ev(e){let{callback:t,disabled:r}=e,n=(0,m._q)(t),i=(0,p.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function ex(e){return new Q(P(e),e)}function ek(e,t,r){void 0===t&&(t=ex);let[n,i]=(0,p.useState)(null);function o(){i(n=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let o=t(e);return JSON.stringify(n)===JSON.stringify(o)?n:o})}let s=function(e){let{callback:t,disabled:r}=e,n=(0,m._q)(t),i=(0,p.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){o();break}}}}),l=ev({callback:o});return(0,m.Es)(()=>{o(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())},[e]),n}let ew=[];function eC(e,t){void 0===t&&(t=[]);let r=(0,p.useRef)(null);return(0,p.useEffect)(()=>{r.current=null},t),(0,p.useEffect)(()=>{let t=e!==S;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?(0,m.Re)(e,r.current):S}function eE(e){return(0,p.useMemo)(()=>e?function(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}let eA=[],eS=[{sensor:ed,options:{}},{sensor:es,options:{}}],eM={current:{}},eD={draggable:{measure:$},droppable:{measure:$,strategy:u.WhileDragging,frequency:d.Optimized},dragOverlay:{measure:P}};class eN extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let eT={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eN,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:C},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:eD,measureDroppableContainers:C,windowRect:null,measuringScheduled:!1},ej={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:C,draggableNodes:new Map,over:null,measureDroppableContainers:C},e_=(0,p.createContext)(ej),eF=(0,p.createContext)(eT);function eL(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eN}}}function eR(e,t){switch(t.type){case n.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case n.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case n.DragEnd:case n.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case n.RegisterDroppable:{let{element:r}=t,{id:n}=r,i=new eN(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case n.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;let s=new eN(e.droppable.containers);return s.set(r,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:s}}}case n.UnregisterDroppable:{let{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;
1let o=new eN(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function eI(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:i}=(0,p.useContext)(e_),o=(0,m.ZC)(n),s=(0,m.ZC)(null==r?void 0:r.id);return(0,p.useEffect)(()=>{if(!t&&!n&&o&&null!=s){if(!(0,m.kx)(o)||document.activeElement===o.target)return;let e=i.get(s);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=(0,m.ag)(e);if(t){t.focus();break}}})}},[n,t,i,s,o]),null}let eO=(0,p.createContext)({...S,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(h||(h={}));let ez=(0,p.memo)(function(e){var t,r,o,s,l,d;let{id:g,accessibility:b,autoScroll:y=!0,children:x,sensors:k=eS,collisionDetection:C=R,measuring:E,modifiers:A,...M}=e,[D,N]=(0,p.useReducer)(eR,void 0,eL),[T,_]=function(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,p.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[F,L]=(0,p.useState)(h.Uninitialized),I=F===h.Initialized,{draggable:{active:B,nodes:$,translate:V},droppable:{containers:U}}=D,X=null!=B?$.get(B):null,ee=(0,p.useRef)({initial:null,translated:null}),et=(0,p.useMemo)(()=>{var e;return null!=B?{id:B,data:null!=(e=null==X?void 0:X.data)?e:eM,rect:ee}:null},[B,X]),er=(0,p.useRef)(null),[en,ei]=(0,p.useState)(null),[eo,es]=(0,p.useState)(null),el=(0,m.YN)(M,Object.values(M)),ea=(0,m.YG)("DndDescribedBy",g),ec=(0,p.useMemo)(()=>U.getEnabled(),[U]),eu=(0,p.useMemo)(()=>({draggable:{...eD.draggable,...null==E?void 0:E.draggable},droppable:{...eD.droppable,...null==E?void 0:E.droppable},dragOverlay:{...eD.dragOverlay,...null==E?void 0:E.dragOverlay}}),[null==E?void 0:E.draggable,null==E?void 0:E.droppable,null==E?void 0:E.dragOverlay]),{droppableRects:ed,measureDroppableContainers:eh,measuringScheduled:ep}=function(e,t){let{dragging:r,dependencies:n,config:i}=t,[o,s]=(0,p.useState)(null),{frequency:l,measure:a,strategy:c}=i,d=(0,p.useRef)(e),h=function(){switch(c){case u.Always:return!1;case u.BeforeDragging:return r;default:return!r}}(),f=(0,m.YN)(h),g=(0,p.useCallback)(function(e){void 0===e&&(e=[]),f.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),b=(0,p.useRef)(null),y=(0,m.KG)(t=>{if(h&&!r)return eb;if(!t||t===eb||d.current!==e||null!=o){let t=new Map;for(let r of e){if(!r)continue;if(o&&o.length>0&&!o.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new Q(a(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,o,r,h,a]);return(0,p.useEffect)(()=>{d.current=e},[e]),(0,p.useEffect)(()=>{h||g()},[r,h]),(0,p.useEffect)(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),(0,p.useEffect)(()=>{h||"number"!=typeof l||null!==b.current||(b.current=setTimeout(()=>{g(),b.current=null},l))},[l,h,g,...n]),{droppableRects:y,measureDroppableContainers:g,measuringScheduled:null!=o}}(ec,{dragging:I,dependencies:[V.x,V.y],config:eu.droppable}),ef=function(e,t){let r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return(0,m.KG)(e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}($,B),em=(0,p.useMemo)(()=>eo?(0,m.e_)(eo):null,[eo]),ex=function(){let e=(null==en?void 0:en.autoScrollEnabled)===!1,t="object"==typeof y?!1===y.enabled:!1===y,r=I&&!e&&!t;return"object"==typeof y?{...y,enabled:r}:{enabled:r}}(),eN=ey(ef,eu.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e,o=(0,p.useRef)(!1),{x:s,y:l}="boolean"==typeof i?{x:i,y:i}:i;(0,m.Es)(()=>{if(!s&&!l||!t){o.current=!1;return}if(o.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=O(r(e),n);if(s||(i.x=0),l||(i.y=0),o.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=q(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,s,l,n,r])}({activeNode:null!=B?$.get(B):null,config:ex.layoutShiftCompensation,initialRect:eN,measure:eu.draggable.measure});let eT=ek(ef,eu.draggable.measure,eN),ej=ek(ef?ef.parentElement:null),ez=(0,p.useRef)({activatorEvent:null,active:null,activeNode:ef,collisionRect:null,collisions:null,droppableRects:ed,draggableNodes:$,draggingNode:null,draggingNodeRect:null,droppableContainers:U,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eB=U.getNodeFor(null==(t=ez.current.over)?void 0:t.id),eP=function(e){let{measure:t}=e,[r,n]=(0,p.useState)(null),i=ev({callback:(0,p.useCallback)(e=>{for(let{target:r}of e)if((0,m.sb)(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),o=(0,p.useCallback)(e=>{let r=function(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,m.sb)(t)?t:e}(e);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?t(r):null)},[t,i]),[s,l]=(0,m.lk)(o);return(0,p.useMemo)(()=>({nodeRef:s,rect:r,setRef:l}),[r,s,l])}({measure:eu.dragOverlay.measure}
1),e$=null!=(r=eP.nodeRef.current)?r:ef,eH=I?null!=(o=eP.rect)?o:eT:null,eq=!!(eP.nodeRef.current&&eP.rect),eK=function(e){let t=ey(e);return O(e,t)}(eq?null:eT),eV=eE(e$?(0,m.zk)(e$):null),eU=function(e){let t=(0,p.useRef)(e),r=(0,m.KG)(r=>e?r&&r!==ew&&e&&t.current&&e.parentNode===t.current.parentNode?r:H(e):ew,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),r}(I?null!=eB?eB:ef:null),eW=function(e,t){void 0===t&&(t=P);let[r]=e,n=eE(r?(0,m.zk)(r):null),[i,o]=(0,p.useState)(eA);function s(){o(()=>e.length?e.map(e=>J(e)?n:new Q(t(e),e)):eA)}let l=ev({callback:s});return(0,m.Es)(()=>{null==l||l.disconnect(),s(),e.forEach(e=>null==l?void 0:l.observe(e))},[e]),i}(eU),eJ=function(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}(A,{transform:{x:V.x-eK.x,y:V.y-eK.y,scaleX:1,scaleY:1},activatorEvent:eo,active:et,activeNodeRect:eT,containerNodeRect:ej,draggingNodeRect:eH,over:ez.current.over,overlayNodeRect:eP.rect,scrollableAncestors:eU,scrollableAncestorRects:eW,windowRect:eV}),eG=em?(0,m.WQ)(em,V):null,eZ=function(e){let[t,r]=(0,p.useState)(null),n=(0,p.useRef)(e),i=(0,p.useCallback)(e=>{let t=K(e.target);t&&r(e=>e?(e.set(t,W(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=n.current;if(e!==t){o(t);let s=e.map(e=>{let t=K(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,W(t)]):null}).filter(e=>null!=e);r(s.length?new Map(s):null),n.current=e}return()=>{o(e),o(t)};function o(e){e.forEach(e=>{let t=K(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,m.WQ)(e,t),S):Y(e):S,[e,t])}(eU),eY=eC(eZ),eX=eC(eZ,[eT]),eQ=(0,m.WQ)(eJ,eY),e0=eH?z(eH,eJ):null,e1=et&&e0?C({active:et,collisionRect:e0,droppableRects:ed,droppableContainers:ec,pointerCoordinates:eG}):null,e2=j(e1,"id"),[e5,e3]=(0,p.useState)(null),e4=(l=eq?eJ:(0,m.WQ)(eJ,eX),d=null!=(s=null==e5?void 0:e5.rect)?s:null,{...l,scaleX:d&&eT?d.width/eT.width:1,scaleY:d&&eT?d.height/eT.height:1}),e6=(0,p.useRef)(null),e8=(0,p.useCallback)((e,t)=>{let{sensor:r,options:i}=t;if(null==er.current)return;let o=$.get(er.current);if(!o)return;let s=e.nativeEvent,l=new r({active:er.current,activeNode:o,event:s,options:i,context:ez,onAbort(e){if(!$.get(e))return;let{onDragAbort:t}=el.current,r={id:e};null==t||t(r),T({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!$.get(e))return;let{onDragPending:i}=el.current,o={id:e,constraint:t,initialCoordinates:r,offset:n};null==i||i(o),T({type:"onDragPending",event:o})},onStart(e){let t=er.current;if(null==t)return;let r=$.get(t);if(!r)return;let{onDragStart:i}=el.current,o={activatorEvent:s,active:{id:t,data:r.data,rect:ee}};(0,f.unstable_batchedUpdates)(()=>{null==i||i(o),L(h.Initializing),N({type:n.DragStart,initialCoordinates:e,active:t}),T({type:"onDragStart",event:o}),ei(e6.current),es(s)})},onMove(e){N({type:n.DragMove,coordinates:e})},onEnd:a(n.DragEnd),onCancel:a(n.DragCancel)});function a(e){return async function(){let{active:t,collisions:r,over:i,scrollAdjustedTranslate:o}=ez.current,l=null;if(t&&o){let{cancelDrop:a}=el.current;l={activatorEvent:s,active:t,collisions:r,delta:o,over:i},e===n.DragEnd&&"function"==typeof a&&await Promise.resolve(a(l))&&(e=n.DragCancel)}er.current=null,(0,f.unstable_batchedUpdates)(()=>{N({type:e}),L(h.Uninitialized),e3(null),ei(null),es(null),e6.current=null;let t=e===n.DragEnd?"onDragEnd":"onDragCancel";if(l){let e=el.current[t];null==e||e(l),T({type:t,event:l})}})}}e6.current=l},[$]),e9=(0,p.useCallback)((e,t)=>(r,n)=>{let i=r.nativeEvent,o=$.get(n);null!==er.current||!o||i.dndKit||i.defaultPrevented||!0===e(r,t.options,{active:o})&&(i.dndKit={capturedBy:t.sensor},er.current=n,e8(r,t))},[$,e8]),e7=(0,p.useMemo)(()=>k.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:e9(e.handler,t)}))]},[]),[k,e9]);(0,p.useEffect)(()=>{if(!m.Sw)return;let e=k.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},k.map(e=>{let{sensor:t}=e;return t})),(0,m.Es)(()=>{eT&&F===h.Initializing&&L(h.Initialized)},[eT,F]),(0,p.useEffect)(()=>{let{onDragMove:e}=el.current,{active:t,activatorEvent:r,collisions:n,over:i}=ez.current;if(!t||!r)return;let o={active:t,activatorEvent:r,collisions:n,delta:{x:eQ.x,y:eQ.y},over:i};(0,f.unstable_batchedUpdates)(()=>{null==e||e(o),T({type:"onDragMove",event:o})})},[eQ.x,eQ.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=ez.current;if(!e||null==er.current||!t||!i)return;let{onDragOver:o}=el.current,s=n.get(e2),l=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,a={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:l};(0,f.unstable_batchedUpdates)(()=>{e3(l),null==o||o(a),T({type:"onDragOver",event:a})})},[e2]),(0,m.Es)(()=>{ez.current={activatorEvent:eo,active:et,activeNode:ef,collisionRect:e0,collisions:e1,droppableRects:ed,draggableNodes:$,draggingNode:e$,draggingNodeRect:eH,droppableContainers:U,over:e5,scrollableAncestors:eU,scrollAdjustedTranslate:eQ},ee.current={initial:eH,translated:e0}},[et,ef,e1,e0,$,e$,eH,ed,U,e5,eU,eQ]),function(e){let{acceleration:t,activator:r=a.Pointer,canScroll:n,draggingRect:o,enabled:s,interval:l=5,order:u=c.TreeOrder,pointerCoordinates:d,scrollableAncestors:h,scrollableAncestorRects:f,delta:g,threshold:b}=e,y=function(e){let{delta:t,disabled:r}=e,n=(0,m.ZC)(t);return(0,m.KG)(e=>{if(r||!n||!e)return eg;let o={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[i.Backward]:e.x[i.Backward]||-1===o.x,[i.Forward]:e.x[i.Forward]||1===o.x},y:{[i.Backward]:e.y[i.Backward]||-1===o.y,[i.Forward]:e.y[i.Forward]||1===o.y}}},[r,t,n])}({delta:g,disabled:!s}
1),[v,x]=(0,m.$$)(),k=(0,p.useRef)({x:0,y:0}),w=(0,p.useRef)({x:0,y:0}),C=(0,p.useMemo)(()=>{switch(r){case a.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case a.DraggableRect:return o}},[r,o,d]),E=(0,p.useRef)(null),A=(0,p.useCallback)(()=>{let e=E.current;if(!e)return;let t=k.current.x*w.current.x,r=k.current.y*w.current.y;e.scrollBy(t,r)},[]),S=(0,p.useMemo)(()=>u===c.TreeOrder?[...h].reverse():h,[u,h]);(0,p.useEffect)(()=>{if(!s||!h.length||!C)return void x();for(let e of S){if((null==n?void 0:n(e))===!1)continue;let r=f[h.indexOf(e)];if(!r)continue;let{direction:o,speed:s}=function(e,t,r,n,o){let{top:s,left:l,right:a,bottom:c}=r;void 0===n&&(n=10),void 0===o&&(o=Z);let{isTop:u,isBottom:d,isLeft:h,isRight:p}=G(e),f={x:0,y:0},m={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!u&&s<=t.top+g.height?(f.y=i.Backward,m.y=n*Math.abs((t.top+g.height-s)/g.height)):!d&&c>=t.bottom-g.height&&(f.y=i.Forward,m.y=n*Math.abs((t.bottom-g.height-c)/g.height)),!p&&a>=t.right-g.width?(f.x=i.Forward,m.x=n*Math.abs((t.right-g.width-a)/g.width)):!h&&l<=t.left+g.width&&(f.x=i.Backward,m.x=n*Math.abs((t.left+g.width-l)/g.width)),{direction:f,speed:m}}(e,r,C,t,b);for(let e of["x","y"])y[e][o[e]]||(s[e]=0,o[e]=0);if(s.x>0||s.y>0){x(),E.current=e,v(A,l),k.current=s,w.current=o;return}}k.current={x:0,y:0},w.current={x:0,y:0},x()},[t,A,n,x,s,l,JSON.stringify(C),JSON.stringify(y),v,h,S,f,JSON.stringify(b)])}({...ex,delta:V,draggingRect:e0,pointerCoordinates:eG,scrollableAncestors:eU,scrollableAncestorRects:eW});let te=(0,p.useMemo)(()=>({active:et,activeNode:ef,activeNodeRect:eT,activatorEvent:eo,collisions:e1,containerNodeRect:ej,dragOverlay:eP,draggableNodes:$,droppableContainers:U,droppableRects:ed,over:e5,measureDroppableContainers:eh,scrollableAncestors:eU,scrollableAncestorRects:eW,measuringConfiguration:eu,measuringScheduled:ep,windowRect:eV}),[et,ef,eT,eo,e1,ej,eP,$,U,ed,e5,eh,eU,eW,eu,ep,eV]),tt=(0,p.useMemo)(()=>({activatorEvent:eo,activators:e7,active:et,activeNodeRect:eT,ariaDescribedById:{draggable:ea},dispatch:N,draggableNodes:$,over:e5,measureDroppableContainers:eh}),[eo,e7,et,eT,N,ea,$,e5,eh]);return p.createElement(v.Provider,{value:_},p.createElement(e_.Provider,{value:tt},p.createElement(eF.Provider,{value:te},p.createElement(eO.Provider,{value:e4},x)),p.createElement(eI,{disabled:(null==b?void 0:b.restoreFocus)===!1})),p.createElement(w,{...b,hiddenTextDescribedById:ea}))}),eB=(0,p.createContext)(null),eP="button";function e$(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e,o=(0,m.YG)("Draggable"),{activators:s,activatorEvent:l,active:a,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:h}=(0,p.useContext)(e_),{role:f=eP,roleDescription:g="draggable",tabIndex:b=0}=null!=i?i:{},y=(null==a?void 0:a.id)===t,v=(0,p.useContext)(y?eO:eB),[x,k]=(0,m.lk)(),[w,C]=(0,m.lk)(),E=(0,p.useMemo)(()=>s.reduce((e,r)=>{let{eventName:n,handler:i}=r;return e[n]=e=>{i(e,t)},e},{}),[s,t]),A=(0,m.YN)(r);return(0,m.Es)(()=>(d.set(t,{id:t,key:o,node:x,activatorNode:w,data:A}),()=>{let e=d.get(t);e&&e.key===o&&d.delete(t)}),[d,t]),{active:a,activatorEvent:l,activeNodeRect:c,attributes:(0,p.useMemo)(()=>({role:f,tabIndex:b,"aria-disabled":n,"aria-pressed":!!y&&f===eP||void 0,"aria-roledescription":g,"aria-describedby":u.draggable}),[n,f,b,y,g,u.draggable]),isDragging:y,listeners:n?void 0:E,node:x,over:h,setNodeRef:k,setActivatorNodeRef:C,transform:v}}function eH(){return(0,p.useContext)(eF)}let eq={timeout:25};function eK(e){let{data:t,disabled:r=!1,id:i,resizeObserverConfig:o}=e,s=(0,m.YG)("Droppable"),{active:l,dispatch:a,over:c,measureDroppableContainers:u}=(0,p.useContext)(e_),d=(0,p.useRef)({disabled:r}),h=(0,p.useRef)(!1),f=(0,p.useRef)(null),g=(0,p.useRef)(null),{disabled:b,updateMeasurementsFor:y,timeout:v}={...eq,...o},x=(0,m.YN)(null!=y?y:i),k=ev({callback:(0,p.useCallback)(()=>{if(!h.current){h.current=!0;return}null!=g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{u(Array.isArray(x.current)?x.current:[x.current]),g.current=null},v)},[v]),disabled:b||!l}),w=(0,p.useCallback)((e,t)=>{k&&(t&&(k.unobserve(t),h.current=!1),e&&k.observe(e))},[k]),[C,E]=(0,m.lk)(w),A=(0,m.YN)(t);return(0,p.useEffect)(()=>{k&&C.current&&(k.disconnect(),h.current=!1,k.observe(C.current))},[C,k]),(0,p.useEffect)(()=>(a({type:n.RegisterDroppable,element:{id:i,key:s,disabled:r,node:C,rect:f,data:A}}),()=>a({type:n.UnregisterDroppable,key:s,id:i})),[i]),(0,p.useEffect)(()=>{r!==d.current.disabled&&(a({type:n.SetDroppableDisabled,id:i,key:s,disabled:r}),d.current.disabled=r)},[i,s,r,a]),{active:l,rect:f,isOver:(null==c?void 0:c.id)===i,node:C,over:c,setNodeRef:E}}},18514:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},18720:(e,t,r)=>{"use strict";r.d(t,{l:()=>k,toast:()=>g});var n=r(12115),i=r(47650);let o=Array(12).fill(0),s=e=>{let{visible:t,className:r}=e;return n.createElement("div",{className:["sonner-loading-wrapper",r].filter(
1Boolean).join(" "),"data-visible":t},n.createElement("div",{className:"sonner-spinner"},o.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),a=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h=1;class p{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:h++,o=this.toasts.find(e=>e.id===i),s=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:r}),{...t,...e,id:i,dismissible:s,title:r}):t):this.addToast({title:r,...n,dismissible:s,id:i}),i},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
1this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r,i;if(!t)return;void 0!==t.loading&&(i=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let o=Promise.resolve(e instanceof Function?e():e),s=void 0!==i,l=o.then(async e=>{if(r=["resolve",e],n.isValidElement(e))s=!1,this.create({id:i,type:"default",message:e});else if(m(e)&&!e.ok){s=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,o="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description,l="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...l})}else if(e instanceof Error){s=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...l})}else if(void 0!==t.success){s=!1;let r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"success",description:o,...l})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){s=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,l="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...l})}}).finally(()=>{s&&(this.dismiss(i),i=void 0),null==t.finally||t.finally.call(t)}),a=()=>new Promise((e,t)=>l.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof i&&"number"!=typeof i?{unwrap:a}:Object.assign(i,{unwrap:a})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||h++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}let f=new p,m=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,g=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||h++;return f.addToast({title:e,...t,id:r}),r},{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading},{getHistory:()=>f.toasts,getToasts:()=>f.getActiveToasts()});function b(e){return void 0!==e.label}function y(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}
vendor: 14,864 bytes, line 1
1("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
1let v=e=>{var t,r,i,o,h,p,f,m,g,v,x;let{invert:k,toast:w,unstyled:C,interacting:E,setHeights:A,visibleToasts:S,heights:M,index:D,toasts:N,expanded:T,removeToast:j,defaultRichColors:_,closeButton:F,style:L,cancelButtonStyle:R,actionButtonStyle:I,className:O="",descriptionClassName:z="",duration:B,position:P,gap:$,expandByDefault:H,classNames:q,icons:K,closeButtonAriaLabel:V="Close toast"}=e,[U,W]=n.useState(null),[J,G]=n.useState(null),[Z,Y]=n.useState(!1),[X,Q]=n.useState(!1),[ee,et]=n.useState(!1),[er,en]=n.useState(!1),[ei,eo]=n.useState(!1),[es,el]=n.useState(0),[ea,ec]=n.useState(0),eu=n.useRef(w.duration||B||4e3),ed=n.useRef(null),eh=n.useRef(null),ep=0===D,ef=D+1<=S,em=w.type,eg=!1!==w.dismissible,eb=w.className||"",ey=w.descriptionClassName||"",ev=n.useMemo(()=>M.findIndex(e=>e.toastId===w.id)||0,[M,w.id]),ex=n.useMemo(()=>{var e;return null!=(e=w.closeButton)?e:F},[w.closeButton,F]),ek=n.useMemo(()=>w.duration||B||4e3,[w.duration,B]),ew=n.useRef(0),eC=n.useRef(0),eE=n.useRef(0),eA=n.useRef(null),[eS,eM]=P.split("-"),eD=n.useMemo(()=>M.reduce((e,t,r)=>r>=ev?e:e+t.height,0),[M,ev]),eN=(()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eT=w.invert||k,ej="loading"===em;eC.current=n.useMemo(()=>ev*$+eD,[ev,eD]),n.useEffect(()=>{eu.current=ek},[ek]),n.useEffect(()=>{Y(!0)},[]),n.useEffect(()=>{let e=eh.current;if(e){let t=e.getBoundingClientRect().height;return ec(t),A(e=>[{toastId:w.id,height:t,position:w.position},...e]),()=>A(e=>e.filter(e=>e.toastId!==w.id))}},[A,w.id]),n.useLayoutEffect(()=>{if(!Z)return;let e=eh.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,ec(r),A(e=>e.find(e=>e.toastId===w.id)?e.map(e=>e.toastId===w.id?{...e,height:r}:e):[{toastId:w.id,height:r,position:w.position},...e])},[Z,w.title,w.description,A,w.id,w.jsx,w.action,w.cancel]);let e_=n.useCallback(()=>{Q(!0),el(eC.current),A(e=>e.filter(e=>e.toastId!==w.id)),setTimeout(()=>{j(w)},200)},[w,j,A,eC]);n.useEffect(()=>{let e;if((!w.promise||"loading"!==em)&&w.duration!==1/0&&"loading"!==w.type)return T||E||eN?(()=>{if(eE.current<ew.current){let e=new Date().getTime()-ew.current;eu.current=eu.current-e}eE.current=new Date().getTime()})():eu.current!==1/0&&(ew.current=new Date().getTime(),e=setTimeout(()=>{null==w.onAutoClose||w.onAutoClose.call(w,w),e_()},eu.current)),()=>clearTimeout(e)},[T,E,w,em,eN,e_]),n.useEffect(()=>{w.delete&&(e_(),null==w.onDismiss||w.onDismiss.call(w,w))},[e_,w.delete]);let eF=w.icon||(null==K?void 0:K[em])||(e=>{switch(e){case"success":return l;case"info":return c;case"warning":return a;case"error":return u;default:return null}})(em);return n.createElement("li",{tabIndex:0,ref:eh,className:y(O,eb,null==q?void 0:q.toast,null==w||null==(t=w.classNames)?void 0:t.toast,null==q?void 0:q.default,null==q?void 0:q[em],null==w||null==(r=w.classNames)?void 0:r[em]),"data-sonner-toast":"","data-rich-colors":null!=(v=w.richColors)?v:_,"data-styled":!(w.jsx||w.unstyled||C),"data-mounted":Z,"data-promise":!!w.promise,"data-swiped":ei,"data-removed":X,"data-visible":ef,"data-y-position":eS,"data-x-position":eM,"data-index":D,"data-front":ep,"data-swiping":ee,"data-dismissible":eg,"data-type":em,"data-invert":eT,"data-swipe-out":er,"data-swipe-direction":J,"data-expanded":!!(T||H&&Z),"data-testid":w.testId,style:{"--index":D,"--toasts-before":D,"--z-index":N.length-D,"--offset":"".concat(X?es:eC.current,"px"),"--initial-height":H?"auto":"".concat(ea,"px"),...L,...w.style},onDragEnd:()=>{et(!1),W(null),eA.current=null},onPointerDown:e=>{2!==e.button&&!ej&&eg&&(ed.current=new Date,el(eC.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(et(!0),eA.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n,i;if(er||!eg)return;eA.current=null;let o=Number((null==(e=eh.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(t=eh.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),l=new Date().getTime()-(null==(r=ed.current)?void 0:r.getTime()),a="x"===U?o:s,c=Math.abs(a)/l;if(Math.abs(a)>=45||c>.11){el(eC.current),null==w.onDismiss||w.onDismiss.call(w,w),"x"===U?G(o>0?"right":"left"):G(s>0?"down":"up"),e_(),en(!0);return}null==(n=eh.current)||n.style.setProperty("--swipe-amount-x","0px"),null==(i=eh.current)||i.style.setProperty("--swipe-amount-y","0px"),eo(!1),et(!1),W(null)},onPointerMove:t=>{var r,n,i,o;if(!eA.current||!eg||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let s=t.clientY-eA.current.y,l=t.clientX-eA.current.x,a=null!=(o=e.swipeDirections)?o:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(P);!U&&(Math.abs(l)>1||Math.abs(s)>1)&&W(Math.abs(l)>
1Math.abs(s)?"x":"y");let c={x:0,y:0},u=e=>1/(1.5+Math.abs(e)/20);if("y"===U){if(a.includes("top")||a.includes("bottom"))if(a.includes("top")&&s<0||a.includes("bottom")&&s>0)c.y=s;else{let e=s*u(s);c.y=Math.abs(e)<Math.abs(s)?e:s}}else if("x"===U&&(a.includes("left")||a.includes("right")))if(a.includes("left")&&l<0||a.includes("right")&&l>0)c.x=l;else{let e=l*u(l);c.x=Math.abs(e)<Math.abs(l)?e:l}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&eo(!0),null==(n=eh.current)||n.style.setProperty("--swipe-amount-x","".concat(c.x,"px")),null==(i=eh.current)||i.style.setProperty("--swipe-amount-y","".concat(c.y,"px"))}},ex&&!w.jsx&&"loading"!==em?n.createElement("button",{"aria-label":V,"data-disabled":ej,"data-close-button":!0,onClick:ej||!eg?()=>{}:()=>{e_(),null==w.onDismiss||w.onDismiss.call(w,w)},className:y(null==q?void 0:q.closeButton,null==w||null==(i=w.classNames)?void 0:i.closeButton)},null!=(x=null==K?void 0:K.close)?x:d):null,(em||w.icon||w.promise)&&null!==w.icon&&((null==K?void 0:K[em])!==null||w.icon)?n.createElement("div",{"data-icon":"",className:y(null==q?void 0:q.icon,null==w||null==(o=w.classNames)?void 0:o.icon)},w.promise||"loading"===w.type&&!w.icon?w.icon||function(){var e,t;return(null==K?void 0:K.loading)?n.createElement("div",{className:y(null==q?void 0:q.loader,null==w||null==(t=w.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===em},K.loading):n.createElement(s,{className:y(null==q?void 0:q.loader,null==w||null==(e=w.classNames)?void 0:e.loader),visible:"loading"===em})}
1():null,"loading"!==w.type?eF:null):null,n.createElement("div",{"data-content":"",className:y(null==q?void 0:q.content,null==w||null==(h=w.classNames)?void 0:h.content)},n.createElement("div",{"data-title":"",className:y(null==q?void 0:q.title,null==w||null==(p=w.classNames)?void 0:p.title)},w.jsx?w.jsx:"function"==typeof w.title?w.title():w.title),w.description?n.createElement("div",{"data-description":"",className:y(z,ey,null==q?void 0:q.description,null==w||null==(f=w.classNames)?void 0:f.description)},"function"==typeof w.description?w.description():w.description):null),n.isValidElement(w.cancel)?w.cancel:w.cancel&&b(w.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:w.cancelButtonStyle||R,onClick:e=>{b(w.cancel)&&eg&&(null==w.cancel.onClick||w.cancel.onClick.call(w.cancel,e),e_())},className:y(null==q?void 0:q.cancelButton,null==w||null==(m=w.classNames)?void 0:m.cancelButton)},w.cancel.label):null,n.isValidElement(w.action)?w.action:w.action&&b(w.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:w.actionButtonStyle||I,onClick:e=>{b(w.action)&&(null==w.action.onClick||w.action.onClick.call(w.action,e),e.defaultPrevented||e_())},className:y(null==q?void 0:q.actionButton,null==w||null==(g=w.classNames)?void 0:g.actionButton)},w.action.label):null)};function x(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let k=n.forwardRef(function(e,t){let{id:r,invert:o,position:s="bottom-right",hotkey:l=["altKey","KeyT"],expand:a,closeButton:c,className:u,offset:d,mobileOffset:h,theme:p="light",richColors:m,duration:g,style:b,visibleToasts:y=3,toastOptions:k,dir:w=x(),gap:C=14,icons:E,containerAriaLabel:A="Notifications"}=e,[S,M]=n.useState([]),D=n.useMemo(()=>r?S.filter(e=>e.toasterId===r):S.filter(e=>!e.toasterId),[S,r]),N=n.useMemo(()=>Array.from(new Set([s].concat(D.filter(e=>e.position).map(e=>e.position)))),[D,s]),[T,j]=n.useState([]),[_,F]=n.useState(!1),[L,R]=n.useState(!1),[I,O]=n.useState("system"!==p?p:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=n.useRef(null),B=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=n.useRef(null),$=n.useRef(!1),H=n.useCallback(e=>{M(t=>{var r;return(null==(r=t.find(t=>t.id===e.id))?void 0:r.delete)||f.dismiss(e.id),t.filter(t=>{let{id:r}=t;return r!==e.id})})},[]);return n.useEffect(()=>f.subscribe(e=>{if(e.dismiss)return void requestAnimationFrame(()=>{M(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});setTimeout(()=>{i.flushSync(()=>{M(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[S]),n.useEffect(()=>{if("system"!==p)return void O(p);if("system"===p&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;t?O("dark"):O("light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{t?O("dark"):O("light")}catch(e){console.error(e)}})}},[p]),n.useEffect(()=>{S.length<=1&&F(!1)},[S]),n.useEffect(()=>{let e=e=>{var t,r;l.every(t=>e[t]||e.code===t)&&(F(!0),null==(r=z.current)||r.focus()),"Escape"===e.code&&(document.activeElement===z.current||(null==(t=z.current)?void 0:t.contains(document.activeElement)))&&F(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[l]),n.useEffect(()=>{if(z.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,$.current=!1)}},[z.current]),n.createElement("section",{ref:t,"aria-label":"".concat(A," ").concat(B),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((t,r)=>{var i;let[s,l]=t.split("-");return D.length?n.createElement("ol",{key:t,dir:"auto"===w?x():w,tabIndex:-1,ref:z,className:u,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":s,"data-x-position":l,style:{"--front-toast-height":"".concat((null==(i=T[0])?void 0:i.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(C,"px"),...b,...function(e,t){let r={};return[e,t].forEach((e,t)=>{let n=1===t,i=n?"--mobile-offset":"--offset",o=n?"16px":"24px";function s(e){["top","right","bottom","left"].forEach(t=>{r["".concat(i,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e})}"number"==typeof e||"string"==typeof e?s(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?r["".concat(i,"-").concat(t)]=o:r["".concat(i,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]}):s(o)}),r}(d,h)},onBlur:e=>{$.current&&!e.currentTarget.contains(e.relatedTarget)&&($.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&($.current||($.current=!0,P.current=e.relatedTarget))},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{L||F(!1)},onDragEnd:()=>F(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||R(!0)},onPointerUp:()=>R(!1)},D.filter(e=>!e.position&&0===r||e.position===t).map((r,i)=>{var s,l;return n.createElement(v,{key:r.id,icons:E,index:i,toast:r,defaultRichColors:m,duration:null!=(s=null==k?void 0:k.duration)?s:g,className:null==k?void 0:k.className,descriptionClassName:null==k?void 0:k.descriptionClassName,invert:o,visibleToasts:y,closeButton:null!=(l=null==k?void 0:k.closeButton)?l:c,interacting:L,position:t,style:null==k?void 0:k.style,unstyled:null==k?void 0:k.unstyled,classNames:null==k?void 0:k.classNames,cancelButtonStyle:null==k?void 0:k.cancelButtonStyle,actionButtonStyle:null==k?void 0:k.actionButtonStyle,closeButtonAriaLabel:null==k?void 0:k.closeButtonAriaLabel,removeToast:H,toasts:D.filter(e=>e.position==r.position),heights:T.filter(e=>e.position==r.position),setHeights:j,expandByDefault:a,gap:C,expanded:_,swipeDirections:e.swipeDirections})})):null}))})},19418:(e,t,r)=>{"use strict";r.d(t,{AdminResourceKanban:()=>g});var n=r(95155),i=r(12115),o=r(6191),s=r(3998),l=r(11186),a=r(9672),c=r(54665),u=r(92649),d=r(48631),h=r(45412),p=r(38855),f=r(7784);function m(e){return"".concat("af-core.kanban.").concat(e,".grouping")}function g(e){var t,r,g,b,y,v,x,k,w,C;let{config:E,toolbarExtras:A,wide:S,fluid:M=!0}=e,{items:D,loading:N,error:T,refetch:j}=E.data.useList(),_=(0,h.b)(),F=(0,i.useMemo)(()=>E.groupings.map(e=>e.key),[E.groupings]),[L,R]=(0,i.useState)(()=>E.groupings[0].key);(0,i.useEffect)(()=>{let e=function(e){if("undefined"==typeof window)return null;try{return window.localStorage.getItem(m(e))}catch(e){return null}}(E.boardId);e&&F.includes(e)&&R(e)},[E.boardId,F]);let I=null!=(y=E.groupings.find(e=>e.key===L))?y:E.groupings[0],O=null!=(v=E.list)?v:{},z=E.resource.basePath,[B,P]=(0,i.useState)(()=>{var e,t;return null!=(t=null==(e=(0,f.w)(z))?void 0:e.search)?t:""}),[$,H]=(0,i.useState)(()=>{var e,t,r,n;return null!=(n=null!=(r=null==(e=(0,f.w)(z))?void 0:e.statusValue)?r:null==(t=O.statusFilter)?void 0:t.defaultValue)?n:""}),[q,K]=(0,i.useState)(()=>{var e,t,r;return null!=(r=null==(e=(0,f.w)(z))?void 0:e.extraValues)?r:Object.fromEntries((null!=(t=O.extraFilters)?t:[]).map(e=>[e.label,e.defaultValue]))});(0,i.useEffect)(()=>{(0,f.$)(z,{search:B,statusValue:$,extraValues:q})},[z,B,$,q]);let V=(0,i.useMemo)(()=>{var e;let t=D;for(let r of(O.statusFilter&&$!==O.statusFilter.defaultValue&&(t=t.filter(e=>O.statusFilter.predicate(e,$))),null!=(e=O.extraFilters)?e:[])){let e=q[r.label];e&&e!==r.defaultValue&&(t=t.filter(t=>r.predicate(t,e)))}if(O.search&&B.trim().length>0){let e=B.trim().toLowerCase();t=t.filter(t=>(function(e,t,r){if("match"in e)return e.match(t,r);for(let n of e.fields){let e=t[n];if("string"==typeof e&&e.toLowerCase().includes(r))return!0}return!1})(O.search,t,e))}return t},[D,O.statusFilter,O.extraFilters,O.search,$,q,B]),U=(0,i.useMemo)(()=>{var e,t;let r=[];for(let n of(O.statusFilter&&r.push({id:"status",label:O.statusFilter.label,value:$,onChange:H,options:O.statusFilter.options,defaultValue:O.statusFilter.defaultValue}),null!=(e=O.extraFilters)?e:[]))r.push({id:n.label,label:n.label,value:null!=(t=q[n.label])?t:n.defaultValue,onChange:e=>K(t=>({...t,[n.label]:e})),options:n.options,defaultValue:n.defaultValue});return r},[O.statusFilter,O.extraFilters,$,q]),W=_("core.kanban.groupByLabel"),J=E.groupings.length>1?(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"sr-only",children:W}
1),(0,n.jsxs)(l.l6,{value:I.key,onValueChange:e=>{if(F.includes(e)){R(e);var t=E.boardId;if("undefined"!=typeof window)try{window.localStorage.setItem(m(t),e)}catch(e){}}},children:[(0,n.jsx)(l.bq,{className:"h-9 w-[10rem]",children:(0,n.jsx)(l.yv,{placeholder:W})}),(0,n.jsx)(l.gC,{children:E.groupings.map(e=>{var t;return(0,n.jsx)(l.eb,{value:e.key,children:null!=(t=e.label)?t:e.key},e.key)})})]})]}):null,G=U.length>0||J?(0,n.jsx)(c.AdminFilterBar,{filters:U,onClearAll:U.length>0?()=>{var e;O.statusFilter&&H(O.statusFilter.defaultValue),K(Object.fromEntries((null!=(e=O.extraFilters)?e:[]).map(e=>[e.label,e.defaultValue]))),P("")}:void 0,children:J}):void 0;return(0,n.jsx)(u.AdminListPage,{title:E.resource.plural,eyebrow:_("core.adminList.eyebrow"),toolbarExtras:A,wide:S,fluid:M,primaryAction:E.create?{label:(0,p.G)(_("core.adminList.newItem"),{singular:E.resource.singular}),icon:o.A,...E.create.href?{href:E.create.href}:{onClick:E.create.onClick}}:void 0,onRefresh:j?()=>void j():void 0,refreshing:N,search:O.search?{value:B,onChange:P,placeholder:null!=(x=O.search.placeholder)?x:(0,p.G)(_("core.adminList.searchPlaceholderForResource"),{plural:E.resource.plural})}:void 0,filters:G,children:T?(0,n.jsx)(a.AdminEmptyState,{icon:E.resource.icon,title:null!=(k=null==(t=E.messages)?void 0:t.errorTitle)?k:_("core.kanban.errorTitle"),description:null!=(w=null==(r=E.messages)?void 0:r.errorDescription)?w:"string"==typeof T&&T.length>0?T:_("core.kanban.errorDescription"),children:(0,n.jsx)(s.$,{type:"button",variant:"outline",onClick:()=>{if(j)return void j();"undefined"!=typeof window&&window.location.reload()},children:null!=(C=null==(g=E.messages)?void 0:g.errorRetry)?C:_("core.kanban.errorRetry")})}):(0,n.jsx)(d.KanbanBoard,{items:V,columns:I.columns,getColumnKey:I.getColumnKey,renderCard:E.renderCard,sortBy:I.sortBy,loading:null!=N&&N,rollbackErrorMessage:null==(b=E.messages)?void 0:b.errorMove,emptyColumnLabel:_("core.kanban.emptyColumn"),onCardClick:E.onCardClick,onMove:(e,t,r)=>I.onMove(e,t,r,I.key)},I.key)})}},19651:(e,t,r)=>{"use strict";r.d(t,{LinkToolbar:()=>l});var n=r(95155),i=r(50859),o=r(30447),s=r(45412);function l(e){let{editor:t}=e,r=(0,s.b)();return(0,n.jsx)(o.ToolbarButton,{onClick:()=>{var e;let n=window.prompt(r("core.editor.urlPrompt"),null!=(e=t.getAttributes("link").href)?e:"");null!==n&&(""===n?t.chain().focus().unsetLink().run():t.chain().focus().setLink({href:n}).run())},active:t.isActive("link"),title:r("core.editor.link"),children:(0,n.jsx)(i.A,{className:"h-3 w-3"})})}},19918:e=>{var t=!0,r=!1,n=!1;function i(e,t,r){var n=e.attrIndex(t),i=[t,r];n<0?e.attrPush(i):e.attrs[n]=i}e.exports=function(e,o){o&&(t=!o.enabled,r=!!o.label,n=!!o.labelAfter),e.core.ruler.after("inline","github-task-lists",function(e){for(var o=e.tokens,s=2;s<o.length;s++)(function(e,t){var r;return"inline"===e[t].type&&"paragraph_open"===e[t-1].type&&"list_item_open"===e[t-2].type&&(0===(r=e[t]).content.indexOf("[ ] ")||0===r.content.indexOf("[x] ")||0===r.content.indexOf("[X] "))})(o,s)&&(function(e,i){if(e.children.unshift(function(e,r){var n=new r("html_inline","",0),i=t?' disabled="" ':"";return 0===e.content.indexOf("[ ] ")?n.content='<input class="task-list-item-checkbox"'+i+'type="checkbox">':(0===e.content.indexOf("[x] ")||0===e.content.indexOf("[X] "))&&(n.content='<input class="task-list-item-checkbox" checked=""'+i+'type="checkbox">'),n}(e,i)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),r)if(n){e.children.pop();var o="task-item-"+Math.ceil(1e7*Math.random()-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+o+'">',e.children.push(function(e,t,r){var n=new r("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",n.attrs=[{for:t}],n}(e.content,o,i))}else e.children.unshift(function(e){var t=new e("html_inline","",0);return t.content="<label>",t}(i)),e.children.push(function(e){var t=new e("html_inline","",0);return t.content="</label>",t}(i))}(o[s],e.Token),i(o[s-2],"class","task-list-item"+(t?"":" enabled")),i(o[function(e,t){for(var r=e[t].level-1,n=t-1;n>=0;n--)if(e[n].level===r)return n;return -1}(o,s-2)],"class","contains-task-list"))})}},20230:(e,t,r)=>{"use strict";r.d(t,{EditorColorsProvider:()=>s,useEditorColors:()=>l});var n=r(95155),i=r(12115);let o=(0,i.createContext)([]);
1function s(e){let{colors:t,children:r}=e;return(0,n.jsx)(o.Provider,{value:t,children:r})}function l(){return(0,i.useContext)(o)}},23327:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},23540:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("image-off",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]])},23614:(e,t,r)=>{"use strict";r.d(t,{SegmentedTabsList:()=>s,SegmentedTabsTrigger:()=>l});var n=r(95155),i=r(13406),o=r(40745);function s(e){let{className:t,...r}=e;return(0,n.jsx)(i.j7,{className:(0,o.cn)("h-auto max-w-full justify-start gap-1.5 overflow-x-auto bg-transparent p-0",t),...r})}function l(e){let{className:t,...r}=e;return(0,n.jsx)(i.Xi,{className:(0,o.cn)("h-8 flex-none rounded-md border-border px-3 text-muted-foreground hover:text-foreground data-[state=active]:border-[var(--primary)] data-[state=active]:bg-[var(--primary)] data-[state=active]:text-[var(--primary-foreground)] data-[state=active]:shadow-none dark:data-[state=active]:border-[var(--primary)] dark:data-[state=active]:bg-[var(--primary)] dark:data-[state=active]:text-[var(--primary-foreground)]",t),...r})}},24183:(e,t,r)=>{"use strict";r.d(t,{AdminFormSection:()=>n});let n=r(16829).FormSection},24325:(e,t,r)=>{"use strict";r.d(t,{$B:()=>l,Sd:()=>o,T2:()=>s});var n=r(62463),i=r(92322);function o(e,t=null){return function(r,o){let{$from:s,$to:l}=r.selection,a=s.blockRange(l);if(!a)return!1;let c=o?r.tr:null;return!!function(e,t,r,o=null){let s=!1,l=t,a=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=a.resolve(t.start-2);l=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,a.resolve(t.$to.end(t.depth)),t.depth)),s=!0}let c=(0,n.oM)(l,r,o,t);return!!c&&(e&&function(e,t,r,o,s){let l=i.FK.empty;for(let e=r.length-1;e>=0;e--)l=i.FK.from(r[e].type.create(r[e].attrs,l));e.step(new n.Wg(t.start-2*!!o,t.end,t.start,t.end,new i.Ji(l,0,0),r.length,!0));let a=0;for(let e=0;e<r.length;e++)r[e].type==s&&(a=e+1);let c=r.length-a,u=t.start+r.length-2*!!o,d=t.parent;for(let r=t.startIndex,i=t.endIndex,o=!0;r<i;r++,o=!1)!o&&(0,n.zy)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(r).nodeSize}(e,t,c,s,r),!0)}(c,a,e,t)&&(o&&o(c.scrollIntoView()),!0)}}function s(e){return function(t,r){let{$from:o,$to:s}=t.selection,l=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);return!!l&&(!r||(o.node(l.depth-1).type==e?function(e,t,r,o){let s=e.tr,l=o.end,a=o.$to.end(o.depth);l<a&&(s.step(new n.Wg(l-1,a,l,a,new i.Ji(i.FK.from(r.create(null,o.parent.copy())),1,0),1,!0)),o=new i.u$(s.doc.resolve(o.$from.pos),s.doc.resolve(a),o.depth));let c=(0,n.jP)(o);if(null==c)return!1;s.lift(o,c);let u=s.doc.resolve(s.mapping.map(l,-1)-1);return(0,n.n9)(s.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&s.join(u.pos),t(s.scrollIntoView()),!0}(t,r,e,l):function(e,t,r){let o=e.tr,s=r.parent;for(let e=r.end,t=r.endIndex-1,n=r.startIndex;t>n;t--)e-=s.child(t).nodeSize,o.delete(e-1,e+1);let l=o.doc.resolve(r.start),a=l.nodeAfter;if(o.mapping.map(r.end)!=r.start+l.nodeAfter.nodeSize)return!1;let c=0==r.startIndex,u=r.endIndex==s.childCount,d=l.node(-1),h=l.index(-1);if(!d.canReplace(h+ +!c,h+1,a.content.append(u?i.FK.empty:i.FK.from(s))))return!1;let p=l.pos,f=p+a.nodeSize;return o.step(new n.Wg(p-!!c,f+ +!!u,p+1,f-1,new i.Ji((c?i.FK.empty:i.FK.from(s.copy(i.FK.empty))).append(u?i.FK.empty:i.FK.from(s.copy(i.FK.empty))),+!c,+!u),+!c)),t(o.scrollIntoView()),!0}(t,r,l)))}}function l(e){return function(t,r){let{$from:o,$to:s}=t.selection,l=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);if(!l)return!1;let a=l.startIndex;if(0==a)return!1;let c=l.parent,u=c.child(a-1);if(u.type!=e)return!1;if(r){let o=u.lastChild&&u.lastChild.type==c.type,s=i.FK.from(o?e.create():null),a=new i.Ji(i.FK.from(e.create(null,i.FK.from(c.type.create(null,s)))),o?3:1,0),d=l.start,h=l.end;r(t.tr.step(new n.Wg(d-(o?3:1),h,d,h,a,1,!0)).scrollIntoView())}return!0}}},24607:(e,t,r)=>{"use strict";r.d(t,{U:()=>o,x:()=>i});var n=r(76908);let i=n.CU.create({name:"smallText",parseHTML:()=>[{tag:"span",getAttrs:e=>e instanceof HTMLElement&&!!e.classList.contains("text-sm")&&{}}],renderHTML(e){let{HTMLAttributes:t}=e;return["span",(0,n.KV)(t,{class:"text-sm"}),0]},addCommands:()=>({toggleSmallText:()=>e=>{let{commands:t}=e;return t.toggleMark("smallText")}})}),o=n.CU.create({name:"leadText",parseHTML:()=>[{tag:"span",getAttrs:e=>e instanceof HTMLElement&&!!e.classList.contains("text-lg")&&{}}],renderHTML(e){let{HTMLAttributes:t}=e;return["span",(0,n.KV)(t,{class:"text-lg"}),0]},addCommands:()=>({toggleLeadText:()=>e=>{let{commands:t}=e;return t.toggleMark("leadText")}})})},24945:(e,t,r)=>{"use strict";r.d(t,{K:()=>f,w:()=>p});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)n[48+l]=n[96+l]=String(l);for(var l=1;l<=24;l++)n[l+111]="F"+l;for(var l=65;l<=90;l++)n[l]=String.fromCharCode(l+32),i[l]=String.fromCharCode(l);for(var a in n)i.hasOwnProperty(a)||(i[a]=n[a]);var c=r(51876);let u="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="undefined"!=typeof navigator&&/Win/.test(navigator.platform);
1function h(e,t,r=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function p(e){return new c.k_({props:{handleKeyDown:f(e)}})}function f(e){let t=function(e){let t=Object.create(null);for(let r in e)t[function(e){let t,r,n,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let e=0;e<o.length-1;e++){let s=o[e];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else if(/^s(hift)?$/i.test(s))n=!0;else if(/^mod$/i.test(s))u?i=!0:r=!0;else throw Error("Unrecognized modifier name: "+s)}return t&&(s="Alt-"+s),r&&(s="Ctrl-"+s),i&&(s="Meta-"+s),n&&(s="Shift-"+s),s}(r)]=e[r];return t}(e);return function(e,r){var l;let a=("Esc"==(l=!(o&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||s&&r.shiftKey&&r.key&&1==r.key.length||"Unidentified"==r.key)&&r.key||(r.shiftKey?i:n)[r.keyCode]||r.key||"Unidentified")&&(l="Escape"),"Del"==l&&(l="Delete"),"Left"==l&&(l="ArrowLeft"),"Up"==l&&(l="ArrowUp"),"Right"==l&&(l="ArrowRight"),"Down"==l&&(l="ArrowDown"),l),c,u=t[h(a,r)];if(u&&u(e.state,e.dispatch,e))return!0;if(1==a.length&&" "!=a){if(r.shiftKey){let n=t[h(a,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(c=n[r.keyCode])&&c!=a){let n=t[h(c,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},25667:(e,t,r)=>{"use strict";r.d(t,{B8:()=>N,UC:()=>j,bL:()=>D,l9:()=>T});var n=r(12115),i=r(92556),o=r(3468),s=r(72431),l=r(76842),a=r(97602),c=r(66218),u=r(23558),d=r(68946),h=r(95155),p="Tabs",[f,m]=(0,o.A)(p,[s.RG]),g=(0,s.RG)(),[b,y]=f(p),v=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:l,activationMode:f="automatic",...m}=e,g=(0,c.jH)(l),[y,v]=(0,u.i)({prop:n,onChange:i,defaultProp:null!=o?o:"",caller:p});return(0,h.jsx)(b,{scope:r,baseId:(0,d.B)(),value:y,onValueChange:v,orientation:s,dir:g,activationMode:f,children:(0,h.jsx)(a.sG.div,{dir:g,"data-orientation":s,...m,ref:t})})});v.displayName=p;var x="TabsList",k=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...i}=e,o=y(x,r),l=g(r);return(0,h.jsx)(s.bL,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:n,children:(0,h.jsx)(a.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});k.displayName=x;var w="TabsTrigger",C=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...l}=e,c=y(w,r),u=g(r),d=S(c.baseId,n),p=M(c.baseId,n),f=n===c.value;return(0,h.jsx)(s.q7,{asChild:!0,...u,focusable:!o,active:f,children:(0,h.jsx)(a.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":p,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...l,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(n)}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(n)}),onFocus:(0,i.mK)(e.onFocus,()=>{let e="manual"!==c.activationMode;f||o||!e||c.onValueChange(n)})})})});C.displayName=w;var E="TabsContent",A=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,forceMount:o,children:s,...c}=e,u=y(E,r),d=S(u.baseId,i),p=M(u.baseId,i),f=i===u.value,m=n.useRef(f);return n.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(l.C,{present:o||f,children:r=>{let{present:n}=r;return(0,h.jsx)(a.sG.div,{"data-state":f?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:p,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:n&&s})}})});function S(e,t){return"".concat(e,"-trigger-").concat(t)}function M(e,t){return"".concat(e,"-content-").concat(t)}A.displayName=E;var D=v,N=k,T=C,j=A},27587:(e,t,r)=>{"use strict";r.d(t,{$$:()=>m,Es:()=>p,KG:()=>b,Ks:()=>M,Ll:()=>l,Re:()=>E,Sw:()=>o,TW:()=>h,WQ:()=>C,YG:()=>k,YN:()=>g,ZC:()=>v,_q:()=>f,ag:()=>N,e_:()=>S,jn:()=>i,kx:()=>A,l6:()=>s,lk:()=>y,sb:()=>u,wz:()=>c,xZ:()=>d,zk:()=>a});var n=r(12115);function i(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function s(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function a(e){var t,r;return e?s(e)?e:l(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function c(e){let{Document:t}=a(e);return e instanceof t}function u(e){return!s(e)&&e instanceof a(e).HTMLElement}function d(e){return e instanceof a(e).SVGElement}function h(e){return e?s(e)?e.document:l(e)?c(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}let p=o?n.useLayoutEffect:n.useEffect;function f(e){let t=(0,n.useRef)(e);return p(()=>{t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function m(){let e=(0,n.useRef)(null);return[(0,n.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,n.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function g(e,t){void 0===t&&(t=[e]);let r=(0,n.useRef)(e);return p(()=>{r.current!==e&&(r.current=e)},t),r}function b(e,t){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function y(e){let t=f(e),r=(0,n.useRef)(null),i=(0,n.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,i]}function v(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}let x={};function k(e,t){return(0,n.useMemo)(()=>
1{if(t)return t;let r=null==x[e]?0:x[e]+1;return x[e]=r,e+"-"+r},[e,t])}function w(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>{for(let[n,i]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}let C=w(1),E=w(-1);function A(e){if(!e)return!1;let{KeyboardEvent:t}=a(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=a(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let M=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[M.Translate.toString(e),M.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),D="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function N(e){return e.matches(D)?e:e.querySelector(D)}},27778:(e,t,r)=>{"use strict";r.d(t,{useDirtyForm:()=>i});var n=r(12115);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{confirmMessage:r="You have unsaved changes. Leave this page?",enabled:i=!0}=t,o=!!e.formState.isDirty;(0,n.useEffect)(()=>{if(!i||!o)return;let e=e=>(e.preventDefault(),e.returnValue=r,r);return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[i,o,r]);let s=(0,n.useCallback)(e=>!!(!i||!o||"undefined"==typeof window||window.confirm(r))&&(e(),!0),[i,o,r]);return{isDirty:o,guardNavigation:s}}},30447:(e,t,r)=>{"use strict";r.d(t,{ToolbarButton:()=>o,ToolbarDivider:()=>s});var n=r(95155),i=r(40745);function o(e){let{onClick:t,active:r,title:o,children:s,disabled:l}=e;return(0,n.jsx)("button",{type:"button",title:o,onClick:t,disabled:l,className:(0,i.cn)("px-2 py-0.5 rounded text-xs font-medium transition-colors",l?"text-gray-300 cursor-not-allowed":r?"bg-gray-200 text-gray-900":"text-gray-600 hover:bg-gray-100"),children:s})}function s(){return(0,n.jsx)("div",{className:"w-px h-4 bg-gray-300 mx-1"})}},30649:(e,t,r)=>{"use strict";r.d(t,{useModelCatalog:()=>l,withModels:()=>s});var n=r(95155),i=r(12115);let o=(0,i.createContext)(null);function s(e){return(t,r)=>(0,n.jsx)(o.Provider,{value:e,children:r})}function l(){let e=(0,i.useContext)(o);if(!e)throw Error("useModelCatalog() must be used inside <AfProvider use={[withModels(catalog)]}>");return e}},34143:(e,t,r)=>{"use strict";function n(e,t,r){var n,i;let o=null!=(n=e.en)?n:{},s=null!=(i=e[t])?i:o;return e=>r&&e in r?r[e]:e in s?s[e]:e in o?o[e]:e}r.d(t,{O:()=>n})},34904:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]])},35646:(e,t,r)=>{"use strict";r.d(t,{UC:()=>T,VY:()=>L,ZD:()=>_,ZL:()=>D,bL:()=>S,hE:()=>F,hJ:()=>N,l9:()=>M,rc:()=>j});var n=r(12115),i=r(3468),o=r(94446),s=r(89511),l=r(92556),a=r(95155),c="AlertDialog",[u,d]=(0,i.A)(c,[s.Hs]),h=(0,s.Hs)(),p=e=>{let{__scopeAlertDialog:t,...r}=e,n=h(t);return(0,a.jsx)(s.bL,{...n,...r,modal:!0})};p.displayName=c;var f=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,i=h(r);return(0,a.jsx)(s.l9,{...i,...n,ref:t})});f.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:t,...r}=e,n=h(t);return(0,a.jsx)(s.ZL,{...n,...r})};m.displayName="AlertDialogPortal";var g=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,i=h(r);return(0,a.jsx)(s.hJ,{...i,...n,ref:t})});g.displayName="AlertDialogOverlay";var b="AlertDialogContent",[y,v]=u(b),x=n.forwardRef((e,t)=>
1{let{__scopeAlertDialog:r,children:i,...c}=e,u=h(r),d=n.useRef(null),p=(0,o.s)(t,d),f=n.useRef(null);return(0,a.jsx)(y,{scope:r,cancelRef:f,children:(0,a.jsx)(s.UC,{role:"alertdialog",...u,...c,ref:p,onOpenAutoFocus:(0,l.mK)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null==(t=f.current)||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:i})})});x.displayName=b;var k=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,i=h(r);return(0,a.jsx)(s.hE,{...i,...n,ref:t})});k.displayName="AlertDialogTitle";var w=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,i=h(r);return(0,a.jsx)(s.VY,{...i,...n,ref:t})});w.displayName="AlertDialogDescription";var C=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,i=h(r);return(0,a.jsx)(s.bm,{...i,...n,ref:t})});C.displayName="AlertDialogAction";var E="AlertDialogCancel",A=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:i}=v(E,r),l=h(r),c=(0,o.s)(t,i);return(0,a.jsx)(s.bm,{...l,...n,ref:c})});A.displayName=E;var S=p,M=f,D=m,N=g,T=x,j=C,_=A,F=k,L=w},37772:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},37999:(e,t,r)=>{"use strict";r.d(t,{AdminResourceDetail:()=>S});var n=r(95155),i=r(12115),o=r(20063),s=r(22544),l=r(85937),a=r(3998),c=r(98053),u=r(89559),d=r(37772),h=r(75426),p=r(71360),f=r(46046),m=r(6259),g=r(87882),b=r(87485),y=r(6815),v=r(75091),x=r(4803),k=r(41254),w=r(27778),C=r(43589),E=r(38855),A=r(45412);function S(e){var t,r,S,M,D,N,T,j,_,F,L,R,I;let{config:O,id:z}=e,B=(0,o.useRouter)(),P=(0,A.b)(),[$,H]=(0,i.useState)(null),[q,K]=(0,i.useState)(!0),[V,U]=(0,i.useState)(null),[W,J]=(0,i.useState)(null!=(N=null==(t=O.detail.languages)?void 0:t.defaultLanguage)?N:""),G=null!=(j=null!=(T=O.detail.defaultTab)?T:null==(S=O.detail.tabs)||null==(r=S[0])?void 0:r.value)?j:"",[Z,Y]=(0,i.useState)(G),X=(0,s.mN)({resolver:O.detail.schema?(0,l.u)(O.detail.schema):void 0,mode:"onSubmit",reValidateMode:"onChange"}),{isDirty:Q,guardNavigation:ee}=(0,w.useDirtyForm)(X,{confirmMessage:P("core.adminDetail.unsavedConfirm")}),et=(0,i.useRef)(O);et.current=O,(0,i.useEffect)(()=>{let e=et.current,t=!1;return K(!0),U(null),e.data.get(z).then(r=>{if(!t){if(!r){U("".concat(e.resource.singular," not found.")),H(null);return}H(r),X.reset(e.detail.toFormValues(r))}}).catch(e=>{t||U(e instanceof Error?e.message:"Failed to load.")}).finally(()=>{t||K(!1)}),()=>{t=!0}},[z,X]);let[er,en]=(0,i.useState)(!1),ei=(0,i.useCallback)(async()=>{en(!0),U(null);try{let e=await O.data.get(z);if(!e)return void U("".concat(O.resource.singular," not found."));H(e),X.reset(O.detail.toFormValues(e))}catch(e){U(e instanceof Error?e.message:"Failed to load.")}finally{en(!1)}},[O,z,X]),eo=(0,i.useCallback)(async e=>{if($)try{let t=O.detail.toUpdatePatch(e,$),r=await O.data.update($.id,t);H(r),X.reset(O.detail.toFormValues(r)),(0,C.tP)(O.messages.updated)}catch(e){var t;(0,C.Kf)(null!=(t=O.messages.errorGeneric)?t:"Could not save changes.",e instanceof Error?e.message:void 0)}},[$,O,X]),[es,el]=(0,i.useState)(!1),[ea,ec]=(0,i.useState)(!1),eu=(0,i.useCallback)(async()=>{if($){el(!0);try{await O.data.destroy($.id),(0,C.tP)(O.messages.deleted),B.push(O.resource.basePath)}catch(t){var e;el(!1),(0,C.Kf)(null!=(e=O.messages.errorGeneric)?e:"Could not delete item.",t instanceof Error?t.message:void 0)}}},[$,O,B]),[ed,eh]=(0,i.useState)(!1),ep=(0,i.useCallback)(()=>{let e=O.detail.duplicate;$&&e&&ee(async()=>{var t,r;eh(!0);try{let r=await e.toInput($),n=await O.data.create(r);(0,C.tP)(null!=(t=e.successMessage)?t:O.messages.created),B.push("".concat(O.resource.basePath,"/").concat(n.id))}catch(e){eh(!1),(0,C.Kf)(null!=(r=O.messages.errorGeneric)?r:"Could not save changes.",e instanceof Error?e.message:void 0)}})},[$,O,ee,B]),ef=(0,i.useCallback)(()=>{ee(()=>B.push(O.resource.basePath))},[ee,B,O.resource.basePath]),em=(0,i.useMemo)(()=>{if($&&O.detail.completeness)return O.detail.completeness($)},[$,O.detail]);if(q)return(0,n.jsx)(v.AdminFormSkeleton,{});if(V||!$)return(0,n.jsxs)(b.N,{className:"py-12 text-center",children:[(0,n.jsx)("p",{className:"text-sm text-destructive",children:null!=V?V:P("core.adminDetail.notFound")}),(0,n.jsx)(a.$,{variant:"outline",className:"mt-4",onClick:()=>B.push(O.resource.basePath),children:(0,E.G)(P("core.adminDetail.backTo"),{plural:O.resource.plural})})]});let eg=O.detail.title($,W),eb=null!=(_=null==(M=(D=O.detail).status)?void 0:M.call(D,$))?_:void 0,ey=!0===O.detail.readOnly,ev=!1!==O.detail.deletable,ex=O.detail.tabs,ek=ex&&ex.length>0?(null!=(F=ex.find(e=>e.value===Z))?F:ex[0]).render($,X,{activeTab:Z,setActiveTab:Y}):null,ew=O.detail.languages,eC=ew&&ek?(0,n.jsx)(k.AdminResourceLanguageProvider,{language:W||ew.defaultLanguage,setLanguage:J,languages:ew.languages,defaultLanguage:ew.defaultLanguage,children:ek}):ek;return(0,n.jsx)(s.Op,{...X,children:(0,n.jsx)("form",{onSubmit:X.handleSubmit(eo),className:"canvas"===O.detail.layout?"contents":void 0,children:(0,n.jsx)(g.AdminDetailPage,{variant:null!=(L=O.detail.layout)?L:"default",title:eg,status:null!=eb?eb:void 0,backHref:O.resource.basePath,backLabel:(0,E.G)(P("core.adminDetail.backTo"),{plural:O.resource.plural}),onBack:ef,actions:ey?(0,n.jsx)(y.AdminButton,{variant:"secondary",icon:u.A,iconOnly:!0,loading:er,onClick:()=>void ei(),children:P("core.adminList.refresh")}):void 0,languageSwitcher:O.detail.languages?(0,n.jsx)(x.AdminLanguageSwitcher,{languages:O.detail.languages.languages,current:W||O.detail.languages.defaultLanguage,onChange:J,completeness:em,disabled:X.formState.isSubmitting}):void 0,leftActions:ey?void 0:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(m.rI,{children:[(0,n.jsx)(m.ty,{asChild:!0,children:(0,n.jsx)(y.AdminButton,{variant:"secondary",icon:d.A,iconOnly:!0,loading:ed||es,disabled:X.formState.isSubmitting,children:P("core.adminDetail.moreActions")})}),(0,n.jsxs)(m.SQ,{align:"start",children:[O.detail.duplicate&&(0,n.jsxs)(m._2,{disabled:ed,onSelect:ep,children:[(0,n.jsx)(h.A,{className:"size-4"}),ed?P("core.adminDetail.duplicating"):null!=(R=O.detail.duplicate.label)?R:P("core.adminDetail.duplicate")]}),ev&&(0,n.jsxs)(m._2,{disabled:es,onSelect:()=>ec(!0),className:"text-destructive focus:text-destructive",children:[(0,n.jsx)(p.A,{className:"size-4 text-destructive"}),P("core.adminDetail.delete")]})]})]}),(0,n.jsx)(c.Lt,{open:ea,onOpenChange:ec,children:(0,n.jsxs)(c.EO,{children:[(0,n.jsxs)(c.wd,{children:[(0,n.jsx)(c.r7,{className:"m-0",children:null!=(I=O.messages.deleteTitle)?I:(0,E.G)(P("core.adminList.deleteItem"),{singular:O.resource.singular})}),(0,n.jsx)(c.$v,{children:O.messages.deleteConfirm($)})]}),(0,n.jsxs)(c.ck,{children:[(0,n.jsx)(c.Zr,{disabled:es,children:P("core.adminDetail.cancel")}),(0,n.jsx)(c.Rx,{onClick:eu,className:"bg-destructive text-white hover:bg-destructive/90",children:P("core.adminDetail.delete")})]})]})})]}),formActions:ey?void 0:(0,n.jsx)(y.AdminButton,{variant:"primary",type:"submit",icon:f.A,loading:X.formState.isSubmitting,disabled:!Q||X.formState.isSubmitting,children:P(X.formState.isSubmitting?"core.adminDetail.saving":"core.adminDetail.save")}),dirty:!ey&&Q,tabs:null==ex?void 0:ex.map(e=>({value:e.value,label:e.label})),activeTab:Z,onTabChange:Y,children:eC})})})}},38162:(e,t,r)=>{"use strict";r.d(t,{C1:()=>C,bL:()=>k}
1);var n=r(12115),i=r(94446),o=r(3468),s=r(92556),l=r(23558),a=r(78108),c=r(84288),u=r(76842),d=r(97602),h=r(95155),p="Checkbox",[f,m]=(0,o.A)(p),[g,b]=f(p);function y(e){let{__scopeCheckbox:t,checked:r,children:i,defaultChecked:o,disabled:s,form:a,name:c,onCheckedChange:u,required:d,value:f="on",internal_do_not_use_render:m}=e,[b,y]=(0,l.i)({prop:r,defaultProp:null!=o&&o,onChange:u,caller:p}),[v,x]=n.useState(null),[k,w]=n.useState(null),C=n.useRef(!1),E=!v||!!a||!!v.closest("form"),A={checked:b,disabled:s,setChecked:y,control:v,setControl:x,name:c,form:a,value:f,hasConsumerStoppedPropagationRef:C,required:d,defaultChecked:!S(o)&&o,isFormControl:E,bubbleInput:k,setBubbleInput:w};return(0,h.jsx)(g,{scope:t,...A,children:"function"==typeof m?m(A):i})}var v="CheckboxTrigger",x=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,onKeyDown:o,onClick:l,...a}=e,{control:c,value:u,disabled:p,checked:f,required:m,setControl:g,setChecked:y,hasConsumerStoppedPropagationRef:x,isFormControl:k,bubbleInput:w}=b(v,r),C=(0,i.s)(t,g),E=n.useRef(f);return n.useEffect(()=>{let e=null==c?void 0:c.form;if(e){let t=()=>y(E.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,y]),(0,h.jsx)(d.sG.button,{type:"button",role:"checkbox","aria-checked":S(f)?"mixed":f,"aria-required":m,"data-state":M(f),"data-disabled":p?"":void 0,disabled:p,value:u,...a,ref:C,onKeyDown:(0,s.mK)(o,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.mK)(l,e=>{y(e=>!!S(e)||!e),w&&k&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})})});x.displayName=v;var k=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:n,checked:i,defaultChecked:o,required:s,disabled:l,value:a,onCheckedChange:c,form:u,...d}=e;return(0,h.jsx)(y,{__scopeCheckbox:r,checked:i,defaultChecked:o,disabled:l,required:s,onCheckedChange:c,name:n,form:u,value:a,internal_do_not_use_render:e=>{let{isFormControl:n}=e;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(x,{...d,ref:t,__scopeCheckbox:r}),n&&(0,h.jsx)(A,{__scopeCheckbox:r})]})}})});k.displayName=p;var w="CheckboxIndicator",C=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...i}=e,o=b(w,r);return(0,h.jsx)(u.C,{present:n||S(o.checked)||!0===o.checked,children:(0,h.jsx)(d.sG.span,{"data-state":M(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});C.displayName=w;var E="CheckboxBubbleInput",A=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,...o}=e,{control:s,hasConsumerStoppedPropagationRef:l,checked:u,defaultChecked:p,required:f,disabled:m,name:g,value:y,form:v,bubbleInput:x,setBubbleInput:k}=b(E,r),w=(0,i.s)(t,k),C=(0,a.Z)(u),A=(0,c.X)(s);n.useEffect(()=>{if(!x)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!l.current;if(C!==u&&e){let r=new Event("click",{bubbles:t});x.indeterminate=S(u),e.call(x,!S(u)&&u),x.dispatchEvent(r)}},[x,C,u,l]);let M=n.useRef(!S(u)&&u);return(0,h.jsx)(d.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:null!=p?p:M.current,required:f,disabled:m,name:g,value:y,form:v,...o,tabIndex:-1,ref:w,style:{...o.style,...A,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function S(e){return"indeterminate"===e}function M(e){return S(e)?"indeterminate":e?"checked":"unchecked"}A.displayName=E},38855:(e,t,r)=>{"use strict";function n(e,t){return e.replace(/\{(\w+)\}/g,(e,r)=>Object.prototype.hasOwnProperty.call(t,r)?String(t[r]):"{".concat(r,"}"))}r.d(t,{G:()=>n})},39014:(e,t,r)=>{"use strict";var n,i,o,s,l;r.d(t,{xA:()=>o,FJ:()=>l,Wf:()=>f,Gz:()=>y,hl:()=>v,E_:()=>g,MK:()=>d,qN:()=>a,y6:()=>h,sr:()=>c});let a=new Uint16Array('áµ<\xd5ıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcfligè»\xc6äPè»&ä¦cuteè»\xc1äreve;äÄiyx}rcè»\xc2ä;är;ì\ud835\udd04raveè»\xc0äpha;äacr;äd;æ©Ägp\x9d\xa1on;äf;ì\ud835\udd38plyFunction;æ¡ingè»\xc5ä
Äcs\xbe\xc3r;ì\ud835\udc9cign;æildeè»\xc3ämlè»\xc4äÐaceforsu\xe5\xfb\xfeÄÄĢħĪÄcr\xea\xf2kslash;æÅ¶\xf6\xf8;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ì\ud835\udd05pf;ì\ud835\udd39eve;äc\xf2Ämpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»\xa9䩯cpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»\xc7ärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·\xf2Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ì\ud835\udc9epÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ì\ud835\udd07Äaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ì\ud835\udd3bÆ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegra\xecȹoɴ͹\0\0Í»\xbbÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æe\xe5ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ì\ud835\udc9frok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»\xd0äcuteè»\xc9äÆaiyÓÓÓron;ärcè»\xcaä;äot;är;ì\ud835\udd08raveè»\xc8äement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ì\ud835\udd3csilon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»\xcbäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ì\ud835\udd09lledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ì\ud835\udd3dAll;æriertrf;æ±c\xf2רJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ì\ud835\udd0a;æpf;ì\ud835\udd3eeaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ì\ud835\udca2;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
\xf2Ú©rok;ä¦mpÅÛÛownHum\xf0įqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»\xcdäÄiyÜÜrcè»\xceä;äot;ä°r;æraveè»\xccäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lie\xf3ÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ì\ud835\udd40a;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»\xcfäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ì\ud835\udd0dpf;ì\ud835\udd41Ç£ß\0ßr;ì\ud835\udca5rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ì\ud835\udd0epf;ì\ud835\udd42cr;ì\ud835\udca6ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ight\xe1ÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ì\ud835\udd0fÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ight\xe1οight\xe1Ïf;ì\ud835\udd43erÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©\xf2à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ì\ud835\udd10nusPlus;æpf;ì\ud835\udd44c\xf2à©¶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«\xebà«eryThi\xeeà«tedÄGL૸à¬reaterGreate\xf2Ù³essLes\xf3à©Line;är;ì\ud835\udd11ÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ì\ud835\udca9ildeè»\xd1ä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»\xd3äÄiyà·à·rcè»\xd4ä;äblac;ä
r;ì\ud835\udd12raveè»\xd2äÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ì\ud835\udd46enCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ì\ud835\udcaaashè»\xd8äiŬื฼deè»\xd5äes;樷mlè»\xd6äerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;
1æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ì\ud835\udd13i;ä¦;ä usMinus;ä±Äipຢàºncareplan\xe5Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ì\ud835\udcab;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ì\ud835\udd14pf;æcr;ì\ud835\udcacØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»\xae䮯cnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r\xbbཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ì\ud835\udd16ortÈDLRUáªá´á¾á
ownArrow\xbbÐeftArrow\xbbà¢ightArrow\xbbà¿pArrow;ægma;ä£allCircle;æpf;ì\ud835\udd4aɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ì\ud835\udcaear;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Th\xe1à¾;æÆ;esááá£ærsetÄ;Eááæqual;æet\xbbáÖHRSacfhiorsá¾ááááá±á¶ááááORNè»\xdeäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ì\ud835\udd17Äeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ì\ud835\udd4bipleDot;æÄctáár;ì\ud835\udcafrok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»\xdaärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»\xdbä;ä£blac;ä
°r;ì\ud835\udd18raveè»\xd9äacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ì\ud835\udd4cÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥own\xe1ϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ì\ud835\udcb0ilde;ä
¨mlè»\xdcäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ì\ud835\udd19pf;ì\ud835\udd4dcr;ì\ud835\udcb1dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;ì\ud835\udd1apf;ì\ud835\udd4ecr;ì\ud835\udcb2Èfiosáááár;ì\ud835\udd1b;äpf;ì\ud835\udd4fcr;ì\ud835\udcb3ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»\xddäÄiyáárc;ä
¶;ä«r;ì\ud835\udd1cpf;ì\ud835\udd50cr;ì\ud835\udcb4ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidt\xe8à«a;är;æ¨pf;æ¤cr;ì\ud835\udcb5௡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»\xe1ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»\xe2ä¢teè»\xb4Ì;ä°ligè»\xe6ä¦Ä;r\xb2áº;ì\ud835\udd1eraveè»\xe0ä ÄepááÄfpáásym;æµ\xe8áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e\xbbásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢\xbb\xb9arr;æ¼Ägpá£á§on;ä
f;ì\ud835\udd52Î;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eáá\xf1áingè»\xe5䥯ctyá¡á¦á¨r;ì\ud835\udcb6;äªmpÄ;eáá¯\xf1Êildeè»\xe3ä£mlè»\xe4ä¤Äciááonin\xf4ɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e\xbbárkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰s\xe9áno\xf5ÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ì\ud835\udd1fgÎcostuvwááá³ááááÆaiuááá\xf0Ý rc;æ¯p\xbbá±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨e\xe5á\xe5áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ì\ud835\udd53Ä;táá¡£om\xbbátie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»\xa6ä¦Èceioá¥á¥á¥á¥ r;ì\ud835\udcb7mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t\xbb᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æ\xeeÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;
1ädilè»\xe7ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»\xb8Æptyv;榲tè\xa2;eá¨á¨®ä¢r\xe4Ʋr;ì\ud835\udd20Æceiᨽá©á©y;äckÄ;má©á©æark\xbbá©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáª\xbbà½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it\xbb᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;q\xc7\xc6Éá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æ\xeeá
eÄmx᫱᫶ent\xbbá«©e\xf3Éǧ᫾\0á¬Ä;dá»á¬ot;æ©n\xf4ÉÆfryá¬á¬á¬;ì\ud835\udd54o\xe4Éè\xa9;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ì\ud835\udcb8ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯re\xe3á³u\xe3áµee;æedge;æenè»\xa4ä¤earrowÄlrᯮ᯳eft\xbbá®ight\xbbᮽe\xe4á¯Äciá°á°onin\xf4Ç·nt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·r\xf2Îar;楥Èglrsá±á±á±á±ger;æ eth;æ¸\xf2á³hÄ;vá±á±æ\xbbà¤Å«á±¡á±§arow;æ¤a\xe3ÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»\xb0ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ì\ud835\udd21arÄlrᲳᲵ\xbbà£\xbbáÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè\xf7;oá³§á³°ntimes;æn\xf8á³·cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ì\ud835\udd55Ê;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedg\xe5\xfanÆadhá®áµáµ§ownarrow\xf3á²arpoonÄlrᵲᵶef\xf4á²´igh\xf4ᲶŢᵿá¶
karo\xf7à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ì\ud835\udcb9;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·r\xf2Щa\xf2ྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´o\xf4á²Äcsá¸á¸uteè»\xe9ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»\xeaäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ì\ud835\udd22Æ;rsá¹á¹á¹æªaveè»\xe8ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et\xbbáºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ì\ud835\udd56Æalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon\xbbá»;äµÈcsuvỪỳá¼á¼£Äioữḱrc\xbbḮɩỹ\0\0á»»\xedÕantÄglá¼á¼tr\xbbá¹ess\xbbṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯o\xf4ÍÄahá½á½;ä·è»\xf0ä°Ämrá½á½lè»\xebä«o;æ¬Æcipὡὤὧl;ä¡s\xf4Õ®ÄeoὬὴctatio\xeeÕnential\xe5չৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotse\xf1á¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ì\ud835\udd23lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ì\ud835\udd57ÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»\xbdä½;æ
è»\xbcä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»\xbeä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ì\ud835\udcbbà¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlan\xf4Ù¥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ì\ud835\udd24Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox\xbbâ¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ì\ud835\udd58Äciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âpro\xf8âr;楸qÄlqØ¿âles\xf3âi\xedÙ«Äenâ£ârtneqq;ìâ©ï¸\xc5âªÔAabcefkosyâââ±âµâºâââ¯â¨â½r\xf2Î Èilmrâââârs\xf0áf\xbbâ¤il\xf4Ú©Ädrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it\xbbâlip;æ¦con;æ¹r;ì\ud835\udd25sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ì\ud835\udd59bar;æÆcltâ¯â´â¸r;ì\ud835\udcbdas\xe8â´rok;ä§Äbpââull;æhen\xbbá±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»\xedäÆ;
1iyݱâ°âµrcè»\xeeä®;ä¸Äcxâ¼â¿y;äµclè»\xa1ä¡ÄfrÎâ;ì\ud835\udd26raveè»\xecä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââin\xe5Þar\xf4Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§do\xf4âÊ;celpÝââââ¡al;æºÄgrââer\xf3á£\xe3âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ì\ud835\udd5aa;ä¹uestè»\xbfä¿Äciââr;ì\ud835\udcbenÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»\xefä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ì\ud835\udd27ath;ä·pf;ì\ud835\udd5bÇ£â¬\0â±r;ì\ud835\udcbfrcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ì\ud835\udd28reen;ä¸cy;ä
cy;äpf;ì\ud835\udd5ccr;ì\ud835\udcc0à®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼r\xf2à§\xf2Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴ra\xeeà¡bda;ä»gÆ;dlà¢ââ;æ¦\xe5à¢;æª
uoè»\xabä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤\xebâp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼\xecࢰ\xe2â©;
1ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡a\xe9â¶arpoonÄduâ¯â´own\xbbÑp\xbb०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoon\xf3à¾quigarro\xf7â°hreetimes;æÆ;qsâà¦âºlan\xf4বÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââppro\xf8âot;æqÄgqââ
\xf4à¦gt\xf2â\xf4à¦i\xedলÆilrâ࣡âsht;楼;ì\ud835\udd29Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââr\xf2âorne\xf2á´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che\xbbâÈEaesâ»â½ââ;æ¨pÄ;pââæªrox\xbbâÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½r\xebà£gÆlmrâ¿ââeftÄar০âight\xe1à§²apsto;æ¼ight\xe1à§½parrowÄlrâ¥â©ef\xf4âight;æ¬Æaflâ¶â¹â½r;æ¦
;ì\ud835\udd5dus;æ¨imes;樴šââst;æ\xe1áÆ;efââá ænge\xbbâarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âr\xf2ࢨorne\xf2á¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ì\ud835\udcc1mÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹re\xe5â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸\xc5â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»\xafä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se\xbbâ¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»ow\xeeÒef\xf4à¤\xf0áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle\xbbá¦r;ì\ud835\udd2ao;æ§Æcdn⢯⢴â£roè»\xb5äµÈ;acdá¤â¢½â£â£s\xf4á§ir;æ«°otè»\xb7ƵusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«\xf2â\xf0àªÄdp⣩⣮els;æ§f;ì\ud835\udd5eÄct⣸⣽r;ì\ud835\udcc2pos\xbbáÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la\xbbËute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
ro\xf8à¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»\xa0ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸ui\xf6à£Äeiâ©â©ar;椨\xedà®istÄ;sà® à®r;ì\ud835\udd2bÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lan\xf4௢i\xed௪Ä;rà®¶âª\xbbà®·ÆAapâªâªâªr\xf2⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹r\xf2⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro\xf7â«ightarro\xf7âªÆ;qs఻⪺⫪lan\xf4à±Ä;sà±â«´\xbbà°¶i\xedà±Ä;rవ⫾iÄ;eà°à°¥i\xe4à¶Äptâ¬â¬f;ì\ud835\udd5fè\xac;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlle\xecà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³u\xe5ಥÄ;cà²â¸Ä;eà²â½\xf1à²ÈAaitâ®â®â®â®§r\xf2â¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow\xbbâ®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯u\xe5àµ
;ì\ud835\udcc3ortÉâ¬
\0\0â¯ar\xe1âmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯\xe5೸\xe5à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°\xf1à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±\xecà¯ldeè»\xf1ä±\xe7à±iangleÄlrâ±â±eftÄ;eà°â±\xf1à°¦ightÄ;eà³â±¥\xf1à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»\xf3ä³Äiyâ´¼âµ
rÄ;cáªâµè»\xf4ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ì\ud835\udd2cͯ⵹\0\0âµ¼\0â¶n;äaveè»\xf2ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨r\xf2áªÄirâ¶â¶ r;榾oss;榻n\xe5à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ì\ud835\udd60Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨r\xf2áªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f\xbbâ·¿è»\xaaäªè»\xbaäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§\xf2â¸ashè»\xf8ä¸l;æiŬⸯ⸴deè»\xf5äµesÄ;aÇ⸺s;樶mlè»\xf6ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
1astÐâ¹§â¹²àº
è\xb6;lâ¹â¹®ä¶le\xecÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ì\ud835\udd2dÆimo⺨⺰⺴Ä;vâºâº®ä;äma\xf4à©¶ne;æÆ;tv⺿â»â»ächfork\xbb´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æ\xf6â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»\xb1àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ì\ud835\udd61ndè»\xa3ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷u\xe5à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾ppro\xf8â½urlye\xf1à»\xf1à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨i\xedà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½º\xf0â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴\xefà»»rel;æ°Äciâ¿â¿
r;ì\ud835\udcc5;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ì\ud835\udd2epf;ì\ud835\udd62rime;æcr;ì\ud835\udcc6Æaeo⿸ããtÄei⿾ã
rnion\xf3Ú°nt;æ¨stÄ;eããä¿\xf1á¼\xf4à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããr\xf2á³\xf2Ïail;æ¤ar\xf2á±¥ar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
i\xe3á
®mptyv;榳gÈ;delà¿ããã;æ¦;榥\xe5à¿uoè»\xbbä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤\xebâ\xf0â®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶al\xf3à¼Æabrã§ãªã®r\xf2á¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
\xec࿲\xe2ãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
án\xe5á»ar\xf4ྩt;æÆilrã
©á£ã
®sht;楽;ì\ud835\udd2fÄaoã
·ãrÄduã
½ã
¿\xbbÑ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãa\xe9ãarpoonÄduã»ã¿ow\xeeã
¾p\xbbáeftÄahããrrow\xf3࿪arpoon\xf3Õightarrows;æquigarro\xf7ãhreetimes;æg;äingdotse\xf1á¼²Æahmãããr\xf2࿪a\xf2Õ;æoustÄ;aããæ±che\xbbãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾r\xebáÆaflãããr;æ¦;ì\ud835\udd63us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨ar\xf2ã£Èachqã»ãá¼ã
quo;æºr;ì\ud835\udcc7Äbuã»ãoÄ;rÈÈÆhirããã re\xe5ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
qu\xefâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡u\xe5á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨i\xedá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrãã\xebâ¨Ä;oਸ਼਴tè»\xa7ä§i;ä»war;椩mÄinã©\xf0nu\xf3\xf1t;æ¶rÄ;oã¶âì\ud835\udd30Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãi\xe4á¤ara\xec⹯è»\xadäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲ar\xf2á½Èaeitã¸ãããÄlsã½ãlsetm\xe9ãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ì\ud835\udd64aÄdrãÐesÄ;uããæ it\xbbãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáã\xf1áÆ;esá¨áãetÄ;eá¨ã\xf1á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±\xbbá
¼ar\xf2á
Ècemtã¹ã¾ãã
r;ì\ud835\udcc8tm\xee\xf1i\xecãar\xe6á¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsilo\xeeá» h\xe9⺯s\xbbâ¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦ppro\xf8ãºurlye\xf1á¾\xf1á³Æaesãããppro\xf8ãq\xf1ãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»\xb9ä¹è»\xb2ä²è»\xb3ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨\xebâ®Ä;oਫ਩war;椪ligè»\xdfä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;är\xebà¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ì\ud835\udd31Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®ppro\xf8áim\xbbá¬s\xf0áÄasãºã®\xf0árnè»\xfeä¾Ç¬Ìãâ§esè\xd7;bdãããäÄ;
1aá¤ãr;樱;樰Æepsã¡ã£ã\xe1â©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ì\ud835\udd65rk;æ«\xe1ã¢rime;æ´Æaipããã¤d\xe5áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown\xbbá¶»eftÄ;eâ ã¾\xf1म;æightÄ;eãªã\xf1áot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ì\ud835\udcc9;äcy;ärok;ä
§Äioããx\xf4á·headÄlrãã eftarro\xf7à¡ightarrow\xbbà½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶r\xf2Ïar;楣Äcrãã¢uteè»\xfaäº\xf2á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»\xfbä»;äÆabhã ã ã r\xf2álac;ä
±a\xf2áÄirã ã sht;楾;ì\ud835\udd32raveè»\xf9ä¹Å¡ã §ã ±rÄlr㠬㠮\xbbà¥\xbbálk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær\xbbã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»\xa8ÍÄgp㡢㡦on;ä
³f;ì\ud835\udd66Ìadhlsuá
㡸㡽á²ã¢ã¢ own\xe1á³arpoonÄlrã¢ã¢ef\xf4ã igh\xf4ã ¯iÆ;hlã¢ã¢ã¢ä
\xbbáºon\xbbã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær\xbb㢽op;æng;ä
¯ri;æ¹cr;ì\ud835\udccaÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨\xbbá Äam㣯㣲r\xf2㢨lè»\xfcä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ r\xf2Ï·arÄ;v㤦㤧櫨;æ«©as\xe8Ï¡Änr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦app\xe1âothin\xe7áºÆhirã«â»ã¥op\xf4â¾µÄ;há·ã¥¢\xefãÄiu㥩ã¥gm\xe1ã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦et\xe1ãiangleÄlr㦪㦯eft\xbbथight\xbbáy;ä²ash\xbbá¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨a\xf2á©r;ì\ud835\udd33tr\xe9㦮suÄbp㧯㧱\xbbà´\xbbàµpf;ì\ud835\udd67ro\xf0à»»tr\xe9㦴Äcuã¨ã¨r;ì\ud835\udccbÄbpã¨ã¨nÄEeã¦ã¨\xbb㥾nÄEeã¦ã¨\xbbã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ì\ud835\udd34pf;ì\ud835\udd68Ä;eá¹ã©¦at\xe8á¹cr;ì\ud835\udcccà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátr\xe9ár;ì\ud835\udd35ÄAaãªãªr\xf2Ïr\xf2à§¶;ä¾ÄAa㪡㪤r\xf2θr\xf2à§«a\xf0âis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ì\ud835\udd69im\xe5á²ÄAaã«ã«r\xf2Ïr\xf2à¨Äcqã«á¸r;ì\ud835\udccdÄptáã«r\xe9áÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»\xfdä½;äÄiyã¬ã¬rc;ä
·;änè»\xa5ä¥r;ì\ud835\udd36cy;äpf;ì\ud835\udd6acr;ì\ud835\udcceÄcm㬦㬩y;älè»\xffä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡tr\xe6áa;ä¶r;ì\ud835\udd37cy;ä¶grarr;æpf;ì\ud835\udd6bcr;ì\ud835\udccfÄjnã®
ã®;æj;æ'.split("").map(e=>e.charCodeAt(0))),c=new Uint16Array("Èaglq \x15\x18\x1bÉ\x0f\0\0\x12p;ä¦os;ä§t;ä¾t;ä¼uot;ä¢".split("").map(e=>e.charCodeAt(0))),u=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),d=null!=(n=String.fromCodePoint)?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function h(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!=(t=u.get(e))?t:e}function p(e){return e>=i.ZERO&&e<=i.NINE}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(i||(i={})),!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(o||(o={})),!function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(s||(s={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(l||(l={}));class f{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=s.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=l.Strict}startEntity(e){this.decodeMode=e,this.state=s.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case s.EntityStart:if(e.charCodeAt(t)===i.NUM)return this.state=s.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=s.NamedEntity,this.stateNamedEntity(e,t);case s.NumericStart:return this.stateNumericStart(e,t);case s.NumericDecimal:return this.stateNumericDecimal(e,t);case s.NumericHex:return this.stateNumericHex(e,t);case s.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===i.LOWER_X?(this.state=s.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=s.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let i=r-t;
1this.result=this.result*Math.pow(n,i)+parseInt(e.substr(t,i),n),this.consumed+=i}}stateNumericHex(e,t){let r=t;for(;t<e.length;){var n;let o=e.charCodeAt(t);if(!p(o)&&(!((n=o)>=i.UPPER_A)||!(n<=i.UPPER_F))&&(!(n>=i.LOWER_A)||!(n<=i.LOWER_F)))return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(o,3);t+=1}return this.addToNumericResult(e,r,t,16),-1}stateNumericDecimal(e,t){let r=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!p(n))return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,r,t,10),-1}emitNumericEntity(e,t){var r;if(this.consumed<=t)return null==(r=this.errors)||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===i.SEMI)this.consumed+=1;else if(this.decodeMode===l.Strict)return 0;return this.emitCodePoint(h(this.result),this.consumed),this.errors&&(e!==i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:r}=this,n=r[this.treeIndex],s=(n&o.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let a=e.charCodeAt(t);if(this.treeIndex=g(r,n,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return 0===this.result||this.decodeMode===l.Attribute&&(0===s||function(e){var t;return e===i.EQUALS||(t=e)>=i.UPPER_A&&t<=i.UPPER_Z||t>=i.LOWER_A&&t<=i.LOWER_Z||p(t)}(a))?0:this.emitNotTerminatedNamedEntity();if(0!=(s=((n=r[this.treeIndex])&o.VALUE_LENGTH)>>14)){if(a===i.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==l.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&o.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~o.VALUE_LENGTH:n[e+1],r),3===t&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case s.NamedEntity:return 0!==this.result&&(this.decodeMode!==l.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case s.NumericDecimal:return this.emitNumericEntity(0,2);case s.NumericHex:return this.emitNumericEntity(0,3);case s.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s.EntityStart:return 0}}}function m(e){let t="",r=new f(e,e=>t+=d(e));return function(e,n){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),r.startEntity(n);let s=r.write(e,o+1);if(s<0){i=o+r.end();break}i=o+s,o=0===s?i+1:i}let s=t+e.slice(i);return t="",s}}function g(e,t,r,n){let i=(t&o.BRANCH_LENGTH)>>7,s=t&o.JUMP_TABLE;if(0===i)return 0!==s&&n===s?r:-1;if(s){let t=n-s;return t<0||t>=i?-1:e[r+t]-1}let l=r,a=l+i-1;for(;l<=a;){let t=l+a>>>1,r=e[t];if(r<n)l=t+1;else{if(!(r>n))return e[t+i];a=t-1}}return -1}let b=m(a);function y(e,t=l.Legacy){return b(e,t)}function v(e){return b(e,l.Strict)}m(c)},39867:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},40134:(e,t,r)=>{"use strict";r.d(t,{PresetGallery:()=>f});var n=r(95155),i=r(12115),o=r(6815),s=r(45412),l=r(38855),a=r(43589);function c(e,t){let r=e.find(t);if(!r)throw Error('Unknown preset "'.concat(t,'"'));return r}function u(e,t){return{preset:e,siblings:e.artifacts.filter(e=>e!==t)}}function d(e){return e instanceof Error?e.message:String(e)}async function h(e,t){let r=c(e,t),n=[];for(let t of r.artifacts){let i={ref:t.ref,kind:t.kind},o=e.installerFor(t.kind);if(!o){n.push({...i,state:"blocked",reason:'Nothing here installs "'.concat(t.kind,'".')});continue}try{let e=await o.preflight(t,u(r,t));if("missing"!==e.state&&"present"!==e.state&&"blocked"!==e.state){n.push({...i,state:"blocked",reason:'The installer for "'.concat(t.kind,'" returned a verdict this version cannot read â its package is probably older than @sopnet-pl/af-core.')});continue}n.push("blocked"===e.state?{...i,state:"blocked",reason:e.reason}:{...i,state:e.state})}catch(e){n.push({...i,state:"blocked",reason:d(e)})}}return n}async function p(e,t){let r=c(e,t),n=await h(e,t),i=n.filter(e=>"blocked"===e.state);if(i.length)return{ok:!1,installed:[],blocked:i};let o=new Set(n.filter(e=>"missing"===e.state).map(e=>e.ref)),s=[];for(let t of r.artifacts){if(!o.has(t.ref))continue;let n=e.installerFor(t.kind);if(n)try{await n.install(t,u(r,t)),s.push(t.ref)}catch(e){return{ok:!1,installed:s,blocked:[{ref:t.ref,kind:t.kind,state:"blocked",reason:d(e)}]}}}return{ok:!0,installed:s,blocked:[]}}function f(e){let{registry:t,onInstalled:r,groupLabel:c,className:u}=e,d=(0,s.b)(),f=t.presets,m=(0,i.useMemo)(()=>(function(e){let t=new Map;for(let r of e){let e=t.get(r.group);e?e.push(r):t.set(r.group,[r])}return[...t]})(f),[f]),g=(0,i.useMemo)(()=>new Map(f.map(e=>[e.id,e.artifacts.map(e=>{var r,n;let i=null==(n=t.installerFor(e.kind))||null==(r=n.describe)?void 0:r.call(n,e);return{ref:e.ref,...null!=i?i:{label:e.kind}}})])),[t,f]),[b,y]=(0,i.useState)({}),[v,x]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e=!0;return y({}),Promise.all(f.map(async r=>{let n=await h(t,r.id).catch(e=>[{ref:"",kind:"",state:"blocked",reason:e instanceof Error?e.message:String(e)}]);e&&y(e=>({...e,[r.id]:n}))})),()=>{e=!1}},[t,f]);let k=(0,i.useCallback)(async e=>{x(e.id);try{let n=await p(t,e.id);n.ok?((0,a.tP)((0,l.G)(d("core.presets.installedToast"),{title:e.title})),null==r||r(e)):(0,a.Kf)((0,l.G)(d("core.presets.failedToast"),{title:e.title}),n.blocked.map(e=>e.reason).join(" ")),y(t=>
1({...t,[e.id]:void 0}));let i=await h(t,e.id);y(t=>({...t,[e.id]:i}))}finally{x(null)}},[t,r,d]);return 0===f.length?(0,n.jsx)("p",{className:"text-sm text-muted-foreground ".concat(null!=u?u:""),children:d("core.presets.empty")}):(0,n.jsxs)("div",{className:"space-y-8 ".concat(null!=u?u:""),children:[(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:d("core.presets.draftHint")}),m.map(e=>{let[t,r]=e;return(0,n.jsxs)("section",{className:"space-y-3",children:[(0,n.jsx)("h3",{className:"m-0 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:c?c(t):t}),(0,n.jsx)("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-3",children:r.map(e=>{var t,r;let i=void 0===b[e.id],s=null!=(t=b[e.id])?t:[],a=i?void 0:s.some(e=>"blocked"===e.state)?"blocked":s.every(e=>"present"===e.state)?"installed":s.some(e=>"present"===e.state)?"partial":"installable",c="blocked"===a,u=v===e.id,h=e.artifacts.length;return(0,n.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border bg-card p-4",children:[(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("p",{className:"m-0 text-sm font-medium leading-snug",children:e.title}),e.description&&(0,n.jsx)("p",{className:"m-0 text-xs text-muted-foreground",children:e.description})]}),(0,n.jsx)("ul",{className:"m-0 list-none space-y-1.5 rounded-md bg-muted/50 p-2.5 text-xs",children:(null!=(r=g.get(e.id))?r:[]).map(e=>(0,n.jsxs)("li",{className:"space-y-0.5",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2",children:[(0,n.jsx)("span",{className:"text-[0.65rem] font-semibold uppercase tracking-wide text-muted-foreground",children:e.label}),e.title&&(0,n.jsx)("span",{className:"font-medium",children:e.title})]}),e.steps&&e.steps.length>0&&(0,n.jsx)("p",{className:"m-0 text-muted-foreground",children:e.steps.join(" â ")})]},e.ref))}),c&&(0,n.jsx)("ul",{className:"m-0 list-none space-y-1 p-0 text-xs text-muted-foreground",children:s.filter(e=>"blocked"===e.state).map((e,t)=>(0,n.jsx)("li",{children:e.reason},"".concat(e.ref,"-").concat(t)))}),"partial"===a&&(0,n.jsx)("p",{className:"m-0 text-xs text-muted-foreground",children:(0,l.G)(d("core.presets.partialHint"),{count:s.filter(e=>"missing"===e.state).length})}),(0,n.jsxs)("div",{className:"mt-auto flex items-center justify-between gap-2 pt-1",children:[(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:1===h?d("core.presets.itemsCountOne"):(0,l.G)(d("core.presets.itemsCount"),{count:h})}),(0,n.jsx)(o.AdminButton,{variant:"secondary",loading:u,disabled:i||c||"installed"===a||null!==v,onClick:()=>void k(e),children:u?d("core.presets.installing"):i?d("core.presets.checking"):"installed"===a?d("core.presets.installed"):"partial"===a?d("core.presets.complete"):d("core.presets.install")})]})]},e.id)})})]},t)})]})}},40745:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var n=r(2821),i=r(75889);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,i.QP)((0,n.$)(t))}},41254:(e,t,r)=>{"use strict";r.d(t,{AdminResourceLanguageProvider:()=>s,useAdminResourceLanguage:()=>l,useOptionalAdminResourceLanguage:()=>a});var n=r(95155),i=r(12115);let o=(0,i.createContext)(null);function s(e){let{language:t,setLanguage:r,languages:i,defaultLanguage:s,children:l}=e;return(0,n.jsx)(o.Provider,{value:{language:t,setLanguage:r,languages:i,defaultLanguage:s},children:l})}function l(){let e=(0,i.useContext)(o);if(!e)throw Error("useAdminResourceLanguage must be used inside <AdminResourceDetail> with detail.languages configured.");return e}function a(){return(0,i.useContext)(o)}},43589:(e,t,r)=>{"use strict";r.d(t,{Kf:()=>o,tP:()=>i,x2:()=>s});var n=r(18720);function i(e){n.toast.success(e)}function o(e,t){n.toast.error(e,t?{description:t}:void 0)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Saved";n.toast.message(e,{duration:1200})}},45282:(e,t,r)=>{"use strict";r.d(t,{EditorShell:()=>d});var n=r(95155),i=r(46098),o=r(3998),s=r(31120);let l=(0,r(5121).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);var a=r(57828),c=r(40745),u=r(45412);function d(e){let{editor:t,mode:r,onToggleMode:d,value:h,onChange:p,disabled:f,placeholder:m,children:g}=e,b=(0,u.b)();return(0,n.jsxs)("div",{className:"border rounded-md overflow-hidden flex flex-col max-h-[80vh]",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1 px-2 py-1 border-b bg-gray-50 flex-none",children:["wysiwyg"===r&&t&&g,(0,n.jsx)(o.$,{type:"button",variant:"ghost",size:"sm",className:"ml-auto h-7 gap-1 text-xs",onClick:d,disabled:f,children:"wysiwyg"===r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l,{className:"h-3 w-3"})," ",b("core.editor.modeMarkdown")]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{className:"h-3 w-3"})," ",b("core.editor.modeVisual")]})})]}
1),(0,n.jsx)("div",{className:(0,c.cn)("flex-1 min-h-[300px] overflow-auto cursor-text",f&&"opacity-50 pointer-events-none","wysiwyg"!==r&&"hidden"),onClick:()=>null==t?void 0:t.commands.focus(),children:(0,n.jsx)(i.$Z,{editor:t,className:"prose prose-sm max-w-none p-3 [&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[276px]"})}),"markdown"===r&&(0,n.jsx)(s.T,{value:h,onChange:e=>p(e.target.value),disabled:f,placeholder:null!=m?m:b("core.editor.markdownPlaceholder"),className:"flex-1 font-mono text-sm border-0 rounded-none min-h-[300px] resize-none focus-visible:ring-0"})]})}},45412:(e,t,r)=>{"use strict";r.d(t,{CoreMessagesContext:()=>o,b:()=>s});var n=r(14479),i=r(60466);let{MessagesContext:o,useMessages:s}=(0,n.createMessagesContext)(i.$)},46046:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},46098:(e,t,r)=>{"use strict";r.d(t,{$Z:()=>f,VR:()=>S,gu:()=>j,hG:()=>E});var n,i,o=r(12115),s=r(47650),l=r(76908),a={exports:{}},c={};a.exports=function(){if(n)return c;n=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=o.useState,r=o.useEffect,i=o.useLayoutEffect,s=o.useDebugValue;function l(t){var r=t.getSnapshot;t=t.value;try{var n=r();return!e(t,n)}catch(e){return!0}}var a="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,n){var o=n(),a=t({inst:{value:o,getSnapshot:n}}),c=a[0].inst,u=a[1];return i(function(){c.value=o,c.getSnapshot=n,l(c)&&u({inst:c})},[e,o,n]),r(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(o),o};return c.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:a,c}();var u=a.exports;let d=({contentComponent:e})=>{let t=u.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return o.createElement(o.Fragment,null,Object.values(t))};class h extends o.Component{constructor(e){var t;super(e),this.editorContentRef=o.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(null==(t=e.editor)?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=function(){let e=new Set,t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:s.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){let n={...t};delete n[r],t=n,e.forEach(e=>e())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;let t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){let{editor:e,innerRef:t,...r}=this.props;return o.createElement(o.Fragment,null,o.createElement("div",{ref:((...e)=>t=>{e.forEach(e=>{"function"==typeof e?e(t):e&&(e.current=t)})})(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&o.createElement(d,{contentComponent:e.contentComponent}))}}let p=(0,o.forwardRef)((e,t)=>{let r=o.useMemo(()=>Math.floor(0xffffffff*Math.random()).toString(),[e.editor]);return o.createElement(h,{key:r,innerRef:t,...e})}),f=o.memo(p);
1var m=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],r.get(i[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(i of t.entries())if(!r.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var n,i,o,s=o[i];if(("_owner"!==s||!t.$$typeof)&&!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}),g={exports:{}},b={};g.exports=function(){if(i)return b;i=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useSyncExternalStore,r=o.useRef,n=o.useEffect,s=o.useMemo,l=o.useDebugValue;return b.useSyncExternalStoreWithSelector=function(i,o,a,c,u){var d=r(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var p=t(i,(d=s(function(){function t(t){if(!i){if(i=!0,r=t,t=c(t),void 0!==u&&h.hasValue){var o=h.value;if(u(o,t))return n=o}return n=t}if(o=n,e(r,t))return o;var s=c(t);return void 0!==u&&u(o,s)?o:(r=t,n=s)}var r,n,i=!1,s=void 0===a?null:a;return[function(){return t(o())},null===s?void 0:function(){return t(s())}]},[o,a,c,u]))[0],d[1]);return n(function(){h.hasValue=!0,h.value=p},[p]),l(p),p},b}();var y=g.exports;let v="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;class x{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}}let k="undefined"==typeof window,w=k||!!("undefined"!=typeof window&&window.next);class C{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){return void 0===this.options.current.immediatelyRender?k||w?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){let e={...this.options.current,onBeforeCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBeforeCreate)?void 0:r.call(t,...e)},onBlur:(...e)=>{var t,r;return null==(r=(t=this.options.current).onBlur)?void 0:r.call(t,...e)},onCreate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onCreate)?void 0:r.call(t,...e)},onDestroy:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDestroy)?void 0:r.call(t,...e)},onFocus:(...e)=>{var t,r;return null==(r=(t=this.options.current).onFocus)?void 0:r.call(t,...e)},onSelectionUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onSelectionUpdate)?void 0:r.call(t,...e)},onTransaction:(...e)=>{var t,r;return null==(r=(t=this.options.current).onTransaction)?void 0:r.call(t,...e)},onUpdate:(...e)=>{var t,r;return null==(r=(t=this.options.current).onUpdate)?void 0:r.call(t,...e)},onContentError:(...e)=>{var t,r;return null==(r=(t=this.options.current).onContentError)?void 0:r.call(t,...e)},onDrop:(...e)=>{var t,r;return null==(r=(t=this.options.current).onDrop)?void 0:r.call(t,...e)},onPaste:(...e)=>{var t,r;return null==(r=(t=this.options.current).onPaste)?void 0:r.call(t,...e)}};return new l.KE(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===e.length?C.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}
1):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function E(e={},t=[]){let r=(0,o.useRef)(e);r.current=e;let[n]=(0,o.useState)(()=>new C(r)),i=u.useSyncExternalStore(n.subscribe,n.getEditor,n.getServerSnapshot);return(0,o.useDebugValue)(i),(0,o.useEffect)(n.onRender(t)),!function(e){var t;let[r]=(0,o.useState)(()=>new x(e.editor)),n=y.useSyncExternalStoreWithSelector(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:m);v(()=>r.watch(e.editor),[e.editor,r]),(0,o.useDebugValue)(n)}({editor:i,selector:({transactionNumber:t})=>!1===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===t?0:t+1}),i}(0,o.createContext)({editor:null}).Consumer;let A=(0,o.createContext)({onDragStart:void 0}),S=o.forwardRef((e,t)=>{let{onDragStart:r}=(0,o.useContext)(A),n=e.as||"div";return o.createElement(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})});function M(e){return!!("function"==typeof e&&e.prototype&&e.prototype.isReactComponent)}function D(e){return!!("object"==typeof e&&e.$$typeof&&("Symbol(react.forward_ref)"===e.$$typeof.toString()||"react.forward_ref"===e.$$typeof.description))}class N{constructor(e,{editor:t,props:r={},as:n="div",className:i=""}){this.ref=null,this.id=Math.floor(0xffffffff*Math.random()).toString(),this.component=e,this.editor=t,this.props=r,this.element=document.createElement(n),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),this.editor.isInitialized?(0,s.flushSync)(()=>{this.render()}):queueMicrotask(()=>{this.render()})}render(){var e;let t=this.component,r=this.props,n=this.editor,i=function(){try{if(o.version)return parseInt(o.version.split(".")[0],10)>=19}catch{}return!1}(),s=function(e){if(M(e)||D(e))return!0;if("object"==typeof e&&e.$$typeof&&("Symbol(react.memo)"===e.$$typeof.toString()||"react.memo"===e.$$typeof.description)){let t=e.type;if(t)return M(t)||D(t)}return!1}(t),l={...r};l.ref&&!(i||s)&&delete l.ref,!l.ref&&(i||s)&&(l.ref=e=>{this.ref=e}),this.reactElement=o.createElement(t,{...l}),null==(e=null==n?void 0:n.contentComponent)||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;let t=this.editor;null==(e=null==t?void 0:t.contentComponent)||e.removeRenderer(this.id)}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}}class T extends l.Yv{constructor(e,t,r){if(super(e,t,r),!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";let e=this.dom.querySelector("[data-node-view-content]");if(!e)return;e.appendChild(this.contentDOMElement)}}mount(){let e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(e={})=>this.updateAttributes(e),deleteNode:()=>this.deleteNode(),ref:(0,o.createRef)()};if(!this.component.displayName){let e;this.component.displayName=(e=this.extension.name).charAt(0).toUpperCase()+e.substring(1)}let t={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:e=>{e&&this.contentDOMElement&&e.firstChild!==this.contentDOMElement&&(e.hasAttribute("data-node-view-wrapper")&&e.removeAttribute("data-node-view-wrapper"),e.appendChild(this.contentDOMElement))}},r=this.component,n=(0,o.memo)(e=>o.createElement(A.Provider,{value:t},(0,o.createElement)(r,e)));n.displayName="ReactNodeView";let i=this.node.isInline?"span":"div";this.options.as&&(i=this.options.as);let{className:s=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new N(n,{editor:this.editor,props:e,as:i,className:`node-${this.node.type.n
1ame} ${s}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!(null==(e=this.renderer.element.firstElementChild)?void 0:e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){let{from:e,to:t}=this.editor.state.selection,r=this.getPos();if("number"==typeof r)if(e<=r&&t>=r+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(e,t,r){let n=e=>{this.renderer.updateProps(e),"function"==typeof this.options.attrs&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if("function"==typeof this.options.update){let i=this.node,o=this.decorations,s=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=r,this.options.update({oldNode:i,oldDecorations:o,newNode:e,newDecorations:t,oldInnerDecorations:s,innerDecorations:r,updateProps:()=>n({node:e,decorations:t,innerDecorations:r})})}return e===this.node&&this.decorations===t&&this.innerDecorations===r||(this.node=e,this.decorations=t,this.innerDecorations=r,n({node:e,decorations:t,innerDecorations:r}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null}updateElementAttributes(){if(this.options.attrs){let e={};if("function"==typeof this.options.attrs){let t=this.editor.extensionManager.attributes,r=(0,l.zU)(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:r})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}}function j(e,t){return r=>r.editor.contentComponent?new T(e,r,t):{}}},46652:(e,t,r)=>{"use strict";r.d(t,{AdminSortableList:()=>a});var n=r(95155),i=r(12115),o=r(17787),s=r(49027),l=r(27587);function a(e){let{items:t,renderItem:r,onReorder:l,activationDistance:a=10,className:u}=e,d=(0,o.FR)((0,o.MS)(o.AN,{activationConstraint:{distance:a}}),(0,o.MS)(o.uN,{coordinateGetter:s.JR})),h=(0,i.useCallback)(e=>{let{active:r,over:n}=e;if(!n||r.id===n.id)return;let i=t.findIndex(e=>e.id===r.id),o=t.findIndex(e=>e.id===n.id);if(-1===i||-1===o)return;let s=function(e,t,r){var n,i;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3;if(t===r||t<0||t>=e.length||r<0||r>=e.length)return{kind:"noop"};let s=[...e],[l]=s.splice(t,1);s.splice(r,0,l);let a=r>0&&null!=(n=s[r-1].sortOrder)?n:0,c=r<s.length-1?null!=(i=s[r+1].sortOrder)?i:a+2*o:a+o,u=Math.round((a+c)/2);return u===a||u===c?{kind:"rebalance",assignments:s.map((e,t)=>({id:e.id,sortOrder:(t+1)*o}))}:{kind:"single",id:l.id,sortOrder:u}}(t,i,o);"noop"!==s.kind&&l(s)},[t,l]);return(0,n.jsx)(o.Mp,{sensors:d,collisionDetection:o.fp,onDragEnd:h,children:(0,n.jsx)(s.gB,{items:t.map(e=>e.id),strategy:s._G,children:(0,n.jsx)("div",{className:u,children:t.map(e=>(0,n.jsx)(c,{item:e,renderItem:r},e.id))})})})}function c(e){let{item:t,renderItem:r}=e,{attributes:i,listeners:o,setNodeRef:a,transform:c,transition:u,isDragging:d}=(0,s.gl)({id:t.id}),h={transform:l.Ks.Transform.toString(c),transition:u,opacity:d?.6:1};return(0,n.jsx)(n.Fragment,{children:r(t,{attributes:i,listeners:null!=o?o:{},isDragging:d},a,h)})}},48631:(e,t,r)=>{"use strict";r.d(t,{KanbanBoard:()=>h});var n=r(95155),i=r(12115),o=r(17787),s=r(27587),l=r(20243),a=r(40745),c=r(43589),u=r(38855),d=r(45412);function h(e){let{items:t,columns:r,getColumnKey:s,renderCard:l,onMove:h,sortBy:p,activationDistance:m=8,touchActivationDelay:g=200,touchActivationTolerance:b=5,rollbackErrorMessage:y,loading:v=!1,loadingSkeletonCount:x=3,onCardClick:k,emptyColumnLabel:w}=e,C=(0,d.b)(),E=null!=y?y:C("core.kanban.couldNotMoveCard"),A=null!=w?w:C("core.kanban.emptyColumn"),[S,M]=(0,i.useState)(new Map),D=(0,o.FR)((0,o.MS)(o.cA,{activationConstraint:{distance:m}}),(0,o.MS)(o.IG,{activationConstraint:{delay:g,tolerance:b}}),(0,o.MS)(o.uN)),N=(0,i.useMemo)(()=>{let e=new Map;for(let r of t)e.set(r.id,r);return e},[t]),T=(0,i.useCallback)(e=>{var t;let r=S.get(e.id);return void 0!==r?r:null!=(t=s(e))?t:null},[S,s]);(0,i.useEffect)(()=>{M(e=>{if(0===e.size)return e;let t=null;for(let[n,i]of e){var r;let o=N.get(n);o&&(null!=(r=s(o))?r:null)===i&&(t||(t=new Map(e)),t.delete(n))}return null!=t?t:e})},[t,N,s]);let j=(0,i.useMemo)(()=>{let e=new Map;for(let t of r)e.set(t.key,[]);for(let r of t){let t=T(r);t&&e.has(t)&&e.get(t).push(r)}if(p)for(let t of e.values())t.sort(p);return e},[r,t,T,p]),_=(0,i.useMemo)(()=>{let e=new Map;for(let t of r)e.set(t.key,t.label);return e},[r]),F=(0,i.useCallback)(e=>{var t;return e?null!=(t=_.get(e))?t:e:""},[_]),[L,R]=(0,i.useState)(null),I=(0,i.useRef)(null),O=(0,i.useRef)(new Map),[z,B]=(0,i.useState)(""),P=(0,i.useCallback)(e=>{let t=String(e.active.id),r=N.get(t);I.current=r?T(r):null,R(t)},[N,T]),$=(0,i.useCallback)(e=>{O.current.set(e,Date.now()),R(null)},[]),H=(0,i.useCallback)(e=>{let{active:t,over:n}=e,i=String(t.id);if($(i),!n)return;let o=String(n.id),s=N.get(i);if(!s)return;let l=T(s);l&&l!==o&&r.some(e=>e.key===o)&&(M(e=>{let t=new Map(e);return t.set(i,o),t}),Promise.resolve(h(s,l,o)).catch(e=>{M(e=>{if(!e.has(i))return e;let t=new Map(e);return t.delete(i),t}),(0,c.Kf)(E,e instanceof Error?e.message:void 0),B((0,u.G)(C("core.kanban.a11y.rollback"),{from:F(l)}))}))},[N,T,r,h,E,$,C,F]);(0,i.useEffect)(()=>
1{if(!z)return;let e=setTimeout(()=>B(""),4e3);return()=>clearTimeout(e)},[z]);let q=(0,i.useCallback)(e=>{$(String(e.active.id))},[$]),K=(0,i.useCallback)(e=>{let t=O.current.get(e);return void 0!==t&&Date.now()-t<250},[]),V=(0,i.useMemo)(()=>({onDragStart:e=>{let{active:t}=e,r=I.current;return(0,u.G)(C("core.kanban.a11y.dragStart"),{from:F(r),id:String(t.id)})},onDragOver:e=>{let{over:t}=e;return t?(0,u.G)(C("core.kanban.a11y.dragOver"),{column:F(String(t.id))}):C("core.kanban.a11y.dragOverNone")},onDragEnd:e=>{var t;let{over:r}=e,n=null!=(t=I.current)?t:"";if(!r)return(0,u.G)(C("core.kanban.a11y.dragEndSameColumn"),{from:F(n)});let i=String(r.id);return i===n?(0,u.G)(C("core.kanban.a11y.dragEndSameColumn"),{from:F(n)}):(0,u.G)(C("core.kanban.a11y.dragEnd"),{from:F(n),to:F(i)})},onDragCancel:()=>{var e;let t=null!=(e=I.current)?e:"";return(0,u.G)(C("core.kanban.a11y.dragCancel"),{from:F(t)})}}),[C,F]),U=(0,i.useMemo)(()=>({draggable:C("core.kanban.a11y.instructions")}),[C]),W=v&&0===t.length;return(0,n.jsxs)(o.Mp,{sensors:D,collisionDetection:o.fp,onDragStart:P,onDragEnd:H,onDragCancel:q,accessibility:{announcements:V,screenReaderInstructions:U},children:[(0,n.jsx)("div",{className:(0,a.cn)("flex gap-4 overflow-x-auto overflow-y-visible pb-2","snap-x snap-mandatory md:snap-proximity"),children:r.map(e=>{var t;return(0,n.jsx)(f,{column:e,items:null!=(t=j.get(e.key))?t:[],renderCard:l,onCardClick:k,wasDraggedRecently:K,activeDragId:L,loading:W,loadingSkeletonCount:x,emptyColumnLabel:A,columnLabelTemplate:C("core.kanban.a11y.columnLabel")},e.key)})}),(0,n.jsx)("div",{role:"status","aria-live":"assertive","aria-atomic":"true",className:"sr-only",children:z})]})}let p={primary:"border-t-primary",secondary:"border-t-secondary",accent:"border-t-accent",destructive:"border-t-destructive",muted:"border-t-muted-foreground/40"};function f(e){var t,r;let{column:i,items:s,renderCard:l,onCardClick:c,wasDraggedRecently:d,activeDragId:h,loading:f,loadingSkeletonCount:y,emptyColumnLabel:v,columnLabelTemplate:x}=e,{setNodeRef:k,isOver:w}=(0,o.zM)({id:i.key}),C=i.accent?p[i.accent]:null,E=(0,u.G)(x,{label:i.label,count:String(s.length)});return(0,n.jsxs)("div",{ref:k,role:"group","aria-label":E,className:(0,a.cn)("flex w-72 shrink-0 snap-start flex-col rounded-md border bg-muted/30 p-3 min-h-[8rem]",C&&["border-t-2",C],i.muted&&"opacity-70",w&&"ring-2 ring-primary ring-offset-2"),children:[(0,n.jsxs)("div",{className:(0,a.cn)("sticky z-10 -mx-3 -mt-3 mb-3 flex items-center justify-between gap-2 rounded-t-md bg-muted/60 px-3 py-2 backdrop-blur","top-[var(--admin-list-chrome-height,0px)]"),children:[(0,n.jsx)("span",{className:(0,a.cn)("text-sm font-semibold",i.muted&&"text-muted-foreground"),children:i.label}),(0,n.jsx)("span",{className:(0,a.cn)("inline-flex min-w-[1.5rem] items-center justify-center rounded-full bg-background px-2 py-0.5 text-xs font-medium tabular-nums",i.muted?"text-muted-foreground":"text-foreground"),"aria-hidden":"true",children:s.length})]}),(0,n.jsx)("div",{className:"flex flex-1 flex-col gap-2",children:f?null!=(t=i.loadingContent)?t:(0,n.jsx)(m,{count:y}):0===s.length?null!=(r=i.emptyContent)?r:(0,n.jsx)(g,{label:v}):s.map(e=>(0,n.jsx)(b,{id:e.id,isActiveDrag:h===e.id,onClick:c&&!d(e.id)?()=>c(e):void 0,rawClickHandler:c?()=>c(e):void 0,wasDraggedRecently:d,children:l(e)},e.id))})]})}
1function m(e){let{count:t}=e;return(0,n.jsx)(n.Fragment,{children:Array.from({length:t}).map((e,t)=>(0,n.jsxs)("div",{className:"rounded-md border bg-background p-3 shadow-sm","aria-hidden":"true",children:[(0,n.jsx)(l.E,{className:"h-4 w-3/4 mb-2"}),(0,n.jsx)(l.E,{className:"h-3 w-1/2"})]},t))})}function g(e){let{label:t}=e;return(0,n.jsx)("div",{className:"flex flex-1 items-center justify-center rounded-md border border-dashed border-muted-foreground/30 px-3 py-6 text-center text-xs text-muted-foreground",children:t})}function b(e){let{id:t,isActiveDrag:r,onClick:i,rawClickHandler:l,wasDraggedRecently:c,children:u}=e,{attributes:d,listeners:h,setNodeRef:p,transform:f,isDragging:m}=(0,o.PM)({id:t}),g={transform:s.Ks.Translate.toString(f),opacity:m?.6:1};return(0,n.jsx)("div",{ref:p,style:g,...d,...null!=h?h:{},"data-dragging":r||m||void 0,onClick:i&&!m?e=>{if(c(t))return void e.stopPropagation();i()}:void 0,onKeyDown:l?e=>{"Enter"!==e.key||m||r||c(t)||(e.preventDefault(),l())}:void 0,className:(0,a.cn)("rounded-md border bg-background p-3 shadow-sm cursor-grab active:cursor-grabbing","outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",!!(i||l)&&"hover:border-primary/40",r&&"ring-2 ring-primary ring-offset-2"),children:u})}},49027:(e,t,r)=>{"use strict";r.d(t,{JR:()=>C,_G:()=>u,be:()=>s,gB:()=>p,gl:()=>x,kL:()=>a});var n=r(12115),i=r(17787),o=r(27587);function s(e,t,r){let n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function l(e){return null!==e&&e>=0}let a=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e,o=s(t,n,r),l=t[i],a=o[i];return a&&l?{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}:null},c={scaleX:1,scaleY:1},u=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:o,overIndex:s}=e,l=null!=(t=o[r])?t:n;if(!l)return null;if(i===r){let e=o[s];return e?{x:0,y:r<s?e.top+e.height-(l.top+l.height):e.top-l.top,...c}:null}let a=function(e,t,r){let n=e[t],i=e[t-1],o=e[t+1];return n?r<t?i?n.top-(i.top+i.height):o?o.top-(n.top+n.height):0:o?o.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}(o,i,r);return i>r&&i<=s?{x:0,y:-l.height-a,...c}:i<r&&i>=s?{x:0,y:l.height+a,...c}:{x:0,y:0,...c}},d="Sortable",h=n.createContext({activeIndex:-1,containerId:d,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:a,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:r,items:s,strategy:l=a,disabled:c=!1}=e,{active:u,dragOverlay:p,droppableRects:f,over:m,measureDroppableContainers:g}=(0,i.fF)(),b=(0,o.YG)(d,r),y=null!==p.rect,v=(0,n.useMemo)(()=>s.map(e=>"object"==typeof e&&"id"in e?e.id:e),[s]),x=null!=u,k=u?v.indexOf(u.id):-1,w=m?v.indexOf(m.id):-1,C=(0,n.useRef)(v),E=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(v,C.current),A=-1!==w&&-1===k||E,S="boolean"==typeof c?{draggable:c,droppable:c}:c;(0,o.Es)(()=>{E&&x&&g(v)},[E,v,x,g]),(0,n.useEffect)(()=>{C.current=v},[v]);let M=(0,n.useMemo)(()=>({activeIndex:k,containerId:b,disabled:S,disableTransforms:A,items:v,overIndex:w,useDragOverlay:y,sortedRects:v.reduce((e,t,r)=>{let n=f.get(t);return n&&(e[r]=n),e},Array(v.length)),strategy:l}),[k,b,S.draggable,S.droppable,A,v,w,f,y,l]);return n.createElement(h.Provider,{value:M},t)}let f=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return s(r,n,i).indexOf(t)},m=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:o,newIndex:s,previousItems:l,previousContainerId:a,transition:c}=e;return!!c&&!!n&&(l===o||i!==s)&&(!!r||s!==i&&t===a)},g={duration:200,easing:"ease"},b="transform",y=o.Ks.Transition.toString({property:b,duration:0,easing:"linear"}),v={roleDescription:"sortable"};function x(e){var t,r,s,a;let{animateLayoutChanges:c=m,attributes:u,disabled:d,data:p,getNewIndex:x=f,id:k,strategy:w,resizeObserverConfig:C,transition:E=g}=e,{items:A,containerId:S,activeIndex:M,disabled:D,disableTransforms:N,sortedRects:T,overIndex:j,useDragOverlay:_,strategy:F}=(0,n.useContext)(h),L=(t=d,r=D,"boolean"==typeof t?{draggable:t,droppable:!1}:{draggable:null!=(s=null==t?void 0:t.draggable)?s:r.draggable,droppable:null!=(a=null==t?void 0:t.droppable)?a:r.droppable}),R=A.indexOf(k),I=(0,n.useMemo)(()=>({sortable:{containerId:S,index:R,items:A},...p}),[S,p,R,A]),O=(0,n.useMemo)(()=>A.slice(A.indexOf(k)),[A,k]),{rect:z,node:B,isOver:P,setNodeRef:$}=(0,i.zM)({id:k,data:I,disabled:L.droppable,resizeObserverConfig:{updateMeasurementsFor:O,...C}}),{active:H,activatorEvent:q,activeNodeRect:K,attributes:V,setNodeRef:U,listeners:W,isDragging:J,over:G,setActivatorNodeRef:Z,transform:Y}=(0,i.PM)({id:k,data:I,attributes:{...v,...u},disabled:L.draggable}),X=(0,o.jn)($,U),Q=!!H,ee=Q&&!N&&l(M)&&l(j),et=!_&&J,er=et&&ee?Y:null,en=ee?null!=er?er:(null!=w?w:F)({rects:T,activeNodeRect:K,activeIndex:M,overIndex:j,index:R}):null,ei=l(M)&&l(j)?x({id:k,items:A,activeIndex:M,overIndex:j}):R,eo=null==H?void 0:H.id,es=(0,n.useRef)({activeId:eo,items:A,newIndex:ei,containerId:S}),el=A!==es.current.items,ea=c({active:H,containerId:S,isDragging:J,isSorting:Q,id:k,index:R,items:A,newIndex:es.current.newIndex,previousItems:es.current.items,previousContainerId:es.current.containerId,transition:E,wasDragging:null!=es.current.activeId}),ec=function(e){let{disabled:t,index:r,node:s,rect:l}
1=e,[a,c]=(0,n.useState)(null),u=(0,n.useRef)(r);return(0,o.Es)(()=>{if(!t&&r!==u.current&&s.current){let e=l.current;if(e){let t=(0,i.Sj)(s.current,{ignoreTransform:!0}),r={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(r.x||r.y)&&c(r)}}r!==u.current&&(u.current=r)},[t,r,s,l]),(0,n.useEffect)(()=>{a&&c(null)},[a]),a}({disabled:!ea,index:R,node:B,rect:z});return(0,n.useEffect)(()=>{Q&&es.current.newIndex!==ei&&(es.current.newIndex=ei),S!==es.current.containerId&&(es.current.containerId=S),A!==es.current.items&&(es.current.items=A)},[Q,ei,S,A]),(0,n.useEffect)(()=>{if(eo===es.current.activeId)return;if(null!=eo&&null==es.current.activeId){es.current.activeId=eo;return}let e=setTimeout(()=>{es.current.activeId=eo},50);return()=>clearTimeout(e)},[eo]),{active:H,activeIndex:M,attributes:V,data:I,rect:z,index:R,newIndex:ei,items:A,isOver:P,isSorting:Q,isDragging:J,listeners:W,node:B,overIndex:j,over:G,setNodeRef:X,setActivatorNodeRef:Z,setDroppableNodeRef:$,setDraggableNodeRef:U,transform:null!=ec?ec:en,transition:ec||el&&es.current.newIndex===R?y:(!et||(0,o.kx)(q))&&E&&(Q||ea)?o.Ks.Transition.toString({...E,property:b}):void 0}}function k(e){if(!e)return!1;let t=e.data.current;return!!t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable}let w=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],C=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:s,droppableContainers:l,over:a,scrollableAncestors:c}}=t;if(w.includes(e.code)){if(e.preventDefault(),!r||!n)return;let t=[];l.getEnabled().forEach(r=>{if(!r||null!=r&&r.disabled)return;let o=s.get(r.id);
1if(o)switch(e.code){case i.vL.Down:n.top<o.top&&t.push(r);break;case i.vL.Up:n.top>o.top&&t.push(r);break;case i.vL.Left:n.left>o.left&&t.push(r);break;case i.vL.Right:n.left<o.left&&t.push(r)}});let u=(0,i.y$)({active:r,collisionRect:n,droppableRects:s,droppableContainers:t,pointerCoordinates:null}),d=(0,i.Vy)(u,"id");if(d===(null==a?void 0:a.id)&&u.length>1&&(d=u[1].id),null!=d){let e=l.get(r.id),t=l.get(d),a=t?s.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&a&&e&&t){let r=(0,i.sl)(u).some((e,t)=>c[t]!==e),s=E(e,t),l=function(e,t){return!!k(e)&&!!k(t)&&!!E(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=r||!s?{x:0,y:0}:{x:l?n.width-a.width:0,y:l?n.height-a.height:0},h={x:a.left,y:a.top};return d.x&&d.y?h:(0,o.Re)(h,d)}}}};function E(e,t){return!!k(e)&&!!k(t)&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},49516:(e,t,r)=>{"use strict";r.d(t,{w:()=>rf});var n={};r.r(n),r.d(n,{decode:()=>p,encode:()=>g,format:()=>b,parse:()=>D});var i={};r.r(i),r.d(i,{Any:()=>j,Cc:()=>_,Cf:()=>F,P:()=>N,S:()=>T,Z:()=>L});var o={};r.r(o),r.d(o,{arrayReplaceAt:()=>P,asciiTrim:()=>ea,assign:()=>B,escapeHtml:()=>X,escapeRE:()=>ee,fromCodePoint:()=>H,has:()=>z,isMdAsciiPunct:()=>eo,isPunctChar:()=>en,isPunctCharCode:()=>ei,isSpace:()=>et,isString:()=>I,isValidEntityCode:()=>$,isWhiteSpace:()=>er,lib:()=>ec,normalizeReference:()=>es,unescapeAll:()=>W,unescapeMd:()=>U});var s={};r.r(s),r.d(s,{parseLinkDestination:()=>ed,parseLinkLabel:()=>eu,parseLinkTitle:()=>eh});
1var l=r(17733),a=r(56135),c=r(76908),u=r(92322);let d={};function h(e,t){"string"!=typeof t&&(t=h.defaultChars);let r=function(e){let t=d[e];if(t)return t;t=d[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);t.push(r)}for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,i=e.length;n<i;n+=3){let o=parseInt(e.slice(n+1,n+3),16);if(o<128){t+=r[o];continue}if((224&o)==192&&n+3<i){let r=parseInt(e.slice(n+4,n+6),16);if((192&r)==128){let e=o<<6&1984|63&r;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&o)==224&&n+6<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16);if((192&r)==128&&(192&i)==128){let e=o<<12&61440|r<<6&4032|63&i;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&o)==240&&n+9<i){let r=parseInt(e.slice(n+4,n+6),16),i=parseInt(e.slice(n+7,n+9),16),s=parseInt(e.slice(n+10,n+12),16);if((192&r)==128&&(192&i)==128&&(192&s)==128){let e=o<<18&1835008|r<<12&258048|i<<6&4032|63&s;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}h.defaultChars=";/?:@&=+$,#",h.componentChars="";let p=h,f={};function m(e,t,r){"string"!=typeof t&&(r=t,t=m.defaultChars),void 0===r&&(r=!0);let n=function(e){let t=f[e];if(t)return t;t=f[e]=[];for(let e=0;e<128;e++){let r=String.fromCharCode(e);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=e[r];return t}(t),i="";for(let t=0,o=e.length;t<o;t++){let s=e.charCodeAt(t);if(r&&37===s&&t+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){i+=e.slice(t,t+3),t+=2;continue}if(s<128){i+=n[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&t+1<o){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){i+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[t])}return i}m.defaultChars=";/?:@&=+$,-_.!~*'()#",m.componentChars="-_.!~*'()";let g=m;function b(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function y(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let v=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,k=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,w=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "]))),C=["/","?","#"],E=/^[+a-z0-9A-Z_-]{0,63}$/,A=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};y.prototype.parse=function(e,t){let r,n,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){let e=k.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let s=v.exec(o);if(s&&(r=(s=s[0]).toLowerCase(),this.protocol=s,o=o.substr(s.length)),(t||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2))&&!(s&&S[s])&&(o=o.substr(2),this.slashes=!0),!S[s]&&(i||s&&!M[s])){let e,t,r=-1;for(let e=0;e<C.length;e++)-1!==(n=o.indexOf(C[e]))&&(-1===r||n<r)&&(r=n);-1!==(t=-1===r?o.lastIndexOf("@"):o.lastIndexOf("@",r))&&(e=o.slice(0,t),o=o.slice(t+1),this.auth=e),r=-1;for(let e=0;e<w.length;e++)-1!==(n=o.indexOf(w[e]))&&(-1===r||n<r)&&(r=n);-1===r&&(r=o.length),":"===o[r-1]&&r--;let i=o.slice(0,r);o=o.slice(r),this.parseHost(i),this.hostname=this.hostname||"";let s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){let e=this.hostname.split(/\./);for(let t=0,r=e.length;t<r;t++){let r=e[t];if(r&&!r.match(E)){let n="";for(let e=0,t=r.length;e<t;e++)r.charCodeAt(e)>127?n+="x":n+=r[e];if(!n.match(E)){let n=e.slice(0,t),i=e.slice(t+1),s=r.match(A);s&&(n.push(s[1]),i.unshift(s[2])),i.length&&(o=i.join(".")+o),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let l=o.indexOf("#");-1!==l&&(this.hash=o.substr(l),o=o.slice(0,l));let a=o.indexOf("?");return -1!==a&&(this.search=o.substr(a),o=o.slice(0,a)),o&&(this.pathname=o),M[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this},y.prototype.parseHost=function(e){let t=x.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let D=function(e,t){if(e&&e instanceof y)return e;let r=new y;return r.parse(e,t),r},N=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,T=/[\$\+<->
1\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,j=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,_=/[\0-\x1F\x7F-\x9F]/,F=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,L=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var R=r(97645);function I(e){return"[object String]"===Object.prototype.toString.call(e)}let O=Object.prototype.hasOwnProperty;function z(e,t){return O.call(e,t)}function B(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(r){e[r]=t[r]})}}),e}function P(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function $(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function H(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let q=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,K=RegExp(q.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),V=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function U(e){return 0>e.indexOf("\\")?e:e.replace(q,"$1")}function W(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(K,function(e,t,r){if(t)return t;if(35===r.charCodeAt(0)&&V.test(r)){let t="x"===r[1].toLowerCase()?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return $(t)?H(t):e}let n=(0,R.Gz)(e);return n!==e?n:e})}let J=/[&<>"]/,G=/[&<>"]/g,Z={"&":"&","<":"<",">":">",'"':"""};function Y(e){return Z[e]}function X(e){return J.test(e)?e.replace(G,Y):e}let Q=/[.?*+^$[\]\\(){}|-]/g;function ee(e){return e.replace(Q,"\\$&")}function et(e){switch(e){case 9:case 32:return!0}return!1}function er(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function en(e){return N.test(e)||T.test(e)}function ei(e){return en(H(e))}function eo(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case
161:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function es(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}function el(e){return 32===e||9===e||10===e||13===e}function ea(e){let t=0;for(;t<e.length&&el(e.charCodeAt(t));t++);let r=e.length-1;for(;r>=t&&el(e.charCodeAt(r));r--);return e.slice(t,r+1)}let ec={mdurl:n,ucmicro:i};function eu(e,t,r){let n,i,o,s,l=e.posMax,a=e.pos;for(e.pos=t+1,n=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o){if(s===e.pos-1)n++;else if(r)return e.pos=a,-1}}let c=-1;return i&&(c=e.pos),e.pos=a,c}function ed(e,t,r){let n,i=t,o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<r&&10!==(n=e.charCodeAt(i))&&60!==n;){if(62===n){o.pos=i+1,o.str=W(e.slice(t+1,i)),o.ok=!0;break}if(92===n&&i+1<r){i+=2;continue}i++}return o}let s=0;for(;i<r&&32!==(n=e.charCodeAt(i))&&!(n<32)&&127!==n;){if(92===n&&i+1<r){if(32===e.charCodeAt(i+1))break;i+=2;continue}if(40===n&&++s>32)return o;if(41===n){if(0===s)break;s--}i++}return t===i||0!==s||(o.str=W(e.slice(t,i)),o.pos=i,o.ok=!0),o}function eh(e,t,r,n){let i,o=t,s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)s.str=n.str,s.marker=n.marker;else{if(o>=r)return s;let n=e.charCodeAt(o);if(34!==n&&39!==n&&40!==n)return s;t++,o++,40===n&&(n=41),s.marker=n}for(;o<r;){if((i=e.charCodeAt(o))===s.marker)return s.pos=o+1,s.str+=W(e.slice(t,o)),s.ok=!0,s;if(40===i&&41===s.marker)return s;92===i&&o+1<r&&o++,o++}return s.can_continue=!0,s.str+=W(e.slice(t,o)),s}let ep={};function ef(){this.rules=B({},ep)}function em(){this.__rules__=[],this.__cache__=null}function eg(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function eb(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}ep.code_inline=function(e,t,r,n,i){let o=e[t];return"<code"+i.renderAttrs(o)+">"+X(o.content)+"</code>"},ep.code_block=function(e,t,r,n,i){let o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+X(e[t].content)+"</code></pre>\n"},ep.fence=function(e,t,r,n,i){let o,s=e[t],l=s.info?W(s.info).trim():"",a="",c="";if(l){let e=l.split(/(\s+)/g);a=e[0],c=e.slice(2).join("")}if(0===(o=r.highlight&&r.highlight(s.content,a,c)||X(s.content)).indexOf("<pre"))return o+"\n";if(l){let e=s.attrIndex("class"),t=s.attrs?s.attrs.slice():[];return e<0?t.push(["class",r.langPrefix+a]):(t[e]=t[e].slice(),t[e][1]+=" "+r.langPrefix+a),`<pre><code${i.renderAttrs({attrs:t})}>${o}</code></pre> 2`}return`<pre><code${i.renderAttrs(s)}>${o}</code></pre> 3`},ep.image=function(e,t,r,n,i){let o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)},ep.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},ep.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},ep.text=function(e,t){return X(e[t].content)},ep.html_block=function(e,t){return e[t].content},ep.html_inline=function(e,t){return e[t].content},ef.prototype.renderAttrs=function(e){let t,r,n;if(!e.attrs)return"";for(t=0,n="",r=e.attrs.length;t<r;t++)n+=" "+X(e.attrs[t][0])+'="'+X(e.attrs[t][1])+'"';return n},ef.prototype.renderToken=function(e,t,r){let n=e[t],i="";if(n.hidden)return"";n.block&&-1!==n.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===n.nesting?"</":"<")+n.tag,i+=this.renderAttrs(n),0===n.nesting&&r.xhtmlOut&&(i+=" /");let o=!1;if(n.block&&(o=!0,1===n.nesting&&t+1<e.length)){let r=e[t+1];"inline"===r.type||r.hidden?o=!1:-1===r.nesting&&r.tag===n.tag&&(o=!1)}return i+(o?">\n":">")},ef.prototype.renderInline=function(e,t,r){let n="",i=this.rules;for(let o=0,s=e.length;o<s;o++){let s=e[o].type;void 0!==i[s]?n+=i[s](e,o,t,r,this):n+=this.renderToken(e,o,t)}return n},ef.prototype.renderInlineAsText=function(e,t,r){let n="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":n+=e[i].content;break;case"image":n+=this.renderInlineAsText(e[i].children,t,r);break;case"softbreak":case"hardbreak":n+="\n"}return n},ef.prototype.render=function(e,t,r){let n="",i=this.rules;for(let o=0,s=e.length;o<s;o++){let s=e[o].type;"inline"===s?n+=this.renderInline(e[o].children,t,r):void 0!==i[s]?n+=i[s](e,o,t,r,this):n+=this.renderToken(e,o,t,r)}return n},em.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},em.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(r){r.enabled&&(t&&0>r.alt.indexOf(t)||e.__cache__[t].push(r.fn))})})},em.prototype.at=function(e,t,r){let n=this.__find__(e);
3if(-1===n)throw Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=(r||{}).alt||[],this.__cache__=null},em.prototype.before=function(e,t,r,n){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:(n||{}).alt||[]}),this.__cache__=null},em.prototype.after=function(e,t,r,n){let i=this.__find__(e);if(-1===i)throw Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:(n||{}).alt||[]}),this.__cache__=null},em.prototype.push=function(e,t,r){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(r||{}).alt||[]}),this.__cache__=null},em.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)},this),this.__cache__=null,r},em.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},em.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let r=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)},this),this.__cache__=null,r},em.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},eg.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let r=0,n=t.length;r<n;r++)if(t[r][0]===e)return r;return -1},eg.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eg.prototype.attrSet=function(e,t){let r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},eg.prototype.attrGet=function(e){let t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},eg.prototype.attrJoin=function(e,t){let r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t},eb.prototype.Token=eg;let ey=/\r\n?|\n/g,ev=/\0/g,ex=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ek=/\((c|tm|r)\)/i,ew=/\((c|tm|r)\)/ig,eC={c:"\xa9",r:"\xae",tm:"â¢"};function eE(e,t){return eC[t.toLowerCase()]}let eA=/['"]/,eS=/['"]/g;function eM(e,t,r,n){e[t]||(e[t]=[]),e[t].push({pos:r,ch:n})}let eD=[["normalize",function(e){let t;t=(t=e.src.replace(ey,"\n")).replace(ev,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let r=0,n=t.length;r<n;r++){let n=t[r];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let i=0,o=t.length;i<o;i++){if("inline"!==t[i].type||!e.md.linkify.pretest(t[i].content))continue;let o=t[i].children,s=0;for(let l=o.length-1;l>=0;l--){let a=o[l];if("link_close"===a.type){for(l--;o[l].level!==a.level&&"link_open"!==o[l].type;)l--;continue}if("html_inline"===a.type){var r,n;r=a.content,/^<a[>\s]/i.test(r)&&s>0&&s--,n=a.content,/^<\/a\s*>/i.test(n)&&s++}if(!(s>0)&&"text"===a.type&&e.md.linkify.test(a.content)){let r=a.content,n=e.md.linkify.match(r),s=[],c=a.level,u=0;n.length>0&&0===n[0].index&&l>0&&"text_special"===o[l-1].type&&(n=n.slice(1));for(let t=0;t<n.length;t++){let i=n[t].url,o=e.md.normalizeLink(i);if(!e.md.validateLink(o))continue;let l=n[t].text;l=n[t].schema?"mailto:"!==n[t].schema||/^mailto:/i.test(l)?e.md.normalizeLinkText(l):e.md.normalizeLinkText("mailto:"+l).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+l).replace(/^http:\/\//,"");let a=n[t].index;if(a>u){let t=new e.Token("text","",0);t.content=r.slice(u,a),t.level=c,s.push(t)}let d=new e.Token("link_open","a",1);d.attrs=[["href",o]],d.level=c++,d.markup="linkify",d.info="auto",s.push(d);let h=new e.Token("text","",0);h.content=l,h.level=c,s.push(h);let p=new e.Token("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",s.push(p),u=n[t].lastIndex}if(u<r.length){let t=new e.Token("text","",0);t.content=r.slice(u),t.level=c,s.push(t)}t[i].children=o=P(o,l,s)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(ek.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"!==n.type||t||(n.content=n.content.replace(ew,eE)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children),ex.test(e.tokens[t].content)&&function(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];"text"===n.type&&!t&&ex.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"â¦").replace(/([?!])â¦/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1â").replace(/(^|\s)--(?=\s|$)/mg,"$1â").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1â")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&eA.test(e.tokens[t].content)&&function(e,t){let r,n=[],i={};for(let o=0;o<e.length;o++){let s=e[o],l=e[o].level;for(r=n.length-1;r>=0&&!(n[r].level<=l);r--);if(n.length=r+1,"text"!==s.type)continue;let a=s.content,c=0,u=a.length;t:for(;c<u;){eS.lastIndex=c;let s=eS.exec(a);if(!s)break;let d=!0,h=!0;c=s.index+1;let p="'"===s[0],f=32;if(s.index-1>
3=0)f=a.charCodeAt(s.index-1);else for(r=o-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){f=e[r].content.charCodeAt(e[r].content.length-1);break}let m=32;if(c<u)m=a.charCodeAt(c);else for(r=o+1;r<e.length&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r++)if(e[r].content){m=e[r].content.charCodeAt(0);break}let g=eo(f)||ei(f),b=eo(m)||ei(m),y=er(f),v=er(m);if(v?d=!1:b&&!(y||g)&&(d=!1),y?h=!1:g&&!(v||b)&&(h=!1),34===m&&'"'===s[0]&&f>=48&&f<=57&&(h=d=!1),d&&h&&(d=g,h=b),!d&&!h){p&&eM(i,o,s.index,"â");continue}if(h)for(r=n.length-1;r>=0;r--){let e=n[r];if(n[r].level<l)break;if(e.single===p&&n[r].level===l){let l,a;e=n[r],p?(l=t.md.options.quotes[2],a=t.md.options.quotes[3]):(l=t.md.options.quotes[0],a=t.md.options.quotes[1]),eM(i,o,s.index,a),eM(i,e.token,e.pos,l),n.length=r;continue t}}d?n.push({token:o,pos:s.index,single:p,level:l}):h&&p&&eM(i,o,s.index,"â")}}Object.keys(i).forEach(function(t){e[t].content=function(e,t){let r="",n=0;t.sort((e,t)=>e.pos-t.pos);for(let i=0;i<t.length;i++){let o=t[i];r+=e.slice(n,o.pos)+o.ch,n=o.pos+1}return r+e.slice(n)}(e[t].content,i[t])})}(e.tokens[t].children,e)}],["text_join",function(e){let t,r,n=e.tokens,i=n.length;for(let e=0;e<i;e++){if("inline"!==n[e].type)continue;let i=n[e].children,o=i.length;for(t=0;t<o;t++)"text_special"===i[t].type&&(i[t].type="text");for(t=r=0;t<o;t++)"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}}]];function eN(){this.ruler=new em;for(let e=0;e<eD.length;e++)this.ruler.push(eD[e][0],eD[e][1])}function eT(e,t,r,n){this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let i=this.src;for(let e=0,t=0,r=0,n=0,o=i.length,s=!1;t<o;t++){let l=i.charCodeAt(t);if(!s)if(et(l)){r++,9===l?n+=4-n%4:n++;continue}else s=!0;(10===l||t===o-1)&&(10!==l&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(r),this.sCount.push(n),this.bsCount.push(0),s=!1,r=0,n=0,e=t+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}function ej(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function e_(e){let t=[],r=e.length,n=0,i=e.charCodeAt(n),o=!1,s=0,l="";for(;n<r;)124===i&&(o?(l+=e.substring(s,n-1),s=n):(t.push(l+e.substring(s,n)),l="",s=n+1)),o=92===i,n++,i=e.charCodeAt(n);return t.push(l+e.substring(s)),t}function eF(e,t){let r=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(n++);return 42!==i&&45!==i&&43!==i||n<r&&!et(e.src.charCodeAt(n))?-1:n}function eL(e,t){let r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],i=r;if(i+1>=n)return -1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return -1;for(;;){if(i>=n)return -1;if((o=e.src.charCodeAt(i++))>=48&&o<=57){if(i-r>=10)return -1;continue}if(41===o||46===o)break;return -1}return i<n&&!et(o=e.src.charCodeAt(i))?-1:i}eN.prototype.process=function(e){let t=this.ruler.getRules("");for(let r=0,n=t.length;r<n;r++)t[r](e)},eN.prototype.State=eb,eT.prototype.push=function(e,t,r){let n=new eg(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},eT.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},eT.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},eT.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&et(this.src.charCodeAt(e));e++);return e},eT.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!et(this.src.charCodeAt(--e)))return e+1;return e},eT.prototype.skipChars=function(e,t){for(let r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},eT.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},eT.prototype.getLines=function(e,t,r,n){if(e>=t)return"";let i=Array(t-e);for(let o=0,s=e;s<t;s++,o++){let e,l=0,a=this.bMarks[s],c=a;for(e=s+1<t||n?this.eMarks[s]+1:this.eMarks[s];c<e&&l<r;
3){let e=this.src.charCodeAt(c);if(et(e))9===e?l+=4-(l+this.bsCount[s])%4:l++;else if(c-a<this.tShift[s])l++;else break;c++}l>r?i[o]=Array(l-r+1).join(" ")+this.src.slice(c,e):i[o]=this.src.slice(c,e)}return i.join("")},eT.prototype.Token=eg;let eR="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",eI="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",eO=RegExp("^(?:"+eR+"|"+eI+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),ez=RegExp("^(?:"+eR+"|"+eI+")"),eB=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(ez.source+"\\s*$"),/^$/,!1]],eP=[["table",function(e,t,r,n){let i;if(t+2>r)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;let l=e.src.charCodeAt(s++);if(124!==l&&45!==l&&58!==l||s>=e.eMarks[o])return!1;let a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a&&!et(a)||45===l&&et(a))return!1;for(;s<e.eMarks[o];){let t=e.src.charCodeAt(s);if(124!==t&&45!==t&&58!==t&&!et(t))return!1;s++}let c=ej(e,t+1),u=c.split("|"),d=[];for(let e=0;e<u.length;e++){let t=u[e].trim();if(!t)if(0===e||e===u.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?d.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(c=ej(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(u=e_(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();let h=u.length;if(0===h||h!==d.length)return!1;if(n)return!0;let p=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),g=[t,0];m.map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<u.length;t++){let r=e.push("th_open","th",1);d[t]&&(r.attrs=[["style","text-align:"+d[t]]]);let n=e.push("inline","",0);n.content=u[t].trim(),n.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b=0;for(o=t+2;o<r&&!(e.sCount[o]<e.blkIndent);o++){let n=!1;for(let t=0,i=f.length;t<i;t++)if(f[t](e,o,r,!0)){n=!0;break}if(n||!(c=ej(e,o).trim())||e.sCount[o]-e.blkIndent>=4||((u=e_(c)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),(b+=h-u.length)>65536))break;o===t+2&&(e.push("tbody_open","tbody",1).map=i=[t+2,0]),e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<h;t++){let r=e.push("td_open","td",1);d[t]&&(r.attrs=[["style","text-align:"+d[t]]]);let n=e.push("inline","",0);n.content=u[t]?u[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return i&&(e.push("tbody_close","tbody",-1),i[1]=o),e.push("table_close","table",-1),g[1]=o,e.parentType=p,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,r){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,i=n;for(;n<r;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){i=++n;continue}break}e.line=i;let o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;let s=e.src.charCodeAt(i);if(126!==s&&96!==s)return!1;let l=i,a=(i=e.skipChars(i,s))-l;if(a<3)return!1;let c=e.src.slice(l,i),u=e.src.slice(i,o);if(96===s&&u.indexOf(String.fromCharCode(s))>=0)return!1;if(n)return!0;let d=t,h=!1;for(;!(++d>=r)&&(!((i=l=e.bMarks[d]+e.tShift[d])<(o=e.eMarks[d]))||!(e.sCount[d]<e.blkIndent));){;
3if(!(e.src.charCodeAt(i)!==s||e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,s))-l<a)&&!((i=e.skipSpaces(i))<o)){h=!0;break}}a=e.sCount[t],e.line=d+ +!!h;let p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,a,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,r,n){let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],l=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(o))return!1;if(n)return!0;let a=[],c=[],u=[],d=[],h=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f=!1;for(i=t;i<r;i++){let t=e.sCount[i]<e.blkIndent;if((o=e.bMarks[i]+e.tShift[i])>=(s=e.eMarks[i]))break;if(62===e.src.charCodeAt(o++)&&!t){let t,r,n=e.sCount[i]+1;32===e.src.charCodeAt(o)?(o++,n++,r=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[i]+n)%4==3?(o++,n++,r=!1):r=!0):t=!1;let l=n;for(a.push(e.bMarks[i]),e.bMarks[i]=o;o<s;){let t=e.src.charCodeAt(o);if(et(t))9===t?l+=4-(l+e.bsCount[i]+ +!!r)%4:l++;else break;o++}f=o>=s,c.push(e.bsCount[i]),e.bsCount[i]=e.sCount[i]+1+ +!!t,u.push(e.sCount[i]),e.sCount[i]=l-n,d.push(e.tShift[i]),e.tShift[i]=o-e.bMarks[i];continue}if(f)break;let n=!1;for(let t=0,o=h.length;t<o;t++)if(h[t](e,i,r,!0)){n=!0;break}if(n){e.lineMax=i,0!==e.blkIndent&&(a.push(e.bMarks[i]),c.push(e.bsCount[i]),d.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]-=e.blkIndent);break}a.push(e.bMarks[i]),c.push(e.bsCount[i]),d.push(e.tShift[i]),u.push(e.sCount[i]),e.sCount[i]=-1}let m=e.blkIndent;e.blkIndent=0;let g=e.push("blockquote_open","blockquote",1);g.markup=">";let b=[t,0];g.map=b,e.md.block.tokenize(e,t,i),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=l,e.parentType=p,b[1]=e.line;for(let r=0;r<d.length;r++)e.bMarks[r+t]=a[r],e.tShift[r+t]=d[r],e.sCount[r+t]=u[r],e.bsCount[r+t]=c[r];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,r,n){let i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t],s=e.src.charCodeAt(o++);if(42!==s&&45!==s&&95!==s)return!1;let l=1;for(;o<i;){let t=e.src.charCodeAt(o++);if(t!==s&&!et(t))return!1;t===s&&l++}if(l<3)return!1;if(n)return!0;e.line=t+1;let a=e.push("hr","hr",0);return a.map=[t,e.line],a.markup=Array(l+1).join(String.fromCharCode(s)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,r,n){let i,o,s,l,a,c,u,d=t,h=!0;if(e.sCount[d]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[d]-e.listIndent>=4&&e.sCount[d]<e.blkIndent)return!1;let p=!1;if(n&&"paragraph"===e.parentType&&e.sCount[d]>=e.blkIndent&&(p=!0),(u=eL(e,d))>=0){if(a=!0,s=e.bMarks[d]+e.tShift[d],c=Number(e.src.slice(s,u-1)),p&&1!==c)return!1}else{if(!((u=eF(e,d))>=0))return!1;a=!1}if(p&&e.skipSpaces(u)>=e.eMarks[d])return!1;if(n)return!0;let f=e.src.charCodeAt(u-1),m=e.tokens.length;a?(l=e.push("ordered_list_open","ol",1),1!==c&&(l.attrs=[["start",c]])):l=e.push("bullet_list_open","ul",1);let g=[d,0];l.map=g,l.markup=String.fromCharCode(f);let b=!1,y=e.md.block.ruler.getRules("list"),v=e.parentType;for(e.parentType="list";d<r;){let t;o=u,i=e.eMarks[d];let n=e.sCount[d]+u-(e.bMarks[d]+e.tShift[d]),c=n;for(;o<i;){let t=e.src.charCodeAt(o);if(9===t)c+=4-(c+e.bsCount[d])%4;else if(32===t)c++;else break;o++}let p=o;(t=p>=i?1:c-n)>4&&(t=1);let m=n+t;(l=e.push("list_item_open","li",1)).markup=String.fromCharCode(f);let g=[d,0];l.map=g,a&&(l.info=e.src.slice(s,u-1));let v=e.tight,x=e.tShift[d],k=e.sCount[d],w=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[d]=p-e.bMarks[d],e.sCount[d]=c,p>=i&&e.isEmpty(d+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,d,r,!0),(!e.tight||b)&&(h=!1),b=e.line-d>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[d]=x,e.sCount[d]=k,e.tight=v,(l=e.push("list_item_close","li",-1)).markup=String.fromCharCode(f),d=e.line,g[1]=d,d>=r||e.sCount[d]<e.blkIndent||e.sCount[d]-e.blkIndent>=4)break;let C=!1;for(let t=0,n=y.length;t<n;t++)if(y[t](e,d,r,!0)){C=!0;break}if(C)break;if(a){if((u=eL(e,d))<0)break;s=e.bMarks[d]+e.tShift[d]}else if((u=eF(e,d))<0)break;
3if(f!==e.src.charCodeAt(u-1))break}return(l=a?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),g[1]=d,e.line=d,e.parentType=v,h&&function(e,t){let r=e.level+2;for(let n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===r&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,r,n){let i,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],l=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(o))return!1;function a(t){let r=e.lineMax;if(t>=r||e.isEmpty(t))return null;let n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){let n=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let i=0,s=n.length;i<s;i++)if(n[i](e,t,r,!0)){o=!0;break}if(e.parentType=i,o)return null}let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(i,o+1)}let c=e.src.slice(o,s+1);s=c.length;let u=-1;for(o=1;o<s;o++){let e=c.charCodeAt(o);if(91===e)return!1;if(93===e){u=o;break}if(10===e){let e=a(l);null!==e&&(c+=e,s=c.length,l++)}else if(92===e&&++o<s&&10===c.charCodeAt(o)){let e=a(l);null!==e&&(c+=e,s=c.length,l++)}}if(u<0||58!==c.charCodeAt(u+1))return!1;for(o=u+2;o<s;o++){let e=c.charCodeAt(o);if(10===e){let e=a(l);null!==e&&(c+=e,s=c.length,l++)}else if(et(e));else break}let d=e.md.helpers.parseLinkDestination(c,o,s);if(!d.ok)return!1;let h=e.md.normalizeLink(d.str);if(!e.md.validateLink(h))return!1;let p=o=d.pos,f=l,m=o;for(;o<s;o++){let e=c.charCodeAt(o);if(10===e){let e=a(l);null!==e&&(c+=e,s=c.length,l++)}else if(et(e));else break}let g=e.md.helpers.parseLinkTitle(c,o,s);for(;g.can_continue;){let t=a(l);if(null===t)break;c+=t,o=s,s=c.length,l++,g=e.md.helpers.parseLinkTitle(c,o,s,g)}for(o<s&&m!==o&&g.ok?(i=g.str,o=g.pos):(i="",o=p,l=f);o<s&&et(c.charCodeAt(o));)o++;if(o<s&&10!==c.charCodeAt(o)&&i)for(i="",o=p,l=f;o<s&&et(c.charCodeAt(o));)o++;if(o<s&&10!==c.charCodeAt(o))return!1;let b=es(c.slice(1,u));return!!b&&(!!n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:i,href:h}),e.line=l,!0))}],["html_block",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(i))return!1;let s=e.src.slice(i,o),l=0;for(;l<eB.length&&!eB[l][0].test(s);l++);if(l===eB.length)return!1;if(n)return eB[l][2];let a=t+1,c=eB[l][1].test("");if(!eB[l][1].test(s)){for(;a<r&&(!(e.sCount[a]<e.blkIndent)||!c&&e.isEmpty(a));a++)if(i=e.bMarks[a]+e.tShift[a],o=e.eMarks[a],s=e.src.slice(i,o),eB[l][1].test(s)){0!==s.length&&a++;break}}e.line=a;let u=e.push("html_block","",0);return u.map=[t,a],u.content=e.getLines(t,a,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(i);if(35!==s||i>=o)return!1;let l=1;for(s=e.src.charCodeAt(++i);35===s&&i<o&&l<=6;)l++,s=e.src.charCodeAt(++i);if(l>6||i<o&&!et(s))return!1;if(n)return!0;o=e.skipSpacesBack(o,i);let a=e.skipCharsBack(o,35,i);a>i&&et(e.src.charCodeAt(a-1))&&(o=a),e.line=t+1;let c=e.push("heading_open","h"+String(l),1);c.markup="########".slice(0,l),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=ea(e.src.slice(i,o)),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(l),-1).markup="########".slice(0,l),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,r){let n,i=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.parentType;e.parentType="paragraph";let s=0,l=t+1;for(;l<r&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let t=e.bMarks[l]+e.tShift[l],r=e.eMarks[l];if(t<r&&(45===(n=e.src.charCodeAt(t))||61===n)&&(t=e.skipChars(t,n),(t=e.skipSpaces(t))>=r)){s=61===n?1:2;break}}if(e.sCount[l]<0)continue;let t=!1;for(let n=0,o=i.length;n<o;n++)if(i[n](e,l,r,!0)){t=!0;break}if(t)break}if(!s)return e.parentType=o,!1;let a=ea(e.getLines(t,l,e.blkIndent,!1));e.line=l+1;let c=e.push("heading_open","h"+String(s),1);c.markup=String.fromCharCode(n),c.map=[t,e.line];let u=e.push("inline","",0);return u.content=a,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(s),-1).markup=String.fromCharCode(n),e.parentType=
3o,!0}],["paragraph",function(e,t,r){let n=e.md.block.ruler.getRules("paragraph"),i=e.parentType,o=t+1;for(e.parentType="paragraph";o<r&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let t=!1;for(let i=0,s=n.length;i<s;i++)if(n[i](e,o,r,!0)){t=!0;break}if(t)break}let s=ea(e.getLines(t,o,e.blkIndent,!1));e.line=o,e.push("paragraph_open","p",1).map=[t,e.line];let l=e.push("inline","",0);return l.content=s,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function e$(){this.ruler=new em;for(let e=0;e<eP.length;e++)this.ruler.push(eP[e][0],eP[e][1],{alt:(eP[e][2]||[]).slice()})}function eH(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}e$.prototype.tokenize=function(e,t,r){let n=this.ruler.getRules(""),i=n.length,o=e.md.options.maxNesting,s=t,l=!1;for(;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r)&&!(e.sCount[s]<e.blkIndent));){if(e.level>=o){e.line=r;break}let t=e.line,a=!1;for(let o=0;o<i;o++)if(a=n[o](e,s,r,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!a)throw Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),(s=e.line)<r&&e.isEmpty(s)&&(l=!0,e.line=++s)}},e$.prototype.parse=function(e,t,r,n){if(!e)return;let i=new this.State(e,t,r,n);this.tokenize(i,i.line,i.lineMax)},e$.prototype.State=eT,eH.prototype.pushPending=function(){let e=new eg("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},eH.prototype.push=function(e,t,r){this.pending&&this.pushPending();let n=new eg(e,t,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},eH.prototype.scanDelims=function(e,t){let r,n=this.posMax,i=this.src.charCodeAt(e);if(0===e)r=32;else if(1===e)(63488&(r=this.src.charCodeAt(0)))==55296&&(r=65533);else if((64512&(r=this.src.charCodeAt(e-1)))==56320){let t=this.src.charCodeAt(e-2);r=(64512&t)==55296?65536+(t-55296<<10)+(r-56320):65533}else(64512&r)==55296&&(r=65533);let o=e;for(;o<n&&this.src.charCodeAt(o)===i;)o++;let s=o-e,l=o<n?this.src.charCodeAt(o):32;if((64512&l)==55296){let e=this.src.charCodeAt(o+1);l=(64512&e)==56320?65536+(l-55296<<10)+(e-56320):65533}else(64512&l)==56320&&(l=65533);let a=eo(r)||ei(r),c=eo(l)||ei(l),u=er(r),d=er(l),h=!d&&(!c||u||a),p=!u&&(!a||d||c);return{can_open:h&&(t||!p||a),can_close:p&&(t||!h||c),length:s}},eH.prototype.Token=eg;let eq=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,eK=[];for(let e=0;e<256;e++)eK.push(0);function eV(e,t){let r,n=[],i=t.length;for(let o=0;o<i;o++){let i=t[o];if(126!==i.marker||-1===i.end)continue;let s=t[i.end];(r=e.tokens[i.token]).type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",(r=e.tokens[s.token]).type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&n.push(s.token-1)}for(;n.length;){let t=n.pop(),i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;t!==--i&&(r=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=r)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){eK[e.charCodeAt(0)]=1});let eU={tokenize:function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||126!==n)return!1;let i=e.scanDelims(e.pos,!0),o=i.length,s=String.fromCharCode(n);if(o<2)return!1;o%2&&(e.push("text","",0).content=s,o--);for(let t=0;t<o;t+=2)e.push("text","",0).content=s+s,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){let t=e.tokens_meta,r=e.tokens_meta.length;eV(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&eV(e,t[n].delimiters)}};function eW(e,t){let r=t.length;for(let n=r-1;n>=0;n--){let r=t[n];if(95!==r.marker&&42!==r.marker||-1===r.end)continue;let i=t[r.end],o=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,s=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=o?"strong_open":"em_open",l.tag=o?"strong":"em",l.nesting=1,l.markup=o?s+s:s,l.content="";let a=e.tokens[i.token];a.type=o?"strong_close":"em_close",a.tag=o?"strong":"em",a.nesting=-1,a.markup=o?s+s:s,a.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}
3let eJ={tokenize:function(e,t){let r=e.pos,n=e.src.charCodeAt(r);if(t||95!==n&&42!==n)return!1;let i=e.scanDelims(e.pos,42===n);for(let t=0;t<i.length;t++)e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0},postProcess:function(e){let t=e.tokens_meta,r=e.tokens_meta.length;eW(e,e.delimiters);for(let n=0;n<r;n++)t[n]&&t[n].delimiters&&eW(e,t[n].delimiters)}},eG=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,eZ=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,eY=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,eX=/^&([a-z][a-z0-9]{1,31});/i;function eQ(e){let t={},r=e.length;if(!r)return;let n=0,i=-2,o=[];for(let s=0;s<r;s++){let r=e[s];if(o.push(0),(e[n].marker!==r.marker||i!==r.token-1)&&(n=s),i=r.token,r.length=r.length||0,!r.close)continue;t.hasOwnProperty(r.marker)||(t[r.marker]=[-1,-1,-1,-1,-1,-1]);let l=t[r.marker][3*!!r.open+r.length%3],a=n-o[n]-1,c=a;for(;a>l;a-=o[a]+1){let t=e[a];if(t.marker===r.marker&&t.open&&t.end<0){let n=!1;if((t.close||r.open)&&(t.length+r.length)%3==0&&(t.length%3!=0||r.length%3!=0)&&(n=!0),!n){let n=a>0&&!e[a-1].open?o[a-1]+1:0;o[s]=s-a+n,o[a]=n,r.open=!1,t.end=s,t.close=!1,c=-1,i=-2;break}}}-1!==c&&(t[r.marker][3*!!r.open+(r.length||0)%3]=c)}}let e0=[["text",function(e,t){let r=e.pos;for(;r<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(r));)r++;return r!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let r=e.pos;if(r+3>e.posMax||58!==e.src.charCodeAt(r)||47!==e.src.charCodeAt(r+1)||47!==e.src.charCodeAt(r+2))return!1;let n=e.pending.match(eq);if(!n)return!1;let i=n[1],o=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!o)return!1;let s=o.url;if(s.length<=i.length)return!1;let l=s.length;for(;l>0&&42===s.charCodeAt(l-1);)l--;l!==s.length&&(s=s.slice(0,l));let a=e.md.normalizeLink(s);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);let t=e.push("link_open","a",1);t.attrs=[["href",a]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);let r=e.push("link_close","a",-1);r.markup="linkify",r.info="auto"}return e.pos+=s.length-i.length,!0}],["newline",function(e,t){let r=e.pos;if(10!==e.src.charCodeAt(r))return!1;let n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let t=n-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r<i&&et(e.src.charCodeAt(r));)r++;return e.pos=r,!0}],["escape",function(e,t){let r=e.pos,n=e.posMax;if(92!==e.src.charCodeAt(r)||++r>=n)return!1;let i=e.src.charCodeAt(r);if(10===i){for(t||e.push("hardbreak","br",0),r++;r<n&&et(i=e.src.charCodeAt(r));)r++;return e.pos=r,!0}let o=e.src[r];if(i>=55296&&i<=56319&&r+1<n){let t=e.src.charCodeAt(r+1);t>=56320&&t<=57343&&(o+=e.src[r+1],r++)}let s="\\"+o;if(!t){let t=e.push("text_special","",0);i<256&&0!==eK[i]?t.content=o:t.content=s,t.markup=s,t.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,t){let r,n=e.pos;if(96!==e.src.charCodeAt(n))return!1;let i=n;n++;let o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;let s=e.src.slice(i,n),l=s.length;if(e.backticksScanned&&(e.backticks[l]||0)<=i)return t||(e.pending+=s),e.pos+=l,!0;let a=n;for(;-1!==(r=e.src.indexOf("`",a));){for(a=r+1;a<o&&96===e.src.charCodeAt(a);)a++;let i=a-r;if(i===l){if(!t){let t=e.push("code_inline","code",0);t.markup=s,t.content=e.src.slice(n,r).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[i]=r}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=l,!0}],["strikethrough",eU.tokenize],["emphasis",eJ.tokenize],["link",function(e,t){let r,n,i,o,s="",l="",a=e.pos,c=!0;
3if(91!==e.src.charCodeAt(e.pos))return!1;let u=e.pos,d=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let f=p+1;if(f<d&&40===e.src.charCodeAt(f)){for(c=!1,f++;f<d&&(et(r=e.src.charCodeAt(f))||10===r);f++);if(f>=d)return!1;if(a=f,(i=e.md.helpers.parseLinkDestination(e.src,f,e.posMax)).ok){for(s=e.md.normalizeLink(i.str),e.md.validateLink(s)?f=i.pos:s="",a=f;f<d&&(et(r=e.src.charCodeAt(f))||10===r);f++);if(i=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<d&&a!==f&&i.ok)for(l=i.str,f=i.pos;f<d&&(et(r=e.src.charCodeAt(f))||10===r);f++);}(f>=d||41!==e.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===e.env.references)return!1;if(f<d&&91===e.src.charCodeAt(f)?(a=f+1,(f=e.md.helpers.parseLinkLabel(e,f))>=0?n=e.src.slice(a,f++):f=p+1):f=p+1,n||(n=e.src.slice(h,p)),!(o=e.env.references[es(n)]))return e.pos=u,!1;s=o.href,l=o.title}if(!t){e.pos=h,e.posMax=p;let t=e.push("link_open","a",1),r=[["href",s]];t.attrs=r,l&&r.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=d,!0}],["image",function(e,t){let r,n,i,o,s,l,a,c,u="",d=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let p=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if((o=f+1)<h&&40===e.src.charCodeAt(o)){for(o++;o<h&&(et(r=e.src.charCodeAt(o))||10===r);o++);if(o>=h)return!1;for(c=o,(l=e.md.helpers.parseLinkDestination(e.src,o,e.posMax)).ok&&(u=e.md.normalizeLink(l.str),e.md.validateLink(u)?o=l.pos:u=""),c=o;o<h&&(et(r=e.src.charCodeAt(o))||10===r);o++);if(l=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&c!==o&&l.ok)for(a=l.str,o=l.pos;o<h&&(et(r=e.src.charCodeAt(o))||10===r);o++);else a="";if(o>=h||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o<h&&91===e.src.charCodeAt(o)?(c=o+1,(o=e.md.helpers.parseLinkLabel(e,o))>=0?i=e.src.slice(c,o++):o=f+1):o=f+1,i||(i=e.src.slice(p,f)),!(s=e.env.references[es(i)]))return e.pos=d,!1;u=s.href,a=s.title}if(!t){n=e.src.slice(p,f);let t=[];e.md.inline.parse(n,e.md,e.env,t);let r=e.push("image","img",0),i=[["src",u],["alt",""]];r.attrs=i,r.children=t,r.content=n,a&&i.push(["title",a])}return e.pos=o,e.posMax=h,!0}],["autolink",function(e,t){let r=e.pos;if(60!==e.src.charCodeAt(r))return!1;let n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;let t=e.src.charCodeAt(r);if(60===t)return!1;if(62===t)break}let o=e.src.slice(n+1,r);if(eZ.test(o)){let r=e.md.normalizeLink(o);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=o.length+2,!0}if(eG.test(o)){let r=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(r))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",r]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;let r=e.posMax,n=e.pos;if(60!==e.src.charCodeAt(n)||n+2>=r)return!1;let i=e.src.charCodeAt(n+1);if(33!==i&&63!==i&&47!==i&&!function(e){let t=32|e;return t>=97&&t<=122}(i))return!1;let o=e.src.slice(n).match(eO);if(!o)return!1;if(!t){var s,l;let t=e.push("html_inline","",0);t.content=o[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,l=t.content,/^<\/a\s*>/i.test(l)&&e.linkLevel--}return e.pos+=o[0].length,!0}],["entity",function(e,t){let r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r)||r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){let n=e.src.slice(r).match(eY);if(n){if(!t){let t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=e.push("text_special","",0);r.content=$(t)?H(t):H(65533),r.markup=n[0],r.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(r).match(eX);if(n){let r=(0,R.hl)(n[0]);if(r!==n[0]){if(!t){let t=e.push("text_special","",0);t.content=r,t.markup=n[0],t.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],e1=[["balance_pairs",function(e){let t=e.tokens_meta,r=e.tokens_meta.length;eQ(e.delimiters);for(let e=0;e<r;e++)t[e]&&t[e].delimiters&&eQ(t[e].delimiters)}],["strikethrough",eU.postProcess],["emphasis",eJ.postProcess],["fragments_join",function(e){let t,r,n=0,i=e.tokens,o=e.tokens.length;for(t=r=0;t<o;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}]];function e2(){this.ruler=new em;
3for(let e=0;e<e0.length;e++)this.ruler.push(e0[e][0],e0[e][1]);this.ruler2=new em;for(let e=0;e<e1.length;e++)this.ruler2.push(e1[e][0],e1[e][1])}function e5(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function e3(e){return Object.prototype.toString.call(e)}function e4(e){return"[object Function]"===e3(e)}function e6(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}e2.prototype.skipToken=function(e){let t=e.pos,r=this.ruler.getRules(""),n=r.length,i=e.md.options.maxNesting,o=e.cache;if(void 0!==o[t]){e.pos=o[t];return}let s=!1;if(e.level<i){for(let i=0;i<n;i++)if(e.level++,s=r[i](e,!0),e.level--,s){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!s&&e.pos++,o[t]=e.pos},e2.prototype.tokenize=function(e){let t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos<n;){let o=e.pos,s=!1;if(e.level<i){for(let n=0;n<r;n++)if(s=t[n](e,!1)){if(o>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},e2.prototype.parse=function(e,t,r,n){let i=new this.State(e,t,r,n);this.tokenize(i);let o=this.ruler2.getRules(""),s=o.length;for(let e=0;e<s;e++)o[e](i)},e2.prototype.State=eH;let e8={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},e9={"http:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.http||(r.re.http=RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n))?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){let n=e.slice(t);return(r.re.no_http||(r.re.no_http=RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){let n=e.slice(t);return(r.re.mailto||(r.re.mailto=RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n))?n.match(r.re.mailto)[0].length:0}}},e7="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|ÑÑ".split("|");function te(){return function(e,t){t.normalize(e)}}function tt(e){let t=e.re=function(e){let t={};e=e||{},t.src_Any=j.source,t.src_Cc=_.source,t.src_Z=L.source,t.src_P=N.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let r="[><ï½]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:
3/\\-_@])(?:[$+<=>^`|ï½]|"+t.src_ZPCc+"))((?![$+<=>^`|ï½])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|ï½]|"+t.src_ZPCc+"))((?![$+<=>^`|ï½])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),r=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(n(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(n(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(n(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");let i=[];function o(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let r=e.__schemas__[t];if(null===r)return;let n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===e3(r)){if("[object RegExp]"===e3(r.validate)){var s;s=r.validate,n.validate=function(e,t){let r=e.slice(t);return s.test(r)?r.match(s)[0].length:0}}else e4(r.validate)?n.validate=r.validate:o(t,r);e4(r.normalize)?n.normalize=r.normalize:r.normalize?o(t,r):n.normalize=te();return}if("[object String]"===e3(r))return void i.push(t);o(t,r)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:te()};let s=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(e6).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><ï½]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><ï½]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function tr(e,t,r,n){let i=e.slice(r,n);this.schema=t.toLowerCase(),this.index=r,this.lastIndex=n,this.raw=i,this.text=i,this.url=i}function tn(e,t){if(!(this instanceof tn))return new tn(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||e8.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=e5({},e8,t),this.__schemas__=e5({},e9,e),this.__compiled__={},this.__tlds__=e7,this.__tlds_replaced__=!1,this.re={},tt(this)}tn.prototype.add=function(e,t){return this.__schemas__[e]=t,tt(this),this},tn.prototype.set=function(e){return this.__opts__=e5(this.__opts__,e),this},tn.prototype.test=function(e){let t,r;if(!e.length)return!1;if(this.re.schema_test.test(e)){for((r=this.re.schema_search).lastIndex=0;null!==(t=r.exec(e));)if(this.testSchemaAt(e,t[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&null!==e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==e.match(this.re.email_fuzzy))},tn.prototype.pretest=function(e){return this.re.pretest.test(e)},tn.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},tn.prototype.match=function(e){let t,r,n,i=[],o=[],s=[],l=[];function a(e,t){return e?t?e.index!==t.index?e.index<t.index?e:t:e.lastIndex>=t.lastIndex?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for((n=this.re.schema_search).lastIndex=0;null!==(t=n.exec(e));)(r=this.testSchemaAt(e,t[2],n.lastIndex))&&o.push({schema:t[2],index:t.index+t[1].length,lastIndex:t.index+t[0].length+r});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for((n=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global).lastIndex=0;null!==(t=n.exec(e));)s.push({schema:"",index:t.index+t[1].length,lastIndex:t.index+t[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for((n=this.re.email_fuzzy_global).lastIndex=0;null!==(t=n.exec(e));)l.push({schema:"mailto:",index:t.index+t[1].length,lastIndex:t.index+t[0].length});let c=[0,0,0],u=0;for(;;){let t=[o[c[0]],l[c[1]],s[c[2]]],r=a(a(t[0],t[1]),t[2]);if(!r)break;
3if(r===t[0]?c[0]++:r===t[1]?c[1]++:c[2]++,r.index<u)continue;let n=new tr(e,r.schema,r.index,r.lastIndex);this.__compiled__[n.schema].normalize(n,this),i.push(n),u=r.lastIndex}return i.length?i:null},tn.prototype.matchAtStart=function(e){if(!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let r=this.testSchemaAt(e,t[2],t[0].length);if(!r)return null;let n=new tr(e,t[2],t.index+t[1].length,t.index+t[0].length+r);return this.__compiled__[n.schema].normalize(n,this),n},tn.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,r){return e!==r[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),tt(this),this},tn.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},tn.prototype.onCompile=function(){};let ti=/^xn--/,to=/[^\0-\x7F]/,ts=/[\x2E\u3002\uFF0E\uFF61]/g,tl={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ta=Math.floor,tc=String.fromCharCode;function tu(e){throw RangeError(tl[e])}function td(e,t){let r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+(function(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r})((e=e.replace(ts,".")).split("."),t).join(".")}let th=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},tp=function(e,t,r){let n=0;for(e=r?ta(e/700):e>>1,e+=ta(e/t);e>455;n+=36)e=ta(e/35);return ta(n+36*e/(e+38))},tf=function(e){let t=[],r=e.length,n=0,i=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let r=0;r<s;++r)e.charCodeAt(r)>=128&&tu("not-basic"),t.push(e.charCodeAt(r));for(let a=s>0?s+1:0;a<r;){let s=n;for(let t=1,i=36;;i+=36){var l;a>=r&&tu("invalid-input");let s=(l=e.charCodeAt(a++))>=48&&l<58?26+(l-48):l>=65&&l<91?l-65:l>=97&&l<123?l-97:36;s>=36&&tu("invalid-input"),s>ta((0x7fffffff-n)/t)&&tu("overflow"),n+=s*t;let c=i<=o?1:i>=o+26?26:i-o;if(s<c)break;let u=36-c;t>ta(0x7fffffff/u)&&tu("overflow"),t*=u}let c=t.length+1;o=tp(n-s,c,0==s),ta(n/c)>0x7fffffff-i&&tu("overflow"),i+=ta(n/c),n%=c,t.splice(n++,0,i)}return String.fromCodePoint(...t)},tm=function(e){let t=[],r=(e=function(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let n=e.charCodeAt(r++);(64512&n)==56320?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}(e)).length,n=128,i=0,o=72;for(let r of e)r<128&&t.push(tc(r));let s=t.length,l=s;for(s&&t.push("-");l<r;){let r=0x7fffffff;for(let t of e)t>=n&&t<r&&(r=t);let a=l+1;for(let c of(r-n>ta((0x7fffffff-i)/a)&&tu("overflow"),i+=(r-n)*a,n=r,e))if(c<n&&++i>0x7fffffff&&tu("overflow"),c===n){let e=i;for(let r=36;;r+=36){let n=r<=o?1:r>=o+26?26:r-o;if(e<n)break;let i=e-n,s=36-n;t.push(tc(th(n+i%s,0))),e=ta(i/s)}t.push(tc(th(e,0))),o=tp(i,a,l===s),i=0,++l}++i,++n}return t.join("")},tg={toASCII:function(e){return td(e,function(e){return to.test(e)?"xn--"+tm(e):e})},toUnicode:function(e){return td(e,function(e){return ti.test(e)?tf(e.slice(4).toLowerCase()):e})}},tb={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"ââââ",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},ty=/^(vbscript|javascript|file|data):/,tv=/^data:image\/(gif|png|jpeg|webp);/;function tx(e){let t=e.trim().toLowerCase();return!ty.test(t)||tv.test(t)}let tk=["http:","https:","mailto:"];function tw(e){let t=D(e,!0);if(t.hostname&&(!t.protocol||tk.indexOf(t.protocol)>=0))try{t.hostname=tg.toASCII(t.hostname)}catch(e){}return g(b(t))}function tC(e){let t=D(e,!0);if(t.hostname&&(!t.protocol||tk.indexOf(t.protocol)>=0))try{t.hostname=tg.toUnicode(t.hostname)}catch(e){}return p(b(t),p.defaultChars+"%")}function tE(e,t){if(!(this instanceof tE))return new tE(e,t);t||I(e)||(t=e||{},e="default"),this.inline=new e2,this.block=new e$,this.core=new eN,this.renderer=new ef,this.linkify=new tn,this.validateLink=tx,this.normalizeLink=tw,this.normalizeLinkText=tC,this.utils=o,this.helpers=B({},s),this.options={},this.configure(e),t&&this.set(t)}tE.prototype.set=function(e){return B(this.options,e),this},tE.prototype.configure=function(e){let t=this;if(I(e)){let t=e;if(!(e=tb[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEac
3h(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},tE.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},tE.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(e){return 0>r.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},tE.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},tE.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},tE.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},tE.prototype.parseInline=function(e,t){let r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},tE.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};let tA=new u.Sj({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}});class tS{constructor(e,t){this.schema=e,this.tokenHandlers=t,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:u.CU.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;let t=this.top(),r=t.content,n=r[r.length-1],i=this.schema.text(e,t.marks),o;
3n&&(o=function(e,t){if(e.isText&&t.isText&&u.CU.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}(n,i))?r[r.length-1]=o:r.push(i)}openMark(e){let t=this.top();t.marks=e.addToSet(t.marks)}closeMark(e){let t=this.top();t.marks=e.removeFromSet(t.marks)}parseTokens(e){for(let t=0;t<e.length;t++){let r=e[t],n=this.tokenHandlers[r.type];if(!n)throw Error("Token type `"+r.type+"` not supported by Markdown parser");n(this,r,e,t)}}addNode(e,t,r){let n=this.top(),i=e.createAndFill(t,r,n?n.marks:[]);return i?(this.push(i),i):null}openNode(e,t){this.stack.push({type:e,attrs:t,content:[],marks:u.CU.none})}closeNode(){let e=this.stack.pop();return this.addNode(e.type,e.attrs,e.content)}}function tM(e,t,r,n){return e.getAttrs?e.getAttrs(t,r,n):e.attrs instanceof Function?e.attrs(t):e.attrs}function tD(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function tN(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function tT(){}class tj{constructor(e,t,r){this.schema=e,this.tokenizer=t,this.tokens=r,this.tokenHandlers=function(e,t){let r=Object.create(null);for(let n in t){let i=t[n];if(i.block){let t=e.nodeType(i.block);tD(i,n)?r[n]=(e,r,n,o)=>{e.openNode(t,tM(i,r,n,o)),e.addText(tN(r.content)),e.closeNode()}:(r[n+"_open"]=(e,r,n,o)=>e.openNode(t,tM(i,r,n,o)),r[n+"_close"]=e=>e.closeNode())}else if(i.node){let t=e.nodeType(i.node);r[n]=(e,r,n,o)=>e.addNode(t,tM(i,r,n,o))}else if(i.mark){let t=e.marks[i.mark];tD(i,n)?r[n]=(e,r,n,o)=>{e.openMark(t.create(tM(i,r,n,o))),e.addText(tN(r.content)),e.closeMark(t)}:(r[n+"_open"]=(e,r,n,o)=>e.openMark(t.create(tM(i,r,n,o))),r[n+"_close"]=e=>e.closeMark(t))}else if(i.ignore)tD(i,n)?r[n]=tT:(r[n+"_open"]=tT,r[n+"_close"]=tT);else throw RangeError("Unrecognized parsing spec "+JSON.stringify(i))}return r.text=(e,t)=>e.addText(t.content),r.inline=(e,t)=>e.parseTokens(t.children),r.softbreak=r.softbreak||(e=>e.addText(" ")),r}(e,r)}parse(e,t={}){let r=new tS(this.schema,this.tokenHandlers),n;r.parseTokens(this.tokenizer.parse(e,t));do n=r.closeNode();while(r.stack.length);return n||this.schema.topNodeType.createAndFill()}}function t_(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden;return!1}new tj(tA,tE("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,r)=>({tight:t_(t,r)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,r)=>({order:+e.attrGet("start")||1,tight:t_(t,r)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}});let tF={open:"",close:"",mixable:!0};class tL{constructor(e,t,r={}){this.nodes=e,this.marks=t,this.options=r}serialize(e,t={}){t=Object.assign({},this.options,t);let r=new tO(this.nodes,this.marks,t);return r.renderContent(e),r.out}}let tR=new tL({blockquote(e,t){e.wrapBlock("> ",null,t,()=>e.renderContent(t))},code_block(e,t){let r=t.textContent.match(/`{3,}/gm),n=r?r.sort().slice(-1)[0]+"`":"```";e.write(n+(t.attrs.params||"")+"\n"),e.text(t.textContent,!1),e.write("\n"),e.write(n),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t,!1),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t," ",()=>(t.attrs.bullet||"*")+" ")},ordered_list(e,t){let r=t.attrs.order||1,n=String(r+t.childCount-1).length,i=e.repeat(" ",n+2);e.renderList(t,i,t=>{let i=String(r+t);return e.repeat(" ",n-i.length)+i+". "})},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,r,n){for(let i=n+1;i<r.childCount;i++)if(r.child(i).type!=t.type)return void e.write("\\\n")},text(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,t,r,n)=>(e.inAutolink=function(e,t,r){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1;let n=t.child(r);return!!n.isText&&n.text==e.attrs.href&&n.marks[n.marks.length-1]==e&&(r==t.childCount-1||!e.isInSet(t.child(r+1).marks))}(t,r,n),e.inAutolink?"<":"["),close(e,t,r,n){let{inAutolink:i}=e;return e.inAutolink=void 0,i?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,t,r,n)=>tI(r.child(n),-1),close:(e,t,r,n)=>tI(r.child(n-1),1),escape:!1}});function tI(e,t){let r=/`+/g,n,i=0;if(e.isText)for(;n=r.exec(e.text);)i=Math.max(i,n[0].length);let o=i>
30&&t>0?" `":"`";for(let e=0;e<i;e++)o+="`";return i>0&&t<0&&(o+=" "),o}class tO{constructor(e,t,r){this.nodes=e,this.marks=t,this.options=r,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let t=this.delim,r=/\s+$/.exec(t);r&&(t=t.slice(0,t.length-r[0].length));for(let r=1;r<e;r++)this.out+=t+"\n"}this.closed=null}}getMark(e){let t=this.marks[e];if(!t){if(!1!==this.options.strict)throw Error(`Mark type \`${e}\` not supported by Markdown renderer`);t=tF}return t}wrapBlock(e,t,r,n){let i=this.delim;this.write(null!=t?t:e),this.delim+=e,n(),this.delim=i,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){let r=e.split("\n");for(let e=0;e<r.length;e++)this.write(),!t&&"["==r[e][0]&&/(^|[^\\])\!$/.test(this.out)&&(this.out=this.out.slice(0,this.out.length-1)+"\\!"),this.out+=t?this.esc(r[e],this.atBlockStart):r[e],e!=r.length-1&&(this.out+="\n")}render(e,t,r){if(this.nodes[e.type.name])this.nodes[e.type.name](this,e,t,r);else if(!1!==this.options.strict)throw Error("Token type `"+e.type.name+"` not supported by Markdown renderer");else!e.type.isLeaf&&(e.type.inlineContent?this.renderInline(e):this.renderContent(e),e.isBlock&&this.closeBlock(e))}renderContent(e){e.forEach((t,r,n)=>this.render(t,e,n))}renderInline(e,t=!0){this.atBlockStart=t;let r=[],n="",i=(t,i,o)=>{let s=t?t.marks:[];t&&t.type.name===this.options.hardBreakNodeName&&(s=s.filter(t=>{if(o+1==e.childCount)return!1;let r=e.child(o+1);return t.isInSet(r.marks)&&(!r.isText||/\S/.test(r.text))}));let l=n;if(n="",t&&t.isText&&s.some(e=>{let t=this.getMark(e.type.name);return t&&t.expelEnclosingWhitespace&&!e.isInSet(r)})){let[e,n,i]=/^(\s*)(.*)$/m.exec(t.text);n&&(l+=n,(t=i?t.withText(i):null)||(s=r))}if(t&&t.isText&&s.some(t=>{let r=this.getMark(t.type.name);return r&&r.expelEnclosingWhitespace&&!this.isMarkAhead(e,o+1,t)})){let[e,i,o]=/^(.*?)(\s*)$/m.exec(t.text);o&&(n=o,(t=i?t.withText(i):null)||(s=r))}let a=s.length?s[s.length-1]:null,c=a&&!1===this.getMark(a.type.name).escape,u=s.length-!!c;r:for(let e=0;e<u;e++){let t=s[e];if(!this.getMark(t.type.name).mixable)break;for(let n=0;n<r.length;n++){let i=r[n];if(!this.getMark(i.type.name).mixable)break;if(t.eq(i)){e>n?s=s.slice(0,n).concat(t).concat(s.slice(n,e)).concat(s.slice(e+1,u)):n>e&&(s=s.slice(0,e).concat(s.slice(e+1,n)).concat(t).concat(s.slice(n,u)));continue r}}}let d=0;for(;d<Math.min(r.length,u)&&s[d].eq(r[d]);)++d;for(;d<r.length;)this.text(this.markString(r.pop(),!1,e,o),!1);if(l&&this.text(l),t){for(;r.length<u;){let t=s[r.length];r.push(t),this.text(this.markString(t,!0,e,o),!1),this.atBlockStart=!1}c&&t.isText?this.text(this.markString(a,!0,e,o)+t.text+this.markString(a,!1,e,o+1),!1):this.render(t,e,o),this.atBlockStart=!1}(null==t?void 0:t.isText)&&t.nodeSize>0&&(this.atBlockStart=!1)};e.forEach(i),i(null,0,e.childCount),this.atBlockStart=!1}renderList(e,t,r){this.closed&&this.closed.type==e.type?this.flushClose(3):this.inTightList&&this.flushClose(1);let n=void 0!==e.attrs.tight?e.attrs.tight:this.options.tightLists,i=this.inTightList;this.inTightList=n,e.forEach((i,o,s)=>{s&&n&&this.flushClose(1),this.wrapBlock(t,r(s),e,()=>this.render(i,e,s))}),this.inTightList=i}esc(e,t=!1){return e=e.replace(/[`*\\~\[\]_]/g,(t,r)=>"_"==t&&r>0&&r+1<e.length&&e[r-1].match(/\w/)&&e[r+1].match(/\w/)?t:"\\"+t),t&&(e=e.replace(/^(\+[ ]|[\-*>])/,"\\$&").replace(/^(\s*)(#{1,6})(\s|$)/,"$1\\$2$3").replace(/^(\s*\d+)\.\s/,"$1\\. ")),this.options.escapeExtraCharacters&&(e=e.replace(this.options.escapeExtraCharacters,"\\$&")),e}quote(e){let t=-1==e.indexOf('"')?'""':-1==e.indexOf("'")?"''":"()";return t[0]+e+t[1]}repeat(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r}
3markString(e,t,r,n){let i=this.getMark(e.type.name),o=t?i.open:i.close;return"string"==typeof o?o:o(this,e,r,n)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}isMarkAhead(e,t,r){for(;;t++){if(t>=e.childCount)return!1;let n=e.child(t);if(n.type.name!=this.options.hardBreakNodeName)return r.isInSet(n.marks);t++}}}var tz=r(19918),tB=r(51876),tP=Object.defineProperty,t$=(e,t,r)=>(((e,t,r)=>t in e?tP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r);let tH=c.YY.create({name:"markdownTightLists",addOptions:()=>({tight:!0,tightClass:"tight",listTypes:["bulletList","orderedList"]}),addGlobalAttributes(){return[{types:this.options.listTypes,attributes:{tight:{default:this.options.tight,parseHTML:e=>"true"===e.getAttribute("data-tight")||!e.querySelector("p"),renderHTML:e=>({class:e.tight?this.options.tightClass:null,"data-tight":e.tight?"true":null})}}}]},addCommands(){var e=this;return{toggleTight:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return r=>{let{editor:n,commands:i}=r;return e.options.listTypes.some(e=>(function(e){if(!n.isActive(e))return!1;let r=n.getAttributes(e);return i.updateAttributes(e,{tight:null!=t?t:!(null!=r&&r.tight)})})(e))}}}}}),tq=tE();function tK(e,t){return tq.inline.State.prototype.scanDelims.call({src:e,posMax:e.length}),new tq.inline.State(e,null,null,[]).scanDelims(t,!0)}function tV(e,t,r,n){let i=e.substring(0,r)+e.substring(r+t.length);return i.substring(0,r+n)+t+i.substring(r+n)}class tU extends tO{constructor(e,t,r){super(e,t,null!=r?r:{}),t$(this,"inTable",!1),this.inlines=[]}render(e,t,r){super.render(e,t,r);let n=this.inlines[this.inlines.length-1];if(null!=n&&n.start&&null!=n&&n.end){var i;let e,{delimiter:t,start:r,end:o}=this.normalizeInline(n);this.out=(i=this.out,(e=function(e,t,r,n){let i=n,o=e;for(;i>r&&!tK(o,i).can_close;)o=tV(o,t,i,-1),i--;return{text:o,from:r,to:i}}((e=function(e,t,r,n){let i=r,o=e;for(;i<n&&!tK(o,i).can_open;)o=tV(o,t,i,1),i++;return{text:o,from:i,to:n}}((e={text:i,from:r,to:o}).text,t,e.from,e.to)).text,t,e.from,e.to)).to-e.from<t.length+1&&(e.text=e.text.substring(0,e.from)+e.text.substring(e.to+t.length)),e.text),this.inlines.pop()}}markString(e,t,r,n){let i=this.marks[e.type.name];if(i.expelEnclosingWhitespace)if(t)this.inlines.push({start:this.out.length,delimiter:i.open});else{let e=this.inlines.pop();this.inlines.push({...e,end:this.out.length})}return super.markString(e,t,r,n)}normalizeInline(e){let{start:t,end:r}=e;for(;this.out.charAt(t).match(/\s/);)t++;return{...e,start:t}}}let tW=c.CU.create({name:"markdownHTMLMark",addStorage:()=>({markdown:{serialize:{open(e,t){var r,n;return this.editor.storage.markdown.options.html?null!=(r=null==(n=tJ(t))?void 0:n[0])?r:"":(console.warn(`Tiptap Markdown: "${t.type.name}" mark is only available in html mode`),"")},close(e,t){var r,n;return this.editor.storage.markdown.options.html&&null!=(r=null==(n=tJ(t))?void 0:n[1])?r:""}},parse:{}}})});function tJ(e){let t=e.type.schema,r=t.text(" ",[e]),n=(0,c.su)(u.FK.from(r),t).match(/^(<.*?>) (<\/.*?>)$/);return n?[n[1],n[2]]:null}function tG(e){let t=`<body>${e}</body>`;return new window.DOMParser().parseFromString(t,"text/html").body}let tZ=c.bP.create({name:"markdownHTMLNode",addStorage:()=>({markdown:{serialize(e,t,r){this.editor.storage.markdown.options.html?e.write(function(e,t){let r=e.type.schema,n=(0,c.su)(u.FK.from(e),r);return e.isBlock&&(t instanceof u.FK||t.type.name===r.topNodeType.name)?function(e){let t=tG(e).firstElementChild;return t.innerHTML=t.innerHTML.trim()?` 4${t.innerHTML} 5`:` 6`,t.outerHTML}(n):n}(t,r)):(console.warn(`Tiptap Markdown: "${t.type.name}" node is only available in html mode`),e.write(`[${t.type.name}]`)),t.isBlock&&e.closeBlock(t)},parse:{}}})}),tY=c.bP.create({name:"blockquote"}).extend({addStorage:()=>({markdown:{serialize:tR.nodes.blockquote,parse:{}}})}),tX=c.bP.create({name:"bulletList"}).extend({addStorage:()=>({markdown:{serialize(e,t){return e.renderList(t," ",()=>(this.editor.storage.markdown.options.bulletListMarker||"-")+" ")},parse:{}}})}),tQ=c.bP.create({name:"codeBlock"}).extend({addStorage:()=>({markdown:{serialize(e,t){e.write("```"+(t.attrs.language||"")+"\n"),e.text(t.textContent,!1),e.ensureNewLine(),e.write("```"),e.closeBlock(t)},parse:{setup(e){var t;e.set({langPrefix:null!=(t=this.options.languageClassPrefix)?t:"language-"})},updateDOM(e){e.innerHTML=e.innerHTML.replace(/\n<\/code><\/pre>/g,"</code></pre>")}}}})}),t0=c.bP.create({name:"hardBreak"}).extend({addStorage:()=>({markdown:{serialize(e,t,r,n){for(let i=n+1;i<r.childCount;i++)if(r.child(i).type!=t.type)return void e.write(e.inTable?tZ.storage.markdown.serialize.call(this,e,t,r):"\\\n")},parse:{}}})}),t1=c.bP.create({name:"heading"}).extend({addStorage:()=>({markdown:{serialize:tR.nodes.heading,parse:{}}})}
6),t2=c.bP.create({name:"horizontalRule"}).extend({addStorage:()=>({markdown:{serialize:tR.nodes.horizontal_rule,parse:{}}})}),t5=c.bP.create({name:"image"}).extend({addStorage:()=>({markdown:{serialize:tR.nodes.image,parse:{}}})}),t3=c.bP.create({name:"listItem"}).extend({addStorage:()=>({markdown:{serialize:tR.nodes.list_item,parse:{}}})}),t4=c.bP.create({name:"orderedList"}).extend({addStorage:()=>({markdown:{serialize(e,t,r,n){let i=t.attrs.start||1,o=String(i+t.childCount-1).length,s=e.repeat(" ",o+2),l=function(e,t,r){let n=0;for(;r-n>0&&t.child(r-n-1).type.name===e.type.name;n++);return n}(t,r,n)%2?") ":". ";e.renderList(t,s,t=>{let r=String(i+t);return e.repeat(" ",o-r.length)+r+l})},parse:{}}})}),t6=c.bP.create({name:"paragraph"}).extend({addStorage:()=>({markdown:{serialize:tR.nodes.paragraph,parse:{}}})});function t8(e){var t,r;return null!=(t=null==e||null==(r=e.content)?void 0:r.content)?t:[]}let t9=c.bP.create({name:"table"}).extend({addStorage:()=>({markdown:{serialize(e,t,r){if(!function(e){let t=t8(e),r=t[0],n=t.slice(1);return!(t8(r).some(e=>"tableHeader"!==e.type.name||t7(e)||e.childCount>1)||n.some(e=>t8(e).some(e=>"tableHeader"===e.type.name||t7(e)||e.childCount>1)))}(t))return void tZ.storage.markdown.serialize.call(this,e,t,r);e.inTable=!0,t.forEach((t,r,n)=>{if(e.write("| "),t.forEach((t,r,n)=>{n&&e.write(" | ");let i=t.firstChild;i.textContent.trim()&&e.renderInline(i)}),e.write(" |"),e.ensureNewLine(),!n){let r=Array.from({length:t.childCount}).map(()=>"---").join(" | ");e.write(`| ${r} |`),e.ensureNewLine()}}),e.closeBlock(t),e.inTable=!1},parse:{}}})});function t7(e){return e.attrs.colspan>1||e.attrs.rowspan>1}let re=c.bP.create({name:"taskItem"}).extend({addStorage:()=>({markdown:{serialize(e,t){let r=t.attrs.checked?"[x]":"[ ]";e.write(`${r} `),e.renderContent(t)},parse:{updateDOM(e){[...e.querySelectorAll(".task-list-item")].forEach(e=>{let t=e.querySelector("input");e.setAttribute("data-type","taskItem"),t&&(e.setAttribute("data-checked",t.checked),t.remove())})}}}})}),rt=c.bP.create({name:"taskList"}).extend({addStorage:()=>({markdown:{serialize:tX.storage.markdown.serialize,parse:{setup(e){e.use(tz)},updateDOM(e){[...e.querySelectorAll(".contains-task-list")].forEach(e=>{e.setAttribute("data-type","taskList")})}}}})}),rr=c.bP.create({name:"text"}).extend({addStorage:()=>({markdown:{serialize(e,t){var r;e.text(null==(r=t.text)?void 0:r.replace(/</g,"<").replace(/>/g,">"))},parse:{}}})}),rn=c.CU.create({name:"bold"}).extend({addStorage:()=>({markdown:{serialize:tR.marks.strong,parse:{}}})}),ri=c.CU.create({name:"code"}).extend({addStorage:()=>({markdown:{serialize:tR.marks.code,parse:{}}})}),ro=c.CU.create({name:"italic"}).extend({addStorage:()=>({markdown:{serialize:tR.marks.em,parse:{}}})}),rs=[tY,tX,tQ,t0,t1,t2,tZ,t5,t3,t4,t6,t9,re,rt,rr,rn,ri,tW,ro,c.CU.create({name:"link"}).extend({addStorage:()=>({markdown:{serialize:tR.marks.link,parse:{}}})}),c.CU.create({name:"strike"}).extend({addStorage:()=>({markdown:{serialize:{open:"~~",close:"~~",expelEnclosingWhitespace:!0},parse:{}}})})];function rl(e){var t,r;let n=null==(t=e.storage)?void 0:t.markdown,i=null==(r=rs.find(t=>t.name===e.name))?void 0:r.storage.markdown;return n||i?{...i,...n}:null}class ra{constructor(e){t$(this,"editor",null),this.editor=e}serialize(e){let t=new tU(this.nodes,this.marks,{hardBreakNodeName:t0.name});return t.renderContent(e),t.out}get nodes(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.nodes).map(e=>[e,this.serializeNode(tZ)])),...Object.fromEntries(null!=(e=this.editor.extensionManager.extensions.filter(e=>"node"===e.type&&this.serializeNode(e)).map(e=>[e.name,this.serializeNode(e)]))?e:[])}}get marks(){var e;return{...Object.fromEntries(Object.keys(this.editor.schema.marks).map(e=>[e,this.serializeMark(tW)])),...Object.fromEntries(null!=(e=this.editor.extensionManager.extensions.filter(e=>"mark"===e.type&&this.serializeMark(e)).map(e=>[e.name,this.serializeMark(e)]))?e:[])}}serializeNode(e){var t;return null==(t=rl(e))||null==(t=t.serialize)?void 0:t.bind({editor:this.editor,options:e.options})}serializeMark(e){var t;let r=null==(t=rl(e))?void 0:t.serialize;return r?{...r,open:"function"==typeof r.open?r.open.bind({editor:this.editor,options:e.options}):r.open,close:"function"==typeof r.close?r.close.bind({editor:this.editor,options:e.options}):r.close}:null}}class rc{constructor(e,t){t$(this,"editor",null),t$(this,"md",null);let{html:r,linkify:n,breaks:i}=t;this.editor=e,this.md=this.withPatchedRenderer(tE({html:r,linkify:n,breaks:i}))}parse(e){let{inline:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e){this.editor.extensionManager.extensions.forEach(e
6=>{var t;return null==(t=rl(e))||null==(t=t.parse)||null==(t=t.setup)?void 0:t.call({editor:this.editor,options:e.options},this.md)});let r=tG(this.md.render(e));return this.editor.extensionManager.extensions.forEach(e=>{var t;return null==(t=rl(e))||null==(t=t.parse)||null==(t=t.updateDOM)?void 0:t.call({editor:this.editor,options:e.options},r)}),this.normalizeDOM(r,{inline:t,content:e}),r.innerHTML}return e}normalizeDOM(e,t){let{inline:r,content:n}=t;return this.normalizeBlocks(e),e.querySelectorAll("*").forEach(e=>{var t;(null==(t=e.nextSibling)?void 0:t.nodeType)!==Node.TEXT_NODE||e.closest("pre")||(e.nextSibling.textContent=e.nextSibling.textContent.replace(/^\n/,""))}),r&&this.normalizeInline(e,n),e}normalizeBlocks(e){let t=Object.values(this.editor.schema.nodes).filter(e=>e.isBlock).map(e=>{var t;return null==(t=e.spec.parseDOM)?void 0:t.map(e=>e.tag)}).flat().filter(Boolean).join(",");t&&[...e.querySelectorAll(t)].forEach(e=>{e.parentElement.matches("p")&&function(e){let t=e.parentElement,r=t.cloneNode();for(;t.firstChild&&t.firstChild!==e;)r.appendChild(t.firstChild);r.childNodes.length>0&&t.parentElement.insertBefore(r,t),t.parentElement.insertBefore(e,t),0===t.childNodes.length&&t.remove()}(e)})}normalizeInline(e,t){var r,n,i,o,s;if(null!=(r=e.firstElementChild)&&r.matches("p")){let r=e.firstElementChild,{nextElementSibling:l}=r,a=null!=(n=null==(i=t.match(/^\s+/))?void 0:i[0])?n:"",c=l?"":null!=(o=null==(s=t.match(/\s+$/))?void 0:s[0])?o:"";if(t.match(/^\n\n/)){r.innerHTML=`${r.innerHTML}${c}`;return}let u=r.parentNode;for(;r.firstChild;)u.insertBefore(r.firstChild,r);u.removeChild(r),e.innerHTML=`${a}${e.innerHTML}${c}`}}withPatchedRenderer(e){let t=e=>function(){let t=e(...arguments);return"\n"===t?t:"\n"===t[t.length-1]?t.slice(0,-1):t};return e.renderer.rules.hardbreak=t(e.renderer.rules.hardbreak),e.renderer.rules.softbreak=t(e.renderer.rules.softbreak),e.renderer.rules.fence=t(e.renderer.rules.fence),e.renderer.rules.code_block=t(e.renderer.rules.code_block),e.renderer.renderToken=t(e.renderer.renderToken.bind(e.renderer)),e}}let ru=c.YY.create({name:"markdownClipboard",addOptions:()=>({transformPastedText:!1,transformCopiedText:!1}),addProseMirrorPlugins(){return[new tB.k_({key:new tB.hs("markdownClipboard"),props:{clipboardTextParser:(e,t,r)=>{if(r||!this.options.transformPastedText)return null;let n=this.editor.storage.markdown.parser.parse(e,{inline:!0});return u.S4.fromSchema(this.editor.schema).parseSlice(tG(n),{preserveWhitespace:!0,context:t})},clipboardTextSerializer:e=>this.options.transformCopiedText?this.editor.storage.markdown.serializer.serialize(e.content):null}})]}}),rd=c.YY.create({name:"markdown",priority:50,addOptions:()=>({html:!0,tightLists:!0,tightListClass:"tight",bulletListMarker:"-",linkify:!1,breaks:!1,transformPastedText:!1,transformCopiedText:!1}),addCommands(){let e=c.XO.Commands.config.addCommands();return{setContent:(t,r,n)=>i=>e.setContent(i.editor.storage.markdown.parser.parse(t),r,n)(i),insertContentAt:(t,r,n)=>i=>e.insertContentAt(t,i.editor.storage.markdown.parser.parse(r,{inline:!0}),n)(i)}},onBeforeCreate(){this.editor.storage.markdown={options:{...this.options},parser:new rc(this.editor,this.options),serializer:new ra(this.editor),getMarkdown:()=>this.editor.storage.markdown.serializer.serialize(this.editor.state.doc)},this.editor.options.initialContent=this.editor.options.content,this.editor.options.content=this.editor.storage.markdown.parser.parse(this.editor.options.content)},onCreate(){this.editor.options.content=this.editor.options.initialContent,delete this.editor.options.initialContent},addStorage:()=>({}),addExtensions(){return[tH.configure({tight:this.options.tightLists,tightClass:this.options.tightListClass}),ru.configure({transformPastedText:this.options.transformPastedText,transformCopiedText:this.options.transformCopiedText})]}});var rh=r(24607),rp=r(55658);let rf=[l.A,a.Ay.configure({openOnClick:!1}),rd.configure({transformPastedText:!0,html:!0}),rh.x,rh.U,rp.r]},50859:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},51716:(e,t,r)=>{"use strict";r.d(t,{FormFieldGroup:()=>o});var n=r(95155),i=r(40745);function o(e){let{label:t,description:r,className:o,children:s}=e;return(0,n.jsxs)("div",{className:(0,i.cn)("space-y-2",o),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm font-medium",children:t}),r?(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:r}):null]}),s]})}},51876:(e,t,r)=>{"use strict";r.d(t,{$t:()=>C,LN:()=>s,U3:()=>u,hs:()=>M,i5:()=>f,k_:()=>E,nh:()=>h,yn:()=>l});var n=r(92322),i=r(62463);let o=Object.create(null);class s{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new l(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=n.Ji.empty){let r=t.content.lastChild,i=null;for(let e=0;e<t.openEnd;e++)i=r,r=r.lastChild;let o=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:c}=s[l],u=e.mapping.slice(o);e.replaceRange(u.map(a.pos),u.map(c.pos),l?n.Ji.empty:t),0==l&&b(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:o,$to:s}=n[i],l=e.mapping.slice(r),a=l.map(o.pos),c=l.map(s.pos);i?e.deleteRange(a,c):(e.replaceRangeWith(a,c,t),b(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new u(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let i=t<0?g(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):g(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(i)return i}return null}
6static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new f(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new f(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new f(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");let r=o[t.type];if(!r)throw RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class l{constructor(e,t){this.$from=e,this.$to=t}}let a=!1;function c(e){a||e.parent.inlineContent||(a=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends s{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return s.near(r);let n=e.resolve(t.map(this.anchor));return new u(n.parent.inlineContent?n:r,r)}replace(e,t=n.Ji.empty){if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if((!r||n)&&(r=n>=0?1:-1),!t.parent.inlineContent){let e=s.findFrom(t,r,!0)||s.findFrom(t,-r,!0);if(!e)return s.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n?e=t:(e=(s.findFrom(e,-r,!0)||s.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0&&(e=t)),new u(e,t)}}s.jsonID("text",u);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class h extends s{constructor(e){let t=e.nodeAfter;super(e,e.node(0).resolve(e.pos+t.nodeSize)),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?s.near(i):new h(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof h&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new p(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw RangeError("Invalid input for NodeSelection.fromJSON");return new h(e.resolve(t.anchor))}static create(e,t){return new h(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}h.prototype.visible=!1,s.jsonID("node",h);class p{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new d(r,r):new p(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&h.isSelectable(r)?new h(t):s.near(t)}}class f extends s{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=n.Ji.empty){if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=s.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new f(e)}map(e){return new f(e)}eq(e){return e instanceof f}getBookmark(){return m}}s.jsonID("all",f);let m={map(){return this},resolve:e=>new f(e)};function g(e,t,r,n,i,o=!1){if(t.inlineContent)return u.create(e,r);for(let s=n-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let n=t.child(s);if(n.isAtom){if(!o&&h.isSelectable(n))return h.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,o);if(t)return t}r+=n.nodeSize*i}return null}function b(e,t,r){let n,o=e.steps.length-1;if(o<t)return;let l=e.steps[o];(l instanceof i.Ln||l instanceof i.Wg)&&(e.mapping.maps[o].forEach((e,t,r,i)=>{null==n&&(n=i)}),e.setSelection(s.near(e.doc.resolve(n),r)))}class y extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(1|this.updated)&-3,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(s.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function v(e,t){return t&&e?e.bind(t):e}class x{constructor(e,t,r){this.name=e,this.init=v(t.init,r),this.apply=v(t.apply,r)}}let k=[new x("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new x("selection",{init:(e,t)=>
6e.selection||s.atStart(t.doc),apply:e=>e.selection}),new x("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new x("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class w{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=k.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new x(e.key,e.spec.state,e))})}}class C{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let l=n?n[o].n:0,a=n?n[o].state:this,c=l<t.length&&s.spec.appendTransaction.call(s,l?t.slice(l):t,a,r);if(c&&r.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<o?{state:r,n:t.length}:{state:this,n:0})}t.push(c),r=r.applyInner(c),i=!0}n&&(n[o]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw RangeError("Applying a mismatched transaction");let t=new C(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new y(this)}static create(e){let t=new w(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new C(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new w(this.schema,e.plugins),r=t.fields,n=new C(t);for(let t=0;t<r.length;t++){let i=r[t].name;n[i]=this.hasOwnProperty(i)?this[i]:r[t].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw RangeError("Required config field 'schema' missing");let i=new w(e.schema,e.plugins),o=new C(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=s.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let s=r[n],l=s.spec.state;if(s.key==i.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(t,n)){o[i.name]=l.fromJSON.call(s,e,t[n],o);return}}o[i.name]=i.init(e,o)}}),o}}class E{constructor(e){this.spec=e,this.props={},e.props&&function e(t,r,n){for(let i in t){let o=t[i];o instanceof Function?o=o.bind(r):"handleDOMEvents"==i&&(o=e(o,r,{})),n[i]=o}return n}(e.props,this,this.props),this.key=e.key?e.key.key:S("plugin")}getState(e){return e[this.key]}}let A=Object.create(null);function S(e){return e in A?e+"$"+ ++A[e]:(A[e]=0,e+"$")}class M{constructor(e="key"){this.key=S(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},52056:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},54665:(e,t,r)=>{"use strict";r.d(t,{AdminFilterBar:()=>s});var n=r(95155),i=r(11186);let o="h-9 rounded-md border border-input bg-transparent px-3 text-sm text-foreground outline-none transition focus:ring-2 focus:ring-[var(--ring)]";function s(e){let{filters:t,onClearAll:r,clearAllLabel:s="Clear filters",children:l}=e,a=t.some(e=>{var t,r;return"dateRange"===e.kind?""!==e.from||""!==e.to:e.value!==(null!=(r=e.defaultValue)?r:null==(t=e.options[0])?void 0:t.value)});return(0,n.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[t.map(e=>{var t,r;return"dateRange"===e.kind?(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("input",{type:"date",value:e.from,onChange:t=>e.onFromChange(t.target.value),"aria-label":null!=(t=e.fromLabel)?t:"From",className:o}),(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:"â"}),(0,n.jsx)("input",{type:"date",value:e.to,onChange:t=>e.onToChange(t.target.value),"aria-label":null!=(r=e.toLabel)?r:"To",className:o})]},e.id):(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"sr-only",children:e.label}),(0,n.jsxs)(i.l6,{value:e.value,onValueChange:e.onChange,children:[(0,n.jsx)(i.bq,{className:"h-9 w-[10rem]",children:(0,n.jsx)(i.yv,{})}),(0,n.jsx)(i.gC,{children:e.options.map(e=>(0,n.jsx)(i.eb,{value:e.value,children:e.label},e.value))})]})]},e.id)}),l,r&&a&&(0,n.jsx)("button",{type:"button",onClick:r,className:"text-sm text-muted-foreground hover:text-foreground",children:s})]})}},55658:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(76908);let i=n.CU.create({name:"textColor",addAttributes:()=>({color:{default:null,parseHTML:e=>e instanceof HTMLElement?e.style.color||null:null,renderHTML:e=>e.color?{style:"color: ".concat(e.color)}:{}}}),parseHTML:()=>[{tag:"span",getAttrs:e=>e instanceof HTMLElement&&!!e.style.color&&{}}],renderHTML(e){let{HTMLAttributes:t}=e;return["span",(0,n.KV)(t),0]},addCommands:()=>({setTextColor:e=>t=>{let{commands:r}=t;return r.setMark("textColor",{color:e})},unsetTextColor:()=>e=>{let{commands:t}=e;return t.unsetMark("textColor")}})})},56135:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>eV});var n=r(76908);let i="numeric",o="ascii",s="alpha",l="asciinumeric",a="alphanumeric",c="domain",u="emoji",d="whitespace";
6function h(e,t,r){for(let n in t[i]&&(t[l]=!0,t[a]=!0),t[o]&&(t[l]=!0,t[s]=!0),t[l]&&(t[a]=!0),t[s]&&(t[a]=!0),t[a]&&(t[c]=!0),t[u]&&(t[c]=!0),t){let t=(n in r||(r[n]=[]),r[n]);0>t.indexOf(e)&&t.push(e)}}function p(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}p.groups={},p.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t<this.jr.length;t++){let r=this.jr[t][0],n=this.jr[t][1];if(n&&r.test(e))return n}return this.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){let i;return n=n||p.groups,t&&t.j?i=t:(i=new p(t),r&&n&&h(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this,o=e.length;if(!o)return i;for(let t=0;t<o-1;t++)i=i.tt(e[t]);return i.tt(e[o-1],t,r,n)},tt(e,t,r,n){if(n=n||p.groups,t&&t.j)return this.j[e]=t,t;let i,o=this.go(e);return o?(Object.assign((i=new p).j,o.j),i.jr.push.apply(i.jr,o.jr),i.jd=o.jd,i.t=o.t):i=new p,t&&(n&&(i.t&&"string"==typeof i.t?h(t,Object.assign(function(e,t){let r={};for(let n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}(i.t,n),r),n):r&&h(t,r,n)),i.t=t),this.j[e]=i,i}};let f=(e,t,r,n,i)=>e.ta(t,r,n,i),m=(e,t,r,n,i)=>e.tr(t,r,n,i),g=(e,t,r,n,i)=>e.ts(t,r,n,i),b=(e,t,r,n,i)=>e.tt(t,r,n,i),y="WORD",v="UWORD",x="ASCIINUMERICAL",k="ALPHANUMERICAL",w="LOCALHOST",C="UTLD",E="SCHEME",A="SLASH_SCHEME",S="OPENBRACE",M="CLOSEBRACE",D="OPENBRACKET",N="CLOSEBRACKET",T="OPENPAREN",j="CLOSEPAREN",_="OPENANGLEBRACKET",F="CLOSEANGLEBRACKET",L="FULLWIDTHLEFTPAREN",R="FULLWIDTHRIGHTPAREN",I="LEFTCORNERBRACKET",O="RIGHTCORNERBRACKET",z="LEFTWHITECORNERBRACKET",B="RIGHTWHITECORNERBRACKET",P="FULLWIDTHLESSTHAN",$="FULLWIDTHGREATERTHAN",H="AMPERSAND",q="APOSTROPHE",K="ASTERISK",V="BACKSLASH",U="BACKTICK",W="CARET",J="COLON",G="COMMA",Z="DOLLAR",Y="EQUALS",X="EXCLAMATION",Q="HYPHEN",ee="PERCENT",et="PIPE",er="PLUS",en="POUND",ei="QUERY",eo="QUOTE",es="FULLWIDTHMIDDLEDOT",el="SEMI",ea="SLASH",ec="TILDE",eu="UNDERSCORE",ed="EMOJI";var eh=Object.freeze({__proto__:null,ALPHANUMERICAL:k,AMPERSAND:H,APOSTROPHE:q,ASCIINUMERICAL:x,ASTERISK:K,AT:"AT",BACKSLASH:V,BACKTICK:U,CARET:W,CLOSEANGLEBRACKET:F,CLOSEBRACE:M,CLOSEBRACKET:N,CLOSEPAREN:j,COLON:J,COMMA:G,DOLLAR:Z,DOT:"DOT",EMOJI:ed,EQUALS:Y,EXCLAMATION:X,FULLWIDTHGREATERTHAN:$,FULLWIDTHLEFTPAREN:L,FULLWIDTHLESSTHAN:P,FULLWIDTHMIDDLEDOT:es,FULLWIDTHRIGHTPAREN:R,HYPHEN:Q,LEFTCORNERBRACKET:I,LEFTWHITECORNERBRACKET:z,LOCALHOST:w,NL:"NL",NUM:"NUM",OPENANGLEBRACKET:_,OPENBRACE:S,OPENBRACKET:D,OPENPAREN:T,PERCENT:ee,PIPE:et,PLUS:er,POUND:en,QUERY:ei,QUOTE:eo,RIGHTCORNERBRACKET:O,RIGHTWHITECORNERBRACKET:B,SCHEME:E,SEMI:el,SLASH:ea,SLASH_SCHEME:A,SYM:"SYM",TILDE:ec,TLD:"TLD",UNDERSCORE:eu,UTLD:C,UWORD:v,WORD:y,WS:"WS"});let ep=/[a-z]/,ef=/\p{L}/u,em=/\p{Emoji}/u,eg=/\d/,eb=/\s/,ey=null,ev=null;function ex(e,t){let r=function(e){let t=[],r=e.length,n=0;for(;n<r;){let i,o=e.charCodeAt(n),s=o<55296||o>56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(s),n+=s.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),n=r.length,i=[],o=0,s=0;for(;s<n;){let l=e,a=null,c=0,u=null,d=-1,h=-1;for(;s<n&&(a=l.go(r[s]));)(l=a).accepts()?(d=0,h=0,u=l):d>=0&&(d+=r[s].length,h++),c+=r[s].length,o+=r[s].length,s++;o-=d,s-=h,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function ek(e,t,r,n,i){let o,s=t.length;for(let r=0;r<s-1;r++){let s=t[r];e.j[s]?o=e.j[s]:((o=new p(n)).jr=i.slice(),e.j[s]=o),e=o}return(o=new p(r)).jr=i.slice(),e.j[t[s-1]]=o,o}function ew(e){let t=[],r=[],n=0;for(;n<e.length;){let i=0;for(;"0123456789".indexOf(e[n+i])>=0;)i++;if(i>0){t.push(r.join(""));for(let t=parseInt(e.substring(n,n+i),10);t>0;t--)r.pop();n+=i}else r.push(e[n]),n++}return t}let eC={defaultProtocol:"http",events:null,format:eA,formatHref:eA,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function eE(e,t=null){let r=Object.assign({},eC);e&&(r=Object.assign(r,e instanceof eE?e.o:e));let n=r.ignoreTags,i=[];for(let e=0;e<n.length;e++)i.push(n[e].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}function eA(e){return e}function eS(e,t){this.t="token",this.v=e,this.tk=t}function eM(e,t){class r extends eS{constructor(t,r){super(t,r),this.t=e}}
6for(let e in t)r.prototype[e]=t[e];return r.t=e,r}eE.prototype={o:eC,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){let n=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=r.t in i?i[r.t]:eC[e])&&n&&(i=i(t,r)):"function"==typeof i&&n&&(i=i(t,r.t,r))),i},getObj(e,t,r){let n=this.o[e];return"function"==typeof n&&null!=t&&(n=n(t,r.t,r)),n},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},eS.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"â¦":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=eC.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",t,this),n=e.get("tagName",t,this),i=this.toFormattedString(e),o={},s=e.get("className",t,this),l=e.get("target",t,this),a=e.get("rel",t,this),c=e.getObj("attributes",t,this),u=e.getObj("events",t,this);return o.href=r,s&&(o.class=s),l&&(o.target=l),a&&(o.rel=a),c&&Object.assign(o,c),{tagName:n,attributes:o,content:i,eventListeners:u}}};let eD=eM("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eN=eM("text"),eT=eM("nl"),ej=eM("url",{isLink:!0,toHref(e=eC.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==w&&e[1].t===J}}),e_=e=>new p(e);function eF(e,t,r){let n=r[0].s,i=r[r.length-1].e;return new e(t.slice(n,i),r)}let eL="undefined"!=typeof console&&console&&console.warn||(()=>{}),eR={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eI(e,t=!1){if(eR.initialized&&eL(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format. 71. Must only contain digits, lowercase ASCII letters or "-" 82. Cannot start or end with "-" 93. "-" cannot repeat`);eR.customSchemes.push([e,t])}function eO(e){return eR.initialized||function(){eR.scanner=function(e=[]){let t={};p.groups=t;let r=new p;null==ey&&(ey=ew("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
9ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==ev&&(ev=ew("ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
9ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2")),b(r,"'",q),b(r,"{",S),b(r,"}",M),b(r,"[",D),b(r,"]",N),b(r,"(",T),b(r,")",j),b(r,"<",_),b(r,">",F),b(r,"ï¼",L),b(r,"ï¼",R),b(r,"ã",I),b(r,"ã",O),b(r,"ã",z),b(r,"ã",B),b(r,"ï¼",P),b(r,"ï¼",$),b(r,"&",H),b(r,"*",K),b(r,"@","AT"),b(r,"`",U),b(r,"^",W),b(r,":",J),b(r,",",G),b(r,"$",Z),b(r,".","DOT"),b(r,"=",Y),b(r,"!",X),b(r,"-",Q),b(r,"%",ee),b(r,"|",et),b(r,"+",er),b(r,"#",en),b(r,"?",ei),b(r,'"',eo),b(r,"/",ea),b(r,";",el),b(r,"~",ec),b(r,"_",eu),b(r,"\\",V),b(r,"ã»",es);let n=m(r,eg,"NUM",{[i]:!0});m(n,eg,n);let f=m(n,ep,x,{[l]:!0}),ex=m(n,ef,k,{[a]:!0}),eC=m(r,ep,y,{[o]:!0});m(eC,eg,f),m(eC,ep,eC),m(f,eg,f),m(f,ep,f);let eE=m(r,ef,v,{[s]:!0});m(eE,ep),m(eE,eg,ex),m(eE,ef,eE),m(ex,eg,ex),m(ex,ep),m(ex,ef,ex);let eA=b(r,"\n","NL",{[d]:!0}),eS=b(r,"\r","WS",{[d]:!0}),eM=m(r,eb,"WS",{[d]:!0});b(r,"",eM),b(eS,"\n",eA),b(eS,"",eM),m(eS,eb,eM),b(eM,"\r"),b(eM,"\n"),m(eM,eb,eM),b(eM,"",eM);let eD=m(r,em,ed,{[u]:!0});b(eD,"#"),m(eD,em,eD),b(eD,"ï¸",eD);let eN=b(eD,"â");b(eN,"#"),m(eN,em,eD);let eT=[[ep,eC],[eg,f]],ej=[[ep,null],[ef,eE],[eg,ex]];for(let e=0;e<ey.length;e++)ek(r,ey[e],"TLD",y,eT);for(let e=0;e<ev.length;e++)ek(r,ev[e],C,v,ej);h("TLD",{tld:!0,ascii:!0},t),h(C,{utld:!0,alpha:!0},t),ek(r,"file",E,y,eT),ek(r,"mailto",E,y,eT),ek(r,"http",A,y,eT),ek(r,"https",A,y,eT),ek(r,"ftp",A,y,eT),ek(r,"ftps",A,y,eT),h(E,{scheme:!0,ascii:!0},t),h(A,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let n=e[t][0],s=e[t][1]?{scheme:!0}:{slashscheme:!0};n.indexOf("-")>=0?s[c]=!0:ep.test(n)?eg.test(n)?s[l]=!0:s[o]=!0:s[i]=!0,g(r,n,n,s)}return g(r,"localhost",w,{ascii:!0}),r.jd=new p("SYM"),{start:r,tokens:Object.assign({groups:t},eh)}}(eR.customSchemes);for(let e=0;e<eR.tokenQueue.length;e++)eR.tokenQueue[e][1]({scanner:eR.scanner});eR.parser=function({groups:e}){let t=e.domain.concat([H,K,"AT",V,U,W,Z,Y,Q,"NUM",ee,et,er,en,ea,"SYM",ec,eu]),r=[q,J,G,"DOT",X,ee,ei,eo,el,_,F,S,M,N,D,T,j,L,R,I,O,z,B,P,$],n=[H,q,K,V,U,W,Z,Y,Q,S,M,ee,et,er,en,ei,ea,"SYM",ec,eu],i=e_(),o=b(i,ec);f(o,n,o),f(o,e.domain,o);let s=e_(),l=e_(),a=e_();f(i,e.domain,s),f(i,e.scheme,l),f(i,e.slashscheme,a),f(s,n,o),f(s,e.domain,s);let c=b(s,"AT");b(o,"AT",c),b(l,"AT",c),b(a,"AT",c);let u=b(o,"DOT");f(u,n,o),f(u,e.domain,o);let d=e_();f(c,e.domain,d),f(d,e.domain,d);let h=b(d,"DOT");f(h,e.domain,d);let p=e_(eD);f(h,e.tld,p),f(h,e.utld,p),b(c,w,p);let m=b(d,Q);b(m,Q,m),f(m,e.domain,d),f(p,e.domain,d),b(p,"DOT",h),b(p,Q,m);let g=b(s,Q),y=b(s,"DOT");b(g,Q,g),f(g,e.domain,s),f(y,n,o),f(y,e.domain,s);let v=e_(ej);f(y,e.tld,v),f(y,e.utld,v),f(v,e.domain,s),f(v,n,o),b(v,"DOT",y),b(v,Q,g),b(v,"AT",c);let x=b(v,J),k=e_(ej);f(x,e.numeric,k);let C=e_(ej),E=e_();f(C,t,C),f(C,r,E),f(E,t,C),f(E,r,E),b(v,ea,C),b(k,ea,C);let A=b(l,J),es=b(a,J),ed=b(es,ea),ep=b(ed,ea);f(l,e.domain,s),b(l,"DOT",y),b(l,Q,g),f(a,e.domain,s),b(a,"DOT",y),b(a,Q,g),f(A,e.domain,C),b(A,ea,C),b(A,ei,C),f(ep,e.domain,C),f(ep,t,C),b(ep,ea,C);let ef=[[S,M],[D,N],[T,j],[_,F],[L,R],[I,O],[z,B],[P,$]];for(let e=0;e<ef.length;e++){let[n,i]=ef[e],o=b(C,n);b(E,n,o);let s=e_(ej);f(o,t,s);let l=e_();f(o,r,l),b(o,i,C),f(s,t,s),f(s,r,l),f(l,t,s),f(l,r,l),b(s,i,C),b(l,i,C)}return b(i,w,v),b(i,"NL",eT),{start:i,tokens:eh}}(eR.scanner.tokens);for(let e=0;e<eR.pluginQueue.length;e++)eR.pluginQueue[e][1]({scanner:eR.scanner,parser:eR.parser});eR.initialized=!0}(),function(e,t,r){let n=r.length,i=0,o=[],s=[];for(;i<n;){let l=e,a=null,c=null,u=0,d=null,h=-1;for(;i<n&&!(a=l.go(r[i].t));)s.push(r[i++]);for(;i<n&&(c=a||l.go(r[i].t));)a=null,(l=c).accepts()?(h=0,d=l):h>=0&&h++,i++,u++;if(h<0)(i-=u)<n&&(s.push(r[i]),i++);else{s.length>0&&(o.push(eF(eN,t,s)),s=[]),i-=h,u-=h;let e=d.t,n=r.slice(i-u,i);o.push(eF(e,t,n))}}return s.length>0&&o.push(eF(eN,t,s)),o}(eR.parser.start,e,ex(eR.scanner.start,e))}function ez(e,t=null,r=null){if(t&&"object"==typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}let n=new eE(r),i=eO(e),o=[];for(let e=0;e<i.length;e++){let r=i[e];r.isLink&&(!t||r.t===t)&&n.check(r)&&o.push(r.toFormattedObject(n))}return o}eO.scan=ex;var eB=r(51876);let eP="[\0- \xa0áá â-\u2029âã]",e$=new RegExp(eP),eH=RegExp(`${eP}$`),eq=RegExp(eP,"g");function eK(e,t){let r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];
9return t&&t.forEach(e=>{let t="string"==typeof e?e:e.scheme;t&&r.push(t)}),!e||e.replace(eq,"").match(RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}let eV=n.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if("string"==typeof e)return void eI(e);eI(e.scheme,e.optionalSlashes)})},onDestroy(){p.groups={},eR.scanner=null,eR.parser=null,eR.tokenQueue=[],eR.pluginQueue=[],eR.customSchemes=[],eR.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!eK(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{let t=e.getAttribute("href");return!!t&&!!this.options.isAllowedUri(t,{defaultValidate:e=>!!eK(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!eK(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,n.KV)(this.options.HTMLAttributes,e),0]:["a",(0,n.KV)(this.options.HTMLAttributes,{...e,href:""}),0]},addCommands(){return{setLink:e=>({chain:t})=>{let{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!eK(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>({chain:t})=>{let{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!eK(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,n.Zc)({find:e=>{let t=[];if(e){let{protocols:r,defaultProtocol:n}=this.options,i=ez(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!eK(e,r),protocols:r,defaultProtocol:n}));i.length&&i.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t}
9,type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,r;let i=[],{protocols:o,defaultProtocol:s}=this.options;return this.options.autolink&&i.push((e={type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!eK(e,o),protocols:o,defaultProtocol:s}),shouldAutoLink:this.options.shouldAutoLink},new eB.k_({key:new eB.hs("autolink"),appendTransaction:(t,r,i)=>{let o=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),s=t.some(e=>e.getMeta("preventAutolink"));if(!o||s)return;let{tr:l}=i,a=(0,n.T7)(r.doc,[...t]);if((0,n.FF)(a).forEach(({newRange:t})=>{let r,o,s=(0,n.Nx)(i.doc,t,e=>e.isTextblock);if(s.length>1)r=s[0],o=i.doc.textBetween(r.pos,r.pos+r.node.nodeSize,void 0," ");else if(s.length){let e=i.doc.textBetween(t.from,t.to," "," ");if(!eH.test(e))return;r=s[0],o=i.doc.textBetween(r.pos,t.to,void 0," ")}if(r&&o){let t=o.split(e$).filter(Boolean);if(t.length<=0)return!1;let s=t[t.length-1],a=r.pos+o.lastIndexOf(s);if(!s)return!1;let c=eO(s).map(t=>t.toObject(e.defaultProtocol));if(!(1===c.length?c[0].isLink:3===c.length&&!!c[1].isLink&&["()","[]"].includes(c[0].value+c[2].value)))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:a+e.start+1,to:a+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||l.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),l.steps.length)return l}}))),!0===this.options.openOnClick&&i.push((t={type:this.type},new eB.k_({key:new eB.hs("handleClickLink"),props:{handleClick:(e,r,i)=>{var o,s;if(0!==i.button||!e.editable)return!1;let l=i.target,a=[];for(;"DIV"!==l.nodeName;)a.push(l),l=l.parentNode;if(!a.find(e=>"A"===e.nodeName))return!1;let c=(0,n.gu)(e.state,t.type.name),u=i.target,d=null!=(o=null==u?void 0:u.href)?o:c.href,h=null!=(s=null==u?void 0:u.target)?s:c.target;return!!u&&!!d&&(window.open(d,h),!0)}}}))),this.options.linkOnPaste&&i.push((r={editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type},new eB.k_({key:new eB.hs("handlePasteLink"),props:{handlePaste:(e,t,n)=>{let{state:i}=e,{selection:o}=i,{empty:s}=o;if(s)return!1;let l="";n.content.forEach(e=>{l+=e.textContent});let a=ez(l,{defaultProtocol:r.defaultProtocol}).find(e=>e.isLink&&e.value===l);return!!l&&!!a&&r.editor.commands.setMark(r.type,{href:a.href})}}}))),i}})},56348:(e,t,r)=>{"use strict";r.d(t,{G5:()=>H,Pb:()=>P,UC:()=>L,VF:()=>z,ZL:()=>F,ZP:()=>$,bL:()=>j,hN:()=>O,l9:()=>_,q7:()=>R,wv:()=>B,z6:()=>I});var n=r(12115),i=r(92556),o=r(94446),s=r(3468),l=r(23558),a=r(97602),c=r(11828),u=r(68946),d=r(95155),h="DropdownMenu",[p,f]=(0,s.A)(h,[c.UE]),m=(0,c.UE)(),[g,b]=p(h),y=e=>{let{__scopeDropdownMenu:t,children:r,dir:i,open:o,defaultOpen:s,onOpenChange:a,modal:p=!0}=e,f=m(t),b=n.useRef(null),[y,v]=(0,l.i)({prop:o,defaultProp:null!=s&&s,onChange:a,caller:h});return(0,d.jsx)(g,{scope:t,triggerId:(0,u.B)(),triggerRef:b,contentId:(0,u.B)(),open:y,onOpenChange:v,onOpenToggle:n.useCallback(()=>v(e=>!e),[v]),modal:p,children:(0,d.jsx)(c.bL,{...f,open:y,onOpenChange:v,dir:i,modal:p,children:r})})};y.displayName=h;var v="DropdownMenuTrigger",x=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...s}=e,l=b(v,r),u=m(r),h=(0,o.s)(t,l.triggerRef);return(0,d.jsx)(c.Mz,{asChild:!0,...u,children:(0,d.jsx)(a.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:h,onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});x.displayName=v;var k=e=>{let{__scopeDropdownMenu:t,...r}=e,n=m(t);return(0,d.jsx)(c.ZL,{...n,...r})};k.displayName="DropdownMenuPortal";var w="DropdownMenuContent",C=n.forwardRef((e,t)=>
9{let{__scopeDropdownMenu:r,...o}=e,s=b(w,r),l=m(r),a=n.useRef(!1);return(0,d.jsx)(c.UC,{id:s.contentId,"aria-labelledby":s.triggerId,...l,...o,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;a.current||null==(t=s.triggerRef.current)||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!s.modal||n)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});C.displayName=w,n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.YJ,{...i,...n,ref:t})}).displayName="DropdownMenuGroup",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.JU,{...i,...n,ref:t})}).displayName="DropdownMenuLabel";var E=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.q7,{...i,...n,ref:t})});E.displayName="DropdownMenuItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.H_,{...i,...n,ref:t})}).displayName="DropdownMenuCheckboxItem";var A=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.z6,{...i,...n,ref:t})});A.displayName="DropdownMenuRadioGroup";var S=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.hN,{...i,...n,ref:t})});S.displayName="DropdownMenuRadioItem";var M=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.VF,{...i,...n,ref:t})});M.displayName="DropdownMenuItemIndicator";var D=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.wv,{...i,...n,ref:t})});D.displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.i3,{...i,...n,ref:t})}).displayName="DropdownMenuArrow";var N=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.ZP,{...i,...n,ref:t})});N.displayName="DropdownMenuSubTrigger";var T=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,i=m(r);return(0,d.jsx)(c.G5,{...i,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});T.displayName="DropdownMenuSubContent";var j=y,_=x,F=k,L=C,R=E,I=A,O=S,z=M,B=D,P=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:i,defaultOpen:o}=e,s=m(t),[a,u]=(0,l.i)({prop:n,defaultProp:null!=o&&o,onChange:i,caller:"DropdownMenuSub"});return(0,d.jsx)(c.Pb,{...s,open:a,onOpenChange:u,children:r})},$=N,H=T},57268:(e,t,r)=>{"use strict";r.d(t,{b:()=>c});var n=r(12115),i=r(97602),o=r(95155),s="horizontal",l=["horizontal","vertical"],a=n.forwardRef((e,t)=>{var r;let{decorative:n,orientation:a=s,...c}=e,u=(r=a,l.includes(r))?a:s;return(0,o.jsx)(i.sG.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...c,ref:t})});a.displayName="Separator";var c=a},57442:(e,t,r)=>{"use strict";r.d(t,{FormRow:()=>l});var n=r(95155),i=r(40745);let o={start:"items-start",end:"items-end",center:"items-center"},s={sm:"gap-2",md:"gap-4",lg:"gap-6"};function l(e){let{align:t="end",gap:r="md",className:l,children:a}=e;return(0,n.jsx)("div",{className:(0,i.cn)("flex flex-wrap",o[t],s[r],l),children:a})}},57828:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},58359:(e,t,r)=>{"use strict";r.d(t,{useModelTranslations:()=>i});var n=r(12115);function i(e){var t;let{entity:r,supportedLanguages:i,defaultLanguage:o,createEmpty:s}
9=e,l=o||(null==(t=i[0])?void 0:t.code)||"en",[a,c]=(0,n.useState)(()=>{var e;return(null==r||null==(e=r.translations)?void 0:e.length)?[...r.translations]:[]}),[u,d]=(0,n.useState)(()=>a.some(e=>e.language===l)?l:a.length>0?a[0].language:l),h=(0,n.useMemo)(()=>a.map(e=>e.language),[a]),p=(0,n.useCallback)(e=>{var t;return null!=(t=a.find(t=>t.language===e))?t:null},[a]),f=(0,n.useCallback)(e=>a.some(t=>t.language===e),[a]),m=(0,n.useCallback)((e,t)=>{c(r=>{let n=r.findIndex(t=>t.language===e);if(-1===n)return[...r,{...s(e),...t}];let i=[...r];return i[n]={...i[n],...t},i})},[s]),g=(0,n.useCallback)(e=>{c(t=>t.some(t=>t.language===e)?t:[...t,s(e)]),d(e)},[s]),b=(0,n.useCallback)(e=>{c(t=>t.filter(t=>t.language!==e)),d(t=>t===e?l:t)},[l]),y=(0,n.useMemo)(()=>i.filter(e=>!h.includes(e.code)),[i,h]);return{translations:a,languages:h,activeLanguage:u,setActiveLanguage:d,getTranslation:p,hasTranslation:f,setTranslation:m,addLanguage:g,removeLanguage:b,availableLanguages:y}}},58635:(e,t,r)=>{"use strict";r.d(t,{TIMELINE_TONE_CLASS:()=>p,TimelineBoard:()=>f});var n=r(95155),i=r(12115),o=r(17787),s=r(27587),l=r(40745),a=r(43589),c=r(38855),u=r(45412),d=r(71012);let h={neutral:"bg-slate-400/25 border-slate-400/60 text-foreground",pending:"bg-amber-500/25 border-amber-500/70 text-foreground",confirmed:"bg-sky-500/25 border-sky-500/70 text-foreground",active:"bg-emerald-500/35 border-emerald-500 text-foreground",done:"bg-muted border-muted-foreground/30 text-muted-foreground",blocked:"bg-[repeating-linear-gradient(135deg,var(--tw-gradient-from,rgba(120,120,120,0.25))_0_6px,transparent_6px_12px)] border-muted-foreground/40 text-muted-foreground",cancelled:"bg-red-500/15 border-red-500/50 text-muted-foreground line-through"},p=h;function f(e){var t;let{items:r,lanes:s,getLaneId:h,getInterval:p,getBar:f,window:b,ticks:y,onMove:v,onReschedule:x,snapMinutes:k=15,timeDragThresholdPx:w=16,formatInstant:C,onItemClick:E,now:A,loading:S=!1,rollbackErrorMessage:M,emptyLabel:D,footer:N,compact:T=!1,highlight:j,highlightLabel:_,onLaneSelect:F,selectedLaneId:L=null,laneHeaderWidth:R,activationDistance:I=8,touchActivationDelay:O=200,touchActivationTolerance:z=5}=e,B=(0,u.b)(),P=T?22:30,$=null!=R?R:T?"9rem":"11rem",H=!!v||!!x,q=!!x,K=!!F,V=(0,i.useId)(),U=(0,i.useCallback)(e=>"".concat(V,"-").concat(e),[V]),W=(0,i.useRef)(null),J=(0,i.useMemo)(()=>K?s.filter(e=>!1!==e.selectable).map(e=>e.id):[],[s,K]),[G,Z]=(0,i.useState)(null),Y=G&&J.includes(G)?G:L&&J.includes(L)?L:null!=(t=J[0])?t:null;(0,i.useEffect)(()=>{var e;
9K&&Y&&(null==(e=document.getElementById(U(Y)))||e.scrollIntoView({block:"nearest"}))},[Y,U,K]);let X=(0,i.useCallback)(e=>{if(!K||0===J.length)return;let t=Y?J.indexOf(Y):-1,r=t=>{e.preventDefault();let r=Math.max(0,Math.min(t,J.length-1));Z(J[r])};switch(e.key){case"ArrowDown":r(t+1);break;case"ArrowUp":r(t-1);break;case"Home":r(0);break;case"End":r(J.length-1);break;case"Enter":case" ":if(!Y)break;e.preventDefault(),null==F||F(Y)}},[Y,F,J,K]),Q=(0,i.useMemo)(()=>{if(!j)return null;let e=(0,d.Nu)(b,j.start),t=(0,d.Nu)(b,j.end);if(t<=0||e>=100)return null;let r=Math.max(0,e);return{left:r,width:Math.max(Math.min(100,t)-r,.5)}},[j,b]),ee=(0,i.useMemo)(()=>{let e;return s.map(t=>{let r=t.section&&t.section!==e?t.section:void 0;return e=t.section,{lane:t,section:r}})},[s]),[et,er]=(0,i.useState)(new Map),[en,ei]=(0,i.useState)(new Map),[eo,es]=(0,i.useState)(null),[el,ea]=(0,i.useState)(0),ec=(0,i.useRef)(null),eu=(0,i.useRef)(0),[ed,eh]=(0,i.useState)(""),ep=(0,i.useRef)(null),ef=(0,i.useRef)(new Map),em=(0,o.FR)((0,o.MS)(o.cA,{activationConstraint:{distance:I}}),(0,o.MS)(o.IG,{activationConstraint:{delay:O,tolerance:z}}),(0,o.MS)(o.uN)),eg=(0,i.useMemo)(()=>{let e=new Map;for(let t of r)e.set(t.id,t);return e},[r]),eb=(0,i.useCallback)(e=>{var t;let r=et.get(e.id);return void 0!==r?r:null!=(t=h(e))?t:null},[et,h]),ey=(0,i.useCallback)(e=>{var t;return null!=(t=en.get(e.id))?t:p(e)},[en,p]),ev=(0,i.useCallback)(e=>{let t=ey(e);if(!t||0===el||eo!==e.id)return t;let r=(0,d.Qx)(t.start,el),n=(0,d.Qx)(t.end,el);return r&&n?{start:r,end:n}:t},[ey,el,eo]);(0,i.useEffect)(()=>{ei(e=>{if(0===e.size)return e;let t=null;for(let[r,n]of e){let i=eg.get(r);if(!i)continue;let o=p(i);o&&o.start===n.start&&o.end===n.end&&(t||(t=new Map(e)),t.delete(r))}return null!=t?t:e})},[r,eg,p]),(0,i.useEffect)(()=>{er(e=>{if(0===e.size)return e;let t=null;for(let[n,i]of e){var r;let o=eg.get(n);o&&(null!=(r=h(o))?r:null)===i&&(t||(t=new Map(e)),t.delete(n))}return null!=t?t:e})},[r,eg,h]);let ex=(0,i.useMemo)(()=>{let e=new Map;
9for(let t of s)e.set(t.id,[]);let t=[];for(let n of r){let r=eb(n);if(!r||!e.has(r))continue;let i=ev(n);if(!i)continue;let o=(0,d.Kj)(b,i.start,i.end);o&&t.push({laneId:r,item:n,start:new Date(i.start).getTime(),end:new Date(i.end).getTime(),geometry:o})}t.sort((e,t)=>e.start-t.start);let n=new Map;for(let r of t){var i;let t=r.geometry,o=null!=(i=n.get(r.laneId))?i:[],s=o.findIndex(e=>e<=r.start);-1===s?(s=o.length,o.push(r.end)):o[s]=r.end,n.set(r.laneId,o),e.get(r.laneId).push({item:r.item,row:s,geometry:t})}return e},[s,r,eb,ev,b]),ek=(0,i.useMemo)(()=>{let e=new Map;for(let t of s)e.set(t.id,t.title);return e},[s]),ew=(0,i.useCallback)(e=>{var t;return e?null!=(t=ek.get(e))?t:e:""},[ek]),eC=(0,i.useCallback)(e=>{ef.current.set(e,Date.now()),es(null),ea(0)},[]),eE=(0,i.useCallback)(e=>{var t,r;let n=String(e.active.id),i=eg.get(n);ep.current=i?eb(i):null,eu.current=null!=(r=null==(t=ec.current)?void 0:t.getBoundingClientRect().width)?r:0,ea(0),es(n)},[eg,eb]),eA=(0,i.useCallback)(e=>q?(0,d.Bt)(b,e,eu.current,k,w):0,[q,b,k,w]),eS=(0,i.useCallback)(e=>{q&&ea(eA(e.delta.x))},[q,eA]),eM=(0,i.useCallback)((e,t,r)=>{er(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r}),ei(t=>{if(!t.has(e))return t;let r=new Map(t);return r.delete(e),r}),(0,a.Kf)(null!=M?M:B("core.timeline.couldNotMove"),r instanceof Error?r.message:void 0),eh((0,c.G)(B("core.timeline.a11y.rollback"),{from:ew(t)}))},[M,B,ew]),eD=(0,i.useCallback)(e=>{let t=String(e.active.id),r=eA(e.delta.x);eC(t);let n=eg.get(t);if(!n)return;let i=eb(n);if(!i)return;let o=e.over?String(e.over.id):null,l=o?s.find(e=>e.id===o):null,a=l&&(null==l?void 0:l.droppable)!==!1&&o?o:i,c=a!==i;if(0!==r&&x){let e=ey(n),o=e&&(0,d.Qx)(e.start,r),s=e&&(0,d.Qx)(e.end,r);if(!e||!o||!s)return;ei(e=>new Map(e).set(t,{start:o,end:s})),c&&er(e=>new Map(e).set(t,a)),Promise.resolve(x(n,{start:o,end:s,laneId:a},{start:e.start,end:e.end,laneId:i})).catch(e=>eM(t,i,e));return}v&&c&&(er(e=>new Map(e).set(t,a)),Promise.resolve(v(n,i,a)).catch(e=>eM(t,i,e)))},[eC,eA,v,x,eg,eb,ey,s,eM]),eN=(0,i.useCallback)(e=>eC(String(e.active.id)),[eC]);(0,i.useEffect)(()=>{if(!ed)return;let e=setTimeout(()=>eh(""),4e3);return()=>clearTimeout(e)},[ed]);let eT=(0,i.useCallback)(e=>{let t=ef.current.get(e);return void 0!==t&&Date.now()-t<250},[]),ej=(0,i.useMemo)(()=>({onDragStart:()=>(0,c.G)(B("core.timeline.a11y.dragStart"),{from:ew(ep.current)}),onDragOver:e=>{let{over:t}=e;return t?(0,c.G)(B("core.timeline.a11y.dragOver"),{lane:ew(String(t.id))}):B("core.timeline.a11y.dragOverNone")},onDragEnd:e=>{var t;let{over:r}=e,n=null!=(t=ep.current)?t:"";return r&&String(r.id)!==n?(0,c.G)(B("core.timeline.a11y.dragEnd"),{from:ew(n),to:ew(String(r.id))}):(0,c.G)(B("core.timeline.a11y.dragEndSameLane"),{from:ew(n)})},onDragCancel:()=>{var e;return(0,c.G)(B("core.timeline.a11y.dragCancel"),{from:ew(null!=(e=ep.current)?e:"")})}}),[B,ew]),e_=(0,i.useMemo)(()=>({draggable:B("core.timeline.a11y.instructions")}),[B]),eF=A?(0,d.Nu)(b,A):-1,eL=(0,i.useMemo)(()=>{if(!eo||0===el||!C)return null;let e=eg.get(eo),t=e?ey(e):null,r=t&&(0,d.Qx)(t.start,el);return r?C(new Date(r)):null},[eo,el,C,eg,ey]),eR=(0,n.jsxs)("div",{className:"min-w-0 overflow-hidden rounded-md border bg-background",children:[(0,n.jsx)(m,{ticks:y,headerWidth:$,label:B("core.timeline.laneColumn"),compact:T,highlight:Q,highlightLabel:null!=_?_:B("core.timeline.highlight"),trackRef:ec}),(0,n.jsxs)("div",{className:"relative",children:[eF>=0&&eF<=100&&(0,n.jsx)("div",{className:"pointer-events-none absolute inset-y-0 z-20 w-px bg-sky-500",style:{left:"calc(".concat($," + (100% - ").concat($,") * ").concat(eF/100,")")},children:!T&&(0,n.jsx)("span",{className:"absolute top-0 left-1 rounded-sm bg-sky-500 px-1 text-[9px] font-medium text-white",children:B("core.timeline.now")})}),0===s.length?(0,n.jsx)("div",{className:"px-4 py-10 text-center text-xs text-muted-foreground",children:S?B("core.timeline.loading"):null!=D?D:B("core.timeline.empty")}):(0,n.jsx)("div",{ref:W,role:K?"listbox":void 0,"aria-label":K?B("core.timeline.laneColumn"):void 0,"aria-activedescendant":K&&Y?U(Y):void 0,tabIndex:K?0:void 0,onKeyDown:K?X:void 0,className:(0,l.cn)(K&&"outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:ee.map(e=>{var t;let{lane:r,section:i}=e;return(0,n.jsxs)("div",{children:[i?(0,n.jsx)("div",{className:"border-b bg-muted/50 px-3 py-1 text-[11px] text-muted-foreground",children:i}):null,(0,n.jsx)(g,{lane:r,domId:U(r.id),packed:null!=(t=ex.get(r.id))?t:[],ticks:y,headerWidth:$,rowHeight:P,compact:T,droppable:H&&!1!==r.droppable,draggable:H,getBar:f,onItemClick:E,activeDragId:eo,wasDraggedRecently:eT,dragLabel:eL,highlight:Q,selecting:K,selectable:!1!==r.selectable,isCursor:Y===r.i
9d,isSelected:L===r.id,onSelect:F&&!1!==r.selectable?()=>{Z(r.id),F(r.id)}:void 0})]},r.id)})})]}),N?(0,n.jsxs)("div",{className:"flex border-t bg-muted/40",children:[(0,n.jsx)("div",{className:"shrink-0 border-r px-3 py-1.5 text-[11px] text-muted-foreground",style:{width:$},"aria-hidden":"true"}),(0,n.jsx)("div",{className:"min-w-0 flex-1",children:N})]}):null]});return(0,n.jsxs)(o.Mp,{sensors:em,collisionDetection:o.TT,onDragStart:eE,onDragMove:eS,onDragEnd:eD,onDragCancel:eN,accessibility:{announcements:ej,screenReaderInstructions:e_},children:[eR,(0,n.jsx)("div",{role:"status","aria-live":"assertive","aria-atomic":"true",className:"sr-only",children:ed})]})}function m(e){let{ticks:t,headerWidth:r,label:i,compact:o,highlight:s,highlightLabel:a,trackRef:c}=e;return(0,n.jsxs)("div",{className:"flex border-b",children:[(0,n.jsx)("div",{className:"shrink-0 border-r px-3 py-2 text-[10px] tracking-wide text-muted-foreground uppercase",style:{width:r},children:i}),(0,n.jsxs)("div",{ref:c,className:(0,l.cn)("relative flex min-w-0 flex-1 items-end",o?"h-6":"h-8"),children:[s?(0,n.jsx)("div",{className:"pointer-events-none absolute inset-y-0 z-10 border-x-2 border-foreground
9/70 bg-foreground/[0.06]",style:{left:"".concat(s.left,"%"),width:"".concat(s.width,"%")},children:(0,n.jsx)("span",{className:"absolute inset-x-0 top-0 truncate text-center text-[10px] text-foreground",children:a})}):null,t.map(e=>(0,n.jsx)("div",{className:(0,l.cn)("min-w-0 flex-1 border-l px-1 pb-1 text-[10px] whitespace-nowrap",e.major?"border-border text-foreground":"border-border/40 text-muted-foreground"),children:(0,n.jsx)("span",{className:(0,l.cn)(t.length>12&&!e.major&&"hidden sm:inline"),children:e.label})},e.at.toISOString()))]})]})}function g(e){let{lane:t,domId:r,packed:i,ticks:s,headerWidth:a,rowHeight:c,compact:u,droppable:d,draggable:h,getBar:p,onItemClick:f,activeDragId:m,wasDraggedRecently:g,dragLabel:y,highlight:v,selecting:x,selectable:k,isCursor:w,isSelected:C,onSelect:E}=e,{setNodeRef:A,isOver:S}=(0,o.zM)({id:t.id,disabled:!d}),M=Math.max(1,...i.map(e=>e.row+1));return(0,n.jsxs)("div",{id:x?r:void 0,role:x?"option":void 0,"aria-selected":x?C:void 0,"aria-disabled":!!x&&!k||void 0,onClick:E,className:(0,l.cn)("flex border-b last:border-b-0",t.unassigned&&"bg-amber-500/[0.06]",S&&d&&"bg-primary/10",x&&!k&&"opacity-55",x&&k&&"cursor-pointer hover:bg-muted/40",w&&"bg-muted/50 shadow-[inset_3px_0_0_0_var(--color-primary,currentColor)]",C&&"bg-primary/[0.07]"),children:[(0,n.jsxs)("div",{className:"shrink-0 border-r px-3 py-2",style:{width:a},children:[(0,n.jsx)("div",{className:(0,l.cn)("truncate text-[13px]",t.inactive&&"text-muted-foreground line-through",t.unassigned&&"font-medium"),title:t.title,children:t.title}),t.meta?(0,n.jsx)("div",{className:"truncate text-[11px] text-muted-foreground",children:t.meta}):null]}),(0,n.jsxs)("div",{ref:A,className:"min-w-0 flex-1",role:x?void 0:"group","aria-label":x?void 0:t.title,children:[(0,n.jsxs)("div",{className:"relative",style:{height:M*c+8},children:[(0,n.jsx)("div",{className:"absolute inset-0 flex","aria-hidden":"true",children:s.map(e=>(0,n.jsx)("div",{className:(0,l.cn)("min-w-0 flex-1 border-l",e.major?"border-border":"border-border/40")},e.at.toISOString()))}),v?(0,n.jsx)("div",{className:"pointer-events-none absolute inset-y-0 border-x-2 border-foreground
9/70 bg-foreground/[0.05]",style:{left:"".concat(v.left,"%"),width:"".concat(v.width,"%")},"aria-hidden":"true"}):null,i.map(e=>{let{item:t,row:r,geometry:i}=e;return(0,n.jsx)(b,{id:t.id,bar:p(t),geometry:i,top:r*c+4,height:c-4,draggable:h,isActiveDrag:m===t.id,dragLabel:m===t.id?y:null,onActivate:f?()=>f(t):void 0,wasDraggedRecently:g},t.id)})]}),w&&t.note?(0,n.jsx)("p",{className:"truncate border-t px-2 py-1 text-[11px] text-muted-foreground",children:t.note}):null]})]})}function b(e){var t,r;let{id:i,bar:a,geometry:c,top:u,height:d,draggable:p,isActiveDrag:f,dragLabel:m,onActivate:g,wasDraggedRecently:b}=e,{attributes:y,listeners:v,setNodeRef:x,transform:k,isDragging:w}=(0,o.PM)({id:i,disabled:!p}),C={left:"".concat(c.left,"%"),width:"".concat(c.width,"%"),top:u,height:d,lineHeight:"".concat(d,"px"),transform:s.Ks.Translate.toString(k),opacity:w?.6:1},E=h[null!=(t=a.tone)?t:"neutral"];return(0,n.jsxs)("div",{ref:x,style:C,...p?y:{},...p&&null!=v?v:{},...p?{}:{role:g?"button":void 0,tabIndex:g?0:void 0},"data-dragging":f||w||void 0,title:null!=(r=a.title)?r:a.label,onClick:g?e=>{e.stopPropagation(),b(i)||g()}:void 0,onKeyDown:g?e=>{"Enter"===e.key&&(e.stopPropagation(),w||f||b(i)||(e.preventDefault(),g()))}:void 0,className:(0,l.cn)("absolute overflow-hidden rounded-sm border px-1.5 text-left text-[11px] whitespace-nowrap","outline-none focus-visible:ring-2 focus-visible:ring-ring",E,a.provisional&&"border-dashed",c.clippedStart&&"rounded-l-none border-l-0",c.clippedEnd&&"rounded-r-none border-r-0",p&&"cursor-grab active:cursor-grabbing",g&&"hover:opacity-80",f&&"ring-2 ring-ring"),children:[c.width>6?a.label:"",m?(0,n.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute -top-5 left-0 rounded-sm bg-foreground px-1 text-[10px] leading-4 font-medium tabular-nums whitespace-nowrap text-background",children:m}):null]})}},60466:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});let n={en:{"core.languageSelector.addLanguage":"Add language","core.adminTable.deleteTitle":"Delete item","core.adminTable.deleteDescription":"Are you sure you want to delete this item? This action cannot be undone.","core.adminTable.cancel":"Cancel","core.adminTable.deleteConfirm":"Delete","core.adminList.eyebrow":"Administration","core.adminList.refresh":"Refresh","core.adminList.searchPlaceholder":"Searchâ¦","core.adminList.searchPlaceholderForResource":"Search {plural}â¦","core.adminList.newItem":"New {singular}","core.adminList.loadMore":"Load more","core.adminList.new":"New","core.adminList.sort":"Sort","core.adminList.deleteItem":"Delete {singular}","core.adminFilter.dateFrom":"From","core.adminFilter.dateTo":"To","core.adminDetail.loading":"Loadingâ¦","core.adminDetail.notFound":"Not found.","core.adminDetail.backTo":"Back to {plural}","core.adminDetail.delete":"Delete","core.adminDetail.cancel":"Cancel","core.adminDetail.save":"Save","core.adminDetail.saving":"Savingâ¦","core.adminDetail.moreActions":"More actions","core.adminDetail.duplicate":"Duplicate","core.adminDetail.duplicating":"Duplicatingâ¦","core.adminDetail.unsavedChanges":"Unsaved changes","core.adminDetail.unsavedConfirm":"You have unsaved changes. Leave this page?","core.adminCreate.create":"Create","core.adminCreate.cancel":"Cancel","core.adminCreate.titleLabel":"Title","core.adminCreate.slugLabel":"Slug","core.adminCreate.languageLabel":"Language","core.adminCreate.titleRequired":"Title is required.","core.adminCreate.slugRequired":"Slug is required.","core.adminCreate.fieldRequired":"This field is required.","core.adminCreate.slugInUse":"This slug is already in use.","core.adminCreate.couldNotCreate":"Could not create item.","core.adminBulk.selected":"{count} selected","core.adminBulk.clear":"Clear","core.adminBulk.actions":"Actions","core.adminExport.export":"Export","core.adminExport.started":"Export started.","core.adminExport.failed":"Could not start the export.","core.adminExport.selectedSummary":"{count} selected","core.adminExport.lastMonths":"Last {months} months","core.kanban.groupByLabel":"Group by","core.kanban.emptyColumn":"No items in this stage","core.kanban.errorTitle":"Could not load board","core.kanban.errorDescription":"The board failed to load. Try again â if it keeps failing, check your connection.","core.kanban.errorRetry":"Try again","core.kanban.couldNotMoveCard":"Could not move card.","core.kanban.a11y.instructions":"To pick up a card, press space or enter. Use arrow keys to move between columns. Press space or enter again to drop, or escape to cancel.","core.kanban.a11y.dragStart":"Picked up card in column {from}.","core.kanban.a11y.dragOver":"Card is over column {column}.","core.kanban.a11y.dragOverNone":"Card is no longer over a column.","core.kanban.a11y.dragEnd":"Moved card from column {from} to column {to}.","core.kanban.a11y.dragEndSameColumn":"Card returned to column {from}.","core.kanban.a11y.dragCancel":"Move cancelled. Card returned to column {from}.","core.kanban.a11y.rollback":"Move could not be saved. Card returned to column {from}.","core.kanban.a11y.columnLabel":"{label}, {count} items","core.timeline.laneColumn":"Resource","core.timeline.highlight":"this job","core.timeline.now":"now","core.timeline.empty":"Nothing on the board in this window.","core.timeline.loading":"Loadingâ¦","core.timeline.couldNotMove":"Could not move it.","core.timeline.groupByLabel":"Group by","core.timeline.zoomLabel":"Zoom","core.timeline.zoomDay":"Day","core.timeline.zoomWeek":"Week","core.timeline.zoomMonth":"Month","core.timeline.previous":"Earlier","core.timeline.next":"Later","core.timeline.today":"Today","core.timeline.errorTitle":"Could not load the board","core.timeline.errorDescription":"The board failed to load. Try again â if it keeps failing, check your connection.","core.timeline.errorRetry":"Try again","core.timeline.a11y.instructions":"To pick up a bar, press space or enter. Use arrow keys to move between lanes. Press space or enter again to drop, or escape to cancel.","core.timeline.a11y.dragStart":"Picked up an item from {from}.","core.timeline.a11y.dragOver":"Item is over {lane}.","core.timeline.a11y.dragOverNone":"Item is no longer over a lane.","core.timeline.a11y.dragEnd":"Moved from {from} to {to}.","core.timeline.a11y.dragEndSameLane":"Item returned to {from}.","core.timeline.a11y.dragCancel":"Move cancelled. Item returned to {from}.","core.timeline.a11y.rollback":"The move could not be saved. Item returned to {from}.","core.editor.markdownPlaceholder":"# Write markdown here...","core.editor.modeMarkdown":"Markdown","core.editor.modeVisual":"Visual","core.editor.bold":"Bold","core.editor.italic":"Italic","core.editor.heading2":"Heading 2","core.editor.heading3":"Heading 3","core.editor.bulletList":"Bullet list","core.editor.orderedList":"Ordered list","core.editor.blockquote":"Blockquote","core.editor.codeBlock":"Code block","core.editor.link":"Link","core.editor.urlPrompt":"URL","core.editor.lead":"Lead (larger text)","core.editor.small":"Small text","core.editor.textColor":"Text color","core.editor.clearColor":"Clear color","core.editor.table.insert":"Insert table","core.editor.table.addRowBefore":"Add row above","core.editor.table.addRowAfter":"Add row below","core.editor.table.addColumnBefore":"Add column before","core.editor.table.addColumnAfter":"Add column after","core.editor.table.deleteRow":"Delete row","core.editor.table.deleteColumn":"Delete column","core.editor.table.deleteTable":"Delete table","core.editor.table.toggleHeaderRow":"Toggle header row","core.presets.empty":"No automation presets available.","core.presets.draftHint":"Presets install as drafts. Nothing runs and nothing is sent until you enable and publish it.","core.presets.checking":"Checkingâ¦","core.presets.install":"Install","core.presets.installed":"Installed","core.presets.complete":"Complete","core.presets.installing":"Installingâ¦","core.presets.installedToast":"{title} installed as a draft.","core.presets.failedToast":"Could not install {title}.","core.presets.itemsCount":"Creates {count} items","core.presets.itemsCountOne":"Creates 1 item","core.presets.partialHint":"Partly installed â {count} still missing."},de:{"core.languageSelector.addLanguage":"Sprache hinzuf\xfcgen","core.adminTable.deleteTitle":"Element l\xf6schen","core.adminTable.deleteDescription":"M\xf6chten Sie dieses Element wirklich l\xf6schen? Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden.","core.adminTable.cancel":"Abbrechen","core.adminTable.deleteConfirm":"L\xf6schen","core.adminList.eyebrow":"Verwaltung","core.adminList.refresh":"Aktualisieren","core.adminList.searchPlaceholder":"Suchenâ¦","core.adminList.searchPlaceholderForResource":"{plural} suchenâ¦","core.adminList.newItem":"Neue:r {singular}","core.adminList.loadMore":"Mehr laden","core.adminList.new":"Neu","core.adminList.sort":"Sortierung","core.adminList.deleteItem":"{singular} l\xf6schen","core.adminFilter.dateFrom":"Von","core.adminFilter.dateTo":"Bis","core.adminDetail.loading":"Wird geladenâ¦","core.adminDetail.notFound":"Nicht gefunden.","core.adminDetail.backTo":"Zur\xfcck zu {plural}","core.adminDetail.delete":"L\xf6schen","core.adminDetail.cancel":"Abbrechen","core.adminDetail.save":"Speichern","core.adminDetail.saving":"Wird gespeichertâ¦","core.adminDetail.moreActions":"Weitere Aktionen","core.adminDetail.duplicate":"Duplizieren","core.adminDetail.duplicating":"Wird dupliziertâ¦","core.adminDetail.unsavedChanges":"Ungespeicherte \xc4nderungen","core.adminDetail.unsavedConfirm":"Es gibt ungespeicherte \xc4nderungen. Diese Seite wirklich verlassen?","core.adminCreate.create":"Erstellen","core.adminCreate.cancel":"Abbrechen","core.adminCreate.titleLabel":"Titel","core.adminCreate.slugLabel":"Slug","core.adminCreate.languageLabel":"Sprache","core.adminCreate.titleRequired":"Titel ist erforderlich.","core.adminCreate.slugRequired":"Slug ist erforderlich.","core.adminCreate.fieldRequired":"Dieses Feld ist erforderlich.","core.adminCreate.slugInUse":"Dieser Slug wird bereits verwendet.","core.adminCreate.couldNotCreate":"Element konnte nicht erstellt werden.","core.adminBulk.selected":"{count} ausgew\xe4hlt","core.adminBulk.clear":"Auswahl aufheben","core.adminBulk.actions":"Aktionen","core.adminExport.export":"Exportieren","core.adminExport.started":"Export gestartet.","core.adminExport.failed":"Export konnte nicht gestartet werden.","core.adminExport.selectedSummary":"{count} ausgew\xe4hlt","core.adminExport.lastMonths":"Letzte {months} Monate","core.kanban.groupByLabel":"Gruppieren nach","core.kanban.emptyColumn":"Keine Eintr\xe4ge in dieser Phase","core.kanban.errorTitle":"Board konnte nicht geladen werden","core.kanban.errorDescription":"Das Board konnte nicht geladen werden. Versuchen Sie es erneut â wenn es weiter fehlschl\xe4gt, pr\xfcfen Sie Ihre Verbindung.","core.kanban.errorRetry":"Erneut versuchen","core.kanban.couldNotMoveCard":"Karte konnte nicht verschoben werden.","core.kanban.a11y.instructions":"Zum Aufnehmen einer Karte Leertaste oder Eingabetaste dr\xfccken. Mit den Pfeiltasten zwischen Spalten bewegen. Erneut Leertaste oder Eingabetaste zum Ablegen dr\xfccken, oder Escape zum Abbrechen.","core.kanban.a11y.dragStart":"Karte in Spalte {from} aufgenommen.","core.kanban.a11y.dragOver":"Karte \xfcber Spalte {column}.","core.kanban.a11y.dragOverNone":"Karte ist \xfcber keiner Spalte mehr.","core.kanban.a11y.dragEnd":"Karte von Spalte {from} nach Spalte {to} verschoben.","core.kanban.a11y.dragEndSameColumn":"Karte zur\xfcck in Spalte {from}.","core.kanban.a11y.dragCancel":"Verschieben abgebrochen. Karte zur\xfcck in Spalte {from}.","core.kanban.a11y.rollback":"Verschieben konnte nicht gespeichert werden. Karte zur\xfcck in Spalte {from}.","core.kanban.a11y.columnLabel":"{label}, {count} Eintr\xe4ge","core.timeline.laneColumn":"Ressource","core.timeline.highlight":"dieser Auftrag","core.timeline.now":"jetzt","core.timeline.empty":"In diesem Zeitraum steht nichts auf der Tafel.","core.timeline.loading":"Wird geladenâ¦","core.timeline.couldNotMove":"Konnte nicht verschoben werden.","core.timeline.groupByLabel":"Gruppieren nach","core.timeline.zoomLabel":"Zoom","core.timeline.zoomDay":"Tag","core.timeline.zoomWeek":"Woche","core.timeline.zoomMonth":"Monat","core.timeline.previous":"Fr\xfcher","core.timeline.next":"Sp\xe4ter","core.timeline.today":"Heute","core.timeline.errorTitle":"Tafel konnte nicht geladen werden","core.timeline.errorDescription":"Die Tafel konnte nicht geladen werden. Versuchen Sie es erneut â wenn es weiterhin fehlschl\xe4gt, pr\xfcfen Sie Ihre Verbindung.","core.timeline.errorRetry":"Erneut versuchen","core.timeline.a11y.instructions":"Zum Aufnehmen einer Leiste Leertaste oder Eingabetaste dr\xfccken. Mit den Pfeiltasten zwischen Spuren wechseln. Zum Ablegen erneut Leertaste oder Eingabetaste dr\xfccken, zum Abbrechen Escape.","core.timeline.a11y.dragStart":"Eintrag aus {from} aufgenommen.","core.timeline.a11y.dragOver":"Eintrag befindet sich \xfcber {lane}.","core.timeline.a11y.dragOverNone":"Eintrag befindet sich \xfcber keiner Spur mehr.","core.timeline.a11y.dragEnd":"Von {from} nach {to} verschoben.","core.timeline.a11y.dragEndSameLane":"Eintrag zur\xfcck auf {from}.","core.timeline.a11y.dragCancel":"Verschieben abgebrochen. Eintrag zur\xfcck auf {from}.","core.timeline.a11y.rollback":"Das Verschieben konnte nicht gespeichert werden. Eintrag zur\xfcck auf {from}.","core.editor.markdownPlaceholder":"# Markdown hier schreiben...","core.editor.modeMarkdown":"Markdown","core.editor.modeVisual":"Visuell","core.editor.bold":"Fett","core.editor.italic":"Kursiv","core.editor.heading2":"\xdcberschrift 2","core.editor.heading3":"\xdcberschrift 3","core.editor.bulletList":"Aufz\xe4hlung","core.editor.orderedList":"Nummerierte Liste","core.editor.blockquote":"Zitat","core.editor.codeBlock":"Codeblock","core.editor.link":"Link","core.editor.urlPrompt":"URL","core.editor.lead":"Lead (gr\xf6\xdfer)","core.editor.small":"Kleiner Text","core.editor.textColor":"Textfarbe","core.editor.clearColor":"Farbe entfernen","core.editor.table.insert":"Tabelle einf\xfcgen","core.editor.table.addRowBefore":"Zeile oberhalb einf\xfcgen","core.editor.table.addRowAfter":"Zeile unterhalb einf\xfcgen","core.editor.table.addColumnBefore":"Spalte links einf\xfcgen","core.editor.table.addColumnAfter":"Spalte rechts einf\xfcgen","core.editor.table.deleteRow":"Zeile l\xf6schen","core.editor.table.deleteColumn":"Spalte l\xf6schen","core.editor.table.deleteTable":"Tabelle l\xf6schen","core.editor.table.toggleHeaderRow":"Kopfzeile umschalten","core.presets.empty":"Keine Automatisierungs-Vorlagen verf\xfcgbar.","core.presets.draftHint":"Vorlagen werden als Entwurf installiert. Es l\xe4uft nichts und es wird nichts versendet, bis du sie aktivierst und ver\xf6ffentlichst.","core.presets.checking":"Pr\xfcfeâ¦","core.presets.install":"Installieren","core.presets.installed":"Installiert","core.presets.complete":"Vervollst\xe4ndigen","core.presets.installing":"Installiereâ¦","core.presets.installedToast":"{title} als Entwurf installiert.","core.presets.failedToast":"{title} konnte nicht installiert werden.","core.presets.itemsCount":"Erstellt {count} Eintr\xe4ge","core.presets.itemsCountOne":"Erstellt 1 Eintrag","core.presets.partialHint":"Teilweise installiert â {count} fehlt noch."},ru:{"core.languageSelector.addLanguage":"ÐобавиÑÑ ÑзÑк","core.adminTable.deleteTitle":"УдалиÑÑ ÑлеменÑ","core.adminTable.deleteDescription":"ÐÑ ÑвеÑенÑ, ÑÑо Ñ
оÑиÑе ÑдалиÑÑ ÑÑÐ¾Ñ ÑлеменÑ? ÐÑо дейÑÑвие нелÑÐ·Ñ Ð¾ÑмениÑÑ.","core.adminTable.cancel":"ÐÑмена","core.adminTable.deleteConfirm":"УдалиÑÑ","core.adminList.eyebrow":"ÐдминиÑÑÑиÑование","core.adminList.refresh":"ÐбновиÑÑ","core.adminList.searchPlaceholder":"ÐоиÑкâ¦","core.adminList.searchPlaceholderForResource":"ÐоиÑк: {plural}â¦","core.adminList.newItem":"СоздаÑÑ: {singular}","core.adminList.loadMore":"ÐагÑÑзиÑÑ ÐµÑÑ","core.adminList.new":"СоздаÑÑ","core.adminList.sort":"СоÑÑиÑовка","core.adminList.deleteItem":"УдалиÑÑ: {singular}","core.adminFilter.dateFrom":"С","core.adminFilter.dateTo":"Ðо","core.adminDetail.loading":"ÐагÑÑзкаâ¦","core.adminDetail.notFound":"Ðе найдено.","core.adminDetail.backTo":"Ðаза
9д к {plural}","core.adminDetail.delete":"УдалиÑÑ","core.adminDetail.cancel":"ÐÑмена","core.adminDetail.save":"СоÑ
ÑаниÑÑ","core.adminDetail.saving":"СоÑ
Ñанениеâ¦","core.adminDetail.moreActions":"ÐÑÑгие дейÑÑвиÑ","core.adminDetail.duplicate":"ÐÑблиÑоваÑÑ","core.adminDetail.duplicating":"ÐÑблиÑованиеâ¦","core.adminDetail.unsavedChanges":"ÐеÑоÑ
ÑанÑннÑе изменениÑ","core.adminDetail.unsavedConfirm":"У Ð²Ð°Ñ ÐµÑÑÑ Ð½ÐµÑоÑ
ÑанÑннÑе изменениÑ. ÐокинÑÑÑ ÑÑÑаниÑÑ?","core.adminCreate.create":"СоздаÑÑ","core.adminCreate.cancel":"ÐÑмена","core.adminCreate.titleLabel":"Ðазвание","core.adminCreate.slugLabel":"Slug","core.adminCreate.languageLabel":"ЯзÑк","core.adminCreate.titleRequired":"Ðазвание обÑзаÑелÑно.","core.adminCreate.slugRequired":"Slug обÑзаÑелен.","core.adminCreate.fieldRequired":"ÐÑо поле обÑзаÑелÑно.","core.adminCreate.slugInUse":"ÐÑÐ¾Ñ slug Ñже иÑполÑзÑеÑÑÑ.","core.adminCreate.couldNotCreate":"Ðе ÑдалоÑÑ ÑоздаÑÑ ÑлеменÑ.","core.adminBulk.selected":"ÐÑбÑано: {count}","core.adminBulk.clear":"СнÑÑÑ Ð²Ñделение","core.adminBulk.actions":"ÐейÑÑвиÑ","core.adminExport.export":"ÐкÑпоÑÑ","core.adminExport.started":"ÐкÑпоÑÑ Ð·Ð°Ð¿ÑÑен.","core.adminExport.failed":"Ðе ÑдалоÑÑ Ð·Ð°Ð¿ÑÑÑиÑÑ ÑкÑпоÑÑ.","core.adminExport.selectedSummary":"ÐÑбÑано: {count}","core.adminExport.lastMonths":"ÐоÑледние {months} меÑ.","core.kanban.groupByLabel":"ÐÑÑппиÑоваÑÑ Ð¿Ð¾","core.kanban.emptyColumn":"ÐÐµÑ ÑлеменÑов на ÑÑом ÑÑапе","core.kanban.errorTitle":"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð´Ð¾ÑкÑ","core.kanban.errorDescription":"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð´Ð¾ÑкÑ. ÐопÑобÑйÑе Ñнова â еÑли оÑибка повÑоÑÑеÑÑÑ, пÑовеÑÑÑе Ñоединение.","core.kanban.errorRetry":"ÐовÑоÑиÑÑ","core.kanban.couldNotMoveCard":"Ðе ÑдалоÑÑ Ð¿ÐµÑемеÑÑиÑÑ ÐºÐ°ÑÑоÑкÑ.","core.kanban.a11y.instructions":"ЧÑÐ¾Ð±Ñ Ð¿Ð¾Ð´Ð½ÑÑÑ ÐºÐ°ÑÑоÑкÑ, нажмиÑе пÑобел или ввод. ÐÑполÑзÑйÑе ÑÑÑелки Ð´Ð»Ñ Ð¿ÐµÑемеÑÐµÐ½Ð¸Ñ Ð¼ÐµÐ¶Ð´Ñ ÐºÐ¾Ð»Ð¾Ð½ÐºÐ°Ð¼Ð¸. ÐажмиÑе пÑобел или ввод Ñнова, ÑÑÐ¾Ð±Ñ Ð¾ÑпÑÑÑиÑÑ, или escape, ÑÑÐ¾Ð±Ñ Ð¾ÑмениÑÑ.","core.kanban.a11y.dragStart":"ÐаÑÑоÑка взÑÑа из колонки {from}.","core.kanban.a11y.dragOver":"ÐаÑÑоÑка над колонкой {column}.","core.kanban.a11y.dragOverNone":"ÐаÑÑоÑка болÑÑе не над колонкой.","core.kanban.a11y.dragEnd":"ÐаÑÑоÑка пеÑемеÑена из колонки {from} в ÐºÐ¾Ð»Ð¾Ð½ÐºÑ {to}.","core.kanban.a11y.dragEndSameColumn":"ÐаÑÑоÑка возвÑаÑена в ÐºÐ¾Ð»Ð¾Ð½ÐºÑ {from}.","core.kanban.a11y.dragCancel":"ÐеÑемеÑение оÑменено. ÐаÑÑоÑка возвÑаÑена в ÐºÐ¾Ð»Ð¾Ð½ÐºÑ {from}.","core.kanban.a11y.rollback":"Ðе ÑдалоÑÑ ÑоÑ
ÑаниÑÑ Ð¿ÐµÑемеÑение. ÐаÑÑоÑка возвÑаÑена в ÐºÐ¾Ð»Ð¾Ð½ÐºÑ {from}.","core.kanban.a11y.columnLabel":"{label}, {count} ÑлеменÑов","core.timeline.laneColumn":"РеÑÑÑÑ","core.timeline.highlight":"ÑÑа заÑвка","core.timeline.now":"ÑейÑаÑ","core.timeline.empty":"Ð ÑÑом окне на доÑке ниÑего неÑ.","core.timeline.loading":"ÐагÑÑзкаâ¦","core.timeline.couldNotMove":"Ðе ÑдалоÑÑ Ð¿ÐµÑемеÑÑиÑÑ.","core.timeline.groupByLabel":"ÐÑÑппиÑоваÑÑ Ð¿Ð¾","core.timeline.zoomLabel":"ÐаÑÑÑаб","core.timeline.zoomDay":"ÐенÑ","core.timeline.zoomWeek":"ÐеделÑ","core.timeline.zoomMonth":"ÐеÑÑÑ","core.timeline.previous":"РанÑÑе","core.timeline.next":"Ðозже","core.timeline.today":"СегоднÑ","core.timeline.errorTitle":"Ð
9е ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð´Ð¾ÑкÑ","core.timeline.errorDescription":"ÐоÑÐºÑ Ð½Ðµ ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ. ÐовÑоÑиÑе попÑÑÐºÑ â еÑли оÑибка повÑоÑÑеÑÑÑ, пÑовеÑÑÑе Ñоединение.","core.timeline.errorRetry":"ÐовÑоÑиÑÑ","core.timeline.a11y.instructions":"ЧÑÐ¾Ð±Ñ Ð²Ð·ÑÑÑ Ð¿Ð¾Ð»Ð¾ÑÑ, нажмиÑе пÑобел или ввод. СÑÑелками пеÑеÑ
одиÑе Ð¼ÐµÐ¶Ð´Ñ Ð´Ð¾Ñожками. ÐажмиÑе пÑобел или ввод, ÑÑÐ¾Ð±Ñ Ð¾ÑпÑÑÑиÑÑ, escape â ÑÑÐ¾Ð±Ñ Ð¾ÑмениÑÑ.","core.timeline.a11y.dragStart":"ÐÐ»ÐµÐ¼ÐµÐ½Ñ Ð²Ð·ÑÑ Ð¸Ð· {from}.","core.timeline.a11y.dragOver":"ÐÐ»ÐµÐ¼ÐµÐ½Ñ Ð½Ð°Ð´ {lane}.","core.timeline.a11y.dragOverNone":"ÐÐ»ÐµÐ¼ÐµÐ½Ñ Ð±Ð¾Ð»ÑÑе не над доÑожкой.","core.timeline.a11y.dragEnd":"ÐеÑемеÑено из {from} в {to}.","core.timeline.a11y.dragEndSameLane":"ÐÐ»ÐµÐ¼ÐµÐ½Ñ Ð²Ð¾Ð·Ð²ÑаÑÑн в {from}.","core.timeline.a11y.dragCancel":"ÐеÑемеÑение оÑменено. ÐÐ»ÐµÐ¼ÐµÐ½Ñ Ð²Ð¾Ð·Ð²ÑаÑÑн в {from}.","core.timeline.a11y.rollback":"Ðе ÑдалоÑÑ ÑоÑ
ÑаниÑÑ Ð¿ÐµÑемеÑение. ÐÐ»ÐµÐ¼ÐµÐ½Ñ Ð²Ð¾Ð·Ð²ÑаÑÑн в {from}.","core.editor.markdownPlaceholder":"# ÐиÑиÑе Markdown здеÑÑ...","core.editor.modeMarkdown":"Markdown","core.editor.modeVisual":"ÐизÑалÑно","core.editor.bold":"ÐиÑнÑй","core.editor.italic":"ÐÑÑÑив","core.editor.heading2":"Ðаголовок 2","core.editor.heading3":"Ðаголовок 3","core.editor.bulletList":"ÐаÑкиÑованнÑй ÑпиÑок","core.editor.orderedList":"ÐÑмеÑованнÑй ÑпиÑок","core.editor.blockquote":"ЦиÑаÑа","core.editor.codeBlock":"Ðлок кода","core.editor.link":"СÑÑлка","core.editor.urlPrompt":"URL","core.editor.lead":"Lead (кÑÑпнее)","core.editor.small":"Ðелкий ÑекÑÑ","core.editor.textColor":"Ð¦Ð²ÐµÑ ÑекÑÑа","core.editor.clearColor":"ÐÑиÑÑиÑÑ ÑвеÑ","core.editor.table.insert":"ÐÑÑавиÑÑ ÑаблиÑÑ","core.editor.table.addRowBefore":"ÐобавиÑÑ ÑÑÑÐ¾ÐºÑ Ð²ÑÑе","core.editor.table.addRowAfter":"ÐобавиÑÑ ÑÑÑÐ¾ÐºÑ Ð½Ð¸Ð¶Ðµ","core.editor.table.addColumnBefore":"ÐобавиÑÑ ÑÑÐ¾Ð»Ð±ÐµÑ Ñлева","core.editor.table.addColumnAfter":"ÐобавиÑÑ ÑÑÐ¾Ð»Ð±ÐµÑ ÑпÑава","core.editor.table.deleteRow":"УдалиÑÑ ÑÑÑокÑ","core.editor.table.deleteColumn":"УдалиÑÑ ÑÑолбеÑ","core.editor.table.deleteTable":"УдалиÑÑ ÑаблиÑÑ","core.editor.table.toggleHeaderRow":"ÐеÑеклÑÑиÑÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²Ð¾Ðº","core.presets.empty":"ÐÐµÑ Ð´Ð¾ÑÑÑпнÑÑ
пÑеÑеÑов авÑомаÑизаÑии.","core.presets.draftHint":"ÐÑеÑеÑÑ ÑÑÑанавливаÑÑÑÑ ÐºÐ°Ðº ÑеÑновики. ÐиÑего не запÑÑкаеÑÑÑ Ð¸ не оÑпÑавлÑеÑÑÑ, пока Ð²Ñ Ð½Ðµ вклÑÑиÑе и не опÑбликÑеÑе иÑ
.","core.presets.checking":"ÐÑовеÑкаâ¦","core.presets.install":"УÑÑановиÑÑ","core.presets.installed":"УÑÑановлен","core.presets.complete":"ÐополниÑÑ","core.presets.installing":"УÑÑановкаâ¦","core.presets.installedToast":"{title} ÑÑÑановлен как ÑеÑновик.","core.presets.failedToast":"Ðе ÑдалоÑÑ ÑÑÑановиÑÑ {title}.","core.presets.itemsCount":"СоздаÑÑ Ð·Ð°Ð¿Ð¸Ñей: {count}","core.presets.itemsCountOne":"СоздаÑÑ 1 запиÑÑ","core.presets.partialHint":"УÑÑановлен ÑаÑÑиÑно â не Ñ
ваÑаеÑ: {count}."}}},60506:(e,t,r)=>{"use strict";r.d(t,{AdminFormLayout:()=>n.AdminDetailPage});var n=r(87882)},60986:(e,t,r)=>{"use strict";r.d(t,{MembershipChip:()=>s});var n=r(95155),i=r(35299),o=r(40745);function s(e){let{label:t,active:r,onClick:s,loading:l=!1,disabled:a=!1,className:c}=e,u=l?(0,n.jsx)(i.A,{className:"h-2.5 w-2.5 animate-spin"}):void 0!==r?(0,n.jsx)("span",{className:(0,o.cn)("h-2 w-2 rounded-full transition",r?"bg-[var(--primary)]":"bg-transparent ring-1 ring-inset ring-border")}):null,d=(0,n.jsxs)(n.Fragment,{children:[(void 0!==r||l)&&u,t]}),h=(0,o.cn)("inline-flex items-center gap-2 rounded-full border px-3 py-1.5 text-xs font-medium transition",s?!1===r?"border-border/60 text-muted-foreground hover:border-foreground
9/30 hover:text-foreground":"border-border text-foreground":"border-border text-muted-foreground",s&&"disabled:opacity-60",c);return s?(0,n.jsx)("button",{type:"button",onClick:s,disabled:a||l,className:h,children:d}):(0,n.jsx)("span",{className:h,children:d})}},61945:(e,t,r)=>{"use strict";r.d(t,{AdminTable:()=>f});var n=r(95155),i=r(20063),o=r(3998),s=r(20243),l=r(87270),a=r(98053),c=r(73457),u=r(7013),d=r(18514),h=r(71360);let p={1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3"};function f(e){let{items:t,getKey:r,columns:f,emptyIcon:m,emptyTitle:g,emptyDescription:b,loading:y,skeletonRows:v=5,onRowClick:x,editBasePath:k,onEdit:w,onDelete:C,showDelete:E,isDeleted:A,deleteTitle:S="Delete item",deleteDescription:M,cancelLabel:D="Cancel",deleteConfirmLabel:N="Delete",selection:T,bulkActionBar:j,selectRowLabel:_="Select row",selectAllLabel:F="Select all rows"}=e,L=(0,i.useRouter)(),R=!!x,I=!R&&!!(k||w||C),O=R||I,z=null!=E?E:!!C,B=!!T,P=B&&T.selected.size>0,$=R||B,H=B&&t.length>0&&t.every(e=>T.selected.has(r(e))),q=B&&t.some(e=>T.selected.has(r(e)))&&!H,K=B&&T.selected.size>0,V=e=>{if(!T)return;let t=new Set(T.selected);t.has(e)?t.delete(e):t.add(e),T.onChange(t)},U='button, a, input, select, textarea, label, [role="checkbox"], [data-no-row-nav]';return y?(0,n.jsx)("div",{className:"border border-border rounded-2xl overflow-hidden bg-card",children:(0,n.jsxs)(l.XI,{children:[(0,n.jsx)(l.A0,{children:(0,n.jsxs)(l.Hj,{children:[B&&(0,n.jsx)(l.nd,{className:"w-12",children:"\xa0"}),f.map((e,t)=>(0,n.jsx)(l.nd,{className:e.headerClassName,children:e.header},t)),O&&(0,n.jsx)(l.nd,{className:"text-right w-24",children:"\xa0"})]})}),(0,n.jsx)(l.BF,{children:Array.from({length:v}).map((e,t)=>(0,n.jsxs)(l.Hj,{children:[B&&(0,n.jsx)(l.nA,{className:"w-12 px-0",children:(0,n.jsx)(s.E,{className:"h-4 w-4 mx-auto"})}),f.map((e,t)=>(0,n.jsx)(l.nA,{className:e.cellClassName,children:(0,n.jsx)(s.E,{className:"h-4 ".concat(0===t?"w-48":t!==f.length-1||O?"w-20":"w-16 ml-auto")})},t)),O&&(0,n.jsx)(l.nA,{children:(0,n.jsx)(s.E,{className:"h-4 w-16 ml-auto"})})]},t))})]})}):0===t.length?(0,n.jsxs)("div",{className:"text-center py-16 border border-dashed border-border rounded-2xl bg-card",children:[m&&(0,n.jsx)(m,{className:"w-10 h-10 text-muted-foreground/40 mx-auto mb-3"}),(0,n.jsx)("p",{className:"text-muted-foreground font-medium",children:g}),b&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground/70 mt-1",children:b})]}):(0,n.jsxs)("div",{className:"border border-border rounded-2xl overflow-hidden relative bg-card",children:[(0,n.jsxs)(l.XI,{children:[(0,n.jsx)(l.A0,{children:(0,n.jsxs)(l.Hj,{children:[B&&(0,n.jsx)(l.nd,{className:"w-12 px-0 py-3.5 cursor-pointer",onClick:()=>{T&&(H?T.onChange(new Set):T.onChange(new Set(t.map(r))))},children:(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(c.S,{checked:!!H||!!q&&"indeterminate","aria-label":F,tabIndex:-1,className:"pointer-events-none"})})}),f.map((e,t)=>{var r;return(0,n.jsx)(l.nd,{className:"h-auto px-6 py-3.5 text-[11px] font-medium uppercase tracking-wider text-muted-foreground ".concat(null!=(r=e.headerClassName)?r:""),children:e.header},t)}),O&&(0,n.jsx)(l.nd,{className:"h-auto px-6 py-3.5 text-right w-24",children:"\xa0"})]})}),(0,n.jsx)(l.BF,{children:t.map(e=>{var t;let i=r(e),s=null!=(t=null==A?void 0:A(e))&&t,m=B&&T.selected.has(i);return(0,n.jsxs)(l.Hj,{"data-state":m?"selected":void 0,onClick:$?t=>((e,t)=>{if(!e.target.closest(U)){if(P)return void V(r(t));null==x||x(t)}})(t,e):void 0,onKeyDown:$?t=>((e,t)=>{if("Enter"===e.key&&!e.target.closest(U)){if(P)return void V(r(t));null==x||x(t)}})(t,e):void 0,tabIndex:$?0:void 0,className:"group hover:bg-muted/40 ".concat($?"cursor-pointer":""," ").concat(s?"opacity-50":""),children:[B&&(0,n.jsx)(l.nA,{className:"w-12 px-0 py-4 cursor-pointer",onClick:e=>{e.stopPropagation(),V(i)},children:(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(c.S,{checked:null!=m&&m,"aria-label":_,tabIndex:-1,className:"pointer-events-none"})})}),f.map((t,r)=>{var i;return(0,n.jsx)(l.nA,{className:"px-6 py-4 ".concat(t.nowrap?"whitespace-nowrap":"whitespace-normal break-words"," ").concat(null!=(i=t.cellClassName)?i:""),children:t.clamp?(0,n.jsx)("span",{className:"block ".concat(p[t.clamp]),children:t.cell(e)}):t.cell(e)},r)}),R&&(0,n.jsx)(l.nA,{className:"px-6 py-4 text-right",children:(0,n.jsx)(u.A,{className:"ml-auto h-4 w-4 text-muted-foreground opacity-0 transition group-hover:opacity-100"})}),I&&(0,n.jsx)(l.nA,{className:"px-6 py-4 text-right",children:(0,n.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[!s&&(k||w)&&(0,n.jsx)(o.$,{size:"icon",variant:"ghost",className:"h-8 w-8",onClick:()=>{w?w(e):k&&L.push("".concat(k,"/").concat(i))},children:(0,n.jsx)(d.A,{className:"h-4 w-4"})}),z&&!s&&C&&(0,n.jsxs)(a.Lt,{children:[(0,n.jsx)(a.tv,{asChild:!0,children:(0,n.jsx)(o.$,{size:"icon",variant:"ghost",className:"h-8 w-8 text-destructive",children:(0,n.jsx)(h.A,{className:"h-4 w-4"})})}),(0,n.jsxs)(a.EO,{children:[(0,n.jsxs)(a.wd,{children:[(0,n.jsx)(a.r7,{className:"m-0",children:S}),(0,n.jsx)(a.$v,{children:"function"==typeof M?M(e):null!=M?M:"This action cannot be undone."})]}),(0,n.jsxs)(a.ck,{children:[(0,n.jsx)(a.Zr,{children:D}),(0,n.jsx)(a.Rx,{onClick:()=>C(i),className:"bg-destructive text-white hover:bg-destructive/90",children:N})]})]})]})]})})]},i)})})]}),K&&j&&(0,n.jsx)("div",{className:"sticky bottom-0 z-10 border-t border-border bg-card px-4 py-3",children:j})]})}},62463:(e,t,r)=>{"use strict";r.d(t,{$L:()=>N,Ln:()=>m,N0:()=>M,Um:()=>D,Wg:()=>
9g,X9:()=>s,dL:()=>P,jP:()=>v,n9:()=>A,oM:()=>x,zy:()=>E});var n=r(92322);class i{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class o{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&o.empty)return o.empty}recover(e){let t=0,r=65535&e;if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?n:0);if(a>e)break;let c=this.ranges[l+o],u=this.ranges[l+s],d=a+c;if(e<=d){let o=c?e==a?-1:e==d?1:t:t,s=a+n+(o<0?0:u);if(r)return s;let h=e==(t<0?a:d)?null:l/3+(e-a)*65536,p=e==a?2:e==d?1:4;return(t<0?e!=a:e!=d)&&(p|=8),new i(s,p,h)}n+=u-c}return r?e+n:new i(e+n,0,null)}touches(e,t){let r=0,n=65535&t,i=this.inverted?2:1,o=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?r:0);if(s>e)break;let l=this.ranges[t+i];if(e<=s+l&&t==3*n)return!0;r+=this.ranges[t+o]-l}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let o=this.ranges[n],s=o-(this.inverted?i:0),l=o+(this.inverted?0:i),a=this.ranges[n+t],c=this.ranges[n+r];e(s,s+a,l,l+c),i+=c-a}}invert(){return new o(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?o.empty:new o(e<0?[0,-e,0]:[0,0,e])}}o.empty=new o([]);class s{constructor(e,t,r=0,n=e?e.length:0){this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new s(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new s;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let i=this._maps[r].mapResult(e,t);if(null!=i.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this._maps[t].recover(i.recover);continue}}n|=i.delInfo,e=i.pos}return r?e:new i(e,n,null)}}let l=Object.create(null);class a{getMap(){return o.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let r=l[t.stepType];if(!r)throw RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in l)throw RangeError("Duplicate use of step JSON ID "+e);return l[e]=t,t.prototype.jsonID=e,t}}class c{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new c(e,null)}static fail(e){return new c(null,e)}static fromReplace(e,t,r,i){try{return c.ok(e.replace(t,r,i))}catch(e){if(e instanceof n.vI)return c.fail(e.message);throw e}}}function u(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let o=e.child(n);o.content.size&&(o=o.copy(u(o.content,t,o))),o.isInline&&(o=t(o,r,n)),i.push(o)}return n.FK.fromArray(i)}class d extends a{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.no
vendor: 6,833 bytes, line 9
9de(r.sharedDepth(this.to)),o=new n.Ji(u(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,o)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new d(t.pos,r.pos,this.mark)}merge(e){return e instanceof d&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new d(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new d(t.from,t.to,e.markFromJSON(t.mark))}}a.jsonID("addMark",d);class h extends a{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(u(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,r)}invert(){return new d(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new h(t.pos,r.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}a.jsonID("removeMark",h);class p extends a{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new p(this.pos,t.marks[r]);return new p(this.pos,this.mark)}}return new f(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new p(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new p(t.pos,e.markFromJSON(t.mark))}}a.jsonID("addNodeMark",p);class f extends a{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new p(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new f(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new f(t.pos,e.markFromJSON(t.mark))}}a.jsonID("removeNodeMark",f);class m extends a{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&b(e,this.from,this.to)?c.fail("Structure replace would overwrite content"):c.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new o([this.from,this.to-this.from,this.slice.size])}invert(e){return new m(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),r=this.from==this.to&&m.MAP_BIAS<0?t:e.mapResult(this.from,1);return r.deletedAcross&&t.deletedAcross?null:new m(r.pos,Math.max(r.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof m)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new m(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new m(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}m.MAP_BIAS=1,a.jsonID("replace",m);class g extends a{constructor(e,t,r,n,i,o,s=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=o,this.structure=s}apply(e){if(this.structure&&(b(e,this.from,this.gapFrom)||b(e,this.gapTo,this.to)))return c.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return c.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?c.fromReplace(e,this.from,this.to,r):c.fail("Content does not fit in gap")}getMap(){return new o([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new g(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new g(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new g(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function b(e,t,r){let n=e.resolve(t),i=r-t,o=n.depth;for(;i>0&&o>
90&&n.indexAfter(o)==n.node(o).childCount;)o--,i--;if(i>0){let e=n.node(o).maybeChild(n.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function y(e,t,r,i=r.contentMatch,o=!0){let s=e.doc.nodeAt(t),l=[],a=t+1;for(let t=0;t<s.childCount;t++){let c=s.child(t),u=a+c.nodeSize,d=i.matchType(c.type);if(d){i=d;for(let t=0;t<c.marks.length;t++)r.allowsMarkType(c.marks[t].type)||e.step(new h(a,u,c.marks[t]));if(o&&c.isText&&"pre"!=r.whitespace){let e,t=/\r?\n|\r/g,i;for(;e=t.exec(c.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(c.marks))),0,0)),l.push(new m(a+e.index,a+e.index+e[0].length,i))}}else l.push(new m(a,u,n.Ji.empty));a=u}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(a,a,new n.Ji(t,0,0))}for(let t=l.length-1;t>=0;t--)e.step(l[t])}function v(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let o=e.$from.node(r),s=e.$from.index(r)+n,l=e.$to.indexAfter(r)-i;if(r<e.depth&&o.canReplace(s,l,t))return r;if(0==r||o.type.spec.isolating||!((0==s||o.canReplace(s,o.childCount))&&(l==o.childCount||o.canReplace(0,l))))break;s&&(n=1),l<o.childCount&&(i=1)}return null}function x(e,t,r=null,n=e){let i=function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,o=r.contentMatchAt(n).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return r.canReplaceWith(n,i,s)?o:null}(e,t),o=i&&function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,o=r.child(n),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let l=(s.length?s[s.length-1]:t).contentMatch;for(let e=n;l&&e<i;e++)l=l.matchType(r.child(e).type);return l&&l.validEnd?s:null}(n,t);return o?i.map(k).concat({type:t,attrs:r}).concat(o.map(k)):null}function k(e){return{type:e,attrs:null}}function w(e,t,r,n){t.forEach((i,o)=>{if(i.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(i.text);){let i=e.mapping.slice(n).map(r+1+o+s.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function C(e,t,r,n){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function E(e,t,r=1,n){let i=e.resolve(t),o=i.depth-r,s=n&&n[n.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=r-2;e>o;e--,t--){let r=i.node(e),o=i.index(e);if(r.type.spec.isolating)return!1;let s=r.content.cutByIndex(o,r.childCount),l=n&&n[t+1];l&&(s=s.replaceChild(0,l.type.create(l.attrs)));let a=n&&n[t]||r;if(!r.canReplace(o+1,r.childCount)||!a.type.validContent(s))return!1}let l=i.indexAfter(o),a=n&&n[0];return i.node(o).canReplaceWith(l,l,a?a.type:i.node(o+1).type)}function A(e,t){let r=e.resolve(t),n=r.index();return S(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function S(e,t){return!!(e&&t&&!e.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),s=o.type==n?e.type.schema.nodes.text:o.type;if(!(r=r.matchType(s))||!e.type.allowsMarks(o.marks))return!1}return r.validEnd}(e,t))}function M(e,t,r=-1){let n=e.resolve(t);for(let e=n.depth;;e--){let i,o,s=n.index(e);if(e==n.depth?(i=n.nodeBefore,o=n.nodeAfter):r>0?(i=n.node(e+1),s++,o=n.node(e).maybeChild(s)):(i=n.node(e).maybeChild(s-1),o=n.node(e+1)),i&&!i.isTextblock&&S(i,o)&&n.node(e).canReplace(s,s+1))return t;if(0==e)break;t=r<0?n.before(e):n.after(e)}}function D(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let e=0;e<r.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,o=n.index(t)+ +(r>0),s=n.node(t),l=!1;if(1==e)l=s.canReplace(o,o,i);else{let e=s.contentMatchAt(o).findWrapping(i.firstChild.type);l=e&&s.canReplaceWith(o,o,e[0])}if(l)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}
9function N(e,t,r=t,i=n.Ji.empty){if(t==r&&!i.size)return null;let o=e.resolve(t),s=e.resolve(r);return T(o,s,i)?new m(t,r,i):new j(o,s,i).fit()}function T(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}a.jsonID("replaceAround",g);class j{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=n.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,s=r.depth,l=i.depth;for(;s&&l&&1==o.childCount;)o=o.firstChild.content,s--,l--;let a=new n.Ji(o,s,l);return e>-1?new g(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new m(r.pos,i.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e=null,i=(r?(e=L(this.unplaced.content,r-1).firstChild).content:this.unplaced.content).firstChild;for(let o=this.depth;o>=0;o--){let{type:s,match:l}=this.frontier[o],a,c=null;if(1==t&&(i?l.matchType(i.type)||(c=l.fillBefore(n.FK.from(i),!1)):e&&s.compatibleContent(e.type)))return{sliceDepth:r,frontierDepth:o,parent:e,inject:c};if(2==t&&i&&(a=l.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:o,parent:e,wrap:a};if(e&&l.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=L(e,t);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=L(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new n.Ji(_(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new n.Ji(_(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let s=this.unplaced,l=r?r.content:s.content,a=s.openStart-e,c=0,u=[],{match:d,type:h}=this.frontier[t];if(i){for(let e=0;e<i.childCount;e++)u.push(i.child(e));d=d.matchFragment(i)}let p=l.size+e-(s.content.size-s.openEnd);for(;c<l.childCount;){let e=l.child(c),t=d.matchType(e.type);if(!t)break;(++c>1||0==a||e.content.size)&&(d=t,u.push(function e(t,r,i){if(r<=0)return t;let o=t.content;return r>1&&(o=o.replaceChild(0,e(o.firstChild,r-1,1==o.childCount?i-1:0))),r>0&&(o=t.type.contentMatch.fillBefore(o).append(o),i<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(n.FK.empty,!0)))),t.copy(o)}(e.mark(h.allowedMarks(e.marks)),1==c?a:0,c==l.childCount?p:-1)))}let f=c==l.childCount;f||(p=-1),this.placed=F(this.placed,t,n.FK.from(u)),this.frontier[t].match=d,f&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=l;e<p;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=f?0==e?n.Ji.empty:new n.Ji(_(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new n.Ji(_(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!R(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){n:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=R(e,t,n,r,i);if(o){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=R(e,r,n,t,!0);if(!i||i.childCount)continue n}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=F(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=F(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=F(this.placed,this.frontier.length,e))}}function _(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(_(e.firstChild.content,t-1,r)))}function F(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(F(e.last
9Child.content,t-1,r)))}function L(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function R(e,t,r,n,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!r.compatibleContent(o.type))return null;let l=n.fillBefore(o.content,!0,s);return l&&!function(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}(r,o.content,s)?l:null}function I(e,t){let r=[],n=Math.min(e.depth,t.depth);for(let i=n;i>=0;i--){let n=e.start(i);if(n<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(n==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==n-1)&&r.push(i)}return r}class O extends a{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return c.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,+!t.isLeaf))}getMap(){return o.empty}invert(e){return new O(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new O(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new O(t.pos,t.attr,t.value)}}a.jsonID("attr",O);class z extends a{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return c.ok(r)}getMap(){return o.empty}invert(e){return new z(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new z(t.attr,t.value)}}a.jsonID("docAttr",z);let B=class extends Error{};(B=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r}).prototype=Object.create(Error.prototype),B.prototype.constructor=B,B.prototype.name="TransformError";class P{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new s}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new B(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,o)=>{e=Math.min(e,i),t=Math.max(t,o)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=n.Ji.empty){let i=N(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return!function(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let o=e.doc.resolve(t),s=e.doc.resolve(r);if(T(o,s,i))return e.step(new m(t,r,i));let l=I(o,s);0==l[l.length-1]&&l.pop();let a=-(o.depth+1);l.unshift(a);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let r=o.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;l.indexOf(e)>-1?a=e:o.before(e)==t&&l.splice(1,0,-e)}let c=l.indexOf(a),u=[],d=i.openStart;for(let e=i.content,t=0;;t++){let r=e.firstChild;if(u.push(r),t==i.openStart)break;e=r.content}for(let e=d-1;e>=0;e--){var h;let t=u[e],r=(h=t.type).spec.defining||h.spec.definingForContent;if(r&&!t.sameMarkup(o.node(Math.abs(a)-1)))d=e;else if(r||!t.type.isTextblock)break}for(let t=i.openStart;t>=0;t--){let a=(t+d+1)%(i.openStart+1),h=u[a];if(h)for(let t=0;t<l.length;t++){let u=l[(t+c)%l.length],d=!0;u<0&&(d=!1,u=-u);let p=o.node(u-1),f=o.index(u-1);if(p.canReplaceWith(f,f,h.type,h.marks))return e.replace(o.before(u),d?s.after(u):r,new n.Ji(function e(t,r,i,o,s){if
9(r<i){let n=t.firstChild;t=t.replaceChild(0,n.copy(e(n.content,r+1,i,o,n)))}if(r>o){let e=s.contentMatchAt(0),r=e.fillBefore(t).append(t);t=r.append(e.matchFragment(r).fillBefore(n.FK.empty,!0))}return t}(i.content,0,i.openStart,a),a,i.openEnd))}}let p=e.steps.length;for(let n=l.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>p));n--){let e=l[n];e<0||(t=o.before(e),r=s.after(e))}}(this,e,t,r),this}replaceRangeWith(e,t,r){var i=e,o=t;if(!r.isInline&&i==o&&this.doc.resolve(i).parent.content.size){let e=function(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)break}return null}(this.doc,i,r.type);null!=e&&(i=o=e)}return this.replaceRange(i,o,new n.Ji(n.FK.from(r),0,0)),this}deleteRange(e,t){return!function(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r);if(n.parent.isTextblock&&i.parent.isTextblock&&n.start()!=i.start()&&0==n.parentOffset&&0==i.parentOffset){let o=n.sharedDepth(r),s=!1;for(let e=n.depth;e>o;e--)n.node(e).type.spec.isolating&&(s=!0);for(let e=i.depth;e>o;e--)i.node(e).type.spec.isolating&&(s=!0);if(!s){for(let e=n.depth;e>0&&t==n.start(e);e--)t=n.before(e);for(let e=i.depth;e>0&&r==i.start(e);e--)r=i.before(e);n=e.doc.resolve(t),i=e.doc.resolve(r)}}let o=I(n,i);for(let t=0;t<o.length;t++){let r=o[t],s=t==o.length-1;if(s&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),i.end(r));if(r>0&&(s||n.node(r-1).canReplace(n.index(r-1),i.indexAfter(r-1))))return e.delete(n.before(r),i.after(r))}for(let o=1;o<=n.depth&&o<=i.depth;o++)if(t-n.start(o)==n.depth-o&&r>n.end(o)&&i.end(o)-r!=i.depth-o&&n.start(o-1)==i.start(o-1)&&n.node(o-1).canReplace(n.index(o-1),i.index(o-1)))return e.delete(n.before(o),r);e.delete(t,r)}(this,e,t),this}lift(e,t){return!function(e,t,r){let{$from:i,$to:o,depth:s}=t,l=i.before(s+1),a=o.after(s+1),c=l,u=a,d=n.FK.empty,h=0;for(let e=s,t=!1;e>r;e--)t||i.index(e)>0?(t=!0,d=n.FK.from(i.node(e).copy(d)),h++):c--;let p=n.FK.empty,f=0;for(let e=s,t=!1;e>r;e--)t||o.after(e+1)<o.end(e)?(t=!0,p=n.FK.from(o.node(e).copy(p)),f++):u++;e.step(new g(c,u,l,a,new n.Ji(d.append(p),h,f),d.size-h,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,r){let i=null,{linebreakReplacement:o}=e.doc.type.schema,s=e.doc.resolve(t-r),l=s.node().type;if(o&&l.inlineContent){let e="pre"==l.whitespace,t=!!l.contentMatch.matchType(o);e&&!t?i=!1:!e&&t&&(i=!0)}let a=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);C(e,n.node(),n.before(),a)}l.inlineContent&&y(e,t+r-1,l,s.node().contentMatchAt(s.index()),null==i);let c=e.mapping.slice(a),u=c.map(t-r);if(e.step(new m(u,c.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(u);w(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,r){let i=n.FK.empty;for(let e=r.length-1;e>=0;e--){if(i.size){let t=r[e].type.contentMatch.matchFragment(i);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[e].type.create(r[e].attrs,i))}let o=t.start,s=t.end;e.step(new g(o,s,o,s,new n.Ji(i,0,0),r.length,!0))}(this,e,t),this}setBlockType(e,t=e,r,i=null){var o=this;if(!r.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let s=o.steps.length;return o.doc.nodesBetween(e,t,(e,t)=>{var l,a,c;let u,d,h="function"==typeof i?i(e):i;if(e.isTextblock&&!e.hasMarkup(r,h)&&(l=o.doc,a=o.mapping.slice(s).map(t),c=r,d=(u=l.resolve(a)).index(),u.parent.canReplaceWith(d,d+1,c))){let i=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}!1===i&&C(o,e,t,s),y(o,o.mapping.slice(s).map(t,1),r,void 0,null===i);let l=o.mapping.slice(s),a=l.map(t,1),c=l.map(t+e.nodeSize,1);return o.step(new g(a,c,a+1,c-1,new n.Ji(n.FK.from(r.create(h,null,e.marks)),0,0),1,!0)),!0===i&&w(o,e,t,s),!1}}),this}setNodeMarkup(e,t,r=null,i){return!function(e,t,r,i,o){let s=e.doc.nodeAt(t);if(!s)throw RangeError("No node at given position");r||(r=s.type);let l=r.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,l);if(!r.validContent(s.content))throw RangeError("Invalid content for node type "+r.name);e.step(new g(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new n.Ji(n.FK.from(l),0,0),1,!0))}(this,e,t,r,i),this}setNodeAttribute(e,t,r){return this.step(new O(e,t,r)),this}setDocAttribute(e,t){return this.step(new z(e,t)),this}addNodeMark(e,t){return this.step(new p(e,t)),this}
9removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new f(e,t));else{let n=r.marks,i,o=[];for(;i=t.isInSet(n);)o.push(new f(e,i)),n=i.removeFromSet(n);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e,t=1,r){return!function(e,t,r=1,i){let o=e.doc.resolve(t),s=n.FK.empty,l=n.FK.empty;for(let e=o.depth,t=o.depth-r,a=r-1;e>t;e--,a--){s=n.FK.from(o.node(e).copy(s));let t=i&&i[a];l=n.FK.from(t?t.type.create(t.attrs,l):o.node(e).copy(l))}e.step(new m(t,t,new n.Ji(s.append(l),r,r),!0))}(this,e,t,r),this}addMark(e,t,r){var n;let i,o,s,l;return n=this,s=[],l=[],n.doc.nodesBetween(e,t,(n,a,c)=>{if(!n.isInline)return;let u=n.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(a,e),p=Math.min(a+n.nodeSize,t),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(i&&i.to==c&&i.mark.eq(u[e])?i.to=p:s.push(i=new h(c,p,u[e])));o&&o.to==c?o.to=p:l.push(o=new d(c,p,r))}}),s.forEach(e=>n.step(e)),l.forEach(e=>n.step(e)),this}removeMark(e,t,r){var i;let o,s;return i=this,o=[],s=0,i.doc.nodesBetween(e,t,(i,l)=>{if(!i.isInline)return;s++;let a=null;if(r instanceof n.sX){let e=i.marks,t;for(;t=r.isInSet(e);)(a||(a=[])).push(t),e=t.removeFromSet(e)}else r?r.isInSet(i.marks)&&(a=[r]):a=i.marks;if(a&&a.length){let r=Math.min(l+i.nodeSize,t);for(let t=0;t<a.length;t++){let n=a[t],i;for(let e=0;e<o.length;e++){let t=o[e];t.step==s-1&&n.eq(o[e].style)&&(i=t)}i?(i.to=r,i.step=s):o.push({style:n,from:Math.max(l,e),to:r,step:s})}}}),o.forEach(e=>i.step(new h(e.from,e.to,e.style))),this}clearIncompatible(e,t,r){return y(this,e,t,r),this}}},62811:(e,t,r)=>{"use strict";let n,i;r.d(t,{useMarkdownEditor:()=>ev});var o=r(12115),s=r(46098),l=r(76908),a=r(51876),c=r(92322),u=r(32806),d=r(24945),h=r(62463);if("undefined"!=typeof WeakMap){let e=new WeakMap;n=t=>e.get(t),i=(t,r)=>(e.set(t,r),r)}else{let e=[],t=0;n=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},i=(r,n)=>(10==t&&(t=0),e[t++]=r,e[t++]=n)}var p=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){let r=this.map[t];if(r!=e)continue;let n=t%this.width,i=t/this.width|0,o=n+1,s=i+1;for(let e=1;o<this.width&&this.map[t+e]==r;e++)o++;for(let e=1;s<this.height&&this.map[t+this.width*e]==r;e++)s++;return{left:n,top:i,right:o,bottom:s}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,r){let{left:n,right:i,top:o,bottom:s}=this.findCell(e);return"horiz"==t?(r<0?0==n:i==this.width)?null:this.map[o*this.width+(r<0?n-1:i)]:(r<0?0==o:s==this.height)?null:this.map[n+this.width*(r<0?o-1:s)]}rectBetween(e,t){let{left:r,right:n,top:i,bottom:o}=this.findCell(e),{left:s,right:l,top:a,bottom:c}=this.findCell(t);return{left:Math.min(r,s),top:Math.min(i,a),right:Math.max(n,l),bottom:Math.max(o,c)}}cellsInRect(e){let t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let i=e.left;i<e.right;i++){let o=n*this.width+i,s=this.map[o];!r[s]&&(r[s]=!0,i==e.left&&i&&this.map[o-1]==s||n==e.top&&n&&this.map[o-this.width]==s||t.push(s))}return t}positionAt(e,t,r){for(let n=0,i=0;;n++){let o=i+r.child(n).nodeSize;if(n==e){let r=t+e*this.width,n=(e+1)*this.width;for(;r<n&&this.map[r]<i;)r++;return r==n?o-1:this.map[r]}i=o}}static get(e){return n(e)||i(e,function(e){if("table"!=e.type.spec.tableRole)throw RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){let i=e.child(n),o=0;if(r)for(let t=0;t<n;t++){let r=e.child(t);for(let e=0;e<r.childCount;e++){let i=r.child(e);t+i.attrs.rowspan>n&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);o+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),r=e.childCount,n=[],i=0,o=null,s=[];for(let e=0,i=t*r;e<i;e++)n[e]=0;for(let l=0,a=0;l<r;l++){let c=e.child(l);a++;for(let e=0;;e++){for(;i<n.length&&0!=n[i];)i++;if(e==c.childCount)break;let u=c.child(e),{colspan:d,rowspan:h,colwidth:p}=u.attrs;for(let e=0;e<h;e++){if(e+l>
9=r){(o||(o=[])).push({type:"overlong_rowspan",pos:a,n:h-e});break}let c=i+e*t;for(let e=0;e<d;e++){0==n[c+e]?n[c+e]=a:(o||(o=[])).push({type:"collision",row:l,pos:a,n:d-e});let r=p&&p[e];if(r){let n=(c+e)%t*2,i=s[n];null==i||i!=r&&1==s[n+1]?(s[n]=r,s[n+1]=1):i==r&&s[n+1]++}}}i+=d,a+=u.nodeSize}let u=(l+1)*t,d=0;for(;i<u;)0==n[i++]&&d++;d&&(o||(o=[])).push({type:"missing",row:l,n:d}),a++}(0===t||0===r)&&(o||(o=[])).push({type:"zero_sized"});let l=new p(t,r,n,o),a=!1;for(let e=0;!a&&e<s.length;e+=2)null!=s[e]&&s[e+1]<r&&(a=!0);return a&&function(e,t,r){e.problems||(e.problems=[]);let n={};for(let i=0;i<e.map.length;i++){let o=e.map[i];if(n[o])continue;n[o]=!0;let s=r.nodeAt(o);if(!s)throw RangeError(`No cell with offset ${o} found`);let l=null,a=s.attrs;for(let r=0;r<a.colspan;r++){let n=t[(i+r)%e.width*2];null==n||a.colwidth&&a.colwidth[r]==n||((l||(l=function(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}(a)))[r]=n)}l&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:l})}}(l,s,e),l}(e))}};function f(e){let t=e.cached.tableNodeTypes;if(!t)for(let r in t=e.cached.tableNodeTypes={},e.nodes){let n=e.nodes[r],i=n.spec.tableRole;i&&(t[i]=n)}return t}let m=new a.hs("selectingCells");function g(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function b(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function y(e){let t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;let r=g(t.$head)||function(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){let n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}(t.$head);if(r)return r;throw RangeError(`No cell found around position ${t.head}`)}function v(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function x(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function k(e,t,r){let n=e.node(-1),i=p.get(n),o=e.start(-1),s=i.nextCell(e.pos-o,t,r);return null==s?null:e.node(0).resolve(o+s)}function w(e,t,r=1){let n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some(e=>e>0)||(n.colwidth=null)),n}function C(e,t,r=1){let n={...e,colspan:e.colspan+r};if(n.colwidth){n.colwidth=n.colwidth.slice();for(let e=0;e<r;e++)n.colwidth.splice(t,0,0)}return n}var E=class e extends a.LN{constructor(e,t=e){let r=e.node(-1),n=p.get(r),i=e.start(-1),o=n.rectBetween(e.pos-i,t.pos-i),s=e.node(0),l=n.cellsInRect(o).filter(e=>e!=t.pos-i);l.unshift(t.pos-i);let c=l.map(e=>{let t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let n=i+e+1;return new a.yn(s.resolve(n),s.resolve(n+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,r){let n=t.resolve(r.map(this.$anchorCell.pos)),i=t.resolve(r.map(this.$headCell.pos));if(v(n)&&v(i)&&x(n,i)){let t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,i):t&&this.isColSelection()?e.colSelection(n,i):new e(n,i)}return a.U3.between(n,i)}content(){let e=this.$anchorCell.node(-1),t=p.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),i={},o=[];for(let r=n.top;r<n.bottom;r++){let s=[];for(let o=r*t.width+n.left,l=n.left;l<n.right;l++,o++){let r=t.map[o];if(i[r])continue;i[r]=!0;let l=t.findCell(r),a=e.nodeAt(r);if(!a)throw RangeError(`No cell with offset ${r} found`);let c=n.left-l.left,u=l.right-n.right;if(c>0||u>0){let e=a.attrs;if(c>0&&(e=w(e,0,c)),u>0&&(e=w(e,e.colspan-u,u)),l.left<n.left){if(!(a=a.type.createAndFill(e)))throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else a=a.type.create(e,a.content)}if(l.top<n.top||l.bottom>n.bottom){let e={...a.attrs,rowspan:Math.min(l.bottom,n.bottom)-Math.max(l.top,n.top)};a=l.top<n.top?a.type.createAndFill(e):a.type.create(e,a.content)}s.push(a)}o.push(e.child(r).copy(c.FK.from(s)))}let s=this.isColSelection()&&this.isRowSelection()?e:o;return new c.Ji(c.FK.from(s),1,1)}replace(e,t=c.Ji.empty){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:o,$to:s}=n[i],l=e.mapping.slice(r);e.replace(l.map(o.pos),l.map(s.pos),i?c.Ji.empty:t)}let i=a.LN.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new c.Ji(c.FK.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),r=p.get(t),n=this.$anchorCell.start(-1),i=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<i.length;r++)e(t.nodeAt(i[r]),n+i[r])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);return!(Math.min(e,t)>0)&&Math.max(e+this.$anchorCell.nodeAfter.attrs.rowspan,t+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,r=t){let n=t.node(-1),i=p.get(n),o=t.start(-1),s=i.findCell(t.pos-o),l=i.findCell(r.pos-o),a=t.node(0);return s.top<=l.top?(s.top>0&&(t=a.resolve(o+i.map[s.left])),l.bottom<i.height&&(r=a.resolve(o+i.map[i.width*(i.height-1)+l.right-1]))):(l.top>0&&(r=a.resolve(o+i.map[l.left])),s.bottom<i.height&&(t=a.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))),new e(t,r)}isRowSelection(){let e=this.$anchorCell.node(-1),t=p.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),i=t.colCount(this.$headCell.pos-r);return!(Math.min(n,i)>0)&&Math.max(n+this.$anchorCell.nodeAfter.attrs.colspan,i+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,r=t){let n=t.node(-1),i=p.get(n),o=t.start(-1),s=i.findCell(t.pos-o),l=i.findCell(r.pos-o),a=t.node(0);return s.left<=l.left?(s.left>0&&(t=a.resolve(o+i.map[s.top*i.width])),l.right<i.width&&(r=a.resolve(o+i.map[i.width*(l.top+1)-1]))):(l.left>0&&(r=a.resolve(o+i.map[l.top*i.width])),s.right<i.width&&(t=a.resolve(o+i.map[i.width*(s.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new A(this.$anchorCell.pos,this.$headCell.pos)}};E.prototype.visible=!1,a.LN.jsonID("cell",E);var A=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&x(t,r)?new E(t,r):a.LN.near(r,1)}};function S(e){if(!(e.selection instanceof E))return null;let t=[];return e.selection.forEachCell((e,r)=>{t.push(u.NZ.node(r,r+e.nodeSize,{class:"selectedCell"}))}),u.zF.create(e.doc,t)}let M=new a.hs("fix-tables");function D(e,t){let r,n=(t,n)=>{"table"==t.type.spec.tableRole&&(r=function(e,t,r,n){let i,o,s=p.get(t);if(!s.problems)return n;n||(n=e.tr);let l=[];for(let e=0;e<s.height;e++)l.push(0);for(let e=0;e<s.problems.length;e++){let i=s.problems[e];if("collision"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;let o=e.attrs;for(let e=0;e<o.rowspan;e++)l[i.row+e]+=i.n;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,w(o,o.colspan-i.n,i.n))}else if("missing"==i.type)l[i.row]+=i.n;else if("overlong_rowspan"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-i.n})}else if("colwidth mismatch"==i.type){let e=t.nodeAt(i.pos);if(!e)continue;n.setNodeMarkup(n.mapping.map(r+1+i.pos),null,{...e.attrs,colwidth:i.colwidth})}else if("zero_sized"==i.type){let e=n.mapping.map(r);n.delete(e,e+t.nodeSize)}}for(let e=0;e<l.length;e++)l[e]&&(null==i&&(i=e),o=e);for(let a=0,c=r+1;a<s.height;
9a++){let r=t.child(a),s=c+r.nodeSize,u=l[a];if(u>0){let t="cell";r.firstChild&&(t=r.firstChild.type.spec.tableRole);let l=[];for(let r=0;r<u;r++){let r=f(e.schema)[t].createAndFill();r&&l.push(r)}let d=(0==a||i==a-1)&&o==a?c+1:s-1;n.insert(n.mapping.map(d),l)}c=s}return n.setMeta(M,{fixTables:!0})}(e,t,n,r))};return t?t.doc!=e.doc&&function e(t,r,n,i){let o=t.childCount,s=r.childCount;r:for(let l=0,a=0;l<s;l++){let s=r.child(l);for(let e=a,r=Math.min(o,l+3);e<r;e++)if(t.child(e)==s){a=e+1,n+=s.nodeSize;continue r}i(s,n),a<o&&t.child(a).sameMarkup(s)?e(t.child(a),s,n+1,i):s.nodesBetween(0,s.content.size,i,n+1),n+=s.nodeSize}}(t.doc,e.doc,0,n):e.doc.descendants(n),r}function N(e){let t=e.selection,r=y(e),n=r.node(-1),i=r.start(-1),o=p.get(n);return{...t instanceof E?o.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):o.findCell(r.pos-i),tableStart:i,map:o,table:n}}function T(e,{map:t,tableStart:r,table:n},i){let o=i>0?-1:0;(function(e,t,r){let n=f(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[r+i*e.width]).type!=n)return!1;return!0})(t,n,i+o)&&(o=0==i||i==t.width?null:0);for(let s=0;s<t.height;s++){let l=s*t.width+i;if(i>0&&i<t.width&&t.map[l-1]==t.map[l]){let o=t.map[l],a=n.nodeAt(o);e.setNodeMarkup(e.mapping.map(r+o),null,C(a.attrs,i-t.colCount(o))),s+=a.attrs.rowspan-1}else{let a=null==o?f(n.type.schema).cell:n.nodeAt(t.map[l+o]).type,c=t.positionAt(s,i,n);e.insert(e.mapping.map(r+c),a.createAndFill())}}return e}function j(e,{map:t,tableStart:r,table:n},i){let o=r;for(let e=0;e<i;e++)o+=n.child(e).nodeSize;let s=[],l=i>0?-1:0;(function(e,t,r){var n;let i=f(t.type.schema).header_cell;for(let o=0;o<e.width;o++)if((null==(n=t.nodeAt(e.map[o+r*e.width]))?void 0:n.type)!=i)return!1;return!0})(t,n,i+l)&&(l=0==i||i==t.height?null:0);for(let o=0,c=t.width*i;o<t.width;o++,c++)if(i>0&&i<t.height&&t.map[c]==t.map[c-t.width]){let i=t.map[c],s=n.nodeAt(i).attrs;e.setNodeMarkup(r+i,null,{...s,rowspan:s.rowspan+1}),o+=s.colspan-1}else{var a;let e=null==l?f(n.type.schema).cell:null==(a=n.nodeAt(t.map[c+l*t.width]))?void 0:a.type,r=null==e?void 0:e.createAndFill();r&&s.push(r)}return e.insert(o,f(n.type.schema).row.create(null,s)),e}function _(e){let t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function F(e,t){let r=e.selection;if(!(r instanceof E)||r.$anchorCell.pos==r.$headCell.pos)return!1;let n=N(e),{map:i}=n;if(function({width:e,height:t,map:r},n){let i=n.top*e+n.left,o=i,s=(n.bottom-1)*e+n.left,l=i+(n.right-n.left-1);for(let t=n.top;t<n.bottom;t++){if(n.left>0&&r[o]==r[o-1]||n.right<e&&r[l]==r[l+1])return!0;o+=e,l+=e}for(let o=n.left;o<n.right;o++){if(n.top>0&&r[i]==r[i-e]||n.bottom<t&&r[s]==r[s+e])return!0;i++,s++}return!1}(i,n))return!1;if(t){let r,o,s=e.tr,l={},a=c.FK.empty;for(let e=n.top;e<n.bottom;e++)for(let t=n.left;t<n.right;t++){let c=i.map[e*i.width+t],u=n.table.nodeAt(c);if(!l[c]&&u)if(l[c]=!0,null==r)r=c,o=u;else{_(u)||(a=a.append(u.content));let e=s.mapping.map(c+n.tableStart);s.delete(e,e+u.nodeSize)}}if(null==r||null==o)return!0;if(s.setNodeMarkup(r+n.tableStart,null,{...C(o.attrs,o.attrs.colspan,n.right-n.left-o.attrs.colspan),rowspan:n.bottom-n.top}),a.size>0){let e=r+1+o.content.size,t=_(o)?r+1:e;s.replaceWith(t+n.tableStart,e+n.tableStart,a)}s.setSelection(new E(s.doc.resolve(r+n.tableStart))),t(s)}return!0}function L(e,t){var r;let n=f(e.schema);return(r=({node:e})=>n[e.type.spec.tableRole],(e,t)=>{let n,i,o=e.selection;if(o instanceof E){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;n=o.$anchorCell.nodeAfter,i=o.$anchorCell.pos}else{var s;if(!(n=function(e){for(let t=e.depth;t>0;t--){let r=e.node(t).type.spec.tableRole;if("cell"===r||"header_cell"===r)return e.node(t)}return null}(o.$from)))return!1;i=null==(s=g(o.$from))?void 0:s.pos}if(null==n||null==i||1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(t){let s,l=n.attrs,a=[],c=l.colwidth;l.rowspan>1&&(l={...l,rowspan:1}),l.colspan>1&&(l={...l,colspan:1});let u=N(e),d=e.tr;for(let e=0;e<u.right-u.left;e++)a.push(c?{...l,colwidth:c&&c[e]?[c[e]]:null}:l);for(let e=u.top;e<u.bottom;e++){let t=u.map.positionAt(e,u.left,u.table);e==u.top&&(t+=n.nodeSize);for(let i=u.left,o=0;i<u.right;i++,o++)(i!=u.left||e!=u.top)&&d.insert(s=d.mapping.map(t+u.tableStart,1),r({node:n,row:e,col:i}).createAndFill(a[o]))}d.setNodeMarkup(i,r({node:n,row:u.top,col:u.left}),a[0]),o instanceof E&&d.setSelection(new E(d.doc.resolve(o.$anchorCell.pos),s?d.doc.resolve(s):void 0)),t(d)}return!0})(e,t)}function R(e,t,r){let n=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<n.length;e++){let i=t.table.nodeAt(n[e]);if(i&&i.type!==r.header_cell)return!1}return!0}function I(e,t){if((t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic)return function(t,r){if(!b(t))return!1;if(r){let n=f(t.schema),i=N(t),o=t.tr,s=i.map.cellsInRect("column"==e?{left:i.left,top:0,right:i.right,bottom:i.map.height}:"row"==e?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),l=s.map(e=>i.table.nodeAt(e));for(let e=0;e<s.length;e++)l[e].type==n.header_cell&&o.setNodeMarkup(i.tableStart+s[e],n.cell,l[e].attrs);if(0===o.steps.length)for(let e=0;e<s.length;e++)o.setNodeMarkup(i.tableStart+s[e],n.header_cell,l[e].attrs);r(o)}return!0};return function(t,r){if(!b(t))return!1;if(r){let n=f(t.schema),i=N(t),o=t.tr,s=R("row",i,n),l=R("column",i,n),a=+("column"===e?!!s:"row"===e&&!!l),c="c
9olumn"==e?{left:0,top:a,right:1,bottom:i.map.height}:"row"==e?{left:a,top:0,right:i.map.width,bottom:1}:i,u="column"==e?l?n.cell:n.header_cell:"row"==e?s?n.cell:n.header_cell:n.cell;i.map.cellsInRect(c).forEach(e=>{let t=e+i.tableStart,r=o.doc.nodeAt(t);r&&o.setNodeMarkup(t,u,r.attrs)}),r(o)}return!0}}I("row",{useDeprecatedLogic:!0}),I("column",{useDeprecatedLogic:!0});let O=I("cell",{useDeprecatedLogic:!0});function z(e){return function(t,r){if(!b(t))return!1;let n=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,r=e.before();t>=0;t--){let n=e.node(-1).child(t),i=n.lastChild;if(i)return r-1-i.nodeSize;r-=n.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let r=e.indexAfter(-1),n=e.after();r<t.childCount;r++){let e=t.child(r);if(e.childCount)return n+1;n+=e.nodeSize}}return null}(y(t),e);if(null==n)return!1;if(r){let e=t.doc.resolve(n);r(t.tr.setSelection(a.U3.between(e,e.node(0).resolve(e.pos+e.nodeAfter.nodeSize))).scrollIntoView())}return!0}}function B(e,t){let r=e.selection;if(!(r instanceof E))return!1;if(t){let n=e.tr,i=f(e.schema).cell.createAndFill().content;r.forEachCell((e,t)=>{e.content.eq(i)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new c.Ji(i,0,0))}),n.docChanged&&t(n)}return!0}function P(e,t){let r=e.createAndFill();return new h.dL(r).replace(0,r.content.size,t).doc}function $(e,t,r,n,i,o,s,l){if(0==s||s==t.height)return!1;let a=!1;for(let c=i;c<o;c++){let i=s*t.width+c,o=t.map[i];if(t.map[i-t.width]==o){a=!0;let i=r.nodeAt(o),{top:u,left:d}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(l).map(o+n),null,{...i.attrs,rowspan:s-u}),e.insert(e.mapping.slice(l).map(t.positionAt(s,d,r)),i.type.createAndFill({...i.attrs,rowspan:u+i.attrs.rowspan-s})),c+=i.attrs.colspan-1}}return a}function H(e,t,r,n,i,o,s,l){if(0==s||s==t.width)return!1;let a=!1;for(let c=i;c<o;c++){let i=c*t.width+s,o=t.map[i];if(t.map[i-1]==o){a=!0;let i=r.nodeAt(o),u=t.colCount(o),d=e.mapping.slice(l).map(o+n);e.setNodeMarkup(d,null,w(i.attrs,s-u,i.attrs.colspan-(s-u))),e.insert(d+i.nodeSize,i.type.createAndFill(w(i.attrs,0,s-u))),c+=i.attrs.rowspan-1}}return a}function q(e,t,r,n,i){let o=r?e.doc.nodeAt(r-1):e.doc;if(!o)throw Error("No table found");let s=p.get(o),{top:l,left:a}=n,u=a+i.width,d=l+i.height,h=e.tr,m=0;function g(){if(!(o=r?h.doc.nodeAt(r-1):h.doc))throw Error("No table found");s=p.get(o),m=h.mapping.maps.length}(function(e,t,r,n,i,o,s){let l,a,u=f(e.doc.type.schema);if(i>t.width)for(let o=0,s=0;o<t.height;o++){let c,d=r.child(o);s+=d.nodeSize;let h=[];c=null==d.lastChild||d.lastChild.type==u.cell?l||(l=u.cell.createAndFill()):a||(a=u.header_cell.createAndFill());for(let e=t.width;e<i;e++)h.push(c);e.insert(e.mapping.slice(0).map(s-1+n),h)}if(o>t.height){let d=[];for(let e=0,n=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&r.nodeAt(t.map[n+e]).type==u.header_cell;d.push(i?a||(a=u.header_cell.createAndFill()):l||(l=u.cell.createAndFill()))}let h=u.row.create(null,c.FK.from(d)),p=[];for(let e=t.height;e<o;e++)p.push(h);e.insert(e.mapping.slice(s).map(n+r.nodeSize-2),p)}return!!(l||a)})(h,s,o,r,u,d,0)&&g(),$(h,s,o,r,a,u,l,m)&&g(),$(h,s,o,r,a,u,d,m)&&g(),H(h,s,o,r,l,d,a,m)&&g(),H(h,s,o,r,l,d,u,m)&&g();for(let e=l;e<d;e++){let t=s.positionAt(e,a,o),n=s.positionAt(e,u,o);h.replace(h.mapping.slice(m).map(t+r),h.mapping.slice(m).map(n+r),new c.Ji(i.rows[e-l],0,0))}g(),h.setSelection(new E(h.doc.resolve(r+s.positionAt(l,a,o)),h.doc.resolve(r+s.positionAt(d-1,u-1,o)))),t(h)}let K=(0,d.K)({ArrowLeft:U("horiz",-1),ArrowRight:U("horiz",1),ArrowUp:U("vert",-1),ArrowDown:U("vert",1),"Shift-ArrowLeft":W("horiz",-1),"Shift-ArrowRight":W("horiz",1),"Shift-ArrowUp":W("vert",-1),"Shift-ArrowDown":W("vert",1),Backspace:B,"Mod-Backspace":B,Delete:B,"Mod-Delete":B});function V(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function U(e,t){return(r,n,i)=>{if(!i)return!1;let o=r.selection;if(o instanceof E)return V(r,n,a.LN.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;let s=Y(i,e,t);if(null==s)return!1;if("horiz"==e)return V(r,n,a.LN.near(r.doc.resolve(o.head+t),t));{let i,o=r.doc.resolve(s),l=k(o,e,t);return i=l?a.LN.near(l,1):t<0?a.LN.near(r.doc.resolve(o.before(-1)),-1):a.LN.near(r.doc.resolve(o.after(-1)),1),V(r,n,i)}}}function W(e,t){return(r,n,i)=>{let o;if(!i)return!1;let s=r.selection;if(s instanceof E)o=s;else{let n=Y(i,e,t);if(null==n)return!1;o=new E(r.doc.resolve(n))}let l=k(o.$headCell,e,t);return!!l&&V(r,n,new E(o.$anchorCell,l))}}function J(e,t){let r=g(e.state.doc.resolve(t));
9return!!r&&(e.dispatch(e.state.tr.setSelection(new E(r))),!0)}function G(e,t,r){if(!b(e.state))return!1;let n=function(e){if(0===e.size)return null;let{content:t,openStart:r,openEnd:n}=e;for(;1==t.childCount&&(r>0&&n>0||"table"==t.child(0).type.spec.tableRole);)r--,n--,t=t.child(0).content;let i=t.child(0),o=i.type.spec.tableRole,s=i.type.schema,l=[];if("row"==o)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,o=e?0:Math.max(0,r-1),a=e<t.childCount-1?0:Math.max(0,n-1);(o||a)&&(i=P(f(s).row,new c.Ji(i,o,a)).content),l.push(i)}else{if("cell"!=o&&"header_cell"!=o)return null;l.push(r||n?P(f(s).row,new c.Ji(t,r,n)).content:t)}return function(e,t){let r=[];for(let e=0;e<t.length;e++){let n=t[e];for(let t=n.childCount-1;t>=0;t--){let{rowspan:i,colspan:o}=n.child(t).attrs;for(let t=e;t<e+i;t++)r[t]=(r[t]||0)+o}}let n=0;for(let e=0;e<r.length;e++)n=Math.max(n,r[e]);for(let i=0;i<r.length;i++)if(i>=t.length&&t.push(c.FK.empty),r[i]<n){let o=f(e).cell.createAndFill(),s=[];for(let e=r[i];e<n;e++)s.push(o);t[i]=t[i].append(c.FK.from(s))}return{height:t.length,width:n,rows:t}}(s,l)}(r),i=e.state.selection;if(i instanceof E){n||(n={width:1,height:1,rows:[c.FK.from(P(f(e.state.schema).cell,r))]});let t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=p.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return n=function({width:e,height:t,rows:r},n,i){if(e!=n){let t=[],i=[];for(let e=0;e<r.length;e++){let o=r[e],s=[];for(let r=t[e]||0,i=0;r<n;i++){let l=o.child(i%o.childCount);r+l.attrs.colspan>n&&(l=l.type.createChecked(w(l.attrs,l.attrs.colspan,r+l.attrs.colspan-n),l.content)),s.push(l),r+=l.attrs.colspan;for(let r=1;r<l.attrs.rowspan;r++)t[e+r]=(t[e+r]||0)+l.attrs.colspan}i.push(c.FK.from(s))}r=i,e=n}if(t!=i){let e=[];for(let n=0,o=0;n<i;n++,o++){let s=[],l=r[o%t];for(let e=0;e<l.childCount;e++){let t=l.child(e);n+t.attrs.rowspan>i&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,i-t.attrs.rowspan)},t.content)),s.push(t)}e.push(c.FK.from(s))}r=e,t=i}return{width:e,height:t,rows:r}}(n,s.right-s.left,s.bottom-s.top),q(e.state,e.dispatch,o,s,n),!0}if(!n)return!1;{let t=y(e.state),r=t.start(-1);return q(e.state,e.dispatch,r,p.get(t.node(-1)).findCell(t.pos-r),n),!0}}function Z(e,t){var r;let n;if(0!=t.button||t.ctrlKey||t.metaKey)return;let i=X(e,t.target);if(t.shiftKey&&e.state.selection instanceof E)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=g(e.state.selection.$anchor))&&(null==(r=Q(e,t))?void 0:r.pos)!=n.pos)o(n,t),t.preventDefault();else if(!i)return;function o(t,r){let n=Q(e,r),i=null==m.getState(e.state);if(!n||!x(t,n))if(!i)return;else n=t;let o=new E(t,n);if(i||!e.state.selection.eq(o)){let r=e.state.tr.setSelection(o);i&&r.setMeta(m,t.pos),e.dispatch(r)}}function s(){e.root.removeEventListener("mouseup",s),e.root.removeEventListener("dragstart",s),e.root.removeEventListener("mousemove",l),null!=m.getState(e.state)&&e.dispatch(e.state.tr.setMeta(m,-1))}function l(r){let n,l=m.getState(e.state);if(null!=l)n=e.state.doc.resolve(l);else if(X(e,r.target)!=i&&!(n=Q(e,t)))return s();n&&o(n,r)}e.root.addEventListener("mouseup",s),e.root.addEventListener("dragstart",s),e.root.addEventListener("mousemove",l)}function Y(e,t,r){if(!(e.state.selection instanceof a.U3))return null;let{$head:n}=e.state.selection;for(let i=n.depth-1;i>=0;i--){let o=n.node(i);if((r<0?n.index(i):n.indexAfter(i))!=(r<0?0:o.childCount))break;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=n.before(i),s="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(s)?o:null}}return null}function X(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function Q(e,t){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return null;let{inside:n,pos:i}=r;return n>=0&&g(e.state.doc.resolve(n))||g(e.state.doc.resolve(i))}var ee=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),et(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,et(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function et(e,t,r,n,i,o){let s=0,l=!0,a=t.firstChild,c=e.firstChild;if(c){for(let e=0,r=0;e<c.childCount;e++){let{colspan:u,colwidth:d}=c.child(e).attrs;for(let e=0;e<u;e++,r++){let c=i==r?o:d&&d[e],u=c?c+"px":"";if(s+=c||n,c||(l=!1),a)a.style.width!=u&&(a.style.width=u),a=a.nextSibling;else{let e=document.createElement("col");e.style.width=u,t.appendChild(e)}}}for(;a;){var u;let e=a.nextSibling;null==(u=a.parentNode)||u.removeChild(a),a=e}l?(r.style.width=s+"px",r.style.minWidth=""):(r.style.width="",r.style.minWidth=s+"px")}}let er=new a.hs("tableColumnResizing");var en=class e{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(t){let r=t.getMeta(er);
9if(r&&null!=r.setHandle)return new e(r.setHandle,!1);if(r&&void 0!==r.setDragging)return new e(this.activeHandle,r.setDragging);if(this.activeHandle>-1&&t.docChanged){let r=t.mapping.map(this.activeHandle,-1);return v(t.doc.resolve(r))||(r=-1),new e(r,this.dragging)}return this}};function ei(e,t,r,n){let i=e.posAtCoords({left:t.clientX+("right"==r?-n:n),top:t.clientY});if(!i)return -1;let{pos:o}=i,s=g(e.state.doc.resolve(o));if(!s)return -1;if("right"==r)return s.pos;let l=p.get(s.node(-1)),a=s.start(-1),c=l.map.indexOf(s.pos-a);return c%l.width==0?-1:a+l.map[c-1]}function eo(e,t,r){let n=t.clientX-e.startX;return Math.max(r,e.startWidth+n)}function es(e,t){e.dispatch(e.state.tr.setMeta(er,{setHandle:t}))}function el(e,t,r,n){let i=e.state.doc.resolve(t),o=i.node(-1),s=i.start(-1),l=p.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,a=e.domAtPos(i.start(-1)).node;for(;a&&"TABLE"!=a.nodeName;)a=a.parentNode;a&&et(o,a.firstChild,a,n,l,r)}function ea(e,t){return t?["width",`${Math.max(t,e)}px`]:["min-width",`${e}px`]}function ec(e,t,r,n,i,o){var s;let l=0,a=!0,c=t.firstChild,u=e.firstChild;if(null!==u)for(let e=0,r=0;e<u.childCount;e+=1){let{colspan:s,colwidth:d}=u.child(e).attrs;for(let e=0;e<s;e+=1,r+=1){let s=i===r?o:d&&d[e],u=s?`${s}px`:"";if(l+=s||n,s||(a=!1),c){if(c.style.width!==u){let[e,t]=ea(n,s);c.style.setProperty(e,t)}c=c.nextSibling}else{let e=document.createElement("col"),[r,i]=ea(n,s);e.style.setProperty(r,i),t.appendChild(e)}}}for(;c;){let e=c.nextSibling;null==(s=c.parentNode)||s.removeChild(c),c=e}a?(r.style.width=`${l}px`,r.style.minWidth=""):(r.style.width="",r.style.minWidth=`${l}px`)}class eu{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),ec(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,ec(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"===e.type&&(e.target===this.table||this.colgroup.contains(e.target))}}function ed(e,t){return t?e.createChecked(null,t):e.createAndFill()}let eh=({editor:e})=>{let{selection:t}=e.state;if(!(t instanceof E))return!1;let r=0,n=(0,l.eL)(t.ranges[0].$from,e=>"table"===e.type.name);return null==n||n.node.descendants(e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(r+=1)}),r===t.ranges.length&&(e.commands.deleteTable(),!0)},ep=l.bP.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,renderWrapper:!1,handleWidth:5,cellMinWidth:25,View:eu,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({node:e,HTMLAttributes:t}){let{colgroup:r,tableWidth:n,tableMinWidth:i}=function(e,t,r,n){let i=0,o=!0,s=[],l=e.firstChild;if(!l)return{};for(let e=0,r=0;e<l.childCount;e+=1){let{colspan:n,colwidth:a}=l.child(e).attrs;for(let e=0;e<n;e+=1,r+=1){let n=void 0===r?void 0:a&&a[e];
9i+=n||t,n||(o=!1);let[l,c]=ea(t,n);s.push(["col",{style:`${l}: ${c}`}])}}return{colgroup:["colgroup",{},...s],tableWidth:o?`${i}px`:"",tableMinWidth:o?"":`${i}px`}}(e,this.options.cellMinWidth),o=["table",(0,l.KV)(this.options.HTMLAttributes,t,{style:n?`width: ${n}`:`min-width: ${i}`}),r,["tbody",0]];return this.options.renderWrapper?["div",{class:"tableWrapper"},o]:o},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:r=!0}={})=>({tr:n,dispatch:i,editor:o})=>{let s=function(e,t,r,n,i){let o=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;let t={};return Object.keys(e.nodes).forEach(r=>{let n=e.nodes[r];n.spec.tableRole&&(t[n.spec.tableRole]=n)}),e.cached.tableNodeTypes=t,t}(e),s=[],l=[];for(let e=0;e<r;e+=1){let e=ed(o.cell,void 0);if(e&&l.push(e),n){let e=ed(o.header_cell,void 0);e&&s.push(e)}}let a=[];for(let e=0;e<t;e+=1)a.push(o.row.createChecked(null,n&&0===e?s:l));return o.table.createChecked(null,a)}(o.schema,e,t,r);if(i){let e=n.selection.from+1;n.replaceSelectionWith(s).scrollIntoView().setSelection(a.U3.near(n.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!b(e))return!1;if(t){let r=N(e);t(T(e.tr,r,r.left))}return!0})(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!b(e))return!1;if(t){let r=N(e);t(T(e.tr,r,r.right))}return!0})(e,t),deleteColumn:()=>({state:e,dispatch:t})=>(function(e,t){if(!b(e))return!1;if(t){let r=N(e),n=e.tr;if(0==r.left&&r.right==r.map.width)return!1;for(let e=r.right-1;!function(e,{map:t,table:r,tableStart:n},i){let o=e.mapping.maps.length;for(let s=0;s<t.height;){let l=s*t.width+i,a=t.map[l],c=r.nodeAt(a),u=c.attrs;if(i>0&&t.map[l-1]==a||i<t.width-1&&t.map[l+1]==a)e.setNodeMarkup(e.mapping.slice(o).map(n+a),null,w(u,i-t.colCount(a)));else{let t=e.mapping.slice(o).map(n+a);e.delete(t,t+c.nodeSize)}s+=u.rowspan}}(n,r,e),e!=r.left;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=p.get(e)}t(n)}return!0})(e,t),addRowBefore:()=>({state:e,dispatch:t})=>(function(e,t){if(!b(e))return!1;if(t){let r=N(e);t(j(e.tr,r,r.top))}return!0})(e,t),addRowAfter:()=>({state:e,dispatch:t})=>(function(e,t){if(!b(e))return!1;if(t){let r=N(e);t(j(e.tr,r,r.bottom))}return!0})(e,t),deleteRow:()=>({state:e,dispatch:t})=>(function(e,t){if(!b(e))return!1;if(t){let r=N(e),n=e.tr;if(0==r.top&&r.bottom==r.map.height)return!1;for(let e=r.bottom-1;!function(e,{map:t,table:r,tableStart:n},i){let o=0;for(let e=0;e<i;e++)o+=r.child(e).nodeSize;let s=o+r.child(i).nodeSize,l=e.mapping.maps.length;e.delete(o+n,s+n);let a=new Set;for(let o=0,s=i*t.width;o<t.width;o++,s++){let c=t.map[s];if(!a.has(c)){if(a.add(c),i>0&&c==t.map[s-t.width]){let t=r.nodeAt(c).attrs;e.setNodeMarkup(e.mapping.slice(l).map(c+n),null,{...t,rowspan:t.rowspan-1}),o+=t.colspan-1}else if(i<t.height&&c==t.map[s+t.width]){let s=r.nodeAt(c),a=s.attrs,u=s.type.create({...a,rowspan:s.attrs.rowspan-1},s.content),d=t.positionAt(i+1,o,r);e.insert(e.mapping.slice(l).map(n+d),u),o+=a.colspan-1}}}}(n,r,e),e!=r.top;e--){let e=r.tableStart?n.doc.nodeAt(r.tableStart-1):n.doc;if(!e)throw RangeError("No table found");r.table=e,r.map=p.get(r.table)}t(n)}return!0})(e,t),deleteTable:()=>({state:e,dispatch:t})=>(function(e,t){let r=e.selection.$anchor;for(let n=r.depth;n>0;n--)if("table"==r.node(n).type.spec.tableRole)return t&&t(e.tr.delete(r.before(n),r.after(n)).scrollIntoView()),!0;return!1})(e,t),mergeCells:()=>({state:e,dispatch:t})=>F(e,t),splitCell:()=>({state:e,dispatch:t})=>L(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>I("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>I("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>O(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!F(e,t)||L(e,t),setCellAttribute:(e,t)=>({state:r,dispatch:n})=>(function(e,t){return function(r,n){if(!b(r))return!1;let i=y(r);if(i.nodeAfter.attrs[e]===t)return!1;if(n){let o=r.tr;r.selection instanceof E?r.selection.forEachCell((r,n)=>{r.attrs[e]!==t&&o.setNodeMarkup(n,null,{...r.attrs,[e]:t})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[e]:t}),n(o)}return!0}})(e,t)(r,n),goToNextCell:()=>({state:e,dispatch:t})=>z(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>z(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&D(e),!0),setCellSelection:e=>({tr:t,dispatch:r})=>{if(r){let r=E.create(t.doc,e.anchorCell,e.headCell);t.setSelection(r)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"
9Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:eh,"Mod-Backspace":eh,Delete:eh,"Mod-Delete":eh}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[function({handleWidth:e=5,cellMinWidth:t=25,defaultCellMinWidth:r=100,View:n=ee,lastColumnResizable:i=!0}={}){let o=new a.k_({key:er,state:{init(e,t){var i;let s=null==(i=o.spec)||null==(i=i.props)?void 0:i.nodeViews,l=f(t.schema).table.name;return n&&s&&(s[l]=(e,t)=>new n(e,r,t)),new en(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>{let t=er.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,r)=>{!function(e,t,r,n){if(!e.editable)return;let i=er.getState(e.state);if(i&&!i.dragging){let o=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),s=-1;if(o){let{left:n,right:i}=o.getBoundingClientRect();t.clientX-n<=r?s=ei(e,t,"left",r):i-t.clientX<=r&&(s=ei(e,t,"right",r))}if(s!=i.activeHandle){if(!n&&-1!==s){let t=e.state.doc.resolve(s),r=t.node(-1),n=p.get(r),i=t.start(-1);if(n.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==n.width-1)return}es(e,s)}}}(t,r,e,i)},mouseleave:e=>{!function(e){if(!e.editable)return;let t=er.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&es(e,-1)}(e)},mousedown:(e,n)=>{!function(e,t,r,n){var i;if(!e.editable)return;let o=null!=(i=e.dom.ownerDocument.defaultView)?i:window,s=er.getState(e.state);if(!s||-1==s.activeHandle||s.dragging)return;let l=e.state.doc.nodeAt(s.activeHandle),a=function(e,t,{colspan:r,colwidth:n}){let i=n&&n[n.length-1];if(i)return i;let o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,l=r;if(n)for(let e=0;e<r;e++)n[e]&&(s-=n[e],l--);return s/l}(e,s.activeHandle,l.attrs);function c(t){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);let n=er.getState(e.state);(null==n?void 0:n.dragging)&&(function(e,t,r){let n=e.state.doc.resolve(t),i=n.node(-1),o=p.get(i),s=n.start(-1),l=o.colCount(n.pos-s)+n.nodeAfter.attrs.colspan-1,a=e.state.tr;for(let e=0;e<o.height;e++){let t=e*o.width+l;if(e&&o.map[t]==o.map[t-o.width])continue;let n=o.map[t],c=i.nodeAt(n).attrs,u=1==c.colspan?0:l-o.colCount(n);if(c.colwidth&&c.colwidth[u]==r)continue;let d=c.colwidth?c.colwidth.slice():Array(c.colspan).fill(0);d[u]=r,a.setNodeMarkup(s+n,null,{...c,colwidth:d})}a.docChanged&&e.dispatch(a)}(e,n.activeHandle,eo(n.dragging,t,r)),e.dispatch(e.state.tr.setMeta(er,{setDragging:null})))}function u(t){if(!t.which)return c(t);let i=er.getState(e.state);if(i&&i.dragging){let o=eo(i.dragging,t,r);el(e,i.activeHandle,o,n)}}e.dispatch(e.state.tr.setMeta(er,{setDragging:{startX:t.clientX,startWidth:a}})),el(e,s.activeHandle,a,n),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),t.preventDefault()}(e,n,t,r)}},decorations:e=>{let t=er.getState(e);if(t&&t.activeHandle>-1)return function(e,t){let r=[],n=e.doc.resolve(t),i=n.node(-1);if(!i)return u.zF.empty;let o=p.get(i),s=n.start(-1),l=o.colCount(n.pos-s)+n.nodeAfter.attrs.colspan-1;for(let t=0;t<o.height;t++){let n=l+t*o.width;if((l==o.width-1||o.map[n]!=o.map[n+1])&&(0==t||o.map[n]!=o.map[n-o.width])){var a;let t=o.map[n],l=s+t+i.nodeAt(t).nodeSize-1,c=document.createElement("div");c.className="column-resize-handle",(null==(a=er.getState(e))?void 0:a.dragging)&&r.push(u.NZ.node(s+t,s+t+i.nodeAt(t).nodeSize,{class:"column-resize-dragging"})),r.push(u.NZ.widget(l,c))}}return u.zF.create(e.doc,r)}(e,t.activeHandle)},nodeViews:{}}});return o}({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,defaultCellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],function({allowTableNodeSelection:e=!1}={}){return new a.k_({key:m,state:{init:()=>null,apply(e,t){let r=e.getMeta(m);if(null!=r)return -1==r?null:r;if(null==t||!e.docChanged)return t;let{deleted:n,pos:i}=e.mapping.mapResult(t);return n?null:i}},props:{decorations:S,handleDOMEvents:{mousedown:Z},createSelectionBetween:e=>null!=m.getState(e.state)?e.state.selection:null,handleTripleClick:J,handleKeyDown:K,handlePaste:G},appendTransaction:(t,r,n)=>(function(e,t,r){let n,i,o=(t||e).selection,s=(t||e).doc;if(o instanceof a.nh&&(i=o.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)n=E.create(s,o.from);else if("row"==i){let e=s.resolve(o.from+1);n=E.rowSelection(e,e)}else if(!r){let e=p.get(o.node),t=o.from+1,r=t+e.map[e.width*e.height-1];n=E.create(s,t+1,r)}}else o instanceof a.U3&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<t.pos-6)return!1;let r=e.pos,n=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,r++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,n--);return r==n&&/row|table/.test(e.node(i).type.spec.tableRole)}(o)?n=a.U3.create(s,o.from):o instanceof a.U3&&function({$from:e,$to:t}){let r,n;for(let t=e.depth;t>0;t--){let n=e.node(t);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}for(let e=t.depth;e>0;e--){let r=t.node(e);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}return r!==n&&0===t.parentOffset}(o)&&(n=a.U3.create(s,o.$from.start(),o.$from.end()));return n&&(t||(t=e.tr)).setSelection(n),t})(n,D(n,r),e)})}({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(e){let t={name:e.name,options:e.options,storage:e.storage};return{tableRole:(0,l.gk)((0,l.iI)(e,"tableRole",t))}}}),ef=l.bP.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",(0,l.KV)(this.options.HTMLAttributes,e),0]}}),em=l.bP.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:e}){return["th",(0,l.KV)(this.options.HTMLAttributes,e),0]}}),eg=l.bP.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:e=>{let t=e.getAttribute("colwidth");return t?t.split(",").map(e=>parseInt(e,10)):null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:e}){return["td",(0,l.KV)(this.options.HTMLAttributes,e),0]}});var eb=r(49516);let ey=[ep.configure({resizable:!0}),ef,em,eg];function ev(e){let{value:t,onChange:r,disabled:n,extraExtensions:i=[],tables:l=!1}=e,[a,c]=(0,o.useState)("wysiwyg"),u=(0,o.useRef)(!1),d=(0,o.useRef)(!1),h=(e,t)=>{d.current=!0;try{e.commands.setContent(t,!1)}finally{queueMicrotask(()=>{d.current=!1})}},p=(0,s.hG)({immediatelyRender:!1,extensions:[...eb.w,...i,...l?ey:[]],content:"",editable:!n,onUpdate(e){let{editor:t}=e;d.current||r(t.storage.markdown.getMarkdown())}});(0,o.useEffect)(()=>{p&&!u.current&&(u.current=!0,t&&queueMicrotask(()=>h(p,t)))},[p,t]),(0,o.useEffect)(()=>{p&&u.current&&p.storage.markdown.getMarkdown()!==t&&queueMicrotask(()=>h(p,t))},[t]),(0,o.useEffect)(()=>{null==p||p.setEditable(!n,!1)},[n,p]);let f=(0,o.useCallback)(()=>{"wysiwyg"===a?c("markdown"):(c("wysiwyg"),queueMicrotask(()=>{p&&h(p,t)}))},[a,p,t]);return{editor:p,mode:a,toggleMode:f}}},65208:(e,t,r)=>{"use strict";r.d(t,{FormTitle:()=>o});var n=r(95155),i=r(40745);function o(e){let{title:t,description:r,actions:o,className:s}=e,l=(0,n.jsx)("h1",{className:"text-2xl font-bold mt-0",children:t});return(0,n.jsxs)("div",{className:(0,i.cn)("mb-6",s),children:[o?(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[l,(0,n.jsx)("div",{className:"flex items-center gap-2",children:o})]}):l,r&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:r})]})}},65811:(e,t,r)=>{"use strict";r.d(t,{AfProvider:()=>u,DEFAULT_TIME_ZONE:()=>c});var n=r(95155),i=r(12115),o=r(12297),s=r(45412),l=r(60466),a=r(34143);let c="Europe/Berlin";function u(e){var t;let{children:r,use:u,mountToaster:d=!0,...h}=e,p={...h,timeZone:null!=(t=h.timeZone)?t:c},f=u.reduceRight((e,t)=>t(p,e),r),m=(0,i.useMemo)(()=>{var e;return(0,a.O)(l.$,null!=(e=h.locale)?e:"en")},[h.locale]);return(0,n.jsxs)(s.CoreMessagesContext.Provider,{value:m,children:[f,d&&(0,n.jsx)(o.AdminToaster,{})]})}},66703:(e,t,r)=>{"use strict";r.d(t,{ExportOptionsDialog:()=>f});var n=r(95155),i=r(12115),o=r(6815),s=r(51834),l=r(73457),a=r(76444),c=r(11186),u=r(45412),d=r(38855);let h=[3,6,12,24];function p(e){let t={};for(let n of e){var r;"toggle"===n.kind?t[n.id]=!!n.locked||null==(r=n.defaultValue)||r:t[n.id]=n.defaultMonths}return t}function f(e){let{open:t,onOpenChange:r,title:f,description:m,fields:g,selectedCount:b,submitLabel:y,onSubmit:v}=e,x=(0,u.b)(),k=(0,i.useMemo)(()=>null!=g?g:[],[g]),[w,C]=(0,i.useState)(()=>p(k)),[E,A]=(0,i.useState)(!1);(0,i.useEffect)(()=>{t&&(C(p(k)),A(!1))},[t,k]);let S=async e=>{e.preventDefault(),A(!0);try{await v(w),r(!1)}finally{A(!1)}};return(0,n.jsx)(s.lG,{open:t,onOpenChange:r,children:(0,n.jsxs)(s.Cf,{children:[(0,n.jsxs)(s.c7,{children:[(0,n.jsx)(s.L3,{className:"m-0",children:f}),m&&(0,n.jsx)(s.rr,{children:m})]}),(0,n.jsxs)("form",{onSubmit:S,className:"space-y-5",children:[k.map(e=>{var t;return"toggle"===e.kind?(0,n.jsxs)("label",{htmlFor:"export-opt-".concat(e.id),className:"flex items-start gap-3",children:[(0,n.jsx)(l.S,{id:"export-opt-".concat(e.id),checked:!!w[e.id],disabled:e.locked||E,onCheckedChange:t=>C(r=>({...r,[e.id]:!0===t})),className:"mt-0.5"}),(0,n.jsxs)("span",{className:"space-y-0.5",children:[(0,n.jsx)("span",{className:"block text-sm font-medium leading-none",children:e.label}),e.description&&(0,n.jsx)("span",{className:"block text-xs text-muted-foreground",children:e.description})]})]},e.id):(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(a.J,{htmlFor:"export-opt-".concat(e.id),children:e.label}),(0,n.jsxs)(c.l6,{value:String(w[e.id]),onValueChange:t=>C(r=>({...r,[e.id]:Number(t)})),disabled:E,children:[(0,n.jsx)(c.bq,{className:"w-48",children:(0,n.jsx)(c.yv,{})}),(0,n.jsx)(c.gC,{children:(null!=(t=e.choices)?t:h).map(e=>(0,n.jsx)(c.eb,{value:String(e),children:(0,d.G)(x("core.adminExport.lastMonths"),{months:e})},e))})]}),e.description&&(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:e.description})]},e.id)}),(0,n.jsxs)(s.Es,{className:"items-center sm:justify-between",children:[(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,d.G)(x("core.adminExport.selectedSummary"),{count:b})}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(o.AdminButton,{type:"button",variant:"secondary",onClick:()=>r(!1),disabled:E,children:x("core.adminCreate.cancel")}),(0,n.jsx)(o.AdminButton,{type:"submit",variant:"primary",loading:E,children:null!=y?y:x("core.adminExport.export")})]})]})]})]})})}},68291:(e,t,r)=>{"use strict";r.d(t,{ReorderableList:()=>c});var n=r(95155),i=r(12115),o=r(17787),s=r(49027),l=r(27587);let a=(e,t)=>String(t);function c(e){let{items:t,getItemId:r=a,onReorder:l,renderItem:c,disabled:d,activationDistance:h=8,className:p}=e,f=(0,o.FR)((0,o.MS)(o.AN,{activationConstraint:{distance:h}}),(0,o.MS)(o.uN,{coordinateGetter:s.JR})),m=t.map((e,t)=>r(e,t)),g=(0,i.useCallback)(e=>{let{active:r,over:n}=e;if(!n||r.id===n.id)return;let i=m.indexOf(String(r.id)),o=m.indexOf(String(n.id));-1!==i&&-1!==o&&l((0,s.be)(t,i,o))},[m,t,l]);return d?(0,n.jsx)("div",{className:p,children:t.map((e,t)=>(0,n.jsx)(i.Fragment,{children:c(e,{attributes:{},listeners:{},isDragging:!1},()=>{},{},t)},m[t]))}):(0,n.jsx)(o.Mp,{sensors:f,collisionDetection:o.fp,onDragEnd:g,children:(0,n.jsx)(s.gB,{items:m,strategy:s._G,children:(0,n.jsx)("div",{className:p,children:t.map((e,t)=>(0,n.jsx)(u,{id:m[t],item:e,index:t,renderItem:c},m[t]))})})})}function u(e){let{id:t,item:r,index:i,renderItem:o}=e,{attributes:a,listeners:c,setNodeRef:u,transform:d,transition:h,isDragging:p}=(0,s.gl)({id:t}),f={transform:l.Ks.Transform.toString(d),transition:h,opacity:p?.6:1};return(0,n.jsx)(n.Fragment,{children:o(r,{attributes:a,listeners:null!=c?c:{},isDragging:p},u,f,i)})}},70699:(e,t,r)=>{"use strict";r.d(t,{LanguageSelector:()=>c});
9var n=r(95155),i=r(3998),o=r(11647),s=r(6259),l=r(6191),a=r(45412);function c(e){let{languages:t,activeLanguage:r,onLanguageChange:c,onAddLanguage:u,translations:d,isComplete:h,supportedLanguages:p,availableLanguages:f,disabled:m}=e,g=(0,a.b)();return(0,n.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[t.map(e=>{let t=d.find(t=>t.language===e),i=!!t&&h(t),o=e===r;return(0,n.jsxs)("button",{type:"button",disabled:m,onClick:()=>c(e),className:["inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",o?"bg-primary text-primary-foreground shadow-sm":"bg-muted text-muted-foreground hover:bg-muted/80",m?"opacity-50 cursor-not-allowed":"cursor-pointer"].filter(Boolean).join(" "),children:[(0,n.jsx)("span",{className:["inline-block h-1.5 w-1.5 rounded-full",i?"bg-green-400":o?"bg-primary-foreground/40":"bg-muted-foreground/40"].join(" ")}),e.toUpperCase()]},e)}),f.length>0&&!m&&(0,n.jsxs)(s.rI,{children:[(0,n.jsx)(s.ty,{asChild:!0,children:(0,n.jsxs)(i.$,{variant:"outline",size:"sm",className:"h-8 gap-1 px-2",children:[(0,n.jsx)(l.A,{className:"h-3.5 w-3.5"}),(0,n.jsx)("span",{className:"sr-only sm:not-sr-only sm:inline text-xs",children:g("core.languageSelector.addLanguage")})]})}),(0,n.jsx)(s.SQ,{align:"start",children:f.map(e=>(0,n.jsxs)(s._2,{onClick:()=>u(e.code),children:[(0,n.jsx)(o.E,{variant:"outline",className:"mr-2 font-mono text-xs",children:e.code.toUpperCase()}),e.label]},e.code))})]})]})}},71012:(e,t,r)=>{"use strict";r.d(t,{Bt:()=>f,Hf:()=>p,Kj:()=>d,Nu:()=>u,Qx:()=>m,dd:()=>c,qD:()=>a,wV:()=>h});let n={day:1,week:7,month:28};function i(e,t){let r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}).formatToParts(e),n=e=>{var t,n;return Number(null!=(n=null==(t=r.find(t=>t.type===e))?void 0:t.value)?n:"0")};return{year:n("year"),month:n("month"),day:n("day"),hour:n("hour")%24,minute:n("minute")}}function o(e,t){let r=i(e,t);return Math.round((Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute)-6e4*Math.floor(e.getTime()/6e4))/6e4)}function s(e,t,r,n,i,s){let l=Date.UTC(e,t-1,r,n,i),a=l-6e4*o(new Date(l),s);return new Date(a=l-6e4*o(new Date(a),s))}function l(e,t,r){let n=i(e,r);return s(n.year,n.month,n.day+t,0,0,r)}function a(e,t,r){let o=function(e,t){let r=i(e,t);return s(r.year,r.month,r.day,0,0,t)}(t,r);return{start:o,end:l(o,n[e],r)}}function c(e,t,r,i){let o=l(e.start,n[t]*r,i);return{start:o,end:l(o,n[t],i)}}function u(e,t){let r=("string"==typeof t?new Date(t):t).getTime(),n=e.end.getTime()-e.start.getTime();return n<=0?0:(r-e.start.getTime())/n*100}function d(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.6,i=u(e,t),o=u(e,r);if(!Number.isFinite(i)||!Number.isFinite(o)||o<=0||i>=100)return null;let s=Math.max(0,i);return{left:s,width:Math.max(Math.min(100,o)-s,n),clippedStart:i<0,clippedEnd:o>100}}function h(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",a=[];if("day"===e){let e=i(t.start,r);for(let n=0;n<24;n+=1){let i=s(e.year,e.month,e.day,n,0,r);if(i>=t.end)break;a.push({at:i,label:"".concat(String(n).padStart(2,"0"),":00"),major:n%6==0})}return a}let c=n[e],u=new Intl.DateTimeFormat(o,{timeZone:r,weekday:"week"===e?"short":void 0,day:"numeric",month:"week"===e?void 0:"numeric"});for(let e=0;e<c;e+=1){var d,h;let n=l(t.start,e,r);if(n>=t.end)break;a.push({at:n,label:u.format(n),major:(d=n,h=r,"Mon"===new Intl.DateTimeFormat("en-US",{timeZone:h,weekday:"short"}).format(d))})}return a}function p(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en";if("day"===t)return new Intl.DateTimeFormat(n,{timeZone:r,weekday:"short",day:"numeric",month:"short",year:"numeric"}).format(e.start);let i=new Intl.DateTimeFormat(n,{timeZone:r,day:"numeric",month:"short"}),o=l(e.end,-1,r);return"".concat(i.format(e.start)," â ").concat(i.format(o))}function f(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:15,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:16,o=e.end.getTime()-e.start.getTime();if(!Number.isFinite(t)||o<=0||r<=0||Math.abs(t)<Math.max(0,i))return 0;let s=t/r*o,l=6e4*Math.max(1,Math.round(n)),a=Math.round(s/l)*l;return 0===a?s>0?l:-l:a}function m(e,t){let r=Date.parse(e);return Number.isFinite(r)?new Date(r+t).toISOString():null}},71360:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},72107:(e,t,r)=>{"use strict";r.d(t,{$f:()=>T,G2:()=>v,I$:()=>E,Im:()=>_,Qv:()=>a,Sd:()=>b,Z1:()=>A,_G:()=>u,_e:()=>p,bh:()=>x,eB:()=>c,eT:()=>g,ec:()=>j,hy:()=>M,ic:()=>s,iz:()=>S,pC:()=>w,yY:()=>k,y_:()=>F});var n=r(62463),i=r(92322),o=r(51876);let s=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function l(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("backward",e):!(r.parentOffset>0))?r:null}let a=(e,t,r)=>{let s=l(e,r);if(!s)return!1;let a=f(s);if(!a){let r=s.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let c=a.nodeBefore;if(D(e,a,t,-1))return!0;
9if(0==s.parent.content.size&&(h(c,"end")||o.nh.isSelectable(c)))for(let r=s.depth;;r--){let l=(0,n.$L)(e.doc,s.before(r),s.after(r),i.Ji.empty);if(l&&l.slice.size<l.to-l.from){if(t){let r=e.tr.step(l);r.setSelection(h(c,"end")?o.LN.findFrom(r.doc.resolve(r.mapping.map(a.pos,-1)),-1):o.nh.create(r.doc,a.pos-c.nodeSize)),t(r.scrollIntoView())}return!0}if(1==r||s.node(r-1).childCount>1)break}return!!c.isAtom&&a.depth==s.depth-1&&(t&&t(e.tr.delete(a.pos-c.nodeSize,a.pos).scrollIntoView()),!0)},c=(e,t,r)=>{let n=l(e,r);if(!n)return!1;let i=f(n);return!!i&&d(e,i,t)},u=(e,t,r)=>{let n=m(e,r);if(!n)return!1;let i=y(n);return!!i&&d(e,i,t)};function d(e,t,r){let s=t.nodeBefore,l=t.pos-1;for(;!s.isTextblock;l--){if(s.type.spec.isolating)return!1;let e=s.lastChild;if(!e)return!1;s=e}let a=t.nodeAfter,c=t.pos+1;for(;!a.isTextblock;c++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let u=(0,n.$L)(e.doc,l,c,i.Ji.empty);if(!u||u.from!=l||u instanceof n.Ln&&u.slice.size>=c-l)return!1;if(r){let t=e.tr.step(u);t.setSelection(o.U3.create(t.doc,l)),r(t.scrollIntoView())}return!0}function h(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)break}return!1}let p=(e,t,r)=>{let{$head:n,empty:i}=e.selection,s=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;s=f(n)}let l=s&&s.nodeBefore;return!!l&&!!o.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos-l.nodeSize)).scrollIntoView()),!0)};function f(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function m(e,t){let{$cursor:r}=e.selection;return r&&(t?t.endOfTextblock("forward",e):!(r.parentOffset<r.parent.content.size))?r:null}let g=(e,t,r)=>{let s=m(e,r);if(!s)return!1;let l=y(s);if(!l)return!1;let a=l.nodeAfter;if(D(e,l,t,1))return!0;if(0==s.parent.content.size&&(h(a,"start")||o.nh.isSelectable(a))){let r=(0,n.$L)(e.doc,s.before(),s.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(h(a,"start")?o.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos)),1):o.nh.create(n.doc,n.mapping.map(l.pos))),t(n.scrollIntoView())}return!0}}return!!a.isAtom&&l.depth==s.depth-1&&(t&&t(e.tr.delete(l.pos,l.pos+a.nodeSize).scrollIntoView()),!0)},b=(e,t,r)=>{let{$head:n,empty:i}=e.selection,s=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;s=y(n)}let l=s&&s.nodeAfter;return!!l&&!!o.nh.isSelectable(l)&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos)).scrollIntoView()),!0)};function y(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}let v=(e,t)=>{let r=e.selection,i=r instanceof o.nh,s;if(i){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.from))return!1;s=r.from}else if(null==(s=(0,n.N0)(e.doc,r.from,-1)))return!1;if(t){let r=e.tr.join(s);i&&r.setSelection(o.nh.create(r.doc,s-e.doc.resolve(s).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0},x=(e,t)=>{let r=e.selection,i;if(r instanceof o.nh){if(r.node.isTextblock||!(0,n.n9)(e.doc,r.to))return!1;i=r.to}else if(null==(i=(0,n.N0)(e.doc,r.to,1)))return!1;return t&&t(e.tr.join(i).scrollIntoView()),!0},k=(e,t)=>{let{$from:r,$to:i}=e.selection,o=r.blockRange(i),s=o&&(0,n.jP)(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)},w=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!!r.parent.type.spec.code&&!!r.sameParent(n)&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function C(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}let E=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),s=r.indexAfter(-1),l=C(i.contentMatchAt(s));if(!l||!i.canReplaceWith(s,s,l))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,l.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},A=(e,t)=>
9{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof o.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let s=C(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,l=e.tr.insert(r,s.createAndFill());l.setSelection(o.U3.create(l.doc,r+1)),t(l.scrollIntoView())}return!0},S=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),o=i&&(0,n.jP)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)},M=(e,t)=>{let{$from:r,to:n}=e.selection,i,s=r.sharedDepth(n);return 0!=s&&(i=r.before(s),t&&t(e.tr.setSelection(o.nh.create(e.doc,i))),!0)};function D(e,t,r,s){let l,a,c,u=t.nodeBefore,d=t.nodeAfter,p,f,m=u.type.spec.isolating||d.type.spec.isolating;if(!m&&(l=t.nodeBefore,a=t.nodeAfter,c=t.index(),l&&a&&l.type.compatibleContent(a.type)&&(!l.content.size&&t.parent.canReplace(c-1,c)?(r&&r(e.tr.delete(t.pos-l.nodeSize,t.pos).scrollIntoView()),!0):!!t.parent.canReplace(c,c+1)&&!!(a.isTextblock||(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))))return!0;let g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(p=(f=u.contentMatchAt(u.childCount)).findWrapping(d.type))&&f.matchType(p[0]||d.type).validEnd){if(r){let o=t.pos+d.nodeSize,s=i.FK.empty;for(let e=p.length-1;e>=0;e--)s=i.FK.from(p[e].create(null,s));s=i.FK.from(u.copy(s));let l=e.tr.step(new n.Wg(t.pos-1,o,t.pos,o,new i.Ji(s,1,0),p.length,!0)),a=l.doc.resolve(o+2*p.length);a.nodeAfter&&a.nodeAfter.type==u.type&&(0,n.n9)(l.doc,a.pos)&&l.join(a.pos),r(l.scrollIntoView())}return!0}let b=d.type.spec.isolating||s>0&&m?null:o.LN.findFrom(t,1),y=b&&b.$from.blockRange(b.$to),v=y&&(0,n.jP)(y);if(null!=v&&v>=t.depth)return r&&r(e.tr.lift(y,v).scrollIntoView()),!0;if(g&&h(d,"start",!0)&&h(u,"end")){let o=u,s=[];for(;s.push(o),!o.isTextblock;)o=o.lastChild;let l=d,a=1;for(;!l.isTextblock;l=l.firstChild)a++;
9if(o.canReplace(o.childCount,o.childCount,l.content)){if(r){let o=i.FK.empty;for(let e=s.length-1;e>=0;e--)o=i.FK.from(s[e].copy(o));r(e.tr.step(new n.Wg(t.pos-s.length,t.pos+d.nodeSize,t.pos+a,t.pos+d.nodeSize-a,new i.Ji(o,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function N(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(r&&r(t.tr.setSelection(o.U3.create(t.doc,e<0?i.start(s):i.end(s)))),!0)}}let T=N(-1),j=N(1);function _(e,t=null){return function(r,i){let{$from:o,$to:s}=r.selection,l=o.blockRange(s),a=l&&(0,n.oM)(l,e,t);return!!a&&(i&&i(r.tr.wrap(l,a).scrollIntoView()),!0)}}function F(e,t=null){return function(r,n){let i=!1;for(let n=0;n<r.selection.ranges.length&&!i;n++){let{$from:{pos:o},$to:{pos:s}}=r.selection.ranges[n];r.doc.nodesBetween(o,s,(n,o)=>{if(i)return!1;if(!(!n.isTextblock||n.hasMarkup(e,t)))if(n.type==e)i=!0;else{let t=r.doc.resolve(o),n=t.index();i=t.parent.canReplaceWith(n,n+1,e)}})}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:o},$to:{pos:s}}=r.selection.ranges[n];i.setBlockType(o,s,e,t)}n(i.scrollIntoView())}return!0}}function L(...e){return function(t,r,n){for(let i=0;i<e.length;i++)if(e[i](t,r,n))return!0;return!1}}let R=L(s,a,p),I=L(s,g,b),O={Enter:L(w,A,S,(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof o.nh&&e.selection.node.isBlock)return!!r.parentOffset&&!!(0,n.zy)(e.doc,r.pos)&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let s=[],l,a,c=!1,u=!1;for(let e=r.depth;;e--){if(r.node(e).isBlock){let t;c=r.end(e)==r.pos+(r.depth-e),u=r.start(e)==r.pos-(r.depth-e),a=C(r.node(e-1).contentMatchAt(r.indexAfter(e-1)));s.unshift(t||(c&&a?{type:a}:null)),l=e;break}if(1==e)return!1;s.unshift(null)}let d=e.tr;(e.selection instanceof o.U3||e.selection instanceof o.i5)&&d.deleteSelection();let h=d.mapping.map(r.pos),p=(0,n.zy)(d.doc,h,s.length,s);if(p||(s[0]=a?{type:a}:null,p=(0,n.zy)(d.doc,h,s.length,s)),!p)return!1;if(d.split(h,s.length,s),!c&&u&&r.node(l).type!=a){let e=d.mapping.map(r.before(l)),t=d.doc.resolve(e);a&&r.node(l-1).canReplaceWith(t.index(),t.index()+1,a)&&d.setNodeMarkup(d.mapping.map(r.before(l)),a)}return t&&t(d.scrollIntoView()),!0}),"Mod-Enter":E,Backspace:R,"Mod-Backspace":R,"Shift-Backspace":R,Delete:I,"Mod-Delete":I,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new o.i5(e.doc))),!0)},z={"Ctrl-h":O.Backspace,"Alt-Backspace":O["Mod-Backspace"],"Ctrl-d":O.Delete,"Ctrl-Alt-Backspace":O["Mod-Delete"],"Alt-Delete":O["Mod-Delete"],"Alt-d":O["Mod-Delete"],"Ctrl-a":T,"Ctrl-e":j};for(let e in O)z[e]=O[e];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform()},72431:(e,t,r)=>{"use strict";r.d(t,{RG:()=>k,bL:()=>T,q7:()=>j});var n=r(12115),i=r(92556),o=r(49972),s=r(94446),l=r(3468),a=r(68946),c=r(97602),u=r(70222),d=r(23558),h=r(66218),p=r(95155),f="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[b,y,v]=(0,o.N)(g),[x,k]=(0,l.A)(g,[v]),[w,C]=x(g),E=n.forwardRef((e,t)=>(0,p.jsx)(b.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(b.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(A,{...e,ref:t})})}));E.displayName=g;var A=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:l=!1,dir:a,currentTabStopId:b,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:x,onEntryFocus:k,preventScrollOnEntryFocus:C=!1,...E}=e,A=n.useRef(null),S=(0,s.s)(t,A),M=(0,h.jH)(a),[D,T]=(0,d.i)({prop:b,defaultProp:null!=v?v:null,onChange:x,caller:g}),[j,_]=n.useState(!1),F=(0,u.c)(k),L=y(r),R=n.useRef(!1),[I,O]=n.useState(0);return n.useEffect(()=>{let e=A.current;if(e)return e.addEventListener(f,F),()=>e.removeEventListener(f,F)},[F]),(0,p.jsx)(w,{scope:r,orientation:o,dir:M,loop:l,currentTabStopId:D,onItemFocus:n.useCallback(e=>T(e),[T]),onItemShiftTab:n.useCallback(()=>_(!0),[]),onFocusableItemAdd:n.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>O(e=>e-1),[]),children:(0,p.jsx)(c.sG.div,{tabIndex:j||0===I?-1:0,"data-orientation":o,...E,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{R.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!R.current;if(e.target===e.currentTarget&&t&&!j){let t=new CustomEvent(f,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=L().filter(e=>
9e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),C)}}R.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>_(!1))})})}),S="RovingFocusGroupItem",M=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:s=!1,tabStopId:l,children:u,...d}=e,h=(0,a.B)(),f=l||h,m=C(S,r),g=m.currentTabStopId===f,v=y(r),{onFocusableItemAdd:x,onFocusableItemRemove:k,currentTabStopId:w}=m;return n.useEffect(()=>{if(o)return x(),()=>k()},[o,x,k]),(0,p.jsx)(b.ItemSlot,{scope:r,id:f,focusable:o,active:s,children:(0,p.jsx)(c.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return D[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=m.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>N(r))}}),children:"function"==typeof u?u({isCurrentTabStop:g,hasTabStop:null!=w}):u})})});M.displayName=S;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var T=E,j=M},72797:(e,t,r)=>{"use strict";r.d(t,{AdminBulkActions:()=>h});var n=r(95155),i=r(12115),o=r(3998),s=r(98053),l=r(6259),a=r(35299),c=r(24033),u=r(45412),d=r(38855);function h(e){let{count:t,onClear:r,actions:h,selectedLabel:p,clearLabel:f,collapseAfter:m=2}=e,g=(0,u.b)(),b=null!=p?p:e=>(0,d.G)(g("core.adminBulk.selected"),{count:e}),y=null!=f?f:g("core.adminBulk.clear"),[v,x]=(0,i.useState)(null),[k,w]=(0,i.useState)(null),C=async e=>{x(e.id);try{await e.onClick()}finally{x(null),w(null)}},E=e=>{e.confirm?w(e.id):C(e)},A=h.length>m;return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"text-sm font-medium",children:b(t)}),(0,n.jsx)(o.$,{variant:"ghost",size:"sm",onClick:r,children:y})]}),(0,n.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:A?(0,n.jsxs)(l.rI,{children:[(0,n.jsx)(l.ty,{asChild:!0,children:(0,n.jsxs)(o.$,{size:"sm",variant:"default",disabled:null!==v,children:[null!==v?(0,n.jsx)(a.A,{className:"mr-2 h-4 w-4 animate-spin"}):null,g("core.adminBulk.actions"),(0,n.jsx)(c.A,{className:"ml-2 h-4 w-4"})]})}),(0,n.jsx)(l.SQ,{align:"end",children:h.map(e=>{let t=e.icon;return(0,n.jsxs)(l._2,{variant:e.destructive?"destructive":"default",onSelect:()=>E(e),children:[t&&(0,n.jsx)(t,{className:"mr-2 h-4 w-4"}),e.label]},e.id)})})]}):h.map(e=>{let t=e.icon,r=v===e.id;return(0,n.jsxs)(o.$,{size:"sm",variant:e.destructive?"destructive":"default",disabled:r,onClick:()=>E(e),children:[r?(0,n.jsx)(a.A,{className:"mr-2 h-4 w-4 animate-spin"}):t&&(0,n.jsx)(t,{className:"mr-2 h-4 w-4"}),e.label]},e.id)})}),h.filter(e=>e.confirm).map(e=>{var t,r;let i=e.confirm,o=v===e.id;return(0,n.jsx)(s.Lt,{open:k===e.id,onOpenChange:t=>w(t?e.id:null),children:(0,n.jsxs)(s.EO,{children:[(0,n.jsxs)(s.wd,{children:[(0,n.jsx)(s.r7,{className:"m-0",children:i.title}),i.description&&(0,n.jsx)(s.$v,{children:i.description})]}),(0,n.jsxs)(s.ck,{children:[(0,n.jsx)(s.Zr,{disabled:o,children:null!=(t=i.cancelLabel)?t:g("core.adminDetail.cancel")}),(0,n.jsx)(s.Rx,{onClick:()=>C(e),className:e.destructive||i.destructive?"bg-destructive text-white hover:bg-destructive/90":void 0,children:null!=(r=i.confirmLabel)?r:e.label})]})]})},e.id)})]})}},75091:(e,t,r)=>{"use strict";r.d(t,{AdminFormSkeleton:()=>s});var n=r(95155),i=r(87485);function o(e){let{className:t=""}=e;return(0,n.jsx)("div",{className:"animate-pulse rounded-md bg-muted ".concat(t)})}function s(e){let{sections:t=[2,1],showAvatar:r=!1,wide:s=!1}=e;return(0,n.jsxs)(i.N,{wide:s,className:"py-14",children:[(0,n.jsx)(o,{className:"h-4 w-24"}),(0,n.jsxs)("header",{className:"mt-6",children:[(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[r&&(0,n.jsx)("div",{className:"h-14 w-14 shrink-0 animate-pulse rounded-2xl bg-muted"}),(0,n.jsxs)("div",{className:"space-y-2.5",children:[(0,n.jsx)(o,{className:"h-9 w-64"}),(0,n.jsx)(o,{className:"h-4 w-72"})]})]}),(0,n.jsx)("div",{className:"mt-7 h-px w-full bg-border"})]}),(0,n.jsx)("div",{className:"mt-7 space-y-5",children:t.map((e,t)=>(0,n.jsxs)("section",{className:"rounded-2xl border border-border bg-card p-7",children:[(0,n.jsx)(o,{className:"mb-5 h-3 w-28"}),(0,n.jsx)("div",{className:"grid gap-4 ".concat(e>1?"sm:grid-cols-2":""),children:Array.from({length:e}).map((e,t)=>(0,n.jsxs)("div",{className:"space-y-1.5",children:[(0,n.jsx)(o,{className:"h-3 w-16"}),(0,n.jsx)(o,{className:"h-11 w-full"})]},t))})]},t))})]})}},75426:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});
9let n=(0,r(5121).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},78169:(e,t,r)=>{"use strict";r.d(t,{ColorToolbar:()=>u});var n=r(95155),i=r(12115),o=r(26333);let s=(0,r(5121).A)("paintbrush",[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]]);var l=r(40745),a=r(45412),c=r(20230);function u(e){var t,r,u;let{editor:d}=e,h=(0,a.b)(),p=(0,c.useEditorColors)(),[f,m]=(0,i.useState)(!1);if(0===p.length)return null;let g=null==(t=d.getAttributes("textColor"))?void 0:t.color,b=null!=(u=null!=g?g:null==(r=p[0])?void 0:r.color)?u:"currentColor",y=!!g;return(0,n.jsxs)(o.AM,{open:f,onOpenChange:m,children:[(0,n.jsx)(o.Wv,{asChild:!0,children:(0,n.jsx)("button",{type:"button",title:h("core.editor.textColor"),className:(0,l.cn)("px-2 py-0.5 rounded text-xs font-medium transition-colors inline-flex items-center justify-center",y?"bg-gray-200 text-gray-900":"text-gray-600 hover:bg-gray-100"),children:(0,n.jsxs)("span",{className:"flex flex-col items-center leading-none gap-[2px]",children:[(0,n.jsx)(s,{className:"h-3 w-3"}),(0,n.jsx)("span",{className:"block h-[3px] w-4 rounded-sm",style:{backgroundColor:b}})]})})}),(0,n.jsxs)(o.hl,{className:"w-auto p-2",align:"start",children:[(0,n.jsx)("div",{className:"flex flex-wrap gap-1.5 max-w-[180px]",children:p.map(e=>(0,n.jsx)("button",{type:"button",title:e.label,"aria-label":e.label,onClick:()=>{d.chain().focus().setTextColor(e.color).run(),m(!1)},className:"h-6 w-6 rounded-md border border-gray-200 hover:scale-110 hover:border-gray-400 transition-transform",style:{backgroundColor:e.color}},e.id))}),y&&(0,n.jsx)("button",{type:"button",onClick:()=>{d.chain().focus().unsetTextColor().run(),m(!1)},className:"mt-2 w-full text-xs text-muted-foreground hover:text-foreground py-1 border-t pt-2",children:h("core.editor.clearColor")})]})]})}},78874:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},79354:(e,t,r)=>{"use strict";r.d(t,{AdminResourceList:()=>k});var n=r(95155),i=r(12115),o=r(20063),s=r(7784),l=r(6191),a=r(3998),c=r(92649),u=r(61945),d=r(54665),h=r(72797),p=r(15085),f=r(51834),m=r(66703),g=r(43589),b=r(38855),y=r(45412),v=r(39867);let x={from:"",to:""};function k(e){var t,r,k,w,C,E,A,S,M,D,N,T,j,_,F,L,R,I,O,z,B;let{config:P,toolbarExtras:$,wide:H}=e,q=(0,o.useRouter)(),K=(0,y.b)(),{items:V,loading:U,loadMore:W,hasMore:J,error:G,refetch:Z}=P.data.useList(),Y=P.resource.basePath,[X,Q]=(0,i.useState)(!1),[ee,et]=(0,i.useState)(()=>{var e,t;return null!=(t=null==(e=(0,s.w)(Y))?void 0:e.search)?t:""}),[er,en]=(0,i.useState)(()=>{var e,t,r,n;return null!=(n=null!=(r=null==(e=(0,s.w)(Y))?void 0:e.statusValue)?r:null==(t=P.list.statusFilter)?void 0:t.defaultValue)?n:""}),[ei,eo]=(0,i.useState)(()=>{var e,t,r;return null!=(r=null==(e=(0,s.w)(Y))?void 0:e.extraValues)?r:Object.fromEntries((null!=(t=P.list.extraFilters)?t:[]).map(e=>[e.label,e.defaultValue]))}),[es,el]=(0,i.useState)(()=>{var e,t,r;return null!=(r=null==(e=(0,s.w)(Y))?void 0:e.dateValues)?r:Object.fromEntries((null!=(t=P.list.dateFilters)?t:[]).map(e=>[e.label,x]))}),ea=P.list.sorts,ec=null!=(T=null==ea||null==(t=ea[0])?void 0:t.id)?T:"",[eu,ed]=(0,i.useState)(()=>{var e,t;return null!=(t=null==(e=(0,s.w)(Y))?void 0:e.sortId)?t:ec}),[eh,ep]=(0,i.useState)(new Set),[ef,em]=(0,i.useState)(null),[eg,eb]=(0,i.useState)(null);(0,i.useEffect)(()=>{(0,s.$)(Y,{search:ee,statusValue:er,extraValues:ei,dateValues:es,sortId:eu})},[Y,ee,er,ei,es,eu]);let ey=(0,i.useMemo)(()=>{var e,t,r,n;let i=V;for(let t of(P.list.statusFilter&&er!==P.list.statusFilter.defaultValue&&(i=i.filter(e=>P.list.statusFilter.predicate(e,er))),null!=(e=P.list.extraFilters)?e:[])){let e=ei[t.label];e&&e!==t.defaultValue&&(i=i.filter(r=>t.predicate(r,e)))}for(let e of null!=(t=P.list.dateFilters)?t:[]){let t=null!=(r=es[e.label])?r:x;(t.from||t.to)&&(i=i.filter(r=>e.predicate(r,t.from,t.to)))}if(P.list.search&&ee.trim().length>0){let e=ee.trim().toLowerCase();i=i.filter(t=>(function(e,t,r){if("match"in e)return e.match(t,r);for(let n of e.fields){let e=t[n];if("string"==typeof e&&e.toLowerCase().includes(r))return!0}return!1})(P.list.search,t,e))}let o=null!=(n=null==ea?void 0:ea.find(e=>e.id===eu))?n:null==ea?void 0:ea[0];return o&&(i=[...i].sort(o.compare)),i},[V,er,ei,es,ee,ea,eu,P.list]),ev=(0,i.useMemo)(()=>{var e,t,r,n,i,o,s;let l=[];for(let r of(P.list.statusFilter&&l.push({id:"status",label:P.list.statusFilter.label,value:er,onCh
9ange:en,options:P.list.statusFilter.options,defaultValue:P.list.statusFilter.defaultValue}),null!=(e=P.list.extraFilters)?e:[]))l.push({id:r.label,label:r.label,value:null!=(t=ei[r.label])?t:r.defaultValue,onChange:e=>eo(t=>({...t,[r.label]:e})),options:r.options,defaultValue:r.defaultValue});for(let e of null!=(r=P.list.dateFilters)?r:[]){let t=null!=(n=es[e.label])?n:x;l.push({kind:"dateRange",id:e.label,label:e.label,from:t.from,to:t.to,fromLabel:null!=(i=e.fromLabel)?i:K("core.adminFilter.dateFrom"),toLabel:null!=(o=e.toLabel)?o:K("core.adminFilter.dateTo"),onFromChange:t=>el(r=>{var n;return{...r,[e.label]:{...null!=(n=r[e.label])?n:x,from:t}}}),onToChange:t=>el(r=>{var n;return{...r,[e.label]:{...null!=(n=r[e.label])?n:x,to:t}}})})}return ea&&ea.length>1&&l.push({id:"__sort",label:null!=(s=P.list.sortLabel)?s:K("core.adminList.sort"),value:eu,onChange:ed,options:ea.map(e=>({value:e.id,label:e.label})),defaultValue:ec}),l},[P.list.statusFilter,P.list.extraFilters,P.list.dateFilters,P.list.sortLabel,er,ei,es,ea,eu,ec,K]),ex=(0,i.useMemo)(()=>{var e;return(null!=(e=P.list.bulkActions)?e:[]).map(e=>({id:e.id,label:e.label,icon:e.icon,destructive:e.destructive,confirm:e.confirm,onClick:async()=>{var t,r,n;let i=V.filter(e=>eh.has(e.id));try{let n=await e.run(i);ep(new Set);let o=null!=(r=null==(t=e.successMessage)?void 0:t.call(e,n))?r:0===n.failed?"".concat(n.ok," ").concat(P.resource.plural," updated"):"".concat(n.ok," updated, ").concat(n.failed," failed");(0,g.tP)(o)}catch(e){(0,g.Kf)(null!=(n=P.messages.errorGeneric)?n:"Could not complete the action.",e instanceof Error?e.message:void 0)}}}))},[P,V,eh]),ek=(0,i.useMemo)(()=>{var e;return(null!=(e=P.list.exports)?e:[]).map(e=>{var t;return{id:"export:".concat(e.id),label:e.label,icon:null!=(t=e.icon)?t:v.A,onClick:()=>eb(e)}})},[P.list.exports]),ew=(0,i.useMemo)(()=>[...ex,...ek],[ex,ek]),eC=async e=>{var t,r;if(!eg)return;let n=V.filter(e=>eh.has(e.id));try{await eg.run(n,e),ep(new Set),(0,g.tP)(null!=(t=eg.successMessage)?t:K("core.adminExport.started"))}catch(e){(0,g.Kf)(null!=(r=P.messages.errorGeneric)?r:K("core.adminExport.failed"),e instanceof Error?e.message:void 0)}},eE=async e=>{try{let t=await P.create.toInput(e),r=await P.data.create(t);return(0,g.tP)(P.messages.created),q.push("".concat(P.resource.basePath,"/").concat(r.id)),{id:r.id}}catch(r){var t;let e=r instanceof Error?r.message:"Could not create item.";return(0,g.Kf)(null!=(t=P.messages.errorGeneric)?t:"Could not create item.",e),{error:e}}},eA=async e=>{var t,r;if(!(null==ef?void 0:ef.run))return{error:"No action"};try{return await ef.run({title:e.title,extra:e.extra}),await (null==Z?void 0:Z()),(0,g.tP)(null!=(t=ef.successMessage)?t:P.messages.created),{done:!0}}catch(t){let e=t instanceof Error?t.message:"Could not create item.";return(0,g.Kf)(null!=(r=P.messages.errorGeneric)?r:"Could not create item.",e),{error:e}}},eS=null!=(j=P.create.secondaryActions)?j:[],eM=(0,b.G)(K("core.adminList.newItem"),{singular:P.resource.singular}),eD=P.create.disabled?void 0:eS.length>0?{label:K("core.adminList.new"),icon:l.A,menu:[{id:"__create",label:eM,...P.create.href?{onClick:()=>q.push(P.create.href)}:{onClick:()=>Q(!0)}},...eS.map(e=>({id:e.id,label:e.label,icon:e.icon,onClick:()=>em(e)}))]}:{label:eM,...P.create.href?{href:P.create.href}:{onClick:()=>Q(!0)},icon:l.A},eN=P.list.columns,eT=(null!=(_=null==(r=P.list.bulkActions)?void 0:r.length)?_:0)+(null!=(F=null==(k=P.list.exports)?void 0:k.length)?F:0)>0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.AdminListPage,{title:null!=(L=null==(w=P.list.header)?void 0:w.title)?L:P.resource.plural,subtitle:null==(C=P.list.header)?void 0:C.subtitle,backHref:null==(E=P.list.header)?void 0:E.backHref,backLabel:null==(A=P.list.header)?void 0:A.backLabel,eyebrow:K("core.adminList.eyebrow"),meta:U||G?void 0:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-4xl font-semibold tabular-nums leading-none text-foreground",children:V.length}),(0,n.jsx)("p",{className:"mt-1.5 text-xs uppercase tracking-wide text-muted-foreground",children:P.resource.plural})]}),toolbarExtras:$,wide:null!=H?H:P.list.wide,onRefresh:Z?()=>void Z():void 0,refreshing:U,primaryAction:eD,search:P.list.search?{value:ee,onChange:et,placeholder:null!=(R=P.list.search.placeholder)?R:(0,b.G)(K("core.adminList.searchPlaceholderForResource"),{plural:P.resource.plural})}:void 0,filters:ev.length>0?(0,n.jsx)(d.AdminFilterBar,{filters:ev,onClearAll:()=>{var e,t;P.list.statusFilter&&en(P.list.statusFilter.defaultValue),eo(Object.fromEntries((null!=(e=P.list.extraFilters)?e:[]).map(e=>[e.label,e.defaultValue]))),el(Object.fromEntries((null!=(t=P.list.dateFilters)?t:[]).map(e=>[e.label,x]))),ed(ec),et("")}}):void 0,pagination:J&&W?(0,n.jsx)(a.$,{variant:"outline",onClick:()=>void W(),children:K("core.adminList.loadMore")}):void 0,children:G?(0,n.jsx)("div",{className:"rounded-md border border-destructive/30 bg-destructive/10 p-4 text-sm text-destructive",children:G}):(0,n.jsx)(u.AdminTable,{items:ey,getKey:e=>e.id,columns:eN,loading:U,emptyIcon:P.resource.icon,emptyTitle:P.list.emptyTitle,emptyDescription:P.list.emptyDescription,onRowClick:e=>{var t,r,n;return q.push(null!=(n=null==(t=(r=P.list).rowHref)?void 0:t.call(r,e))?n:"".concat(P.resource.basePath,"/").concat(e.id))},isDeleted:P.list.isDeleted,selection:eT?{selected:eh,onChange:ep}:void 0,bulkActionBar:eT&&eh.size>0?(0,n.jsx)(h.AdminBulkActions,{count:eh.size,onClear:()=>ep(new Set),actions:ew}):void 0})}),eg&&(0,n.jsx)(m.ExportOptionsDialog,{open:null!==eg,onOpenChange:e=>{e||eb(null)},title:null!=(I=eg.dialogTitle)?I:eg.label,description:eg.dialogDescription,fields:eg.options,selectedCount:eh.size,submitLabel:eg.submitLabel,onSubmit:eC}),(0,n.jsx)(p.AdminCreateDialog,{open:X,onOpenChange:Q,title:P.create.dialogTitle,submitLabel:null==(S=P.create.labels)?void 0:S.submit,cancelLabel:null==(M=P.create.labels)?void 0:M.cancel,fields:{title:{label:null!=(O=null==(D=P.create.labels)?void 0:D.title)?O:K("core.adminCreate.titleLabel")},slug:P.create.hideSlug?void 0:{label:null!=(z=null==(N=P.create.labels)?void 0:N.slug)?z:K("core.adminCreate.slugLabel"),checkUnique:P.create.checkSlugUnique,duplicateMessage:K("core.adminCreate.slugInUse")},language:(()=>{var e,t,r,n;if(!P.create.hideLanguage){if(P.create.languages)return{label:null!=(t=null==(e=P.create.labels)?void 0:e.language)?t:K("core.adminCreate.languageLabel"),languages:P.create.languages.options,defaultLanguage:P.create.languages.defaultLanguage};if(P.detail.languages)return{label:null!=(n=null==(r=P.create.labels)?void 0:r.language)?n:K("core.adminCreate.languageLabel"),languages:P.detail.languages.languages,defaultLanguage:P.detail.languages.defaultLanguage}}})(),extraSelects:P.create.extraFields},onSubmit:eE}),ef&&ef.content&&(0,n.jsx)(f.lG,{open:!0,onOpenChange:e=>{e||em(null)},children:(0,n.jsxs)(f.Cf,{className:"max-h-[85vh] max-w-3xl overflow-y-auto",children:[(0,n.jsx)(f.c7,{children:(0,n.jsx)(f.L3,{children:ef.dialogTitle})}),ef.content({close:()=>em(null),refetch:async()=>{await (null==Z?void 0:Z())}})]})}),ef&&!ef.content&&(0,n.jsx)(p.AdminCreateDialog,{open:null!==ef,onOpenChange:e=>{e||em(null)},title:ef.dialogTitle,submitLabel:ef.submitLabel,fields:{title:{label:null!=(B=ef.fieldLabel)?B:K("core.adminCreate.titleLabel")},extraSelects:ef.extraFields},onSubmit:eA})]})}},82286:(e,t,r)=>{"use strict";r.d(t,{UC:()=>V,ZL:()=>K,bL:()=>H,l9:()=>q});var n=r(12115),i=r(92556),o=r(94446),s=r(3468),l=r(40137),a=r(19526),c=r(69666),u=r(68946),d=r(66093),h=r(75433),p=r(76842),f=r(97602),m=r(32467),g=r(23558),b=r(97745),y=r(14432),v=r(95155),x="Popover",[k,w]=(0,s.A)(x,[d.Bk]),C=(0,d.Bk)(),[E,A]=k(x),S=e=>{let{__scopePopover:t,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:l=!1}=e,a=C(t),c=n.useRef(null),[h,p]=n.useState(!1),[f,m]=(0,g.i)({prop:i,defaultProp:null!=o&&o,onChange:s,caller:x});return(0,v.jsx)(d.bL,{...a,children:(0,v.jsx)(E,{scope:t,contentId:(0,u.B)(),triggerRef:c,open:f,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:h,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:l,children:r})})};S.displayName=x;var M="PopoverAnchor";n.forwardRef((e,t)=>
9{let{__scopePopover:r,...i}=e,o=A(M,r),s=C(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:a}=o;return n.useEffect(()=>(l(),()=>a()),[l,a]),(0,v.jsx)(d.Mz,{...s,...i,ref:t})}).displayName=M;var D="PopoverTrigger",N=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,s=A(D,r),l=C(r),a=(0,o.s)(t,s.triggerRef),c=(0,v.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":$(s.open),...n,ref:a,onClick:(0,i.mK)(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?c:(0,v.jsx)(d.Mz,{asChild:!0,...l,children:c})});N.displayName=D;var T="PopoverPortal",[j,_]=k(T,{forceMount:void 0}),F=e=>{let{__scopePopover:t,forceMount:r,children:n,container:i}=e,o=A(T,t);return(0,v.jsx)(j,{scope:t,forceMount:r,children:(0,v.jsx)(p.C,{present:r||o.open,children:(0,v.jsx)(h.Z,{asChild:!0,container:i,children:n})})})};F.displayName=T;var L="PopoverContent",R=n.forwardRef((e,t)=>{let r=_(L,e.__scopePopover),{forceMount:n=r.forceMount,...i}=e,o=A(L,e.__scopePopover);return(0,v.jsx)(p.C,{present:n||o.open,children:o.modal?(0,v.jsx)(O,{...i,ref:t}):(0,v.jsx)(z,{...i,ref:t})})});R.displayName=L;var I=(0,m.TL)("PopoverContent.RemoveScroll"),O=n.forwardRef((e,t)=>{let r=A(L,e.__scopePopover),s=n.useRef(null),l=(0,o.s)(t,s),a=n.useRef(!1);return n.useEffect(()=>{let e=s.current;if(e)return(0,b.Eq)(e)},[]),(0,v.jsx)(y.A,{as:I,allowPinchZoom:!0,children:(0,v.jsx)(B,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),z=n.forwardRef((e,t)=>{let r=A(L,e.__scopePopover),i=n.useRef(!1),o=n.useRef(!1);return(0,v.jsx)(B,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,s;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(i.current||null==(s=r.triggerRef.current)||s.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var n,s;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let l=t.target;(null==(s=r.triggerRef.current)?void 0:s.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),B=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:f,...m}=e,g=A(L,r),b=C(r);return(0,a.Oh)(),(0,v.jsx)(c.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,v.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:p,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,v.jsx)(d.UC,{"data-state":$(g.open),role:"dialog",id:g.contentId,...b,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),P="PopoverClose";function $(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=A(P,r);return(0,v.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=P,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=C(r);return(0,v.jsx)(d.i3,{...i,...n,ref:t})}).displayName="PopoverArrow";var H=S,q=N,K=F,V=R},86651:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},87485:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(95155),i=r(40745);function o(e){let{className:t,style:r,wide:o=!1,fluid:s=!1,children:l}=e;return(0,n.jsx)("div",{className:(0,i.cn)("mx-auto w-full px-6",
9s?"":o?"max-w-[var(--admin-content-width-wide)]":"max-w-[var(--admin-content-width)]",t),style:r,children:l})}},87882:(e,t,r)=>{"use strict";r.d(t,{AdminDetailPage:()=>p});var n=r(95155),i=r(12115),o=r(20063),s=r(11647),l=r(13406),a=r(23614),c=r(35626),u=r(87485),d=r(16829),h=r(45412);function p(e){let{title:t,status:r,backHref:p,backLabel:f,onBack:m,actions:g,languageSwitcher:b,formActions:y,leftActions:v,dirty:x=!1,dirtyLabel:k,tabs:w,activeTab:C,onTabChange:E,wide:A=!1,variant:S="default",children:M}=e,D=(0,o.useRouter)(),N=(0,h.b)(),T=null!=k?k:N("core.adminDetail.unsavedChanges"),j=(0,i.useMemo)(()=>null!=m?m:()=>D.push(p),[m,D,p]),_=!!w&&w.length>0,F=!!(y||v),L=(0,n.jsx)(d.FormSectionCardsProvider,{children:M});return"canvas"===S?(0,n.jsxs)(u.N,{fluid:!0,className:"flex h-full min-h-0 flex-col px-0 py-6",children:[(0,n.jsxs)("div",{className:"mb-6 flex flex-wrap items-center gap-x-6 gap-y-3",children:[(0,n.jsxs)("button",{type:"button",onClick:j,className:"inline-flex w-fit items-center gap-1.5 text-sm text-muted-foreground transition hover:text-foreground",children:[(0,n.jsx)(c.A,{className:"h-4 w-4"}),f]}),(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,n.jsxs)("h1",{className:"mt-0 mb-0 truncate text-xl font-semibold tracking-tight",children:[t,(0,n.jsx)("span",{className:"text-[var(--primary)]",children:"."})]}),r&&(0,n.jsx)(s.E,{variant:r.variant,children:r.label})]}),_&&(0,n.jsx)(l.tU,{value:C,onValueChange:E,children:(0,n.jsx)(a.SegmentedTabsList,{children:w.map(e=>(0,n.jsx)(a.SegmentedTabsTrigger,{value:e.value,children:e.label},e.value))})}),(0,n.jsxs)("div",{className:"ml-auto flex flex-wrap items-center justify-end gap-3",children:[b,x&&(0,n.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",title:T,children:[(0,n.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full bg-[var(--primary)]"}),T]}),v,y]})]}),(0,n.jsx)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:L})]}):(0,n.jsxs)(u.N,{wide:A,className:"flex min-h-full flex-col py-14",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,n.jsxs)("button",{type:"button",onClick:j,className:"inline-flex w-fit items-center gap-1.5 text-sm text-muted-foreground transition hover:text-foreground",children:[(0,n.jsx)(c.A,{className:"h-4 w-4"}),f]}),g&&(0,n.jsx)("div",{className:"flex items-center gap-2",children:g})]}),(0,n.jsxs)("header",{className:"mt-6",children:[(0,n.jsxs)("div",{className:"flex items-end justify-between gap-4 flex-wrap",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,n.jsxs)("h1",{className:"mt-0 mb-0 truncate text-4xl font-bold tracking-tight",children:[t,(0,n.jsx)("span",{className:"text-[var(--primary)]",children:"."})]}),r&&(0,n.jsx)(s.E,{variant:r.variant,children:r.label})]}),b&&(0,n.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:b})]}),(0,n.jsx)("div",{className:"mt-6 h-px w-full bg-border"})]}),(0,n.jsx)("div",{className:"mt-7",children:_?(0,n.jsxs)(l.tU,{value:C,onValueChange:E,children:[(0,n.jsx)(a.SegmentedTabsList,{className:"mb-5",children:w.map(e=>(0,n.jsx)(a.SegmentedTabsTrigger,{value:e.value,children:e.label},e.value))}),(0,n.jsx)("div",{className:"space-y-5",children:L})]}):(0,n.jsx)("div",{className:"space-y-5",children:L})}),F&&(0,n.jsx)("div",{className:"sticky bottom-4 z-10 mt-auto pt-8 -mx-4 sm:-mx-6",children:(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-2xl border border-border bg-card px-4 py-3 shadow-[0_8px_30px_-6px_rgba(9,15,58,0.22)]",children:[(0,n.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:v}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-3",children:[x&&(0,n.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",title:T,children:[(0,n.jsx)("span",{className:"h-2 w-2 shrink-0 rounded-full bg-[var(--primary)]"}),T]}),y]})]})})]})}},89020:(e,t,r)=>{"use strict";r.d(t,{ImageSelectGrid:()=>p,toggleImageSelection:()=>h});var n=r(95155),i=r(12115),o=r(23540),s=r(5917),l=r(34904),a=r(40745),c=r(38855),u=r(16820);let d={toggle:"Select {title}",zoom:"Enlarge {title}",close:"Close",previous:"Previous image",next:"Next image",counter:"{index} / {total}",select:"Select",deselect:"Selected"};function h(e,t,r){let n=new Set(t);return n.has(r)?n.delete(r):n.add(r),e.map(e=>e.id).filter(e=>n.has(e))}function p(e){let{images:t,selectedIds:r,onChange:p,disabled:f,minTileWidth:m=120,hideIndex:g,labels:b,className:y}=e,v={...d,...b},[x,k]=(0,i.useState)(null),w=e=>{f||e.locked||p(h(t,r,e.id))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ul",{className:(0,a.cn)("m-0 grid list-none gap-x-2 gap-y-3 p-0",y),style:{gridTemplateColumns:"repeat(auto-fill, minmax(".concat(m,"px, 1fr))")},children:t.map((e,t)=>{var i;let u=(null==(i=e.title)?void 0:i.trim())||"#".concat(t+1),d=r.includes(e.id),h=!f&&!e.locked;return(0,n.jsxs)("li",{className:"group/tile min-w-0",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsxs)("button",{type:"button",role:"checkbox","aria-checked":d,"aria-label":(0,c.G)(v.toggle,{title:u}),disabled:!h,onClick:()=>w(e),className:(0,a.cn)("relative block w-full overflow-hidden rounded-md border bg-muted transition-colors","aspect-[4/3] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-1",d?"border-2 border-primary":"border-border",h&&!d&&"hover:border-foreground
9/40",!h&&"cursor-default"),children:[e.src?(0,n.jsx)("img",{src:e.src,alt:u,loading:"lazy",className:"h-full w-full object-cover"}):(0,n.jsx)("span",{className:"flex h-full w-full items-center justify-center text-muted-foreground",children:(0,n.jsx)(o.A,{className:"h-5 w-5"})}),(0,n.jsx)("span",{className:(0,a.cn)("absolute left-1.5 top-1.5 flex h-5 w-5 items-center justify-center rounded-[3px] border transition-colors",d?"border-primary bg-primary text-primary-foreground":"border-white/70 bg-black/20 text-transparent group-hover/tile:bg-black/30"),children:(0,n.jsx)(s.A,{className:"h-3.5 w-3.5",strokeWidth:3})}),e.tag&&(0,n.jsx)("span",{className:"absolute bottom-1.5 left-1.5 rounded-sm bg-black/55 px-1.5 py-0.5 text-[10px] font-medium tracking-wide text-white",children:e.tag})]}),(0,n.jsx)("button",{type:"button","aria-label":(0,c.G)(v.zoom,{title:u}),onClick:()=>k(t),className:"absolute right-1.5 top-1.5 rounded-[3px] bg-black/45 p-1 text-white opacity-0 transition-opacity hover:bg-black/70 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white group-hover/tile:opacity-100",children:(0,n.jsx)(l.A,{className:"h-3.5 w-3.5"})})]}),(0,n.jsxs)("p",{className:(0,a.cn)("mb-0 mt-1.5 truncate text-[11px] leading-tight",d?"font-medium text-foreground":"text-muted-foreground"),title:u,children:[!g&&(0,n.jsx)("span",{className:"mr-1 tabular-nums text-muted-foreground/70",children:t+1}),u]})]},e.id)})}),null!==x&&(0,n.jsx)(u.ImageLightbox,{images:t.map((e,t)=>{var r;return{id:e.id,src:e.fullSrc||e.src||"",title:(null==(r=e.title)?void 0:r.trim())||"#".concat(t+1)}}),index:x,onIndexChange:k,onClose:()=>k(null),selectedIds:r,onToggleSelect:f?void 0:e=>{let r=t.find(t=>t.id===e);r&&w(r)},labels:v})]})}},89559:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},92322:(e,t,r)=>{"use strict";function n(e){this.content=e}function i(e){return e>=56320&&e<57344}function o(e){return e>=55296&&e<56320}r.d(t,{S4:()=>H,ZF:()=>Y,FK:()=>s,CU:()=>u,sX:()=>B,bP:()=>A,u$:()=>C,vI:()=>d,Sj:()=>P,Ji:()=>h}),n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,t,r){var i=r&&r!=e?this.remove(r):this,o=i.find(e),s=i.content.slice();return -1==o?s.push(r||e,t):(s[o+1]=t,r&&(s[o]=r)),new n(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var r=this.content.slice();return r.splice(t,2),new n(r)},addToStart:function(e,t){return new n([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new n(r)},addBefore:function(e,t,r){var i=this.remove(t),o=i.content.slice(),s=i.find(e);return o.splice(-1==s?o.length:s,0,t,r),new n(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=n.from(e)).size?new n(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=n.from(e)).size?new n(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=n.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},n.from=function(e){if(e instanceof n)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new n(t)};class s{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,i){for(let o=0,s=0;s<t;o++){let l=this.content[o],a=s+l.nodeSize;if(a>e&&!1!==r(l,n+s,i||null,o)&&l.content.size){let i=s+1;l.nodesBetween(Math.max(0,e-i),Math.min(l.content.size,t-i),r,n+i)}s=a}}descendants(e){this.nodesBetween(0,this.size,e)}
9textBetween(e,t,r,n){let i="",o=!0;return this.nodesBetween(e,t,(s,l)=>{let a=s.isText?s.text.slice(Math.max(e,l)-l,t-l):s.isLeaf?n?"function"==typeof n?n(s):n:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&a||s.isTextblock)&&r&&(o?o=!1:i+=r),i+=a},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new s(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let i=0,o=0;o<t;i++){let s=this.content[i],l=o+s.nodeSize;l>e&&((o<e||l>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),r.push(s),n+=s.nodeSize),o=l}return new s(r,n)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new s(n,i)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return function e(t,r,n){for(let s=0;;s++){if(s==t.childCount||s==r.childCount)return t.childCount==r.childCount?null:n;let l=t.child(s),a=r.child(s);if(l==a){n+=l.nodeSize;continue}if(!l.sameMarkup(a))return n;if(l.isText&&l.text!=a.text){let e=l.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&o(e.charCodeAt(r-1))&&i(e.charCodeAt(r))&&n--,n}if(l.content.size||a.content.size){let t=e(l.content,a.content,n+1);if(null!=t)return t}n+=l.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return function e(t,r,n,s){for(let l=t.childCount,a=r.childCount;;){if(0==l||0==a)return l==a?null:{a:n,b:s};let c=t.child(--l),u=r.child(--a),d=c.nodeSize;if(c==u){n-=d,s-=d;continue}if(!c.sameMarkup(u))return{a:n,b:s};if(c.isText&&c.text!=u.text){let e=c.text,t=u.text,r=e.length,l=t.length;for(;r>0&&l>0&&e[r-1]==t[l-1];)r--,l--,n--,s--;return r&&l&&r<e.length&&o(e.charCodeAt(r-1))&&i(e.charCodeAt(r))&&(n++,s++),{a:n,b:s}}if(c.content.size||u.content.size){let t=e(c.content,u.content,n-1,s-1);if(t)return t}n-=d,s-=d}}(this,e,t,r)}findIndex(e){if(0==e)return a(0,e);if(e==this.size)return a(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let n=r+this.child(t).nodeSize;if(n>=e){if(n==e)return a(t+1,n);return a(t,r)}r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return s.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new s(t||e,r)}static from(e){if(!e)return s.empty;if(e instanceof s)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new s([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}s.empty=new s([],0);let l={index:0,offset:0};function a(e,t){return l.index=e,l.offset=t,l}function c(e,t){if(e===t)return!0;
vendor: 6,962 bytes, line 9
9if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!c(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!c(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class u{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&c(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw RangeError(`There is no mark type ${t.type} in this schema`);let n=r.create(t.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return u.none;if(e instanceof u)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}u.none=[];class d extends Error{}class h{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=function e(t,r,n,i,o,s){let{index:l,offset:a}=t.findIndex(r),c=t.maybeChild(l);if(a==r||c.isText)return s&&i<=0&&o<=0&&!s.canReplace(l,l,n)?null:t.cut(0,r).append(n).append(t.cut(r));let u=e(c.content,r-a-1,n,0==l?i-1:0,l==t.childCount-1?o-1:0,c);return u&&t.replaceChild(l,c.copy(u))}(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new h(r,this.openStart,this.openEnd)}removeBetween(e,t){return new h(function e(t,r,n){let{index:i,offset:o}=t.findIndex(r),s=t.maybeChild(i),{index:l,offset:a}=t.findIndex(n);if(o==r||s.isText){if(a!=n&&!t.child(l).isText)throw RangeError("Removing non-flat range");return t.cut(0,r).append(t.cut(n))}if(i!=l)throw RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,r-o-1,n-o-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return h.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw RangeError("Invalid input for Slice.fromJSON");return new h(s.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new h(e,r,n)}}function p(e,t){if(!t.type.compatibleContent(e.type))throw new d("Cannot join "+t.type.name+" onto "+e.type.name)}function f(e,t,r){let n=e.node(r);return p(n,t.node(r)),n}function m(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function g(e,t,r,n){let i=(t||e).node(r),o=0,s=t?t.index(r):i.childCount;e&&(o=e.index(r),e.depth>r?o++:e.textOffset&&(m(e.nodeAfter,n),o++));for(let e=o;e<s;e++)m(i.child(e),n);t&&t.depth==r&&t.textOffset&&m(t.nodeBefore,n)}function b(e,t){if(!e.type.validContent(t))throw new d("Invalid content for node "+e.type.name);return e.copy(t)}function y(e,t,r){let n=[];return g(null,e,r,n),e.depth>r&&m(b(f(e,t,r+1),y(e,t,r+1)),n),g(t,null,r,n),new s(n)}h.empty=new h(s.empty,0,0);class v{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)n+=r.child(t).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return u.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),n=e.maybeChild(t);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||n&&i[o].isInSet(n.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new C(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],n=0,i=t;for(let t=e;;){let{index:e,offset:o}=t.content.findIndex(i),s=i-o;if(r.push(t,e,n+o),!s||(t=t.child(e)).isText)break;
9i=s-1,n+=o+1}return new v(t,r,i)}static resolveCached(e,t){let r=w.get(e);if(r)for(let e=0;e<r.elts.length;e++){let n=r.elts[e];if(n.pos==t)return n}else w.set(e,r=new x);let n=r.elts[r.i]=v.resolve(e,t);return r.i=(r.i+1)%k,n}}class x{constructor(){this.elts=[],this.i=0}}let k=12,w=new WeakMap;class C{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let E=Object.create(null);class A{constructor(e,t,r,n=u.none){this.type=e,this.attrs=t,this.marks=n,this.content=r||s.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,n=0){this.content.nodesBetween(e,t,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,n){return this.content.textBetween(e,t,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&c(this.attrs,t||e.defaultAttrs||E)&&u.sameSet(this.marks,r||u.none)}copy(e=null){return e==this.content?this:new A(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new A(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return h.empty;let n=this.resolve(e),i=this.resolve(t),o=r?0:n.sharedDepth(t),s=n.start(o);return new h(n.node(o).content.cut(n.pos-s,i.pos-s),n.depth-o,i.depth-o)}replace(e,t,r){var n=this.resolve(e),i=this.resolve(t);if(r.openStart>n.depth)throw new d("Inserted content deeper than insertion position");if(n.depth-r.openStart!=i.depth-r.openEnd)throw new d("Inconsistent open depths");return function e(t,r,n,i){let o=t.index(i),l=t.node(i);if(o==r.index(i)&&i<t.depth-n.openStart){let s=e(t,r,n,i+1);return l.copy(l.content.replaceChild(o,s))}if(!n.content.size)return b(l,y(t,r,i));if(n.openStart||n.openEnd||t.depth!=i||r.depth!=i){let{start:e,end:o}=function(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let e=r-1;e>=0;e--)n=t.node(e).copy(s.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}(n,t);return b(l,function e(t,r,n,i,o){let l=t.depth>o&&f(t,r,o+1),a=i.depth>o&&f(n,i,o+1),c=[];return g(null,t,o,c),l&&a&&r.index(o)==n.index(o)?(p(l,a),m(b(l,e(t,r,n,i,o+1)),c)):(l&&m(b(l,
9y(t,r,o+1)),c),g(r,n,o,c),a&&m(b(a,y(n,i,o+1)),c)),g(i,null,o,c),new s(c)}(t,e,o,r,i))}{let e=t.parent,i=e.content;return b(e,i.cut(0,t.parentOffset).append(n.content).append(i.cut(r.parentOffset)))}}(n,i,r,0)}nodeAt(e){for(let t=this;;){let{index:r,offset:n}=t.content.findIndex(e);if(!(t=t.maybeChild(r)))return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let n=this.content.child(t-1);return{node:n,index:t-1,offset:r-n.nodeSize}}resolve(e){return v.resolveCached(this,e)}resolveNoCache(e){return v.resolve(this,e)}rangeHasMark(e,t,r){let n=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),M(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=s.empty,n=0,i=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,n,i),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let e=n;e<i;e++)if(!this.type.allowsMarks(r.child(e).marks))return!1;return!0}canReplaceWith(e,t,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=u.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!u.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let r;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=s.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}A.prototype.text=void 0;class S extends A{constructor(e,t,r,n){if(super(e,t,null,n),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):M(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new S(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new S(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function M(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class D{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var r;let n,i=new N(e,t);if(null==i.next)return D.empty;let o=function e(t){let r=[];do r.push(function(t){let r=[];do r.push(function(t){let r=function(t){if(t.eat("(")){let r=e(t);return t.eat(")")||t.err("Missing closing paren"),r}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let i=[];for(let e in r){let n=r[e];n.isInGroup(t)&&i.push(n)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))r={type:"plus",expr:r};else if(t.eat("*"))r={type:"star",expr:r};else if(t.eat("?"))r={type:"opt",expr:r};else if(t.eat("{"))r=function(e,t){let r=T(e),n=r;return e.eat(",")&&(n="}"!=e.next?T(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}(t,r);else break;return r}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==r.length?r[0]:{type:"seq",exprs:r}}(t));while(t.eat("|"));return 1==r.length?r[0]:{type:"choice",exprs:r}}(i);i.next&&i.err("Unexpected trailing text");let s=(r=function(e){let t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce((t,r)=>t.concat(e(r,o)),[]);if("seq"==t.type)for(let n=0;;n++){let s=e(t.exprs[n],o);if(n==t.exprs.length-1)return s;i(s,o=r())}else if("star"==t.type){let s=r();return n(o,s),i(e(t.expr,s),s),[n(s)]}else if("plus"==t.type){let s=r();return i(e(t.expr,o),s),i(e(t.expr,s),s),[n(s)]}else if("opt"==t.type)return[n(o)].concat(e(t.expr,o));else if("range"==t.type){let s=o;for(let n=0;n<t.min;n++){let n=r();i(e(t.expr,s),n),s=n}if(-1==t.max)i(e(t.expr,s),s);else for(let o=t.min;o<t.max;
vendor: 5,791 bytes, line 9
9o++){let o=r();n(s,o),i(e(t.expr,s),o),s=o}return[n(s)]}else if("name"==t.type)return[n(o,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let i={term:n,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}}(o),n=Object.create(null),function e(t){let i=[];t.forEach(e=>{r[e].forEach(({term:e,to:t})=>{let n;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(n=i[t][1]);_(r,t).forEach(t=>{n||i.push([e,n=[]]),-1==n.indexOf(t)&&n.push(t)})}})});let o=n[t.join(",")]=new D(t.indexOf(r.length-1)>-1);for(let t=0;t<i.length;t++){let r=i[t][1].sort(j);o.next.push({type:i[t][0],next:n[r.join(",")]||e(r)})}return o}(_(r,0)));return function(e,t){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:r,next:s}=e.next[t];o.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==n.indexOf(s)&&n.push(s)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,i),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let n=this;for(let i=t;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let n=[this];return function i(o,l){let a=o.matchFragment(e,r);if(a&&(!t||a.validEnd))return s.from(l.map(e=>e.createAndFill()));for(let e=0;e<o.next.length;e++){let{type:t,next:r}=o.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==n.indexOf(r)){n.push(r);let e=i(r,l.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let t=n;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:s}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||n.type&&!s.validEnd||(r.push({match:o.contentMatch,type:o,via:n}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&t(r.next[n].next)}(this),e.map((t,r)=>{let n=r+(t.validEnd?"*":" ")+" ";for(let r=0;r<t.next.length;r++)n+=(r?", ":"")+t.next[r].type.name+"->"+e.indexOf(t.next[r].next);return n}).join("\n")}}D.empty=new D(!0);class N{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function T(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function j(e,t){return t-e}function _(e,t){let r=[];return function t(n){let i=e[n];if(1==i.length&&!i[0].term)return t(i[0].to);r.push(n);for(let e=0;e<i.length;e++){let{term:n,to:o}=i[e];n||-1!=r.indexOf(o)||t(o)}}(t),r.sort(j)}function F(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function L(e,t){let r=Object.create(null);for(let n in e){let i=t&&t[n];if(void 0===i){let t=e[n];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+n)}r[n]=i}return r}function R(e,t,r,n){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${r} of type ${n}`);for(let r in e)e[r].validate&&e[r].validate(t[r])}function I(e,t){let r=Object.create(null);if(t)for(let n in t)r[n]=new z(e,n,t[n]);return r}class O{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=I(e,r.attrs),this.defaultAttrs=F(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==D.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:L(this.attrs,e)}create(e=null,t,r){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new A(this,this.computeAttrs(e),s.from(t),u.setFrom(r))}createChecked(e=null,t,r){return t=s.from(t),this.checkContent(t),new A(this,this.computeAttrs(e),t,u.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),(t=s.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(s.empty,!0);return i?new A(this,e,t.append(i),u.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
9if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){R(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:u.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,n)=>r[e]=new O(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}class z{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?function(e,t,r){let n=r.split("|");return r=>{let i=null===r?"null":typeof r;if(0>n.indexOf(i))throw RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class B{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=I(e,n.attrs),this.excluded=null;let i=F(this.attrs);this.instance=i?new u(this,i):null}create(e=null){return!e&&this.instance?this.instance:new u(this,L(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,i)=>r[e]=new B(e,n++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){R(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class P{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=n.from(e.nodes),t.marks=n.from(e.marks||{}),this.nodes=O.compile(this.spec.nodes,this),this.marks=B.compile(this.spec.marks,this);let r=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],n=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=r[n]||(r[n]=D.parse(n,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?$(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:$(this,r.split(" "))}this.nodeFromJSON=e=>A.fromJSON(this,e),this.markFromJSON=e=>u.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,n){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof O){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new S(r,r.defaultAttrs,e,u.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function $(e,t){let r=[];for(let n=0;n<t.length;n++){let i=t[n],o=e.marks[i],s=o;if(o)r.push(o);else for(let t in e.marks){let n=e.marks[t];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(s=n)}if(!s)throw SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}class H{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];
9t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e,t={}){let r=new J(this,t,!1);return r.addAll(e,u.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new J(this,t,!0);return r.addAll(e,u.none,t.from,t.to),h.maxOpen(r.finish())}matchTag(e,t,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){var n,i;let r=this.tags[o];if(n=e,i=r.tag,(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,i)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],o=n.style;if(0==o.indexOf(e)&&(!n.context||r.matchesContext(n.context))&&(!(o.length>e.length)||61==o.charCodeAt(e.length)&&o.slice(e.length+1)==t)){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach(e=>{r(e=G(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach(e=>{r(e=G(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new H(e,H.schemaRules(e)))}}let q={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},K={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},V={ol:!0,ul:!0};function U(e,t,r){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&r}class W{constructor(e,t,r,n,i,o){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=o,this.content=[],this.activeMarks=u.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!q.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class J{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,o=U(null,t.preserveWhitespace,0)|4*!!r;i=n?new W(n.type,n.attrs,u.none,!0,t.topMatch||n.type.contentMatch,o):r?new W(null,null,u.none,!0,null,o):new W(e.schema.topNodeType,null,u.none,!0,null,o),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0,{schema:o}=this.parser;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if("full"===i)r=r.replace(/\r\n?/g,"\n");else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let e=r.split(/\r?\n|\r/);for(let r=0;r<e.length;r++)r&&this.insertNode(o.linebreakReplacement.create(),t,!0),e[r]&&this.insertNode(o.text(e[r]),t,!/\S/.test(e[r]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;V.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;
vendor: 1,492 bytes, line 9
9e&&V.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,r));i:if(l?l.ignore:K.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let r,n=this.needsBlock;if(q.hasOwnProperty(o))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break i}let s=l&&l.skip?t:this.readStyles(e,t);s&&this.addAll(e,s),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,l,r,!1===l.consuming?s:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let n=this.parser.matchedStyles[e],i=r.getPropertyValue(n);if(i)for(let e;;){let r=this.parser.matchStyle(n,i,this,e);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,n){let i,o;
vendor: 4,107 bytes, line 9
9if(t.node)if((o=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(o.create(t.attrs),r,"BR"==e.nodeName)||this.leafFallback(e,r);else{let e=this.enter(o,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r,!1));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(s)&&this.open--}addAll(e,t,r,n){let i=r||0;for(let o=r?e.childNodes[r]:e.firstChild,s=null==n?null:e.childNodes[n];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,r){let n,i;for(let t=this.open,o=0;t>=0;t--){let s=this.nodes[t],l=s.findWrapping(e);if(l&&(!n||n.length>l.length+o)&&(n=l,i=s,!l.length))break;if(s.solid){if(r)break;o+=2}}if(!n)return null;this.sync(i);for(let e=0;e<n.length;e++)t=this.enterInner(n[e],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t,r);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=u.none;for(let i of n.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Z(i.type,e.type))&&(r=i.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r,n){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,n)),i}enterInner(e,t,r,n=!1,i){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=U(e,i,o.options);4&o.options&&0==o.content.length&&(s|=4);let l=u.none;return r=r.filter(t=>(o.type?!o.type.allowsMarkType(t.type):!Z(t.type,e))||(l=t.addToSet(l),!1)),this.nodes.push(new W(e,t,l,n,null,s)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!n,o=(e,s)=>{for(;e>=0;e--){let l=t[e];if(""==l){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&n?this.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!e||e.name!=l&&!e.isInGroup(l))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];
9if(t.isTextblock&&t.defaultAttrs)return t}}}function G(e){let t={};for(let r in e)t[r]=e[r];return t}function Z(e,t){let r=t.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==t||0>o.indexOf(i)&&s(i))return!0}};if(s(i.contentMatch))return!0}}class Y{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Q(t).createDocumentFragment());let n=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,o=0;for(;r<i.length&&o<e.marks.length;){let t=e.marks[o];if(!this.marks[t.type.name]){o++;continue}if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,o++}for(;r<i.length;)n=i.pop()[1];for(;o<e.marks.length;){let r=e.marks[o++],s=this.serializeMark(r,e.isInline,t);s&&(i.push([r,n]),n.appendChild(s.dom),n=s.contentDOM||s.dom)}}n.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){if(e.isText)return Q(t).createTextNode(e.text);let{dom:r,contentDOM:n}=et(Q(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&et(Q(r),n(e,t),null,e.attrs)}static renderSpec(e,t,r=null,n){return"string"==typeof t?{dom:e.createTextNode(t)}:et(e,t,r,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Y(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=X(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return X(e.marks)}}function X(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function Q(e){return e.document||window.document}let ee=new WeakMap;function et(e,t,r,n){let i,o,s;if(1==t.nodeType)return{dom:t};if(t.dom&&1==t.dom.nodeType)return t;let l=t[0],a;if("string"!=typeof l)throw RangeError("Invalid array passed to renderSpec");if(n&&(void 0===(o=ee.get(n))&&ee.set(n,(s=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])s||(s=[]),s.push(t);else for(let r=0;r<t.length;r++)e(t[r]);else for(let r in t)e(t[r])}(n),o=s)),a=o)&&a.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let c=l.indexOf(" ");c>0&&(r=l.slice(0,c),l=l.slice(c+1));let u=r?e.createElementNS(r,l):e.createElement(l),d=t[1],h=1;if(d&&"object"==typeof d&&null==d.nodeType&&!Array.isArray(d)){for(let e in h=2,d)if(null!=d[e]){let t=e.indexOf(" ");t>0?u.setAttributeNS(e.slice(0,t),e.slice(t+1),d[e]):"style"==e&&u.style?u.style.cssText=d[e]:u.setAttribute(e,d[e])}}for(let o=h;o<t.length;o++){let s=t[o];if(0===s){if(o<t.length-1||o>h)throw RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}if("string"==typeof s)u.appendChild(e.createTextNode(s));else{let{dom:t,contentDOM:o}=et(e,s,r,n);if(u.appendChild(t),o){if(i)throw RangeError("Multiple content holes");i=o}}}return{dom:u,contentDOM:i}}},92649:(e,t,r)=>{"use strict";r.d(t,{AdminListPage:()=>p});var n=r(95155),i=r(52619),o=r.n(i),s=r(24033),l=r(35626),a=r(86651),c=r(89559),u=r(6259),d=r(87485),h=r(45412);function p(e){var t;let{backHref:r,backLabel:i,title:p,eyebrow:f,subtitle:m,meta:g,primaryAction:b,search:y,filters:v,toolbarExtras:x,onRefresh:k,refreshing:w=!1,children:C,pagination:E}=e,A=(0,h.b)(),S=null==b?void 0:b.icon,M="inline-flex h-10 items-center gap-2 rounded-xl border border-[color:var(--admin-action,#c2410c)] bg-card px-4 text-sm font-medium text-foreground/85 transition hover:border-[color:var(--admin-action-hover,#9a3412)] hover:bg-[var(--primary)]/5 disabled:opacity-50 disabled:pointer-events-none",D=b?b.menu&&b.menu.length>0?(0,n.jsxs)(u.rI,{children:[(0,n.jsx)(u.ty,{asChild:!0,children:(0,n.jsxs)("button",{type:"button",disabled:b.disabled,className:M,children:[S&&(0,n.jsx)(S,{className:"h-4 w-4 text-[var(--primary)]"}),b.label,(0,n.jsx)(s.A,{className:"h-4 w-4 opacity-60"})]})}),(0,n.jsx)(u.SQ,{align:"end",children:b.menu.map(e=>{let t=e.icon;return(0,n.jsxs)(u._2,{onClick:e.onClick,children:[t&&(0,n.jsx)(t,{className:"mr-2 h-4 w-4 text-muted-foreground"}),e.label]},e.id)})})]}):b.href?(0,n.jsxs)(o(),{href:b.href,className:M,children:[S&&(0,n.jsx)(S,{className:"h-4 w-4 text-[var(--primary)]"}),b.label]}):(0,n.jsxs)("button",{type:"button",onClick:b.onClick,disabled:b.disabled,className:M,children:[S&&(0,n.jsx)(S,{className:"h-4 w-4 text-[var(--primary)]"}),b.label]}):null;return(0,n.jsxs)(d.N,{fluid:!0,className:"py-14",style:{"--admin-list-chrome-height":"0px"},children:[r&&(0,n.jsxs)(o(),{href:r,className:"mb-6 inline-flex w-fit items-center gap-1.5 text-sm text-muted-foreground transition hover:text-foreground",children:[(0,n.jsx)(l.A,{className:"h-4 w-4"}),i]}),(0,n.jsxs)("div",{className:"mb-6 flex items-end justify-between gap-6 flex-wrap",children:[(0,n.jsxs)("div",{children:[f&&(0,n.jsx)("p",{className:"mb-3 text-xs font-medium uppercase tracking-[0.22em] text-muted-foreground",children:f}),(0,n.jsxs)("h1",{className:"text-5xl font-bold tracking-tight mt-0 mb-1",children:[p,(0,n.jsx)("span",{className:"text-[var(--primary)]",children:"."})]}),m&&(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:m})]}),g&&(0,n.jsx)("div",{className:"text-right",children:g})]}),(0,n.jsx)("div",{className:"mb-6 h-px w-full bg-border"}),(y||v||D||x||k)&&(0,n.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-3 flex-wrap",children:[(0,n.jsxs)("div",{className:"flex flex-1 items-center gap-3 flex-wrap",children:[y&&(0,n.jsxs)("div",{className:"relative w-72",children:[(0,n.jsx)(a.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),(0,n.jsx)("input",{type:"search",value:y.value,onChange:e=>y.onChange(e.target.value),placeholder:null!=(t=y.placeholder)?t:A("core.adminList.searchPlaceholder"),className:"h-10 w-full rounded-xl bg-muted/60 pl-9 pr-3 text-sm text-foreground placeholder:text-muted-foreground outline-none ring-0 transition focus:bg-muted focus:ring-2 focus:ring-[var(--ring)]"})]}),v]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[x,k&&(0,n.jsx)("button",{type:"button",onClick:k,"aria-label":A("core.adminList.refresh"),title:A("core.adminList.refresh"),className:"grid h-10 w-10 place-items-center rounded-xl text-muted-foreground transition hover:bg-muted hover:text-foreground",children:(0,n.jsx)(c.A,{className:"h-4 w-4 ".concat(w?"animate-spin":"")})}),D]})]}),(0,n.jsx)("div",{children:C}),E&&(0,n.jsx)("div",{className:"mt-4 flex justify-center",children:E})]})}},93793:(e,t,r)=>{"use strict";r.d(t,{FormGroup:()=>s});var n=r(95155),i=r(40745);let o={1:"grid grid-cols-1 gap-4 items-start",2:"grid grid-cols-1 sm:grid-cols-2 gap-4 items-start",3:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 items-start"};
9function s(e){let{cols:t=2,className:r,children:s}=e;return(0,n.jsx)("div",{className:(0,i.cn)(o[t],r),children:s})}},94925:(e,t,r)=>{"use strict";r.d(t,{TableToolbar:()=>s});var n=r(95155),i=r(30447),o=r(45412);function s(e){let{editor:t}=e,r=(0,o.b)(),s=t.isActive("table");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),active:!1,disabled:s,title:r("core.editor.table.insert"),children:"â¦"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().addRowBefore().run(),active:!1,disabled:!s,title:r("core.editor.table.addRowBefore"),children:"â¤"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().addRowAfter().run(),active:!1,disabled:!s,title:r("core.editor.table.addRowAfter"),children:"â¤"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().addColumnBefore().run(),active:!1,disabled:!s,title:r("core.editor.table.addColumnBefore"),children:"â¤"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().addColumnAfter().run(),active:!1,disabled:!s,title:r("core.editor.table.addColumnAfter"),children:"â¥"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleHeaderRow().run(),active:!1,disabled:!s,title:r("core.editor.table.toggleHeaderRow"),children:"Th"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().deleteRow().run(),active:!1,disabled:!s,title:r("core.editor.table.deleteRow"),children:"âR"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().deleteColumn().run(),active:!1,disabled:!s,title:r("core.editor.table.deleteColumn"),children:"âC"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().deleteTable().run(),active:!1,disabled:!s,title:r("core.editor.table.deleteTable"),children:"â"})]})}},97645:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>o.Gz,hl:()=>o.hl,WY:()=>c,Gj:()=>d,X1:()=>h});var n,i,o=r(39014);let s=/["&'<>$\x80-\uFFFF]/g,l=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),a=null!=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function c(e){let t,r="",n=0;for(;null!==(t=s.exec(e));){let i=t.index,o=e.charCodeAt(i),c=l.get(o);void 0!==c?(r+=e.substring(n,i)+c,n=i+1):(r+=`${e.substring(n,i)}&#x${a(e,i).toString(16)};`,n=s.lastIndex+=Number((64512&o)==55296))}return r+e.substr(n)}function u(e,t){return function(r){let n,i=0,o="";for(;n=e.exec(r);)i!==n.index&&(o+=r.substring(i,n.index)),o+=t.get(n[0].charCodeAt(0)),i=n.index+1;return o+r.substring(i)}}u(/[&<>'"]/g,l);let d=u(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),h=u(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(n||(n={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(i||(i={}))},97748:(e,t,r)=>{"use strict";r.d(t,{FormattingToolbar:()=>s});var n=r(95155),i=r(30447),o=r(45412);function s(e){let{editor:t}=e,r=(0,o.b)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleBold().run(),active:t.isActive("bold"),title:r("core.editor.bold"),children:"B"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleItalic().run(),active:t.isActive("italic"),title:r("core.editor.italic"),children:(0,n.jsx)("em",{children:"I"})}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleHeading({level:2}).run(),active:t.isActive("heading",{level:2}),title:r("core.editor.heading2"),children:"H2"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleHeading({level:3}).run(),active:t.isActive("heading",{level:3}),title:r("core.editor.heading3"),children:"H3"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleBulletList().run(),active:t.isActive("bulletList"),title:r("core.editor.bulletList"),children:"â¢â"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleOrderedList().run(),active:t.isActive("orderedList"),title:r("core.editor.orderedList"),children:"1."}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleBlockquote().run(),active:t.isActive("blockquote"),title:r("core.editor.blockquote"),children:'"'}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleCodeBlock().run(),active:t.isActive("codeBlock"),title:r("core.editor.codeBlock"),children:"</>"}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleLeadText().run(),active:t.isActive("leadText"),title:r("core.editor.lead"),children:(0,n.jsx)("span",{className:"text-base font-semibold leading-none",children:"A"})}),(0,n.jsx)(i.ToolbarButton,{onClick:()=>t.chain().focus().toggleSmallText().run(),active:t.isActive("smallText"),title:r("core.editor.small"),children:(0,n.jsx)("span",{className:"text-[10px] leading-none",children:"A"})})]})}},99051:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(5121).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.