@skill-map/cli 0.23.1 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{a as st,c as lt,d as rt}from"./chunk-KRNW54CI.js";import{$c as Me,Dc as nt,Fb as Ce,Fc as ot,Gc as Ie,Hb as be,Hc as V,Ia as L,Ic as U,J as N,Jb as qe,Jc as De,K as ne,La as x,M as de,Ma as T,Mc as ze,Nc as ee,O as f,Ob as D,Oc as at,Pc as Oe,Qc as Ve,Ra as s,Rb as q,S as g,Sa as u,T as h,Ta as C,Tc as k,U as F,Ua as E,Va as Z,Vb as W,W as je,Wa as $,Xa as Q,Ya as X,Yc as we,Z as y,Za as Y,_ as me,_a as S,ac as d,ba as _e,bb as w,bc as G,cb as fe,db as I,dd as te,ea as v,fb as l,gb as ge,ha as Re,hb as ae,hc as ye,ia as Pe,ib as he,jb as Ze,kb as m,kc as xe,lb as _,lc as We,ma as p,mc as Te,nc as ve,oc as le,pb as $e,qa as ke,qb as Qe,sb as se,tb as b,ua as O,ub as Xe,va as oe,vb as Ye,wa as Ne,wc as Ge,xa as ue,xc as M,ya as z,yc as K,za as c,zc as it}from"./chunk-NJ4PSNK3.js";import{B as tt,D as Ee,O as J,a as Je,d as Le,h as Se,l as Be,m as Ae,p as Ke,r as Ue,u as re,v as Fe,y as et}from"./chunk-3R7E3HPC.js";import{a as P}from"./chunk-Q7L6LLAK.js";var xt=["data-p-icon","window-maximize"],ct=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["","data-p-icon","window-maximize"]],features:[z],attrs:xt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(F(),Z(0,"g"),Q(1,"path",0),$(),Z(2,"defs")(3,"clipPath",1),Q(4,"rect",2),$()()),n&2&&(L("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var Tt=["data-p-icon","window-minimize"],pt=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["","data-p-icon","window-minimize"]],features:[z],attrs:Tt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(F(),Z(0,"g"),Q(1,"path",0),$(),Z(2,"defs")(3,"clipPath",1),Q(4,"rect",2),$()()),n&2&&(L("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var dt=(()=>{class t extends ee{pFocusTrapDisabled=!1;platformId=f(Re);document=f(je);firstHiddenFocusableElement;lastHiddenFocusableElement;onInit(){le(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}onChanges(e){e.pFocusTrapDisabled&&le(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let n=i=>Ue("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?et(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Fe(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?tt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Fe(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275dir=Ne({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",d]},features:[z]})}return t})();var mt=`
1
+ import{a as lt,c as rt,d as ct}from"./chunk-YEWLFFFB.js";import{$ as _e,$a as L,Aa as c,Ac as nt,Ec as ot,Gb as Ce,Gc as at,Hc as Ie,Ib as be,Ic as H,J as A,Ja as S,Jc as ee,K as ae,Kb as Ge,Kc as De,M as me,Ma as x,Na as T,Nc as ze,O as f,Oc as te,Pb as D,Pc as st,Qc as Oe,Rc as Ve,Sa as s,Sb as G,T as g,Ta as u,U as h,Ua as C,Uc as k,V as O,Va as E,Wa as $,Wb as W,X as Re,Xa as Q,Ya as Y,Za as X,Zc as we,_ as y,_a as q,ad as Me,bc as d,ca as Z,cb as w,cc as J,db as fe,eb as I,ed as ie,fa as v,gb as l,hb as ge,ia as Pe,ib as le,ic as ye,ja as Ne,jb as he,kb as $e,lb as m,lc as xe,mb as _,mc as We,na as p,nc as Te,oc as ve,pc as ce,qb as Qe,ra as ke,rb as Ye,tb as re,ub as b,va as V,vb as Xe,wa as se,wb as qe,xa as Ze,xc as Je,ya as ue,yc as M,za as z,zc as U}from"./chunk-ZR2E2QJ4.js";import{B as it,D as Ee,O as K,a as Ke,d as Se,h as Le,l as Be,m as Fe,p as Ue,r as et,u as pe,v as Ae,y as tt}from"./chunk-3R7E3HPC.js";import{a as N}from"./chunk-Q7L6LLAK.js";var Et=["data-p-icon","window-maximize"],pt=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=V({type:t,selectors:[["","data-p-icon","window-maximize"]],features:[z],attrs:Et,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(O(),$(0,"g"),Y(1,"path",0),Q(),$(2,"defs")(3,"clipPath",1),Y(4,"rect",2),Q()()),n&2&&(S("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var It=["data-p-icon","window-minimize"],dt=(()=>{class t extends we{pathId;onInit(){this.pathId="url(#"+M()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=V({type:t,selectors:[["","data-p-icon","window-minimize"]],features:[z],attrs:It,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(O(),$(0,"g"),Y(1,"path",0),Q(),$(2,"defs")(3,"clipPath",1),Y(4,"rect",2),Q()()),n&2&&(S("clip-path",i.pathId),p(3),fe("id",i.pathId))},encapsulation:2})}return t})();var mt=(()=>{class t extends te{pFocusTrapDisabled=!1;platformId=f(Pe);document=f(Re);firstHiddenFocusableElement;lastHiddenFocusableElement;onInit(){ce(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}onChanges(e){e.pFocusTrapDisabled&&ce(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let n=i=>et("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?tt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Ae(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?it(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Ae(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275dir=Ze({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",d]},features:[z]})}return t})();var _t=`
2
2
  .p-dialog {
3
3
  max-height: 90%;
4
4
  transform: scale(1);
@@ -96,13 +96,13 @@ import{a as st,c as lt,d as rt}from"./chunk-KRNW54CI.js";import{$c as Me,Dc as n
96
96
  transform: scale(0.93);
97
97
  }
98
98
  }
99
- `;var It=["header"],_t=["content"],ut=["footer"],Dt=["closeicon"],zt=["maximizeicon"],wt=["minimizeicon"],Mt=["headless"],kt=["titlebar"],Lt=["*",[["p-footer"]]],St=["*","p-footer"],Bt=t=>({ariaLabelledBy:t});function At(t,o){t&1&&S(0)}function Ft(t,o){if(t&1&&(X(0),c(1,At,1,0,"ng-container",11),Y()),t&2){let e=l(3);p(),s("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Ot(t,o){if(t&1){let e=w();u(0,"div",16),I("mousedown",function(i){g(e);let a=l(4);return h(a.initResize(i))}),C()}if(t&2){let e=l(4);b(e.cx("resizeHandle")),Qe("z-index",90),s("pBind",e.ptm("resizeHandle"))}}function Vt(t,o){if(t&1&&(u(0,"span",21),Xe(1),C()),t&2){let e=l(5);b(e.cx("title")),s("id",e.ariaLabelledBy)("pBind",e.ptm("title")),p(),Ye(e.header)}}function Ht(t,o){t&1&&S(0)}function jt(t,o){if(t&1&&E(0,"span",25),t&2){let e=l(7);s("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function Rt(t,o){t&1&&(F(),E(0,"svg",28))}function Pt(t,o){t&1&&(F(),E(0,"svg",29))}function Nt(t,o){if(t&1&&(X(0),c(1,Rt,1,0,"svg",26)(2,Pt,1,0,"svg",27),Y()),t&2){let e=l(7);p(),s("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),p(),s("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function Zt(t,o){}function $t(t,o){t&1&&c(0,Zt,0,0,"ng-template")}function Qt(t,o){if(t&1&&(X(0),c(1,$t,1,0,null,11),Y()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function Xt(t,o){}function Yt(t,o){t&1&&c(0,Xt,0,0,"ng-template")}function qt(t,o){if(t&1&&(X(0),c(1,Yt,1,0,null,11),Y()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function Wt(t,o){if(t&1&&c(0,jt,1,1,"span",23)(1,Nt,3,2,"ng-container",24)(2,Qt,2,1,"ng-container",24)(3,qt,2,1,"ng-container",24),t&2){let e=l(6);s("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),p(),s("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),p(),s("ngIf",!e.maximized),p(),s("ngIf",e.maximized)}}function Gt(t,o){if(t&1){let e=w();u(0,"p-button",22),I("onClick",function(){g(e);let i=l(5);return h(i.maximize())})("keydown.enter",function(){g(e);let i=l(5);return h(i.maximize())}),c(1,Wt,4,4,"ng-template",null,4,D),C()}if(t&2){let e=l(5);s("pt",e.ptm("pcMaximizeButton"))("styleClass",e.cx("pcMaximizeButton"))("ariaLabel",e.maximized?e.minimizeLabel:e.maximizeLabel)("tabindex",e.maximizable?"0":"-1")("buttonProps",e.maximizeButtonProps)("unstyled",e.unstyled()),L("data-pc-group-section","headericon")}}function Jt(t,o){if(t&1&&E(0,"span"),t&2){let e=l(8);b(e.closeIcon)}}function Kt(t,o){t&1&&(F(),E(0,"svg",32))}function Ut(t,o){if(t&1&&(X(0),c(1,Jt,1,2,"span",30)(2,Kt,1,0,"svg",31),Y()),t&2){let e=l(7);p(),s("ngIf",e.closeIcon),p(),s("ngIf",!e.closeIcon)}}function ei(t,o){}function ti(t,o){t&1&&c(0,ei,0,0,"ng-template")}function ii(t,o){if(t&1&&(u(0,"span"),c(1,ti,1,0,null,11),C()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function ni(t,o){if(t&1&&c(0,Ut,3,2,"ng-container",24)(1,ii,2,1,"span",24),t&2){let e=l(6);s("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),p(),s("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function oi(t,o){if(t&1){let e=w();u(0,"p-button",22),I("onClick",function(i){g(e);let a=l(5);return h(a.close(i))})("keydown.enter",function(i){g(e);let a=l(5);return h(a.close(i))}),c(1,ni,2,2,"ng-template",null,4,D),C()}if(t&2){let e=l(5);s("pt",e.ptm("pcCloseButton"))("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)("unstyled",e.unstyled()),L("data-pc-group-section","headericon")}}function ai(t,o){if(t&1){let e=w();u(0,"div",16,3),I("mousedown",function(i){g(e);let a=l(4);return h(a.initDrag(i))}),c(2,Vt,2,5,"span",17)(3,Ht,1,0,"ng-container",18),u(4,"div",19),c(5,Gt,3,7,"p-button",20)(6,oi,3,7,"p-button",20),C()()}if(t&2){let e=l(4);b(e.cx("header")),s("pBind",e.ptm("header")),p(2),s("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),p(),s("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT)("ngTemplateOutletContext",be(11,Bt,e.ariaLabelledBy)),p(),b(e.cx("headerActions")),s("pBind",e.ptm("headerActions")),p(),s("ngIf",e.maximizable),p(),s("ngIf",e.closable)}}function si(t,o){t&1&&S(0)}function li(t,o){t&1&&S(0)}function ri(t,o){if(t&1&&(u(0,"div",19,5),ae(2,1),c(3,li,1,0,"ng-container",11),C()),t&2){let e=l(4);b(e.cx("footer")),s("pBind",e.ptm("footer")),p(3),s("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function ci(t,o){if(t&1&&(c(0,Ot,1,5,"div",12)(1,ai,7,13,"div",13),u(2,"div",14,2),ae(4),c(5,si,1,0,"ng-container",11),C(),c(6,ri,4,4,"div",15)),t&2){let e=l(3);s("ngIf",e.resizable),p(),s("ngIf",e.showHeader),p(),b(e.cn(e.cx("content"),e.contentStyleClass)),s("ngStyle",e.contentStyle)("pBind",e.ptm("content")),p(3),s("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),p(),s("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function pi(t,o){if(t&1){let e=w();u(0,"div",9,0),I("pMotionOnBeforeEnter",function(i){g(e);let a=l(2);return h(a.onBeforeEnter(i))})("pMotionOnAfterEnter",function(i){g(e);let a=l(2);return h(a.onAfterEnter(i))})("pMotionOnBeforeLeave",function(i){g(e);let a=l(2);return h(a.onBeforeLeave(i))})("pMotionOnAfterLeave",function(i){g(e);let a=l(2);return h(a.onAfterLeave(i))}),c(2,Ft,2,1,"ng-container",10)(3,ci,7,8,"ng-template",null,1,D),C()}if(t&2){let e=$e(4),n=l(2);se(n.sx("root")),b(n.cn(n.cx("root"),n.styleClass)),s("ngStyle",n.style)("pBind",n.ptm("root"))("pFocusTrapDisabled",n.focusTrap===!1)("pMotion",n.visible)("pMotionAppear",!0)("pMotionName","p-dialog")("pMotionOptions",n.computedMotionOptions()),L("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0)("data-p",n.dataP),p(2),s("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function di(t,o){if(t&1){let e=w();u(0,"div",7),I("pMotionOnAfterLeave",function(){g(e);let i=l();return h(i.onMaskAfterLeave())}),x(1,pi,5,17,"div",8),C()}if(t&2){let e=l();se(e.sx("mask")),b(e.cn(e.cx("mask"),e.maskStyleClass)),s("ngStyle",e.maskStyle)("pBind",e.ptm("mask"))("pMotion",e.maskVisible)("pMotionAppear",!0)("pMotionEnterActiveClass",e.modal?"p-overlay-mask-enter-active":"")("pMotionLeaveActiveClass",e.modal?"p-overlay-mask-leave-active":"")("pMotionOptions",e.computedMaskMotionOptions()),L("data-p-scrollblocker-active",e.modal||e.blockScroll)("data-p",e.dataP),p(),T(e.renderDialog()?1:-1)}}var mi={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:t.position==="left"||t.position==="topleft"||t.position==="bottomleft"?"flex-start":t.position==="right"||t.position==="topright"||t.position==="bottomright"?"flex-end":"center",alignItems:t.position==="top"||t.position==="topleft"||t.position==="topright"?"flex-start":t.position==="bottom"||t.position==="bottomleft"||t.position==="bottomright"?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},_i={mask:({instance:t})=>{let e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(n=>n===t.position);return["p-dialog-mask",{"p-overlay-mask":t.modal},e?`p-dialog-${e}`:""]},root:({instance:t})=>["p-dialog p-component",{"p-dialog-maximized":t.maximizable&&t.maximized}],header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:()=>["p-dialog-content"],footer:"p-dialog-footer"},ft=(()=>{class t extends De{name="dialog";style=mt;classes=_i;inlineStyles=mi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var gt=new de("DIALOG_INSTANCE"),He=(()=>{class t extends ee{componentName="Dialog";hostName="";$pcDialog=f(gt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=f(k,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;draggable=!0;resizable=!0;contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";maskMotionOptions=W(void 0);computedMaskMotionOptions=q(()=>P(P({},this.ptm("maskMotion")),this.maskMotionOptions()));motionOptions=W(void 0);computedMotionOptions=q(()=>P(P({},this.ptm("motion")),this.motionOptions()));closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",variant:"text",rounded:!0};maximizeButtonProps={severity:"secondary",variant:"text",rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0,this.renderMask.set(!0),this.renderDialog.set(!0))}get style(){return this._style}set style(e){e&&(this._style=P({},e),this.originalStyle=e)}position;role="dialog";appendTo=W(void 0);onShow=new y;onHide=new y;visibleChange=new y;onResizeInit=new y;onResizeEnd=new y;onDragEnd=new y;onMaximize=new y;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;$appendTo=q(()=>this.appendTo()||this.config.overlayAppendTo());renderMask=_e(!1);renderDialog=_e(!1);_visible=!1;maskVisible;container=_e(null);wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=M("pn_id_");_style={};originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=f(ft);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;zIndexForLayering;get maximizeLabel(){return this.config.getTranslation(U.ARIA).maximizeLabel}get minimizeLabel(){return this.config.getTranslation(U.ARIA).minimizeLabel}zone=f(me);overlayService=f(nt);get maskClass(){let n=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(i=>i===this.position);return{"p-dialog-mask":!0,"p-overlay-mask":this.modal||this.dismissableMask,[`p-dialog-${n}`]:n}}onInit(){this.breakpoints&&this.createStyle()}templates;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template;break;default:this.contentT=e.template;break}})}getAriaLabelledBy(){return this.header!==null?M("pn_id_")+"_header":null}parseDurationToMilliseconds(e){let n=/([\d\.]+)(ms|s)\b/g,i=0,a;for(;(a=n.exec(e))!==null;){let r=parseFloat(a[1]),H=a[2];H==="ms"?i+=r:H==="s"&&(i+=r*1e3)}if(i!==0)return i}_focus(e){if(e){let n=this.parseDurationToMilliseconds(this.transitionOptions),i=at.getFocusableElements(e);if(i&&i.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>i[0].focus(),n||5)}),!0}return!1}focus(e=this.contentViewChild?.nativeElement){let n=this._focus(e);n||(n=this._focus(this.footerViewChild?.nativeElement),n||(n=this._focus(this.headerViewChild?.nativeElement),n||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visible=!1,this.visibleChange.emit(this.visible),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&Oe()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll('[data-p-scrollblocker-active="true"]');this.modal&&e&&e.length==1&&Ve(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?Oe():Ve()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex?(te.set("modal",this.container(),this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container().style.zIndex,10)-1)):this.zIndexForLayering=te.generateZIndex("modal",(this.baseZIndex??0)+this.config.zIndex.modal)}createStyle(){if(le(this.platformId)&&!this.styleElement&&!this.$unstyled()){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",J(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`
99
+ `;var wt=["header"],ut=["content"],ft=["footer"],Mt=["closeicon"],kt=["maximizeicon"],St=["minimizeicon"],Lt=["headless"],Bt=["titlebar"],Ft=["*",[["p-footer"]]],At=["*","p-footer"],Ot=t=>({ariaLabelledBy:t});function Vt(t,o){t&1&&L(0)}function Ht(t,o){if(t&1&&(X(0),c(1,Vt,1,0,"ng-container",11),q()),t&2){let e=l(3);p(),s("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function jt(t,o){if(t&1){let e=w();u(0,"div",16),I("mousedown",function(i){g(e);let a=l(4);return h(a.initResize(i))}),C()}if(t&2){let e=l(4);b(e.cx("resizeHandle")),Ye("z-index",90),s("pBind",e.ptm("resizeHandle"))}}function Rt(t,o){if(t&1&&(u(0,"span",21),Xe(1),C()),t&2){let e=l(5);b(e.cx("title")),s("id",e.ariaLabelledBy)("pBind",e.ptm("title")),p(),qe(e.header)}}function Pt(t,o){t&1&&L(0)}function Nt(t,o){if(t&1&&E(0,"span",25),t&2){let e=l(7);s("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function Zt(t,o){t&1&&(O(),E(0,"svg",28))}function $t(t,o){t&1&&(O(),E(0,"svg",29))}function Qt(t,o){if(t&1&&(X(0),c(1,Zt,1,0,"svg",26)(2,$t,1,0,"svg",27),q()),t&2){let e=l(7);p(),s("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),p(),s("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function Yt(t,o){}function Xt(t,o){t&1&&c(0,Yt,0,0,"ng-template")}function qt(t,o){if(t&1&&(X(0),c(1,Xt,1,0,null,11),q()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function Gt(t,o){}function Wt(t,o){t&1&&c(0,Gt,0,0,"ng-template")}function Jt(t,o){if(t&1&&(X(0),c(1,Wt,1,0,null,11),q()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function Kt(t,o){if(t&1&&c(0,Nt,1,1,"span",23)(1,Qt,3,2,"ng-container",24)(2,qt,2,1,"ng-container",24)(3,Jt,2,1,"ng-container",24),t&2){let e=l(6);s("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),p(),s("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),p(),s("ngIf",!e.maximized),p(),s("ngIf",e.maximized)}}function Ut(t,o){if(t&1){let e=w();u(0,"p-button",22),I("onClick",function(){g(e);let i=l(5);return h(i.maximize())})("keydown.enter",function(){g(e);let i=l(5);return h(i.maximize())}),c(1,Kt,4,4,"ng-template",null,4,D),C()}if(t&2){let e=l(5);s("pt",e.ptm("pcMaximizeButton"))("styleClass",e.cx("pcMaximizeButton"))("ariaLabel",e.maximized?e.minimizeLabel:e.maximizeLabel)("tabindex",e.maximizable?"0":"-1")("buttonProps",e.maximizeButtonProps)("unstyled",e.unstyled()),S("data-pc-group-section","headericon")}}function ei(t,o){if(t&1&&E(0,"span"),t&2){let e=l(8);b(e.closeIcon)}}function ti(t,o){t&1&&(O(),E(0,"svg",32))}function ii(t,o){if(t&1&&(X(0),c(1,ei,1,2,"span",30)(2,ti,1,0,"svg",31),q()),t&2){let e=l(7);p(),s("ngIf",e.closeIcon),p(),s("ngIf",!e.closeIcon)}}function ni(t,o){}function oi(t,o){t&1&&c(0,ni,0,0,"ng-template")}function ai(t,o){if(t&1&&(u(0,"span"),c(1,oi,1,0,null,11),C()),t&2){let e=l(7);p(),s("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function si(t,o){if(t&1&&c(0,ii,3,2,"ng-container",24)(1,ai,2,1,"span",24),t&2){let e=l(6);s("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),p(),s("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function li(t,o){if(t&1){let e=w();u(0,"p-button",22),I("onClick",function(i){g(e);let a=l(5);return h(a.close(i))})("keydown.enter",function(i){g(e);let a=l(5);return h(a.close(i))}),c(1,si,2,2,"ng-template",null,4,D),C()}if(t&2){let e=l(5);s("pt",e.ptm("pcCloseButton"))("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)("unstyled",e.unstyled()),S("data-pc-group-section","headericon")}}function ri(t,o){if(t&1){let e=w();u(0,"div",16,3),I("mousedown",function(i){g(e);let a=l(4);return h(a.initDrag(i))}),c(2,Rt,2,5,"span",17)(3,Pt,1,0,"ng-container",18),u(4,"div",19),c(5,Ut,3,7,"p-button",20)(6,li,3,7,"p-button",20),C()()}if(t&2){let e=l(4);b(e.cx("header")),s("pBind",e.ptm("header")),p(2),s("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),p(),s("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT)("ngTemplateOutletContext",be(11,Ot,e.ariaLabelledBy)),p(),b(e.cx("headerActions")),s("pBind",e.ptm("headerActions")),p(),s("ngIf",e.maximizable),p(),s("ngIf",e.closable)}}function ci(t,o){t&1&&L(0)}function pi(t,o){t&1&&L(0)}function di(t,o){if(t&1&&(u(0,"div",19,5),le(2,1),c(3,pi,1,0,"ng-container",11),C()),t&2){let e=l(4);b(e.cx("footer")),s("pBind",e.ptm("footer")),p(3),s("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function mi(t,o){if(t&1&&(c(0,jt,1,5,"div",12)(1,ri,7,13,"div",13),u(2,"div",14,2),le(4),c(5,ci,1,0,"ng-container",11),C(),c(6,di,4,4,"div",15)),t&2){let e=l(3);s("ngIf",e.resizable),p(),s("ngIf",e.showHeader),p(),b(e.cn(e.cx("content"),e.contentStyleClass)),s("ngStyle",e.contentStyle)("pBind",e.ptm("content")),p(3),s("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),p(),s("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function _i(t,o){if(t&1){let e=w();u(0,"div",9,0),I("pMotionOnBeforeEnter",function(i){g(e);let a=l(2);return h(a.onBeforeEnter(i))})("pMotionOnAfterEnter",function(i){g(e);let a=l(2);return h(a.onAfterEnter(i))})("pMotionOnBeforeLeave",function(i){g(e);let a=l(2);return h(a.onBeforeLeave(i))})("pMotionOnAfterLeave",function(i){g(e);let a=l(2);return h(a.onAfterLeave(i))}),c(2,Ht,2,1,"ng-container",10)(3,mi,7,8,"ng-template",null,1,D),C()}if(t&2){let e=Qe(4),n=l(2);re(n.sx("root")),b(n.cn(n.cx("root"),n.styleClass)),s("ngStyle",n.style)("pBind",n.ptm("root"))("pFocusTrapDisabled",n.focusTrap===!1)("pMotion",n.visible)("pMotionAppear",!0)("pMotionName","p-dialog")("pMotionOptions",n.computedMotionOptions()),S("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0)("data-p",n.dataP),p(2),s("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function ui(t,o){if(t&1){let e=w();u(0,"div",7),I("pMotionOnAfterLeave",function(){g(e);let i=l();return h(i.onMaskAfterLeave())}),x(1,_i,5,17,"div",8),C()}if(t&2){let e=l();re(e.sx("mask")),b(e.cn(e.cx("mask"),e.maskStyleClass)),s("ngStyle",e.maskStyle)("pBind",e.ptm("mask"))("pMotion",e.maskVisible)("pMotionAppear",!0)("pMotionEnterActiveClass",e.modal?"p-overlay-mask-enter-active":"")("pMotionLeaveActiveClass",e.modal?"p-overlay-mask-leave-active":"")("pMotionOptions",e.computedMaskMotionOptions()),S("data-p-scrollblocker-active",e.modal||e.blockScroll)("data-p",e.dataP),p(),T(e.renderDialog()?1:-1)}}var fi={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:t.position==="left"||t.position==="topleft"||t.position==="bottomleft"?"flex-start":t.position==="right"||t.position==="topright"||t.position==="bottomright"?"flex-end":"center",alignItems:t.position==="top"||t.position==="topleft"||t.position==="topright"?"flex-start":t.position==="bottom"||t.position==="bottomleft"||t.position==="bottomright"?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},gi={mask:({instance:t})=>{let e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(n=>n===t.position);return["p-dialog-mask",{"p-overlay-mask":t.modal},e?`p-dialog-${e}`:""]},root:({instance:t})=>["p-dialog p-component",{"p-dialog-maximized":t.maximizable&&t.maximized}],header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:()=>["p-dialog-content"],footer:"p-dialog-footer"},gt=(()=>{class t extends De{name="dialog";style=_t;classes=gi;inlineStyles=fi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();var ht=new me("DIALOG_INSTANCE"),He=(()=>{class t extends te{componentName="Dialog";hostName="";$pcDialog=f(ht,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=f(k,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;draggable=!0;resizable=!0;contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";maskMotionOptions=W(void 0);computedMaskMotionOptions=G(()=>N(N({},this.ptm("maskMotion")),this.maskMotionOptions()));motionOptions=W(void 0);computedMotionOptions=G(()=>N(N({},this.ptm("motion")),this.motionOptions()));closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",variant:"text",rounded:!0};maximizeButtonProps={severity:"secondary",variant:"text",rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0,this.renderMask.set(!0),this.renderDialog.set(!0))}get style(){return this._style}set style(e){e&&(this._style=N({},e),this.originalStyle=e)}position;role="dialog";appendTo=W(void 0);onShow=new y;onHide=new y;visibleChange=new y;onResizeInit=new y;onResizeEnd=new y;onDragEnd=new y;onMaximize=new y;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;$appendTo=G(()=>this.appendTo()||this.config.overlayAppendTo());renderMask=Z(!1);renderDialog=Z(!1);_visible=!1;maskVisible;container=Z(null);wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=M("pn_id_");_style={};originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=f(gt);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;zIndexForLayering;get maximizeLabel(){return this.config.getTranslation(ee.ARIA).maximizeLabel}get minimizeLabel(){return this.config.getTranslation(ee.ARIA).minimizeLabel}zone=f(_e);overlayService=f(ot);get maskClass(){let n=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(i=>i===this.position);return{"p-dialog-mask":!0,"p-overlay-mask":this.modal||this.dismissableMask,[`p-dialog-${n}`]:n}}onInit(){this.breakpoints&&this.createStyle()}templates;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template;break;default:this.contentT=e.template;break}})}getAriaLabelledBy(){return this.header!==null?M("pn_id_")+"_header":null}parseDurationToMilliseconds(e){let n=/([\d\.]+)(ms|s)\b/g,i=0,a;for(;(a=n.exec(e))!==null;){let r=parseFloat(a[1]),j=a[2];j==="ms"?i+=r:j==="s"&&(i+=r*1e3)}if(i!==0)return i}_focus(e){if(e){let n=this.parseDurationToMilliseconds(this.transitionOptions),i=st.getFocusableElements(e);if(i&&i.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>i[0].focus(),n||5)}),!0}return!1}focus(e=this.contentViewChild?.nativeElement){let n=this._focus(e);n||(n=this._focus(this.footerViewChild?.nativeElement),n||(n=this._focus(this.headerViewChild?.nativeElement),n||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visible=!1,this.visibleChange.emit(this.visible),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&Oe()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll('[data-p-scrollblocker-active="true"]');this.modal&&e&&e.length==1&&Ve(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?Oe():Ve()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex?(ie.set("modal",this.container(),this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container().style.zIndex,10)-1)):this.zIndexForLayering=ie.generateZIndex("modal",(this.baseZIndex??0)+this.config.zIndex.modal)}createStyle(){if(ce(this.platformId)&&!this.styleElement&&!this.$unstyled()){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",K(this.styleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`
100
100
  @media screen and (max-width: ${n}) {
101
101
  .p-dialog[${this.id}]:not(.p-dialog-maximized) {
102
102
  width: ${this.breakpoints[n]} !important;
103
103
  }
104
104
  }
105
- `;this.renderer.setProperty(this.styleElement,"innerHTML",e),J(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){e.target.closest("div")?.getAttribute("data-pc-section")!=="headeractions"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container().style.margin="0",this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&Be(this.document.body,{"user-select":"none"}))}onDrag(e){if(this.dragging&&this.container()){let n=Ae(this.container()),i=Ee(this.container()),a=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,H=this.container().getBoundingClientRect(),j=getComputedStyle(this.container()),R=parseFloat(j.marginLeft),pe=parseFloat(j.marginTop),B=H.left+a-R,A=H.top+r-pe,ie=Se();this.container().style.position="fixed",this.keepInViewport?(B>=this.minX&&B+n<ie.width&&(this._style.left=`${B}px`,this.lastPageX=e.pageX,this.container().style.left=`${B}px`),A>=this.minY&&A+i<ie.height&&(this._style.top=`${A}px`,this.lastPageY=e.pageY,this.container().style.top=`${A}px`)):(this.lastPageX=e.pageX,this.container().style.left=`${B}px`,this.lastPageY=e.pageY,this.container().style.top=`${A}px`),this.overlayService.emitParentDrag(this.container())}}endDrag(e){this.dragging&&(this.dragging=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container().style.position="",this.container().style.left="",this.container().style.top="",this.container().style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&Be(this.document.body,{"user-select":"none"}),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,i=e.pageY-this.lastPageY,a=Ae(this.container()),r=Ee(this.container()),H=Ee(this.contentViewChild?.nativeElement),j=a+n,R=r+i,pe=this.container().style.minWidth,B=this.container().style.minHeight,A=this.container().getBoundingClientRect(),ie=Se();(!parseInt(this.container().style.top)||!parseInt(this.container().style.left))&&(j+=n,R+=i),(!pe||j>parseInt(pe))&&A.left+j<ie.width&&(this._style.width=j+"px",this.container().style.width=this._style.width),(!B||R>parseInt(B))&&A.top+R<ie.height&&(this.contentViewChild.nativeElement.style.height=H+R-r+"px",this._style.height&&(this._style.height=R+"px",this.container().style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{if(n.key=="Escape"){let i=this.container();if(!i)return;let a=te.getCurrent();(parseInt(i.style.zIndex)==a||this.zIndexForLayering==a)&&this.close(n)}})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.$appendTo()!=="self"&&Ke(this.document.body,this.wrapper)}restoreAppend(){this.container()&&this.$appendTo()!=="self"&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onBeforeEnter(e){this.container.set(e.element),this.wrapper=this.container()?.parentElement,this.$attrSelector&&this.container()?.setAttribute(this.$attrSelector,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container()?.setAttribute(this.id,""),this.modal&&this.enableModality()}onAfterEnter(){this.focusOnShow&&this.focus(),this.onShow.emit({})}onBeforeLeave(){this.modal&&(this.maskVisible=!1)}onAfterLeave(){this.onContainerDestroy(),this.renderDialog.set(!1),this.modal?this.renderMask.set(!1):this.maskVisible=!1,this.onHide.emit({}),this.cd.markForCheck()}onMaskAfterLeave(){this.renderDialog()||this.renderMask.set(!1)}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maximized&&(Le(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),Je(this.document.body,"p-overflow-hidden")&&Le(this.document.body,"p-overflow-hidden"),this.container()&&this.autoZIndex&&te.clear(this.container()),this.zIndexForLayering&&te.revertZIndex(this.zIndexForLayering),this.container.set(null),this.wrapper=null,this._style=this.originalStyle?P({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}onDestroy(){this.container()&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}get dataP(){return this.cn({maximized:this.maximized,modal:this.modal})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=O({type:t,selectors:[["p-dialog"]],contentQueries:function(n,i,a){if(n&1&&he(a,It,4)(a,_t,4)(a,ut,4)(a,Dt,4)(a,zt,4)(a,wt,4)(a,Mt,4)(a,Ie,4),n&2){let r;m(r=_())&&(i._headerTemplate=r.first),m(r=_())&&(i._contentTemplate=r.first),m(r=_())&&(i._footerTemplate=r.first),m(r=_())&&(i._closeiconTemplate=r.first),m(r=_())&&(i._maximizeiconTemplate=r.first),m(r=_())&&(i._minimizeiconTemplate=r.first),m(r=_())&&(i._headlessTemplate=r.first),m(r=_())&&(i.templates=r)}},viewQuery:function(n,i){if(n&1&&Ze(kt,5)(_t,5)(ut,5),n&2){let a;m(a=_())&&(i.headerViewChild=a.first),m(a=_())&&(i.contentViewChild=a.first),m(a=_())&&(i.footerViewChild=a.first)}},inputs:{hostName:"hostName",header:"header",draggable:[2,"draggable","draggable",d],resizable:[2,"resizable","resizable",d],contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",d],closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",d],blockScroll:[2,"blockScroll","blockScroll",d],autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",G],minX:[2,"minX","minX",G],minY:[2,"minY","minY",G],focusOnShow:[2,"focusOnShow","focusOnShow",d],maximizable:[2,"maximizable","maximizable",d],keepInViewport:[2,"keepInViewport","keepInViewport",d],focusTrap:[2,"focusTrap","focusTrap",d],transitionOptions:"transitionOptions",maskMotionOptions:[1,"maskMotionOptions"],motionOptions:[1,"motionOptions"],closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",appendTo:[1,"appendTo"],headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[Ce([ft,{provide:gt,useExisting:t},{provide:ze,useExisting:t}]),ue([k]),z],ngContentSelectors:St,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["icon",""],["footer",""],[3,"class","style","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],[3,"pMotionOnAfterLeave","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],["pFocusTrap","",3,"class","style","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],["pFocusTrap","",3,"pMotionOnBeforeEnter","pMotionOnAfterEnter","pMotionOnBeforeLeave","pMotionOnAfterLeave","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"class","pBind","z-index","mousedown",4,"ngIf"],[3,"class","pBind","mousedown",4,"ngIf"],[3,"ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"mousedown","pBind"],[3,"id","class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[3,"pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled","onClick","keydown.enter",4,"ngIf"],[3,"id","pBind"],[3,"onClick","keydown.enter","pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["data-p-icon","window-maximize",4,"ngIf"],["data-p-icon","window-minimize",4,"ngIf"],["data-p-icon","window-maximize"],["data-p-icon","window-minimize"],[3,"class",4,"ngIf"],["data-p-icon","times",4,"ngIf"],["data-p-icon","times"]],template:function(n,i){n&1&&(ge(Lt),x(0,di,2,14,"div",6)),n&2&&T(i.renderMask()?0:-1)},dependencies:[ve,ye,xe,Te,We,Me,dt,st,ct,pt,V,k,rt,lt],encapsulation:2,changeDetection:0})}return t})(),Wn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=oe({type:t});static \u0275inj=ne({imports:[He,V,V]})}return t})();var ht=`
105
+ `;this.renderer.setProperty(this.styleElement,"innerHTML",e),K(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){e.target.closest("div")?.getAttribute("data-pc-section")!=="headeractions"&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container().style.margin="0",this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&Be(this.document.body,{"user-select":"none"}))}onDrag(e){if(this.dragging&&this.container()){let n=Fe(this.container()),i=Ee(this.container()),a=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,j=this.container().getBoundingClientRect(),R=getComputedStyle(this.container()),P=parseFloat(R.marginLeft),de=parseFloat(R.marginTop),B=j.left+a-P,F=j.top+r-de,oe=Le();this.container().style.position="fixed",this.keepInViewport?(B>=this.minX&&B+n<oe.width&&(this._style.left=`${B}px`,this.lastPageX=e.pageX,this.container().style.left=`${B}px`),F>=this.minY&&F+i<oe.height&&(this._style.top=`${F}px`,this.lastPageY=e.pageY,this.container().style.top=`${F}px`)):(this.lastPageX=e.pageX,this.container().style.left=`${B}px`,this.lastPageY=e.pageY,this.container().style.top=`${F}px`),this.overlayService.emitParentDrag(this.container())}}endDrag(e){this.dragging&&(this.dragging=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container().style.position="",this.container().style.left="",this.container().style.top="",this.container().style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.document.body.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&Be(this.document.body,{"user-select":"none"}),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,i=e.pageY-this.lastPageY,a=Fe(this.container()),r=Ee(this.container()),j=Ee(this.contentViewChild?.nativeElement),R=a+n,P=r+i,de=this.container().style.minWidth,B=this.container().style.minHeight,F=this.container().getBoundingClientRect(),oe=Le();(!parseInt(this.container().style.top)||!parseInt(this.container().style.left))&&(R+=n,P+=i),(!de||R>parseInt(de))&&F.left+R<oe.width&&(this._style.width=R+"px",this.container().style.width=this._style.width),(!B||P>parseInt(B))&&F.top+P<oe.height&&(this.contentViewChild.nativeElement.style.height=j+P-r+"px",this._style.height&&(this._style.height=P+"px",this.container().style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,this.document.body.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.document.body.style["user-select"]=""),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{if(n.key=="Escape"){let i=this.container();if(!i)return;let a=ie.getCurrent();(parseInt(i.style.zIndex)==a||this.zIndexForLayering==a)&&this.close(n)}})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.$appendTo()!=="self"&&Ue(this.document.body,this.wrapper)}restoreAppend(){this.container()&&this.$appendTo()!=="self"&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onBeforeEnter(e){this.container.set(e.element),this.wrapper=this.container()?.parentElement,this.$attrSelector&&this.container()?.setAttribute(this.$attrSelector,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container()?.setAttribute(this.id,""),this.modal&&this.enableModality()}onAfterEnter(){this.focusOnShow&&this.focus(),this.onShow.emit({})}onBeforeLeave(){this.modal&&(this.maskVisible=!1)}onAfterLeave(){this.onContainerDestroy(),this.renderDialog.set(!1),this.modal?this.renderMask.set(!1):this.maskVisible=!1,this.onHide.emit({}),this.cd.markForCheck()}onMaskAfterLeave(){this.renderDialog()||this.renderMask.set(!1)}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maximized&&(Se(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),Ke(this.document.body,"p-overflow-hidden")&&Se(this.document.body,"p-overflow-hidden"),this.container()&&this.autoZIndex&&ie.clear(this.container()),this.zIndexForLayering&&ie.revertZIndex(this.zIndexForLayering),this.container.set(null),this.wrapper=null,this._style=this.originalStyle?N({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}onDestroy(){this.container()&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}get dataP(){return this.cn({maximized:this.maximized,modal:this.modal})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275cmp=V({type:t,selectors:[["p-dialog"]],contentQueries:function(n,i,a){if(n&1&&he(a,wt,4)(a,ut,4)(a,ft,4)(a,Mt,4)(a,kt,4)(a,St,4)(a,Lt,4)(a,Ie,4),n&2){let r;m(r=_())&&(i._headerTemplate=r.first),m(r=_())&&(i._contentTemplate=r.first),m(r=_())&&(i._footerTemplate=r.first),m(r=_())&&(i._closeiconTemplate=r.first),m(r=_())&&(i._maximizeiconTemplate=r.first),m(r=_())&&(i._minimizeiconTemplate=r.first),m(r=_())&&(i._headlessTemplate=r.first),m(r=_())&&(i.templates=r)}},viewQuery:function(n,i){if(n&1&&$e(Bt,5)(ut,5)(ft,5),n&2){let a;m(a=_())&&(i.headerViewChild=a.first),m(a=_())&&(i.contentViewChild=a.first),m(a=_())&&(i.footerViewChild=a.first)}},inputs:{hostName:"hostName",header:"header",draggable:[2,"draggable","draggable",d],resizable:[2,"resizable","resizable",d],contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",d],closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",d],blockScroll:[2,"blockScroll","blockScroll",d],autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",J],minX:[2,"minX","minX",J],minY:[2,"minY","minY",J],focusOnShow:[2,"focusOnShow","focusOnShow",d],maximizable:[2,"maximizable","maximizable",d],keepInViewport:[2,"keepInViewport","keepInViewport",d],focusTrap:[2,"focusTrap","focusTrap",d],transitionOptions:"transitionOptions",maskMotionOptions:[1,"maskMotionOptions"],motionOptions:[1,"motionOptions"],closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",appendTo:[1,"appendTo"],headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[Ce([gt,{provide:ht,useExisting:t},{provide:ze,useExisting:t}]),ue([k]),z],ngContentSelectors:At,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["icon",""],["footer",""],[3,"class","style","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],[3,"pMotionOnAfterLeave","ngStyle","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],["pFocusTrap","",3,"class","style","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],["pFocusTrap","",3,"pMotionOnBeforeEnter","pMotionOnAfterEnter","pMotionOnBeforeLeave","pMotionOnAfterLeave","ngStyle","pBind","pFocusTrapDisabled","pMotion","pMotionAppear","pMotionName","pMotionOptions"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"class","pBind","z-index","mousedown",4,"ngIf"],[3,"class","pBind","mousedown",4,"ngIf"],[3,"ngStyle","pBind"],[3,"class","pBind",4,"ngIf"],[3,"mousedown","pBind"],[3,"id","class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[3,"pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled","onClick","keydown.enter",4,"ngIf"],[3,"id","pBind"],[3,"onClick","keydown.enter","pt","styleClass","ariaLabel","tabindex","buttonProps","unstyled"],[3,"ngClass",4,"ngIf"],[4,"ngIf"],[3,"ngClass"],["data-p-icon","window-maximize",4,"ngIf"],["data-p-icon","window-minimize",4,"ngIf"],["data-p-icon","window-maximize"],["data-p-icon","window-minimize"],[3,"class",4,"ngIf"],["data-p-icon","times",4,"ngIf"],["data-p-icon","times"]],template:function(n,i){n&1&&(ge(Ft),x(0,ui,2,14,"div",6)),n&2&&T(i.renderMask()?0:-1)},dependencies:[ve,ye,xe,Te,We,Me,mt,lt,pt,dt,H,k,ct,rt],encapsulation:2,changeDetection:0})}return t})(),io=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=se({type:t});static \u0275inj=ae({imports:[He,H,H]})}return t})();var Ct=`
106
106
  .p-confirmdialog .p-dialog-content {
107
107
  display: flex;
108
108
  align-items: center;
@@ -115,10 +115,10 @@ import{a as st,c as lt,d as rt}from"./chunk-KRNW54CI.js";import{$c as Me,Dc as n
115
115
  width: dt('confirmdialog.icon.size');
116
116
  height: dt('confirmdialog.icon.size');
117
117
  }
118
- `;var ui=["header"],fi=["footer"],gi=["rejecticon"],hi=["accepticon"],Ci=["message"],bi=["icon"],yi=["headless"],xi=[[["p-footer"]]],Ti=["p-footer"],vi=(t,o,e)=>({$implicit:t,onAccept:o,onReject:e}),Ei=t=>({$implicit:t});function Ii(t,o){t&1&&S(0)}function Di(t,o){if(t&1&&c(0,Ii,1,0,"ng-container",7),t&2){let e=l(2);s("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)("ngTemplateOutletContext",qe(2,vi,e.confirmation,e.onAccept.bind(e),e.onReject.bind(e)))}}function zi(t,o){t&1&&c(0,Di,1,6,"ng-template",null,2,D)}function wi(t,o){t&1&&S(0)}function Mi(t,o){if(t&1&&c(0,wi,1,0,"ng-container",8),t&2){let e=l(3);s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function ki(t,o){t&1&&c(0,Mi,1,1,"ng-template",null,4,D)}function Li(t,o){}function Si(t,o){t&1&&c(0,Li,0,0,"ng-template")}function Bi(t,o){if(t&1&&c(0,Si,1,0,null,8),t&2){let e=l(3);s("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}function Ai(t,o){if(t&1&&E(0,"i",12),t&2){let e=l(4);b(e.option("icon")),s("ngClass",e.cx("icon"))("pBind",e.ptm("icon"))}}function Fi(t,o){if(t&1&&c(0,Ai,1,4,"i",11),t&2){let e=l(3);s("ngIf",e.option("icon"))}}function Oi(t,o){}function Vi(t,o){t&1&&c(0,Oi,0,0,"ng-template")}function Hi(t,o){if(t&1&&c(0,Vi,1,0,null,7),t&2){let e=l(3);s("ngTemplateOutlet",e.messageTemplate||e._messageTemplate)("ngTemplateOutletContext",be(2,Ei,e.confirmation))}}function ji(t,o){if(t&1&&E(0,"span",13),t&2){let e=l(3);b(e.cx("message")),s("pBind",e.ptm("message"))("innerHTML",e.option("message"),Pe)}}function Ri(t,o){if(t&1&&(x(0,Bi,1,1)(1,Fi,1,1,"i",9),x(2,Hi,1,4)(3,ji,1,4,"span",10)),t&2){let e=l(2);T(e.iconTemplate||e._iconTemplate?0:!e.iconTemplate&&!e._iconTemplate&&!e._messageTemplate&&!e.messageTemplate?1:-1),p(2),T(e.messageTemplate||e._messageTemplate?2:3)}}function Pi(t,o){if(t&1&&(x(0,ki,2,0),c(1,Ri,4,2,"ng-template",null,3,D)),t&2){let e=l();T(e.headerTemplate||e._headerTemplate?0:-1)}}function Ni(t,o){t&1&&S(0)}function Zi(t,o){if(t&1&&(ae(0),c(1,Ni,1,0,"ng-container",8)),t&2){let e=l(2);p(),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function $i(t,o){if(t&1&&E(0,"i",18),t&2){let e=l(6);b(e.option("rejectIcon")),s("pBind",e.ptm("pcRejectButton").icon)}}function Qi(t,o){if(t&1&&c(0,$i,1,3,"i",17),t&2){let e=l(5);s("ngIf",e.option("rejectIcon"))}}function Xi(t,o){}function Yi(t,o){t&1&&c(0,Xi,0,0,"ng-template")}function qi(t,o){if(t&1&&(x(0,Qi,1,1,"i",16),c(1,Yi,1,0,null,8)),t&2){let e=l(4);T(e.rejectIcon&&!e.rejectIconTemplate&&!e._rejectIconTemplate?0:-1),p(),s("ngTemplateOutlet",e.rejectIconTemplate||e._rejectIconTemplate)}}function Wi(t,o){if(t&1){let e=w();u(0,"p-button",15),I("onClick",function(){g(e);let i=l(3);return h(i.onReject())}),c(1,qi,2,2,"ng-template",null,5,D),C()}if(t&2){let e=l(3);s("pt",e.ptm("pcRejectButton"))("label",e.rejectButtonLabel)("styleClass",e.getButtonStyleClass("pcRejectButton","rejectButtonStyleClass"))("ariaLabel",e.option("rejectButtonProps","ariaLabel"))("buttonProps",e.getRejectButtonProps())("unstyled",e.unstyled())}}function Gi(t,o){if(t&1&&E(0,"i",18),t&2){let e=l(6);b(e.option("acceptIcon")),s("pBind",e.ptm("pcAcceptButton").icon)}}function Ji(t,o){if(t&1&&c(0,Gi,1,3,"i",17),t&2){let e=l(5);s("ngIf",e.option("acceptIcon"))}}function Ki(t,o){}function Ui(t,o){t&1&&c(0,Ki,0,0,"ng-template")}function en(t,o){if(t&1&&(x(0,Ji,1,1,"i",16),c(1,Ui,1,0,null,8)),t&2){let e=l(4);T(e.acceptIcon&&!e._acceptIconTemplate&&!e.acceptIconTemplate?0:-1),p(),s("ngTemplateOutlet",e.acceptIconTemplate||e._acceptIconTemplate)}}function tn(t,o){if(t&1){let e=w();u(0,"p-button",15),I("onClick",function(){g(e);let i=l(3);return h(i.onAccept())}),c(1,en,2,2,"ng-template",null,5,D),C()}if(t&2){let e=l(3);s("pt",e.ptm("pcAcceptButton"))("label",e.acceptButtonLabel)("styleClass",e.getButtonStyleClass("pcAcceptButton","acceptButtonStyleClass"))("ariaLabel",e.option("acceptButtonProps","ariaLabel"))("buttonProps",e.getAcceptButtonProps())("unstyled",e.unstyled())}}function nn(t,o){if(t&1&&c(0,Wi,3,6,"p-button",14)(1,tn,3,6,"p-button",14),t&2){let e=l(2);s("ngIf",e.option("rejectVisible")),p(),s("ngIf",e.option("acceptVisible"))}}function on(t,o){if(t&1&&(x(0,Zi,2,1),x(1,nn,2,2)),t&2){let e=l();T(e.footerTemplate||e._footerTemplate?0:-1),p(),T(!e.footerTemplate&&!e._footerTemplate?1:-1)}}var an={root:"p-confirmdialog",icon:"p-confirmdialog-icon",message:"p-confirmdialog-message",pcRejectButton:"p-confirmdialog-reject-button",pcAcceptButton:"p-confirmdialog-accept-button"},Ct=(()=>{class t extends De{name="confirmdialog";style=ht;classes=an;static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var bt=new de("CONFIRMDIALOG_INSTANCE"),sn=(()=>{class t extends ee{confirmationService;zone;componentName="ConfirmDialog";$pcConfirmDialog=f(bt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=f(k,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;icon;message;get style(){return this._style}set style(e){this._style=e,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo=W("body");key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;modal=!0;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}position="center";draggable=!0;onHide=new y;footer;_componentStyle=f(Ct);headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;templates;$appendTo=q(()=>this.appendTo()||this.config.overlayAppendTo());_headerTemplate;_footerTemplate;_rejectIconTemplate;_acceptIconTemplate;_messageTemplate;_iconTemplate;_headlessTemplate;confirmation;_visible;_style;maskVisible;dialog;wrapper;contentContainer;subscription;preWidth;styleElement;id=M("pn_id_");ariaLabelledBy=this.getAriaLabelledBy();translationSubscription;constructor(e,n){super(),this.confirmationService=e,this.zone=n,this.subscription=this.confirmationService.requireConfirmation$.subscribe(i=>{if(!i){this.hide();return}i.key===this.key&&(this.confirmation=i,Object.keys(i).forEach(r=>{this[r]=i[r]}),this.confirmation.accept&&(this.confirmation.acceptEvent=new y,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new y,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0)})}onInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"message":this._messageTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"rejecticon":this._rejectIconTemplate=e.template;break;case"accepticon":this._acceptIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break}})}getAriaLabelledBy(){return this.header!==null?M("pn_id_")+"_header":null}option(e,n){let i=this;if(i.hasOwnProperty(e)){let a=n?i[n]:i[e];return typeof a=="function"?a():a}}getButtonStyleClass(e,n){let i=this.cx(e),a=this.option(n);return[i,a].filter(Boolean).join(" ")}getElementToFocus(){if(this.dialog?.el?.nativeElement)switch(this.option("defaultFocus")){case"accept":return re(this.dialog.el.nativeElement,".p-confirm-dialog-accept");case"reject":return re(this.dialog.el.nativeElement,".p-confirm-dialog-reject");case"close":return re(this.dialog.el.nativeElement,".p-dialog-header-close");case"none":return null;default:return re(this.dialog.el.nativeElement,".p-confirm-dialog-accept")}}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",J(this.styleElement,"nonce",this.config?.csp()?.nonce),this.document.head.appendChild(this.styleElement);let e="";for(let n in this.breakpoints)e+=`
118
+ `;var hi=["header"],Ci=["footer"],bi=["rejecticon"],yi=["accepticon"],xi=["message"],Ti=["icon"],vi=["headless"],Ei=[[["p-footer"]]],Ii=["p-footer"],Di=(t,o,e)=>({$implicit:t,onAccept:o,onReject:e}),zi=t=>({$implicit:t});function wi(t,o){t&1&&L(0)}function Mi(t,o){if(t&1&&c(0,wi,1,0,"ng-container",7),t&2){let e=l(2);s("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)("ngTemplateOutletContext",Ge(2,Di,e.confirmation,e.onAccept.bind(e),e.onReject.bind(e)))}}function ki(t,o){t&1&&c(0,Mi,1,6,"ng-template",null,2,D)}function Si(t,o){t&1&&L(0)}function Li(t,o){if(t&1&&c(0,Si,1,0,"ng-container",8),t&2){let e=l(3);s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function Bi(t,o){t&1&&c(0,Li,1,1,"ng-template",null,4,D)}function Fi(t,o){}function Ai(t,o){t&1&&c(0,Fi,0,0,"ng-template")}function Oi(t,o){if(t&1&&c(0,Ai,1,0,null,8),t&2){let e=l(3);s("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}function Vi(t,o){if(t&1&&E(0,"i",12),t&2){let e=l(4);b(e.option("icon")),s("ngClass",e.cx("icon"))("pBind",e.ptm("icon"))}}function Hi(t,o){if(t&1&&c(0,Vi,1,4,"i",11),t&2){let e=l(3);s("ngIf",e.option("icon"))}}function ji(t,o){}function Ri(t,o){t&1&&c(0,ji,0,0,"ng-template")}function Pi(t,o){if(t&1&&c(0,Ri,1,0,null,7),t&2){let e=l(3);s("ngTemplateOutlet",e.messageTemplate||e._messageTemplate)("ngTemplateOutletContext",be(2,zi,e.confirmation))}}function Ni(t,o){if(t&1&&E(0,"span",13),t&2){let e=l(3);b(e.cx("message")),s("pBind",e.ptm("message"))("innerHTML",e.option("message"),Ne)}}function Zi(t,o){if(t&1&&(x(0,Oi,1,1)(1,Hi,1,1,"i",9),x(2,Pi,1,4)(3,Ni,1,4,"span",10)),t&2){let e=l(2);T(e.iconTemplate||e._iconTemplate?0:!e.iconTemplate&&!e._iconTemplate&&!e._messageTemplate&&!e.messageTemplate?1:-1),p(2),T(e.messageTemplate||e._messageTemplate?2:3)}}function $i(t,o){if(t&1&&(x(0,Bi,2,0),c(1,Zi,4,2,"ng-template",null,3,D)),t&2){let e=l();T(e.headerTemplate||e._headerTemplate?0:-1)}}function Qi(t,o){t&1&&L(0)}function Yi(t,o){if(t&1&&(le(0),c(1,Qi,1,0,"ng-container",8)),t&2){let e=l(2);p(),s("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Xi(t,o){if(t&1&&E(0,"i",18),t&2){let e=l(6);b(e.option("rejectIcon")),s("pBind",e.ptm("pcRejectButton").icon)}}function qi(t,o){if(t&1&&c(0,Xi,1,3,"i",17),t&2){let e=l(5);s("ngIf",e.option("rejectIcon"))}}function Gi(t,o){}function Wi(t,o){t&1&&c(0,Gi,0,0,"ng-template")}function Ji(t,o){if(t&1&&(x(0,qi,1,1,"i",16),c(1,Wi,1,0,null,8)),t&2){let e=l(4);T(e.rejectIcon&&!e.rejectIconTemplate&&!e._rejectIconTemplate?0:-1),p(),s("ngTemplateOutlet",e.rejectIconTemplate||e._rejectIconTemplate)}}function Ki(t,o){if(t&1){let e=w();u(0,"p-button",15),I("onClick",function(){g(e);let i=l(3);return h(i.onReject())}),c(1,Ji,2,2,"ng-template",null,5,D),C()}if(t&2){let e=l(3);s("pt",e.ptm("pcRejectButton"))("label",e.rejectButtonLabel)("styleClass",e.getButtonStyleClass("pcRejectButton","rejectButtonStyleClass"))("ariaLabel",e.option("rejectButtonProps","ariaLabel"))("buttonProps",e.getRejectButtonProps())("unstyled",e.unstyled())}}function Ui(t,o){if(t&1&&E(0,"i",18),t&2){let e=l(6);b(e.option("acceptIcon")),s("pBind",e.ptm("pcAcceptButton").icon)}}function en(t,o){if(t&1&&c(0,Ui,1,3,"i",17),t&2){let e=l(5);s("ngIf",e.option("acceptIcon"))}}function tn(t,o){}function nn(t,o){t&1&&c(0,tn,0,0,"ng-template")}function on(t,o){if(t&1&&(x(0,en,1,1,"i",16),c(1,nn,1,0,null,8)),t&2){let e=l(4);T(e.acceptIcon&&!e._acceptIconTemplate&&!e.acceptIconTemplate?0:-1),p(),s("ngTemplateOutlet",e.acceptIconTemplate||e._acceptIconTemplate)}}function an(t,o){if(t&1){let e=w();u(0,"p-button",15),I("onClick",function(){g(e);let i=l(3);return h(i.onAccept())}),c(1,on,2,2,"ng-template",null,5,D),C()}if(t&2){let e=l(3);s("pt",e.ptm("pcAcceptButton"))("label",e.acceptButtonLabel)("styleClass",e.getButtonStyleClass("pcAcceptButton","acceptButtonStyleClass"))("ariaLabel",e.option("acceptButtonProps","ariaLabel"))("buttonProps",e.getAcceptButtonProps())("unstyled",e.unstyled())}}function sn(t,o){if(t&1&&c(0,Ki,3,6,"p-button",14)(1,an,3,6,"p-button",14),t&2){let e=l(2);s("ngIf",e.option("rejectVisible")),p(),s("ngIf",e.option("acceptVisible"))}}function ln(t,o){if(t&1&&(x(0,Yi,2,1),x(1,sn,2,2)),t&2){let e=l();T(e.footerTemplate||e._footerTemplate?0:-1),p(),T(!e.footerTemplate&&!e._footerTemplate?1:-1)}}var rn={root:"p-confirmdialog",icon:"p-confirmdialog-icon",message:"p-confirmdialog-message",pcRejectButton:"p-confirmdialog-reject-button",pcAcceptButton:"p-confirmdialog-accept-button"},bt=(()=>{class t extends De{name="confirmdialog";style=Ct;classes=rn;static \u0275fac=(()=>{let e;return function(i){return(e||(e=v(t)))(i||t)}})();static \u0275prov=A({token:t,factory:t.\u0275fac})}return t})();var yt=new me("CONFIRMDIALOG_INSTANCE"),cn=(()=>{class t extends te{confirmationService;zone;componentName="ConfirmDialog";$pcConfirmDialog=f(yt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=f(k,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}header;icon;message;get style(){return this._style}set style(e){this._style=e,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo=W("body");key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;modal=!0;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}position="center";draggable=!0;onHide=new y;footer;_componentStyle=f(bt);headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;templates;$appendTo=G(()=>this.appendTo()||this.config.overlayAppendTo());_headerTemplate;_footerTemplate;_rejectIconTemplate;_acceptIconTemplate;_messageTemplate;_iconTemplate;_headlessTemplate;confirmation;_visible;_style;maskVisible;dialog;wrapper;contentContainer;subscription;preWidth;styleElement;id=M("pn_id_");ariaLabelledBy=this.getAriaLabelledBy();translationSubscription;constructor(e,n){super(),this.confirmationService=e,this.zone=n,this.subscription=this.confirmationService.requireConfirmation$.subscribe(i=>{if(!i){this.hide();return}i.key===this.key&&(this.confirmation=i,Object.keys(i).forEach(r=>{this[r]=i[r]}),this.confirmation.accept&&(this.confirmation.acceptEvent=new y,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new y,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0)})}onInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"message":this._messageTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"rejecticon":this._rejectIconTemplate=e.template;break;case"accepticon":this._acceptIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break}})}getAriaLabelledBy(){return this.header!==null?M("pn_id_")+"_header":null}option(e,n){let i=this;if(i.hasOwnProperty(e)){let a=n?i[n]:i[e];return typeof a=="function"?a():a}}getButtonStyleClass(e,n){let i=this.cx(e),a=this.option(n);return[i,a].filter(Boolean).join(" ")}getElementToFocus(){if(this.dialog?.el?.nativeElement)switch(this.option("defaultFocus")){case"accept":return pe(this.dialog.el.nativeElement,".p-confirm-dialog-accept");case"reject":return pe(this.dialog.el.nativeElement,".p-confirm-dialog-reject");case"close":return pe(this.dialog.el.nativeElement,".p-dialog-header-close");case"none":return null;default:return pe(this.dialog.el.nativeElement,".p-confirm-dialog-accept")}}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",K(this.styleElement,"nonce",this.config?.csp()?.nonce),this.document.head.appendChild(this.styleElement);let e="";for(let n in this.breakpoints)e+=`
119
119
  @media screen and (max-width: ${n}) {
120
120
  .p-dialog[${this.id}] {
121
121
  width: ${this.breakpoints[n]} !important;
122
122
  }
123
123
  }
124
- `;this.styleElement.innerHTML=e,J(this.styleElement,"nonce",this.config?.csp()?.nonce)}}close(){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(K.CANCEL),this.hide(K.CANCEL)}hide(e){this.onHide.emit(e),this.visible=!1,this.unsubscribeConfirmationEvents()}onDialogHide(){this.confirmation=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}onDestroy(){this.subscription.unsubscribe(),this.unsubscribeConfirmationEvents(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}onVisibleChange(e){e?this.visible=e:this.close()}onAccept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(K.ACCEPT)}onReject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(K.REJECT),this.hide(K.REJECT)}unsubscribeConfirmationEvents(){this.confirmation&&(this.confirmation.acceptEvent?.unsubscribe(),this.confirmation.rejectEvent?.unsubscribe())}get acceptButtonLabel(){return this.option("acceptLabel")||this.getAcceptButtonProps()?.label||this.config.getTranslation(U.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.getRejectButtonProps()?.label||this.config.getTranslation(U.REJECT)}getAcceptButtonProps(){return this.option("acceptButtonProps")}getRejectButtonProps(){return this.option("rejectButtonProps")}static \u0275fac=function(n){return new(n||t)(ke(it),ke(me))};static \u0275cmp=O({type:t,selectors:[["p-confirmDialog"],["p-confirmdialog"],["p-confirm-dialog"]],contentQueries:function(n,i,a){if(n&1&&he(a,ot,5)(a,ui,4)(a,fi,4)(a,gi,4)(a,hi,4)(a,Ci,4)(a,bi,4)(a,yi,4)(a,Ie,4),n&2){let r;m(r=_())&&(i.footer=r.first),m(r=_())&&(i.headerTemplate=r.first),m(r=_())&&(i.footerTemplate=r.first),m(r=_())&&(i.rejectIconTemplate=r.first),m(r=_())&&(i.acceptIconTemplate=r.first),m(r=_())&&(i.messageTemplate=r.first),m(r=_())&&(i.iconTemplate=r.first),m(r=_())&&(i.headlessTemplate=r.first),m(r=_())&&(i.templates=r)}},inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[2,"acceptVisible","acceptVisible",d],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[2,"rejectVisible","rejectVisible",d],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],blockScroll:[2,"blockScroll","blockScroll",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],appendTo:[1,"appendTo"],key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",G],transitionOptions:"transitionOptions",focusTrap:[2,"focusTrap","focusTrap",d],defaultFocus:"defaultFocus",breakpoints:"breakpoints",modal:[2,"modal","modal",d],visible:"visible",position:"position",draggable:[2,"draggable","draggable",d]},outputs:{onHide:"onHide"},features:[Ce([Ct,{provide:bt,useExisting:t},{provide:ze,useExisting:t}]),ue([k]),z],ngContentSelectors:Ti,decls:6,vars:19,consts:[["dialog",""],["footer",""],["headless",""],["content",""],["header",""],["icon",""],["role","alertdialog",3,"visibleChange","onHide","pt","visible","closable","styleClass","modal","header","closeOnEscape","blockScroll","appendTo","position","dismissableMask","draggable","baseZIndex","autoZIndex","maskStyleClass","unstyled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[3,"ngClass","class","pBind"],[3,"class","pBind","innerHTML"],[3,"ngClass","class","pBind",4,"ngIf"],[3,"ngClass","pBind"],[3,"pBind","innerHTML"],[3,"pt","label","styleClass","ariaLabel","buttonProps","unstyled","onClick",4,"ngIf"],[3,"onClick","pt","label","styleClass","ariaLabel","buttonProps","unstyled"],[3,"class","pBind"],[3,"class","pBind",4,"ngIf"],[3,"pBind"]],template:function(n,i){n&1&&(ge(xi),u(0,"p-dialog",6,0),I("visibleChange",function(r){return i.onVisibleChange(r)})("onHide",function(){return i.onDialogHide()}),x(2,zi,2,0)(3,Pi,3,1),c(4,on,2,2,"ng-template",null,1,D),C()),n&2&&(se(i.style),s("pt",i.pt)("visible",i.visible)("closable",i.option("closable"))("styleClass",i.cn(i.cx("root"),i.styleClass))("modal",i.option("modal"))("header",i.option("header"))("closeOnEscape",i.option("closeOnEscape"))("blockScroll",i.option("blockScroll"))("appendTo",i.$appendTo())("position",i.position)("dismissableMask",i.dismissableMask)("draggable",i.draggable)("baseZIndex",i.baseZIndex)("autoZIndex",i.autoZIndex)("maskStyleClass",i.cn(i.cx("mask"),i.maskStyleClass))("unstyled",i.unstyled()),p(2),T(i.headlessTemplate||i._headlessTemplate?2:3))},dependencies:[ve,ye,xe,Te,Me,He,V,k],encapsulation:2,changeDetection:0})}return t})(),xo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=oe({type:t});static \u0275inj=ne({imports:[sn,V,V]})}return t})();var yt=class t{sanitizer=f(Ge);libsPromise=null;async render(o){let e=await this.loadLibs(),n=e.md.render(o),i=e.purify.sanitize(n);return this.sanitizer.bypassSecurityTrustHtml(i)}async renderToHtml(o){let e=await this.loadLibs(),n=e.md.render(o);return e.purify.sanitize(n)}loadLibs(){return this.libsPromise||(this.libsPromise=ln()),this.libsPromise}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};async function ln(){let[t,o]=await Promise.all([import("./chunk-STE4Z72W.js"),import("./chunk-N2C45VIA.js")]),e=t.default,n=new e({html:!1,linkify:!0}),i=o.default;return{md:n,purify:i}}export{He as a,Wn as b,sn as c,xo as d,yt as e};
124
+ `;this.styleElement.innerHTML=e,K(this.styleElement,"nonce",this.config?.csp()?.nonce)}}close(){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(U.CANCEL),this.hide(U.CANCEL)}hide(e){this.onHide.emit(e),this.visible=!1,this.unsubscribeConfirmationEvents()}onDialogHide(){this.confirmation=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}onDestroy(){this.subscription.unsubscribe(),this.unsubscribeConfirmationEvents(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}onVisibleChange(e){e?this.visible=e:this.close()}onAccept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(U.ACCEPT)}onReject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(U.REJECT),this.hide(U.REJECT)}unsubscribeConfirmationEvents(){this.confirmation&&(this.confirmation.acceptEvent?.unsubscribe(),this.confirmation.rejectEvent?.unsubscribe())}get acceptButtonLabel(){return this.option("acceptLabel")||this.getAcceptButtonProps()?.label||this.config.getTranslation(ee.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.getRejectButtonProps()?.label||this.config.getTranslation(ee.REJECT)}getAcceptButtonProps(){return this.option("acceptButtonProps")}getRejectButtonProps(){return this.option("rejectButtonProps")}static \u0275fac=function(n){return new(n||t)(ke(nt),ke(_e))};static \u0275cmp=V({type:t,selectors:[["p-confirmDialog"],["p-confirmdialog"],["p-confirm-dialog"]],contentQueries:function(n,i,a){if(n&1&&he(a,at,5)(a,hi,4)(a,Ci,4)(a,bi,4)(a,yi,4)(a,xi,4)(a,Ti,4)(a,vi,4)(a,Ie,4),n&2){let r;m(r=_())&&(i.footer=r.first),m(r=_())&&(i.headerTemplate=r.first),m(r=_())&&(i.footerTemplate=r.first),m(r=_())&&(i.rejectIconTemplate=r.first),m(r=_())&&(i.acceptIconTemplate=r.first),m(r=_())&&(i.messageTemplate=r.first),m(r=_())&&(i.iconTemplate=r.first),m(r=_())&&(i.headlessTemplate=r.first),m(r=_())&&(i.templates=r)}},inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[2,"acceptVisible","acceptVisible",d],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[2,"rejectVisible","rejectVisible",d],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[2,"closeOnEscape","closeOnEscape",d],dismissableMask:[2,"dismissableMask","dismissableMask",d],blockScroll:[2,"blockScroll","blockScroll",d],rtl:[2,"rtl","rtl",d],closable:[2,"closable","closable",d],appendTo:[1,"appendTo"],key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",d],baseZIndex:[2,"baseZIndex","baseZIndex",J],transitionOptions:"transitionOptions",focusTrap:[2,"focusTrap","focusTrap",d],defaultFocus:"defaultFocus",breakpoints:"breakpoints",modal:[2,"modal","modal",d],visible:"visible",position:"position",draggable:[2,"draggable","draggable",d]},outputs:{onHide:"onHide"},features:[Ce([bt,{provide:yt,useExisting:t},{provide:ze,useExisting:t}]),ue([k]),z],ngContentSelectors:Ii,decls:6,vars:19,consts:[["dialog",""],["footer",""],["headless",""],["content",""],["header",""],["icon",""],["role","alertdialog",3,"visibleChange","onHide","pt","visible","closable","styleClass","modal","header","closeOnEscape","blockScroll","appendTo","position","dismissableMask","draggable","baseZIndex","autoZIndex","maskStyleClass","unstyled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[3,"ngClass","class","pBind"],[3,"class","pBind","innerHTML"],[3,"ngClass","class","pBind",4,"ngIf"],[3,"ngClass","pBind"],[3,"pBind","innerHTML"],[3,"pt","label","styleClass","ariaLabel","buttonProps","unstyled","onClick",4,"ngIf"],[3,"onClick","pt","label","styleClass","ariaLabel","buttonProps","unstyled"],[3,"class","pBind"],[3,"class","pBind",4,"ngIf"],[3,"pBind"]],template:function(n,i){n&1&&(ge(Ei),u(0,"p-dialog",6,0),I("visibleChange",function(r){return i.onVisibleChange(r)})("onHide",function(){return i.onDialogHide()}),x(2,ki,2,0)(3,$i,3,1),c(4,ln,2,2,"ng-template",null,1,D),C()),n&2&&(re(i.style),s("pt",i.pt)("visible",i.visible)("closable",i.option("closable"))("styleClass",i.cn(i.cx("root"),i.styleClass))("modal",i.option("modal"))("header",i.option("header"))("closeOnEscape",i.option("closeOnEscape"))("blockScroll",i.option("blockScroll"))("appendTo",i.$appendTo())("position",i.position)("dismissableMask",i.dismissableMask)("draggable",i.draggable)("baseZIndex",i.baseZIndex)("autoZIndex",i.autoZIndex)("maskStyleClass",i.cn(i.cx("mask"),i.maskStyleClass))("unstyled",i.unstyled()),p(2),T(i.headlessTemplate||i._headlessTemplate?2:3))},dependencies:[ve,ye,xe,Te,Me,He,H,k],encapsulation:2,changeDetection:0})}return t})(),wo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=se({type:t});static \u0275inj=ae({imports:[cn,H,H]})}return t})();var je="segment",pn=["segment","straight","bezier","adaptive-curve"],Tt="sm.graph.connection-type",xt=class t{_connectionType=Z(dn());connectionType=this._connectionType.asReadonly();setConnectionType(o){this._connectionType()!==o&&(this._connectionType.set(o),mn(o))}static toFoblexEnum(o){return o}static \u0275fac=function(e){return new(e||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})};function dn(){let t=null;try{t=localStorage.getItem(Tt)}catch{return je}return t&&_n(t)?t:je}function mn(t){try{localStorage.setItem(Tt,t)}catch{}}function _n(t){return typeof t=="string"&&pn.includes(t)}var vt=class t{sanitizer=f(Je);libsPromise=null;async render(o){let e=await this.loadLibs(),n=e.md.render(o),i=e.purify.sanitize(n);return this.sanitizer.bypassSecurityTrustHtml(i)}async renderToHtml(o){let e=await this.loadLibs(),n=e.md.render(o);return e.purify.sanitize(n)}loadLibs(){return this.libsPromise||(this.libsPromise=un()),this.libsPromise}static \u0275fac=function(e){return new(e||t)};static \u0275prov=A({token:t,factory:t.\u0275fac,providedIn:"root"})};async function un(){let[t,o]=await Promise.all([import("./chunk-RIDAAD4I.js"),import("./chunk-N2C45VIA.js")]),e=t.default,n=new e({html:!1,linkify:!0}),i=o.default;return{md:n,purify:i}}export{He as a,io as b,cn as c,wo as d,pn as e,xt as f,vt as g};
@@ -13,4 +13,4 @@ import{d as ou}from"./chunk-Q7L6LLAK.js";var Mu={};ou(Mu,{arrayReplaceAt:()=>Bu,
13
13
  `:">",c};Q.prototype.renderInline=function(u,e,r){let n="",t=this.rules;for(let c=0,i=u.length;c<i;c++){let o=u[c].type;typeof t[o]<"u"?n+=t[o](u,c,e,r,this):n+=this.renderToken(u,c,e)}return n};Q.prototype.renderInlineAsText=function(u,e,r){let n="";for(let t=0,c=u.length;t<c;t++)switch(u[t].type){case"text":n+=u[t].content;break;case"image":n+=this.renderInlineAsText(u[t].children,e,r);break;case"html_inline":case"html_block":n+=u[t].content;break;case"softbreak":case"hardbreak":n+=`
14
14
  `;break;default:}return n};Q.prototype.render=function(u,e,r){let n="",t=this.rules;for(let c=0,i=u.length;c<i;c++){let o=u[c].type;o==="inline"?n+=this.renderInline(u[c].children,e,r):typeof t[o]<"u"?n+=t[o](u,c,e,r,this):n+=this.renderToken(u,c,e,r)}return n};var $0=Q;function T(){this.__rules__=[],this.__cache__=null}T.prototype.__find__=function(u){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===u)return e;return-1};T.prototype.__compile__=function(){let u=this,e=[""];u.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),u.__cache__={},e.forEach(function(r){u.__cache__[r]=[],u.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||u.__cache__[r].push(n.fn))})})};T.prototype.at=function(u,e,r){let n=this.__find__(u),t=r||{};if(n===-1)throw new Error("Parser rule not found: "+u);this.__rules__[n].fn=e,this.__rules__[n].alt=t.alt||[],this.__cache__=null};T.prototype.before=function(u,e,r,n){let t=this.__find__(u),c=n||{};if(t===-1)throw new Error("Parser rule not found: "+u);this.__rules__.splice(t,0,{name:e,enabled:!0,fn:r,alt:c.alt||[]}),this.__cache__=null};T.prototype.after=function(u,e,r,n){let t=this.__find__(u),c=n||{};if(t===-1)throw new Error("Parser rule not found: "+u);this.__rules__.splice(t+1,0,{name:e,enabled:!0,fn:r,alt:c.alt||[]}),this.__cache__=null};T.prototype.push=function(u,e,r){let n=r||{};this.__rules__.push({name:u,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};T.prototype.enable=function(u,e){Array.isArray(u)||(u=[u]);let r=[];return u.forEach(function(n){let t=this.__find__(n);if(t<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[t].enabled=!0,r.push(n)},this),this.__cache__=null,r};T.prototype.enableOnly=function(u,e){Array.isArray(u)||(u=[u]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(u,e)};T.prototype.disable=function(u,e){Array.isArray(u)||(u=[u]);let r=[];return u.forEach(function(n){let t=this.__find__(n);if(t<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[t].enabled=!1,r.push(n)},this),this.__cache__=null,r};T.prototype.getRules=function(u){return this.__cache__===null&&this.__compile__(),this.__cache__[u]||[]};var $=T;function Y(u,e,r){this.type=u,this.tag=e,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}Y.prototype.attrIndex=function(e){if(!this.attrs)return-1;let r=this.attrs;for(let n=0,t=r.length;n<t;n++)if(r[n][0]===e)return n;return-1};Y.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Y.prototype.attrSet=function(e,r){let n=this.attrIndex(e),t=[e,r];n<0?this.attrPush(t):this.attrs[n]=t};Y.prototype.attrGet=function(e){let r=this.attrIndex(e),n=null;return r>=0&&(n=this.attrs[r][1]),n};Y.prototype.attrJoin=function(e,r){let n=this.attrIndex(e);n<0?this.attrPush([e,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};var z=Y;function G0(u,e,r){this.src=u,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}G0.prototype.Token=z;var W0=G0;var mr=/\r\n?|\n/g,xr=/\0/g;function Nu(u){let e;e=u.src.replace(mr,`
15
15
  `),e=e.replace(xr,"\uFFFD"),u.src=e}function Ou(u){let e;u.inlineMode?(e=new u.Token("inline","",0),e.content=u.src,e.map=[0,1],e.children=[],u.tokens.push(e)):u.md.block.parse(u.src,u.md,u.env,u.tokens)}function Hu(u){let e=u.tokens;for(let r=0,n=e.length;r<n;r++){let t=e[r];t.type==="inline"&&u.md.inline.parse(t.content,u.md,u.env,t.children)}}function _r(u){return/^<a[>\s]/i.test(u)}function gr(u){return/^<\/a\s*>/i.test(u)}function Uu(u){let e=u.tokens;if(u.md.options.linkify)for(let r=0,n=e.length;r<n;r++){if(e[r].type!=="inline"||!u.md.linkify.pretest(e[r].content))continue;let t=e[r].children,c=0;for(let i=t.length-1;i>=0;i--){let o=t[i];if(o.type==="link_close"){for(i--;t[i].level!==o.level&&t[i].type!=="link_open";)i--;continue}if(o.type==="html_inline"&&(_r(o.content)&&c>0&&c--,gr(o.content)&&c++),!(c>0)&&o.type==="text"&&u.md.linkify.test(o.content)){let a=o.content,s=u.md.linkify.match(a),l=[],d=o.level,b=0;s.length>0&&s[0].index===0&&i>0&&t[i-1].type==="text_special"&&(s=s.slice(1));for(let p=0;p<s.length;p++){let f=s[p].url,g=u.md.normalizeLink(f);if(!u.md.validateLink(g))continue;let D=s[p].text;s[p].schema?s[p].schema==="mailto:"&&!/^mailto:/i.test(D)?D=u.md.normalizeLinkText("mailto:"+D).replace(/^mailto:/,""):D=u.md.normalizeLinkText(D):D=u.md.normalizeLinkText("http://"+D).replace(/^http:\/\//,"");let E=s[p].index;if(E>b){let _=new u.Token("text","",0);_.content=a.slice(b,E),_.level=d,l.push(_)}let h=new u.Token("link_open","a",1);h.attrs=[["href",g]],h.level=d++,h.markup="linkify",h.info="auto",l.push(h);let x=new u.Token("text","",0);x.content=D,x.level=d,l.push(x);let m=new u.Token("link_close","a",-1);m.level=--d,m.markup="linkify",m.info="auto",l.push(m),b=s[p].lastIndex}if(b<a.length){let p=new u.Token("text","",0);p.content=a.slice(b),p.level=d,l.push(p)}e[r].children=t=Bu(t,i,l)}}}}var J0=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,kr=/\((c|tm|r)\)/i,Dr=/\((c|tm|r)\)/ig,Cr={c:"\xA9",r:"\xAE",tm:"\u2122"};function Er(u,e){return Cr[e.toLowerCase()]}function Ar(u){let e=0;for(let r=u.length-1;r>=0;r--){let n=u[r];n.type==="text"&&!e&&(n.content=n.content.replace(Dr,Er)),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function yr(u){let e=0;for(let r=u.length-1;r>=0;r--){let n=u[r];n.type==="text"&&!e&&J0.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function ju(u){let e;if(u.md.options.typographer)for(e=u.tokens.length-1;e>=0;e--)u.tokens[e].type==="inline"&&(kr.test(u.tokens[e].content)&&Ar(u.tokens[e].children),J0.test(u.tokens[e].content)&&yr(u.tokens[e].children))}var Fr=/['"]/,X0=/['"]/g,Q0="\u2019";function ku(u,e,r){return u.slice(0,e)+r+u.slice(e+1)}function wr(u,e){let r,n=[];for(let t=0;t<u.length;t++){let c=u[t],i=u[t].level;for(r=n.length-1;r>=0&&!(n[r].level<=i);r--);if(n.length=r+1,c.type!=="text")continue;let o=c.content,a=0,s=o.length;u:for(;a<s;){X0.lastIndex=a;let l=X0.exec(o);if(!l)break;let d=!0,b=!0;a=l.index+1;let p=l[0]==="'",f=32;if(l.index-1>=0)f=o.charCodeAt(l.index-1);else for(r=t-1;r>=0&&!(u[r].type==="softbreak"||u[r].type==="hardbreak");r--)if(u[r].content){f=u[r].content.charCodeAt(u[r].content.length-1);break}let g=32;if(a<s)g=o.charCodeAt(a);else for(r=t+1;r<u.length&&!(u[r].type==="softbreak"||u[r].type==="hardbreak");r++)if(u[r].content){g=u[r].content.charCodeAt(0);break}let D=V(f)||j(String.fromCharCode(f)),E=V(g)||j(String.fromCharCode(g)),h=U(f),x=U(g);if(x?d=!1:E&&(h||D||(d=!1)),h?b=!1:D&&(x||E||(b=!1)),g===34&&l[0]==='"'&&f>=48&&f<=57&&(b=d=!1),d&&b&&(d=D,b=E),!d&&!b){p&&(c.content=ku(c.content,l.index,Q0));continue}if(b)for(r=n.length-1;r>=0;r--){let m=n[r];if(n[r].level<i)break;if(m.single===p&&n[r].level===i){m=n[r];let _,C;p?(_=e.md.options.quotes[2],C=e.md.options.quotes[3]):(_=e.md.options.quotes[0],C=e.md.options.quotes[1]),c.content=ku(c.content,l.index,C),u[m.token].content=ku(u[m.token].content,m.pos,_),a+=C.length-1,m.token===t&&(a+=_.length-1),o=c.content,s=o.length,n.length=r;continue u}}d?n.push({token:t,pos:l.index,single:p,level:i}):b&&p&&(c.content=ku(c.content,l.index,Q0))}}}function Vu(u){if(u.md.options.typographer)for(let e=u.tokens.length-1;e>=0;e--)u.tokens[e].type!=="inline"||!Fr.test(u.tokens[e].content)||wr(u.tokens[e].children,u)}function Zu(u){let e,r,n=u.tokens,t=n.length;for(let c=0;c<t;c++){if(n[c].type!=="inline")continue;let i=n[c].children,o=i.length;for(e=0;e<o;e++)i[e].type==="text_special"&&(i[e].type="text");for(e=r=0;e<o;e++)i[e].type==="text"&&e+1<o&&i[e+1].type==="text"?i[e+1].content=i[e].content+i[e+1].content:(e!==r&&(i[r]=i[e]),r++);e!==r&&(i.length=r)}}var $u=[["normalize",Nu],["block",Ou],["inline",Hu],["linkify",Uu],["replacements",ju],["smartquotes",Vu],["text_join",Zu]];function Gu(){this.ruler=new $;for(let u=0;u<$u.length;u++)this.ruler.push($u[u][0],$u[u][1])}Gu.prototype.process=function(u){let e=this.ruler.getRules("");for(let r=0,n=e.length;r<n;r++)e[r](u)};Gu.prototype.State=W0;var Y0=Gu;function q(u,e,r,n){this.src=u,this.md=e,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 t=this.src;for(let c=0,i=0,o=0,a=0,s=t.length,l=!1;i<s;i++){let d=t.charCodeAt(i);if(!l)if(k(d)){o++,d===9?a+=4-a%4:a++;continue}else l=!0;(d===10||i===s-1)&&(d!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(o),this.sCount.push(a),this.bsCount.push(0),l=!1,o=0,a=0,c=i+1)}this.bMarks.push(t.length),this.eMarks.push(t.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}q.prototype.push=function(u,e,r){let n=new z(u,e,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n};q.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};q.prototype.skipEmptyLines=function(e){for(let r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};q.prototype.skipSpaces=function(e){for(let r=this.src.length;e<r;e++){let n=this.src.charCodeAt(e);if(!k(n))break}return e};q.prototype.skipSpacesBack=function(e,r){if(e<=r)return e;for(;e>r;)if(!k(this.src.charCodeAt(--e)))return e+1;return e};q.prototype.skipChars=function(e,r){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e};q.prototype.skipCharsBack=function(e,r,n){if(e<=n)return e;for(;e>n;)if(r!==this.src.charCodeAt(--e))return e+1;return e};q.prototype.getLines=function(e,r,n,t){if(e>=r)return"";let c=new Array(r-e);for(let i=0,o=e;o<r;o++,i++){let a=0,s=this.bMarks[o],l=s,d;for(o+1<r||t?d=this.eMarks[o]+1:d=this.eMarks[o];l<d&&a<n;){let b=this.src.charCodeAt(l);if(k(b))b===9?a+=4-(a+this.bsCount[o])%4:a++;else if(l-s<this.tShift[o])a++;else break;l++}a>n?c[i]=new Array(a-n+1).join(" ")+this.src.slice(l,d):c[i]=this.src.slice(l,d)}return c.join("")};q.prototype.Token=z;var K0=q;var vr=65536;function Wu(u,e){let r=u.bMarks[e]+u.tShift[e],n=u.eMarks[e];return u.src.slice(r,n)}function ue(u){let e=[],r=u.length,n=0,t=u.charCodeAt(n),c=!1,i=0,o="";for(;n<r;)t===124&&(c?(o+=u.substring(i,n-1),i=n):(e.push(o+u.substring(i,n)),o="",i=n+1)),c=t===92,n++,t=u.charCodeAt(n);return e.push(o+u.substring(i)),e}function Ju(u,e,r,n){if(e+2>r)return!1;let t=e+1;if(u.sCount[t]<u.blkIndent||u.sCount[t]-u.blkIndent>=4)return!1;let c=u.bMarks[t]+u.tShift[t];if(c>=u.eMarks[t])return!1;let i=u.src.charCodeAt(c++);if(i!==124&&i!==45&&i!==58||c>=u.eMarks[t])return!1;let o=u.src.charCodeAt(c++);if(o!==124&&o!==45&&o!==58&&!k(o)||i===45&&k(o))return!1;for(;c<u.eMarks[t];){let m=u.src.charCodeAt(c);if(m!==124&&m!==45&&m!==58&&!k(m))return!1;c++}let a=Wu(u,e+1),s=a.split("|"),l=[];for(let m=0;m<s.length;m++){let _=s[m].trim();if(!_){if(m===0||m===s.length-1)continue;return!1}if(!/^:?-+:?$/.test(_))return!1;_.charCodeAt(_.length-1)===58?l.push(_.charCodeAt(0)===58?"center":"right"):_.charCodeAt(0)===58?l.push("left"):l.push("")}if(a=Wu(u,e).trim(),a.indexOf("|")===-1||u.sCount[e]-u.blkIndent>=4)return!1;s=ue(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop();let d=s.length;if(d===0||d!==l.length)return!1;if(n)return!0;let b=u.parentType;u.parentType="table";let p=u.md.block.ruler.getRules("blockquote"),f=u.push("table_open","table",1),g=[e,0];f.map=g;let D=u.push("thead_open","thead",1);D.map=[e,e+1];let E=u.push("tr_open","tr",1);E.map=[e,e+1];for(let m=0;m<s.length;m++){let _=u.push("th_open","th",1);l[m]&&(_.attrs=[["style","text-align:"+l[m]]]);let C=u.push("inline","",0);C.content=s[m].trim(),C.children=[],u.push("th_close","th",-1)}u.push("tr_close","tr",-1),u.push("thead_close","thead",-1);let h,x=0;for(t=e+2;t<r&&!(u.sCount[t]<u.blkIndent);t++){let m=!1;for(let C=0,A=p.length;C<A;C++)if(p[C](u,t,r,!0)){m=!0;break}if(m||(a=Wu(u,t).trim(),!a)||u.sCount[t]-u.blkIndent>=4||(s=ue(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop(),x+=d-s.length,x>vr))break;if(t===e+2){let C=u.push("tbody_open","tbody",1);C.map=h=[e+2,0]}let _=u.push("tr_open","tr",1);_.map=[t,t+1];for(let C=0;C<d;C++){let A=u.push("td_open","td",1);l[C]&&(A.attrs=[["style","text-align:"+l[C]]]);let S=u.push("inline","",0);S.content=s[C]?s[C].trim():"",S.children=[],u.push("td_close","td",-1)}u.push("tr_close","tr",-1)}return h&&(u.push("tbody_close","tbody",-1),h[1]=t),u.push("table_close","table",-1),g[1]=t,u.parentType=b,u.line=t,!0}function Xu(u,e,r){if(u.sCount[e]-u.blkIndent<4)return!1;let n=e+1,t=n;for(;n<r;){if(u.isEmpty(n)){n++;continue}if(u.sCount[n]-u.blkIndent>=4){n++,t=n;continue}break}u.line=t;let c=u.push("code_block","code",0);return c.content=u.getLines(e,t,4+u.blkIndent,!1)+`
16
- `,c.map=[e,u.line],!0}function Qu(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||t+3>c)return!1;let i=u.src.charCodeAt(t);if(i!==126&&i!==96)return!1;let o=t;t=u.skipChars(t,i);let a=t-o;if(a<3)return!1;let s=u.src.slice(o,t),l=u.src.slice(t,c);if(i===96&&l.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;let d=e,b=!1;for(;d++,!(d>=r||(t=o=u.bMarks[d]+u.tShift[d],c=u.eMarks[d],t<c&&u.sCount[d]<u.blkIndent));)if(u.src.charCodeAt(t)===i&&!(u.sCount[d]-u.blkIndent>=4)&&(t=u.skipChars(t,i),!(t-o<a)&&(t=u.skipSpaces(t),!(t<c)))){b=!0;break}a=u.sCount[e],u.line=d+(b?1:0);let p=u.push("fence","code",0);return p.info=l,p.content=u.getLines(e+1,d,a,!0),p.markup=s,p.map=[e,u.line],!0}function Yu(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e],i=u.lineMax;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(t)!==62)return!1;if(n)return!0;let o=[],a=[],s=[],l=[],d=u.md.block.ruler.getRules("blockquote"),b=u.parentType;u.parentType="blockquote";let p=!1,f;for(f=e;f<r;f++){let x=u.sCount[f]<u.blkIndent;if(t=u.bMarks[f]+u.tShift[f],c=u.eMarks[f],t>=c)break;if(u.src.charCodeAt(t++)===62&&!x){let _=u.sCount[f]+1,C,A;u.src.charCodeAt(t)===32?(t++,_++,A=!1,C=!0):u.src.charCodeAt(t)===9?(C=!0,(u.bsCount[f]+_)%4===3?(t++,_++,A=!1):A=!0):C=!1;let S=_;for(o.push(u.bMarks[f]),u.bMarks[f]=t;t<c;){let P=u.src.charCodeAt(t);if(k(P))P===9?S+=4-(S+u.bsCount[f]+(A?1:0))%4:S++;else break;t++}p=t>=c,a.push(u.bsCount[f]),u.bsCount[f]=u.sCount[f]+1+(C?1:0),s.push(u.sCount[f]),u.sCount[f]=S-_,l.push(u.tShift[f]),u.tShift[f]=t-u.bMarks[f];continue}if(p)break;let m=!1;for(let _=0,C=d.length;_<C;_++)if(d[_](u,f,r,!0)){m=!0;break}if(m){u.lineMax=f,u.blkIndent!==0&&(o.push(u.bMarks[f]),a.push(u.bsCount[f]),l.push(u.tShift[f]),s.push(u.sCount[f]),u.sCount[f]-=u.blkIndent);break}o.push(u.bMarks[f]),a.push(u.bsCount[f]),l.push(u.tShift[f]),s.push(u.sCount[f]),u.sCount[f]=-1}let g=u.blkIndent;u.blkIndent=0;let D=u.push("blockquote_open","blockquote",1);D.markup=">";let E=[e,0];D.map=E,u.md.block.tokenize(u,e,f);let h=u.push("blockquote_close","blockquote",-1);h.markup=">",u.lineMax=i,u.parentType=b,E[1]=u.line;for(let x=0;x<l.length;x++)u.bMarks[x+e]=o[x],u.tShift[x+e]=l[x],u.sCount[x+e]=s[x],u.bsCount[x+e]=a[x];return u.blkIndent=g,!0}function Ku(u,e,r,n){let t=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4)return!1;let c=u.bMarks[e]+u.tShift[e],i=u.src.charCodeAt(c++);if(i!==42&&i!==45&&i!==95)return!1;let o=1;for(;c<t;){let s=u.src.charCodeAt(c++);if(s!==i&&!k(s))return!1;s===i&&o++}if(o<3)return!1;if(n)return!0;u.line=e+1;let a=u.push("hr","hr",0);return a.map=[e,u.line],a.markup=Array(o+1).join(String.fromCharCode(i)),!0}function ee(u,e){let r=u.eMarks[e],n=u.bMarks[e]+u.tShift[e],t=u.src.charCodeAt(n++);if(t!==42&&t!==45&&t!==43)return-1;if(n<r){let c=u.src.charCodeAt(n);if(!k(c))return-1}return n}function re(u,e){let r=u.bMarks[e]+u.tShift[e],n=u.eMarks[e],t=r;if(t+1>=n)return-1;let c=u.src.charCodeAt(t++);if(c<48||c>57)return-1;for(;;){if(t>=n)return-1;if(c=u.src.charCodeAt(t++),c>=48&&c<=57){if(t-r>=10)return-1;continue}if(c===41||c===46)break;return-1}return t<n&&(c=u.src.charCodeAt(t),!k(c))?-1:t}function Sr(u,e){let r=u.level+2;for(let n=e+2,t=u.tokens.length-2;n<t;n++)u.tokens[n].level===r&&u.tokens[n].type==="paragraph_open"&&(u.tokens[n+2].hidden=!0,u.tokens[n].hidden=!0,n+=2)}function u0(u,e,r,n){let t,c,i,o,a=e,s=!0;if(u.sCount[a]-u.blkIndent>=4||u.listIndent>=0&&u.sCount[a]-u.listIndent>=4&&u.sCount[a]<u.blkIndent)return!1;let l=!1;n&&u.parentType==="paragraph"&&u.sCount[a]>=u.blkIndent&&(l=!0);let d,b,p;if((p=re(u,a))>=0){if(d=!0,i=u.bMarks[a]+u.tShift[a],b=Number(u.src.slice(i,p-1)),l&&b!==1)return!1}else if((p=ee(u,a))>=0)d=!1;else return!1;if(l&&u.skipSpaces(p)>=u.eMarks[a])return!1;if(n)return!0;let f=u.src.charCodeAt(p-1),g=u.tokens.length;d?(o=u.push("ordered_list_open","ol",1),b!==1&&(o.attrs=[["start",b]])):o=u.push("bullet_list_open","ul",1);let D=[a,0];o.map=D,o.markup=String.fromCharCode(f);let E=!1,h=u.md.block.ruler.getRules("list"),x=u.parentType;for(u.parentType="list";a<r;){c=p,t=u.eMarks[a];let m=u.sCount[a]+p-(u.bMarks[a]+u.tShift[a]),_=m;for(;c<t;){let G=u.src.charCodeAt(c);if(G===9)_+=4-(_+u.bsCount[a])%4;else if(G===32)_++;else break;c++}let C=c,A;C>=t?A=1:A=_-m,A>4&&(A=1);let S=m+A;o=u.push("list_item_open","li",1),o.markup=String.fromCharCode(f);let P=[a,0];o.map=P,d&&(o.info=u.src.slice(i,p-1));let uu=u.tight,yu=u.tShift[a],Se=u.sCount[a],Te=u.listIndent;if(u.listIndent=u.blkIndent,u.blkIndent=S,u.tight=!0,u.tShift[a]=C-u.bMarks[a],u.sCount[a]=_,C>=t&&u.isEmpty(a+1)?u.line=Math.min(u.line+2,r):u.md.block.tokenize(u,a,r,!0),(!u.tight||E)&&(s=!1),E=u.line-a>1&&u.isEmpty(u.line-1),u.blkIndent=u.listIndent,u.listIndent=Te,u.tShift[a]=yu,u.sCount[a]=Se,u.tight=uu,o=u.push("list_item_close","li",-1),o.markup=String.fromCharCode(f),a=u.line,P[1]=a,a>=r||u.sCount[a]<u.blkIndent||u.sCount[a]-u.blkIndent>=4)break;let v0=!1;for(let G=0,Le=h.length;G<Le;G++)if(h[G](u,a,r,!0)){v0=!0;break}if(v0)break;if(d){if(p=re(u,a),p<0)break;i=u.bMarks[a]+u.tShift[a]}else if(p=ee(u,a),p<0)break;if(f!==u.src.charCodeAt(p-1))break}return d?o=u.push("ordered_list_close","ol",-1):o=u.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(f),D[1]=a,u.line=a,u.parentType=x,s&&Sr(u,g),!0}function e0(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e],i=e+1;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(t)!==91)return!1;function o(h){let x=u.lineMax;if(h>=x||u.isEmpty(h))return null;let m=!1;if(u.sCount[h]-u.blkIndent>3&&(m=!0),u.sCount[h]<0&&(m=!0),!m){let A=u.md.block.ruler.getRules("reference"),S=u.parentType;u.parentType="reference";let P=!1;for(let uu=0,yu=A.length;uu<yu;uu++)if(A[uu](u,h,x,!0)){P=!0;break}if(u.parentType=S,P)return null}let _=u.bMarks[h]+u.tShift[h],C=u.eMarks[h];return u.src.slice(_,C+1)}let a=u.src.slice(t,c+1);c=a.length;let s=-1;for(t=1;t<c;t++){let h=a.charCodeAt(t);if(h===91)return!1;if(h===93){s=t;break}else if(h===10){let x=o(i);x!==null&&(a+=x,c=a.length,i++)}else if(h===92&&(t++,t<c&&a.charCodeAt(t)===10)){let x=o(i);x!==null&&(a+=x,c=a.length,i++)}}if(s<0||a.charCodeAt(s+1)!==58)return!1;for(t=s+2;t<c;t++){let h=a.charCodeAt(t);if(h===10){let x=o(i);x!==null&&(a+=x,c=a.length,i++)}else if(!k(h))break}let l=u.md.helpers.parseLinkDestination(a,t,c);if(!l.ok)return!1;let d=u.md.normalizeLink(l.str);if(!u.md.validateLink(d))return!1;t=l.pos;let b=t,p=i,f=t;for(;t<c;t++){let h=a.charCodeAt(t);if(h===10){let x=o(i);x!==null&&(a+=x,c=a.length,i++)}else if(!k(h))break}let g=u.md.helpers.parseLinkTitle(a,t,c);for(;g.can_continue;){let h=o(i);if(h===null)break;a+=h,t=c,c=a.length,i++,g=u.md.helpers.parseLinkTitle(a,t,c,g)}let D;for(t<c&&f!==t&&g.ok?(D=g.str,t=g.pos):(D="",t=b,i=p);t<c;){let h=a.charCodeAt(t);if(!k(h))break;t++}if(t<c&&a.charCodeAt(t)!==10&&D)for(D="",t=b,i=p;t<c;){let h=a.charCodeAt(t);if(!k(h))break;t++}if(t<c&&a.charCodeAt(t)!==10)return!1;let E=Z(a.slice(1,s));return E?(n||(typeof u.env.references>"u"&&(u.env.references={}),typeof u.env.references[E]>"u"&&(u.env.references[E]={title:D,href:d}),u.line=i),!0):!1}var te=["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"];var Tr="[a-zA-Z_:][a-zA-Z0-9:._-]*",Lr="[^\"'=<>`\\x00-\\x20]+",qr="'[^']*'",Br='"[^"]*"',Mr="(?:"+Lr+"|"+qr+"|"+Br+")",Rr="(?:\\s+"+Tr+"(?:\\s*=\\s*"+Mr+")?)",ne="<[A-Za-z][A-Za-z0-9\\-]*"+Rr+"*\\s*\\/?>",ce="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ir="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",zr="<[?][\\s\\S]*?[?]>",Pr="<![A-Za-z][^>]*>",Nr="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",oe=new RegExp("^(?:"+ne+"|"+ce+"|"+Ir+"|"+zr+"|"+Pr+"|"+Nr+")"),ie=new RegExp("^(?:"+ne+"|"+ce+")");var K=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+te.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(ie.source+"\\s*$"),/^$/,!1]];function r0(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||!u.md.options.html||u.src.charCodeAt(t)!==60)return!1;let i=u.src.slice(t,c),o=0;for(;o<K.length&&!K[o][0].test(i);o++);if(o===K.length)return!1;if(n)return K[o][2];let a=e+1;if(!K[o][1].test(i)){for(;a<r&&!(u.sCount[a]<u.blkIndent);a++)if(t=u.bMarks[a]+u.tShift[a],c=u.eMarks[a],i=u.src.slice(t,c),K[o][1].test(i)){i.length!==0&&a++;break}}u.line=a;let s=u.push("html_block","",0);return s.map=[e,a],s.content=u.getLines(e,a,u.blkIndent,!0),!0}function t0(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4)return!1;let i=u.src.charCodeAt(t);if(i!==35||t>=c)return!1;let o=1;for(i=u.src.charCodeAt(++t);i===35&&t<c&&o<=6;)o++,i=u.src.charCodeAt(++t);if(o>6||t<c&&!k(i))return!1;if(n)return!0;c=u.skipSpacesBack(c,t);let a=u.skipCharsBack(c,35,t);a>t&&k(u.src.charCodeAt(a-1))&&(c=a),u.line=e+1;let s=u.push("heading_open","h"+String(o),1);s.markup="########".slice(0,o),s.map=[e,u.line];let l=u.push("inline","",0);l.content=u.src.slice(t,c).trim(),l.map=[e,u.line],l.children=[];let d=u.push("heading_close","h"+String(o),-1);return d.markup="########".slice(0,o),!0}function n0(u,e,r){let n=u.md.block.ruler.getRules("paragraph");if(u.sCount[e]-u.blkIndent>=4)return!1;let t=u.parentType;u.parentType="paragraph";let c=0,i,o=e+1;for(;o<r&&!u.isEmpty(o);o++){if(u.sCount[o]-u.blkIndent>3)continue;if(u.sCount[o]>=u.blkIndent){let p=u.bMarks[o]+u.tShift[o],f=u.eMarks[o];if(p<f&&(i=u.src.charCodeAt(p),(i===45||i===61)&&(p=u.skipChars(p,i),p=u.skipSpaces(p),p>=f))){c=i===61?1:2;break}}if(u.sCount[o]<0)continue;let b=!1;for(let p=0,f=n.length;p<f;p++)if(n[p](u,o,r,!0)){b=!0;break}if(b)break}if(!c)return!1;let a=u.getLines(e,o,u.blkIndent,!1).trim();u.line=o+1;let s=u.push("heading_open","h"+String(c),1);s.markup=String.fromCharCode(i),s.map=[e,u.line];let l=u.push("inline","",0);l.content=a,l.map=[e,u.line-1],l.children=[];let d=u.push("heading_close","h"+String(c),-1);return d.markup=String.fromCharCode(i),u.parentType=t,!0}function c0(u,e,r){let n=u.md.block.ruler.getRules("paragraph"),t=u.parentType,c=e+1;for(u.parentType="paragraph";c<r&&!u.isEmpty(c);c++){if(u.sCount[c]-u.blkIndent>3||u.sCount[c]<0)continue;let s=!1;for(let l=0,d=n.length;l<d;l++)if(n[l](u,c,r,!0)){s=!0;break}if(s)break}let i=u.getLines(e,c,u.blkIndent,!1).trim();u.line=c;let o=u.push("paragraph_open","p",1);o.map=[e,u.line];let a=u.push("inline","",0);return a.content=i,a.map=[e,u.line],a.children=[],u.push("paragraph_close","p",-1),u.parentType=t,!0}var Du=[["table",Ju,["paragraph","reference"]],["code",Xu],["fence",Qu,["paragraph","reference","blockquote","list"]],["blockquote",Yu,["paragraph","reference","blockquote","list"]],["hr",Ku,["paragraph","reference","blockquote","list"]],["list",u0,["paragraph","reference","blockquote"]],["reference",e0],["html_block",r0,["paragraph","reference","blockquote"]],["heading",t0,["paragraph","reference","blockquote"]],["lheading",n0],["paragraph",c0]];function Cu(){this.ruler=new $;for(let u=0;u<Du.length;u++)this.ruler.push(Du[u][0],Du[u][1],{alt:(Du[u][2]||[]).slice()})}Cu.prototype.tokenize=function(u,e,r){let n=this.ruler.getRules(""),t=n.length,c=u.md.options.maxNesting,i=e,o=!1;for(;i<r&&(u.line=i=u.skipEmptyLines(i),!(i>=r||u.sCount[i]<u.blkIndent));){if(u.level>=c){u.line=r;break}let a=u.line,s=!1;for(let l=0;l<t;l++)if(s=n[l](u,i,r,!1),s){if(a>=u.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");u.tight=!o,u.isEmpty(u.line-1)&&(o=!0),i=u.line,i<r&&u.isEmpty(i)&&(o=!0,i++,u.line=i)}};Cu.prototype.parse=function(u,e,r,n){if(!u)return;let t=new this.State(u,e,r,n);this.tokenize(t,t.line,t.lineMax)};Cu.prototype.State=K0;var ae=Cu;function nu(u,e,r,n){this.src=u,this.env=r,this.md=e,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}nu.prototype.pushPending=function(){let u=new z("text","",0);return u.content=this.pending,u.level=this.pendingLevel,this.tokens.push(u),this.pending="",u};nu.prototype.push=function(u,e,r){this.pending&&this.pushPending();let n=new z(u,e,r),t=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=[],t={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(t),n};nu.prototype.scanDelims=function(u,e){let r=this.posMax,n=this.src.charCodeAt(u),t=u>0?this.src.charCodeAt(u-1):32,c=u;for(;c<r&&this.src.charCodeAt(c)===n;)c++;let i=c-u,o=c<r?this.src.charCodeAt(c):32,a=V(t)||j(String.fromCharCode(t)),s=V(o)||j(String.fromCharCode(o)),l=U(t),d=U(o),b=!d&&(!s||l||a),p=!l&&(!a||d||s);return{can_open:b&&(e||!p||a),can_close:p&&(e||!b||s),length:i}};nu.prototype.Token=z;var se=nu;function Or(u){switch(u){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}}function o0(u,e){let r=u.pos;for(;r<u.posMax&&!Or(u.src.charCodeAt(r));)r++;return r===u.pos?!1:(e||(u.pending+=u.src.slice(u.pos,r)),u.pos=r,!0)}var Hr=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function i0(u,e){if(!u.md.options.linkify||u.linkLevel>0)return!1;let r=u.pos,n=u.posMax;if(r+3>n||u.src.charCodeAt(r)!==58||u.src.charCodeAt(r+1)!==47||u.src.charCodeAt(r+2)!==47)return!1;let t=u.pending.match(Hr);if(!t)return!1;let c=t[1],i=u.md.linkify.matchAtStart(u.src.slice(r-c.length));if(!i)return!1;let o=i.url;if(o.length<=c.length)return!1;o=o.replace(/\*+$/,"");let a=u.md.normalizeLink(o);if(!u.md.validateLink(a))return!1;if(!e){u.pending=u.pending.slice(0,-c.length);let s=u.push("link_open","a",1);s.attrs=[["href",a]],s.markup="linkify",s.info="auto";let l=u.push("text","",0);l.content=u.md.normalizeLinkText(o);let d=u.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return u.pos+=o.length-c.length,!0}function a0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==10)return!1;let n=u.pending.length-1,t=u.posMax;if(!e)if(n>=0&&u.pending.charCodeAt(n)===32)if(n>=1&&u.pending.charCodeAt(n-1)===32){let c=n-1;for(;c>=1&&u.pending.charCodeAt(c-1)===32;)c--;u.pending=u.pending.slice(0,c),u.push("hardbreak","br",0)}else u.pending=u.pending.slice(0,-1),u.push("softbreak","br",0);else u.push("softbreak","br",0);for(r++;r<t&&k(u.src.charCodeAt(r));)r++;return u.pos=r,!0}var s0=[];for(let u=0;u<256;u++)s0.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u){s0[u.charCodeAt(0)]=1});function l0(u,e){let r=u.pos,n=u.posMax;if(u.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let t=u.src.charCodeAt(r);if(t===10){for(e||u.push("hardbreak","br",0),r++;r<n&&(t=u.src.charCodeAt(r),!!k(t));)r++;return u.pos=r,!0}let c=u.src[r];if(t>=55296&&t<=56319&&r+1<n){let o=u.src.charCodeAt(r+1);o>=56320&&o<=57343&&(c+=u.src[r+1],r++)}let i="\\"+c;if(!e){let o=u.push("text_special","",0);t<256&&s0[t]!==0?o.content=c:o.content=i,o.markup=i,o.info="escape"}return u.pos=r+1,!0}function f0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==96)return!1;let t=r;r++;let c=u.posMax;for(;r<c&&u.src.charCodeAt(r)===96;)r++;let i=u.src.slice(t,r),o=i.length;if(u.backticksScanned&&(u.backticks[o]||0)<=t)return e||(u.pending+=i),u.pos+=o,!0;let a=r,s;for(;(s=u.src.indexOf("`",a))!==-1;){for(a=s+1;a<c&&u.src.charCodeAt(a)===96;)a++;let l=a-s;if(l===o){if(!e){let d=u.push("code_inline","code",0);d.markup=i,d.content=u.src.slice(r,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return u.pos=a,!0}u.backticks[l]=s}return u.backticksScanned=!0,e||(u.pending+=i),u.pos+=o,!0}function Ur(u,e){let r=u.pos,n=u.src.charCodeAt(r);if(e||n!==126)return!1;let t=u.scanDelims(u.pos,!0),c=t.length,i=String.fromCharCode(n);if(c<2)return!1;let o;c%2&&(o=u.push("text","",0),o.content=i,c--);for(let a=0;a<c;a+=2)o=u.push("text","",0),o.content=i+i,u.delimiters.push({marker:n,length:0,token:u.tokens.length-1,end:-1,open:t.can_open,close:t.can_close});return u.pos+=t.length,!0}function le(u,e){let r,n=[],t=e.length;for(let c=0;c<t;c++){let i=e[c];if(i.marker!==126||i.end===-1)continue;let o=e[i.end];r=u.tokens[i.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=u.tokens[o.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",u.tokens[o.token-1].type==="text"&&u.tokens[o.token-1].content==="~"&&n.push(o.token-1)}for(;n.length;){let c=n.pop(),i=c+1;for(;i<u.tokens.length&&u.tokens[i].type==="s_close";)i++;i--,c!==i&&(r=u.tokens[i],u.tokens[i]=u.tokens[c],u.tokens[c]=r)}}function jr(u){let e=u.tokens_meta,r=u.tokens_meta.length;le(u,u.delimiters);for(let n=0;n<r;n++)e[n]&&e[n].delimiters&&le(u,e[n].delimiters)}var d0={tokenize:Ur,postProcess:jr};function Vr(u,e){let r=u.pos,n=u.src.charCodeAt(r);if(e||n!==95&&n!==42)return!1;let t=u.scanDelims(u.pos,n===42);for(let c=0;c<t.length;c++){let i=u.push("text","",0);i.content=String.fromCharCode(n),u.delimiters.push({marker:n,length:t.length,token:u.tokens.length-1,end:-1,open:t.can_open,close:t.can_close})}return u.pos+=t.length,!0}function fe(u,e){let r=e.length;for(let n=r-1;n>=0;n--){let t=e[n];if(t.marker!==95&&t.marker!==42||t.end===-1)continue;let c=e[t.end],i=n>0&&e[n-1].end===t.end+1&&e[n-1].marker===t.marker&&e[n-1].token===t.token-1&&e[t.end+1].token===c.token+1,o=String.fromCharCode(t.marker),a=u.tokens[t.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?o+o:o,a.content="";let s=u.tokens[c.token];s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?o+o:o,s.content="",i&&(u.tokens[e[n-1].token].content="",u.tokens[e[t.end+1].token].content="",n--)}}function Zr(u){let e=u.tokens_meta,r=u.tokens_meta.length;fe(u,u.delimiters);for(let n=0;n<r;n++)e[n]&&e[n].delimiters&&fe(u,e[n].delimiters)}var p0={tokenize:Vr,postProcess:Zr};function b0(u,e){let r,n,t,c,i="",o="",a=u.pos,s=!0;if(u.src.charCodeAt(u.pos)!==91)return!1;let l=u.pos,d=u.posMax,b=u.pos+1,p=u.md.helpers.parseLinkLabel(u,u.pos,!0);if(p<0)return!1;let f=p+1;if(f<d&&u.src.charCodeAt(f)===40){for(s=!1,f++;f<d&&(r=u.src.charCodeAt(f),!(!k(r)&&r!==10));f++);if(f>=d)return!1;if(a=f,t=u.md.helpers.parseLinkDestination(u.src,f,u.posMax),t.ok){for(i=u.md.normalizeLink(t.str),u.md.validateLink(i)?f=t.pos:i="",a=f;f<d&&(r=u.src.charCodeAt(f),!(!k(r)&&r!==10));f++);if(t=u.md.helpers.parseLinkTitle(u.src,f,u.posMax),f<d&&a!==f&&t.ok)for(o=t.str,f=t.pos;f<d&&(r=u.src.charCodeAt(f),!(!k(r)&&r!==10));f++);}(f>=d||u.src.charCodeAt(f)!==41)&&(s=!0),f++}if(s){if(typeof u.env.references>"u")return!1;if(f<d&&u.src.charCodeAt(f)===91?(a=f+1,f=u.md.helpers.parseLinkLabel(u,f),f>=0?n=u.src.slice(a,f++):f=p+1):f=p+1,n||(n=u.src.slice(b,p)),c=u.env.references[Z(n)],!c)return u.pos=l,!1;i=c.href,o=c.title}if(!e){u.pos=b,u.posMax=p;let g=u.push("link_open","a",1),D=[["href",i]];g.attrs=D,o&&D.push(["title",o]),u.linkLevel++,u.md.inline.tokenize(u),u.linkLevel--,u.push("link_close","a",-1)}return u.pos=f,u.posMax=d,!0}function h0(u,e){let r,n,t,c,i,o,a,s,l="",d=u.pos,b=u.posMax;if(u.src.charCodeAt(u.pos)!==33||u.src.charCodeAt(u.pos+1)!==91)return!1;let p=u.pos+2,f=u.md.helpers.parseLinkLabel(u,u.pos+1,!1);if(f<0)return!1;if(c=f+1,c<b&&u.src.charCodeAt(c)===40){for(c++;c<b&&(r=u.src.charCodeAt(c),!(!k(r)&&r!==10));c++);if(c>=b)return!1;for(s=c,o=u.md.helpers.parseLinkDestination(u.src,c,u.posMax),o.ok&&(l=u.md.normalizeLink(o.str),u.md.validateLink(l)?c=o.pos:l=""),s=c;c<b&&(r=u.src.charCodeAt(c),!(!k(r)&&r!==10));c++);if(o=u.md.helpers.parseLinkTitle(u.src,c,u.posMax),c<b&&s!==c&&o.ok)for(a=o.str,c=o.pos;c<b&&(r=u.src.charCodeAt(c),!(!k(r)&&r!==10));c++);else a="";if(c>=b||u.src.charCodeAt(c)!==41)return u.pos=d,!1;c++}else{if(typeof u.env.references>"u")return!1;if(c<b&&u.src.charCodeAt(c)===91?(s=c+1,c=u.md.helpers.parseLinkLabel(u,c),c>=0?t=u.src.slice(s,c++):c=f+1):c=f+1,t||(t=u.src.slice(p,f)),i=u.env.references[Z(t)],!i)return u.pos=d,!1;l=i.href,a=i.title}if(!e){n=u.src.slice(p,f);let g=[];u.md.inline.parse(n,u.md,u.env,g);let D=u.push("image","img",0),E=[["src",l],["alt",""]];D.attrs=E,D.children=g,D.content=n,a&&E.push(["title",a])}return u.pos=c,u.posMax=b,!0}var $r=/^([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])?)*)$/,Gr=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function m0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==60)return!1;let n=u.pos,t=u.posMax;for(;;){if(++r>=t)return!1;let i=u.src.charCodeAt(r);if(i===60)return!1;if(i===62)break}let c=u.src.slice(n+1,r);if(Gr.test(c)){let i=u.md.normalizeLink(c);if(!u.md.validateLink(i))return!1;if(!e){let o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";let a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);let s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}if($r.test(c)){let i=u.md.normalizeLink("mailto:"+c);if(!u.md.validateLink(i))return!1;if(!e){let o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";let a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);let s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}return!1}function Wr(u){return/^<a[>\s]/i.test(u)}function Jr(u){return/^<\/a\s*>/i.test(u)}function Xr(u){let e=u|32;return e>=97&&e<=122}function x0(u,e){if(!u.md.options.html)return!1;let r=u.posMax,n=u.pos;if(u.src.charCodeAt(n)!==60||n+2>=r)return!1;let t=u.src.charCodeAt(n+1);if(t!==33&&t!==63&&t!==47&&!Xr(t))return!1;let c=u.src.slice(n).match(oe);if(!c)return!1;if(!e){let i=u.push("html_inline","",0);i.content=c[0],Wr(i.content)&&u.linkLevel++,Jr(i.content)&&u.linkLevel--}return u.pos+=c[0].length,!0}var Qr=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Yr=/^&([a-z][a-z0-9]{1,31});/i;function _0(u,e){let r=u.pos,n=u.posMax;if(u.src.charCodeAt(r)!==38||r+1>=n)return!1;if(u.src.charCodeAt(r+1)===35){let c=u.src.slice(r).match(Qr);if(c){if(!e){let i=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),o=u.push("text_special","",0);o.content=gu(i)?tu(i):tu(65533),o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}else{let c=u.src.slice(r).match(Yr);if(c){let i=N(c[0]);if(i!==c[0]){if(!e){let o=u.push("text_special","",0);o.content=i,o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}}return!1}function de(u){let e={},r=u.length;if(!r)return;let n=0,t=-2,c=[];for(let i=0;i<r;i++){let o=u[i];if(c.push(0),(u[n].marker!==o.marker||t!==o.token-1)&&(n=i),t=o.token,o.length=o.length||0,!o.close)continue;e.hasOwnProperty(o.marker)||(e[o.marker]=[-1,-1,-1,-1,-1,-1]);let a=e[o.marker][(o.open?3:0)+o.length%3],s=n-c[n]-1,l=s;for(;s>a;s-=c[s]+1){let d=u[s];if(d.marker===o.marker&&d.open&&d.end<0){let b=!1;if((d.close||o.open)&&(d.length+o.length)%3===0&&(d.length%3!==0||o.length%3!==0)&&(b=!0),!b){let p=s>0&&!u[s-1].open?c[s-1]+1:0;c[i]=i-s+p,c[s]=p,o.open=!1,d.end=i,d.close=!1,l=-1,t=-2;break}}}l!==-1&&(e[o.marker][(o.open?3:0)+(o.length||0)%3]=l)}}function g0(u){let e=u.tokens_meta,r=u.tokens_meta.length;de(u.delimiters);for(let n=0;n<r;n++)e[n]&&e[n].delimiters&&de(e[n].delimiters)}function k0(u){let e,r,n=0,t=u.tokens,c=u.tokens.length;for(e=r=0;e<c;e++)t[e].nesting<0&&n--,t[e].level=n,t[e].nesting>0&&n++,t[e].type==="text"&&e+1<c&&t[e+1].type==="text"?t[e+1].content=t[e].content+t[e+1].content:(e!==r&&(t[r]=t[e]),r++);e!==r&&(t.length=r)}var D0=[["text",o0],["linkify",i0],["newline",a0],["escape",l0],["backticks",f0],["strikethrough",d0.tokenize],["emphasis",p0.tokenize],["link",b0],["image",h0],["autolink",m0],["html_inline",x0],["entity",_0]],C0=[["balance_pairs",g0],["strikethrough",d0.postProcess],["emphasis",p0.postProcess],["fragments_join",k0]];function cu(){this.ruler=new $;for(let u=0;u<D0.length;u++)this.ruler.push(D0[u][0],D0[u][1]);this.ruler2=new $;for(let u=0;u<C0.length;u++)this.ruler2.push(C0[u][0],C0[u][1])}cu.prototype.skipToken=function(u){let e=u.pos,r=this.ruler.getRules(""),n=r.length,t=u.md.options.maxNesting,c=u.cache;if(typeof c[e]<"u"){u.pos=c[e];return}let i=!1;if(u.level<t){for(let o=0;o<n;o++)if(u.level++,i=r[o](u,!0),u.level--,i){if(e>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;i||u.pos++,c[e]=u.pos};cu.prototype.tokenize=function(u){let e=this.ruler.getRules(""),r=e.length,n=u.posMax,t=u.md.options.maxNesting;for(;u.pos<n;){let c=u.pos,i=!1;if(u.level<t){for(let o=0;o<r;o++)if(i=e[o](u,!1),i){if(c>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(u.pos>=n)break;continue}u.pending+=u.src[u.pos++]}u.pending&&u.pushPending()};cu.prototype.parse=function(u,e,r,n){let t=new this.State(u,e,r,n);this.tokenize(t);let c=this.ruler2.getRules(""),i=c.length;for(let o=0;o<i;o++)c[o](t)};cu.prototype.State=se;var pe=cu;function be(u){let e={};u=u||{},e.src_Any=du.source,e.src_Cc=pu.source,e.src_Z=hu.source,e.src_P=J.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");let r="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!"+(u["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(u["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function E0(u){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){u[n]=r[n]})}),u}function Au(u){return Object.prototype.toString.call(u)}function Kr(u){return Au(u)==="[object String]"}function ut(u){return Au(u)==="[object Object]"}function et(u){return Au(u)==="[object RegExp]"}function he(u){return Au(u)==="[object Function]"}function rt(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var xe={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function tt(u){return Object.keys(u||{}).reduce(function(e,r){return e||xe.hasOwnProperty(r)},!1)}var nt={"http:":{validate:function(u,e,r){let n=u.slice(e);return r.re.http||(r.re.http=new 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(u,e,r){let n=u.slice(e);return r.re.no_http||(r.re.no_http=new 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)?e>=3&&u[e-3]===":"||e>=3&&u[e-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(u,e,r){let n=u.slice(e);return r.re.mailto||(r.re.mailto=new 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}}},ct="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]",ot="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function it(u){u.__index__=-1,u.__text_cache__=""}function at(u){return function(e,r){let n=e.slice(r);return u.test(n)?n.match(u)[0].length:0}}function me(){return function(u,e){e.normalize(u)}}function Eu(u){let e=u.re=be(u.__opts__),r=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||r.push(ct),r.push(e.src_xn),e.src_tlds=r.join("|");function n(o){return o.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");let t=[];u.__compiled__={};function c(o,a){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+a)}Object.keys(u.__schemas__).forEach(function(o){let a=u.__schemas__[o];if(a===null)return;let s={validate:null,link:null};if(u.__compiled__[o]=s,ut(a)){et(a.validate)?s.validate=at(a.validate):he(a.validate)?s.validate=a.validate:c(o,a),he(a.normalize)?s.normalize=a.normalize:a.normalize?c(o,a):s.normalize=me();return}if(Kr(a)){t.push(o);return}c(o,a)}),t.forEach(function(o){u.__compiled__[u.__schemas__[o]]&&(u.__compiled__[o].validate=u.__compiled__[u.__schemas__[o]].validate,u.__compiled__[o].normalize=u.__compiled__[u.__schemas__[o]].normalize)}),u.__compiled__[""]={validate:null,normalize:me()};let i=Object.keys(u.__compiled__).filter(function(o){return o.length>0&&u.__compiled__[o]}).map(rt).join("|");u.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","i"),u.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","ig"),u.re.schema_at_start=RegExp("^"+u.re.schema_search.source,"i"),u.re.pretest=RegExp("("+u.re.schema_test.source+")|("+u.re.host_fuzzy_test.source+")|@","i"),it(u)}function st(u,e){let r=u.__index__,n=u.__last_index__,t=u.__text_cache__.slice(r,n);this.schema=u.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=n+e,this.raw=t,this.text=t,this.url=t}function A0(u,e){let r=new st(u,e);return u.__compiled__[r.schema].normalize(r,u),r}function w(u,e){if(!(this instanceof w))return new w(u,e);e||tt(u)&&(e=u,u={}),this.__opts__=E0({},xe,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=E0({},nt,u),this.__compiled__={},this.__tlds__=ot,this.__tlds_replaced__=!1,this.re={},Eu(this)}w.prototype.add=function(e,r){return this.__schemas__[e]=r,Eu(this),this};w.prototype.set=function(e){return this.__opts__=E0(this.__opts__,e),this};w.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let r,n,t,c,i,o,a,s,l;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(e))!==null;)if(c=this.testSchemaAt(e,r[2],a.lastIndex),c){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(l=e.indexOf("@"),l>=0&&(t=e.match(this.re.email_fuzzy))!==null&&(i=t.index+t[1].length,o=t.index+t[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o))),this.__index__>=0};w.prototype.pretest=function(e){return this.re.pretest.test(e)};w.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0};w.prototype.match=function(e){let r=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(r.push(A0(this,n)),n=this.__last_index__);let t=n?e.slice(n):e;for(;this.test(t);)r.push(A0(this,n)),t=t.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};w.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let r=this.re.schema_at_start.exec(e);if(!r)return null;let n=this.testSchemaAt(e,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,A0(this,0)):null};w.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,t,c){return n!==c[t-1]}).reverse(),Eu(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Eu(this),this)};w.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};w.prototype.onCompile=function(){};var _e=w;var lt=/^xn--/,ft=/[^\0-\x7F]/,dt=/[\x2E\u3002\uFF0E\uFF61]/g,pt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y0=35,B=Math.floor,F0=String.fromCharCode;function O(u){throw new RangeError(pt[u])}function bt(u,e){let r=[],n=u.length;for(;n--;)r[n]=e(u[n]);return r}function ke(u,e){let r=u.split("@"),n="";r.length>1&&(n=r[0]+"@",u=r[1]),u=u.replace(dt,".");let t=u.split("."),c=bt(t,e).join(".");return n+c}function De(u){let e=[],r=0,n=u.length;for(;r<n;){let t=u.charCodeAt(r++);if(t>=55296&&t<=56319&&r<n){let c=u.charCodeAt(r++);(c&64512)==56320?e.push(((t&1023)<<10)+(c&1023)+65536):(e.push(t),r--)}else e.push(t)}return e}var ht=u=>String.fromCodePoint(...u),mt=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:36},ge=function(u,e){return u+22+75*(u<26)-((e!=0)<<5)},Ce=function(u,e,r){let n=0;for(u=r?B(u/700):u>>1,u+=B(u/e);u>y0*26>>1;n+=36)u=B(u/y0);return B(n+(y0+1)*u/(u+38))},Ee=function(u){let e=[],r=u.length,n=0,t=128,c=72,i=u.lastIndexOf("-");i<0&&(i=0);for(let o=0;o<i;++o)u.charCodeAt(o)>=128&&O("not-basic"),e.push(u.charCodeAt(o));for(let o=i>0?i+1:0;o<r;){let a=n;for(let l=1,d=36;;d+=36){o>=r&&O("invalid-input");let b=mt(u.charCodeAt(o++));b>=36&&O("invalid-input"),b>B((2147483647-n)/l)&&O("overflow"),n+=b*l;let p=d<=c?1:d>=c+26?26:d-c;if(b<p)break;let f=36-p;l>B(2147483647/f)&&O("overflow"),l*=f}let s=e.length+1;c=Ce(n-a,s,a==0),B(n/s)>2147483647-t&&O("overflow"),t+=B(n/s),n%=s,e.splice(n++,0,t)}return String.fromCodePoint(...e)},Ae=function(u){let e=[];u=De(u);let r=u.length,n=128,t=0,c=72;for(let a of u)a<128&&e.push(F0(a));let i=e.length,o=i;for(i&&e.push("-");o<r;){let a=2147483647;for(let l of u)l>=n&&l<a&&(a=l);let s=o+1;a-n>B((2147483647-t)/s)&&O("overflow"),t+=(a-n)*s,n=a;for(let l of u)if(l<n&&++t>2147483647&&O("overflow"),l===n){let d=t;for(let b=36;;b+=36){let p=b<=c?1:b>=c+26?26:b-c;if(d<p)break;let f=d-p,g=36-p;e.push(F0(ge(p+f%g,0))),d=B(f/g)}e.push(F0(ge(d,0))),c=Ce(t,s,o===i),t=0,++o}++t,++n}return e.join("")},xt=function(u){return ke(u,function(e){return lt.test(e)?Ee(e.slice(4).toLowerCase()):e})},_t=function(u){return ke(u,function(e){return ft.test(e)?"xn--"+Ae(e):e})},gt={version:"2.3.1",ucs2:{decode:De,encode:ht},decode:Ee,encode:Ae,toASCII:_t,toUnicode:xt};var w0=gt;var ye={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var Fe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var we={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",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"]}}};var kt={default:ye,zero:Fe,commonmark:we},Dt=/^(vbscript|javascript|file|data):/,Ct=/^data:image\/(gif|png|jpeg|webp);/;function Et(u){let e=u.trim().toLowerCase();return Dt.test(e)?Ct.test(e):!0}var ve=["http:","https:","mailto:"];function At(u){let e=ru(u,!0);if(e.hostname&&(!e.protocol||ve.indexOf(e.protocol)>=0))try{e.hostname=w0.toASCII(e.hostname)}catch{}return su(W(e))}function yt(u){let e=ru(u,!0);if(e.hostname&&(!e.protocol||ve.indexOf(e.protocol)>=0))try{e.hostname=w0.toUnicode(e.hostname)}catch{}return eu(W(e),eu.defaultChars+"%")}function v(u,e){if(!(this instanceof v))return new v(u,e);e||_u(u)||(e=u||{},u="default"),this.inline=new pe,this.block=new ae,this.core=new Y0,this.renderer=new $0,this.linkify=new _e,this.validateLink=Et,this.normalizeLink=At,this.normalizeLinkText=yt,this.utils=Mu,this.helpers=X({},Pu),this.options={},this.configure(u),e&&this.set(e)}v.prototype.set=function(u){return X(this.options,u),this};v.prototype.configure=function(u){let e=this;if(_u(u)){let r=u;if(u=kt[r],!u)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!u)throw new Error("Wrong `markdown-it` preset, can't be empty");return u.options&&e.set(u.options),u.components&&Object.keys(u.components).forEach(function(r){u.components[r].rules&&e[r].ruler.enableOnly(u.components[r].rules),u.components[r].rules2&&e[r].ruler2.enableOnly(u.components[r].rules2)}),this};v.prototype.enable=function(u,e){let r=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(u,!0))},this),r=r.concat(this.inline.ruler2.enable(u,!0));let n=u.filter(function(t){return r.indexOf(t)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};v.prototype.disable=function(u,e){let r=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.disable(u,!0))},this),r=r.concat(this.inline.ruler2.disable(u,!0));let n=u.filter(function(t){return r.indexOf(t)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};v.prototype.use=function(u){let e=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,e),this};v.prototype.parse=function(u,e){if(typeof u!="string")throw new Error("Input data should be a String");let r=new this.core.State(u,this,e);return this.core.process(r),r.tokens};v.prototype.render=function(u,e){return e=e||{},this.renderer.render(this.parse(u,e),this.options,e)};v.prototype.parseInline=function(u,e){let r=new this.core.State(u,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};v.prototype.renderInline=function(u,e){return e=e||{},this.renderer.render(this.parseInline(u,e),this.options,e)};var Ft=v;export{Ft as default};
16
+ `,c.map=[e,u.line],!0}function Qu(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||t+3>c)return!1;let i=u.src.charCodeAt(t);if(i!==126&&i!==96)return!1;let o=t;t=u.skipChars(t,i);let a=t-o;if(a<3)return!1;let s=u.src.slice(o,t),l=u.src.slice(t,c);if(i===96&&l.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;let d=e,b=!1;for(;d++,!(d>=r||(t=o=u.bMarks[d]+u.tShift[d],c=u.eMarks[d],t<c&&u.sCount[d]<u.blkIndent));)if(u.src.charCodeAt(t)===i&&!(u.sCount[d]-u.blkIndent>=4)&&(t=u.skipChars(t,i),!(t-o<a)&&(t=u.skipSpaces(t),!(t<c)))){b=!0;break}a=u.sCount[e],u.line=d+(b?1:0);let p=u.push("fence","code",0);return p.info=l,p.content=u.getLines(e+1,d,a,!0),p.markup=s,p.map=[e,u.line],!0}function Yu(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e],i=u.lineMax;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(t)!==62)return!1;if(n)return!0;let o=[],a=[],s=[],l=[],d=u.md.block.ruler.getRules("blockquote"),b=u.parentType;u.parentType="blockquote";let p=!1,f;for(f=e;f<r;f++){let x=u.sCount[f]<u.blkIndent;if(t=u.bMarks[f]+u.tShift[f],c=u.eMarks[f],t>=c)break;if(u.src.charCodeAt(t++)===62&&!x){let _=u.sCount[f]+1,C,A;u.src.charCodeAt(t)===32?(t++,_++,A=!1,C=!0):u.src.charCodeAt(t)===9?(C=!0,(u.bsCount[f]+_)%4===3?(t++,_++,A=!1):A=!0):C=!1;let S=_;for(o.push(u.bMarks[f]),u.bMarks[f]=t;t<c;){let P=u.src.charCodeAt(t);if(k(P))P===9?S+=4-(S+u.bsCount[f]+(A?1:0))%4:S++;else break;t++}p=t>=c,a.push(u.bsCount[f]),u.bsCount[f]=u.sCount[f]+1+(C?1:0),s.push(u.sCount[f]),u.sCount[f]=S-_,l.push(u.tShift[f]),u.tShift[f]=t-u.bMarks[f];continue}if(p)break;let m=!1;for(let _=0,C=d.length;_<C;_++)if(d[_](u,f,r,!0)){m=!0;break}if(m){u.lineMax=f,u.blkIndent!==0&&(o.push(u.bMarks[f]),a.push(u.bsCount[f]),l.push(u.tShift[f]),s.push(u.sCount[f]),u.sCount[f]-=u.blkIndent);break}o.push(u.bMarks[f]),a.push(u.bsCount[f]),l.push(u.tShift[f]),s.push(u.sCount[f]),u.sCount[f]=-1}let g=u.blkIndent;u.blkIndent=0;let D=u.push("blockquote_open","blockquote",1);D.markup=">";let E=[e,0];D.map=E,u.md.block.tokenize(u,e,f);let h=u.push("blockquote_close","blockquote",-1);h.markup=">",u.lineMax=i,u.parentType=b,E[1]=u.line;for(let x=0;x<l.length;x++)u.bMarks[x+e]=o[x],u.tShift[x+e]=l[x],u.sCount[x+e]=s[x],u.bsCount[x+e]=a[x];return u.blkIndent=g,!0}function Ku(u,e,r,n){let t=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4)return!1;let c=u.bMarks[e]+u.tShift[e],i=u.src.charCodeAt(c++);if(i!==42&&i!==45&&i!==95)return!1;let o=1;for(;c<t;){let s=u.src.charCodeAt(c++);if(s!==i&&!k(s))return!1;s===i&&o++}if(o<3)return!1;if(n)return!0;u.line=e+1;let a=u.push("hr","hr",0);return a.map=[e,u.line],a.markup=Array(o+1).join(String.fromCharCode(i)),!0}function ee(u,e){let r=u.eMarks[e],n=u.bMarks[e]+u.tShift[e],t=u.src.charCodeAt(n++);if(t!==42&&t!==45&&t!==43)return-1;if(n<r){let c=u.src.charCodeAt(n);if(!k(c))return-1}return n}function re(u,e){let r=u.bMarks[e]+u.tShift[e],n=u.eMarks[e],t=r;if(t+1>=n)return-1;let c=u.src.charCodeAt(t++);if(c<48||c>57)return-1;for(;;){if(t>=n)return-1;if(c=u.src.charCodeAt(t++),c>=48&&c<=57){if(t-r>=10)return-1;continue}if(c===41||c===46)break;return-1}return t<n&&(c=u.src.charCodeAt(t),!k(c))?-1:t}function Sr(u,e){let r=u.level+2;for(let n=e+2,t=u.tokens.length-2;n<t;n++)u.tokens[n].level===r&&u.tokens[n].type==="paragraph_open"&&(u.tokens[n+2].hidden=!0,u.tokens[n].hidden=!0,n+=2)}function u0(u,e,r,n){let t,c,i,o,a=e,s=!0;if(u.sCount[a]-u.blkIndent>=4||u.listIndent>=0&&u.sCount[a]-u.listIndent>=4&&u.sCount[a]<u.blkIndent)return!1;let l=!1;n&&u.parentType==="paragraph"&&u.sCount[a]>=u.blkIndent&&(l=!0);let d,b,p;if((p=re(u,a))>=0){if(d=!0,i=u.bMarks[a]+u.tShift[a],b=Number(u.src.slice(i,p-1)),l&&b!==1)return!1}else if((p=ee(u,a))>=0)d=!1;else return!1;if(l&&u.skipSpaces(p)>=u.eMarks[a])return!1;if(n)return!0;let f=u.src.charCodeAt(p-1),g=u.tokens.length;d?(o=u.push("ordered_list_open","ol",1),b!==1&&(o.attrs=[["start",b]])):o=u.push("bullet_list_open","ul",1);let D=[a,0];o.map=D,o.markup=String.fromCharCode(f);let E=!1,h=u.md.block.ruler.getRules("list"),x=u.parentType;for(u.parentType="list";a<r;){c=p,t=u.eMarks[a];let m=u.sCount[a]+p-(u.bMarks[a]+u.tShift[a]),_=m;for(;c<t;){let G=u.src.charCodeAt(c);if(G===9)_+=4-(_+u.bsCount[a])%4;else if(G===32)_++;else break;c++}let C=c,A;C>=t?A=1:A=_-m,A>4&&(A=1);let S=m+A;o=u.push("list_item_open","li",1),o.markup=String.fromCharCode(f);let P=[a,0];o.map=P,d&&(o.info=u.src.slice(i,p-1));let uu=u.tight,yu=u.tShift[a],Se=u.sCount[a],Te=u.listIndent;if(u.listIndent=u.blkIndent,u.blkIndent=S,u.tight=!0,u.tShift[a]=C-u.bMarks[a],u.sCount[a]=_,C>=t&&u.isEmpty(a+1)?u.line=Math.min(u.line+2,r):u.md.block.tokenize(u,a,r,!0),(!u.tight||E)&&(s=!1),E=u.line-a>1&&u.isEmpty(u.line-1),u.blkIndent=u.listIndent,u.listIndent=Te,u.tShift[a]=yu,u.sCount[a]=Se,u.tight=uu,o=u.push("list_item_close","li",-1),o.markup=String.fromCharCode(f),a=u.line,P[1]=a,a>=r||u.sCount[a]<u.blkIndent||u.sCount[a]-u.blkIndent>=4)break;let v0=!1;for(let G=0,Le=h.length;G<Le;G++)if(h[G](u,a,r,!0)){v0=!0;break}if(v0)break;if(d){if(p=re(u,a),p<0)break;i=u.bMarks[a]+u.tShift[a]}else if(p=ee(u,a),p<0)break;if(f!==u.src.charCodeAt(p-1))break}return d?o=u.push("ordered_list_close","ol",-1):o=u.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(f),D[1]=a,u.line=a,u.parentType=x,s&&Sr(u,g),!0}function e0(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e],i=e+1;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(t)!==91)return!1;function o(h){let x=u.lineMax;if(h>=x||u.isEmpty(h))return null;let m=!1;if(u.sCount[h]-u.blkIndent>3&&(m=!0),u.sCount[h]<0&&(m=!0),!m){let A=u.md.block.ruler.getRules("reference"),S=u.parentType;u.parentType="reference";let P=!1;for(let uu=0,yu=A.length;uu<yu;uu++)if(A[uu](u,h,x,!0)){P=!0;break}if(u.parentType=S,P)return null}let _=u.bMarks[h]+u.tShift[h],C=u.eMarks[h];return u.src.slice(_,C+1)}let a=u.src.slice(t,c+1);c=a.length;let s=-1;for(t=1;t<c;t++){let h=a.charCodeAt(t);if(h===91)return!1;if(h===93){s=t;break}else if(h===10){let x=o(i);x!==null&&(a+=x,c=a.length,i++)}else if(h===92&&(t++,t<c&&a.charCodeAt(t)===10)){let x=o(i);x!==null&&(a+=x,c=a.length,i++)}}if(s<0||a.charCodeAt(s+1)!==58)return!1;for(t=s+2;t<c;t++){let h=a.charCodeAt(t);if(h===10){let x=o(i);x!==null&&(a+=x,c=a.length,i++)}else if(!k(h))break}let l=u.md.helpers.parseLinkDestination(a,t,c);if(!l.ok)return!1;let d=u.md.normalizeLink(l.str);if(!u.md.validateLink(d))return!1;t=l.pos;let b=t,p=i,f=t;for(;t<c;t++){let h=a.charCodeAt(t);if(h===10){let x=o(i);x!==null&&(a+=x,c=a.length,i++)}else if(!k(h))break}let g=u.md.helpers.parseLinkTitle(a,t,c);for(;g.can_continue;){let h=o(i);if(h===null)break;a+=h,t=c,c=a.length,i++,g=u.md.helpers.parseLinkTitle(a,t,c,g)}let D;for(t<c&&f!==t&&g.ok?(D=g.str,t=g.pos):(D="",t=b,i=p);t<c;){let h=a.charCodeAt(t);if(!k(h))break;t++}if(t<c&&a.charCodeAt(t)!==10&&D)for(D="",t=b,i=p;t<c;){let h=a.charCodeAt(t);if(!k(h))break;t++}if(t<c&&a.charCodeAt(t)!==10)return!1;let E=Z(a.slice(1,s));return E?(n||(typeof u.env.references>"u"&&(u.env.references={}),typeof u.env.references[E]>"u"&&(u.env.references[E]={title:D,href:d}),u.line=i),!0):!1}var te=["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"];var Tr="[a-zA-Z_:][a-zA-Z0-9:._-]*",Lr="[^\"'=<>`\\x00-\\x20]+",qr="'[^']*'",Br='"[^"]*"',Mr="(?:"+Lr+"|"+qr+"|"+Br+")",Rr="(?:\\s+"+Tr+"(?:\\s*=\\s*"+Mr+")?)",ne="<[A-Za-z][A-Za-z0-9\\-]*"+Rr+"*\\s*\\/?>",ce="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Ir="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",zr="<[?][\\s\\S]*?[?]>",Pr="<![A-Za-z][^>]*>",Nr="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",oe=new RegExp("^(?:"+ne+"|"+ce+"|"+Ir+"|"+zr+"|"+Pr+"|"+Nr+")"),ie=new RegExp("^(?:"+ne+"|"+ce+")");var K=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+te.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(ie.source+"\\s*$"),/^$/,!1]];function r0(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||!u.md.options.html||u.src.charCodeAt(t)!==60)return!1;let i=u.src.slice(t,c),o=0;for(;o<K.length&&!K[o][0].test(i);o++);if(o===K.length)return!1;if(n)return K[o][2];let a=e+1;if(!K[o][1].test(i)){for(;a<r&&!(u.sCount[a]<u.blkIndent);a++)if(t=u.bMarks[a]+u.tShift[a],c=u.eMarks[a],i=u.src.slice(t,c),K[o][1].test(i)){i.length!==0&&a++;break}}u.line=a;let s=u.push("html_block","",0);return s.map=[e,a],s.content=u.getLines(e,a,u.blkIndent,!0),!0}function t0(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4)return!1;let i=u.src.charCodeAt(t);if(i!==35||t>=c)return!1;let o=1;for(i=u.src.charCodeAt(++t);i===35&&t<c&&o<=6;)o++,i=u.src.charCodeAt(++t);if(o>6||t<c&&!k(i))return!1;if(n)return!0;c=u.skipSpacesBack(c,t);let a=u.skipCharsBack(c,35,t);a>t&&k(u.src.charCodeAt(a-1))&&(c=a),u.line=e+1;let s=u.push("heading_open","h"+String(o),1);s.markup="########".slice(0,o),s.map=[e,u.line];let l=u.push("inline","",0);l.content=u.src.slice(t,c).trim(),l.map=[e,u.line],l.children=[];let d=u.push("heading_close","h"+String(o),-1);return d.markup="########".slice(0,o),!0}function n0(u,e,r){let n=u.md.block.ruler.getRules("paragraph");if(u.sCount[e]-u.blkIndent>=4)return!1;let t=u.parentType;u.parentType="paragraph";let c=0,i,o=e+1;for(;o<r&&!u.isEmpty(o);o++){if(u.sCount[o]-u.blkIndent>3)continue;if(u.sCount[o]>=u.blkIndent){let p=u.bMarks[o]+u.tShift[o],f=u.eMarks[o];if(p<f&&(i=u.src.charCodeAt(p),(i===45||i===61)&&(p=u.skipChars(p,i),p=u.skipSpaces(p),p>=f))){c=i===61?1:2;break}}if(u.sCount[o]<0)continue;let b=!1;for(let p=0,f=n.length;p<f;p++)if(n[p](u,o,r,!0)){b=!0;break}if(b)break}if(!c)return!1;let a=u.getLines(e,o,u.blkIndent,!1).trim();u.line=o+1;let s=u.push("heading_open","h"+String(c),1);s.markup=String.fromCharCode(i),s.map=[e,u.line];let l=u.push("inline","",0);l.content=a,l.map=[e,u.line-1],l.children=[];let d=u.push("heading_close","h"+String(c),-1);return d.markup=String.fromCharCode(i),u.parentType=t,!0}function c0(u,e,r){let n=u.md.block.ruler.getRules("paragraph"),t=u.parentType,c=e+1;for(u.parentType="paragraph";c<r&&!u.isEmpty(c);c++){if(u.sCount[c]-u.blkIndent>3||u.sCount[c]<0)continue;let s=!1;for(let l=0,d=n.length;l<d;l++)if(n[l](u,c,r,!0)){s=!0;break}if(s)break}let i=u.getLines(e,c,u.blkIndent,!1).trim();u.line=c;let o=u.push("paragraph_open","p",1);o.map=[e,u.line];let a=u.push("inline","",0);return a.content=i,a.map=[e,u.line],a.children=[],u.push("paragraph_close","p",-1),u.parentType=t,!0}var Du=[["table",Ju,["paragraph","reference"]],["code",Xu],["fence",Qu,["paragraph","reference","blockquote","list"]],["blockquote",Yu,["paragraph","reference","blockquote","list"]],["hr",Ku,["paragraph","reference","blockquote","list"]],["list",u0,["paragraph","reference","blockquote"]],["reference",e0],["html_block",r0,["paragraph","reference","blockquote"]],["heading",t0,["paragraph","reference","blockquote"]],["lheading",n0],["paragraph",c0]];function Cu(){this.ruler=new $;for(let u=0;u<Du.length;u++)this.ruler.push(Du[u][0],Du[u][1],{alt:(Du[u][2]||[]).slice()})}Cu.prototype.tokenize=function(u,e,r){let n=this.ruler.getRules(""),t=n.length,c=u.md.options.maxNesting,i=e,o=!1;for(;i<r&&(u.line=i=u.skipEmptyLines(i),!(i>=r||u.sCount[i]<u.blkIndent));){if(u.level>=c){u.line=r;break}let a=u.line,s=!1;for(let l=0;l<t;l++)if(s=n[l](u,i,r,!1),s){if(a>=u.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");u.tight=!o,u.isEmpty(u.line-1)&&(o=!0),i=u.line,i<r&&u.isEmpty(i)&&(o=!0,i++,u.line=i)}};Cu.prototype.parse=function(u,e,r,n){if(!u)return;let t=new this.State(u,e,r,n);this.tokenize(t,t.line,t.lineMax)};Cu.prototype.State=K0;var ae=Cu;function nu(u,e,r,n){this.src=u,this.env=r,this.md=e,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}nu.prototype.pushPending=function(){let u=new z("text","",0);return u.content=this.pending,u.level=this.pendingLevel,this.tokens.push(u),this.pending="",u};nu.prototype.push=function(u,e,r){this.pending&&this.pushPending();let n=new z(u,e,r),t=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=[],t={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(t),n};nu.prototype.scanDelims=function(u,e){let r=this.posMax,n=this.src.charCodeAt(u),t=u>0?this.src.charCodeAt(u-1):32,c=u;for(;c<r&&this.src.charCodeAt(c)===n;)c++;let i=c-u,o=c<r?this.src.charCodeAt(c):32,a=V(t)||j(String.fromCharCode(t)),s=V(o)||j(String.fromCharCode(o)),l=U(t),d=U(o),b=!d&&(!s||l||a),p=!l&&(!a||d||s);return{can_open:b&&(e||!p||a),can_close:p&&(e||!b||s),length:i}};nu.prototype.Token=z;var se=nu;function Or(u){switch(u){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}}function o0(u,e){let r=u.pos;for(;r<u.posMax&&!Or(u.src.charCodeAt(r));)r++;return r===u.pos?!1:(e||(u.pending+=u.src.slice(u.pos,r)),u.pos=r,!0)}var Hr=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function i0(u,e){if(!u.md.options.linkify||u.linkLevel>0)return!1;let r=u.pos,n=u.posMax;if(r+3>n||u.src.charCodeAt(r)!==58||u.src.charCodeAt(r+1)!==47||u.src.charCodeAt(r+2)!==47)return!1;let t=u.pending.match(Hr);if(!t)return!1;let c=t[1],i=u.md.linkify.matchAtStart(u.src.slice(r-c.length));if(!i)return!1;let o=i.url;if(o.length<=c.length)return!1;let a=o.length;for(;a>0&&o.charCodeAt(a-1)===42;)a--;a!==o.length&&(o=o.slice(0,a));let s=u.md.normalizeLink(o);if(!u.md.validateLink(s))return!1;if(!e){u.pending=u.pending.slice(0,-c.length);let l=u.push("link_open","a",1);l.attrs=[["href",s]],l.markup="linkify",l.info="auto";let d=u.push("text","",0);d.content=u.md.normalizeLinkText(o);let b=u.push("link_close","a",-1);b.markup="linkify",b.info="auto"}return u.pos+=o.length-c.length,!0}function a0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==10)return!1;let n=u.pending.length-1,t=u.posMax;if(!e)if(n>=0&&u.pending.charCodeAt(n)===32)if(n>=1&&u.pending.charCodeAt(n-1)===32){let c=n-1;for(;c>=1&&u.pending.charCodeAt(c-1)===32;)c--;u.pending=u.pending.slice(0,c),u.push("hardbreak","br",0)}else u.pending=u.pending.slice(0,-1),u.push("softbreak","br",0);else u.push("softbreak","br",0);for(r++;r<t&&k(u.src.charCodeAt(r));)r++;return u.pos=r,!0}var s0=[];for(let u=0;u<256;u++)s0.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u){s0[u.charCodeAt(0)]=1});function l0(u,e){let r=u.pos,n=u.posMax;if(u.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let t=u.src.charCodeAt(r);if(t===10){for(e||u.push("hardbreak","br",0),r++;r<n&&(t=u.src.charCodeAt(r),!!k(t));)r++;return u.pos=r,!0}let c=u.src[r];if(t>=55296&&t<=56319&&r+1<n){let o=u.src.charCodeAt(r+1);o>=56320&&o<=57343&&(c+=u.src[r+1],r++)}let i="\\"+c;if(!e){let o=u.push("text_special","",0);t<256&&s0[t]!==0?o.content=c:o.content=i,o.markup=i,o.info="escape"}return u.pos=r+1,!0}function f0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==96)return!1;let t=r;r++;let c=u.posMax;for(;r<c&&u.src.charCodeAt(r)===96;)r++;let i=u.src.slice(t,r),o=i.length;if(u.backticksScanned&&(u.backticks[o]||0)<=t)return e||(u.pending+=i),u.pos+=o,!0;let a=r,s;for(;(s=u.src.indexOf("`",a))!==-1;){for(a=s+1;a<c&&u.src.charCodeAt(a)===96;)a++;let l=a-s;if(l===o){if(!e){let d=u.push("code_inline","code",0);d.markup=i,d.content=u.src.slice(r,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return u.pos=a,!0}u.backticks[l]=s}return u.backticksScanned=!0,e||(u.pending+=i),u.pos+=o,!0}function Ur(u,e){let r=u.pos,n=u.src.charCodeAt(r);if(e||n!==126)return!1;let t=u.scanDelims(u.pos,!0),c=t.length,i=String.fromCharCode(n);if(c<2)return!1;let o;c%2&&(o=u.push("text","",0),o.content=i,c--);for(let a=0;a<c;a+=2)o=u.push("text","",0),o.content=i+i,u.delimiters.push({marker:n,length:0,token:u.tokens.length-1,end:-1,open:t.can_open,close:t.can_close});return u.pos+=t.length,!0}function le(u,e){let r,n=[],t=e.length;for(let c=0;c<t;c++){let i=e[c];if(i.marker!==126||i.end===-1)continue;let o=e[i.end];r=u.tokens[i.token],r.type="s_open",r.tag="s",r.nesting=1,r.markup="~~",r.content="",r=u.tokens[o.token],r.type="s_close",r.tag="s",r.nesting=-1,r.markup="~~",r.content="",u.tokens[o.token-1].type==="text"&&u.tokens[o.token-1].content==="~"&&n.push(o.token-1)}for(;n.length;){let c=n.pop(),i=c+1;for(;i<u.tokens.length&&u.tokens[i].type==="s_close";)i++;i--,c!==i&&(r=u.tokens[i],u.tokens[i]=u.tokens[c],u.tokens[c]=r)}}function jr(u){let e=u.tokens_meta,r=u.tokens_meta.length;le(u,u.delimiters);for(let n=0;n<r;n++)e[n]&&e[n].delimiters&&le(u,e[n].delimiters)}var d0={tokenize:Ur,postProcess:jr};function Vr(u,e){let r=u.pos,n=u.src.charCodeAt(r);if(e||n!==95&&n!==42)return!1;let t=u.scanDelims(u.pos,n===42);for(let c=0;c<t.length;c++){let i=u.push("text","",0);i.content=String.fromCharCode(n),u.delimiters.push({marker:n,length:t.length,token:u.tokens.length-1,end:-1,open:t.can_open,close:t.can_close})}return u.pos+=t.length,!0}function fe(u,e){let r=e.length;for(let n=r-1;n>=0;n--){let t=e[n];if(t.marker!==95&&t.marker!==42||t.end===-1)continue;let c=e[t.end],i=n>0&&e[n-1].end===t.end+1&&e[n-1].marker===t.marker&&e[n-1].token===t.token-1&&e[t.end+1].token===c.token+1,o=String.fromCharCode(t.marker),a=u.tokens[t.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?o+o:o,a.content="";let s=u.tokens[c.token];s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?o+o:o,s.content="",i&&(u.tokens[e[n-1].token].content="",u.tokens[e[t.end+1].token].content="",n--)}}function Zr(u){let e=u.tokens_meta,r=u.tokens_meta.length;fe(u,u.delimiters);for(let n=0;n<r;n++)e[n]&&e[n].delimiters&&fe(u,e[n].delimiters)}var p0={tokenize:Vr,postProcess:Zr};function b0(u,e){let r,n,t,c,i="",o="",a=u.pos,s=!0;if(u.src.charCodeAt(u.pos)!==91)return!1;let l=u.pos,d=u.posMax,b=u.pos+1,p=u.md.helpers.parseLinkLabel(u,u.pos,!0);if(p<0)return!1;let f=p+1;if(f<d&&u.src.charCodeAt(f)===40){for(s=!1,f++;f<d&&(r=u.src.charCodeAt(f),!(!k(r)&&r!==10));f++);if(f>=d)return!1;if(a=f,t=u.md.helpers.parseLinkDestination(u.src,f,u.posMax),t.ok){for(i=u.md.normalizeLink(t.str),u.md.validateLink(i)?f=t.pos:i="",a=f;f<d&&(r=u.src.charCodeAt(f),!(!k(r)&&r!==10));f++);if(t=u.md.helpers.parseLinkTitle(u.src,f,u.posMax),f<d&&a!==f&&t.ok)for(o=t.str,f=t.pos;f<d&&(r=u.src.charCodeAt(f),!(!k(r)&&r!==10));f++);}(f>=d||u.src.charCodeAt(f)!==41)&&(s=!0),f++}if(s){if(typeof u.env.references>"u")return!1;if(f<d&&u.src.charCodeAt(f)===91?(a=f+1,f=u.md.helpers.parseLinkLabel(u,f),f>=0?n=u.src.slice(a,f++):f=p+1):f=p+1,n||(n=u.src.slice(b,p)),c=u.env.references[Z(n)],!c)return u.pos=l,!1;i=c.href,o=c.title}if(!e){u.pos=b,u.posMax=p;let g=u.push("link_open","a",1),D=[["href",i]];g.attrs=D,o&&D.push(["title",o]),u.linkLevel++,u.md.inline.tokenize(u),u.linkLevel--,u.push("link_close","a",-1)}return u.pos=f,u.posMax=d,!0}function h0(u,e){let r,n,t,c,i,o,a,s,l="",d=u.pos,b=u.posMax;if(u.src.charCodeAt(u.pos)!==33||u.src.charCodeAt(u.pos+1)!==91)return!1;let p=u.pos+2,f=u.md.helpers.parseLinkLabel(u,u.pos+1,!1);if(f<0)return!1;if(c=f+1,c<b&&u.src.charCodeAt(c)===40){for(c++;c<b&&(r=u.src.charCodeAt(c),!(!k(r)&&r!==10));c++);if(c>=b)return!1;for(s=c,o=u.md.helpers.parseLinkDestination(u.src,c,u.posMax),o.ok&&(l=u.md.normalizeLink(o.str),u.md.validateLink(l)?c=o.pos:l=""),s=c;c<b&&(r=u.src.charCodeAt(c),!(!k(r)&&r!==10));c++);if(o=u.md.helpers.parseLinkTitle(u.src,c,u.posMax),c<b&&s!==c&&o.ok)for(a=o.str,c=o.pos;c<b&&(r=u.src.charCodeAt(c),!(!k(r)&&r!==10));c++);else a="";if(c>=b||u.src.charCodeAt(c)!==41)return u.pos=d,!1;c++}else{if(typeof u.env.references>"u")return!1;if(c<b&&u.src.charCodeAt(c)===91?(s=c+1,c=u.md.helpers.parseLinkLabel(u,c),c>=0?t=u.src.slice(s,c++):c=f+1):c=f+1,t||(t=u.src.slice(p,f)),i=u.env.references[Z(t)],!i)return u.pos=d,!1;l=i.href,a=i.title}if(!e){n=u.src.slice(p,f);let g=[];u.md.inline.parse(n,u.md,u.env,g);let D=u.push("image","img",0),E=[["src",l],["alt",""]];D.attrs=E,D.children=g,D.content=n,a&&E.push(["title",a])}return u.pos=c,u.posMax=b,!0}var $r=/^([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])?)*)$/,Gr=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function m0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==60)return!1;let n=u.pos,t=u.posMax;for(;;){if(++r>=t)return!1;let i=u.src.charCodeAt(r);if(i===60)return!1;if(i===62)break}let c=u.src.slice(n+1,r);if(Gr.test(c)){let i=u.md.normalizeLink(c);if(!u.md.validateLink(i))return!1;if(!e){let o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";let a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);let s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}if($r.test(c)){let i=u.md.normalizeLink("mailto:"+c);if(!u.md.validateLink(i))return!1;if(!e){let o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";let a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);let s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}return!1}function Wr(u){return/^<a[>\s]/i.test(u)}function Jr(u){return/^<\/a\s*>/i.test(u)}function Xr(u){let e=u|32;return e>=97&&e<=122}function x0(u,e){if(!u.md.options.html)return!1;let r=u.posMax,n=u.pos;if(u.src.charCodeAt(n)!==60||n+2>=r)return!1;let t=u.src.charCodeAt(n+1);if(t!==33&&t!==63&&t!==47&&!Xr(t))return!1;let c=u.src.slice(n).match(oe);if(!c)return!1;if(!e){let i=u.push("html_inline","",0);i.content=c[0],Wr(i.content)&&u.linkLevel++,Jr(i.content)&&u.linkLevel--}return u.pos+=c[0].length,!0}var Qr=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Yr=/^&([a-z][a-z0-9]{1,31});/i;function _0(u,e){let r=u.pos,n=u.posMax;if(u.src.charCodeAt(r)!==38||r+1>=n)return!1;if(u.src.charCodeAt(r+1)===35){let c=u.src.slice(r).match(Qr);if(c){if(!e){let i=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),o=u.push("text_special","",0);o.content=gu(i)?tu(i):tu(65533),o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}else{let c=u.src.slice(r).match(Yr);if(c){let i=N(c[0]);if(i!==c[0]){if(!e){let o=u.push("text_special","",0);o.content=i,o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}}return!1}function de(u){let e={},r=u.length;if(!r)return;let n=0,t=-2,c=[];for(let i=0;i<r;i++){let o=u[i];if(c.push(0),(u[n].marker!==o.marker||t!==o.token-1)&&(n=i),t=o.token,o.length=o.length||0,!o.close)continue;e.hasOwnProperty(o.marker)||(e[o.marker]=[-1,-1,-1,-1,-1,-1]);let a=e[o.marker][(o.open?3:0)+o.length%3],s=n-c[n]-1,l=s;for(;s>a;s-=c[s]+1){let d=u[s];if(d.marker===o.marker&&d.open&&d.end<0){let b=!1;if((d.close||o.open)&&(d.length+o.length)%3===0&&(d.length%3!==0||o.length%3!==0)&&(b=!0),!b){let p=s>0&&!u[s-1].open?c[s-1]+1:0;c[i]=i-s+p,c[s]=p,o.open=!1,d.end=i,d.close=!1,l=-1,t=-2;break}}}l!==-1&&(e[o.marker][(o.open?3:0)+(o.length||0)%3]=l)}}function g0(u){let e=u.tokens_meta,r=u.tokens_meta.length;de(u.delimiters);for(let n=0;n<r;n++)e[n]&&e[n].delimiters&&de(e[n].delimiters)}function k0(u){let e,r,n=0,t=u.tokens,c=u.tokens.length;for(e=r=0;e<c;e++)t[e].nesting<0&&n--,t[e].level=n,t[e].nesting>0&&n++,t[e].type==="text"&&e+1<c&&t[e+1].type==="text"?t[e+1].content=t[e].content+t[e+1].content:(e!==r&&(t[r]=t[e]),r++);e!==r&&(t.length=r)}var D0=[["text",o0],["linkify",i0],["newline",a0],["escape",l0],["backticks",f0],["strikethrough",d0.tokenize],["emphasis",p0.tokenize],["link",b0],["image",h0],["autolink",m0],["html_inline",x0],["entity",_0]],C0=[["balance_pairs",g0],["strikethrough",d0.postProcess],["emphasis",p0.postProcess],["fragments_join",k0]];function cu(){this.ruler=new $;for(let u=0;u<D0.length;u++)this.ruler.push(D0[u][0],D0[u][1]);this.ruler2=new $;for(let u=0;u<C0.length;u++)this.ruler2.push(C0[u][0],C0[u][1])}cu.prototype.skipToken=function(u){let e=u.pos,r=this.ruler.getRules(""),n=r.length,t=u.md.options.maxNesting,c=u.cache;if(typeof c[e]<"u"){u.pos=c[e];return}let i=!1;if(u.level<t){for(let o=0;o<n;o++)if(u.level++,i=r[o](u,!0),u.level--,i){if(e>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;i||u.pos++,c[e]=u.pos};cu.prototype.tokenize=function(u){let e=this.ruler.getRules(""),r=e.length,n=u.posMax,t=u.md.options.maxNesting;for(;u.pos<n;){let c=u.pos,i=!1;if(u.level<t){for(let o=0;o<r;o++)if(i=e[o](u,!1),i){if(c>=u.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(u.pos>=n)break;continue}u.pending+=u.src[u.pos++]}u.pending&&u.pushPending()};cu.prototype.parse=function(u,e,r,n){let t=new this.State(u,e,r,n);this.tokenize(t);let c=this.ruler2.getRules(""),i=c.length;for(let o=0;o<i;o++)c[o](t)};cu.prototype.State=se;var pe=cu;function be(u){let e={};u=u||{},e.src_Any=du.source,e.src_Cc=pu.source,e.src_Z=hu.source,e.src_P=J.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");let r="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!"+(u["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(u["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function E0(u){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){u[n]=r[n]})}),u}function Au(u){return Object.prototype.toString.call(u)}function Kr(u){return Au(u)==="[object String]"}function ut(u){return Au(u)==="[object Object]"}function et(u){return Au(u)==="[object RegExp]"}function he(u){return Au(u)==="[object Function]"}function rt(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var xe={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function tt(u){return Object.keys(u||{}).reduce(function(e,r){return e||xe.hasOwnProperty(r)},!1)}var nt={"http:":{validate:function(u,e,r){let n=u.slice(e);return r.re.http||(r.re.http=new 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(u,e,r){let n=u.slice(e);return r.re.no_http||(r.re.no_http=new 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)?e>=3&&u[e-3]===":"||e>=3&&u[e-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(u,e,r){let n=u.slice(e);return r.re.mailto||(r.re.mailto=new 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}}},ct="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]",ot="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function it(u){u.__index__=-1,u.__text_cache__=""}function at(u){return function(e,r){let n=e.slice(r);return u.test(n)?n.match(u)[0].length:0}}function me(){return function(u,e){e.normalize(u)}}function Eu(u){let e=u.re=be(u.__opts__),r=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||r.push(ct),r.push(e.src_xn),e.src_tlds=r.join("|");function n(o){return o.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");let t=[];u.__compiled__={};function c(o,a){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+a)}Object.keys(u.__schemas__).forEach(function(o){let a=u.__schemas__[o];if(a===null)return;let s={validate:null,link:null};if(u.__compiled__[o]=s,ut(a)){et(a.validate)?s.validate=at(a.validate):he(a.validate)?s.validate=a.validate:c(o,a),he(a.normalize)?s.normalize=a.normalize:a.normalize?c(o,a):s.normalize=me();return}if(Kr(a)){t.push(o);return}c(o,a)}),t.forEach(function(o){u.__compiled__[u.__schemas__[o]]&&(u.__compiled__[o].validate=u.__compiled__[u.__schemas__[o]].validate,u.__compiled__[o].normalize=u.__compiled__[u.__schemas__[o]].normalize)}),u.__compiled__[""]={validate:null,normalize:me()};let i=Object.keys(u.__compiled__).filter(function(o){return o.length>0&&u.__compiled__[o]}).map(rt).join("|");u.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","i"),u.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","ig"),u.re.schema_at_start=RegExp("^"+u.re.schema_search.source,"i"),u.re.pretest=RegExp("("+u.re.schema_test.source+")|("+u.re.host_fuzzy_test.source+")|@","i"),it(u)}function st(u,e){let r=u.__index__,n=u.__last_index__,t=u.__text_cache__.slice(r,n);this.schema=u.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=n+e,this.raw=t,this.text=t,this.url=t}function A0(u,e){let r=new st(u,e);return u.__compiled__[r.schema].normalize(r,u),r}function w(u,e){if(!(this instanceof w))return new w(u,e);e||tt(u)&&(e=u,u={}),this.__opts__=E0({},xe,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=E0({},nt,u),this.__compiled__={},this.__tlds__=ot,this.__tlds_replaced__=!1,this.re={},Eu(this)}w.prototype.add=function(e,r){return this.__schemas__[e]=r,Eu(this),this};w.prototype.set=function(e){return this.__opts__=E0(this.__opts__,e),this};w.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let r,n,t,c,i,o,a,s,l;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(e))!==null;)if(c=this.testSchemaAt(e,r[2],a.lastIndex),c){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(l=e.indexOf("@"),l>=0&&(t=e.match(this.re.email_fuzzy))!==null&&(i=t.index+t[1].length,o=t.index+t[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&o>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o))),this.__index__>=0};w.prototype.pretest=function(e){return this.re.pretest.test(e)};w.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0};w.prototype.match=function(e){let r=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(r.push(A0(this,n)),n=this.__last_index__);let t=n?e.slice(n):e;for(;this.test(t);)r.push(A0(this,n)),t=t.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};w.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let r=this.re.schema_at_start.exec(e);if(!r)return null;let n=this.testSchemaAt(e,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,A0(this,0)):null};w.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,t,c){return n!==c[t-1]}).reverse(),Eu(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Eu(this),this)};w.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};w.prototype.onCompile=function(){};var _e=w;var lt=/^xn--/,ft=/[^\0-\x7F]/,dt=/[\x2E\u3002\uFF0E\uFF61]/g,pt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y0=35,B=Math.floor,F0=String.fromCharCode;function O(u){throw new RangeError(pt[u])}function bt(u,e){let r=[],n=u.length;for(;n--;)r[n]=e(u[n]);return r}function ke(u,e){let r=u.split("@"),n="";r.length>1&&(n=r[0]+"@",u=r[1]),u=u.replace(dt,".");let t=u.split("."),c=bt(t,e).join(".");return n+c}function De(u){let e=[],r=0,n=u.length;for(;r<n;){let t=u.charCodeAt(r++);if(t>=55296&&t<=56319&&r<n){let c=u.charCodeAt(r++);(c&64512)==56320?e.push(((t&1023)<<10)+(c&1023)+65536):(e.push(t),r--)}else e.push(t)}return e}var ht=u=>String.fromCodePoint(...u),mt=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:36},ge=function(u,e){return u+22+75*(u<26)-((e!=0)<<5)},Ce=function(u,e,r){let n=0;for(u=r?B(u/700):u>>1,u+=B(u/e);u>y0*26>>1;n+=36)u=B(u/y0);return B(n+(y0+1)*u/(u+38))},Ee=function(u){let e=[],r=u.length,n=0,t=128,c=72,i=u.lastIndexOf("-");i<0&&(i=0);for(let o=0;o<i;++o)u.charCodeAt(o)>=128&&O("not-basic"),e.push(u.charCodeAt(o));for(let o=i>0?i+1:0;o<r;){let a=n;for(let l=1,d=36;;d+=36){o>=r&&O("invalid-input");let b=mt(u.charCodeAt(o++));b>=36&&O("invalid-input"),b>B((2147483647-n)/l)&&O("overflow"),n+=b*l;let p=d<=c?1:d>=c+26?26:d-c;if(b<p)break;let f=36-p;l>B(2147483647/f)&&O("overflow"),l*=f}let s=e.length+1;c=Ce(n-a,s,a==0),B(n/s)>2147483647-t&&O("overflow"),t+=B(n/s),n%=s,e.splice(n++,0,t)}return String.fromCodePoint(...e)},Ae=function(u){let e=[];u=De(u);let r=u.length,n=128,t=0,c=72;for(let a of u)a<128&&e.push(F0(a));let i=e.length,o=i;for(i&&e.push("-");o<r;){let a=2147483647;for(let l of u)l>=n&&l<a&&(a=l);let s=o+1;a-n>B((2147483647-t)/s)&&O("overflow"),t+=(a-n)*s,n=a;for(let l of u)if(l<n&&++t>2147483647&&O("overflow"),l===n){let d=t;for(let b=36;;b+=36){let p=b<=c?1:b>=c+26?26:b-c;if(d<p)break;let f=d-p,g=36-p;e.push(F0(ge(p+f%g,0))),d=B(f/g)}e.push(F0(ge(d,0))),c=Ce(t,s,o===i),t=0,++o}++t,++n}return e.join("")},xt=function(u){return ke(u,function(e){return lt.test(e)?Ee(e.slice(4).toLowerCase()):e})},_t=function(u){return ke(u,function(e){return ft.test(e)?"xn--"+Ae(e):e})},gt={version:"2.3.1",ucs2:{decode:De,encode:ht},decode:Ee,encode:Ae,toASCII:_t,toUnicode:xt};var w0=gt;var ye={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}};var Fe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}};var we={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",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"]}}};var kt={default:ye,zero:Fe,commonmark:we},Dt=/^(vbscript|javascript|file|data):/,Ct=/^data:image\/(gif|png|jpeg|webp);/;function Et(u){let e=u.trim().toLowerCase();return Dt.test(e)?Ct.test(e):!0}var ve=["http:","https:","mailto:"];function At(u){let e=ru(u,!0);if(e.hostname&&(!e.protocol||ve.indexOf(e.protocol)>=0))try{e.hostname=w0.toASCII(e.hostname)}catch{}return su(W(e))}function yt(u){let e=ru(u,!0);if(e.hostname&&(!e.protocol||ve.indexOf(e.protocol)>=0))try{e.hostname=w0.toUnicode(e.hostname)}catch{}return eu(W(e),eu.defaultChars+"%")}function v(u,e){if(!(this instanceof v))return new v(u,e);e||_u(u)||(e=u||{},u="default"),this.inline=new pe,this.block=new ae,this.core=new Y0,this.renderer=new $0,this.linkify=new _e,this.validateLink=Et,this.normalizeLink=At,this.normalizeLinkText=yt,this.utils=Mu,this.helpers=X({},Pu),this.options={},this.configure(u),e&&this.set(e)}v.prototype.set=function(u){return X(this.options,u),this};v.prototype.configure=function(u){let e=this;if(_u(u)){let r=u;if(u=kt[r],!u)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!u)throw new Error("Wrong `markdown-it` preset, can't be empty");return u.options&&e.set(u.options),u.components&&Object.keys(u.components).forEach(function(r){u.components[r].rules&&e[r].ruler.enableOnly(u.components[r].rules),u.components[r].rules2&&e[r].ruler2.enableOnly(u.components[r].rules2)}),this};v.prototype.enable=function(u,e){let r=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(u,!0))},this),r=r.concat(this.inline.ruler2.enable(u,!0));let n=u.filter(function(t){return r.indexOf(t)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};v.prototype.disable=function(u,e){let r=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.disable(u,!0))},this),r=r.concat(this.inline.ruler2.disable(u,!0));let n=u.filter(function(t){return r.indexOf(t)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};v.prototype.use=function(u){let e=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,e),this};v.prototype.parse=function(u,e){if(typeof u!="string")throw new Error("Input data should be a String");let r=new this.core.State(u,this,e);return this.core.process(r),r.tokens};v.prototype.render=function(u,e){return e=e||{},this.renderer.render(this.parse(u,e),this.options,e)};v.prototype.parseInline=function(u,e){let r=new this.core.State(u,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};v.prototype.renderInline=function(u,e){return e=e||{},this.renderer.render(this.parseInline(u,e),this.options,e)};var Ft=v;export{Ft as default};