diff --git a/css/main-CLWZwcZO.chunk.css b/css/main-CLWZwcZO.chunk.css deleted file mode 100644 index e92f53afa..000000000 --- a/css/main-CLWZwcZO.chunk.css +++ /dev/null @@ -1 +0,0 @@ -.notifications-button .notification__dot{fill:#ff4402}.notifications-button .notification__dot--warning{fill:var(--color-warning)}.notifications-button .notification__dot--white{fill:var(--color-primary-text)}.notifications-button.hasNotifications{animation-name:pulse;animation-duration:1.6s;animation-iteration-count:4}.notifications-button.hasNotifications svg{opacity:1}@keyframes pulse{0%{opacity:1}60%{opacity:.85}to{opacity:1}}.notification{padding-bottom:12px}.notification:not(:last-child){border-bottom:1px solid var(--color-border)}.notification .notification-heading{display:flex;align-items:center;min-height:26px}.notification .notification-heading .notification-time{color:var(--color-text-maxcontrast);margin:13px 0 13px auto}.notification .notification-heading .notification-dismiss-button{margin:6px}.notification .notification-subject,.notification .notification-message,.notification .notification-full-message,.notification .notification-actions{margin:0 12px 12px}.notification .notification-subject{display:flex;align-items:center}.notification .notification-subject>.image{align-self:flex-start}.notification .notification-subject>span.subject,.notification .notification-subject>a>span.subject,.notification .notification-subject>.rich-text--wrapper,.notification .notification-subject>a>.rich-text--wrapper{padding-left:10px;word-wrap:anywhere}.notification .notification-message,.notification .notification-full-message{padding-left:42px;color:var(--color-text-maxcontrast)}.notification .notification-message>.collapsed,.notification .notification-full-message>.collapsed{overflow:hidden;max-height:70px}.notification .notification-message>.notification-overflow,.notification .notification-full-message>.notification-overflow{box-shadow:0 0 20px 20px var(--color-main-background);position:relative}.notification strong{font-weight:700;opacity:1}.notification .notification-actions{overflow:hidden}.notification .notification-actions .button-vue{line-height:normal;margin:2px 8px}.notification .notification-actions:first-child{margin-left:auto} diff --git a/css/main-D1MVrAjl.chunk.css b/css/main-D1MVrAjl.chunk.css new file mode 100644 index 000000000..41facb080 --- /dev/null +++ b/css/main-D1MVrAjl.chunk.css @@ -0,0 +1 @@ +.notifications-button .notifications-button__icon{height:20px}.notifications-button .notification__dot{fill:#ff4402}.notifications-button .notification__dot--warning{fill:var(--color-warning)}.notifications-button .notification__dot--white{fill:var(--color-primary-text)}.notifications-button.hasNotifications{animation-name:pulse;animation-duration:1.6s;animation-iteration-count:4}.notifications-button.hasNotifications svg{opacity:1}@keyframes pulse{0%{opacity:1}60%{opacity:.85}to{opacity:1}}.notification{padding-bottom:12px}.notification:not(:last-child){border-bottom:1px solid var(--color-border)}.notification .notification-heading{display:flex;align-items:center;min-height:26px}.notification .notification-heading .notification-time{color:var(--color-text-maxcontrast);margin:13px 0 13px auto}.notification .notification-heading .notification-dismiss-button{margin:6px}.notification .notification-subject,.notification .notification-message,.notification .notification-full-message,.notification .notification-actions{margin:0 12px 12px}.notification .notification-subject{display:flex;align-items:center}.notification .notification-subject>.image{align-self:flex-start}.notification .notification-subject>span.subject,.notification .notification-subject>a>span.subject,.notification .notification-subject>.rich-text--wrapper,.notification .notification-subject>a>.rich-text--wrapper{padding-left:10px;word-wrap:anywhere}.notification .notification-message,.notification .notification-full-message{padding-left:42px;color:var(--color-text-maxcontrast)}.notification .notification-message>.collapsed,.notification .notification-full-message>.collapsed{overflow:hidden;max-height:70px}.notification .notification-message>.notification-overflow,.notification .notification-full-message>.notification-overflow{box-shadow:0 0 20px 20px var(--color-main-background);position:relative}.notification strong{font-weight:700;opacity:1}.notification .notification-actions{overflow:hidden}.notification .notification-actions .button-vue{line-height:normal;margin:2px 8px}.notification .notification-actions:first-child{margin-left:auto} diff --git a/css/notifications-main.css b/css/notifications-main.css index 72f75cad5..f4145a39f 100644 --- a/css/notifications-main.css +++ b/css/notifications-main.css @@ -1,3 +1,3 @@ /* extracted by css-entry-points-plugin */ -@import './main-CLWZwcZO.chunk.css'; +@import './main-D1MVrAjl.chunk.css'; @import './style-BGeCqt4J.chunk.css'; \ No newline at end of file diff --git a/js/NotificationsApp-Dc5n3ZTC.chunk.mjs b/js/NotificationsApp-Dc5n3ZTC.chunk.mjs index c53b57cd2..2a9b4a6d8 100644 --- a/js/NotificationsApp-Dc5n3ZTC.chunk.mjs +++ b/js/NotificationsApp-Dc5n3ZTC.chunk.mjs @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('notifications', '', 'js/index-In99mN__.chunk.mjs'),window.OC.filePath('notifications', '', 'js/_plugin-vue2_normalizer-DspidzJM.chunk.mjs'),window.OC.filePath('notifications', '', 'js/style-CwV-raBw.chunk.mjs'),window.OC.filePath('notifications', '', 'css/style-BGeCqt4J.chunk.css'),window.OC.filePath('notifications', '', 'css/_plugin-vue2_normalizer-C438kvtE.chunk.css'),window.OC.filePath('notifications', '', 'js/BrowserStorage-BAHkAKaq.chunk.mjs'),window.OC.filePath('notifications', '', 'css/BrowserStorage-CyhoevBY.chunk.css'),window.OC.filePath('notifications', '', 'js/notifications-main.mjs'),window.OC.filePath('notifications', '', 'css/main-CLWZwcZO.chunk.css')])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('notifications', '', 'js/index-In99mN__.chunk.mjs'),window.OC.filePath('notifications', '', 'js/_plugin-vue2_normalizer-DspidzJM.chunk.mjs'),window.OC.filePath('notifications', '', 'js/style-CwV-raBw.chunk.mjs'),window.OC.filePath('notifications', '', 'css/style-BGeCqt4J.chunk.css'),window.OC.filePath('notifications', '', 'css/_plugin-vue2_normalizer-C438kvtE.chunk.css'),window.OC.filePath('notifications', '', 'js/BrowserStorage-BAHkAKaq.chunk.mjs'),window.OC.filePath('notifications', '', 'css/BrowserStorage-CyhoevBY.chunk.css'),window.OC.filePath('notifications', '', 'js/notifications-main.mjs'),window.OC.filePath('notifications', '', 'css/main-D1MVrAjl.chunk.css')])))=>i.map(i=>d[i]); /*! third party licenses: js/vendor.LICENSE.txt */ import{n as Xe,d as tt,f as Rt,G as Xt,u as Rl,r as yt,g as Dl,h as Fl,e as ys,i as Ml,j as Bl,k as jl,m as zl,o as _s,l as Pt,p as Ul,q as zi,w as Hl,x as ql,y as Vl,z as $l,A as Wl,B as Kr,N as Gl,C as vs,c as at,v as _t,D as Vt,s as En,t as Re,E as Xl,F as Jl,H as Ui,I as St,J as Yl,K as Ql,L as Zl,M as Kl,O as ec,P as tc,Q as Hi,R as ur,S as fr}from"./_plugin-vue2_normalizer-DspidzJM.chunk.mjs";import{c as qi,a as Fr,n as nc,V as rc}from"./style-CwV-raBw.chunk.mjs";import{e as ic,C as oc,g as bs,c as ws,v as sc,a as Yt,E as ac,r as lc,p as cc,U as Vi,u as $i,S as uc,b as fc,B as be,d as dc}from"./BrowserStorage-BAHkAKaq.chunk.mjs";import{_ as pc}from"./notifications-main.mjs";const hc={name:"BellIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var mc=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon bell-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21"}},[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},gc=[],yc=Xe(hc,mc,gc,!1,null,null);const xs=yc.exports,_c={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var vc=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},bc=[],wc=Xe(_c,vc,bc,!1,null,null);const ks=wc.exports,xc={name:"MessageIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var kc=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon message-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M20,2H4A2,2 0 0,0 2,4V22L6,18H20A2,2 0 0,0 22,16V4C22,2.89 21.1,2 20,2Z"}},[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},Ac=[],Cc=Xe(xc,kc,Ac,!1,null,null);const As=Cc.exports,Tc={__name:"IconNotification",props:{showDot:{type:Boolean,default:!1},showWarning:{type:Boolean,default:!1},size:{type:Number,default:20}},setup(e){const n=ic()?.theming,t=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,r=a=>{const c=parseInt(a.substring(1,3),16)/255,f=parseInt(a.substring(3,5),16)/255,d=parseInt(a.substring(5,7),16)/255,m=Math.max(c,f,d),o=Math.min(c,f,d);let l=0,u=0;const h=(m+o)/2;if(m!==o){const y=m-o;switch(u=h>.5?y/(2-m-o):y/(m+o),m){case c:l=(f-d)/y+(f{if(!n?.color||!t.test(n?.color))return!1;const[a,c,f]=r(n.color);return(a>=330||a<=15)&&c>.4&&(f>.1||f<.6)}),s=qi(()=>{if(!n?.color||!t.test(n?.color))return!1;const[a,c,f]=r(n.color);return(a>=305||a<=64)&&c>.7&&(f>.1||f<.6)});return{__sfc:!0,theming:n,hexRegex:t,hexToHSL:r,isRedThemed:i,isOrangeThemed:s,IconBell:xs}}};var Sc=function(){var e=this,n=e._self._c,t=e._self._setupProxy;return e.showDot||e.showWarning?n("span",{staticClass:"notifications-button__icon"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",width:e.size,height:e.size,viewBox:"0 0 24 24",fill:"currentColor"}},[n("path",{attrs:{d:"M 19,11.79 C 18.5,11.92 18,12 17.5,12 14.47,12 12,9.53 12,6.5 12,5.03 12.58,3.7 13.5,2.71 13.15,2.28 12.61,2 12,2 10.9,2 10,2.9 10,4 V 4.29 C 7.03,5.17 5,7.9 5,11 v 6 l -2,2 v 1 H 21 V 19 L 19,17 V 11.79 M 12,23 c 1.11,0 2,-0.89 2,-2 h -4 c 0,1.11 0.9,2 2,2 z"}}),n("path",{staticClass:"notification__dot",class:{"notification__dot--warning":e.showWarning&&!t.isOrangeThemed,"notification__dot--white":t.isRedThemed||e.showWarning&&t.isOrangeThemed},attrs:{d:"M 21,6.5 C 21,8.43 19.43,10 17.5,10 15.57,10 14,8.43 14,6.5 14,4.57 15.57,3 17.5,3 19.43,3 21,4.57 21,6.5"}})])]):n(t.IconBell,{staticClass:"notifications-button__icon",attrs:{size:e.size}})},Oc=[],Ec=Xe(Tc,Sc,Oc,!1,null,null);const Ic=Ec.exports;window._vue_richtext_widgets||(window._vue_richtext_widgets={});const Wi=e=>!!window._vue_richtext_widgets[e],Pc=e=>!!window._vue_richtext_widgets[e]?.hasInteractiveView,Lc=e=>!!window._vue_richtext_widgets[e]?.fullWidth,Nc=(e,n,t=i=>{},r)=>{const i={hasInteractiveView:!0,fullWidth:!1,...r};if(window._vue_richtext_widgets[e]){console.error("Widget for id "+e+" already registered");return}window._vue_richtext_widgets[e]={id:e,callback:n,onDestroy:t,...i}},Rc=(e,{richObjectType:n,richObject:t,accessible:r,interactive:i})=>{if(n!=="open-graph"){if(!window._vue_richtext_widgets[n]){console.error("Widget for rich object type "+n+" not registered");return}window._vue_richtext_widgets[n].callback(e,{richObjectType:n,richObject:t,accessible:r,interactive:i})}},Dc=(e,n)=>{e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(n)};window._registerWidget=(e,n,t,r)=>{Nc(e,n,t,r)},window._vue_richtext_custom_picker_elements||(window._vue_richtext_custom_picker_elements={});const Fc=(e,n,t=i=>{},r="large")=>{if(window._vue_richtext_custom_picker_elements[e]){console.error("Custom reference picker element for id "+e+" already registered");return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:n,onDestroy:t,size:r}};window._registerCustomPickerElement=Fc;const Mc={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},computed:{hasName(){return this.name!==""},hasDescription(){return this.description!==""||this.$slots.description?.[0]}}};var Bc=function(){var e=this,n=e._self._c;return n("div",{staticClass:"empty-content",attrs:{role:"note"}},[e.$slots.icon?n("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e._t("name",function(){return[e.hasName?n("span",{staticClass:"empty-content__name"},[e._v(" "+e._s(e.name)+" ")]):e._e()]}),e.hasDescription?n("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?n("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()],2)},jc=[],zc=tt(Mc,Bc,jc,!1,null,"fede0c71");const Uc=zc.exports;function He(e,n){for(var t in n)e[t]=n[t];return e}var Hc=/[!'()*]/g,qc=function(e){return"%"+e.charCodeAt(0).toString(16)},Vc=/%2C/g,Ct=function(e){return encodeURIComponent(e).replace(Hc,qc).replace(Vc,",")};function Mr(e){try{return decodeURIComponent(e)}catch{}return e}function $c(e,n,t){n===void 0&&(n={});var r=t||Wc,i;try{i=r(e||"")}catch{i={}}for(var s in n){var a=n[s];i[s]=Array.isArray(a)?a.map(Gi):Gi(a)}return i}var Gi=function(e){return e==null||typeof e=="object"?e:String(e)};function Wc(e){var n={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(t){var r=t.replace(/\+/g," ").split("="),i=Mr(r.shift()),s=r.length>0?Mr(r.join("=")):null;n[i]===void 0?n[i]=s:Array.isArray(n[i])?n[i].push(s):n[i]=[n[i],s]}),n}function Gc(e){var n=e?Object.keys(e).map(function(t){var r=e[t];if(r===void 0)return"";if(r===null)return Ct(t);if(Array.isArray(r)){var i=[];return r.forEach(function(s){s!==void 0&&(s===null?i.push(Ct(t)):i.push(Ct(t)+"="+Ct(s)))}),i.join("&")}return Ct(t)+"="+Ct(r)}).filter(function(t){return t.length>0}).join("&"):null;return n?"?"+n:""}var In=/\/?$/;function Pn(e,n,t,r){var i=r&&r.options.stringifyQuery,s=n.query||{};try{s=Br(s)}catch{}var a={name:n.name||e&&e.name,meta:e&&e.meta||{},path:n.path||"/",hash:n.hash||"",query:s,params:n.params||{},fullPath:Xi(n,i),matched:e?Xc(e):[]};return t&&(a.redirectedFrom=Xi(t,i)),Object.freeze(a)}function Br(e){if(Array.isArray(e))return e.map(Br);if(e&&typeof e=="object"){var n={};for(var t in e)n[t]=Br(e[t]);return n}else return e}var ft=Pn(null,{path:"/"});function Xc(e){for(var n=[];e;)n.unshift(e),e=e.parent;return n}function Xi(e,n){var t=e.path,r=e.query;r===void 0&&(r={});var i=e.hash;i===void 0&&(i="");var s=n||Gc;return(t||"/")+s(r)+i}function Cs(e,n,t){return n===ft?e===n:n?e.path&&n.path?e.path.replace(In,"")===n.path.replace(In,"")&&(t||e.hash===n.hash&&kn(e.query,n.query)):e.name&&n.name?e.name===n.name&&(t||e.hash===n.hash&&kn(e.query,n.query)&&kn(e.params,n.params)):!1:!1}function kn(e,n){if(e===void 0&&(e={}),n===void 0&&(n={}),!e||!n)return e===n;var t=Object.keys(e).sort(),r=Object.keys(n).sort();return t.length!==r.length?!1:t.every(function(i,s){var a=e[i],c=r[s];if(c!==i)return!1;var f=n[i];return a==null||f==null?a===f:typeof a=="object"&&typeof f=="object"?kn(a,f):String(a)===String(f)})}function Jc(e,n){return e.path.replace(In,"/").indexOf(n.path.replace(In,"/"))===0&&(!n.hash||e.hash===n.hash)&&Yc(e.query,n.query)}function Yc(e,n){for(var t in n)if(!(t in e))return!1;return!0}function Ts(e){for(var n=0;n=0&&(n=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(t=e.slice(i+1),e=e.slice(0,i)),{path:e,query:t,hash:n}}function lt(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var Ln=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},Et=Is,eu=ei,tu=ou,nu=Os,ru=Es,iu=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function ei(e,n){for(var t=[],r=0,i=0,s="",a=n&&n.delimiter||"/",c;(c=iu.exec(e))!=null;){var f=c[0],d=c[1],m=c.index;if(s+=e.slice(i,m),i=m+f.length,d){s+=d[1];continue}var o=e[i],l=c[2],u=c[3],h=c[4],y=c[5],b=c[6],_=c[7];s&&(t.push(s),s="");var A=l!=null&&o!=null&&o!==l,O=b==="+"||b==="*",N=b==="?"||b==="*",B=c[2]||a,I=h||y;t.push({name:u||r++,prefix:l||"",delimiter:B,optional:N,repeat:O,partial:A,asterisk:!!_,pattern:I?lu(I):_?".*":"[^"+An(B)+"]+?"})}return i1||!N.length)return N.length===0?e():e("span",{},N)}if(this.tag==="a")O.on=A,O.attrs={href:c,"aria-current":b};else{var B=Ps(this.$slots.default);if(B){B.isStatic=!1;var I=B.data=He({},B.data);I.on=I.on||{};for(var G in I.on){var K=I.on[G];G in A&&(I.on[G]=Array.isArray(K)?K:[K])}for(var H in A)H in I.on?I.on[H].push(A[H]):I.on[H]=_;var E=B.data.attrs=He({},B.data.attrs);E.href=c,E["aria-current"]=b}else O.on=A}return e(this.tag,O,this.$slots.default)}};function Zi(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function Ps(e){if(e){for(var n,t=0;t-1&&(b.params[N]=h.params[N]);return b.path=Cn(A.path,b.params),l(A,b,y)}else if(b.path){b.params={};for(var B=0;B-1}function Fn(e,n){return Dn(e)&&e._isRouter&&(n==null||e.type===n)}function io(e,n,t){var r=function(i){i>=e.length?t():e[i]?n(e[i],function(){r(i+1)}):r(i+1)};r(0)}function Eu(e){return function(n,t,r){var i=!1,s=0,a=null;Bs(e,function(c,f,d,m){if(typeof c=="function"&&c.cid===void 0){i=!0,s++;var o=oo(function(y){Pu(y)&&(y=y.default),c.resolved=typeof y=="function"?y:Nn.extend(y),d.components[m]=y,s--,s<=0&&r()}),l=oo(function(y){var b="Failed to resolve async component "+m+": "+y;a||(a=Dn(y)?y:new Error(b),r(a))}),u;try{u=c(o,l)}catch(y){l(y)}if(u)if(typeof u.then=="function")u.then(o,l);else{var h=u.component;h&&typeof h.then=="function"&&h.then(o,l)}}}),i||r()}}function Bs(e,n){return js(e.map(function(t){return Object.keys(t.components).map(function(r){return n(t.components[r],t.instances[r],t,r)})}))}function js(e){return Array.prototype.concat.apply([],e)}var Iu=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Pu(e){return e.__esModule||Iu&&e[Symbol.toStringTag]==="Module"}function oo(e){var n=!1;return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];if(!n)return n=!0,e.apply(this,t)}}var Ue=function(e,n){this.router=e,this.base=Lu(n),this.current=ft,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};Ue.prototype.listen=function(e){this.cb=e},Ue.prototype.onReady=function(e,n){this.ready?e():(this.readyCbs.push(e),n&&this.readyErrorCbs.push(n))},Ue.prototype.onError=function(e){this.errorCbs.push(e)},Ue.prototype.transitionTo=function(e,n,t){var r=this,i;try{i=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach(function(c){c(a)}),a}var s=this.current;this.confirmTransition(i,function(){r.updateRoute(i),n&&n(i),r.ensureURL(),r.router.afterHooks.forEach(function(a){a&&a(i,s)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(a){a(i)}))},function(a){t&&t(a),a&&!r.ready&&(!Fn(a,wt.redirected)||s!==ft)&&(r.ready=!0,r.readyErrorCbs.forEach(function(c){c(a)}))})},Ue.prototype.confirmTransition=function(e,n,t){var r=this,i=this.current;this.pending=e;var s=function(h){!Fn(h)&&Dn(h)&&(r.errorCbs.length?r.errorCbs.forEach(function(y){y(h)}):console.error(h)),t&&t(h)},a=e.matched.length-1,c=i.matched.length-1;if(Cs(e,i)&&a===c&&e.matched[a]===i.matched[c])return this.ensureURL(),e.hash&&ct(this.router,i,e,!1),s(Cu(i,e));var f=Nu(this.current.matched,e.matched),d=f.updated,m=f.deactivated,o=f.activated,l=[].concat(Du(m),this.router.beforeHooks,Fu(d),o.map(function(h){return h.beforeEnter}),Eu(o)),u=function(h,y){if(r.pending!==e)return s(ro(i,e));try{h(e,i,function(b){b===!1?(r.ensureURL(!0),s(Tu(i,e))):Dn(b)?(r.ensureURL(!0),s(b)):typeof b=="string"||typeof b=="object"&&(typeof b.path=="string"||typeof b.name=="string")?(s(Au(i,e)),typeof b=="object"&&b.replace?r.replace(b):r.push(b)):y(b)})}catch(b){s(b)}};io(l,u,function(){var h=Mu(o),y=h.concat(r.router.resolveHooks);io(y,u,function(){if(r.pending!==e)return s(ro(i,e));r.pending=null,n(e),r.router.app&&r.router.app.$nextTick(function(){Ts(e)})})})},Ue.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},Ue.prototype.setupListeners=function(){},Ue.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=ft,this.pending=null};function Lu(e){if(!e)if(Qt){var n=document.querySelector("base");e=n&&n.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function Nu(e,n){var t,r=Math.max(e.length,n.length);for(t=0;t0)){var r=this.router,i=r.options.scrollBehavior,s=ut&&i;s&&this.listeners.push(Fs());var a=function(){var c=t.current,f=qt(t.base);t.current===ft&&f===t._startLocation||t.transitionTo(f,function(d){s&&ct(r,d,c,!0)})};window.addEventListener("popstate",a),this.listeners.push(function(){window.removeEventListener("popstate",a)})}},n.prototype.go=function(t){window.history.go(t)},n.prototype.push=function(t,r,i){var s=this,a=this,c=a.current;this.transitionTo(t,function(f){Rn(lt(s.base+f.fullPath)),ct(s.router,f,c,!1),r&&r(f)},i)},n.prototype.replace=function(t,r,i){var s=this,a=this,c=a.current;this.transitionTo(t,function(f){Ur(lt(s.base+f.fullPath)),ct(s.router,f,c,!1),r&&r(f)},i)},n.prototype.ensureURL=function(t){if(qt(this.base)!==this.current.fullPath){var r=lt(this.base+this.current.fullPath);t?Rn(r):Ur(r)}},n.prototype.getCurrentLocation=function(){return qt(this.base)},n}(Ue);function qt(e){var n=window.location.pathname,t=n.toLowerCase(),r=e.toLowerCase();return e&&(t===r||t.indexOf(lt(r+"/"))===0)&&(n=n.slice(e.length)),(n||"/")+window.location.search+window.location.hash}var Hs=function(e){function n(t,r,i){e.call(this,t,r),!(i&&ju(this.base))&&so()}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var r=this.router,i=r.options.scrollBehavior,s=ut&&i;s&&this.listeners.push(Fs());var a=function(){var f=t.current;so()&&t.transitionTo(Tn(),function(d){s&&ct(t.router,d,f,!0),ut||Sn(d.fullPath)})},c=ut?"popstate":"hashchange";window.addEventListener(c,a),this.listeners.push(function(){window.removeEventListener(c,a)})}},n.prototype.push=function(t,r,i){var s=this,a=this,c=a.current;this.transitionTo(t,function(f){ao(f.fullPath),ct(s.router,f,c,!1),r&&r(f)},i)},n.prototype.replace=function(t,r,i){var s=this,a=this,c=a.current;this.transitionTo(t,function(f){Sn(f.fullPath),ct(s.router,f,c,!1),r&&r(f)},i)},n.prototype.go=function(t){window.history.go(t)},n.prototype.ensureURL=function(t){var r=this.current.fullPath;Tn()!==r&&(t?ao(r):Sn(r))},n.prototype.getCurrentLocation=function(){return Tn()},n}(Ue);function ju(e){var n=qt(e);if(!/^\/#/.test(n))return window.location.replace(lt(e+"/#"+n)),!0}function so(){var e=Tn();return e.charAt(0)==="/"?!0:(Sn("/"+e),!1)}function Tn(){var e=window.location.href,n=e.indexOf("#");return n<0?"":(e=e.slice(n+1),e)}function Hr(e){var n=window.location.href,t=n.indexOf("#"),r=t>=0?n.slice(0,t):n;return r+"#"+e}function ao(e){ut?Rn(Hr(e)):window.location.hash=e}function Sn(e){ut?Ur(Hr(e)):window.location.replace(Hr(e))}var zu=function(e){function n(t,r){e.call(this,t,r),this.stack=[],this.index=-1}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.push=function(t,r,i){var s=this;this.transitionTo(t,function(a){s.stack=s.stack.slice(0,s.index+1).concat(a),s.index++,r&&r(a)},i)},n.prototype.replace=function(t,r,i){var s=this;this.transitionTo(t,function(a){s.stack=s.stack.slice(0,s.index).concat(a),r&&r(a)},i)},n.prototype.go=function(t){var r=this,i=this.index+t;if(!(i<0||i>=this.stack.length)){var s=this.stack[i];this.confirmTransition(s,function(){var a=r.current;r.index=i,r.updateRoute(s),r.router.afterHooks.forEach(function(c){c&&c(s,a)})},function(a){Fn(a,wt.duplicated)&&(r.index=i)})}},n.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},n.prototype.ensureURL=function(){},n}(Ue),ue=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=gu(e.routes||[],this);var n=e.mode||"hash";switch(this.fallback=n==="history"&&!ut&&e.fallback!==!1,this.fallback&&(n="hash"),Qt||(n="abstract"),this.mode=n,n){case"history":this.history=new Us(this,e.base);break;case"hash":this.history=new Hs(this,e.base,this.fallback);break;case"abstract":this.history=new zu(this,e.base);break}},lo={currentRoute:{configurable:!0}};ue.prototype.match=function(e,n,t){return this.matcher.match(e,n,t)},lo.currentRoute.get=function(){return this.history&&this.history.current},ue.prototype.init=function(e){var n=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var s=n.apps.indexOf(e);s>-1&&n.apps.splice(s,1),n.app===e&&(n.app=n.apps[0]||null),n.app||n.history.teardown()}),!this.app){this.app=e;var t=this.history;if(t instanceof Us||t instanceof Hs){var r=function(s){var a=t.current,c=n.options.scrollBehavior,f=ut&&c;f&&"fullPath"in s&&ct(n,s,a,!1)},i=function(s){t.setupListeners(),r(s)};t.transitionTo(t.getCurrentLocation(),i,i)}t.listen(function(s){n.apps.forEach(function(a){a._route=s})})}},ue.prototype.beforeEach=function(e){return dr(this.beforeHooks,e)},ue.prototype.beforeResolve=function(e){return dr(this.resolveHooks,e)},ue.prototype.afterEach=function(e){return dr(this.afterHooks,e)},ue.prototype.onReady=function(e,n){this.history.onReady(e,n)},ue.prototype.onError=function(e){this.history.onError(e)},ue.prototype.push=function(e,n,t){var r=this;if(!n&&!t&&typeof Promise<"u")return new Promise(function(i,s){r.history.push(e,i,s)});this.history.push(e,n,t)},ue.prototype.replace=function(e,n,t){var r=this;if(!n&&!t&&typeof Promise<"u")return new Promise(function(i,s){r.history.replace(e,i,s)});this.history.replace(e,n,t)},ue.prototype.go=function(e){this.history.go(e)},ue.prototype.back=function(){this.go(-1)},ue.prototype.forward=function(){this.go(1)},ue.prototype.getMatchedComponents=function(e){var n=e?e.matched?e:this.resolve(e).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(t){return Object.keys(t.components).map(function(r){return t.components[r]})})):[]},ue.prototype.resolve=function(e,n,t){n=n||this.history.current;var r=ri(e,n,t,this),i=this.match(r,n),s=i.redirectedFrom||i.fullPath,a=this.history.base,c=Uu(a,s,this.mode);return{location:r,route:i,href:c,normalizedTo:r,resolved:i}},ue.prototype.getRoutes=function(){return this.matcher.getRoutes()},ue.prototype.addRoute=function(e,n){this.matcher.addRoute(e,n),this.history.current!==ft&&this.history.transitionTo(this.history.getCurrentLocation())},ue.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==ft&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ue.prototype,lo);function dr(e,n){return e.push(n),function(){var t=e.indexOf(n);t>-1&&e.splice(t,1)}}function Uu(e,n,t){var r=t==="hash"?"#"+n:n;return e?lt(e+"/"+r):r}ue.install=jr,ue.version="3.6.5",ue.isNavigationFailure=Fn,ue.NavigationFailureType=wt,ue.START_LOCATION=ft,Qt&&window.Vue&&window.Vue.use(ue);const Hu={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qu=function(){var e=this,n=e._self._c;return n("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?n("title",[e._v(e._s(e.title))]):e._e()])])])},Vu=[],$u=tt(Hu,qu,Vu,!1,null,null);const Wu=$u.exports,Gu={name:"NcInputField",components:{NcButton:Rt,AlertCircle:Wu,Check:oc},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","update:modelValue","update:model-value","trailing-button-click"],setup(){return{model:Rl("value","update:value",!0)}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+Xt()},hasTrailingIcon(){return this.success},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){return this.hasPlaceholder?this.placeholder:this.label},isValidLabel(){const e=this.label||this.labelOutside;return e||console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){const n=this.type==="number"&&typeof this.model=="number"?parseFloat(e.target.value,10):e.target.value;this.model=n},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var Xu=function(){var e=this,n=e._self._c;return n("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled,"input-field--label-outside":e.labelOutside||!e.isValidLabel,"input-field--leading-icon":!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,"input-field--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field--pill":e.pill}},[n("div",{staticClass:"input-field__main-wrapper"},[n("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.model?.toString()},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?n("label",{staticClass:"input-field__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,expression:"!!$scopedSlots.icon || !!$scopedSlots.default || !!$slots.default"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("icon",function(){return[e._t("default")]})],2),e.showTrailingButton?n("NcButton",{staticClass:"input-field__trailing-button",attrs:{type:"tertiary-no-background","aria-label":e.trailingButtonLabel,disabled:e.disabled},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?n("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?n("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?n("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?n("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?n("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?n("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},Ju=[],Yu=tt(Gu,Xu,Ju,!1,null,"ceb23641");const co=Yu.exports;yt(Fl,Dl),new Set(Object.keys(co.props)),{...co.props},yt(jl);const Qu=3*60*1e3,Zu={name:"NcReferenceWidget",components:{NcButton:Rt},props:{reference:{type:Object,required:!0},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},setup(){const e=Fr(!1),n=Fr(),{width:t}=Ml(n);return Bl(n,([r])=>{nc(()=>{e.value=r.isIntersecting})}),{width:t,isVisible:e,widgetRoot:n}},data(){return{showInteractive:!1,rendered:!1,idleTimeout:null}},computed:{isInteractive(){return!this.interactiveOptIn&&this.interactive||this.showInteractive},hasFullWidth(){return Lc(this.reference.richObjectType)},hasCustomWidget(){return Wi(this.reference.richObjectType)},hasInteractiveView(){return Wi(this.reference.richObjectType)&&Pc(this.reference.richObjectType)},noAccess(){return this.reference&&!this.reference.accessible},descriptionStyle(){if(this.numberOfLines===0)return{display:"none"};const e=this.numberOfLines;return{lineClamp:e,webkitLineClamp:e}},numberOfLines(){return[450,550,650,1/0].findIndex(e=>this.width{this.isVisible||this.destroyWidget()},Qu);return}this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.rendered||this.renderWidget()},immediate:!0}},beforeDestroy(){this.destroyWidget()},methods:{t:ys,enableInteractive(){this.showInteractive=!0,this.renderWidget()},renderWidget(){if(!this.$refs.customWidget||this?.reference?.richObjectType==="open-graph")return;this.$refs.customWidget.innerHTML="";const e=document.createElement("div");e.style="width: 100%;",this.$refs.customWidget.appendChild(e),this.$nextTick(()=>{Rc(e,{...this.reference,interactive:this.isInteractive}),this.rendered=!0})},destroyWidget(){this.rendered&&(Dc(this.reference.richObjectType,this.$el),this.rendered=!1)}}};var Ku=function(){var e=this,n=e._self._c;return n("div",{ref:"widgetRoot",class:{"toggle-interactive":e.hasInteractiveView&&!e.isInteractive}},[e.reference&&e.hasCustomWidget?n("div",{ref:"customWidget",staticClass:"widget-custom",class:{"full-width":e.hasFullWidth}}):!e.noAccess&&e.reference&&e.reference.openGraphObject&&!e.hasCustomWidget?n(e.referenceWidgetLinkComponent,e._b({tag:"component",staticClass:"widget-default",attrs:{rel:"noopener noreferrer"}},"component",e.referenceWidgetLinkProps,!1),[e.reference.openGraphObject.thumb?n("img",{staticClass:"widget-default--image",attrs:{src:e.reference.openGraphObject.thumb}}):e._e(),n("div",{staticClass:"widget-default--details"},[n("p",{staticClass:"widget-default--name"},[e._v(" "+e._s(e.reference.openGraphObject.name)+" ")]),n("p",{staticClass:"widget-default--description",style:e.descriptionStyle},[e._v(" "+e._s(e.reference.openGraphObject.description)+" ")]),n("p",{staticClass:"widget-default--link"},[e._v(" "+e._s(e.compactLink)+" ")])])]):e._e(),e.interactiveOptIn&&e.hasInteractiveView&&!e.isInteractive?n("NcButton",{staticClass:"toggle-interactive--button",on:{click:e.enableInteractive}},[e._v(" "+e._s(e.t("Enable interactive view"))+" ")]):e._e()],1)},ef=[],tf=tt(Zu,Ku,ef,!1,null,"734d6ae9");const nf=tf.exports;yt(zl),ys("Any link"),_s("core","filetypes/link.svg"),window._vue_richtext_reference_providers||(window._vue_richtext_reference_providers=Pt("core","reference-provider-list",[])),window._vue_richtext_reference_provider_timestamps||(window._vue_richtext_reference_provider_timestamps=Pt("core","reference-provider-timestamps",{})),yt(zi,Ul),yt(Hl),yt(Vl,zi,ql),yt(Wl,$l);function uo(){return Pt("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}function fo(e){if(e)throw e}var pr,po;function rf(){if(po)return pr;po=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(f){return typeof Array.isArray=="function"?Array.isArray(f):n.call(f)==="[object Array]"},s=function(f){if(!f||n.call(f)!=="[object Object]")return!1;var d=e.call(f,"constructor"),m=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!d&&!m)return!1;var o;for(o in f);return typeof o>"u"||e.call(f,o)},a=function(f,d){t&&d.name==="__proto__"?t(f,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):f[d.name]=d.newValue},c=function(f,d){if(d==="__proto__")if(e.call(f,d)){if(r)return r(f,d).value}else return;return f[d]};return pr=function f(){var d,m,o,l,u,h,y=arguments[0],b=1,_=arguments.length,A=!1;for(typeof y=="boolean"&&(A=y,y=arguments[1]||{},b=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});b<_;++b)if(d=arguments[b],d!=null)for(m in d)o=c(y,m),l=c(d,m),y!==l&&(A&&l&&(s(l)||(u=i(l)))?(u?(u=!1,h=o&&i(o)?o:[]):h=o&&s(o)?o:{},a(y,{name:m,newValue:f(A,h,l)})):typeof l<"u"&&a(y,{name:m,newValue:l}));return y},pr}var of=rf();const hr=Kr(of);function qr(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function sf(){const e=[],n={run:t,use:r};return n;function t(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);c(null,...i);function c(f,...d){const m=e[++s];let o=-1;if(f){a(f);return}for(;++oa.length;let f;c&&a.push(i);try{f=e.apply(this,a)}catch(d){const m=d;if(c&&t)throw m;return i(m)}c||(f instanceof Promise?f.then(s,i):f instanceof Error?i(f):s(f))}function i(a,...c){t||(t=!0,n(a,...c))}function s(a){i(null,a)}}function $t(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ho(e.position):"start"in e||"end"in e?ho(e):"line"in e||"column"in e?Vr(e):""}function Vr(e){return mo(e&&e.line)+":"+mo(e&&e.column)}function ho(e){return Vr(e&&e.start)+"-"+Vr(e&&e.end)}function mo(e){return e&&typeof e=="number"?e:1}class Ae extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",s={},a=!1;if(t&&("line"in t&&"column"in t?s={place:t}:"start"in t&&"end"in t?s={place:t}:"type"in t?s={ancestors:[t],place:t.position}:s={...t}),typeof n=="string"?i=n:!s.cause&&n&&(a=!0,i=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof r=="string"){const f=r.indexOf(":");f===-1?s.ruleId=r:(s.source=r.slice(0,f),s.ruleId=r.slice(f+1))}if(!s.place&&s.ancestors&&s.ancestors){const f=s.ancestors[s.ancestors.length-1];f&&(s.place=f.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=c?c.line:void 0,this.name=$t(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ae.prototype.file="",Ae.prototype.name="",Ae.prototype.reason="",Ae.prototype.message="",Ae.prototype.stack="",Ae.prototype.column=void 0,Ae.prototype.line=void 0,Ae.prototype.ancestors=void 0,Ae.prototype.cause=void 0,Ae.prototype.fatal=void 0,Ae.prototype.place=void 0,Ae.prototype.ruleId=void 0,Ae.prototype.source=void 0;const We={basename:lf,dirname:cf,extname:uf,join:ff,sep:"/"};function lf(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Zt(e);let t=0,r=-1,i=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){t=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let a=-1,c=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){t=i+1;break}}else a<0&&(s=!0,a=i+1),c>-1&&(e.codePointAt(i)===n.codePointAt(c--)?c<0&&(r=i):(c=-1,r=a));return t===r?r=a:r<0&&(r=e.length),e.slice(t,r)}function cf(e){if(Zt(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function uf(e){Zt(e);let n=e.length,t=-1,r=0,i=-1,s=0,a;for(;n--;){const c=e.codePointAt(n);if(c===47){if(a){r=n+1;break}continue}t<0&&(a=!0,t=n+1),c===46?i<0?i=n:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||t<0||s===0||s===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function ff(...e){let n=-1,t;for(;++n0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function pf(e,n){let t="",r=0,i=-1,s=0,a=-1,c,f;for(;++a<=e.length;){if(a2){if(f=t.lastIndexOf("/"),f!==t.length-1){f<0?(t="",r=0):(t=t.slice(0,f),r=t.length-1-t.lastIndexOf("/")),i=a,s=0;continue}}else if(t.length>0){t="",r=0,i=a,s=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,a):t=e.slice(i+1,a),r=a-i-1;i=a,s=0}else c===46&&s>-1?s++:s=-1}return t}function Zt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const hf={cwd:mf};function mf(){return"/"}function $r(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gf(e){if(typeof e=="string")e=new URL(e);else if(!$r(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return yf(e)}function yf(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t0){let[u,...h]=m;const y=r[l][1];qr(y)&&qr(u)&&(u=hr(!0,y,u)),r[l]=[d,u,...h]}}}}const xf=new oi().freeze();function _r(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function br(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function yo(e){if(!qr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _o(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function _n(e){return kf(e)?e:new _f(e)}function kf(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Af(e){return typeof e=="string"||Cf(e)}function Cf(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Tf={};function si(e,n){const t=Tf,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return qs(e,r,i)}function qs(e,n,t){if(Sf(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return vo(e.children,n,t)}return Array.isArray(e)?vo(e,n,t):""}function vo(e,n,t){const r=[];let i=-1;for(;++ii?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)a=Array.from(r),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);s0?(Ie(e,e.length,0,n),e):n}const wo={}.hasOwnProperty;function Vs(e){const n={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function qe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const If=dt(new RegExp("\\p{P}","u")),ke=dt(/[A-Za-z]/),we=dt(/[\dA-Za-z]/),Pf=dt(/[#-'*+\--9=?A-Z^-~]/);function Mn(e){return e!==null&&(e<32||e===127)}const Wr=dt(/\d/),Lf=dt(/[\dA-Fa-f]/),Ws=dt(/[!-/:-@[-`{-~]/);function J(e){return e!==null&&e<-2}function ae(e){return e!==null&&(e<0||e===32)}function re(e){return e===-2||e===-1||e===32}function Vn(e){return Ws(e)||If(e)}const bt=dt(/\s/);function dt(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Dt(e){const n=[];let t=-1,r=0,i=0;for(;++t55295&&s<57344){const c=e.charCodeAt(t+1);s<56320&&c>56319&&c<57344?(a=String.fromCharCode(s,c),i=1):a="�"}else a=String.fromCharCode(s);a&&(n.push(e.slice(r,t),encodeURIComponent(a)),r=t+i+1,a=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function ie(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(f){return re(f)?(e.enter(t),c(f)):n(f)}function c(f){return re(f)&&s++a))return;const G=n.events.length;let K=G,H,E;for(;K--;)if(n.events[K][0]==="exit"&&n.events[K][1].type==="chunkFlow"){if(H){E=n.events[K][1].end;break}H=!0}for(_(r),I=G;IO;){const B=t[N];n.containerState=B[1],B[0].exit.call(n,e)}t.length=O}function A(){i.write([null]),s=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Mf(e,n,t){return ie(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Nt(e){if(e===null||ae(e)||bt(e))return 1;if(Vn(e))return 2}function $n(e,n,t){const r=[];let i=-1;for(;++i1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const o={...e[r][1].end},l={...e[t][1].start};ko(o,-f),ko(l,f),a={type:f>1?"strongSequence":"emphasisSequence",start:o,end:{...e[r][1].end}},c={type:f>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:l},s={type:f>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:f>1?"strong":"emphasis",start:{...a.start},end:{...c.end}},e[r][1].end={...a.start},e[t][1].start={...c.end},d=[],e[r][1].end.offset-e[r][1].start.offset&&(d=De(d,[["enter",e[r][1],n],["exit",e[r][1],n]])),d=De(d,[["enter",i,n],["enter",a,n],["exit",a,n],["enter",s,n]]),d=De(d,$n(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),d=De(d,[["exit",s,n],["enter",c,n],["exit",c,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(m=2,d=De(d,[["enter",e[t][1],n],["exit",e[t][1],n]])):m=0,Ie(e,r-1,t-r+3,d),t=r+d.length-m-2;break}}for(t=-1;++t0&&re(I)?ie(e,A,"linePrefix",s+1)(I):A(I)}function A(I){return I===null||J(I)?e.check(Ao,y,N)(I):(e.enter("codeFlowValue"),O(I))}function O(I){return I===null||J(I)?(e.exit("codeFlowValue"),A(I)):(e.consume(I),O)}function N(I){return e.exit("codeFenced"),n(I)}function B(I,G,K){let H=0;return E;function E(X){return I.enter("lineEnding"),I.consume(X),I.exit("lineEnding"),z}function z(X){return I.enter("codeFencedFence"),re(X)?ie(I,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):V(X)}function V(X){return X===c?(I.enter("codeFencedFenceSequence"),q(X)):K(X)}function q(X){return X===c?(H++,I.consume(X),q):H>=a?(I.exit("codeFencedFenceSequence"),re(X)?ie(I,j,"whitespace")(X):j(X)):K(X)}function j(X){return X===null||J(X)?(I.exit("codeFencedFence"),G(X)):K(X)}}}function Jf(e,n,t){const r=this;return i;function i(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}const wr={name:"codeIndented",tokenize:Qf},Yf={partial:!0,tokenize:Zf};function Qf(e,n,t){const r=this;return i;function i(d){return e.enter("codeIndented"),ie(e,s,"linePrefix",5)(d)}function s(d){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(d):t(d)}function a(d){return d===null?f(d):J(d)?e.attempt(Yf,a,f)(d):(e.enter("codeFlowValue"),c(d))}function c(d){return d===null||J(d)?(e.exit("codeFlowValue"),a(d)):(e.consume(d),c)}function f(d){return e.exit("codeIndented"),n(d)}}function Zf(e,n,t){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?t(a):J(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):ie(e,s,"linePrefix",5)(a)}function s(a){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?n(a):J(a)?i(a):t(a)}}const Kf={name:"codeText",previous:td,resolve:ed,tokenize:nd};function ed(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return nthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&zt(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),zt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),zt(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n=4?n(a):e.interrupt(r.parser.constructs.flow,t,n)(a)}}function Qs(e,n,t,r,i,s,a,c,f){const d=f||Number.POSITIVE_INFINITY;let m=0;return o;function o(_){return _===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(_),e.exit(s),l):_===null||_===32||_===41||Mn(_)?t(_):(e.enter(r),e.enter(a),e.enter(c),e.enter("chunkString",{contentType:"string"}),y(_))}function l(_){return _===62?(e.enter(s),e.consume(_),e.exit(s),e.exit(i),e.exit(r),n):(e.enter(c),e.enter("chunkString",{contentType:"string"}),u(_))}function u(_){return _===62?(e.exit("chunkString"),e.exit(c),l(_)):_===null||_===60||J(_)?t(_):(e.consume(_),_===92?h:u)}function h(_){return _===60||_===62||_===92?(e.consume(_),u):u(_)}function y(_){return!m&&(_===null||_===41||ae(_))?(e.exit("chunkString"),e.exit(c),e.exit(a),e.exit(r),n(_)):m999||u===null||u===91||u===93&&!f||u===94&&!c&&"_hiddenFootnoteSupport"in a.parser.constructs?t(u):u===93?(e.exit(s),e.enter(i),e.consume(u),e.exit(i),e.exit(r),n):J(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),o(u))}function o(u){return u===null||u===91||u===93||J(u)||c++>999?(e.exit("chunkString"),m(u)):(e.consume(u),f||(f=!re(u)),u===92?l:o)}function l(u){return u===91||u===92||u===93?(e.consume(u),c++,o):o(u)}}function Ks(e,n,t,r,i,s){let a;return c;function c(l){return l===34||l===39||l===40?(e.enter(r),e.enter(i),e.consume(l),e.exit(i),a=l===40?41:l,f):t(l)}function f(l){return l===a?(e.enter(i),e.consume(l),e.exit(i),e.exit(r),n):(e.enter(s),d(l))}function d(l){return l===a?(e.exit(s),f(a)):l===null?t(l):J(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ie(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(l))}function m(l){return l===a||l===null||J(l)?(e.exit("chunkString"),d(l)):(e.consume(l),l===92?o:m)}function o(l){return l===a||l===92?(e.consume(l),m):m(l)}}function Wt(e,n){let t;return r;function r(i){return J(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):re(i)?ie(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ud={name:"definition",tokenize:dd},fd={partial:!0,tokenize:pd};function dd(e,n,t){const r=this;let i;return s;function s(u){return e.enter("definition"),a(u)}function a(u){return Zs.call(r,e,c,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(u)}function c(u){return i=qe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),u===58?(e.enter("definitionMarker"),e.consume(u),e.exit("definitionMarker"),f):t(u)}function f(u){return ae(u)?Wt(e,d)(u):d(u)}function d(u){return Qs(e,m,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(u)}function m(u){return e.attempt(fd,o,o)(u)}function o(u){return re(u)?ie(e,l,"whitespace")(u):l(u)}function l(u){return u===null||J(u)?(e.exit("definition"),r.parser.defined.push(i),n(u)):t(u)}}function pd(e,n,t){return r;function r(c){return ae(c)?Wt(e,i)(c):t(c)}function i(c){return Ks(e,s,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return re(c)?ie(e,a,"whitespace")(c):a(c)}function a(c){return c===null||J(c)?n(c):t(c)}}const hd={name:"hardBreakEscape",tokenize:md};function md(e,n,t){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return J(s)?(e.exit("hardBreakEscape"),n(s)):t(s)}}const gd={name:"headingAtx",resolve:yd,tokenize:_d};function yd(e,n){let t=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},s={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Ie(e,r,t-r+1,[["enter",i,n],["enter",s,n],["exit",s,n],["exit",i,n]])),e}function _d(e,n,t){let r=0;return i;function i(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),a(m)}function a(m){return m===35&&r++<6?(e.consume(m),a):m===null||ae(m)?(e.exit("atxHeadingSequence"),c(m)):t(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||J(m)?(e.exit("atxHeading"),n(m)):re(m)?ie(e,c,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),c(m))}function d(m){return m===null||m===35||ae(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),d)}}const vd=["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"],To=["pre","script","style","textarea"],bd={concrete:!0,name:"htmlFlow",resolveTo:kd,tokenize:Ad},wd={partial:!0,tokenize:Td},xd={partial:!0,tokenize:Cd};function kd(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Ad(e,n,t){const r=this;let i,s,a,c,f;return d;function d(k){return m(k)}function m(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),o}function o(k){return k===33?(e.consume(k),l):k===47?(e.consume(k),s=!0,y):k===63?(e.consume(k),i=3,r.interrupt?n:x):ke(k)?(e.consume(k),a=String.fromCharCode(k),b):t(k)}function l(k){return k===45?(e.consume(k),i=2,u):k===91?(e.consume(k),i=5,c=0,h):ke(k)?(e.consume(k),i=4,r.interrupt?n:x):t(k)}function u(k){return k===45?(e.consume(k),r.interrupt?n:x):t(k)}function h(k){const Oe="CDATA[";return k===Oe.charCodeAt(c++)?(e.consume(k),c===Oe.length?r.interrupt?n:V:h):t(k)}function y(k){return ke(k)?(e.consume(k),a=String.fromCharCode(k),b):t(k)}function b(k){if(k===null||k===47||k===62||ae(k)){const Oe=k===47,Je=a.toLowerCase();return!Oe&&!s&&To.includes(Je)?(i=1,r.interrupt?n(k):V(k)):vd.includes(a.toLowerCase())?(i=6,Oe?(e.consume(k),_):r.interrupt?n(k):V(k)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(k):s?A(k):O(k))}return k===45||we(k)?(e.consume(k),a+=String.fromCharCode(k),b):t(k)}function _(k){return k===62?(e.consume(k),r.interrupt?n:V):t(k)}function A(k){return re(k)?(e.consume(k),A):E(k)}function O(k){return k===47?(e.consume(k),E):k===58||k===95||ke(k)?(e.consume(k),N):re(k)?(e.consume(k),O):E(k)}function N(k){return k===45||k===46||k===58||k===95||we(k)?(e.consume(k),N):B(k)}function B(k){return k===61?(e.consume(k),I):re(k)?(e.consume(k),B):O(k)}function I(k){return k===null||k===60||k===61||k===62||k===96?t(k):k===34||k===39?(e.consume(k),f=k,G):re(k)?(e.consume(k),I):K(k)}function G(k){return k===f?(e.consume(k),f=null,H):k===null||J(k)?t(k):(e.consume(k),G)}function K(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||ae(k)?B(k):(e.consume(k),K)}function H(k){return k===47||k===62||re(k)?O(k):t(k)}function E(k){return k===62?(e.consume(k),z):t(k)}function z(k){return k===null||J(k)?V(k):re(k)?(e.consume(k),z):t(k)}function V(k){return k===45&&i===2?(e.consume(k),fe):k===60&&i===1?(e.consume(k),de):k===62&&i===4?(e.consume(k),Se):k===63&&i===3?(e.consume(k),x):k===93&&i===5?(e.consume(k),Fe):J(k)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(wd,Me,q)(k)):k===null||J(k)?(e.exit("htmlFlowData"),q(k)):(e.consume(k),V)}function q(k){return e.check(xd,j,Me)(k)}function j(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),X}function X(k){return k===null||J(k)?q(k):(e.enter("htmlFlowData"),V(k))}function fe(k){return k===45?(e.consume(k),x):V(k)}function de(k){return k===47?(e.consume(k),a="",Te):V(k)}function Te(k){if(k===62){const Oe=a.toLowerCase();return To.includes(Oe)?(e.consume(k),Se):V(k)}return ke(k)&&a.length<8?(e.consume(k),a+=String.fromCharCode(k),Te):V(k)}function Fe(k){return k===93?(e.consume(k),x):V(k)}function x(k){return k===62?(e.consume(k),Se):k===45&&i===2?(e.consume(k),x):V(k)}function Se(k){return k===null||J(k)?(e.exit("htmlFlowData"),Me(k)):(e.consume(k),Se)}function Me(k){return e.exit("htmlFlow"),n(k)}}function Cd(e,n,t){const r=this;return i;function i(a){return J(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):t(a)}function s(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}function Td(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kt,n,t)}}const Sd={name:"htmlText",tokenize:Od};function Od(e,n,t){const r=this;let i,s,a;return c;function c(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),f}function f(x){return x===33?(e.consume(x),d):x===47?(e.consume(x),B):x===63?(e.consume(x),O):ke(x)?(e.consume(x),K):t(x)}function d(x){return x===45?(e.consume(x),m):x===91?(e.consume(x),s=0,h):ke(x)?(e.consume(x),A):t(x)}function m(x){return x===45?(e.consume(x),u):t(x)}function o(x){return x===null?t(x):x===45?(e.consume(x),l):J(x)?(a=o,de(x)):(e.consume(x),o)}function l(x){return x===45?(e.consume(x),u):o(x)}function u(x){return x===62?fe(x):x===45?l(x):o(x)}function h(x){const Se="CDATA[";return x===Se.charCodeAt(s++)?(e.consume(x),s===Se.length?y:h):t(x)}function y(x){return x===null?t(x):x===93?(e.consume(x),b):J(x)?(a=y,de(x)):(e.consume(x),y)}function b(x){return x===93?(e.consume(x),_):y(x)}function _(x){return x===62?fe(x):x===93?(e.consume(x),_):y(x)}function A(x){return x===null||x===62?fe(x):J(x)?(a=A,de(x)):(e.consume(x),A)}function O(x){return x===null?t(x):x===63?(e.consume(x),N):J(x)?(a=O,de(x)):(e.consume(x),O)}function N(x){return x===62?fe(x):O(x)}function B(x){return ke(x)?(e.consume(x),I):t(x)}function I(x){return x===45||we(x)?(e.consume(x),I):G(x)}function G(x){return J(x)?(a=G,de(x)):re(x)?(e.consume(x),G):fe(x)}function K(x){return x===45||we(x)?(e.consume(x),K):x===47||x===62||ae(x)?H(x):t(x)}function H(x){return x===47?(e.consume(x),fe):x===58||x===95||ke(x)?(e.consume(x),E):J(x)?(a=H,de(x)):re(x)?(e.consume(x),H):fe(x)}function E(x){return x===45||x===46||x===58||x===95||we(x)?(e.consume(x),E):z(x)}function z(x){return x===61?(e.consume(x),V):J(x)?(a=z,de(x)):re(x)?(e.consume(x),z):H(x)}function V(x){return x===null||x===60||x===61||x===62||x===96?t(x):x===34||x===39?(e.consume(x),i=x,q):J(x)?(a=V,de(x)):re(x)?(e.consume(x),V):(e.consume(x),j)}function q(x){return x===i?(e.consume(x),i=void 0,X):x===null?t(x):J(x)?(a=q,de(x)):(e.consume(x),q)}function j(x){return x===null||x===34||x===39||x===60||x===61||x===96?t(x):x===47||x===62||ae(x)?H(x):(e.consume(x),j)}function X(x){return x===47||x===62||ae(x)?H(x):t(x)}function fe(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),n):t(x)}function de(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Te}function Te(x){return re(x)?ie(e,Fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):Fe(x)}function Fe(x){return e.enter("htmlTextData"),a(x)}}const li={name:"labelEnd",resolveAll:Ld,resolveTo:Nd,tokenize:Rd},Ed={tokenize:Dd},Id={tokenize:Fd},Pd={tokenize:Md};function Ld(e){let n=-1;const t=[];for(;++n=3&&(d===null||J(d))?(e.exit("thematicBreak"),n(d)):t(d)}function f(d){return d===i?(e.consume(d),r++,f):(e.exit("thematicBreakSequence"),re(d)?ie(e,c,"whitespace")(d):c(d))}}const Ce={continuation:{tokenize:Gd},exit:Jd,name:"list",tokenize:Wd},Vd={partial:!0,tokenize:Yd},$d={partial:!0,tokenize:Xd};function Wd(e,n,t){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return c;function c(u){const h=r.containerState.type||(u===42||u===43||u===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||u===r.containerState.marker:Wr(u)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),u===42||u===45?e.check(On,t,d)(u):d(u);if(!r.interrupt||u===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(u)}return t(u)}function f(u){return Wr(u)&&++a<10?(e.consume(u),f):(!r.interrupt||a<2)&&(r.containerState.marker?u===r.containerState.marker:u===41||u===46)?(e.exit("listItemValue"),d(u)):t(u)}function d(u){return e.enter("listItemMarker"),e.consume(u),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||u,e.check(Kt,r.interrupt?t:m,e.attempt(Vd,l,o))}function m(u){return r.containerState.initialBlankLine=!0,s++,l(u)}function o(u){return re(u)?(e.enter("listItemPrefixWhitespace"),e.consume(u),e.exit("listItemPrefixWhitespace"),l):t(u)}function l(u){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(u)}}function Gd(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Kt,i,s);function i(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ie(e,n,"listItemIndent",r.containerState.size+1)(c)}function s(c){return r.containerState.furtherBlankLines||!re(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($d,n,a)(c))}function a(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,ie(e,e.attempt(Ce,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function Xd(e,n,t){const r=this;return ie(e,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?n(s):t(s)}}function Jd(e){e.exit(this.containerState.type)}function Yd(e,n,t){const r=this;return ie(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!re(s)&&a&&a[1].type==="listItemPrefixWhitespace"?n(s):t(s)}}const So={name:"setextUnderline",resolveTo:Qd,tokenize:Zd};function Qd(e,n){let t=e.length,r,i,s;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!s&&e[t][1].type==="definition"&&(s=t);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",a,n]),e.splice(s+1,0,["exit",e[r][1],n]),e[r][1].end={...e[s][1].end}):e[r][1]=a,e.push(["exit",a,n]),e}function Zd(e,n,t){const r=this;let i;return s;function s(d){let m=r.events.length,o;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){o=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||o)?(e.enter("setextHeadingLine"),i=d,a(d)):t(d)}function a(d){return e.enter("setextHeadingLineSequence"),c(d)}function c(d){return d===i?(e.consume(d),c):(e.exit("setextHeadingLineSequence"),re(d)?ie(e,f,"lineSuffix")(d):f(d))}function f(d){return d===null||J(d)?(e.exit("setextHeadingLine"),n(d)):t(d)}}const Kd={tokenize:ep};function ep(e){const n=this,t=e.attempt(Kt,r,e.attempt(this.parser.constructs.flowInitial,i,ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(od,i)),"linePrefix")));return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const tp={resolveAll:ta()},np=ea("string"),rp=ea("text");function ea(e){return{resolveAll:ta(e==="text"?ip:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],s=t.attempt(i,a,c);return a;function a(m){return d(m)?s(m):c(m)}function c(m){if(m===null){t.consume(m);return}return t.enter("data"),t.consume(m),f}function f(m){return d(m)?(t.exit("data"),s(m)):(t.consume(m),f)}function d(m){if(m===null)return!0;const o=i[m];let l=-1;if(o)for(;++l-1){const c=a[0];typeof c=="string"?a[0]=c.slice(r):a.shift()}s>0&&a.push(e[i].slice(0,s))}return a}function yp(e,n){let t=-1;const r=[];let i;for(;++t