From 9831a307f248359f547960b8988c85c59ac525fc Mon Sep 17 00:00:00 2001 From: glink25 <49364151+glink25@users.noreply.github.com> Date: Sat, 16 Nov 2024 02:03:30 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20ef063?= =?UTF-8?q?53406aa918ec559f0e469ba6b869e2cf6aa=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 4 +- ...e.B0HPo3NL.js => RelativeTime.aFd-Wujx.js} | 2 +- _astro/_id_.CZR9Hhat.css | 1 + _astro/_id_.IznVr0L6.css | 1 - _astro/_page_.Cne2Ig7g.css | 1 - _astro/_page_.DU4zOVQI.css | 1 - _astro/_page_.Ds-ilYIN.css | 1 + _astro/_page_.aczPky-H.css | 1 + _astro/hoisted.B18nXKEa.js | 1 - _astro/hoisted.CNXiNeXq.js | 1 - _astro/hoisted.DLZmXOs4.js | 1 + _astro/hoisted.DWgALAmr.js | 1 - _astro/hoisted.D_Bt-IdI.js | 1 + ...oisted.Olqigeoh.js => hoisted.DnwpQtlg.js} | 6 +-- ...oisted.CclEGpPg.js => hoisted.Lkxst6j1.js} | 43 ++++++++++--------- _astro/hoisted.xc4L3aOo.js | 1 + edit/index.html | 8 ++-- index.html | 8 ++-- post/Urodele/index.html | 8 ++-- post/Welcome-to-Urodele/index.html | 8 ++-- tag/Urodele/index.html | 4 +- tag/Welcome/index.html | 4 +- tag/index.html | 4 +- 23 files changed, 56 insertions(+), 55 deletions(-) rename _astro/{RelativeTime.B0HPo3NL.js => RelativeTime.aFd-Wujx.js} (99%) create mode 100644 _astro/_id_.CZR9Hhat.css delete mode 100644 _astro/_id_.IznVr0L6.css delete mode 100644 _astro/_page_.Cne2Ig7g.css delete mode 100644 _astro/_page_.DU4zOVQI.css create mode 100644 _astro/_page_.Ds-ilYIN.css create mode 100644 _astro/_page_.aczPky-H.css delete mode 100644 _astro/hoisted.B18nXKEa.js delete mode 100644 _astro/hoisted.CNXiNeXq.js create mode 100644 _astro/hoisted.DLZmXOs4.js delete mode 100644 _astro/hoisted.DWgALAmr.js create mode 100644 _astro/hoisted.D_Bt-IdI.js rename _astro/{hoisted.Olqigeoh.js => hoisted.DnwpQtlg.js} (83%) rename _astro/{hoisted.CclEGpPg.js => hoisted.Lkxst6j1.js} (84%) create mode 100644 _astro/hoisted.xc4L3aOo.js diff --git a/404.html b/404.html index 6f00983..bbc2add 100644 --- a/404.html +++ b/404.html @@ -1,3 +1,3 @@ - Not Found | Urodele -
+ Not Found | Urodele +
Not Found ~
\ No newline at end of file diff --git a/_astro/RelativeTime.B0HPo3NL.js b/_astro/RelativeTime.aFd-Wujx.js similarity index 99% rename from _astro/RelativeTime.B0HPo3NL.js rename to _astro/RelativeTime.aFd-Wujx.js index 6d1d857..9c3bb29 100644 --- a/_astro/RelativeTime.B0HPo3NL.js +++ b/_astro/RelativeTime.aFd-Wujx.js @@ -1 +1 @@ -import{a as Q,b as K}from"./hoisted.Olqigeoh.js";var X={exports:{}};(function(w,b){(function(h,c){w.exports=c()})(Q,function(){var h=1e3,c=6e4,g=36e5,y="millisecond",S="second",_="minute",k="hour",f="day",x="week",m="month",N="quarter",T="year",O="date",j="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,J={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},Z=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},C={s:Z,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+Z(n,2,"0")+":"+Z(e,2,"0")},m:function s(r,t){if(r.date()1)return s(a[0])}else{var o=r.name;p[o]=r,e=o}return!n&&e&&(v=e),e||!n&&v},l=function(s,r){if(A(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new G(t)},u=C;u.l=q,u.i=A,u.w=function(s,r){return l(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var G=function(){function s(t){this.$L=q(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[E]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(u.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var a=e.match(F);if(a){var o=a[2]-1||0,d=(a[7]||"0").substring(0,3);return i?new Date(Date.UTC(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,d)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,d)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return u},r.isValid=function(){return this.$d.toString()!==j},r.isSame=function(t,n){var e=l(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return l(t)0,p<=v.r||!v.r){p<=1&&C>0&&(v=J[C-1]);var E=U[v.l];T&&(p=T(""+p)),j=typeof E=="string"?E.replace("%d",p):E(p,x,v.l,F);break}}if(x)return j;var A=F?U.future:U.past;return typeof A=="function"?A(j):A.replace("%s",j)},y.to=function(f,x){return _(f,x,this,!0)},y.from=function(f,x){return _(f,x,this)};var k=function(f){return f.$u?g.utc():g()};y.toNow=function(f){return this.to(k(this),f)},y.fromNow=function(f){return this.from(k(this),f)}}})})(tt);var st=tt.exports;const it=K(st);var et={exports:{}};(function(w,b){(function(h,c){w.exports=c()})(Q,function(){return function(h,c,g){c.prototype.isToday=function(){var y="YYYY-MM-DD",S=g();return this.format(y)===S.format(y)}}})})(et);var at=et.exports;const ut=K(at);var rt={exports:{}};(function(w,b){(function(h,c){w.exports=c()})(Q,function(){return function(h,c,g){c.prototype.isYesterday=function(){var y="YYYY-MM-DD",S=g().subtract(1,"day");return this.format(y)===S.format(y)}}})})(rt);var ot=rt.exports;const ct=K(ot);V.extend(it);V.extend(ut);V.extend(ct);function ft(w){const b=V(w),h=V();if(b.isToday())return"Today";if(b.isYesterday())return"Yesterday";const c=h.diff(b,"day");return c<7?`${c} Days ago`:h.year()===b.year()?b.format("MM/DD"):b.format("YYYY/MM/DD")}const ht=w=>{document.querySelectorAll(`[${w}]`).forEach(h=>{const c=h.getAttribute(w);if(c===null)return;const g=Number(c);h.textContent=`${ft(g)}`})};export{ht as m}; +import{a as Q,b as K}from"./hoisted.DnwpQtlg.js";var X={exports:{}};(function(w,b){(function(h,c){w.exports=c()})(Q,function(){var h=1e3,c=6e4,g=36e5,y="millisecond",S="second",_="minute",k="hour",f="day",x="week",m="month",N="quarter",T="year",O="date",j="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,J={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},Z=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},C={s:Z,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+Z(n,2,"0")+":"+Z(e,2,"0")},m:function s(r,t){if(r.date()1)return s(a[0])}else{var o=r.name;p[o]=r,e=o}return!n&&e&&(v=e),e||!n&&v},l=function(s,r){if(A(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new G(t)},u=C;u.l=q,u.i=A,u.w=function(s,r){return l(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var G=function(){function s(t){this.$L=q(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[E]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(u.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var a=e.match(F);if(a){var o=a[2]-1||0,d=(a[7]||"0").substring(0,3);return i?new Date(Date.UTC(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,d)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,d)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return u},r.isValid=function(){return this.$d.toString()!==j},r.isSame=function(t,n){var e=l(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return l(t)0,p<=v.r||!v.r){p<=1&&C>0&&(v=J[C-1]);var E=U[v.l];T&&(p=T(""+p)),j=typeof E=="string"?E.replace("%d",p):E(p,x,v.l,F);break}}if(x)return j;var A=F?U.future:U.past;return typeof A=="function"?A(j):A.replace("%s",j)},y.to=function(f,x){return _(f,x,this,!0)},y.from=function(f,x){return _(f,x,this)};var k=function(f){return f.$u?g.utc():g()};y.toNow=function(f){return this.to(k(this),f)},y.fromNow=function(f){return this.from(k(this),f)}}})})(tt);var st=tt.exports;const it=K(st);var et={exports:{}};(function(w,b){(function(h,c){w.exports=c()})(Q,function(){return function(h,c,g){c.prototype.isToday=function(){var y="YYYY-MM-DD",S=g();return this.format(y)===S.format(y)}}})})(et);var at=et.exports;const ut=K(at);var rt={exports:{}};(function(w,b){(function(h,c){w.exports=c()})(Q,function(){return function(h,c,g){c.prototype.isYesterday=function(){var y="YYYY-MM-DD",S=g().subtract(1,"day");return this.format(y)===S.format(y)}}})})(rt);var ot=rt.exports;const ct=K(ot);V.extend(it);V.extend(ut);V.extend(ct);function ft(w){const b=V(w),h=V();if(b.isToday())return"Today";if(b.isYesterday())return"Yesterday";const c=h.diff(b,"day");return c<7?`${c} Days ago`:h.year()===b.year()?b.format("MM/DD"):b.format("YYYY/MM/DD")}const ht=w=>{document.querySelectorAll(`[${w}]`).forEach(h=>{const c=h.getAttribute(w);if(c===null)return;const g=Number(c);h.textContent=`${ft(g)}`})};export{ht as m}; diff --git a/_astro/_id_.CZR9Hhat.css b/_astro/_id_.CZR9Hhat.css new file mode 100644 index 0000000..ac0f149 --- /dev/null +++ b/_astro/_id_.CZR9Hhat.css @@ -0,0 +1 @@ +@charset "UTF-8";.ud-root{width:100%;max-width:720px}.ud-root.read-only>*:not(:last-child){margin-bottom:12px}.ud-root .tiptap.ProseMirror{padding:20px;outline:none}.ud-root .tiptap.ProseMirror h1.is-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.ud-root .tiptap.ProseMirror .is-empty:not(h1):before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.ud-root .tiptap.ProseMirror>*:not(:last-child){margin-bottom:12px}.ud-root h1{display:block;font-size:2em;font-weight:700}.ud-root h2{display:block;font-size:1.5em;font-weight:700}.ud-root h3{display:block;font-size:1.17em;font-weight:700}.ud-root h4{display:block;font-weight:700}.ud-root img{max-width:100%}.ud-root blockquote{border-left:2px solid gray;margin:0;padding-left:8px;padding-right:8px}.ud-root code{border-radius:.125rem;background-color:#17171780;color:#fff;caret-color:#fff;padding:0 2px}.ud-root .llt-code{position:relative;padding-top:4px;background:#2d2b29;border-radius:.5rem}.ud-root .llt-code .language{position:absolute;right:4px;padding:0 4px;height:20px;background-color:var(--un-preset-theme-colors-bg, #fff);border:none;border-radius:4px;outline:none;font-size:12px}.ud-root pre{background:transparent;color:#fff;font-family:JetBrainsMono,monospace;margin:1.5rem 0;padding:.75rem 1rem}.ud-root pre code{background:none;color:inherit;font-size:.8rem;padding:0}.ud-root pre .hljs-comment,.ud-root pre .hljs-quote{color:#616161}.ud-root pre .hljs-variable,.ud-root pre .hljs-template-variable,.ud-root pre .hljs-attribute,.ud-root pre .hljs-tag,.ud-root pre .hljs-name,.ud-root pre .hljs-regexp,.ud-root pre .hljs-link,.ud-root pre .hljs-selector-id,.ud-root pre .hljs-selector-class{color:#f98181}.ud-root pre .hljs-number,.ud-root pre .hljs-meta,.ud-root pre .hljs-built_in,.ud-root pre .hljs-builtin-name,.ud-root pre .hljs-literal,.ud-root pre .hljs-type,.ud-root pre .hljs-params{color:#fbbc88}.ud-root pre .hljs-string,.ud-root pre .hljs-symbol,.ud-root pre .hljs-bullet{color:#b9f18d}.ud-root pre .hljs-title,.ud-root pre .hljs-section{color:#faf594}.ud-root pre .hljs-keyword,.ud-root pre .hljs-selector-tag{color:#70cff8}.ud-root pre .hljs-emphasis{font-style:italic}.ud-root pre .hljs-strong{font-weight:700}.ud-root a{color:#60a5fa}.ud-root ol{list-style-type:decimal;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:40px}.ud-root.front-handle{position:fixed;opacity:1;transition:opacity ease-in .2s;border-radius:.25rem;width:68px;height:1.5rem;z-index:50;display:flex;cursor:grab}.ud-root.front-handle.hide{opacity:0;pointer-events:none}.ud-root.front-handle .drag-handle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' style='fill: rgba(0, 0, 0, 0.5)'%3E%3Cpath d='M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z'%3E%3C/path%3E%3C/svg%3E");background-size:calc(.5em + .375rem) calc(.5em + .375rem);background-repeat:no-repeat;background-position:center}@media screen and (max-width: 600px){.ud-root.front-handle{display:none;pointer-events:none}}.ud-root button,.ud-rootbutton{appearance:none;outline:none;border:none;min-width:24px;min-height:24px;padding:4px;margin:0;background:transparent;transition:background-color .2s;border-radius:4px;display:flex;align-items:center;justify-content:center}.ud-root button:hover,.ud-rootbutton:hover{background-color:#f2f2f2}.ud-root button:active,.ud-rootbutton:active{background-color:#e5e5e5}.ud-root.bubble-menu{display:flex;gap:8px;padding:4px 8px;border:1px solid rgba(0,0,0,.05);border-radius:4px;box-shadow:0 1px 2px #0000000d;background-color:#fff}.ud-root.bubble-menu button.active{background-color:#ff0}.ud-root.slash-menu{display:flex;flex-flow:column nowrap;border:1px solid rgba(0,0,0,.05);border-radius:4px;box-shadow:0 1px 2px #0000000d;background-color:#fff}.ud-root.slash-menu button.selected{background-color:#ff0} diff --git a/_astro/_id_.IznVr0L6.css b/_astro/_id_.IznVr0L6.css deleted file mode 100644 index ff8f777..0000000 --- a/_astro/_id_.IznVr0L6.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.ud-root{width:100%;max-width:720px}.ud-root.read-only>*:not(:last-child){margin-bottom:12px}.ud-root .tiptap.ProseMirror{padding:20px;outline:none}.ud-root .tiptap.ProseMirror h1.is-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.ud-root .tiptap.ProseMirror .is-empty:not(h1):before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.ud-root .tiptap.ProseMirror>*:not(:last-child){margin-bottom:12px}.ud-root h1{display:block;font-size:2em;font-weight:700}.ud-root h2{display:block;font-size:1.5em;font-weight:700}.ud-root h3{display:block;font-size:1.17em;font-weight:700}.ud-root h4{display:block;font-weight:700}.ud-root img{max-width:100%}.ud-root blockquote{border-left:2px solid gray;margin:0;padding-left:8px;padding-right:8px}.ud-root code{border-radius:.125rem;background-color:#17171780;color:#fff;caret-color:#fff;padding:0 2px}.ud-root .llt-code{position:relative;padding-top:4px;background:#2d2b29;border-radius:.5rem}.ud-root .llt-code .language{position:absolute;right:4px;padding:0 4px;height:20px;background-color:#fff;border:none;border-radius:4px;outline:none;font-size:12px}.ud-root pre{background:transparent;color:#fff;font-family:JetBrainsMono,monospace;margin:1.5rem 0;padding:.75rem 1rem}.ud-root pre code{background:none;color:inherit;font-size:.8rem;padding:0}.ud-root pre .hljs-comment,.ud-root pre .hljs-quote{color:#616161}.ud-root pre .hljs-variable,.ud-root pre .hljs-template-variable,.ud-root pre .hljs-attribute,.ud-root pre .hljs-tag,.ud-root pre .hljs-name,.ud-root pre .hljs-regexp,.ud-root pre .hljs-link,.ud-root pre .hljs-selector-id,.ud-root pre .hljs-selector-class{color:#f98181}.ud-root pre .hljs-number,.ud-root pre .hljs-meta,.ud-root pre .hljs-built_in,.ud-root pre .hljs-builtin-name,.ud-root pre .hljs-literal,.ud-root pre .hljs-type,.ud-root pre .hljs-params{color:#fbbc88}.ud-root pre .hljs-string,.ud-root pre .hljs-symbol,.ud-root pre .hljs-bullet{color:#b9f18d}.ud-root pre .hljs-title,.ud-root pre .hljs-section{color:#faf594}.ud-root pre .hljs-keyword,.ud-root pre .hljs-selector-tag{color:#70cff8}.ud-root pre .hljs-emphasis{font-style:italic}.ud-root pre .hljs-strong{font-weight:700}.ud-root a{color:#60a5fa}.ud-root ol{list-style-type:decimal;margin-block-start:1em;margin-block-end:1em;margin-inline-start:0px;margin-inline-end:0px;padding-inline-start:40px}.ud-root.front-handle{position:fixed;opacity:1;transition:opacity ease-in .2s;border-radius:.25rem;width:68px;height:1.5rem;z-index:50;display:flex;cursor:grab}.ud-root.front-handle.hide{opacity:0;pointer-events:none}.ud-root.front-handle .drag-handle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' style='fill: rgba(0, 0, 0, 0.5)'%3E%3Cpath d='M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z'%3E%3C/path%3E%3C/svg%3E");background-size:calc(.5em + .375rem) calc(.5em + .375rem);background-repeat:no-repeat;background-position:center}@media screen and (max-width: 600px){.ud-root.front-handle{display:none;pointer-events:none}}.ud-root button,.ud-rootbutton{appearance:none;outline:none;border:none;min-width:24px;min-height:24px;padding:4px;margin:0;background:transparent;transition:background-color .2s;border-radius:4px;display:flex;align-items:center;justify-content:center}.ud-root button:hover,.ud-rootbutton:hover{background-color:#f2f2f2}.ud-root button:active,.ud-rootbutton:active{background-color:#e5e5e5}.ud-root.bubble-menu{display:flex;gap:8px;padding:4px 8px;border:1px solid rgba(0,0,0,.05);border-radius:4px;box-shadow:0 1px 2px #0000000d;background-color:#fff}.ud-root.bubble-menu button.active{background-color:#ff0}.ud-root.slash-menu{display:flex;flex-flow:column nowrap;border:1px solid rgba(0,0,0,.05);border-radius:4px;box-shadow:0 1px 2px #0000000d;background-color:#fff}.ud-root.slash-menu button.selected{background-color:#ff0} diff --git a/_astro/_page_.Cne2Ig7g.css b/_astro/_page_.Cne2Ig7g.css deleted file mode 100644 index 02a96c1..0000000 --- a/_astro/_page_.Cne2Ig7g.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-material-symbols\:sync-saved-locally-outline-rounded{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M10.925 11.225L9.5 9.8q-.15-.15-.325-.225T8.812 9.5t-.374.075T8.1 9.8q-.275.275-.275.7t.275.7l2.125 2.15q.3.3.7.3t.7-.3l4.65-4.25q0-.4-.05-.775t-.325-.65q-.3-.3-.713-.3t-.712.3zM1 21v-2h21q.425 0 .713.288T23 20t-.288.713T22 21zm3-3q-.825 0-1.412-.587T2 16V5q0-.825.588-1.412T4 3h16q.825 0 1.413.588T22 5v11q0 .825-.587 1.413T20 18zm0-2h16V5H4zm0 0V5z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:add-large-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13 11h9v2h-9v9h-2v-9H2v-2h9V2h2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:arrow-down-s-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m12 16l-6-6h12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:arrow-left-double-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m4.836 12l6.207 6.207l1.414-1.414L7.664 12l4.793-4.793l-1.414-1.414zm5.65 0l6.207 6.207l1.414-1.414L13.314 12l4.793-4.793l-1.414-1.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:arrow-right-double-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m19.164 12l-6.207-6.207l-1.414 1.414L16.336 12l-4.793 4.793l1.414 1.414zm-5.65 0L7.307 5.793L5.893 7.207L10.686 12l-4.793 4.793l1.414 1.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:close-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m12 10.587l4.95-4.95l1.414 1.414l-4.95 4.95l4.95 4.95l-1.415 1.414l-4.95-4.95l-4.949 4.95l-1.414-1.415l4.95-4.95l-4.95-4.95L7.05 5.638z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:menu-4-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 18v2H5v-2zm5-7v2H3v-2zm-2-7v2H8V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:quill-pen-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 1.997c-15 0-17 14-18 20h1.998q.999-5 5.002-5.5c4-.5 7-4 8-7l-1.5-1l1-1c1-1 2.004-2.5 3.5-5.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-svg-spinners\:ring-resize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg stroke='currentColor'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.group:hover .group-hover\:pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-\[100\]{z-index:100}.z-\[2\]{z-index:2}.z-\[50\]{z-index:50}.mr-6{margin-right:1.5rem}.mt-4{margin-top:1rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.max-w-\[40\%\]{max-width:40%}.max-w-\[720px\]{max-width:720px}.min-h-\[100px\]{min-height:100px}.min-w-\[200px\]{min-width:200px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[fit-content\]{width:fit-content}.w-3{width:.75rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex{display:flex}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.translate-y--2{--un-translate-y:-.5rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.group:hover .group-hover\:translate-y-0{--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.whitespace-nowrap{white-space:nowrap}.border{border-width:1px}.border-blue{--un-border-opacity:1;border-color:rgb(96 165 250 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}.bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250 / var(--un-bg-opacity))}.bg-blue-200{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity))}.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113 / var(--un-bg-opacity))}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.bg-yellow-200{--un-bg-opacity:1;background-color:rgb(254 240 138 / var(--un-bg-opacity))}.hover\:bg-gray-200:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-opacity-50{--un-bg-opacity:.5}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-black{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-blue{--un-text-opacity:1;color:rgb(96 165 250 / var(--un-text-opacity))}.text-gray{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.hover\:text-black:hover{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-opacity-60{--un-text-opacity:.6}.hover\:text-opacity-100:hover{--un-text-opacity:1}.font-bold{font-weight:700}.font-semibold{font-weight:600}.underline,.group:hover .group-hover\:underline{text-decoration-line:underline}.opacity-0{opacity:0}.group:hover .group-hover\:opacity-100{opacity:1}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-delay-\[0\.25s\]{transition-delay:.25s}.transition-delay-\[0\.2s\]{transition-delay:.2s} diff --git a/_astro/_page_.DU4zOVQI.css b/_astro/_page_.DU4zOVQI.css deleted file mode 100644 index 0417578..0000000 --- a/_astro/_page_.DU4zOVQI.css +++ /dev/null @@ -1 +0,0 @@ -body{padding-bottom:48px}.buttoned{display:flex;align-items:center;justify-content:center;gap:.5rem;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.buttoned:disabled{cursor:not-allowed;opacity:.5}.buttoned:not(:disabled):active{--un-brightness:brightness(.9);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.buttoned:not(:disabled):not(:active):hover{--un-brightness:brightness(.95);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.buttoned[data-loading]:before{content:"";width:.75rem;height:.75rem;background-size:contain;background-image:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg stroke='currentColor'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat}.buttoned[data-loading=false]:before{content:none}.text-button{display:flex;align-items:center;justify-content:center;gap:.5rem;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.text-button:hover{--un-bg-opacity:1;background-color:rgb(0,0,0,var(--un-bg-opacity));--un-bg-opacity:.1}.text-button:active{--un-bg-opacity:1;background-color:rgb(0,0,0,var(--un-bg-opacity));--un-bg-opacity:.2}div[data-modal-loading]{position:relative}div[data-modal-loading]:before{position:absolute;top:0;left:0;width:100%;height:100%;--un-bg-opacity:1;background-color:rgb(255,255,255,var(--un-bg-opacity));--un-bg-opacity:.8;content:"";background-size:24px;background-image:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg stroke='currentColor'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;pointer-events:all}div[data-modal-loading=false]:before{content:none}.fade-enter-active,.fade-leave-active{transition:opacity .25s ease}.fade-enter-from,.fade-leave-to{opacity:0}[data-page-draft]:not([data-page-draft=verified]){display:none;visibility:hidden}[data-page-draft] .page-title{position:relative}[data-page-draft] .page-title:after{content:"draft";position:absolute;left:calc(100% + 12px);border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(254,240,138,var(--un-bg-opacity));padding:.25rem .5rem;font-size:.75rem;line-height:1rem}main{display:flex;flex-flow:column nowrap;align-items:center}.content{width:100%;max-width:720px;padding:0 12px} diff --git a/_astro/_page_.Ds-ilYIN.css b/_astro/_page_.Ds-ilYIN.css new file mode 100644 index 0000000..2eb06ff --- /dev/null +++ b/_astro/_page_.Ds-ilYIN.css @@ -0,0 +1 @@ +body{padding-bottom:48px}header{position:sticky;top:0;z-index:20;--un-bg-opacity:var(--un-preset-theme-colors-bg--alpha, 1);background-color:rgb(var(--un-preset-theme-colors-bg)/var(--un-bg-opacity))}@media (prefers-color-scheme: dark){hr{border-color:#777}}.buttoned{display:flex;align-items:center;justify-content:center;gap:.5rem;border-radius:.25rem;padding:.25rem .5rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.buttoned:disabled{cursor:not-allowed;opacity:.5}.buttoned:not(:disabled):active{--un-brightness:brightness(.9);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.buttoned:not(:disabled):not(:active):hover{--un-brightness:brightness(.95);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.buttoned[data-loading]:before{content:"";width:.75rem;height:.75rem;background-size:contain;background-image:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg stroke='currentColor'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat}.buttoned[data-loading=false]:before{content:none}.text-button{display:flex;align-items:center;justify-content:center;gap:.5rem;border-radius:.25rem;padding:.25rem .5rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.text-button:hover{--un-bg-opacity:1;background-color:rgb(0,0,0,var(--un-bg-opacity));--un-bg-opacity:.1}.text-button:active{--un-bg-opacity:1;background-color:rgb(0,0,0,var(--un-bg-opacity));--un-bg-opacity:.2}div[data-modal-loading]{position:relative}div[data-modal-loading]:before{position:absolute;top:0;left:0;width:100%;height:100%;--un-bg-opacity:var(--un-preset-theme-colors-bg--alpha, 1);background-color:rgb(var(--un-preset-theme-colors-bg)/var(--un-bg-opacity));--un-bg-opacity:.8;content:"";background-size:24px;background-image:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg stroke='currentColor'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-linecap='round' stroke-width='3'%3E%3Canimate attributeName='stroke-dasharray' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0 150;42 150;42 150;42 150'/%3E%3Canimate attributeName='stroke-dashoffset' calcMode='spline' dur='1.5s' keySplines='0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1' keyTimes='0;0.475;0.95;1' repeatCount='indefinite' values='0;-16;-59;-59'/%3E%3C/circle%3E%3CanimateTransform attributeName='transform' dur='2s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/g%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;pointer-events:all}div[data-modal-loading=false]:before{content:none}.fade-enter-active,.fade-leave-active{transition:opacity .25s ease}.fade-enter-from,.fade-leave-to{opacity:0}[data-page-draft]:not([data-page-draft=verified]){display:none;visibility:hidden}[data-page-draft] .page-title{position:relative}[data-page-draft] .page-title:after{content:"draft";position:absolute;left:calc(100% + 12px);border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(254,240,138,var(--un-bg-opacity));padding:.25rem .5rem;font-size:.75rem;line-height:1rem}main{display:flex;flex-flow:column nowrap;align-items:center}.content{width:100%;max-width:720px;padding:0 12px} diff --git a/_astro/_page_.aczPky-H.css b/_astro/_page_.aczPky-H.css new file mode 100644 index 0000000..209b3b6 --- /dev/null +++ b/_astro/_page_.aczPky-H.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-ri\:add-large-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13 11h9v2h-9v9h-2v-9H2v-2h9V2h2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:arrow-down-s-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m12 16l-6-6h12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:arrow-left-double-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m4.836 12l6.207 6.207l1.414-1.414L7.664 12l4.793-4.793l-1.414-1.414zm5.65 0l6.207 6.207l1.414-1.414L13.314 12l4.793-4.793l-1.414-1.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:arrow-right-double-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m19.164 12l-6.207-6.207l-1.414 1.414L16.336 12l-4.793 4.793l1.414 1.414zm-5.65 0L7.307 5.793L5.893 7.207L10.686 12l-4.793 4.793l1.414 1.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:check-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m10 15.17l9.192-9.191l1.414 1.414L10 17.999l-6.364-6.364l1.414-1.414z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:close-line{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m12 10.587l4.95-4.95l1.414 1.414l-4.95 4.95l4.95 4.95l-1.415 1.414l-4.95-4.95l-4.949 4.95l-1.414-1.415l4.95-4.95l-4.95-4.95L7.05 5.638z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:menu-4-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 18v2H5v-2zm5-7v2H3v-2zm-2-7v2H8V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:quill-pen-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 1.997c-15 0-17 14-18 20h1.998q.999-5 5.002-5.5c4-.5 7-4 8-7l-1.5-1l1-1c1-1 2.004-2.5 3.5-5.5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ri\:send-plane-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M1.946 9.315c-.522-.174-.527-.455.01-.634L21.044 2.32c.529-.176.832.12.684.638l-5.454 19.086c-.15.529-.455.547-.679.045L12 14l6-8l-8 6z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-svg-spinners\:pulse{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Ccircle cx='12' cy='12' r='0' fill='currentColor'%3E%3Canimate attributeName='r' calcMode='spline' dur='1.2s' keySplines='.52,.6,.25,.99' repeatCount='indefinite' values='0;11'/%3E%3Canimate attributeName='opacity' calcMode='spline' dur='1.2s' keySplines='.52,.6,.25,.99' repeatCount='indefinite' values='1;0'/%3E%3C/circle%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}@media (prefers-color-scheme: dark){:root{--un-preset-theme-colors-bg:51 51 51;--un-preset-theme-colors-modal:36 36 36;--un-preset-theme-colors-text:255 255 255}}@media (prefers-color-scheme: light){:root{--un-preset-theme-colors-bg:255 255 255;--un-preset-theme-colors-modal:255 255 255;--un-preset-theme-colors-text:0 0 0}}.group:focus-within .group-focus-within\:pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-\[100\]{z-index:100}.z-\[2\]{z-index:2}.z-\[50\]{z-index:50}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.max-w-\[720px\]{max-width:720px}.min-h-\[100px\]{min-height:100px}.min-w-\[200px\]{min-width:200px}.w-\[180px\]{width:180px}.w-\[200px\]{width:200px}.w-\[fit-content\]{width:fit-content}.w-3{width:.75rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.flex{display:flex}.flex-\[45\%\]{flex:45%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.translate-y--2{--un-translate-y:-.5rem;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.group:focus-within .group-focus-within\:translate-y-0{--un-translate-y:0;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.whitespace-nowrap{white-space:nowrap}.border{border-width:1px}.border-blue{--un-border-opacity:1;border-color:rgb(96 165 250 / var(--un-border-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.bg-bg{--un-bg-opacity:var(--un-preset-theme-colors-bg--alpha, 1);background-color:rgb(var(--un-preset-theme-colors-bg) / var(--un-bg-opacity))}.bg-black{--un-bg-opacity:1;background-color:rgb(0 0 0 / var(--un-bg-opacity))}.bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250 / var(--un-bg-opacity))}.bg-blue-200{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity))}.bg-modal{--un-bg-opacity:var(--un-preset-theme-colors-modal--alpha, 1);background-color:rgb(var(--un-preset-theme-colors-modal) / var(--un-bg-opacity))}.bg-red{--un-bg-opacity:1;background-color:rgb(248 113 113 / var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.bg-yellow-200{--un-bg-opacity:1;background-color:rgb(254 240 138 / var(--un-bg-opacity))}.hover\:bg-gray-200:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pt-2{padding-top:.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-black{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-blue{--un-text-opacity:1;color:rgb(96 165 250 / var(--un-text-opacity))}.text-gray{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.text-green-500{--un-text-opacity:1;color:rgb(34 197 94 / var(--un-text-opacity))}.text-red{--un-text-opacity:1;color:rgb(248 113 113 / var(--un-text-opacity))}.text-text{--un-text-opacity:var(--un-preset-theme-colors-text--alpha, 1);color:rgb(var(--un-preset-theme-colors-text) / var(--un-text-opacity))}.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.hover\:text-black:hover{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.hover\:text-text:hover{--un-text-opacity:var(--un-preset-theme-colors-text--alpha, 1);color:rgb(var(--un-preset-theme-colors-text) / var(--un-text-opacity))}.text-opacity-60{--un-text-opacity:.6}.hover\:text-opacity-100:hover{--un-text-opacity:1}.font-bold{font-weight:700}.font-semibold{font-weight:600}.underline,.group:hover .group-hover\:underline{text-decoration-line:underline}.opacity-0{opacity:0}.group:focus-within .group-focus-within\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-delay-\[0\.25s\]{transition-delay:.25s}.transition-delay-\[0\.2s\]{transition-delay:.2s}@media (prefers-color-scheme: dark){.dark\:bg-blue{--un-bg-opacity:1;background-color:rgb(96 165 250 / var(--un-bg-opacity))}.dark\:bg-yellow{--un-bg-opacity:1;background-color:rgb(250 204 21 / var(--un-bg-opacity))}} diff --git a/_astro/hoisted.B18nXKEa.js b/_astro/hoisted.B18nXKEa.js deleted file mode 100644 index fd3bef3..0000000 --- a/_astro/hoisted.B18nXKEa.js +++ /dev/null @@ -1 +0,0 @@ -import{g as f,c as e}from"./hoisted.Olqigeoh.js";const u=async(c,d)=>{const t=document.querySelector(c);if(!t)return;const g=t?.getAttribute(d),i=new URL(location.href).searchParams.get("fromTag");if(!i)return;const o=decodeURIComponent(i),r=(await f()).filter(s=>s.tags.includes(o)),l=r.findIndex(s=>s.id===g),a=r[l+1],n=r[l-1];t?.replaceChildren(...[a?e("a",{href:`/post/${a.id}?fromTag=${o}`,class:"flex items-center gap-1 text-blue cursor-pointer max-w-[40%]"},e("div",{class:"i-ri:arrow-left-double-line w-5 h-5 flex-shrink-0"}),e("div",null,a.title)):e("div",null),n?e("a",{href:`/post/${n.id}?fromTag=${o}`,class:"flex items-center gap-1 text-blue cursor-pointer max-w-[40%]"},e("div",null,n.title),e("div",{class:"i-ri:arrow-right-double-line w-5 h-5 flex-shrink-0"})):e("div",null)].filter(Boolean))};u(".navigator","data-page-id"); diff --git a/_astro/hoisted.CNXiNeXq.js b/_astro/hoisted.CNXiNeXq.js deleted file mode 100644 index 047a784..0000000 --- a/_astro/hoisted.CNXiNeXq.js +++ /dev/null @@ -1 +0,0 @@ -import{m}from"./RelativeTime.B0HPo3NL.js";import"./hoisted.Olqigeoh.js";m("data-acc-time"); diff --git a/_astro/hoisted.DLZmXOs4.js b/_astro/hoisted.DLZmXOs4.js new file mode 100644 index 0000000..d87bc53 --- /dev/null +++ b/_astro/hoisted.DLZmXOs4.js @@ -0,0 +1 @@ +import{m}from"./RelativeTime.aFd-Wujx.js";import"./hoisted.DnwpQtlg.js";m("data-acc-time"); diff --git a/_astro/hoisted.DWgALAmr.js b/_astro/hoisted.DWgALAmr.js deleted file mode 100644 index 047a784..0000000 --- a/_astro/hoisted.DWgALAmr.js +++ /dev/null @@ -1 +0,0 @@ -import{m}from"./RelativeTime.B0HPo3NL.js";import"./hoisted.Olqigeoh.js";m("data-acc-time"); diff --git a/_astro/hoisted.D_Bt-IdI.js b/_astro/hoisted.D_Bt-IdI.js new file mode 100644 index 0000000..d87bc53 --- /dev/null +++ b/_astro/hoisted.D_Bt-IdI.js @@ -0,0 +1 @@ +import{m}from"./RelativeTime.aFd-Wujx.js";import"./hoisted.DnwpQtlg.js";m("data-acc-time"); diff --git a/_astro/hoisted.Olqigeoh.js b/_astro/hoisted.DnwpQtlg.js similarity index 83% rename from _astro/hoisted.Olqigeoh.js rename to _astro/hoisted.DnwpQtlg.js index cc662f9..1dd498d 100644 --- a/_astro/hoisted.Olqigeoh.js +++ b/_astro/hoisted.DnwpQtlg.js @@ -1,6 +1,6 @@ -const J=Object.keys;function Wr(e){return typeof e=="boolean"}function Hr(e){return e&&typeof e.nodeType=="number"}function X(e){return typeof e=="string"}function nr(e){return typeof e=="number"}function F(e){return typeof e=="object"?e!==null:M(e)}function M(e){return typeof e=="function"}function Nr(e){return!!(e&&e.isComponent)}function Mr(e){return F(e)&&typeof e.length=="number"&&typeof e.nodeType!="number"}function de(e,r){if(e)for(const t of J(e))r(e[t],t)}function Vr(){return Object.seal({current:null})}function zr(e){return F(e)&&"current"in e}const ge={animationIterationCount:0,borderImageOutset:0,borderImageSlice:0,borderImageWidth:0,boxFlex:0,boxFlexGroup:0,boxOrdinalGroup:0,columnCount:0,columns:0,flex:0,flexGrow:0,flexPositive:0,flexShrink:0,flexNegative:0,flexOrder:0,gridArea:0,gridRow:0,gridRowEnd:0,gridRowSpan:0,gridRowStart:0,gridColumn:0,gridColumnEnd:0,gridColumnSpan:0,gridColumnStart:0,fontWeight:0,lineClamp:0,lineHeight:0,opacity:0,order:0,orphans:0,tabSize:0,widows:0,zIndex:0,zoom:0,fillOpacity:0,floodOpacity:0,stopOpacity:0,strokeDasharray:0,strokeDashoffset:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0};function Kr(e,r){return e+r.charAt(0).toUpperCase()+r.substring(1)}const Qr=["Webkit","ms","Moz","O"];J(ge).forEach(e=>{Qr.forEach(r=>{ge[Kr(r,e)]=0})});const Jr=Symbol.for("jsx-dom:type");var ir=function(e){return e.ShadowRoot="ShadowRoot",e}(ir||{});function Xr(e){return e!=null&&e[Jr]===ir.ShadowRoot}const Yr="http://www.w3.org/2000/svg",Zr="http://www.w3.org/1999/xlink",et="http://www.w3.org/XML/1998/namespace";function ar(e){return!Wr(e)&&e!=null}function me(e){return Array.isArray(e)?e.map(me).filter(Boolean).join(" "):F(e)?Symbol.iterator in e?me(Array.from(e)):J(e).filter(r=>e[r]).join(" "):ar(e)?""+e:""}const rt={animate:0,circle:0,clipPath:0,defs:0,desc:0,ellipse:0,feBlend:0,feColorMatrix:0,feComponentTransfer:0,feComposite:0,feConvolveMatrix:0,feDiffuseLighting:0,feDisplacementMap:0,feDistantLight:0,feFlood:0,feFuncA:0,feFuncB:0,feFuncG:0,feFuncR:0,feGaussianBlur:0,feImage:0,feMerge:0,feMergeNode:0,feMorphology:0,feOffset:0,fePointLight:0,feSpecularLighting:0,feSpotLight:0,feTile:0,feTurbulence:0,filter:0,foreignObject:0,g:0,image:0,line:0,linearGradient:0,marker:0,mask:0,metadata:0,path:0,pattern:0,polygon:0,polyline:0,radialGradient:0,rect:0,stop:0,svg:0,switch:0,symbol:0,text:0,textPath:0,tspan:0,use:0,view:0},tt=/^(a(ll|t|u)|base[FP]|c(al|lipPathU|on)|di|ed|ex|filter[RU]|g(lyphR|r)|ke|l(en|im)|ma(rker[HUW]|s)|n|pat|pr|point[^e]|re[^n]|s[puy]|st[^or]|ta|textL|vi|xC|y|z)/;function st(e){const r=document.createDocumentFragment();return Y(e.children,r),r}function ot(e,r,t){r={...r,children:t};const o=new e(r),n=o.render();return"ref"in r&&Te(r.ref,o),n}function nt(e,r){let{children:t,...o}=r;!o.namespaceURI&&rt[e]===0&&(o={...o,namespaceURI:Yr});let n;if(X(e)){if(n=o.namespaceURI?document.createElementNS(o.namespaceURI,e):document.createElement(e),ct(o,n),Y(t,n),n instanceof window.HTMLSelectElement&&o.value!=null)if(o.multiple===!0&&Array.isArray(o.value)){const u=o.value.map(l=>String(l));n.querySelectorAll("option").forEach(l=>l.selected=u.includes(l.value))}else n.value=o.value;Te(o.ref,n)}else if(M(e))F(e.defaultProps)&&(o={...e.defaultProps,...o}),n=Nr(e)?ot(e,o,t):e({...o,children:t});else throw new TypeError(`Invalid JSX element type: ${e}`);return n}function b(e,r){for(var t=arguments.length,o=new Array(t>2?t-2:0),n=2;nr+t.toLowerCase())}function cr(e,r){r==null||r===!1||(Array.isArray(r)?r.forEach(t=>cr(e,t)):X(r)?e.setAttribute("style",r):F(r)&&de(r,(t,o)=>{o.indexOf("-")===0?e.style.setProperty(o,t):nr(t)&&ge[o]!==0?e.style[o]=t+"px":e.style[o]=t}))}function at(e,r,t){switch(e){case"xlinkActuate":case"xlinkArcrole":case"xlinkHref":case"xlinkRole":case"xlinkShow":case"xlinkTitle":case"xlinkType":Qe(t,Zr,K(e,":"),r);return;case"xmlnsXlink":U(t,K(e,":"),r);return;case"xmlBase":case"xmlLang":case"xmlSpace":Qe(t,et,K(e,":"),r);return}switch(e){case"htmlFor":U(t,"for",r);return;case"dataset":de(r,(o,n)=>{o!=null&&(t.dataset[n]=o)});return;case"innerHTML":case"innerText":case"textContent":ar(r)&&(t[e]=r);return;case"dangerouslySetInnerHTML":F(r)&&(t.innerHTML=r.__html);return;case"value":if(r==null||t instanceof window.HTMLSelectElement)return;if(t instanceof window.HTMLTextAreaElement){t.value=r;return}break;case"spellCheck":t.spellcheck=r;return;case"class":case"className":M(r)?r(t):U(t,"class",me(r));return;case"ref":case"namespaceURI":return;case"style":cr(t,r);return;case"on":case"onCapture":de(r,(o,n)=>{t.addEventListener(n,o,e==="onCapture")});return}if(M(r)){if(e[0]==="o"&&e[1]==="n"){let o=e.toLowerCase();const n=o.endsWith("capture");if(o==="ondoubleclick"?o="ondblclick":n&&o==="ondoubleclickcapture"&&(o="ondblclickcapture"),!n&&t[o]===null)t[o]=r;else if(n)t.addEventListener(o.substring(2,o.length-7),r,!0);else{let u;o in window?u=o.substring(2):u=o[2]+e.slice(3),t.addEventListener(u,r)}}}else F(r)?t[e]=r:r===!0?U(t,e,""):r!==!1&&r!=null&&(t instanceof SVGElement&&!tt.test(e)?U(t,K(e,"-"),r):U(t,e,r))}function U(e,r,t){e.setAttribute(r,t)}function Qe(e,r,t,o){e.setAttributeNS(r,t,o)}function ct(e,r){for(const t of J(e))at(t,e[t],r);return r}var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const ut={github:{login:"glink25",repo:"glink25.github.io"},head:{title:"Urodele"}};function Z(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}function _e(e,r,t,o){if(typeof t!="function")throw new Error("method for before hook must be a function");return o||(o={}),Array.isArray(r)?r.reverse().reduce((n,u)=>_e.bind(null,e,u,n,o),t)():Promise.resolve().then(()=>e.registry[r]?e.registry[r].reduce((n,u)=>u.hook.bind(null,n,o),t)():t(o))}function pt(e,r,t,o){const n=o;e.registry[t]||(e.registry[t]=[]),r==="before"&&(o=(u,l)=>Promise.resolve().then(n.bind(null,l)).then(u.bind(null,l))),r==="after"&&(o=(u,l)=>{let g;return Promise.resolve().then(u.bind(null,l)).then(E=>(g=E,n(g,l))).then(()=>g)}),r==="error"&&(o=(u,l)=>Promise.resolve().then(u.bind(null,l)).catch(g=>n(g,l))),e.registry[t].push({hook:o,orig:n})}function dt(e,r,t){if(!e.registry[r])return;const o=e.registry[r].map(n=>n.orig).indexOf(t);o!==-1&&e.registry[r].splice(o,1)}const Je=Function.bind,Xe=Je.bind(Je);function lr(e,r,t){const o=Xe(dt,null).apply(null,t?[r,t]:[r]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(n=>{const u=t?[r,n,t]:[r,n];e[n]=e.api[n]=Xe(pt,null).apply(null,u)})}function gt(){const e=Symbol("Singular"),r={registry:{}},t=_e.bind(null,r,e);return lr(t,r,e),t}function mt(){const e={registry:{}},r=_e.bind(null,e);return lr(r,e),r}const ht={Singular:gt,Collection:mt};var Et="0.0.0-development",ft=`octokit-endpoint.js/${Et} ${Z()}`,Tt={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ft},mediaType:{format:""}};function _t(e){return e?Object.keys(e).reduce((r,t)=>(r[t.toLowerCase()]=e[t],r),{}):{}}function bt(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;const r=Object.getPrototypeOf(e);if(r===null)return!0;const t=Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(e)}function ur(e,r){const t=Object.assign({},e);return Object.keys(r).forEach(o=>{bt(r[o])?o in e?t[o]=ur(e[o],r[o]):Object.assign(t,{[o]:r[o]}):Object.assign(t,{[o]:r[o]})}),t}function Ye(e){for(const r in e)e[r]===void 0&&delete e[r];return e}function he(e,r,t){if(typeof r=="string"){let[n,u]=r.split(" ");t=Object.assign(u?{method:n,url:u}:{url:n},t)}else t=Object.assign({},r);t.headers=_t(t.headers),Ye(t),Ye(t.headers);const o=ur(e||{},t);return t.url==="/graphql"&&(e&&e.mediaType.previews?.length&&(o.mediaType.previews=e.mediaType.previews.filter(n=>!o.mediaType.previews.includes(n)).concat(o.mediaType.previews)),o.mediaType.previews=(o.mediaType.previews||[]).map(n=>n.replace(/-preview/,""))),o}function wt(e,r){const t=/\?/.test(e)?"&":"?",o=Object.keys(r);return o.length===0?e:e+t+o.map(n=>n==="q"?"q="+r.q.split("+").map(encodeURIComponent).join("+"):`${n}=${encodeURIComponent(r[n])}`).join("&")}var yt=/\{[^}]+\}/g;function vt(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function kt(e){const r=e.match(yt);return r?r.map(vt).reduce((t,o)=>t.concat(o),[]):[]}function Ze(e,r){const t={__proto__:null};for(const o of Object.keys(e))r.indexOf(o)===-1&&(t[o]=e[o]);return t}function pr(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(r){return/%[0-9A-Fa-f]/.test(r)||(r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")),r}).join("")}function L(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})}function W(e,r,t){return r=e==="+"||e==="#"?pr(r):L(r),t?L(t)+"="+r:r}function D(e){return e!=null}function ce(e){return e===";"||e==="&"||e==="?"}function Pt(e,r,t,o){var n=e[t],u=[];if(D(n)&&n!=="")if(typeof n=="string"||typeof n=="number"||typeof n=="boolean")n=n.toString(),o&&o!=="*"&&(n=n.substring(0,parseInt(o,10))),u.push(W(r,n,ce(r)?t:""));else if(o==="*")Array.isArray(n)?n.filter(D).forEach(function(l){u.push(W(r,l,ce(r)?t:""))}):Object.keys(n).forEach(function(l){D(n[l])&&u.push(W(r,n[l],l))});else{const l=[];Array.isArray(n)?n.filter(D).forEach(function(g){l.push(W(r,g))}):Object.keys(n).forEach(function(g){D(n[g])&&(l.push(L(g)),l.push(W(r,n[g].toString())))}),ce(r)?u.push(L(t)+"="+l.join(",")):l.length!==0&&u.push(l.join(","))}else r===";"?D(n)&&u.push(L(t)):n===""&&(r==="&"||r==="?")?u.push(L(t)+"="):n===""&&u.push("");return u}function Gt(e){return{expand:Ot.bind(null,e)}}function Ot(e,r){var t=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(o,n,u){if(n){let g="";const E=[];if(t.indexOf(n.charAt(0))!==-1&&(g=n.charAt(0),n=n.substr(1)),n.split(/,/g).forEach(function(_){var T=/([^:\*]*)(?::(\d+)|(\*))?/.exec(_);E.push(Pt(r,g,T[1],T[2]||T[3]))}),g&&g!=="+"){var l=",";return g==="?"?l="&":g!=="#"&&(l=g),(E.length!==0?g:"")+E.join(l)}else return E.join(",")}else return pr(u)}),e==="/"?e:e.replace(/\/$/,"")}function dr(e){let r=e.method.toUpperCase(),t=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),o=Object.assign({},e.headers),n,u=Ze(e,["method","baseUrl","url","headers","request","mediaType"]);const l=kt(t);t=Gt(t).expand(u),/^http/.test(t)||(t=e.baseUrl+t);const g=Object.keys(e).filter(T=>l.includes(T)).concat("baseUrl"),E=Ze(u,g);if(!/application\/octet-stream/i.test(o.accept)&&(e.mediaType.format&&(o.accept=o.accept.split(/,/).map(T=>T.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),t.endsWith("/graphql")&&e.mediaType.previews?.length)){const T=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=T.concat(e.mediaType.previews).map(f=>{const y=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${f}-preview${y}`}).join(",")}return["GET","HEAD"].includes(r)?t=wt(t,E):"data"in E?n=E.data:Object.keys(E).length&&(n=E),!o["content-type"]&&typeof n<"u"&&(o["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&typeof n>"u"&&(n=""),Object.assign({method:r,url:t,headers:o},typeof n<"u"?{body:n}:null,e.request?{request:e.request}:null)}function Rt(e,r,t){return dr(he(e,r,t))}function gr(e,r){const t=he(e,r),o=Rt.bind(null,t);return Object.assign(o,{DEFAULTS:t,defaults:gr.bind(null,t),merge:he.bind(null,t),parse:dr})}var At=gr(null,Tt);class H extends Error{name;status;request;response;constructor(r,t,o){super(r),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in o&&(this.response=o.response);const n=Object.assign({},o.request);o.request.headers.authorization&&(n.headers=Object.assign({},o.request.headers,{authorization:o.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n}}var St="0.0.0-development",Ft={headers:{"user-agent":`octokit-request.js/${St} ${Z()}`}};function Ct(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;const r=Object.getPrototypeOf(e);if(r===null)return!0;const t=Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(e)}async function er(e){const r=e.request?.fetch||globalThis.fetch;if(!r)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const t=e.request?.log||console,o=e.request?.parseSuccessResponseBody!==!1,n=Ct(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,u=Object.fromEntries(Object.entries(e.headers).map(([f,y])=>[f,String(y)]));let l;try{l=await r(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:u,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(f){let y="Unknown Error";if(f instanceof Error){if(f.name==="AbortError")throw f.status=500,f;y=f.message,f.name==="TypeError"&&"cause"in f&&(f.cause instanceof Error?y=f.cause.message:typeof f.cause=="string"&&(y=f.cause))}const O=new H(y,500,{request:e});throw O.cause=f,O}const g=l.status,E=l.url,_={};for(const[f,y]of l.headers)_[f]=y;const T={url:E,status:g,headers:_,data:""};if("deprecation"in _){const f=_.link&&_.link.match(/<([^>]+)>; rel="deprecation"/),y=f&&f.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${_.sunset}${y?`. See ${y}`:""}`)}if(g===204||g===205)return T;if(e.method==="HEAD"){if(g<400)return T;throw new H(l.statusText,g,{response:T,request:e})}if(g===304)throw T.data=await le(l),new H("Not modified",g,{response:T,request:e});if(g>=400)throw T.data=await le(l),new H(Ut(T.data),g,{response:T,request:e});return T.data=o?await le(l):l.body,T}async function le(e){const r=e.headers.get("content-type");return/application\/json/.test(r)?e.json().catch(()=>e.text()).catch(()=>""):!r||/^text\/|charset=utf-8$/.test(r)?e.text():e.arrayBuffer()}function Ut(e){if(typeof e=="string")return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const r="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(t=>JSON.stringify(t)).join(", ")}${r}`:`${e.message}${r}`}return`Unknown error: ${JSON.stringify(e)}`}function Ee(e,r){const t=e.defaults(r);return Object.assign(function(n,u){const l=t.merge(n,u);if(!l.request||!l.request.hook)return er(t.parse(l));const g=(E,_)=>er(t.parse(t.merge(E,_)));return Object.assign(g,{endpoint:t,defaults:Ee.bind(null,t)}),l.request.hook(g,l)},{endpoint:t,defaults:Ee.bind(null,t)})}var fe=Ee(At,Ft),Dt="0.0.0-development";function Lt(e){return`Request failed due to following response errors: +const J=Object.keys;function Wr(e){return typeof e=="boolean"}function Hr(e){return e&&typeof e.nodeType=="number"}function X(e){return typeof e=="string"}function nr(e){return typeof e=="number"}function F(e){return typeof e=="object"?e!==null:M(e)}function M(e){return typeof e=="function"}function Nr(e){return!!(e&&e.isComponent)}function Mr(e){return F(e)&&typeof e.length=="number"&&typeof e.nodeType!="number"}function de(e,r){if(e)for(const t of J(e))r(e[t],t)}function Vr(){return Object.seal({current:null})}function zr(e){return F(e)&&"current"in e}const ge={animationIterationCount:0,borderImageOutset:0,borderImageSlice:0,borderImageWidth:0,boxFlex:0,boxFlexGroup:0,boxOrdinalGroup:0,columnCount:0,columns:0,flex:0,flexGrow:0,flexPositive:0,flexShrink:0,flexNegative:0,flexOrder:0,gridArea:0,gridRow:0,gridRowEnd:0,gridRowSpan:0,gridRowStart:0,gridColumn:0,gridColumnEnd:0,gridColumnSpan:0,gridColumnStart:0,fontWeight:0,lineClamp:0,lineHeight:0,opacity:0,order:0,orphans:0,tabSize:0,widows:0,zIndex:0,zoom:0,fillOpacity:0,floodOpacity:0,stopOpacity:0,strokeDasharray:0,strokeDashoffset:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0};function Kr(e,r){return e+r.charAt(0).toUpperCase()+r.substring(1)}const Qr=["Webkit","ms","Moz","O"];J(ge).forEach(e=>{Qr.forEach(r=>{ge[Kr(r,e)]=0})});const Jr=Symbol.for("jsx-dom:type");var ir=function(e){return e.ShadowRoot="ShadowRoot",e}(ir||{});function Xr(e){return e!=null&&e[Jr]===ir.ShadowRoot}const Yr="http://www.w3.org/2000/svg",Zr="http://www.w3.org/1999/xlink",et="http://www.w3.org/XML/1998/namespace";function ar(e){return!Wr(e)&&e!=null}function me(e){return Array.isArray(e)?e.map(me).filter(Boolean).join(" "):F(e)?Symbol.iterator in e?me(Array.from(e)):J(e).filter(r=>e[r]).join(" "):ar(e)?""+e:""}const rt={animate:0,circle:0,clipPath:0,defs:0,desc:0,ellipse:0,feBlend:0,feColorMatrix:0,feComponentTransfer:0,feComposite:0,feConvolveMatrix:0,feDiffuseLighting:0,feDisplacementMap:0,feDistantLight:0,feFlood:0,feFuncA:0,feFuncB:0,feFuncG:0,feFuncR:0,feGaussianBlur:0,feImage:0,feMerge:0,feMergeNode:0,feMorphology:0,feOffset:0,fePointLight:0,feSpecularLighting:0,feSpotLight:0,feTile:0,feTurbulence:0,filter:0,foreignObject:0,g:0,image:0,line:0,linearGradient:0,marker:0,mask:0,metadata:0,path:0,pattern:0,polygon:0,polyline:0,radialGradient:0,rect:0,stop:0,svg:0,switch:0,symbol:0,text:0,textPath:0,tspan:0,use:0,view:0},tt=/^(a(ll|t|u)|base[FP]|c(al|lipPathU|on)|di|ed|ex|filter[RU]|g(lyphR|r)|ke|l(en|im)|ma(rker[HUW]|s)|n|pat|pr|point[^e]|re[^n]|s[puy]|st[^or]|ta|textL|vi|xC|y|z)/;function st(e){const r=document.createDocumentFragment();return Y(e.children,r),r}function ot(e,r,t){r={...r,children:t};const o=new e(r),n=o.render();return"ref"in r&&Te(r.ref,o),n}function nt(e,r){let{children:t,...o}=r;!o.namespaceURI&&rt[e]===0&&(o={...o,namespaceURI:Yr});let n;if(X(e)){if(n=o.namespaceURI?document.createElementNS(o.namespaceURI,e):document.createElement(e),ct(o,n),Y(t,n),n instanceof window.HTMLSelectElement&&o.value!=null)if(o.multiple===!0&&Array.isArray(o.value)){const c=o.value.map(l=>String(l));n.querySelectorAll("option").forEach(l=>l.selected=c.includes(l.value))}else n.value=o.value;Te(o.ref,n)}else if(M(e))F(e.defaultProps)&&(o={...e.defaultProps,...o}),n=Nr(e)?ot(e,o,t):e({...o,children:t});else throw new TypeError(`Invalid JSX element type: ${e}`);return n}function b(e,r){for(var t=arguments.length,o=new Array(t>2?t-2:0),n=2;nr+t.toLowerCase())}function cr(e,r){r==null||r===!1||(Array.isArray(r)?r.forEach(t=>cr(e,t)):X(r)?e.setAttribute("style",r):F(r)&&de(r,(t,o)=>{o.indexOf("-")===0?e.style.setProperty(o,t):nr(t)&&ge[o]!==0?e.style[o]=t+"px":e.style[o]=t}))}function at(e,r,t){switch(e){case"xlinkActuate":case"xlinkArcrole":case"xlinkHref":case"xlinkRole":case"xlinkShow":case"xlinkTitle":case"xlinkType":Qe(t,Zr,K(e,":"),r);return;case"xmlnsXlink":U(t,K(e,":"),r);return;case"xmlBase":case"xmlLang":case"xmlSpace":Qe(t,et,K(e,":"),r);return}switch(e){case"htmlFor":U(t,"for",r);return;case"dataset":de(r,(o,n)=>{o!=null&&(t.dataset[n]=o)});return;case"innerHTML":case"innerText":case"textContent":ar(r)&&(t[e]=r);return;case"dangerouslySetInnerHTML":F(r)&&(t.innerHTML=r.__html);return;case"value":if(r==null||t instanceof window.HTMLSelectElement)return;if(t instanceof window.HTMLTextAreaElement){t.value=r;return}break;case"spellCheck":t.spellcheck=r;return;case"class":case"className":M(r)?r(t):U(t,"class",me(r));return;case"ref":case"namespaceURI":return;case"style":cr(t,r);return;case"on":case"onCapture":de(r,(o,n)=>{t.addEventListener(n,o,e==="onCapture")});return}if(M(r)){if(e[0]==="o"&&e[1]==="n"){let o=e.toLowerCase();const n=o.endsWith("capture");if(o==="ondoubleclick"?o="ondblclick":n&&o==="ondoubleclickcapture"&&(o="ondblclickcapture"),!n&&t[o]===null)t[o]=r;else if(n)t.addEventListener(o.substring(2,o.length-7),r,!0);else{let c;o in window?c=o.substring(2):c=o[2]+e.slice(3),t.addEventListener(c,r)}}}else F(r)?t[e]=r:r===!0?U(t,e,""):r!==!1&&r!=null&&(t instanceof SVGElement&&!tt.test(e)?U(t,K(e,"-"),r):U(t,e,r))}function U(e,r,t){e.setAttribute(r,t)}function Qe(e,r,t,o){e.setAttributeNS(r,t,o)}function ct(e,r){for(const t of J(e))at(t,e[t],r);return r}var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const ut={github:{login:"glink25",repo:"glink25.github.io"},head:{title:"Urodele"}};function Z(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}function _e(e,r,t,o){if(typeof t!="function")throw new Error("method for before hook must be a function");return o||(o={}),Array.isArray(r)?r.reverse().reduce((n,c)=>_e.bind(null,e,c,n,o),t)():Promise.resolve().then(()=>e.registry[r]?e.registry[r].reduce((n,c)=>c.hook.bind(null,n,o),t)():t(o))}function pt(e,r,t,o){const n=o;e.registry[t]||(e.registry[t]=[]),r==="before"&&(o=(c,l)=>Promise.resolve().then(n.bind(null,l)).then(c.bind(null,l))),r==="after"&&(o=(c,l)=>{let g;return Promise.resolve().then(c.bind(null,l)).then(m=>(g=m,n(g,l))).then(()=>g)}),r==="error"&&(o=(c,l)=>Promise.resolve().then(c.bind(null,l)).catch(g=>n(g,l))),e.registry[t].push({hook:o,orig:n})}function dt(e,r,t){if(!e.registry[r])return;const o=e.registry[r].map(n=>n.orig).indexOf(t);o!==-1&&e.registry[r].splice(o,1)}const Je=Function.bind,Xe=Je.bind(Je);function lr(e,r,t){const o=Xe(dt,null).apply(null,t?[r,t]:[r]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(n=>{const c=t?[r,n,t]:[r,n];e[n]=e.api[n]=Xe(pt,null).apply(null,c)})}function gt(){const e=Symbol("Singular"),r={registry:{}},t=_e.bind(null,r,e);return lr(t,r,e),t}function mt(){const e={registry:{}},r=_e.bind(null,e);return lr(r,e),r}const ht={Singular:gt,Collection:mt};var Et="0.0.0-development",ft=`octokit-endpoint.js/${Et} ${Z()}`,Tt={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ft},mediaType:{format:""}};function _t(e){return e?Object.keys(e).reduce((r,t)=>(r[t.toLowerCase()]=e[t],r),{}):{}}function bt(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;const r=Object.getPrototypeOf(e);if(r===null)return!0;const t=Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(e)}function ur(e,r){const t=Object.assign({},e);return Object.keys(r).forEach(o=>{bt(r[o])?o in e?t[o]=ur(e[o],r[o]):Object.assign(t,{[o]:r[o]}):Object.assign(t,{[o]:r[o]})}),t}function Ye(e){for(const r in e)e[r]===void 0&&delete e[r];return e}function he(e,r,t){if(typeof r=="string"){let[n,c]=r.split(" ");t=Object.assign(c?{method:n,url:c}:{url:n},t)}else t=Object.assign({},r);t.headers=_t(t.headers),Ye(t),Ye(t.headers);const o=ur(e||{},t);return t.url==="/graphql"&&(e&&e.mediaType.previews?.length&&(o.mediaType.previews=e.mediaType.previews.filter(n=>!o.mediaType.previews.includes(n)).concat(o.mediaType.previews)),o.mediaType.previews=(o.mediaType.previews||[]).map(n=>n.replace(/-preview/,""))),o}function wt(e,r){const t=/\?/.test(e)?"&":"?",o=Object.keys(r);return o.length===0?e:e+t+o.map(n=>n==="q"?"q="+r.q.split("+").map(encodeURIComponent).join("+"):`${n}=${encodeURIComponent(r[n])}`).join("&")}var yt=/\{[^}]+\}/g;function vt(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function kt(e){const r=e.match(yt);return r?r.map(vt).reduce((t,o)=>t.concat(o),[]):[]}function Ze(e,r){const t={__proto__:null};for(const o of Object.keys(e))r.indexOf(o)===-1&&(t[o]=e[o]);return t}function pr(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(r){return/%[0-9A-Fa-f]/.test(r)||(r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")),r}).join("")}function L(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()})}function W(e,r,t){return r=e==="+"||e==="#"?pr(r):L(r),t?L(t)+"="+r:r}function D(e){return e!=null}function ce(e){return e===";"||e==="&"||e==="?"}function Pt(e,r,t,o){var n=e[t],c=[];if(D(n)&&n!=="")if(typeof n=="string"||typeof n=="number"||typeof n=="boolean")n=n.toString(),o&&o!=="*"&&(n=n.substring(0,parseInt(o,10))),c.push(W(r,n,ce(r)?t:""));else if(o==="*")Array.isArray(n)?n.filter(D).forEach(function(l){c.push(W(r,l,ce(r)?t:""))}):Object.keys(n).forEach(function(l){D(n[l])&&c.push(W(r,n[l],l))});else{const l=[];Array.isArray(n)?n.filter(D).forEach(function(g){l.push(W(r,g))}):Object.keys(n).forEach(function(g){D(n[g])&&(l.push(L(g)),l.push(W(r,n[g].toString())))}),ce(r)?c.push(L(t)+"="+l.join(",")):l.length!==0&&c.push(l.join(","))}else r===";"?D(n)&&c.push(L(t)):n===""&&(r==="&"||r==="?")?c.push(L(t)+"="):n===""&&c.push("");return c}function Gt(e){return{expand:Ot.bind(null,e)}}function Ot(e,r){var t=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(o,n,c){if(n){let g="";const m=[];if(t.indexOf(n.charAt(0))!==-1&&(g=n.charAt(0),n=n.substr(1)),n.split(/,/g).forEach(function(T){var _=/([^:\*]*)(?::(\d+)|(\*))?/.exec(T);m.push(Pt(r,g,_[1],_[2]||_[3]))}),g&&g!=="+"){var l=",";return g==="?"?l="&":g!=="#"&&(l=g),(m.length!==0?g:"")+m.join(l)}else return m.join(",")}else return pr(c)}),e==="/"?e:e.replace(/\/$/,"")}function dr(e){let r=e.method.toUpperCase(),t=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),o=Object.assign({},e.headers),n,c=Ze(e,["method","baseUrl","url","headers","request","mediaType"]);const l=kt(t);t=Gt(t).expand(c),/^http/.test(t)||(t=e.baseUrl+t);const g=Object.keys(e).filter(_=>l.includes(_)).concat("baseUrl"),m=Ze(c,g);if(!/application\/octet-stream/i.test(o.accept)&&(e.mediaType.format&&(o.accept=o.accept.split(/,/).map(_=>_.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),t.endsWith("/graphql")&&e.mediaType.previews?.length)){const _=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=_.concat(e.mediaType.previews).map(f=>{const y=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${f}-preview${y}`}).join(",")}return["GET","HEAD"].includes(r)?t=wt(t,m):"data"in m?n=m.data:Object.keys(m).length&&(n=m),!o["content-type"]&&typeof n<"u"&&(o["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&typeof n>"u"&&(n=""),Object.assign({method:r,url:t,headers:o},typeof n<"u"?{body:n}:null,e.request?{request:e.request}:null)}function Rt(e,r,t){return dr(he(e,r,t))}function gr(e,r){const t=he(e,r),o=Rt.bind(null,t);return Object.assign(o,{DEFAULTS:t,defaults:gr.bind(null,t),merge:he.bind(null,t),parse:dr})}var At=gr(null,Tt);class H extends Error{name;status;request;response;constructor(r,t,o){super(r),this.name="HttpError",this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),"response"in o&&(this.response=o.response);const n=Object.assign({},o.request);o.request.headers.authorization&&(n.headers=Object.assign({},o.request.headers,{authorization:o.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n}}var St="0.0.0-development",Ft={headers:{"user-agent":`octokit-request.js/${St} ${Z()}`}};function Ct(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;const r=Object.getPrototypeOf(e);if(r===null)return!0;const t=Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor;return typeof t=="function"&&t instanceof t&&Function.prototype.call(t)===Function.prototype.call(e)}async function er(e){const r=e.request?.fetch||globalThis.fetch;if(!r)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");const t=e.request?.log||console,o=e.request?.parseSuccessResponseBody!==!1,n=Ct(e.body)||Array.isArray(e.body)?JSON.stringify(e.body):e.body,c=Object.fromEntries(Object.entries(e.headers).map(([f,y])=>[f,String(y)]));let l;try{l=await r(e.url,{method:e.method,body:n,redirect:e.request?.redirect,headers:c,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(f){let y="Unknown Error";if(f instanceof Error){if(f.name==="AbortError")throw f.status=500,f;y=f.message,f.name==="TypeError"&&"cause"in f&&(f.cause instanceof Error?y=f.cause.message:typeof f.cause=="string"&&(y=f.cause))}const O=new H(y,500,{request:e});throw O.cause=f,O}const g=l.status,m=l.url,T={};for(const[f,y]of l.headers)T[f]=y;const _={url:m,status:g,headers:T,data:""};if("deprecation"in T){const f=T.link&&T.link.match(/<([^>]+)>; rel="deprecation"/),y=f&&f.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${T.sunset}${y?`. See ${y}`:""}`)}if(g===204||g===205)return _;if(e.method==="HEAD"){if(g<400)return _;throw new H(l.statusText,g,{response:_,request:e})}if(g===304)throw _.data=await le(l),new H("Not modified",g,{response:_,request:e});if(g>=400)throw _.data=await le(l),new H(Ut(_.data),g,{response:_,request:e});return _.data=o?await le(l):l.body,_}async function le(e){const r=e.headers.get("content-type");return/application\/json/.test(r)?e.json().catch(()=>e.text()).catch(()=>""):!r||/^text\/|charset=utf-8$/.test(r)?e.text():e.arrayBuffer()}function Ut(e){if(typeof e=="string")return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){const r="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(t=>JSON.stringify(t)).join(", ")}${r}`:`${e.message}${r}`}return`Unknown error: ${JSON.stringify(e)}`}function Ee(e,r){const t=e.defaults(r);return Object.assign(function(n,c){const l=t.merge(n,c);if(!l.request||!l.request.hook)return er(t.parse(l));const g=(m,T)=>er(t.parse(t.merge(m,T)));return Object.assign(g,{endpoint:t,defaults:Ee.bind(null,t)}),l.request.hook(g,l)},{endpoint:t,defaults:Ee.bind(null,t)})}var fe=Ee(At,Ft),Dt="0.0.0-development";function Lt(e){return`Request failed due to following response errors: `+e.errors.map(r=>` - ${r.message}`).join(` -`)}var It=class extends Error{constructor(e,r,t){super(Lt(t)),this.request=e,this.headers=r,this.response=t,this.errors=t.errors,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},xt=["method","baseUrl","url","headers","request","query","mediaType"],jt=["query","method","url"],rr=/\/api\/v3\/?$/;function qt(e,r,t){if(t){if(typeof r=="string"&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const l in t)if(jt.includes(l))return Promise.reject(new Error(`[@octokit/graphql] "${l}" cannot be used as variable name`))}const o=typeof r=="string"?Object.assign({query:r},t):r,n=Object.keys(o).reduce((l,g)=>xt.includes(g)?(l[g]=o[g],l):(l.variables||(l.variables={}),l.variables[g]=o[g],l),{}),u=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return rr.test(u)&&(n.url=u.replace(rr,"/api/graphql")),e(n).then(l=>{if(l.data.errors){const g={};for(const E of Object.keys(l.headers))g[E]=l.headers[E];throw new It(n,g,l.data)}return l.data.data})}function be(e,r){const t=e.defaults(r);return Object.assign((n,u)=>qt(t,n,u),{defaults:be.bind(null,t),endpoint:t.endpoint})}be(fe,{headers:{"user-agent":`octokit-graphql.js/${Dt} ${Z()}`},method:"POST",url:"/graphql"});function $t(e){return be(e,{method:"POST",url:"/graphql"})}var Bt=/^v1\./,Wt=/^ghs_/,Ht=/^ghu_/;async function Nt(e){const r=e.split(/\./).length===3,t=Bt.test(e)||Wt.test(e),o=Ht.test(e);return{type:"token",token:e,tokenType:r?"app":t?"installation":o?"user-to-server":"oauth"}}function Mt(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function Vt(e,r,t,o){const n=r.endpoint.merge(t,o);return n.headers.authorization=Mt(e),r(n)}var zt=function(r){if(!r)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof r!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return r=r.replace(/^(token|bearer) +/i,""),Object.assign(Nt.bind(null,r),{hook:Vt.bind(null,r)})};const mr="6.1.2",tr=()=>{},Kt=console.warn.bind(console),Qt=console.error.bind(console),sr=`octokit-core.js/${mr} ${Z()}`;let Jt=class{static VERSION=mr;static defaults(r){return class extends this{constructor(...o){const n=o[0]||{};if(typeof r=="function"){super(r(n));return}super(Object.assign({},r,n,n.userAgent&&r.userAgent?{userAgent:`${n.userAgent} ${r.userAgent}`}:null))}}}static plugins=[];static plugin(...r){const t=this.plugins;return class extends this{static plugins=t.concat(r.filter(n=>!t.includes(n)))}}constructor(r={}){const t=new ht.Collection,o={baseUrl:fe.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};if(o.headers["user-agent"]=r.userAgent?`${r.userAgent} ${sr}`:sr,r.baseUrl&&(o.baseUrl=r.baseUrl),r.previews&&(o.mediaType.previews=r.previews),r.timeZone&&(o.headers["time-zone"]=r.timeZone),this.request=fe.defaults(o),this.graphql=$t(this.request).defaults(o),this.log=Object.assign({debug:tr,info:tr,warn:Kt,error:Qt},r.log),this.hook=t,r.authStrategy){const{authStrategy:u,...l}=r,g=u(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:l},r.auth));t.wrap("request",g.hook),this.auth=g}else if(!r.auth)this.auth=async()=>({type:"unauthenticated"});else{const u=zt(r.auth);t.wrap("request",u.hook),this.auth=u}const n=this.constructor;for(let u=0;u({async next(){if(!g)return{done:!0};try{const E=await n({method:u,url:g,headers:l}),_=Yt(E);return g=((_.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:_}}catch(E){if(E.status!==409)throw E;return g="",{value:{status:200,headers:{},data:[]}}}}})}}function hr(e,r,t,o){return typeof t=="function"&&(o=t,t=void 0),Er(e,[],we(e,r,t)[Symbol.asyncIterator](),o)}function Er(e,r,t,o){return t.next().then(n=>{if(n.done)return r;let u=!1;function l(){u=!0}return r=r.concat(o?o(n.value,l):n.value.data),u?r:Er(e,r,t,o)})}Object.assign(hr,{iterator:we});function fr(e){return{paginate:Object.assign(hr.bind(null,e),{iterator:we.bind(null,e)})}}fr.VERSION=Xt;var Zt=(e,r)=>`The cursor at "${e.join(",")}" did not change its value "${r}" after a page transition. Please make sure your that your query is set up correctly.`,es=class extends Error{constructor(e,r){super(Zt(e.pathInQuery,r)),this.pageInfo=e,this.cursorValue=r,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="MissingCursorChangeError"},rs=class extends Error{constructor(e){super(`No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: ${JSON.stringify(e,null,2)}`),this.response=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="MissingPageInfo"},ts=e=>Object.prototype.toString.call(e)==="[object Object]";function Tr(e){const r=_r(e,"pageInfo");if(r.length===0)throw new rs(e);return r}var _r=(e,r,t=[])=>{for(const o of Object.keys(e)){const n=[...t,o],u=e[o];if(ts(u)){if(u.hasOwnProperty(r))return n;const l=_r(u,r,n);if(l.length>0)return l}}return[]},N=(e,r)=>r.reduce((t,o)=>t[o],e),ue=(e,r,t)=>{const o=r[r.length-1],n=[...r].slice(0,-1),u=N(e,n);typeof t=="function"?u[o]=t(u[o]):u[o]=t},ss=e=>{const r=Tr(e);return{pathInQuery:r,pageInfo:N(e,[...r,"pageInfo"])}},br=e=>e.hasOwnProperty("hasNextPage"),os=e=>br(e)?e.endCursor:e.startCursor,ns=e=>br(e)?e.hasNextPage:e.hasPreviousPage,wr=e=>(r,t={})=>{let o=!0,n={...t};return{[Symbol.asyncIterator]:()=>({async next(){if(!o)return{done:!0,value:{}};const u=await e.graphql(r,n),l=ss(u),g=os(l.pageInfo);if(o=ns(l.pageInfo),o&&g===n.cursor)throw new es(l,g);return n={...n,cursor:g},{done:!1,value:u}}})}},is=(e,r)=>{if(Object.keys(e).length===0)return Object.assign(e,r);const t=Tr(e),o=[...t,"nodes"],n=N(r,o);n&&ue(e,o,E=>[...E,...n]);const u=[...t,"edges"],l=N(r,u);l&&ue(e,u,E=>[...E,...l]);const g=[...t,"pageInfo"];return ue(e,g,N(r,g)),e},as=e=>{const r=wr(e);return async(t,o={})=>{let n={};for await(const u of r(t,o))n=is(n,u);return n}};function cs(e){return{graphql:Object.assign(e.graphql,{paginate:Object.assign(as(e),{iterator:wr(e)})})}}const ls="13.2.6",us={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var ps=us;const S=new Map;for(const[e,r]of Object.entries(ps))for(const[t,o]of Object.entries(r)){const[n,u,l]=o,[g,E]=n.split(/ /),_=Object.assign({method:g,url:E},u);S.has(e)||S.set(e,new Map),S.get(e).set(t,{scope:e,methodName:t,endpointDefaults:_,decorations:l})}const ds={has({scope:e},r){return S.get(e).has(r)},getOwnPropertyDescriptor(e,r){return{value:this.get(e,r),configurable:!0,writable:!0,enumerable:!0}},defineProperty(e,r,t){return Object.defineProperty(e.cache,r,t),!0},deleteProperty(e,r){return delete e.cache[r],!0},ownKeys({scope:e}){return[...S.get(e).keys()]},set(e,r,t){return e.cache[r]=t},get({octokit:e,scope:r,cache:t},o){if(t[o])return t[o];const n=S.get(r).get(o);if(!n)return;const{endpointDefaults:u,decorations:l}=n;return l?t[o]=ms(e,r,o,u,l):t[o]=e.request.defaults(u),t[o]}};function gs(e){const r={};for(const t of S.keys())r[t]=new Proxy({octokit:e,scope:t,cache:{}},ds);return r}function ms(e,r,t,o,n){const u=e.request.defaults(o);function l(...g){let E=u.endpoint.merge(...g);if(n.mapToData)return E=Object.assign({},E,{data:E[n.mapToData],[n.mapToData]:void 0}),u(E);if(n.renamed){const[_,T]=n.renamed;e.log.warn(`octokit.${r}.${t}() has been renamed to octokit.${_}.${T}()`)}if(n.deprecated&&e.log.warn(n.deprecated),n.renamedParameters){const _=u.endpoint.merge(...g);for(const[T,f]of Object.entries(n.renamedParameters))T in _&&(e.log.warn(`"${T}" parameter is deprecated for "octokit.${r}.${t}()". Use "${f}" instead`),f in _||(_[f]=_[T]),delete _[T]);return u(_)}return u(...g)}return Object.assign(l,u)}function yr(e){return{rest:gs(e)}}yr.VERSION=ls;var vr={exports:{}};(function(e,r){(function(t,o){e.exports=o()})(ae,function(){var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ae<"u"?ae:typeof self<"u"?self:{};function o(h){return h&&h.default||h}var n=function(h,i,s={}){var a,c,p;for(a in i)p=i[a],s[a]=(c=h[a])!=null?c:p;return s},u=function(h,i,s={}){var a,c;for(a in h)c=h[a],i[a]!==void 0&&(s[a]=c);return s},l={load:n,overwrite:u},g;g=class{constructor(i,s){this.incr=i,this.decr=s,this._first=null,this._last=null,this.length=0}push(i){var s;this.length++,typeof this.incr=="function"&&this.incr(),s={value:i,prev:this._last,next:null},this._last!=null?(this._last.next=s,this._last=s):this._first=this._last=s}shift(){var i;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),i=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,i}first(){if(this._first!=null)return this._first.value}getArray(){var i,s,a;for(i=this._first,a=[];i!=null;)a.push((s=i,i=i.next,s.value));return a}forEachShift(i){var s;for(s=this.shift();s!=null;)i(s),s=this.shift()}debug(){var i,s,a,c,p;for(i=this._first,p=[];i!=null;)p.push((s=i,i=i.next,{value:s.value,prev:(a=s.prev)!=null?a.value:void 0,next:(c=s.next)!=null?c.value:void 0}));return p}};var E=g,_;_=class{constructor(i){if(this.instance=i,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(s,a)=>this._addListener(s,"many",a),this.instance.once=(s,a)=>this._addListener(s,"once",a),this.instance.removeAllListeners=(s=null)=>s!=null?delete this._events[s]:this._events={}}_addListener(i,s,a){var c;return(c=this._events)[i]==null&&(c[i]=[]),this._events[i].push({cb:a,status:s}),this.instance}listenerCount(i){return this._events[i]!=null?this._events[i].length:0}async trigger(i,...s){var a,c;try{return i!=="debug"&&this.trigger("debug",`Event triggered: ${i}`,s),this._events[i]==null?void 0:(this._events[i]=this._events[i].filter(function(p){return p.status!=="none"}),c=this._events[i].map(async p=>{var d,m;if(p.status!=="none"){p.status==="once"&&(p.status="none");try{return m=typeof p.cb=="function"?p.cb(...s):void 0,typeof m?.then=="function"?await m:m}catch(w){return d=w,this.trigger("error",d),null}}}),(await Promise.all(c)).find(function(p){return p!=null}))}catch(p){return a=p,this.trigger("error",a),null}}};var T=_,f,y,O;f=E,y=T,O=class{constructor(i){this.Events=new y(this),this._length=0,this._lists=function(){var s,a,c;for(c=[],s=1,a=i;1<=a?s<=a:s>=a;1<=a?++s:--s)c.push(new f(()=>this.incr(),()=>this.decr()));return c}.call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(i){return this._lists[i.options.priority].push(i)}queued(i){return i!=null?this._lists[i].length:this._length}shiftAll(i){return this._lists.forEach(function(s){return s.forEachShift(i)})}getFirst(i=this._lists){var s,a,c;for(s=0,a=i.length;s0)return c;return[]}shiftLastFrom(i){return this.getFirst(this._lists.slice(i).reverse()).shift()}};var x=O,R;R=class extends Error{};var C=R,j,A,V,q,G;q=10,A=5,G=l,j=C,V=class{constructor(i,s,a,c,p,d,m,w){this.task=i,this.args=s,this.rejectOnDrop=p,this.Events=d,this._states=m,this.Promise=w,this.options=G.load(a,c),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===c.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((v,k)=>{this._resolve=v,this._reject=k}),this.retryCount=0}_sanitizePriority(i){var s;return s=~~i!==i?A:i,s<0?0:s>q-1?q-1:s}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:i,message:s="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(i??new j(s)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(i){var s;if(s=this._states.jobStatus(this.options.id),!(s===i||i==="DONE"&&s===null))throw new j(`Invalid job status ${s}, expected ${i}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(i,s){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:i,blocked:s})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(i,s,a,c){var p,d,m;this.retryCount===0?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),d={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",d);try{if(m=await(i!=null?i.schedule(this.options,this.task,...this.args):this.task(...this.args)),s())return this.doDone(d),await c(this.options,d),this._assertStatus("DONE"),this._resolve(m)}catch(w){return p=w,this._onFailure(p,d,s,a,c)}}doExpire(i,s,a){var c,p;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),p={args:this.args,options:this.options,retryCount:this.retryCount},c=new j(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(c,p,i,s,a)}async _onFailure(i,s,a,c,p){var d,m;if(a())return d=await this.Events.trigger("failed",i,s),d!=null?(m=~~d,this.Events.trigger("retry",`Retrying ${this.options.id} after ${m} ms`,s),this.retryCount++,c(m)):(this.doDone(s),await p(this.options,s),this._assertStatus("DONE"),this._reject(i))}doDone(i){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",i)}};var $=V,ee,ke,re;re=l,ee=C,ke=class{constructor(i,s,a){this.instance=i,this.storeOptions=s,this.clientId=this.instance._randomIndex(),re.load(a,a,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var i;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(i=this.heartbeat=setInterval(()=>{var s,a,c,p,d;if(p=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&p>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=p,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&p>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:s,reservoirIncreaseMaximum:c,reservoir:d}=this.storeOptions,this._lastReservoirIncrease=p,a=c!=null?Math.min(s,c-d):s,a>0))return this.storeOptions.reservoir+=a,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref=="function"?i.unref():void 0:clearInterval(this.heartbeat)}async __publish__(i){return await this.yieldLoop(),this.instance.Events.trigger("message",i.toString())}async __disconnect__(i){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(i=0){return new this.Promise(function(s,a){return setTimeout(s,i)})}computePenalty(){var i;return(i=this.storeOptions.penalty)!=null?i:15*this.storeOptions.minTime||5e3}async __updateSettings__(i){return await this.yieldLoop(),re.overwrite(i,i,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(i){return await this.yieldLoop(),this._nextRequest+this.timeout=i}check(i,s){return this.conditionsCheck(i)&&this._nextRequest-s<=0}async __check__(i){var s;return await this.yieldLoop(),s=Date.now(),this.check(i,s)}async __register__(i,s,a){var c,p;return await this.yieldLoop(),c=Date.now(),this.conditionsCheck(s)?(this._running+=s,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=s),p=Math.max(this._nextRequest-c,0),this._nextRequest=c+p+this.storeOptions.minTime,{success:!0,wait:p,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(i,s){var a,c,p;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&s>this.storeOptions.maxConcurrent)throw new ee(`Impossible to add a job having a weight of ${s} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return c=Date.now(),p=this.storeOptions.highWater!=null&&i===this.storeOptions.highWater&&!this.check(s,c),a=this.strategyIsBlock()&&(p||this.isBlocked(c)),a&&(this._unblockTime=c+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:p,blocked:a,strategy:this.storeOptions.strategy}}async __free__(i,s){return await this.yieldLoop(),this._running-=s,this._done+=s,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var Sr=ke,Pe,Ge;Pe=C,Ge=class{constructor(i){this.status=i,this._jobs={},this.counts=this.status.map(function(){return 0})}next(i){var s,a;if(s=this._jobs[i],a=s+1,s!=null&&a(i[this.status[a]]=s,i),{})}};var Fr=Ge,Oe,Re;Oe=E,Re=class{constructor(i,s){this.schedule=this.schedule.bind(this),this.name=i,this.Promise=s,this._running=0,this._queue=new Oe}isEmpty(){return this._queue.length===0}async _tryToRun(){var i,s,a,c,p,d,m;if(this._running<1&&this._queue.length>0)return this._running++,{task:m,args:i,resolve:p,reject:c}=this._queue.shift(),s=await async function(){try{return d=await m(...i),function(){return p(d)}}catch(w){return a=w,function(){return c(a)}}}(),this._running--,this._tryToRun(),s()}schedule(i,...s){var a,c,p;return p=c=null,a=new this.Promise(function(d,m){return p=d,c=m}),this._queue.push({task:i,args:s,resolve:p,reject:c}),this._tryToRun(),a}};var Cr=Re,Ae="2.19.5",Ur={version:Ae},Dr=Object.freeze({version:Ae,default:Ur}),Se=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Fe=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Lr=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Ce,Ue,De,Le,Ie,z;z=l,Ce=T,Le=Se,De=Fe,Ie=Lr,Ue=function(){class h{constructor(s={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=s,z.load(this.limiterOptions,this.defaults,this),this.Events=new Ce(this),this.instances={},this.Bottleneck=ze,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new Le(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new De(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(s=""){var a;return(a=this.instances[s])!=null?a:(()=>{var c;return c=this.instances[s]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${s}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",c,s),c})()}async deleteKey(s=""){var a,c;return c=this.instances[s],this.connection&&(a=await this.connection.__runCommand__(["del",...Ie.allKeys(`${this.id}-${s}`)])),c!=null&&(delete this.instances[s],await c.disconnect()),c!=null||a>0}limiters(){var s,a,c,p;a=this.instances,c=[];for(s in a)p=a[s],c.push({key:s,limiter:p});return c}keys(){return Object.keys(this.instances)}async clusterKeys(){var s,a,c,p,d,m,w,v,k;if(this.connection==null)return this.Promise.resolve(this.keys());for(m=[],s=null,k=`b_${this.id}-`.length,a=9;s!==0;)for([v,c]=await this.connection.__runCommand__(["scan",s??0,"match",`b_${this.id}-*_settings`,"count",1e4]),s=~~v,p=0,w=c.length;p{var a,c,p,d,m,w;m=Date.now(),p=this.instances,d=[];for(c in p){w=p[c];try{await w._store.__groupCheck__(m)?d.push(this.deleteKey(c)):d.push(void 0)}catch(v){a=v,d.push(w.Events.trigger("error",a))}}return d},this.timeout/2)).unref=="function"?s.unref():void 0}updateSettings(s={}){if(z.overwrite(s,this.defaults,this),z.overwrite(s,s,this.limiterOptions),s.timeout!=null)return this._startAutoCleanup()}disconnect(s=!0){var a;if(!this.sharedConnection)return(a=this.connection)!=null?a.disconnect(s):void 0}}return h.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},h}.call(t);var Ir=Ue,xe,je,qe;qe=l,je=T,xe=function(){class h{constructor(s={}){this.options=s,qe.load(this.options,this.defaults,this),this.Events=new je(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((s,a)=>this._resolve=s)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(s){var a;return this._arr.push(s),a=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),a}}return h.prototype.defaults={maxTime:null,maxSize:null,Promise},h}.call(t);var xr=xe,jr=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),qr=o(Dr),$e,Be,te,se,We,oe,He,Ne,Me,ne,P,Ve=[].splice;oe=10,Be=5,P=l,He=x,se=$,We=Sr,Ne=jr,te=T,Me=Fr,ne=Cr,$e=function(){class h{constructor(s={},...a){var c,p;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(s,a),P.load(s,this.instanceDefaults,this),this._queues=new He(oe),this._scheduled={},this._states=new Me(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new te(this),this._submitLock=new ne("submit",this.Promise),this._registerLock=new ne("register",this.Promise),p=P.load(s,this.storeDefaults,{}),this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return c=P.load(s,this.redisStoreDefaults,{}),new Ne(this,p,c);if(this.datastore==="local")return c=P.load(s,this.localStoreDefaults,{}),new We(this,p,c);throw new h.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var d;return(d=this._store.heartbeat)!=null&&typeof d.ref=="function"?d.ref():void 0}),this._queues.on("zero",()=>{var d;return(d=this._store.heartbeat)!=null&&typeof d.unref=="function"?d.unref():void 0})}_validateOptions(s,a){if(!(s!=null&&typeof s=="object"&&a.length===0))throw new h.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(s){return this._store.__publish__(s)}disconnect(s=!0){return this._store.__disconnect__(s)}chain(s){return this._limiter=s,this}queued(s){return this._queues.queued(s)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(s){return this._states.jobStatus(s)}jobs(s){return this._states.statusJobs(s)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(s=1){return this._store.__check__(s)}_clearGlobalState(s){return this._scheduled[s]!=null?(clearTimeout(this._scheduled[s].expiration),delete this._scheduled[s],!0):!1}async _free(s,a,c,p){var d,m;try{if({running:m}=await this._store.__free__(s,c.weight),this.Events.trigger("debug",`Freed ${c.id}`,p),m===0&&this.empty())return this.Events.trigger("idle")}catch(w){return d=w,this.Events.trigger("error",d)}}_run(s,a,c){var p,d,m;return a.doRun(),p=this._clearGlobalState.bind(this,s),m=this._run.bind(this,s,a),d=this._free.bind(this,s,a),this._scheduled[s]={timeout:setTimeout(()=>a.doExecute(this._limiter,p,m,d),c),expiration:a.options.expiration!=null?setTimeout(function(){return a.doExpire(p,m,d)},c+a.options.expiration):void 0,job:a}}_drainOne(s){return this._registerLock.schedule(()=>{var a,c,p,d,m;return this.queued()===0?this.Promise.resolve(null):(m=this._queues.getFirst(),{options:d,args:a}=p=m.first(),s!=null&&d.weight>s?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${d.id}`,{args:a,options:d}),c=this._randomIndex(),this._store.__register__(c,d.weight,d.expiration).then(({success:w,wait:v,reservoir:k})=>{var B;return this.Events.trigger("debug",`Drained ${d.id}`,{success:w,args:a,options:d}),w?(m.shift(),B=this.empty(),B&&this.Events.trigger("empty"),k===0&&this.Events.trigger("depleted",B),this._run(c,p,v),this.Promise.resolve(d.weight)):this.Promise.resolve(null)})))})}_drainAll(s,a=0){return this._drainOne(s).then(c=>{var p;return c!=null?(p=s!=null?s-c:s,this._drainAll(p,a+c)):this.Promise.resolve(a)}).catch(c=>this.Events.trigger("error",c))}_dropAllQueued(s){return this._queues.shiftAll(function(a){return a.doDrop({message:s})})}stop(s={}){var a,c;return s=P.load(s,this.stopDefaults),c=p=>{var d;return d=()=>{var m;return m=this._states.counts,m[0]+m[1]+m[2]+m[3]===p},new this.Promise((m,w)=>d()?m():this.on("done",()=>{if(d())return this.removeAllListeners("done"),m()}))},a=s.dropWaitingJobs?(this._run=function(p,d){return d.doDrop({message:s.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var p,d,m;d=this._scheduled;for(p in d)m=d[p],this.jobStatus(m.job.options.id)==="RUNNING"&&(clearTimeout(m.timeout),clearTimeout(m.expiration),m.job.doDrop({message:s.dropErrorMessage}));return this._dropAllQueued(s.dropErrorMessage),c(0)}))):this.schedule({priority:oe-1,weight:0},()=>c(1)),this._receive=function(p){return p._reject(new h.prototype.BottleneckError(s.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new h.prototype.BottleneckError("stop() has already been called")),a}async _addToQueue(s){var a,c,p,d,m,w,v;({args:a,options:d}=s);try{({reachedHWM:m,blocked:c,strategy:v}=await this._store.__submit__(this.queued(),d.weight))}catch(k){return p=k,this.Events.trigger("debug",`Could not queue ${d.id}`,{args:a,options:d,error:p}),s.doDrop({error:p}),!1}return c?(s.doDrop(),!0):m&&(w=v===h.prototype.strategy.LEAK?this._queues.shiftLastFrom(d.priority):v===h.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(d.priority+1):v===h.prototype.strategy.OVERFLOW?s:void 0,w?.doDrop(),w==null||v===h.prototype.strategy.OVERFLOW)?(w==null&&s.doDrop(),m):(s.doQueue(m,c),this._queues.push(s),await this._drainAll(),m)}_receive(s){return this._states.jobStatus(s.options.id)!=null?(s._reject(new h.prototype.BottleneckError(`A job with the same id already exists (id=${s.options.id})`)),!1):(s.doReceive(),this._submitLock.schedule(this._addToQueue,s))}submit(...s){var a,c,p,d,m,w,v;return typeof s[0]=="function"?(m=s,[c,...s]=m,[a]=Ve.call(s,-1),d=P.load({},this.jobDefaults)):(w=s,[d,c,...s]=w,[a]=Ve.call(s,-1),d=P.load(d,this.jobDefaults)),v=(...k)=>new this.Promise(function(B,Br){return c(...k,function(...Ke){return(Ke[0]!=null?Br:B)(Ke)})}),p=new se(v,s,d,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),p.promise.then(function(k){return typeof a=="function"?a(...k):void 0}).catch(function(k){return Array.isArray(k)?typeof a=="function"?a(...k):void 0:typeof a=="function"?a(k):void 0}),this._receive(p)}schedule(...s){var a,c,p;return typeof s[0]=="function"?([p,...s]=s,c={}):[c,p,...s]=s,a=new se(p,s,c,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(a),a.promise}wrap(s){var a,c;return a=this.schedule.bind(this),c=function(...p){return a(s.bind(this),...p)},c.withOptions=function(p,...d){return a(p,s,...d)},c}async updateSettings(s={}){return await this._store.__updateSettings__(P.overwrite(s,this.storeDefaults)),P.overwrite(s,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(s=0){return this._store.__incrementReservoir__(s)}}return h.default=h,h.Events=te,h.version=h.prototype.version=qr.version,h.strategy=h.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},h.BottleneckError=h.prototype.BottleneckError=C,h.Group=h.prototype.Group=Ir,h.RedisConnection=h.prototype.RedisConnection=Se,h.IORedisConnection=h.prototype.IORedisConnection=Fe,h.Batcher=h.prototype.Batcher=xr,h.prototype.jobDefaults={priority:Be,weight:1,expiration:null,id:""},h.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:h.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},h.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},h.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},h.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise},h.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},h}.call(t);var ze=$e,$r=ze;return $r})})(vr);var hs=vr.exports;const kr=lt(hs);var Es="0.0.0-development";async function Pr(e,r,t,o){if(!t.request||!t.request.request)throw t;if(t.status>=400&&!e.doNotRetry.includes(t.status)){const n=o.request.retries!=null?o.request.retries:e.retries,u=Math.pow((o.request.retryCount||0)+1,2);throw r.retry.retryRequest(t,n,u)}throw t}async function fs(e,r,t,o){const n=new kr;return n.on("failed",function(u,l){const g=~~u.request.request.retries,E=~~u.request.request.retryAfter;if(o.request.retryCount=l.retryCount+1,g>l.retryCount)return E*e.retryAfterBaseValue}),n.schedule(Ts.bind(null,e,r,t),o)}async function Ts(e,r,t,o){const n=await t(t,o);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){const u=new H(n.data.errors[0].message,500,{request:o,response:n});return Pr(e,r,u,o)}return n}function Gr(e,r){const t=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},r.retry);return t.enabled&&(e.hook.error("request",Pr.bind(null,t,e)),e.hook.wrap("request",fs.bind(null,t,e))),{retry:{retryRequest:(o,n,u)=>(o.request.request=Object.assign({},o.request.request,{retries:n,retryAfter:u}),o)}}}Gr.VERSION=Es;var _s="0.0.0-development",pe=()=>Promise.resolve();function bs(e,r,t){return e.retryLimiter.schedule(ws,e,r,t)}async function ws(e,r,t){const o=t.method!=="GET"&&t.method!=="HEAD",{pathname:n}=new URL(t.url,"http://github.test"),u=t.method==="GET"&&n.startsWith("/search/"),l=n.startsWith("/graphql"),E=~~r.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(E.expiration=1e3*60),(o||l)&&await e.write.key(e.id).schedule(E,pe),o&&e.triggersNotification(n)&&await e.notifications.key(e.id).schedule(E,pe),u&&await e.search.key(e.id).schedule(E,pe);const _=e.global.key(e.id).schedule(E,r,t);if(l){const T=await _;if(T.data.errors!=null&&T.data.errors.some(f=>f.type==="RATE_LIMITED"))throw Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:T,data:T.data})}return _}var ys=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function vs(e){const t=`^(?:${e.map(o=>o.split("/").map(n=>n.startsWith("{")?"(?:.+?)":n).join("/")).map(o=>`(?:${o})`).join("|")})[^/]*$`;return new RegExp(t,"i")}var or=vs(ys),Or=or.test.bind(or),I={},ks=function(e,r){I.global=new e.Group({id:"octokit-global",maxConcurrent:10,...r}),I.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...r}),I.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...r}),I.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...r})};function ye(e,r){const{enabled:t=!0,Bottleneck:o=kr,id:n="no-id",timeout:u=1e3*60*2,connection:l}=r.throttle||{};if(!t)return{};const g={timeout:u};typeof l<"u"&&(g.connection=l),I.global==null&&ks(o,g);const E=Object.assign({clustering:l!=null,triggersNotification:Or,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new o,id:n,...I},r.throttle);if(typeof E.onSecondaryRateLimit!="function"||typeof E.onRateLimit!="function")throw new Error(`octokit/plugin-throttling error: +`)}var It=class extends Error{constructor(e,r,t){super(Lt(t)),this.request=e,this.headers=r,this.response=t,this.errors=t.errors,this.data=t.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},xt=["method","baseUrl","url","headers","request","query","mediaType"],jt=["query","method","url"],rr=/\/api\/v3\/?$/;function qt(e,r,t){if(t){if(typeof r=="string"&&"query"in t)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const l in t)if(jt.includes(l))return Promise.reject(new Error(`[@octokit/graphql] "${l}" cannot be used as variable name`))}const o=typeof r=="string"?Object.assign({query:r},t):r,n=Object.keys(o).reduce((l,g)=>xt.includes(g)?(l[g]=o[g],l):(l.variables||(l.variables={}),l.variables[g]=o[g],l),{}),c=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return rr.test(c)&&(n.url=c.replace(rr,"/api/graphql")),e(n).then(l=>{if(l.data.errors){const g={};for(const m of Object.keys(l.headers))g[m]=l.headers[m];throw new It(n,g,l.data)}return l.data.data})}function be(e,r){const t=e.defaults(r);return Object.assign((n,c)=>qt(t,n,c),{defaults:be.bind(null,t),endpoint:t.endpoint})}be(fe,{headers:{"user-agent":`octokit-graphql.js/${Dt} ${Z()}`},method:"POST",url:"/graphql"});function $t(e){return be(e,{method:"POST",url:"/graphql"})}var Bt=/^v1\./,Wt=/^ghs_/,Ht=/^ghu_/;async function Nt(e){const r=e.split(/\./).length===3,t=Bt.test(e)||Wt.test(e),o=Ht.test(e);return{type:"token",token:e,tokenType:r?"app":t?"installation":o?"user-to-server":"oauth"}}function Mt(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function Vt(e,r,t,o){const n=r.endpoint.merge(t,o);return n.headers.authorization=Mt(e),r(n)}var zt=function(r){if(!r)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof r!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return r=r.replace(/^(token|bearer) +/i,""),Object.assign(Nt.bind(null,r),{hook:Vt.bind(null,r)})};const mr="6.1.2",tr=()=>{},Kt=console.warn.bind(console),Qt=console.error.bind(console),sr=`octokit-core.js/${mr} ${Z()}`;let Jt=class{static VERSION=mr;static defaults(r){return class extends this{constructor(...o){const n=o[0]||{};if(typeof r=="function"){super(r(n));return}super(Object.assign({},r,n,n.userAgent&&r.userAgent?{userAgent:`${n.userAgent} ${r.userAgent}`}:null))}}}static plugins=[];static plugin(...r){const t=this.plugins;return class extends this{static plugins=t.concat(r.filter(n=>!t.includes(n)))}}constructor(r={}){const t=new ht.Collection,o={baseUrl:fe.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};if(o.headers["user-agent"]=r.userAgent?`${r.userAgent} ${sr}`:sr,r.baseUrl&&(o.baseUrl=r.baseUrl),r.previews&&(o.mediaType.previews=r.previews),r.timeZone&&(o.headers["time-zone"]=r.timeZone),this.request=fe.defaults(o),this.graphql=$t(this.request).defaults(o),this.log=Object.assign({debug:tr,info:tr,warn:Kt,error:Qt},r.log),this.hook=t,r.authStrategy){const{authStrategy:c,...l}=r,g=c(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:l},r.auth));t.wrap("request",g.hook),this.auth=g}else if(!r.auth)this.auth=async()=>({type:"unauthenticated"});else{const c=zt(r.auth);t.wrap("request",c.hook),this.auth=c}const n=this.constructor;for(let c=0;c({async next(){if(!g)return{done:!0};try{const m=await n({method:c,url:g,headers:l}),T=Yt(m);return g=((T.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:T}}catch(m){if(m.status!==409)throw m;return g="",{value:{status:200,headers:{},data:[]}}}}})}}function hr(e,r,t,o){return typeof t=="function"&&(o=t,t=void 0),Er(e,[],we(e,r,t)[Symbol.asyncIterator](),o)}function Er(e,r,t,o){return t.next().then(n=>{if(n.done)return r;let c=!1;function l(){c=!0}return r=r.concat(o?o(n.value,l):n.value.data),c?r:Er(e,r,t,o)})}Object.assign(hr,{iterator:we});function fr(e){return{paginate:Object.assign(hr.bind(null,e),{iterator:we.bind(null,e)})}}fr.VERSION=Xt;var Zt=(e,r)=>`The cursor at "${e.join(",")}" did not change its value "${r}" after a page transition. Please make sure your that your query is set up correctly.`,es=class extends Error{constructor(e,r){super(Zt(e.pathInQuery,r)),this.pageInfo=e,this.cursorValue=r,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="MissingCursorChangeError"},rs=class extends Error{constructor(e){super(`No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: ${JSON.stringify(e,null,2)}`),this.response=e,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="MissingPageInfo"},ts=e=>Object.prototype.toString.call(e)==="[object Object]";function Tr(e){const r=_r(e,"pageInfo");if(r.length===0)throw new rs(e);return r}var _r=(e,r,t=[])=>{for(const o of Object.keys(e)){const n=[...t,o],c=e[o];if(ts(c)){if(c.hasOwnProperty(r))return n;const l=_r(c,r,n);if(l.length>0)return l}}return[]},N=(e,r)=>r.reduce((t,o)=>t[o],e),ue=(e,r,t)=>{const o=r[r.length-1],n=[...r].slice(0,-1),c=N(e,n);typeof t=="function"?c[o]=t(c[o]):c[o]=t},ss=e=>{const r=Tr(e);return{pathInQuery:r,pageInfo:N(e,[...r,"pageInfo"])}},br=e=>e.hasOwnProperty("hasNextPage"),os=e=>br(e)?e.endCursor:e.startCursor,ns=e=>br(e)?e.hasNextPage:e.hasPreviousPage,wr=e=>(r,t={})=>{let o=!0,n={...t};return{[Symbol.asyncIterator]:()=>({async next(){if(!o)return{done:!0,value:{}};const c=await e.graphql(r,n),l=ss(c),g=os(l.pageInfo);if(o=ns(l.pageInfo),o&&g===n.cursor)throw new es(l,g);return n={...n,cursor:g},{done:!1,value:c}}})}},is=(e,r)=>{if(Object.keys(e).length===0)return Object.assign(e,r);const t=Tr(e),o=[...t,"nodes"],n=N(r,o);n&&ue(e,o,m=>[...m,...n]);const c=[...t,"edges"],l=N(r,c);l&&ue(e,c,m=>[...m,...l]);const g=[...t,"pageInfo"];return ue(e,g,N(r,g)),e},as=e=>{const r=wr(e);return async(t,o={})=>{let n={};for await(const c of r(t,o))n=is(n,c);return n}};function cs(e){return{graphql:Object.assign(e.graphql,{paginate:Object.assign(as(e),{iterator:wr(e)})})}}const ls="13.2.6",us={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"],usageMetricsForEnterprise:["GET /enterprises/{enterprise}/copilot/usage"],usageMetricsForOrg:["GET /orgs/{org}/copilot/usage"],usageMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/usage"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var ps=us;const S=new Map;for(const[e,r]of Object.entries(ps))for(const[t,o]of Object.entries(r)){const[n,c,l]=o,[g,m]=n.split(/ /),T=Object.assign({method:g,url:m},c);S.has(e)||S.set(e,new Map),S.get(e).set(t,{scope:e,methodName:t,endpointDefaults:T,decorations:l})}const ds={has({scope:e},r){return S.get(e).has(r)},getOwnPropertyDescriptor(e,r){return{value:this.get(e,r),configurable:!0,writable:!0,enumerable:!0}},defineProperty(e,r,t){return Object.defineProperty(e.cache,r,t),!0},deleteProperty(e,r){return delete e.cache[r],!0},ownKeys({scope:e}){return[...S.get(e).keys()]},set(e,r,t){return e.cache[r]=t},get({octokit:e,scope:r,cache:t},o){if(t[o])return t[o];const n=S.get(r).get(o);if(!n)return;const{endpointDefaults:c,decorations:l}=n;return l?t[o]=ms(e,r,o,c,l):t[o]=e.request.defaults(c),t[o]}};function gs(e){const r={};for(const t of S.keys())r[t]=new Proxy({octokit:e,scope:t,cache:{}},ds);return r}function ms(e,r,t,o,n){const c=e.request.defaults(o);function l(...g){let m=c.endpoint.merge(...g);if(n.mapToData)return m=Object.assign({},m,{data:m[n.mapToData],[n.mapToData]:void 0}),c(m);if(n.renamed){const[T,_]=n.renamed;e.log.warn(`octokit.${r}.${t}() has been renamed to octokit.${T}.${_}()`)}if(n.deprecated&&e.log.warn(n.deprecated),n.renamedParameters){const T=c.endpoint.merge(...g);for(const[_,f]of Object.entries(n.renamedParameters))_ in T&&(e.log.warn(`"${_}" parameter is deprecated for "octokit.${r}.${t}()". Use "${f}" instead`),f in T||(T[f]=T[_]),delete T[_]);return c(T)}return c(...g)}return Object.assign(l,c)}function yr(e){return{rest:gs(e)}}yr.VERSION=ls;var vr={exports:{}};(function(e,r){(function(t,o){e.exports=o()})(ae,function(){var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof ae<"u"?ae:typeof self<"u"?self:{};function o(E){return E&&E.default||E}var n=function(E,i,s={}){var a,u,p;for(a in i)p=i[a],s[a]=(u=E[a])!=null?u:p;return s},c=function(E,i,s={}){var a,u;for(a in E)u=E[a],i[a]!==void 0&&(s[a]=u);return s},l={load:n,overwrite:c},g;g=class{constructor(i,s){this.incr=i,this.decr=s,this._first=null,this._last=null,this.length=0}push(i){var s;this.length++,typeof this.incr=="function"&&this.incr(),s={value:i,prev:this._last,next:null},this._last!=null?(this._last.next=s,this._last=s):this._first=this._last=s}shift(){var i;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),i=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,i}first(){if(this._first!=null)return this._first.value}getArray(){var i,s,a;for(i=this._first,a=[];i!=null;)a.push((s=i,i=i.next,s.value));return a}forEachShift(i){var s;for(s=this.shift();s!=null;)i(s),s=this.shift()}debug(){var i,s,a,u,p;for(i=this._first,p=[];i!=null;)p.push((s=i,i=i.next,{value:s.value,prev:(a=s.prev)!=null?a.value:void 0,next:(u=s.next)!=null?u.value:void 0}));return p}};var m=g,T;T=class{constructor(i){if(this.instance=i,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(s,a)=>this._addListener(s,"many",a),this.instance.once=(s,a)=>this._addListener(s,"once",a),this.instance.removeAllListeners=(s=null)=>s!=null?delete this._events[s]:this._events={}}_addListener(i,s,a){var u;return(u=this._events)[i]==null&&(u[i]=[]),this._events[i].push({cb:a,status:s}),this.instance}listenerCount(i){return this._events[i]!=null?this._events[i].length:0}async trigger(i,...s){var a,u;try{return i!=="debug"&&this.trigger("debug",`Event triggered: ${i}`,s),this._events[i]==null?void 0:(this._events[i]=this._events[i].filter(function(p){return p.status!=="none"}),u=this._events[i].map(async p=>{var d,h;if(p.status!=="none"){p.status==="once"&&(p.status="none");try{return h=typeof p.cb=="function"?p.cb(...s):void 0,typeof h?.then=="function"?await h:h}catch(w){return d=w,this.trigger("error",d),null}}}),(await Promise.all(u)).find(function(p){return p!=null}))}catch(p){return a=p,this.trigger("error",a),null}}};var _=T,f,y,O;f=m,y=_,O=class{constructor(i){this.Events=new y(this),this._length=0,this._lists=function(){var s,a,u;for(u=[],s=1,a=i;1<=a?s<=a:s>=a;1<=a?++s:--s)u.push(new f(()=>this.incr(),()=>this.decr()));return u}.call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(i){return this._lists[i.options.priority].push(i)}queued(i){return i!=null?this._lists[i].length:this._length}shiftAll(i){return this._lists.forEach(function(s){return s.forEachShift(i)})}getFirst(i=this._lists){var s,a,u;for(s=0,a=i.length;s0)return u;return[]}shiftLastFrom(i){return this.getFirst(this._lists.slice(i).reverse()).shift()}};var x=O,R;R=class extends Error{};var C=R,j,A,V,q,G;q=10,A=5,G=l,j=C,V=class{constructor(i,s,a,u,p,d,h,w){this.task=i,this.args=s,this.rejectOnDrop=p,this.Events=d,this._states=h,this.Promise=w,this.options=G.load(a,u),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===u.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((v,k)=>{this._resolve=v,this._reject=k}),this.retryCount=0}_sanitizePriority(i){var s;return s=~~i!==i?A:i,s<0?0:s>q-1?q-1:s}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:i,message:s="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(i??new j(s)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(i){var s;if(s=this._states.jobStatus(this.options.id),!(s===i||i==="DONE"&&s===null))throw new j(`Invalid job status ${s}, expected ${i}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(i,s){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:i,blocked:s})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(i,s,a,u){var p,d,h;this.retryCount===0?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),d={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",d);try{if(h=await(i!=null?i.schedule(this.options,this.task,...this.args):this.task(...this.args)),s())return this.doDone(d),await u(this.options,d),this._assertStatus("DONE"),this._resolve(h)}catch(w){return p=w,this._onFailure(p,d,s,a,u)}}doExpire(i,s,a){var u,p;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),p={args:this.args,options:this.options,retryCount:this.retryCount},u=new j(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(u,p,i,s,a)}async _onFailure(i,s,a,u,p){var d,h;if(a())return d=await this.Events.trigger("failed",i,s),d!=null?(h=~~d,this.Events.trigger("retry",`Retrying ${this.options.id} after ${h} ms`,s),this.retryCount++,u(h)):(this.doDone(s),await p(this.options,s),this._assertStatus("DONE"),this._reject(i))}doDone(i){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",i)}};var $=V,ee,ke,re;re=l,ee=C,ke=class{constructor(i,s,a){this.instance=i,this.storeOptions=s,this.clientId=this.instance._randomIndex(),re.load(a,a,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var i;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(i=this.heartbeat=setInterval(()=>{var s,a,u,p,d;if(p=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&p>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=p,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&p>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:s,reservoirIncreaseMaximum:u,reservoir:d}=this.storeOptions,this._lastReservoirIncrease=p,a=u!=null?Math.min(s,u-d):s,a>0))return this.storeOptions.reservoir+=a,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref=="function"?i.unref():void 0:clearInterval(this.heartbeat)}async __publish__(i){return await this.yieldLoop(),this.instance.Events.trigger("message",i.toString())}async __disconnect__(i){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(i=0){return new this.Promise(function(s,a){return setTimeout(s,i)})}computePenalty(){var i;return(i=this.storeOptions.penalty)!=null?i:15*this.storeOptions.minTime||5e3}async __updateSettings__(i){return await this.yieldLoop(),re.overwrite(i,i,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(i){return await this.yieldLoop(),this._nextRequest+this.timeout=i}check(i,s){return this.conditionsCheck(i)&&this._nextRequest-s<=0}async __check__(i){var s;return await this.yieldLoop(),s=Date.now(),this.check(i,s)}async __register__(i,s,a){var u,p;return await this.yieldLoop(),u=Date.now(),this.conditionsCheck(s)?(this._running+=s,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=s),p=Math.max(this._nextRequest-u,0),this._nextRequest=u+p+this.storeOptions.minTime,{success:!0,wait:p,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(i,s){var a,u,p;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&s>this.storeOptions.maxConcurrent)throw new ee(`Impossible to add a job having a weight of ${s} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return u=Date.now(),p=this.storeOptions.highWater!=null&&i===this.storeOptions.highWater&&!this.check(s,u),a=this.strategyIsBlock()&&(p||this.isBlocked(u)),a&&(this._unblockTime=u+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:p,blocked:a,strategy:this.storeOptions.strategy}}async __free__(i,s){return await this.yieldLoop(),this._running-=s,this._done+=s,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var Sr=ke,Pe,Ge;Pe=C,Ge=class{constructor(i){this.status=i,this._jobs={},this.counts=this.status.map(function(){return 0})}next(i){var s,a;if(s=this._jobs[i],a=s+1,s!=null&&a(i[this.status[a]]=s,i),{})}};var Fr=Ge,Oe,Re;Oe=m,Re=class{constructor(i,s){this.schedule=this.schedule.bind(this),this.name=i,this.Promise=s,this._running=0,this._queue=new Oe}isEmpty(){return this._queue.length===0}async _tryToRun(){var i,s,a,u,p,d,h;if(this._running<1&&this._queue.length>0)return this._running++,{task:h,args:i,resolve:p,reject:u}=this._queue.shift(),s=await async function(){try{return d=await h(...i),function(){return p(d)}}catch(w){return a=w,function(){return u(a)}}}(),this._running--,this._tryToRun(),s()}schedule(i,...s){var a,u,p;return p=u=null,a=new this.Promise(function(d,h){return p=d,u=h}),this._queue.push({task:i,args:s,resolve:p,reject:u}),this._tryToRun(),a}};var Cr=Re,Ae="2.19.5",Ur={version:Ae},Dr=Object.freeze({version:Ae,default:Ur}),Se=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Fe=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Lr=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Ce,Ue,De,Le,Ie,z;z=l,Ce=_,Le=Se,De=Fe,Ie=Lr,Ue=function(){class E{constructor(s={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=s,z.load(this.limiterOptions,this.defaults,this),this.Events=new Ce(this),this.instances={},this.Bottleneck=ze,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new Le(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new De(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(s=""){var a;return(a=this.instances[s])!=null?a:(()=>{var u;return u=this.instances[s]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${s}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",u,s),u})()}async deleteKey(s=""){var a,u;return u=this.instances[s],this.connection&&(a=await this.connection.__runCommand__(["del",...Ie.allKeys(`${this.id}-${s}`)])),u!=null&&(delete this.instances[s],await u.disconnect()),u!=null||a>0}limiters(){var s,a,u,p;a=this.instances,u=[];for(s in a)p=a[s],u.push({key:s,limiter:p});return u}keys(){return Object.keys(this.instances)}async clusterKeys(){var s,a,u,p,d,h,w,v,k;if(this.connection==null)return this.Promise.resolve(this.keys());for(h=[],s=null,k=`b_${this.id}-`.length,a=9;s!==0;)for([v,u]=await this.connection.__runCommand__(["scan",s??0,"match",`b_${this.id}-*_settings`,"count",1e4]),s=~~v,p=0,w=u.length;p{var a,u,p,d,h,w;h=Date.now(),p=this.instances,d=[];for(u in p){w=p[u];try{await w._store.__groupCheck__(h)?d.push(this.deleteKey(u)):d.push(void 0)}catch(v){a=v,d.push(w.Events.trigger("error",a))}}return d},this.timeout/2)).unref=="function"?s.unref():void 0}updateSettings(s={}){if(z.overwrite(s,this.defaults,this),z.overwrite(s,s,this.limiterOptions),s.timeout!=null)return this._startAutoCleanup()}disconnect(s=!0){var a;if(!this.sharedConnection)return(a=this.connection)!=null?a.disconnect(s):void 0}}return E.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},E}.call(t);var Ir=Ue,xe,je,qe;qe=l,je=_,xe=function(){class E{constructor(s={}){this.options=s,qe.load(this.options,this.defaults,this),this.Events=new je(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((s,a)=>this._resolve=s)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(s){var a;return this._arr.push(s),a=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),a}}return E.prototype.defaults={maxTime:null,maxSize:null,Promise},E}.call(t);var xr=xe,jr=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),qr=o(Dr),$e,Be,te,se,We,oe,He,Ne,Me,ne,P,Ve=[].splice;oe=10,Be=5,P=l,He=x,se=$,We=Sr,Ne=jr,te=_,Me=Fr,ne=Cr,$e=function(){class E{constructor(s={},...a){var u,p;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(s,a),P.load(s,this.instanceDefaults,this),this._queues=new He(oe),this._scheduled={},this._states=new Me(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new te(this),this._submitLock=new ne("submit",this.Promise),this._registerLock=new ne("register",this.Promise),p=P.load(s,this.storeDefaults,{}),this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return u=P.load(s,this.redisStoreDefaults,{}),new Ne(this,p,u);if(this.datastore==="local")return u=P.load(s,this.localStoreDefaults,{}),new We(this,p,u);throw new E.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var d;return(d=this._store.heartbeat)!=null&&typeof d.ref=="function"?d.ref():void 0}),this._queues.on("zero",()=>{var d;return(d=this._store.heartbeat)!=null&&typeof d.unref=="function"?d.unref():void 0})}_validateOptions(s,a){if(!(s!=null&&typeof s=="object"&&a.length===0))throw new E.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(s){return this._store.__publish__(s)}disconnect(s=!0){return this._store.__disconnect__(s)}chain(s){return this._limiter=s,this}queued(s){return this._queues.queued(s)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(s){return this._states.jobStatus(s)}jobs(s){return this._states.statusJobs(s)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(s=1){return this._store.__check__(s)}_clearGlobalState(s){return this._scheduled[s]!=null?(clearTimeout(this._scheduled[s].expiration),delete this._scheduled[s],!0):!1}async _free(s,a,u,p){var d,h;try{if({running:h}=await this._store.__free__(s,u.weight),this.Events.trigger("debug",`Freed ${u.id}`,p),h===0&&this.empty())return this.Events.trigger("idle")}catch(w){return d=w,this.Events.trigger("error",d)}}_run(s,a,u){var p,d,h;return a.doRun(),p=this._clearGlobalState.bind(this,s),h=this._run.bind(this,s,a),d=this._free.bind(this,s,a),this._scheduled[s]={timeout:setTimeout(()=>a.doExecute(this._limiter,p,h,d),u),expiration:a.options.expiration!=null?setTimeout(function(){return a.doExpire(p,h,d)},u+a.options.expiration):void 0,job:a}}_drainOne(s){return this._registerLock.schedule(()=>{var a,u,p,d,h;return this.queued()===0?this.Promise.resolve(null):(h=this._queues.getFirst(),{options:d,args:a}=p=h.first(),s!=null&&d.weight>s?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${d.id}`,{args:a,options:d}),u=this._randomIndex(),this._store.__register__(u,d.weight,d.expiration).then(({success:w,wait:v,reservoir:k})=>{var B;return this.Events.trigger("debug",`Drained ${d.id}`,{success:w,args:a,options:d}),w?(h.shift(),B=this.empty(),B&&this.Events.trigger("empty"),k===0&&this.Events.trigger("depleted",B),this._run(u,p,v),this.Promise.resolve(d.weight)):this.Promise.resolve(null)})))})}_drainAll(s,a=0){return this._drainOne(s).then(u=>{var p;return u!=null?(p=s!=null?s-u:s,this._drainAll(p,a+u)):this.Promise.resolve(a)}).catch(u=>this.Events.trigger("error",u))}_dropAllQueued(s){return this._queues.shiftAll(function(a){return a.doDrop({message:s})})}stop(s={}){var a,u;return s=P.load(s,this.stopDefaults),u=p=>{var d;return d=()=>{var h;return h=this._states.counts,h[0]+h[1]+h[2]+h[3]===p},new this.Promise((h,w)=>d()?h():this.on("done",()=>{if(d())return this.removeAllListeners("done"),h()}))},a=s.dropWaitingJobs?(this._run=function(p,d){return d.doDrop({message:s.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var p,d,h;d=this._scheduled;for(p in d)h=d[p],this.jobStatus(h.job.options.id)==="RUNNING"&&(clearTimeout(h.timeout),clearTimeout(h.expiration),h.job.doDrop({message:s.dropErrorMessage}));return this._dropAllQueued(s.dropErrorMessage),u(0)}))):this.schedule({priority:oe-1,weight:0},()=>u(1)),this._receive=function(p){return p._reject(new E.prototype.BottleneckError(s.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new E.prototype.BottleneckError("stop() has already been called")),a}async _addToQueue(s){var a,u,p,d,h,w,v;({args:a,options:d}=s);try{({reachedHWM:h,blocked:u,strategy:v}=await this._store.__submit__(this.queued(),d.weight))}catch(k){return p=k,this.Events.trigger("debug",`Could not queue ${d.id}`,{args:a,options:d,error:p}),s.doDrop({error:p}),!1}return u?(s.doDrop(),!0):h&&(w=v===E.prototype.strategy.LEAK?this._queues.shiftLastFrom(d.priority):v===E.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(d.priority+1):v===E.prototype.strategy.OVERFLOW?s:void 0,w?.doDrop(),w==null||v===E.prototype.strategy.OVERFLOW)?(w==null&&s.doDrop(),h):(s.doQueue(h,u),this._queues.push(s),await this._drainAll(),h)}_receive(s){return this._states.jobStatus(s.options.id)!=null?(s._reject(new E.prototype.BottleneckError(`A job with the same id already exists (id=${s.options.id})`)),!1):(s.doReceive(),this._submitLock.schedule(this._addToQueue,s))}submit(...s){var a,u,p,d,h,w,v;return typeof s[0]=="function"?(h=s,[u,...s]=h,[a]=Ve.call(s,-1),d=P.load({},this.jobDefaults)):(w=s,[d,u,...s]=w,[a]=Ve.call(s,-1),d=P.load(d,this.jobDefaults)),v=(...k)=>new this.Promise(function(B,Br){return u(...k,function(...Ke){return(Ke[0]!=null?Br:B)(Ke)})}),p=new se(v,s,d,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),p.promise.then(function(k){return typeof a=="function"?a(...k):void 0}).catch(function(k){return Array.isArray(k)?typeof a=="function"?a(...k):void 0:typeof a=="function"?a(k):void 0}),this._receive(p)}schedule(...s){var a,u,p;return typeof s[0]=="function"?([p,...s]=s,u={}):[u,p,...s]=s,a=new se(p,s,u,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(a),a.promise}wrap(s){var a,u;return a=this.schedule.bind(this),u=function(...p){return a(s.bind(this),...p)},u.withOptions=function(p,...d){return a(p,s,...d)},u}async updateSettings(s={}){return await this._store.__updateSettings__(P.overwrite(s,this.storeDefaults)),P.overwrite(s,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(s=0){return this._store.__incrementReservoir__(s)}}return E.default=E,E.Events=te,E.version=E.prototype.version=qr.version,E.strategy=E.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},E.BottleneckError=E.prototype.BottleneckError=C,E.Group=E.prototype.Group=Ir,E.RedisConnection=E.prototype.RedisConnection=Se,E.IORedisConnection=E.prototype.IORedisConnection=Fe,E.Batcher=E.prototype.Batcher=xr,E.prototype.jobDefaults={priority:Be,weight:1,expiration:null,id:""},E.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:E.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},E.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},E.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},E.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise},E.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},E}.call(t);var ze=$e,$r=ze;return $r})})(vr);var hs=vr.exports;const kr=lt(hs);var Es="0.0.0-development";async function Pr(e,r,t,o){if(!t.request||!t.request.request)throw t;if(t.status>=400&&!e.doNotRetry.includes(t.status)){const n=o.request.retries!=null?o.request.retries:e.retries,c=Math.pow((o.request.retryCount||0)+1,2);throw r.retry.retryRequest(t,n,c)}throw t}async function fs(e,r,t,o){const n=new kr;return n.on("failed",function(c,l){const g=~~c.request.request.retries,m=~~c.request.request.retryAfter;if(o.request.retryCount=l.retryCount+1,g>l.retryCount)return m*e.retryAfterBaseValue}),n.schedule(Ts.bind(null,e,r,t),o)}async function Ts(e,r,t,o){const n=await t(t,o);if(n.data&&n.data.errors&&n.data.errors.length>0&&/Something went wrong while executing your query/.test(n.data.errors[0].message)){const c=new H(n.data.errors[0].message,500,{request:o,response:n});return Pr(e,r,c,o)}return n}function Gr(e,r){const t=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,422,451],retries:3},r.retry);return t.enabled&&(e.hook.error("request",Pr.bind(null,t,e)),e.hook.wrap("request",fs.bind(null,t,e))),{retry:{retryRequest:(o,n,c)=>(o.request.request=Object.assign({},o.request.request,{retries:n,retryAfter:c}),o)}}}Gr.VERSION=Es;var _s="0.0.0-development",pe=()=>Promise.resolve();function bs(e,r,t){return e.retryLimiter.schedule(ws,e,r,t)}async function ws(e,r,t){const o=t.method!=="GET"&&t.method!=="HEAD",{pathname:n}=new URL(t.url,"http://github.test"),c=t.method==="GET"&&n.startsWith("/search/"),l=n.startsWith("/graphql"),m=~~r.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(m.expiration=1e3*60),(o||l)&&await e.write.key(e.id).schedule(m,pe),o&&e.triggersNotification(n)&&await e.notifications.key(e.id).schedule(m,pe),c&&await e.search.key(e.id).schedule(m,pe);const T=e.global.key(e.id).schedule(m,r,t);if(l){const _=await T;if(_.data.errors!=null&&_.data.errors.some(f=>f.type==="RATE_LIMITED"))throw Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:_,data:_.data})}return T}var ys=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function vs(e){const t=`^(?:${e.map(o=>o.split("/").map(n=>n.startsWith("{")?"(?:.+?)":n).join("/")).map(o=>`(?:${o})`).join("|")})[^/]*$`;return new RegExp(t,"i")}var or=vs(ys),Or=or.test.bind(or),I={},ks=function(e,r){I.global=new e.Group({id:"octokit-global",maxConcurrent:10,...r}),I.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...r}),I.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...r}),I.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...r})};function ye(e,r){const{enabled:t=!0,Bottleneck:o=kr,id:n="no-id",timeout:c=1e3*60*2,connection:l}=r.throttle||{};if(!t)return{};const g={timeout:c};typeof l<"u"&&(g.connection=l),I.global==null&&ks(o,g);const m=Object.assign({clustering:l!=null,triggersNotification:Or,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new o,id:n,...I},r.throttle);if(typeof m.onSecondaryRateLimit!="function"||typeof m.onRateLimit!="function")throw new Error(`octokit/plugin-throttling error: You must pass the onSecondaryRateLimit and onRateLimit error handlers. See https://octokit.github.io/rest.js/#throttling @@ -10,4 +10,4 @@ const J=Object.keys;function Wr(e){return typeof e=="boolean"}function Hr(e){ret onRateLimit: (retryAfter, options) => {/* ... */} } }) - `);const _={},T=new o.Events(_);return _.on("secondary-limit",E.onSecondaryRateLimit),_.on("rate-limit",E.onRateLimit),_.on("error",f=>e.log.warn("Error in throttling-plugin limit handler",f)),E.retryLimiter.on("failed",async function(f,y){const[O,x,R]=y.args,{pathname:C}=new URL(R.url,"http://github.test");if(!(C.startsWith("/graphql")&&f.status!==401||f.status===403||f.status===429))return;const A=~~x.retryCount;x.retryCount=A,R.request.retryCount=A;const{wantRetry:V,retryAfter:q=0}=await async function(){if(/\bsecondary rate\b/i.test(f.message)){const G=Number(f.response.headers["retry-after"])||O.fallbackSecondaryRateRetryAfter;return{wantRetry:await T.trigger("secondary-limit",G,R,e,A),retryAfter:G}}if(f.response.headers!=null&&f.response.headers["x-ratelimit-remaining"]==="0"||(f.response.data?.errors??[]).some(G=>G.type==="RATE_LIMITED")){const G=new Date(~~f.response.headers["x-ratelimit-reset"]*1e3).getTime(),$=Math.max(Math.ceil((G-Date.now())/1e3)+1,0);return{wantRetry:await T.trigger("rate-limit",$,R,e,A),retryAfter:$}}return{}}();if(V)return x.retryCount++,q*O.retryAfterBaseValue}),e.hook.wrap("request",bs.bind(null,E)),{}}ye.VERSION=_s;ye.triggersNotification=Or;var Ps="0.0.0-development",Gs=Jt.plugin(yr,fr,cs,Gr,ye).defaults({userAgent:`octokit.js/${Ps}`,throttle:{onRateLimit:Os,onSecondaryRateLimit:Rs}});function Os(e,r,t){if(t.log.warn(`Request quota exhausted for request ${r.method} ${r.url}`),r.request.retryCount===0)return t.log.info(`Retrying after ${e} seconds!`),!0}function Rs(e,r,t){if(t.log.warn(`SecondaryRateLimit detected for request ${r.method} ${r.url}`),r.request.retryCount===0)return t.log.info(`Retrying after ${e} seconds!`),!0}let Q;const As=async()=>Q||(Q=await(await fetch(`${location.origin}/api/post/list`)).json(),Q),Ss=e=>{let r;const t=n=>{r=n,o(e)},o=n=>{r&&Object.entries({...e,...n}).forEach(([u,l])=>{if(l===!1){r.removeAttribute(u);return}r?.setAttribute(u,l)})};return[t,o]},Fs=e=>{let r;return()=>r||(r=e(),r)},Rr=e=>{const r=Fs(()=>b("div",{class:"fixed z-[100] top-0 left-0 w-full h-full flex items-center justify-center"},b("div",{class:"absolute top-0 left-0 w-full h-full bg-black bg-opacity-50",onClick:o}),b("div",{class:"min-w-[200px] min-h-[100px] z-[2] rounded bg-white flex flex-col"},e()))),t=()=>{const n=r();document.body.appendChild(n)},o=()=>{const n=r();n.parentElement?.removeChild(n)};return{show:t,hide:o}},ve="user_github",Cs=()=>{if(typeof window>"u")return;const e=localStorage.getItem(ve)??void 0;return e?JSON.parse(e):void 0},Us=e=>(localStorage.setItem(ve,JSON.stringify(e)),e),Ds=()=>{const e=Cs();if(e)return Ar(e.token),e},Ar=async e=>{const r=new Gs({auth:e}),{data:t}=await r.request("GET /user"),{data:o}=await r.request("GET /repos/{owner}/{repo}",{owner:t.login,repo:ut.github.repo}).catch(n=>(console.error(n),{data:{permissions:{}}}));Us({name:t.name??void 0,avatar:t.avatar_url,login:t.login,token:e,permissions:o.permissions})},Ls=()=>{localStorage.removeItem(ve)},Is=()=>{const r=Rr(()=>{const[n,u]=Ss({disabled:!0,"data-loading":!1}),l=Vr();return b("div",{class:"flex flex-col gap-4 p-4"},b("div",null,"Enter your github token:"),b("a",{href:"https://github.com/settings/personal-access-tokens/new",target:"_blank",class:"text-xs underline text-blue"},"learn here"),b("input",{ref:l,type:"text",placeholder:"paste your token here",class:"rounded border px-2 py-1 text-sm",onInput:()=>{console.log(l.current?.value,"dsdsd"),u({disabled:!l.current?.value.length})}}),b("button",{class:"buttoned bg-blue",ref:n,onClick:async()=>{const _=l.current?.value;if(_){u({"data-loading":!0});try{await Ar(_),location.reload()}finally{u({"data-loading":!1})}}}},"confirm"))}),t=()=>{r.show()};return b("button",{class:"text-sm",onClick:t},"Login")},xs=e=>{const r=()=>{Ls(),location.reload()},o=Rr(()=>b("div",{class:"w-full flex-1 flex flex-col gap-2 p-4 justify-between"},b("div",null,b("div",{class:"text-lg"},"Are you sure to log out?"),b("div",{class:"text-gray text-sm"},"Token will be clear, make sure you saved it elsewhere")),b("button",{class:"buttoned bg-red",onClick:r},"log out"))),n=()=>{o.show()},u=!!e.permissions?.push,l=location.pathname==="/",g=location.pathname.startsWith("/post"),E=location.pathname.replace("/post/","");return u&&l&&$s(),b("div",{class:"flex gap-2"},u&&l&&b("a",{href:"/edit?new",class:"text-button"},b("div",{class:"i-ri:add-large-line"})),u&&g&&b("a",{href:`/edit?path=${E}`,class:"text-button"},b("div",{class:"i-ri:quill-pen-fill"})),b("div",{class:"w-6 h-6 rounded-full cursor-pointer",onClick:n},b("img",{src:e.avatar,alt:"",class:"rounded-full"})))},js=()=>(()=>{const r=Ds();return r?xs(r):Is()})(),qs=e=>{const r=document.querySelector(e);r&&r.appendChild(js())},$s=async()=>{const r=(await As()).filter(o=>o.draft),t=document.querySelector(".content");r.forEach(o=>{const n=b(st,null,b("div",{"data-page-draft":"verified",class:"pt-8 pb-2"},b("a",{href:`/post/${o.id}`,class:"px-4 pb-4 flex flex-col group"},b("h1",{class:"page-title w-[fit-content] text-lg transition-all font-semibold group-hover:underline"},o.title),b("p",{class:"text-black text-opacity-60"},o.intro)),b("div",{class:"flex pt-2 gap-2 px-4"},o.tags.map(u=>b("a",{href:`/tag/${encodeURIComponent(u)}`,class:"text-sm text-gray hover:text-black"},"#",u))),b("div",{"data-acc-time":o.createTime,class:"text-end text-xs text-gray"})),b("hr",null));t?.insertBefore(n,t.firstChild)})};qs("#auth");export{st as F,Gs as O,ae as a,lt as b,b as c,ut as d,Vr as e,As as g,Ss as u}; + `);const T={},_=new o.Events(T);return T.on("secondary-limit",m.onSecondaryRateLimit),T.on("rate-limit",m.onRateLimit),T.on("error",f=>e.log.warn("Error in throttling-plugin limit handler",f)),m.retryLimiter.on("failed",async function(f,y){const[O,x,R]=y.args,{pathname:C}=new URL(R.url,"http://github.test");if(!(C.startsWith("/graphql")&&f.status!==401||f.status===403||f.status===429))return;const A=~~x.retryCount;x.retryCount=A,R.request.retryCount=A;const{wantRetry:V,retryAfter:q=0}=await async function(){if(/\bsecondary rate\b/i.test(f.message)){const G=Number(f.response.headers["retry-after"])||O.fallbackSecondaryRateRetryAfter;return{wantRetry:await _.trigger("secondary-limit",G,R,e,A),retryAfter:G}}if(f.response.headers!=null&&f.response.headers["x-ratelimit-remaining"]==="0"||(f.response.data?.errors??[]).some(G=>G.type==="RATE_LIMITED")){const G=new Date(~~f.response.headers["x-ratelimit-reset"]*1e3).getTime(),$=Math.max(Math.ceil((G-Date.now())/1e3)+1,0);return{wantRetry:await _.trigger("rate-limit",$,R,e,A),retryAfter:$}}return{}}();if(V)return x.retryCount++,q*O.retryAfterBaseValue}),e.hook.wrap("request",bs.bind(null,m)),{}}ye.VERSION=_s;ye.triggersNotification=Or;var Ps="0.0.0-development",Gs=Jt.plugin(yr,fr,cs,Gr,ye).defaults({userAgent:`octokit.js/${Ps}`,throttle:{onRateLimit:Os,onSecondaryRateLimit:Rs}});function Os(e,r,t){if(t.log.warn(`Request quota exhausted for request ${r.method} ${r.url}`),r.request.retryCount===0)return t.log.info(`Retrying after ${e} seconds!`),!0}function Rs(e,r,t){if(t.log.warn(`SecondaryRateLimit detected for request ${r.method} ${r.url}`),r.request.retryCount===0)return t.log.info(`Retrying after ${e} seconds!`),!0}let Q;const As=async()=>Q||(Q=await(await fetch(`${location.origin}/api/post/list`)).json(),Q),Ss=(e,r=!1)=>{const t=[],o=c=>{r===!1?t[0]=c:t.includes(c)||t.push(c),n(e)},n=c=>{t.forEach(l=>{const g=typeof c=="function"?c(l):c;Object.entries({...e,...g}).forEach(([m,T])=>{if(T===!1){l.removeAttribute(m);return}l?.setAttribute(m,T)})})};return[o,n]},Fs=e=>{let r;return()=>r||(r=e(),r)},Rr=e=>{const r=Fs(()=>b("div",{class:"fixed z-[100] top-0 left-0 w-full h-full flex items-center justify-center"},b("div",{class:"absolute top-0 left-0 w-full h-full bg-modal",onClick:o}),b("div",{class:"min-w-[200px] min-h-[100px] z-[2] rounded bg-bg flex flex-col"},e()))),t=()=>{const n=r();document.body.appendChild(n)},o=()=>{const n=r();n.parentElement?.removeChild(n)};return{show:t,hide:o}},ve="user_github",Cs=()=>{if(typeof window>"u")return;const e=localStorage.getItem(ve)??void 0;return e?JSON.parse(e):void 0},Us=e=>(localStorage.setItem(ve,JSON.stringify(e)),e),Ds=()=>{const e=Cs();if(e)return Ar(e.token),e},Ar=async e=>{const r=new Gs({auth:e}),{data:t}=await r.request("GET /user"),{data:o}=await r.request("GET /repos/{owner}/{repo}",{owner:t.login,repo:ut.github.repo}).catch(n=>(console.error(n),{data:{permissions:{}}}));Us({name:t.name??void 0,avatar:t.avatar_url,login:t.login,token:e,permissions:o.permissions})},Ls=()=>{localStorage.removeItem(ve)},Is=()=>{const r=Rr(()=>{const[n,c]=Ss({disabled:!0,"data-loading":!1}),l=Vr(),g=()=>{console.log(l.current?.value,"dsdsd"),c({disabled:!l.current?.value.length})},m=async()=>{const T=l.current?.value;if(T){c({"data-loading":!0});try{await Ar(T),location.reload()}finally{c({"data-loading":!1})}}};return b("div",{class:"flex flex-col gap-4 p-4"},b("div",null,"Enter your github token:"),b("a",{href:"https://github.com/settings/personal-access-tokens/new",target:"_blank",class:"text-xs underline text-blue"},"learn here"),b("input",{ref:l,type:"text",placeholder:"paste your token here",class:"rounded border px-2 py-1 text-sm",onInput:g,onChange:m}),b("button",{class:"buttoned bg-blue",ref:n,onClick:m},"confirm"))}),t=()=>{r.show()};return b("button",{class:"text-sm",onClick:t},"Login")},xs=e=>{const r=()=>{Ls(),location.reload()},o=Rr(()=>b("div",{class:"w-full flex-1 flex flex-col gap-2 p-4 justify-between"},b("div",null,b("div",{class:"text-lg"},"Are you sure to log out?"),b("div",{class:"text-gray text-sm"},"Token will be clear, make sure you saved it elsewhere")),b("button",{class:"buttoned bg-red",onClick:r},"log out"))),n=()=>{o.show()},c=!!e.permissions?.push,l=location.pathname==="/",g=location.pathname.startsWith("/post"),m=location.pathname.replace("/post/","");return c&&l&&$s(),b("div",{class:"flex gap-2"},c&&l&&b("a",{href:"/edit?new",class:"text-button"},b("div",{class:"i-ri:add-large-line"})),c&&g&&b("a",{href:`/edit?path=${m}`,class:"text-button"},b("div",{class:"i-ri:quill-pen-fill"})),b("div",{class:"w-6 h-6 rounded-full cursor-pointer",onClick:n},b("img",{src:e.avatar,alt:"",class:"rounded-full"})))},js=()=>(()=>{const r=Ds();return r?xs(r):Is()})(),qs=e=>{const r=document.querySelector(e);r&&r.appendChild(js())},$s=async()=>{const r=(await As()).filter(o=>o.draft),t=document.querySelector(".content");r.forEach(o=>{const n=b(st,null,b("div",{"data-page-draft":"verified",class:"pt-8 pb-2"},b("a",{href:`/post/${o.id}`,class:"px-4 pb-4 flex flex-col group"},b("h1",{class:"page-title w-[fit-content] text-lg transition-all font-semibold group-hover:underline"},o.title),b("p",{class:"text-black text-opacity-60"},o.intro)),b("div",{class:"flex pt-2 gap-2 px-4"},o.tags.map(c=>b("a",{href:`/tag/${encodeURIComponent(c)}`,class:"text-sm text-gray hover:text-black"},"#",c))),b("div",{"data-acc-time":o.createTime,class:"text-end text-xs text-gray"})),b("hr",null));t?.insertBefore(n,t.firstChild)})};qs("#auth");export{Gs as O,ae as a,lt as b,b as c,ut as d,Vr as e,As as g,Ss as u}; diff --git a/_astro/hoisted.CclEGpPg.js b/_astro/hoisted.Lkxst6j1.js similarity index 84% rename from _astro/hoisted.CclEGpPg.js rename to _astro/hoisted.Lkxst6j1.js index 52d13b5..89e257e 100644 --- a/_astro/hoisted.CclEGpPg.js +++ b/_astro/hoisted.Lkxst6j1.js @@ -1,16 +1,16 @@ -import{b as ed,a as Rh,O as Dh,d as Ih,g as td,e as Cr,c as fe,F as Lh,u as Ph}from"./hoisted.Olqigeoh.js";/* empty css */function Be(t){this.content=t}Be.prototype={constructor:Be,find:function(t){for(var e=0;e>1}};Be.from=function(t){if(t instanceof Be)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Be(e)};function nd(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)n++;return n}if(i.content.size||s.content.size){let o=nd(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function rd(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),a=e.child(--s),u=o.nodeSize;if(o==a){n-=u,r-=u;continue}if(!o.sameMarkup(a))return{a:n,b:r};if(o.isText&&o.text!=a.text){let l=0,c=Math.min(o.text.length,a.text.length);for(;le&&r(u,i+a,s||null,o)!==!1&&u.content.size){let c=a+1;u.nodesBetween(Math.max(0,e-c),Math.min(u.content.size,n-c),r,i+c)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(a,u)=>{let l=a.isText?a.text.slice(Math.max(e,u)-u,n-u):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&r&&(o?o=!1:s+=r),s+=l},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);se)for(let s=0,o=0;oe&&((on)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,n-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,n-o-1))),r.push(a),i+=a.nodeSize),o=u}return new C(r,i)}cutByIndex(e,n){return e==n?C.empty:e==0&&n==this.content.length?this:new C(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new C(i,s)}addToStart(e){return new C([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new C(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let s=this.child(r),o=i+s.nodeSize;if(o>=e)return o==e||n>0?pi(r+1,o):pi(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return C.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new C(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return C.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;nr.type.rank-i.type.rank),n}};he.none=[];class Hi extends Error{}class B{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=sd(this.content,e+this.openStart,n);return r&&new B(r,this.openStart,this.openEnd)}removeBetween(e,n){return new B(id(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return B.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new B(C.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new B(e,r,i)}}B.empty=new B(C.empty,0,0);function id(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:a}=t.findIndex(n);if(i==e||s.isText){if(a!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(id(s.content,e-i-1,n-i-1)))}function sd(t,e,n,r){let{index:i,offset:s}=t.findIndex(e),o=t.maybeChild(i);if(s==e||o.isText)return t.cut(0,e).append(n).append(t.cut(e));let a=sd(o.content,e-s-1,n);return a&&t.replaceChild(i,o.copy(a))}function Bh(t,e,n){if(n.openStart>t.depth)throw new Hi("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Hi("Inconsistent open depths");return od(t,e,n,0)}function od(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ir(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(Mn(t.nodeAfter,r),s++));for(let a=s;ai&&Jo(t,e,i+1),o=r.depth>i&&Jo(n,r,i+1),a=[];return Ir(null,t,i,a),s&&o&&e.index(i)==n.index(i)?(ad(s,o),Mn(Rn(s,ud(t,e,n,r,i+1)),a)):(s&&Mn(Rn(s,qi(t,e,i+1)),a),Ir(e,n,i,a),o&&Mn(Rn(o,qi(n,r,i+1)),a)),Ir(r,null,i,a),new C(a)}function qi(t,e,n){let r=[];if(Ir(null,t,n,r),t.depth>n){let i=Jo(t,e,n+1);Mn(Rn(i,qi(t,e,n+1)),r)}return Ir(e,null,n,r),new C(r)}function $h(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(C.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Vr{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Vi(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:a,offset:u}=o.content.findIndex(s),l=s-u;if(r.push(o,a,i+u),!l||(o=o.child(a),o.isText))break;s=l-1,i+=u+1}return new Vr(n,r,s)}static resolveCached(e,n){let r=Mu.get(e);if(r)for(let s=0;se&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ld(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=C.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),a=o&&o.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let u=i;un.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=C.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};dn.prototype.text=void 0;class Ki extends dn{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ld(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ki(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ki(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ld(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Un{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Hh(e,n);if(r.next==null)return Un.empty;let i=cd(r);r.next&&r.err("Unexpected trailing text");let s=Yh(jh(i));return Jh(s,r),s}matchType(e){for(let n=0;nl.createAndFill()));for(let l=0;l=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+e.indexOf(r.next[o].next);return s}).join(` -`)}}Un.empty=new Un(!0);class Hh{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function cd(t){let e=[];do e.push(qh(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function qh(t){let e=[];do e.push(Vh(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Vh(t){let e=Gh(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Kh(t,e);else break;return e}function Ru(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Kh(t,e){let n=Ru(t),r=n;return t.eat(",")&&(t.next!="}"?r=Ru(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function Wh(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let s in n){let o=n[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function Gh(t){if(t.eat("(")){let e=cd(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=Wh(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function jh(t){let e=[[]];return i(s(t,0),n()),e;function n(){return e.push([])-1}function r(o,a,u){let l={term:u,to:a};return e[o].push(l),l}function i(o,a){o.forEach(u=>u.to=a)}function s(o,a){if(o.type=="choice")return o.exprs.reduce((u,l)=>u.concat(s(l,a)),[]);if(o.type=="seq")for(let u=0;;u++){let l=s(o.exprs[u],a);if(u==o.exprs.length-1)return l;i(l,a=n())}else if(o.type=="star"){let u=n();return r(a,u),i(s(o.expr,u),u),[r(u)]}else if(o.type=="plus"){let u=n();return i(s(o.expr,a),u),i(s(o.expr,u),u),[r(u)]}else{if(o.type=="opt")return[r(a)].concat(s(o.expr,a));if(o.type=="range"){let u=a;for(let l=0;l{t[o].forEach(({term:a,to:u})=>{if(!a)return;let l;for(let c=0;c{l||i.push([a,l=[]]),l.indexOf(c)==-1&&l.push(c)})})});let s=e[r.join(",")]=new Un(r.indexOf(t.length-1)>-1);for(let o=0;o-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:pd(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new dn(this,this.computeAttrs(e),C.from(n),he.setFrom(r))}createChecked(e=null,n,r){return n=C.from(n),this.checkContent(n),new dn(this,this.computeAttrs(e),n,he.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=C.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),s=i&&i.fillBefore(C.empty,!0);return s?new dn(this,e,n.append(s),he.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;nr[s]=new gd(s,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Zh(t,e,n){let r=n.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${s}`)}}class Xh{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Zh(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Us{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=md(e,i.attrs),this.excluded=null;let s=fd(this.attrs);this.instance=s?new he(this,s):null}create(e=null){return!e&&this.instance?this.instance:new he(this,pd(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Us(s,i++,n,o)),r}removeFromSet(e){for(var n=0;n-1}}class bd{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=Be.from(e.nodes),n.marks=Be.from(e.marks||{}),this.nodes=Iu.compile(this.spec.nodes,this),this.marks=Us.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",a=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=Un.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=a=="_"?null:a?Lu(this,a.split(" ")):a==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:Lu(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Iu){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Ki(r,r.defaultAttrs,e,he.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return dn.fromJSON(this,e)}markFromJSON(e){return he.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Lu(t,e){let n=[];for(let r=0;r-1)&&n.push(o=u)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function Qh(t){return t.tag!=null}function e0(t){return t.style!=null}class fn{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(Qh(i))this.tags.push(i);else if(e0(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let r=new Bu(this,n,!1);return r.addAll(e,he.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Bu(this,n,!0);return r.addAll(e,he.none,n.from,n.to),B.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;ie.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(o.getAttrs){let u=o.getAttrs(n);if(u===!1)continue;o.attrs=u||void 0}return o}}}static schemaRules(e){let n=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o{r(o=$u(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=$u(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new fn(e,fn.schemaRules(e)))}}const yd={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},t0={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Ed={ol:!0,ul:!0},Wi=1,Gi=2,Lr=4;function Pu(t,e,n){return e!=null?(e?Wi:0)|(e==="full"?Gi:0):t&&t.whitespace=="pre"?Wi|Gi:n&~Lr}class hi{constructor(e,n,r,i,s,o){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=he.none,this.match=s||(o&Lr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(C.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Wi)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let n=C.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(C.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!yd.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Bu{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let i=n.topNode,s,o=Pu(null,n.preserveWhitespace,0)|(r?Lr:0);i?s=new hi(i.type,i.attrs,he.none,!0,n.topMatch||i.type.contentMatch,o):r?s=new hi(null,null,he.none,!0,null,o):s=new hi(e.schema.topNodeType,null,he.none,!0,null,o),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top;if(i.options&Gi||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i.options&Wi)i.options&Gi?r=r.replace(/\r\n?/g,` -`):r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],o=e.previousSibling;(!s||o&&o.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=e.nodeName.toLowerCase(),s;Ed.hasOwnProperty(i)&&this.parser.normalizeLists&&n0(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,r));if(o?o.ignore:t0.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,n);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let a,u=this.top,l=this.needsBlock;if(yd.hasOwnProperty(i))u.content.length&&u.content[0].isInline&&this.open&&(this.open--,u=this.top),a=!0,u.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);return}let c=o&&o.skip?n:this.readStyles(e,n);c&&this.addAll(e,c),a&&this.sync(u),this.needsBlock=l}else{let a=this.readStyles(e,n);a&&this.addElementByRule(e,o,a,o.consuming===!1?s:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` -`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i!u.clearMark(l)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)a=u;else break}}return n}addElementByRule(e,n,r,i){let s,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r)||this.leafFallback(e,r);else{let u=this.enter(o,n.attrs||null,r,n.preserveWhitespace);u&&(s=!0,r=u)}else{let u=this.parser.schema.marks[n.mark];r=r.concat(u.create(n.attrs))}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(u=>this.insertNode(u,r));else{let u=e;typeof n.contentElement=="string"?u=e.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(e):n.contentElement&&(u=n.contentElement),this.findAround(e,u,!0),this.addAll(u,r),this.findAround(e,u,!1)}s&&this.sync(a)&&this.open--}addAll(e,n,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,a=i==null?null:e.childNodes[i];o!=a;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,n);this.findAtPoint(e,s)}findPlace(e,n){let r,i;for(let s=this.open;s>=0;s--){let o=this.nodes[s],a=o.findWrapping(e);if(a&&(!r||r.length>a.length)&&(r=a,i=o,!a.length)||o.solid)break}if(!r)return null;this.sync(i);for(let s=0;s(o.type?o.type.allowsMarkType(l.type):Fu(l.type,e))?(u=l.addToSet(u),!1):!0),this.nodes.push(new hi(e,n,u,i,null,a)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(a,u)=>{for(;a>=0;a--){let l=n[a];if(l==""){if(a==n.length-1||a==0)continue;for(;u>=s;u--)if(o(a-1,u))return!0;return!1}else{let c=u>0||u==0&&i?this.nodes[u].type:r&&u>=s?r.node(u-s).type:null;if(!c||c.name!=l&&!c.isInGroup(l))return!1;u--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function n0(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Ed.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function r0(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function $u(t){let e={};for(let n in t)e[n]=t[n];return e}function Fu(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let s=[],o=a=>{s.push(a);for(let u=0;u{if(s.length||o.marks.length){let a=0,u=0;for(;a=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Di(co(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return Di(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new yn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Uu(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Uu(e.marks)}}function Uu(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function co(t){return t.document||window.document}const zu=new WeakMap;function i0(t){let e=zu.get(t);return e===void 0&&zu.set(t,e=s0(t)),e}function s0(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let a,u=n?t.createElementNS(n,i):t.createElement(i),l=e[1],c=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){c=2;for(let d in l)if(l[d]!=null){let f=d.indexOf(" ");f>0?u.setAttributeNS(d.slice(0,f),d.slice(f+1),l[d]):u.setAttribute(d,l[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else{let{dom:p,contentDOM:h}=Di(t,f,n,r);if(u.appendChild(p),h){if(a)throw new RangeError("Multiple content holes");a=h}}}return{dom:u,contentDOM:a}}const xd=65535,vd=Math.pow(2,16);function o0(t,e){return t+e*vd}function Hu(t){return t&xd}function a0(t){return(t-(t&xd))/vd}const wd=1,Sd=2,Ii=4,_d=8;class Xo{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&_d)>0}get deletedBefore(){return(this.delInfo&(wd|Ii))>0}get deletedAfter(){return(this.delInfo&(Sd|Ii))>0}get deletedAcross(){return(this.delInfo&Ii)>0}}class st{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&st.empty)return st.empty}recover(e){let n=0,r=Hu(e);if(!this.inverted)for(let i=0;ie)break;let l=this.ranges[a+s],c=this.ranges[a+o],d=u+l;if(e<=d){let f=l?e==u?-1:e==d?1:n:n,p=u+i+(f<0?0:c);if(r)return p;let h=e==(n<0?u:d)?null:o0(a/3,e-u),m=e==u?Sd:e==d?wd:Ii;return(n<0?e!=u:e!=d)&&(m|=_d),new Xo(p,m,h)}i+=c-l}return r?e+i:new Xo(e+i,0,null)}touches(e,n){let r=0,i=Hu(n),s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;ae)break;let l=this.ranges[a+s],c=u+l;if(e<=c&&a==i*3)return!0;r+=this.ranges[a+o]-l}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i=0;n--){let i=e.getMirror(n);this.appendMap(e.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new lr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;rs&&u!o.isAtom||!a.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return _e.fromReplace(e,this.from,this.to,s)}invert(){return new Dt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new sn(n.pos,r.pos,this.mark)}merge(e){return e instanceof sn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new sn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sn(n.from,n.to,e.markFromJSON(n.mark))}}qe.jsonID("addMark",sn);class Dt extends qe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new B(Ia(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return _e.fromReplace(e,this.from,this.to,r)}invert(){return new sn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Dt(n.pos,r.pos,this.mark)}merge(e){return e instanceof Dt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Dt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Dt(n.from,n.to,e.markFromJSON(n.mark))}}qe.jsonID("removeMark",Dt);class on extends qe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return _e.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return _e.fromReplace(e,this.pos,this.pos+1,new B(C.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new Re(n.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Re(n.from,n.to,n.gapFrom,n.gapTo,B.fromJSON(e,n.slice),n.insert,!!n.structure)}}qe.jsonID("replaceAround",Re);function Qo(t,e,n){let r=t.resolve(e),i=n-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function u0(t,e,n,r){let i=[],s=[],o,a;t.doc.nodesBetween(e,n,(u,l,c)=>{if(!u.isInline)return;let d=u.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let f=Math.max(l,e),p=Math.min(l+u.nodeSize,n),h=r.addToSet(d);for(let m=0;mt.step(u)),s.forEach(u=>t.step(u))}function l0(t,e,n,r){let i=[],s=0;t.doc.nodesBetween(e,n,(o,a)=>{if(!o.isInline)return;s++;let u=null;if(r instanceof Us){let l=o.marks,c;for(;c=r.isInSet(l);)(u||(u=[])).push(c),l=c.removeFromSet(l)}else r?r.isInSet(o.marks)&&(u=[r]):u=o.marks;if(u&&u.length){let l=Math.min(a+o.nodeSize,n);for(let c=0;ct.step(new Dt(o.from,o.to,o.style)))}function La(t,e,n,r=n.contentMatch,i=!0){let s=t.doc.nodeAt(e),o=[],a=e+1;for(let u=0;u=0;u--)t.step(o[u])}function c0(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function _r(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let i=t.$from.node(r),s=t.$from.index(r),o=t.$to.indexAfter(r);if(rn;h--)m||r.index(h)>0?(m=!0,c=C.from(r.node(h).copy(c)),d++):u--;let f=C.empty,p=0;for(let h=s,m=!1;h>n;h--)m||i.after(h+1)=0;o--){if(r.size){let a=n[o].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=C.from(n[o].type.create(n[o].attrs,r))}let i=e.start,s=e.end;t.step(new Re(i,s,i,s,new B(r,0,0),n.length,!0))}function m0(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(o,a)=>{let u=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,u)&&g0(t.doc,t.mapping.slice(s).map(a),r)){let l=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!h?l=!1:!p&&h&&(l=!0)}l===!1&&Td(t,o,a,s),La(t,t.mapping.slice(s).map(a,1),r,void 0,l===null);let c=t.mapping.slice(s),d=c.map(a,1),f=c.map(a+o.nodeSize,1);return t.step(new Re(d,f,d+1,f-1,new B(C.from(r.create(u,null,o.marks)),0,0),1,!0)),l===!0&&Nd(t,o,a,s),!1}})}function Nd(t,e,n,r){e.forEach((i,s)=>{if(i.isText){let o,a=/\r?\n|\r/g;for(;o=a.exec(i.text);){let u=t.mapping.slice(r).map(n+1+s+o.index);t.replaceWith(u,u+1,e.type.schema.linebreakReplacement.create())}}})}function Td(t,e,n,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+s);t.replaceWith(o,o+1,e.type.schema.text(` -`))}})}function g0(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function b0(t,e,n,r,i){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let o=n.create(r,null,i||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,o);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Re(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new B(C.from(o),0,0),1,!0))}function Kt(t,e,n=1,r){let i=t.resolve(e),s=i.depth-n,o=r&&r[r.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let l=i.depth-1,c=n-2;l>s;l--,c--){let d=i.node(l),f=i.index(l);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(f,d.childCount),h=r&&r[c+1];h&&(p=p.replaceChild(0,h.type.create(h.attrs)));let m=r&&r[c]||d;if(!d.canReplace(f+1,d.childCount)||!m.type.validContent(p))return!1}let a=i.indexAfter(s),u=r&&r[0];return i.node(s).canReplaceWith(a,a,u?u.type:i.node(s+1).type)}function y0(t,e,n=1,r){let i=t.doc.resolve(e),s=C.empty,o=C.empty;for(let a=i.depth,u=i.depth-n,l=n-1;a>u;a--,l--){s=C.from(i.node(a).copy(s));let c=r&&r[l];o=C.from(c?c.type.create(c.attrs,o):i.node(a).copy(o))}t.step(new Ce(e,e,new B(s.append(o),n,n),!0))}function En(t,e){let n=t.resolve(e),r=n.index();return kd(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function E0(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i0?(s=r.node(i+1),a++,o=r.node(i).maybeChild(a)):(s=r.node(i).maybeChild(a-1),o=r.node(i+1)),s&&!s.isTextblock&&kd(s,o)&&r.node(i).canReplace(a,a+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function x0(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,s=t.doc.resolve(e-n),o=s.node().type;if(i&&o.inlineContent){let c=o.whitespace=="pre",d=!!o.contentMatch.matchType(i);c&&!d?r=!1:!c&&d&&(r=!0)}let a=t.steps.length;if(r===!1){let c=t.doc.resolve(e+n);Td(t,c.node(),c.before(),a)}o.inlineContent&&La(t,e+n-1,o,s.node().contentMatchAt(s.index()),r==null);let u=t.mapping.slice(a),l=u.map(e-n);if(t.step(new Ce(l,u.map(e+n,-1),B.empty,!0)),r===!0){let c=t.doc.resolve(l);Nd(t,c.node(),c.before(),t.steps.length)}return t}function v0(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let s=r.index(i);if(r.node(i).canReplaceWith(s,s,n))return r.before(i+1);if(s>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let s=r.indexAfter(i);if(r.node(i).canReplaceWith(s,s,n))return r.after(i+1);if(s=0;o--){let a=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,u=r.index(o)+(a>0?1:0),l=r.node(o),c=!1;if(s==1)c=l.canReplace(u,u,i);else{let d=l.contentMatchAt(u).findWrapping(i.firstChild.type);c=d&&l.canReplaceWith(u,u,d[0])}if(c)return a==0?r.pos:a<0?r.before(o+1):r.after(o+1)}return null}function Hs(t,e,n=e,r=B.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),s=t.resolve(n);return Ad(i,s,r)?new Ce(e,n,r):new w0(i,s,r).fit()}function Ad(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class w0{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=C.empty;for(let i=0;i<=e.depth;i++){let s=e.node(i);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=C.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let l=this.findFittable();l?this.placeNodes(l):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,a=i.depth;for(;o&&a&&s.childCount==1;)s=s.firstChild.content,o--,a--;let u=new B(s,o,a);return e>-1?new Re(r.pos,e,this.$to.pos,this.$to.end(),u,n):u.size||r.pos!=this.$to.pos?new Ce(r.pos,i.pos,u):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),s.type.spec.isolating&&i<=r){e=r;break}n=s.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,s=null;r?(s=po(this.unplaced.content,r-1).firstChild,i=s.content):i=this.unplaced.content;let o=i.firstChild;for(let a=this.depth;a>=0;a--){let{type:u,match:l}=this.frontier[a],c,d=null;if(n==1&&(o?l.matchType(o.type)||(d=l.fillBefore(C.from(o),!1)):s&&u.compatibleContent(s.type)))return{sliceDepth:r,frontierDepth:a,parent:s,inject:d};if(n==2&&o&&(c=l.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:a,parent:s,wrap:c};if(s&&l.matchType(s.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=po(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new B(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=po(e,n);if(i.childCount<=1&&n>0){let s=e.size-n<=n+i.size;this.unplaced=new B(Mr(e,n-1,1),n-1,s?n-1:r)}else this.unplaced=new B(Mr(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let m=0;m1||u==0||m.content.size)&&(d=g,c.push(Cd(m.mark(f.allowedMarks(m.marks)),l==1?u:0,l==a.childCount?p:-1)))}let h=l==a.childCount;h||(p=-1),this.placed=Rr(this.placed,n,C.from(c)),this.frontier[n].match=d,h&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=a;m1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],s=n=0;a--){let{match:u,type:l}=this.frontier[a],c=ho(e,a,l,u,!0);if(!c||c.childCount)continue e}return{depth:n,fit:o,move:s?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Rr(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),s=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,s)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Rr(this.placed,this.depth,C.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(C.empty,!0);n.childCount&&(this.placed=Rr(this.placed,this.frontier.length,n))}}function Mr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Mr(t.firstChild.content,e-1,n)))}function Rr(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Rr(t.lastChild.content,e-1,n)))}function po(t,e){for(let n=0;n1&&(r=r.replaceChild(0,Cd(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(C.empty,!0)))),t.copy(r)}function ho(t,e,n,r,i){let s=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==s.childCount&&!n.compatibleContent(s.type))return null;let a=r.fillBefore(s.content,!0,o);return a&&!S0(n,s.content,o)?a:null}function S0(t,e,n){for(let r=n;r0;f--,p--){let h=i.node(f).type.spec;if(h.defining||h.definingAsContext||h.isolating)break;o.indexOf(f)>-1?a=f:i.before(f)==p&&o.splice(1,0,-f)}let u=o.indexOf(a),l=[],c=r.openStart;for(let f=r.content,p=0;;p++){let h=f.firstChild;if(l.push(h),p==r.openStart)break;f=h.content}for(let f=c-1;f>=0;f--){let p=l[f],h=_0(p.type);if(h&&!p.sameMarkup(i.node(Math.abs(a)-1)))c=f;else if(h||!p.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let p=(f+c+1)%(r.openStart+1),h=l[p];if(h)for(let m=0;m=0&&(t.replace(e,n,r),!(t.steps.length>d));f--){let p=o[f];p<0||(e=i.before(p),n=s.after(p))}}function Md(t,e,n,r,i){if(er){let s=i.contentMatchAt(0),o=s.fillBefore(t).append(t);t=o.append(s.matchFragment(o).fillBefore(C.empty,!0))}return t}function T0(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=v0(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new B(C.from(r),0,0))}function k0(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n),s=Rd(r,i);for(let o=0;o0&&(u||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return t.delete(r.before(a),i.after(a))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(e-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return t.delete(r.before(o),n);t.delete(e,n)}function Rd(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let s=t.start(i);if(se.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(s==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==s-1)&&n.push(i)}return n}class cr extends qe{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return _e.fail("No node at attribute step's position");let r=Object.create(null);for(let s in n.attrs)r[s]=n.attrs[s];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return _e.fromReplace(e,this.pos,this.pos+1,new B(C.from(i),0,n.isLeaf?0:1))}getMap(){return st.empty}invert(e){return new cr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new cr(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new cr(n.pos,n.attr,n.value)}}qe.jsonID("attr",cr);class Kr extends qe{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return _e.ok(r)}getMap(){return st.empty}invert(e){return new Kr(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Kr(n.attr,n.value)}}qe.jsonID("docAttr",Kr);let pr=class extends Error{};pr=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};pr.prototype=Object.create(Error.prototype);pr.prototype.constructor=pr;pr.prototype.name="TransformError";class Dd{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new lr}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new pr(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=B.empty){let i=Hs(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new B(C.from(r),0,0))}delete(e,n){return this.replace(e,n,B.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return N0(this,e,n,r),this}replaceRangeWith(e,n,r){return T0(this,e,n,r),this}deleteRange(e,n){return k0(this,e,n),this}lift(e,n){return d0(this,e,n),this}join(e,n=1){return x0(this,e,n),this}wrap(e,n){return h0(this,e,n),this}setBlockType(e,n=e,r,i=null){return m0(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return b0(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new cr(e,n,r)),this}setDocAttribute(e,n){return this.step(new Kr(e,n)),this}addNodeMark(e,n){return this.step(new on(e,n)),this}removeNodeMark(e,n){if(!(n instanceof he)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new fr(e,n)),this}split(e,n=1,r){return y0(this,e,n,r),this}addMark(e,n,r){return u0(this,e,n,r),this}removeMark(e,n,r){return l0(this,e,n,r),this}clearIncompatible(e,n,r){return La(this,e,n,r),this}}const mo=Object.create(null);class te{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new O0(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;s--){let o=n<0?er(e.node(0),e.node(s),e.before(s+1),e.index(s),n,r):er(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,n,r);if(o)return o}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new bt(e.node(0))}static atStart(e){return er(e,e,0,0,1)||new bt(e)}static atEnd(e){return er(e,e,e.content.size,e.childCount,-1)||new bt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=mo[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in mo)throw new RangeError("Duplicate use of selection JSON ID "+e);return mo[e]=n,n.prototype.jsonID=e,n}getBookmark(){return j.between(this.$anchor,this.$head).getBookmark()}}te.prototype.visible=!0;class O0{constructor(e,n){this.$from=e,this.$to=n}}let Vu=!1;function Ku(t){!Vu&&!t.parent.inlineContent&&(Vu=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class j extends te{constructor(e,n=e){Ku(e),Ku(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return te.near(r);let i=e.resolve(n.map(this.anchor));return new j(i.parent.inlineContent?i:r,r)}replace(e,n=B.empty){if(super.replace(e,n),n==B.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof j&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new qs(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new j(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let s=te.findFrom(n,r,!0)||te.findFrom(n,-r,!0);if(s)n=s.$head;else return te.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(te.findFrom(e,-r,!0)||te.findFrom(e,r,!0)).$anchor,e.pos0?0:1);i>0?o=0;o+=i){let a=e.child(o);if(a.isAtom){if(!s&&H.isSelectable(a))return H.create(t,n-(i<0?a.nodeSize:0))}else{let u=er(t,a,n+i,i<0?a.childCount:0,i,s);if(u)return u}n+=a.nodeSize*i}return null}function Wu(t,e,n){let r=t.steps.length-1;if(r{o==null&&(o=c)}),t.setSelection(te.near(t.doc.resolve(o),n))}const Gu=1,mi=2,ju=4;class C0 extends Dd{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=mi,this}ensureMarks(e){return he.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&mi)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~mi,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||he.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let s=this.storedMarks;if(!s){let o=this.doc.resolve(n);s=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,s)),this.selection.empty||this.setSelection(te.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=ju,this}get scrolledIntoView(){return(this.updated&ju)>0}}function Yu(t,e){return!e||!t?t:t.bind(e)}class Dr{constructor(e,n,r){this.name=e,this.init=Yu(n.init,r),this.apply=Yu(n.apply,r)}}const M0=[new Dr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Dr("selection",{init(t,e){return t.selection||te.atStart(e.doc)},apply(t){return t.selection}}),new Dr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Dr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class go{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=M0.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Dr(r.key,r.spec.state,r))})}}class ar{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;rr.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],s=i.spec.state;s&&s.toJSON&&(n[r]=s.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new go(e.schema,e.plugins),s=new ar(i);return i.fields.forEach(o=>{if(o.name=="doc")s.doc=dn.fromJSON(e.schema,n.doc);else if(o.name=="selection")s.selection=te.fromJSON(s.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let a in r){let u=r[a],l=u.spec.state;if(u.key==o.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){s[o.name]=l.fromJSON.call(u,e,n[a],s);return}}s[o.name]=o.init(e,s)}}),s}}function Id(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=Id(i,e,{})),n[r]=i}return n}class Ee{constructor(e){this.spec=e,this.props={},e.props&&Id(e.props,this,this.props),this.key=e.key?e.key.key:Ld("plugin")}getState(e){return e[this.key]}}const bo=Object.create(null);function Ld(t){return t in bo?t+"$"+ ++bo[t]:(bo[t]=0,t+"$")}class Le{constructor(e="key"){this.key=Ld(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const $e=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Wr=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let ea=null;const qt=function(t,e,n){let r=ea||(ea=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},R0=function(){ea=null},zn=function(t,e,n,r){return n&&(Ju(t,e,n,r,-1)||Ju(t,e,n,r,1))},D0=/^(img|br|input|textarea|hr)$/i;function Ju(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:gt(t))){let s=t.parentNode;if(!s||s.nodeType!=1||oi(t)||D0.test(t.nodeName)||t.contentEditable=="false")return!1;e=$e(t)+(i<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.contentEditable=="false")return!1;e=i<0?gt(t):0}else return!1}}function gt(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function I0(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=gt(t)}else if(t.parentNode&&!oi(t))e=$e(t),t=t.parentNode;else return null}}function L0(t,e){for(;;){if(t.nodeType==3&&e2),ht=hr||(Lt?/Mac/.test(Lt.platform):!1),F0=Lt?/Win/.test(Lt.platform):!1,St=/Android \d/.test(xn),ai=!!Zu&&"webkitFontSmoothing"in Zu.documentElement.style,U0=ai?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function z0(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Ut(t,e){return typeof t=="number"?t:t[e]}function H0(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function Xu(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,s=t.dom.ownerDocument;for(let o=n||t.dom;o;o=Wr(o)){if(o.nodeType!=1)continue;let a=o,u=a==s.body,l=u?z0(s):H0(a),c=0,d=0;if(e.topl.bottom-Ut(r,"bottom")&&(d=e.bottom-e.top>l.bottom-l.top?e.top+Ut(i,"top")-l.top:e.bottom-l.bottom+Ut(i,"bottom")),e.leftl.right-Ut(r,"right")&&(c=e.right-l.right+Ut(i,"right")),c||d)if(u)s.defaultView.scrollBy(c,d);else{let f=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),c&&(a.scrollLeft+=c);let h=a.scrollLeft-f,m=a.scrollTop-p;e={left:e.left-h,top:e.top-m,right:e.right-h,bottom:e.bottom-m}}if(u||/^(fixed|sticky)$/.test(getComputedStyle(o).position))break}}function q0(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let s=(e.left+e.right)/2,o=n+1;o=n-20){r=a,i=u.top;break}}return{refDOM:r,refTop:i,stack:$d(t.dom)}}function $d(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Wr(r));return e}function V0({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;Fd(n,r==0?0:r-e)}function Fd(t,e){for(let n=0;n=a){o=Math.max(h.bottom,o),a=Math.min(h.top,a);let m=h.left>e.left?h.left-e.left:h.right=(h.left+h.right)/2?1:0));continue}}else h.top>e.top&&!u&&h.left<=e.left&&h.right>=e.left&&(u=c,l={left:Math.max(h.left,Math.min(h.right,e.left)),top:h.top});!n&&(e.left>=h.right&&e.top>=h.top||e.left>=h.left&&e.top>=h.bottom)&&(s=d+1)}}return!n&&u&&(n=u,i=l,r=0),n&&n.nodeType==3?W0(n,i):!n||r&&n.nodeType==1?{node:t,offset:s}:Ud(n,i)}function W0(t,e){let n=t.nodeValue.length,r=document.createRange();for(let i=0;i=(s.left+s.right)/2?1:0)}}return{node:t,offset:0}}function $a(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function G0(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(o.left+o.right)/2?1:-1}return t.docView.posFromDOM(r,i,s)}function Y0(t,e,n,r){let i=-1;for(let s=e,o=!1;s!=t.dom;){let a=t.docView.nearestDesc(s,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let u=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!o&&u.left>r.left||u.top>r.top?i=a.posBefore:(!o&&u.right-1?i:t.docView.posFromDOM(e,n,-1)}function zd(t,e,n){let r=t.childNodes.length;if(r&&n.tope.top&&i++}let l;ai&&i&&r.nodeType==1&&(l=r.childNodes[i-1]).nodeType==1&&l.contentEditable=="false"&&l.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=Y0(t,r,i,e))}a==null&&(a=j0(t,o,e));let u=t.docView.nearestDesc(o,!0);return{pos:a,inside:u?u.posAtStart-u.border:-1}}function Qu(t){return t.top=0&&i==r.nodeValue.length?(u--,c=1):n<0?u--:l++,kr(Zt(qt(r,u,l),c),c<0)}if(!t.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&i&&(n<0||i==gt(r))){let u=r.childNodes[i-1];if(u.nodeType==1)return yo(u.getBoundingClientRect(),!1)}if(s==null&&i=0)}if(s==null&&i&&(n<0||i==gt(r))){let u=r.childNodes[i-1],l=u.nodeType==3?qt(u,gt(u)-(o?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(l)return kr(Zt(l,1),!1)}if(s==null&&i=0)}function kr(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function yo(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function qd(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function X0(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return qd(t,e,()=>{let{node:s}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(s,!0);if(!a)break;if(a.node.isBlock){s=a.contentDOM||a.dom;break}s=a.dom.parentNode}let o=Hd(t,i.pos,1);for(let a=s.firstChild;a;a=a.nextSibling){let u;if(a.nodeType==1)u=a.getClientRects();else if(a.nodeType==3)u=qt(a,0,a.nodeValue.length).getClientRects();else continue;for(let l=0;lc.top+1&&(n=="up"?o.top-c.top>(c.bottom-o.top)*2:c.bottom-o.bottom>(o.bottom-c.top)*2))return!1}}return!0})}const Q0=/[\u0590-\u08ac]/;function em(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,s=!i,o=i==r.parent.content.size,a=t.domSelection();return a?!Q0.test(r.parent.textContent)||!a.modify?n=="left"||n=="backward"?s:o:qd(t,e,()=>{let{focusNode:u,focusOffset:l,anchorNode:c,anchorOffset:d}=t.domSelectionRange(),f=a.caretBidiLevel;a.modify("move",n,"character");let p=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:h,focusOffset:m}=t.domSelectionRange(),g=h&&!p.contains(h.nodeType==1?h:h.parentNode)||u==h&&l==m;try{a.collapse(c,d),u&&(u!=c||l!=d)&&a.extend&&a.extend(u,l)}catch{}return f!=null&&(a.caretBidiLevel=f),g}):r.pos==r.start()||r.pos==r.end()}let el=null,tl=null,nl=!1;function tm(t,e,n){return el==e&&tl==n?nl:(el=e,tl=n,nl=n=="up"||n=="down"?X0(t,e,n):em(t,e,n))}const yt=0,rl=1,kn=2,Pt=3;class ui{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=yt,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n$e(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=e;;s=s.parentNode){if(s==this.dom){i=!1;break}if(s.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){i=!0;break}if(s.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let s=this.getDesc(i),o;if(s&&(!n||s.node))if(r&&(o=s.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))r=!1;else return s}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let s=this.getDesc(i);if(s)return s.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;ne||o instanceof Kd){i=e-s;break}s=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let s;r&&!(s=this.children[r-1]).size&&s instanceof Vd&&s.side>=0;r--);if(n<=0){let s,o=!0;for(;s=r?this.children[r-1]:null,!(!s||s.dom.parentNode==this.contentDOM);r--,o=!1);return s&&n&&o&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?$e(s.dom)+1:0}}else{let s,o=!0;for(;s=r=c&&n<=l-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(e,n,c);e=o;for(let d=a;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=$e(f.dom)+1;break}e-=f.size}i==-1&&(i=0)}if(i>-1&&(l>n||a==this.children.length-1)){n=l;for(let c=a+1;cp&&on){let p=a;a=u,u=p}let f=document.createRange();f.setEnd(u.node,u.offset),f.setStart(a.node,a.offset),l.removeAllRanges(),l.addRange(f)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i=r:er){let a=r+s.border,u=o-s.border;if(e>=a&&n<=u){this.dirty=e==r||n==o?kn:rl,e==a&&n==u&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=Pt:s.markDirty(e-a,n-a);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?kn:Pt}r=o}this.dirty=kn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?kn:rl;n.dirty{if(!s)return i;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(o.nodeType!=1){let a=document.createElement("span");a.appendChild(o),o=a}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=n,this.widget=n,s=this}matchesWidget(e){return this.dirty==yt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class nm extends ui{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Hn extends ui{constructor(e,n,r,i,s){super(e,[],r,i),this.mark=n,this.spec=s}static create(e,n,r,i){let s=i.nodeViews[n.type.name],o=s&&s(n,i,r);return(!o||!o.dom)&&(o=yn.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Hn(e,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&Pt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Pt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=yt){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(s=sa(s,0,e,r));for(let a=0;a{if(!u)return o;if(u.parent)return u.parent.posBeforeChild(u)},r,i),c=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=yn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let f=c;return c=jd(c,r,n),l?u=new rm(e,n,r,i,c,d||null,f,l,s,o+1):n.isText?new Ks(e,n,r,i,c,f,s):new hn(e,n,r,i,c,d||null,f,s,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>C.empty)}return e}matchesNode(e,n,r){return this.dirty==yt&&e.eq(this.node)&&ji(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,s=e.composing?this.localCompositionInfo(e,n):null,o=s&&s.pos>-1?s:null,a=s&&s.pos<0,u=new sm(this,o&&o.node,e);um(this.node,this.innerDeco,(l,c,d)=>{l.spec.marks?u.syncToMarks(l.spec.marks,r,e):l.type.side>=0&&!d&&u.syncToMarks(c==this.node.childCount?he.none:this.node.child(c).marks,r,e),u.placeWidget(l,e,i)},(l,c,d,f)=>{u.syncToMarks(l.marks,r,e);let p;u.findNodeMatch(l,c,d,f)||a&&e.state.selection.from>i&&e.state.selection.to-1&&u.updateNodeAt(l,c,d,p,e)||u.updateNextNode(l,c,d,e,f,i)||u.addNode(l,c,d,e,i),i+=l.nodeSize}),u.syncToMarks([],r,e),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==kn)&&(o&&this.protectLocalComposition(e,o),Wd(this.contentDOM,this.children,e),hr&&lm(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof j)||rn+this.node.content.size)return null;let s=e.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let o=s.nodeValue,a=cm(this.node.content,o,r-n,i-n);return a<0?null:{node:s,pos:a,text:o}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let o=new nm(this,s,n,i);e.input.compositionNodes.push(o),this.children=sa(this.children,r,r+i.length,e,o)}update(e,n,r,i){return this.dirty==Pt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=yt}updateOuterDeco(e){if(ji(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Gd(this.dom,this.nodeDOM,ia(this.outerDeco,this.node,n),ia(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function il(t,e,n,r,i){jd(r,e,t);let s=new hn(void 0,t,e,n,r,r,r,i,0);return s.contentDOM&&s.updateChildren(i,0),s}class Ks extends hn{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s,null,o,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==Pt||this.dirty!=yt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=yt||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=yt,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),s=document.createTextNode(i.text);return new Ks(this.parent,i,this.outerDeco,this.innerDeco,s,s,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Pt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Kd extends ui{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==yt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class rm extends hn{constructor(e,n,r,i,s,o,a,u,l,c){super(e,n,r,i,s,o,a,l,c),this.spec=u}update(e,n,r,i){if(this.dirty==Pt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let s=this.spec.update(e,n,r);return s&&this.updateInner(e,n,r,i),s}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Wd(t,e,n){let r=t.firstChild,i=!1;for(let s=0;s>1,o=Math.min(s,e.length);for(;i-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let u=Hn.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,r,i){let s=-1,o;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(e,n,r))s=this.top.children.indexOf(o,this.index);else for(let a=this.index,u=Math.min(this.top.children.length,a+5);a0;){let a;for(;;)if(r){let l=n.children[r-1];if(l instanceof Hn)n=l,r=l.children.length;else{a=l,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let u=a.node;if(u){if(u!=t.child(i-1))break;--i,s.set(a,i),o.push(a)}}return{index:i,matched:s,matches:o.reverse()}}function am(t,e){return t.type.side-e.type.side}function um(t,e,n,r){let i=e.locals(t),s=0;if(i.length==0){for(let l=0;ls;)a.push(i[o++]);let h=s+f.nodeSize;if(f.isText){let g=h;o!g.inline):a.slice();r(f,m,e.forChild(s,f),p),s=h}}function lm(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function cm(t,e,n,r){for(let i=0,s=0;i=n){if(s>=r&&u.slice(r-e.length-a,r-a)==e)return r-e.length;let l=a=0&&l+e.length+a>=n)return a+l;if(n==r&&u.length>=r+e.length-a&&u.slice(r-a,r-a+e.length)==e)return r}}return-1}function sa(t,e,n,r,i){let s=[];for(let o=0,a=0;o=n||c<=e?s.push(u):(ln&&s.push(u.slice(n-l,u.size,r)))}return s}function Fa(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),s=i&&i.size==0,o=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let a=r.resolve(o),u,l;if(Vs(n)){for(u=o;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&H.isSelectable(d)&&i.parent&&!(d.isInline&&P0(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;l=new H(o==f?a:r.resolve(f))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=o,f=o;for(let p=0;p{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Yd(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function fm(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let r=t.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setStart(r.parentNode,$e(r)+1):n.setStart(r,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!i&&!t.state.selection.visible&&nt&&pn<=11&&(r.disabled=!0,r.disabled=!1)}function Jd(t,e){if(e instanceof H){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(ll(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else ll(t)}function ll(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Ua(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||j.between(e,n,r)}function cl(t){return t.editable&&!t.hasFocus()?!1:Zd(t)}function Zd(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function pm(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return zn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function oa(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),s=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return s&&te.findFrom(s,e)}function Xt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function dl(t,e,n){let r=t.state.selection;if(r instanceof j)if(n.indexOf("s")>-1){let{$head:i}=r,s=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let o=t.state.doc.resolve(i.pos+s.nodeSize*(e<0?-1:1));return Xt(t,new j(r.$anchor,o))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=oa(t.state,e);return i&&i instanceof H?Xt(t,i):!1}else if(!(ht&&n.indexOf("m")>-1)){let i=r.$head,s=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,o;if(!s||s.isText)return!1;let a=e<0?i.pos-s.nodeSize:i.pos;return s.isAtom||(o=t.docView.descAt(a))&&!o.contentDOM?H.isSelectable(s)?Xt(t,new H(e<0?t.state.doc.resolve(i.pos-s.nodeSize):i)):ai?Xt(t,new j(t.state.doc.resolve(e<0?a:a+s.nodeSize))):!1:!1}}else return!1;else{if(r instanceof H&&r.node.isInline)return Xt(t,new j(e>0?r.$to:r.$from));{let i=oa(t.state,e);return i?Xt(t,i):!1}}}function Yi(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Br(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Jn(t,e){return e<0?hm(t):mm(t)}function hm(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,s,o=!1;for(Tt&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let a=n.childNodes[r-1];if(Br(a,-1))i=n,s=--r;else if(a.nodeType==3)n=a,r=n.nodeValue.length;else break}}else{if(Xd(n))break;{let a=n.previousSibling;for(;a&&Br(a,-1);)i=n.parentNode,s=$e(a),a=a.previousSibling;if(a)n=a,r=Yi(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}o?aa(t,n,r):i&&aa(t,i,s)}function mm(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=Yi(n),s,o;for(;;)if(r{t.state==i&&Wt(t)},50)}function fl(t,e){let n=t.state.doc.resolve(e);if(!(He||F0)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let s=t.coordsAtPos(e-1),o=(s.top+s.bottom)/2;if(o>i.top&&o1)return s.lefti.top&&o1)return s.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function pl(t,e,n){let r=t.state.selection;if(r instanceof j&&!r.empty||n.indexOf("s")>-1||ht&&n.indexOf("m")>-1)return!1;let{$from:i,$to:s}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let o=oa(t.state,e);if(o&&o instanceof H)return Xt(t,o)}if(!i.parent.inlineContent){let o=e<0?i:s,a=r instanceof bt?te.near(o,e):te.findFrom(o,e);return a?Xt(t,a):!1}return!1}function hl(t,e){if(!(t.state.selection instanceof j))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let o=t.state.tr;return e<0?o.delete(n.pos-s.nodeSize,n.pos):o.delete(n.pos,n.pos+s.nodeSize),t.dispatch(o),!0}return!1}function ml(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function ym(t){if(!Ge||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;ml(t,r,"true"),setTimeout(()=>ml(t,r,"false"),20)}return!1}function Em(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function xm(t,e){let n=e.keyCode,r=Em(e);if(n==8||ht&&n==72&&r=="c")return hl(t,-1)||Jn(t,-1);if(n==46&&!e.shiftKey||ht&&n==68&&r=="c")return hl(t,1)||Jn(t,1);if(n==13||n==27)return!0;if(n==37||ht&&n==66&&r=="c"){let i=n==37?fl(t,t.state.selection.from)=="ltr"?-1:1:-1;return dl(t,i,r)||Jn(t,i)}else if(n==39||ht&&n==70&&r=="c"){let i=n==39?fl(t,t.state.selection.from)=="ltr"?1:-1:1;return dl(t,i,r)||Jn(t,i)}else{if(n==38||ht&&n==80&&r=="c")return pl(t,-1,r)||Jn(t,-1);if(n==40||ht&&n==78&&r=="c")return ym(t)||pl(t,1,r)||Jn(t,1);if(r==(ht?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function za(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:r,openStart:i,openEnd:s}=e;for(;i>1&&s>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,s--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let o=t.someProp("clipboardSerializer")||yn.fromSchema(t.state.schema),a=sf(),u=a.createElement("div");u.appendChild(o.serializeFragment(r,{document:a}));let l=u.firstChild,c,d=0;for(;l&&l.nodeType==1&&(c=rf[l.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let h=a.createElement(c[p]);for(;u.firstChild;)h.appendChild(u.firstChild);u.appendChild(h),d++}l=u.firstChild}l&&l.nodeType==1&&l.setAttribute("data-pm-slice",`${i} ${s}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,` +import{b as ed,a as Rh,O as Dh,d as Ih,g as td,e as Cr,c as ce,u as Lh}from"./hoisted.DnwpQtlg.js";/* empty css */function Be(t){this.content=t}Be.prototype={constructor:Be,find:function(t){for(var e=0;e>1}};Be.from=function(t){if(t instanceof Be)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Be(e)};function nd(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),s=e.child(r);if(i==s){n+=i.nodeSize;continue}if(!i.sameMarkup(s))return n;if(i.isText&&i.text!=s.text){for(let o=0;i.text[o]==s.text[o];o++)n++;return n}if(i.content.size||s.content.size){let o=nd(i.content,s.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function rd(t,e,n,r){for(let i=t.childCount,s=e.childCount;;){if(i==0||s==0)return i==s?null:{a:n,b:r};let o=t.child(--i),a=e.child(--s),u=o.nodeSize;if(o==a){n-=u,r-=u;continue}if(!o.sameMarkup(a))return{a:n,b:r};if(o.isText&&o.text!=a.text){let l=0,c=Math.min(o.text.length,a.text.length);for(;le&&r(u,i+a,s||null,o)!==!1&&u.content.size){let c=a+1;u.nodesBetween(Math.max(0,e-c),Math.min(u.content.size,n-c),r,i+c)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let s="",o=!0;return this.nodesBetween(e,n,(a,u)=>{let l=a.isText?a.text.slice(Math.max(e,u)-u,n-u):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&r&&(o?o=!1:s+=r),s+=l},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),s=1);se)for(let s=0,o=0;oe&&((on)&&(a.isText?a=a.cut(Math.max(0,e-o),Math.min(a.text.length,n-o)):a=a.cut(Math.max(0,e-o-1),Math.min(a.content.size,n-o-1))),r.push(a),i+=a.nodeSize),o=u}return new C(r,i)}cutByIndex(e,n){return e==n?C.empty:e==0&&n==this.content.length?this:new C(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),s=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new C(i,s)}addToStart(e){return new C([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new C(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;nthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let s=this.child(r),o=i+s.nodeSize;if(o>=e)return o==e||n>0?pi(r+1,o):pi(r,i);i=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return C.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new C(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return C.empty;let n,r=0;for(let i=0;ithis.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(s)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;nr.type.rank-i.type.rank),n}};he.none=[];class Hi extends Error{}class B{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=sd(this.content,e+this.openStart,n);return r&&new B(r,this.openStart,this.openEnd)}removeBetween(e,n){return new B(id(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return B.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new B(C.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)i++;return new B(e,r,i)}}B.empty=new B(C.empty,0,0);function id(t,e,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r),{index:o,offset:a}=t.findIndex(n);if(i==e||s.isText){if(a!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,s.copy(id(s.content,e-i-1,n-i-1)))}function sd(t,e,n,r){let{index:i,offset:s}=t.findIndex(e),o=t.maybeChild(i);if(s==e||o.isText)return t.cut(0,e).append(n).append(t.cut(e));let a=sd(o.content,e-s-1,n);return a&&t.replaceChild(i,o.copy(a))}function Ph(t,e,n){if(n.openStart>t.depth)throw new Hi("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Hi("Inconsistent open depths");return od(t,e,n,0)}function od(t,e,n,r){let i=t.index(r),s=t.node(r);if(i==e.index(r)&&r=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ir(t,e,n,r){let i=(e||t).node(n),s=0,o=e?e.index(n):i.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(Mn(t.nodeAfter,r),s++));for(let a=s;ai&&Jo(t,e,i+1),o=r.depth>i&&Jo(n,r,i+1),a=[];return Ir(null,t,i,a),s&&o&&e.index(i)==n.index(i)?(ad(s,o),Mn(Rn(s,ud(t,e,n,r,i+1)),a)):(s&&Mn(Rn(s,qi(t,e,i+1)),a),Ir(e,n,i,a),o&&Mn(Rn(o,qi(n,r,i+1)),a)),Ir(r,null,i,a),new C(a)}function qi(t,e,n){let r=[];if(Ir(null,t,n,r),t.depth>n){let i=Jo(t,e,n+1);Mn(Rn(i,qi(t,e,n+1)),r)}return Ir(e,null,n,r),new C(r)}function Bh(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)i=e.node(s).copy(C.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class Vr{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Vi(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,s=n;for(let o=e;;){let{index:a,offset:u}=o.content.findIndex(s),l=s-u;if(r.push(o,a,i+u),!l||(o=o.child(a),o.isText))break;s=l-1,i+=u+1}return new Vr(n,r,s)}static resolveCached(e,n){let r=Mu.get(e);if(r)for(let s=0;se&&this.nodesBetween(e,n,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ld(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=C.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),a=o&&o.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let u=i;un.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=C.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,i,r);return s.type.checkAttrs(s.attrs),s}};dn.prototype.text=void 0;class Ki extends dn{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ld(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ki(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ki(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ld(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Un{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new zh(e,n);if(r.next==null)return Un.empty;let i=cd(r);r.next&&r.err("Unexpected trailing text");let s=jh(Gh(i));return Yh(s,r),s}matchType(e){for(let n=0;nl.createAndFill()));for(let l=0;l=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+e.indexOf(r.next[o].next);return s}).join(` +`)}}Un.empty=new Un(!0);class zh{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function cd(t){let e=[];do e.push(Hh(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Hh(t){let e=[];do e.push(qh(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function qh(t){let e=Wh(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Vh(t,e);else break;return e}function Ru(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Vh(t,e){let n=Ru(t),r=n;return t.eat(",")&&(t.next!="}"?r=Ru(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function Kh(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let s in n){let o=n[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function Wh(t){if(t.eat("(")){let e=cd(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=Kh(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Gh(t){let e=[[]];return i(s(t,0),n()),e;function n(){return e.push([])-1}function r(o,a,u){let l={term:u,to:a};return e[o].push(l),l}function i(o,a){o.forEach(u=>u.to=a)}function s(o,a){if(o.type=="choice")return o.exprs.reduce((u,l)=>u.concat(s(l,a)),[]);if(o.type=="seq")for(let u=0;;u++){let l=s(o.exprs[u],a);if(u==o.exprs.length-1)return l;i(l,a=n())}else if(o.type=="star"){let u=n();return r(a,u),i(s(o.expr,u),u),[r(u)]}else if(o.type=="plus"){let u=n();return i(s(o.expr,a),u),i(s(o.expr,u),u),[r(u)]}else{if(o.type=="opt")return[r(a)].concat(s(o.expr,a));if(o.type=="range"){let u=a;for(let l=0;l{t[o].forEach(({term:a,to:u})=>{if(!a)return;let l;for(let c=0;c{l||i.push([a,l=[]]),l.indexOf(c)==-1&&l.push(c)})})});let s=e[r.join(",")]=new Un(r.indexOf(t.length-1)>-1);for(let o=0;o-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:pd(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new dn(this,this.computeAttrs(e),C.from(n),he.setFrom(r))}createChecked(e=null,n,r){return n=C.from(n),this.checkContent(n),new dn(this,this.computeAttrs(e),n,he.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=C.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),s=i&&i.fillBefore(C.empty,!0);return s?new dn(this,e,n.append(s),he.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;nr[s]=new gd(s,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Jh(t,e,n){let r=n.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${s}`)}}class Zh{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Jh(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Us{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=md(e,i.attrs),this.excluded=null;let s=fd(this.attrs);this.instance=s?new he(this,s):null}create(e=null){return!e&&this.instance?this.instance:new he(this,pd(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Us(s,i++,n,o)),r}removeFromSet(e){for(var n=0;n-1}}class bd{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=Be.from(e.nodes),n.marks=Be.from(e.marks||{}),this.nodes=Iu.compile(this.spec.nodes,this),this.marks=Us.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",a=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=Un.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=a=="_"?null:a?Lu(this,a.split(" ")):a==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:Lu(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Iu){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Ki(r,r.defaultAttrs,e,he.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return dn.fromJSON(this,e)}markFromJSON(e){return he.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Lu(t,e){let n=[];for(let r=0;r-1)&&n.push(o=u)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function Xh(t){return t.tag!=null}function Qh(t){return t.style!=null}class fn{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(Xh(i))this.tags.push(i);else if(Qh(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let r=new Bu(this,n,!1);return r.addAll(e,he.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Bu(this,n,!0);return r.addAll(e,he.none,n.from,n.to),B.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;ie.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(o.getAttrs){let u=o.getAttrs(n);if(u===!1)continue;o.attrs=u||void 0}return o}}}static schemaRules(e){let n=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o{r(o=$u(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=$u(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new fn(e,fn.schemaRules(e)))}}const yd={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},e0={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Ed={ol:!0,ul:!0},Wi=1,Gi=2,Lr=4;function Pu(t,e,n){return e!=null?(e?Wi:0)|(e==="full"?Gi:0):t&&t.whitespace=="pre"?Wi|Gi:n&~Lr}class hi{constructor(e,n,r,i,s,o){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=he.none,this.match=s||(o&Lr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(C.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Wi)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let n=C.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(C.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!yd.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Bu{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let i=n.topNode,s,o=Pu(null,n.preserveWhitespace,0)|(r?Lr:0);i?s=new hi(i.type,i.attrs,he.none,!0,n.topMatch||i.type.contentMatch,o):r?s=new hi(null,null,he.none,!0,null,o):s=new hi(e.schema.topNodeType,null,he.none,!0,null,o),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top;if(i.options&Gi||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i.options&Wi)i.options&Gi?r=r.replace(/\r\n?/g,` +`):r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],o=e.previousSibling;(!s||o&&o.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=e.nodeName.toLowerCase(),s;Ed.hasOwnProperty(i)&&this.parser.normalizeLists&&t0(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,r));if(o?o.ignore:e0.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,n);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let a,u=this.top,l=this.needsBlock;if(yd.hasOwnProperty(i))u.content.length&&u.content[0].isInline&&this.open&&(this.open--,u=this.top),a=!0,u.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);return}let c=o&&o.skip?n:this.readStyles(e,n);c&&this.addAll(e,c),a&&this.sync(u),this.needsBlock=l}else{let a=this.readStyles(e,n);a&&this.addElementByRule(e,o,a,o.consuming===!1?s:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` +`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i!u.clearMark(l)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)a=u;else break}}return n}addElementByRule(e,n,r,i){let s,o;if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r)||this.leafFallback(e,r);else{let u=this.enter(o,n.attrs||null,r,n.preserveWhitespace);u&&(s=!0,r=u)}else{let u=this.parser.schema.marks[n.mark];r=r.concat(u.create(n.attrs))}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(u=>this.insertNode(u,r));else{let u=e;typeof n.contentElement=="string"?u=e.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(e):n.contentElement&&(u=n.contentElement),this.findAround(e,u,!0),this.addAll(u,r),this.findAround(e,u,!1)}s&&this.sync(a)&&this.open--}addAll(e,n,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,a=i==null?null:e.childNodes[i];o!=a;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,n);this.findAtPoint(e,s)}findPlace(e,n){let r,i;for(let s=this.open;s>=0;s--){let o=this.nodes[s],a=o.findWrapping(e);if(a&&(!r||r.length>a.length)&&(r=a,i=o,!a.length)||o.solid)break}if(!r)return null;this.sync(i);for(let s=0;s(o.type?o.type.allowsMarkType(l.type):Fu(l.type,e))?(u=l.addToSet(u),!1):!0),this.nodes.push(new hi(e,n,u,i,null,a)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(a,u)=>{for(;a>=0;a--){let l=n[a];if(l==""){if(a==n.length-1||a==0)continue;for(;u>=s;u--)if(o(a-1,u))return!0;return!1}else{let c=u>0||u==0&&i?this.nodes[u].type:r&&u>=s?r.node(u-s).type:null;if(!c||c.name!=l&&!c.isInGroup(l))return!1;u--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function t0(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Ed.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function n0(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function $u(t){let e={};for(let n in t)e[n]=t[n];return e}function Fu(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let s=[],o=a=>{s.push(a);for(let u=0;u{if(s.length||o.marks.length){let a=0,u=0;for(;a=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&Di(co(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return Di(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new yn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Uu(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Uu(e.marks)}}function Uu(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function co(t){return t.document||window.document}const zu=new WeakMap;function r0(t){let e=zu.get(t);return e===void 0&&zu.set(t,e=i0(t)),e}function i0(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let a,u=n?t.createElementNS(n,i):t.createElement(i),l=e[1],c=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){c=2;for(let d in l)if(l[d]!=null){let f=d.indexOf(" ");f>0?u.setAttributeNS(d.slice(0,f),d.slice(f+1),l[d]):u.setAttribute(d,l[d])}}for(let d=c;dc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else{let{dom:p,contentDOM:h}=Di(t,f,n,r);if(u.appendChild(p),h){if(a)throw new RangeError("Multiple content holes");a=h}}}return{dom:u,contentDOM:a}}const xd=65535,vd=Math.pow(2,16);function s0(t,e){return t+e*vd}function Hu(t){return t&xd}function o0(t){return(t-(t&xd))/vd}const wd=1,Sd=2,Ii=4,_d=8;class Xo{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&_d)>0}get deletedBefore(){return(this.delInfo&(wd|Ii))>0}get deletedAfter(){return(this.delInfo&(Sd|Ii))>0}get deletedAcross(){return(this.delInfo&Ii)>0}}class st{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&st.empty)return st.empty}recover(e){let n=0,r=Hu(e);if(!this.inverted)for(let i=0;ie)break;let l=this.ranges[a+s],c=this.ranges[a+o],d=u+l;if(e<=d){let f=l?e==u?-1:e==d?1:n:n,p=u+i+(f<0?0:c);if(r)return p;let h=e==(n<0?u:d)?null:s0(a/3,e-u),m=e==u?Sd:e==d?wd:Ii;return(n<0?e!=u:e!=d)&&(m|=_d),new Xo(p,m,h)}i+=c-l}return r?e+i:new Xo(e+i,0,null)}touches(e,n){let r=0,i=Hu(n),s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;ae)break;let l=this.ranges[a+s],c=u+l;if(e<=c&&a==i*3)return!0;r+=this.ranges[a+o]-l}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i=0;n--){let i=e.getMirror(n);this.appendMap(e.maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new lr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;rs&&u!o.isAtom||!a.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return _e.fromReplace(e,this.from,this.to,s)}invert(){return new Dt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new sn(n.pos,r.pos,this.mark)}merge(e){return e instanceof sn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new sn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new sn(n.from,n.to,e.markFromJSON(n.mark))}}qe.jsonID("addMark",sn);class Dt extends qe{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new B(Ia(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return _e.fromReplace(e,this.from,this.to,r)}invert(){return new sn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Dt(n.pos,r.pos,this.mark)}merge(e){return e instanceof Dt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Dt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Dt(n.from,n.to,e.markFromJSON(n.mark))}}qe.jsonID("removeMark",Dt);class on extends qe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return _e.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return _e.fromReplace(e,this.pos,this.pos+1,new B(C.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;ir.pos?null:new Re(n.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Re(n.from,n.to,n.gapFrom,n.gapTo,B.fromJSON(e,n.slice),n.insert,!!n.structure)}}qe.jsonID("replaceAround",Re);function Qo(t,e,n){let r=t.resolve(e),i=n-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function a0(t,e,n,r){let i=[],s=[],o,a;t.doc.nodesBetween(e,n,(u,l,c)=>{if(!u.isInline)return;let d=u.marks;if(!r.isInSet(d)&&c.type.allowsMarkType(r.type)){let f=Math.max(l,e),p=Math.min(l+u.nodeSize,n),h=r.addToSet(d);for(let m=0;mt.step(u)),s.forEach(u=>t.step(u))}function u0(t,e,n,r){let i=[],s=0;t.doc.nodesBetween(e,n,(o,a)=>{if(!o.isInline)return;s++;let u=null;if(r instanceof Us){let l=o.marks,c;for(;c=r.isInSet(l);)(u||(u=[])).push(c),l=c.removeFromSet(l)}else r?r.isInSet(o.marks)&&(u=[r]):u=o.marks;if(u&&u.length){let l=Math.min(a+o.nodeSize,n);for(let c=0;ct.step(new Dt(o.from,o.to,o.style)))}function La(t,e,n,r=n.contentMatch,i=!0){let s=t.doc.nodeAt(e),o=[],a=e+1;for(let u=0;u=0;u--)t.step(o[u])}function l0(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function _r(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let i=t.$from.node(r),s=t.$from.index(r),o=t.$to.indexAfter(r);if(rn;h--)m||r.index(h)>0?(m=!0,c=C.from(r.node(h).copy(c)),d++):u--;let f=C.empty,p=0;for(let h=s,m=!1;h>n;h--)m||i.after(h+1)=0;o--){if(r.size){let a=n[o].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=C.from(n[o].type.create(n[o].attrs,r))}let i=e.start,s=e.end;t.step(new Re(i,s,i,s,new B(r,0,0),n.length,!0))}function h0(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(o,a)=>{let u=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,u)&&m0(t.doc,t.mapping.slice(s).map(a),r)){let l=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",h=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!h?l=!1:!p&&h&&(l=!0)}l===!1&&Td(t,o,a,s),La(t,t.mapping.slice(s).map(a,1),r,void 0,l===null);let c=t.mapping.slice(s),d=c.map(a,1),f=c.map(a+o.nodeSize,1);return t.step(new Re(d,f,d+1,f-1,new B(C.from(r.create(u,null,o.marks)),0,0),1,!0)),l===!0&&Nd(t,o,a,s),!1}})}function Nd(t,e,n,r){e.forEach((i,s)=>{if(i.isText){let o,a=/\r?\n|\r/g;for(;o=a.exec(i.text);){let u=t.mapping.slice(r).map(n+1+s+o.index);t.replaceWith(u,u+1,e.type.schema.linebreakReplacement.create())}}})}function Td(t,e,n,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+s);t.replaceWith(o,o+1,e.type.schema.text(` +`))}})}function m0(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function g0(t,e,n,r,i){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let o=n.create(r,null,i||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,o);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Re(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new B(C.from(o),0,0),1,!0))}function Kt(t,e,n=1,r){let i=t.resolve(e),s=i.depth-n,o=r&&r[r.length-1]||i.parent;if(s<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let l=i.depth-1,c=n-2;l>s;l--,c--){let d=i.node(l),f=i.index(l);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(f,d.childCount),h=r&&r[c+1];h&&(p=p.replaceChild(0,h.type.create(h.attrs)));let m=r&&r[c]||d;if(!d.canReplace(f+1,d.childCount)||!m.type.validContent(p))return!1}let a=i.indexAfter(s),u=r&&r[0];return i.node(s).canReplaceWith(a,a,u?u.type:i.node(s+1).type)}function b0(t,e,n=1,r){let i=t.doc.resolve(e),s=C.empty,o=C.empty;for(let a=i.depth,u=i.depth-n,l=n-1;a>u;a--,l--){s=C.from(i.node(a).copy(s));let c=r&&r[l];o=C.from(c?c.type.create(c.attrs,o):i.node(a).copy(o))}t.step(new Ce(e,e,new B(s.append(o),n,n),!0))}function En(t,e){let n=t.resolve(e),r=n.index();return kd(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function y0(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i0?(s=r.node(i+1),a++,o=r.node(i).maybeChild(a)):(s=r.node(i).maybeChild(a-1),o=r.node(i+1)),s&&!s.isTextblock&&kd(s,o)&&r.node(i).canReplace(a,a+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function E0(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,s=t.doc.resolve(e-n),o=s.node().type;if(i&&o.inlineContent){let c=o.whitespace=="pre",d=!!o.contentMatch.matchType(i);c&&!d?r=!1:!c&&d&&(r=!0)}let a=t.steps.length;if(r===!1){let c=t.doc.resolve(e+n);Td(t,c.node(),c.before(),a)}o.inlineContent&&La(t,e+n-1,o,s.node().contentMatchAt(s.index()),r==null);let u=t.mapping.slice(a),l=u.map(e-n);if(t.step(new Ce(l,u.map(e+n,-1),B.empty,!0)),r===!0){let c=t.doc.resolve(l);Nd(t,c.node(),c.before(),t.steps.length)}return t}function x0(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let s=r.index(i);if(r.node(i).canReplaceWith(s,s,n))return r.before(i+1);if(s>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let s=r.indexAfter(i);if(r.node(i).canReplaceWith(s,s,n))return r.after(i+1);if(s=0;o--){let a=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,u=r.index(o)+(a>0?1:0),l=r.node(o),c=!1;if(s==1)c=l.canReplace(u,u,i);else{let d=l.contentMatchAt(u).findWrapping(i.firstChild.type);c=d&&l.canReplaceWith(u,u,d[0])}if(c)return a==0?r.pos:a<0?r.before(o+1):r.after(o+1)}return null}function Hs(t,e,n=e,r=B.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),s=t.resolve(n);return Ad(i,s,r)?new Ce(e,n,r):new v0(i,s,r).fit()}function Ad(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class v0{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=C.empty;for(let i=0;i<=e.depth;i++){let s=e.node(i);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=C.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let l=this.findFittable();l?this.placeNodes(l):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let s=this.placed,o=r.depth,a=i.depth;for(;o&&a&&s.childCount==1;)s=s.firstChild.content,o--,a--;let u=new B(s,o,a);return e>-1?new Re(r.pos,e,this.$to.pos,this.$to.end(),u,n):u.size||r.pos!=this.$to.pos?new Ce(r.pos,i.pos,u):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r1&&(i=0),s.type.spec.isolating&&i<=r){e=r;break}n=s.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,s=null;r?(s=po(this.unplaced.content,r-1).firstChild,i=s.content):i=this.unplaced.content;let o=i.firstChild;for(let a=this.depth;a>=0;a--){let{type:u,match:l}=this.frontier[a],c,d=null;if(n==1&&(o?l.matchType(o.type)||(d=l.fillBefore(C.from(o),!1)):s&&u.compatibleContent(s.type)))return{sliceDepth:r,frontierDepth:a,parent:s,inject:d};if(n==2&&o&&(c=l.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:a,parent:s,wrap:c};if(s&&l.matchType(s.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=po(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new B(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=po(e,n);if(i.childCount<=1&&n>0){let s=e.size-n<=n+i.size;this.unplaced=new B(Mr(e,n-1,1),n-1,s?n-1:r)}else this.unplaced=new B(Mr(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let m=0;m1||u==0||m.content.size)&&(d=g,c.push(Cd(m.mark(f.allowedMarks(m.marks)),l==1?u:0,l==a.childCount?p:-1)))}let h=l==a.childCount;h||(p=-1),this.placed=Rr(this.placed,n,C.from(c)),this.frontier[n].match=d,h&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=a;m1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],s=n=0;a--){let{match:u,type:l}=this.frontier[a],c=ho(e,a,l,u,!0);if(!c||c.childCount)continue e}return{depth:n,fit:o,move:s?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Rr(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),s=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,s)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Rr(this.placed,this.depth,C.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(C.empty,!0);n.childCount&&(this.placed=Rr(this.placed,this.frontier.length,n))}}function Mr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Mr(t.firstChild.content,e-1,n)))}function Rr(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Rr(t.lastChild.content,e-1,n)))}function po(t,e){for(let n=0;n1&&(r=r.replaceChild(0,Cd(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(C.empty,!0)))),t.copy(r)}function ho(t,e,n,r,i){let s=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==s.childCount&&!n.compatibleContent(s.type))return null;let a=r.fillBefore(s.content,!0,o);return a&&!w0(n,s.content,o)?a:null}function w0(t,e,n){for(let r=n;r0;f--,p--){let h=i.node(f).type.spec;if(h.defining||h.definingAsContext||h.isolating)break;o.indexOf(f)>-1?a=f:i.before(f)==p&&o.splice(1,0,-f)}let u=o.indexOf(a),l=[],c=r.openStart;for(let f=r.content,p=0;;p++){let h=f.firstChild;if(l.push(h),p==r.openStart)break;f=h.content}for(let f=c-1;f>=0;f--){let p=l[f],h=S0(p.type);if(h&&!p.sameMarkup(i.node(Math.abs(a)-1)))c=f;else if(h||!p.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let p=(f+c+1)%(r.openStart+1),h=l[p];if(h)for(let m=0;m=0&&(t.replace(e,n,r),!(t.steps.length>d));f--){let p=o[f];p<0||(e=i.before(p),n=s.after(p))}}function Md(t,e,n,r,i){if(er){let s=i.contentMatchAt(0),o=s.fillBefore(t).append(t);t=o.append(s.matchFragment(o).fillBefore(C.empty,!0))}return t}function N0(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=x0(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new B(C.from(r),0,0))}function T0(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n),s=Rd(r,i);for(let o=0;o0&&(u||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return t.delete(r.before(a),i.after(a))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(e-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return t.delete(r.before(o),n);t.delete(e,n)}function Rd(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let s=t.start(i);if(se.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(s==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==s-1)&&n.push(i)}return n}class cr extends qe{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return _e.fail("No node at attribute step's position");let r=Object.create(null);for(let s in n.attrs)r[s]=n.attrs[s];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return _e.fromReplace(e,this.pos,this.pos+1,new B(C.from(i),0,n.isLeaf?0:1))}getMap(){return st.empty}invert(e){return new cr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new cr(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new cr(n.pos,n.attr,n.value)}}qe.jsonID("attr",cr);class Kr extends qe{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return _e.ok(r)}getMap(){return st.empty}invert(e){return new Kr(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Kr(n.attr,n.value)}}qe.jsonID("docAttr",Kr);let pr=class extends Error{};pr=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};pr.prototype=Object.create(Error.prototype);pr.prototype.constructor=pr;pr.prototype.name="TransformError";class Dd{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new lr}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new pr(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=B.empty){let i=Hs(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new B(C.from(r),0,0))}delete(e,n){return this.replace(e,n,B.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return _0(this,e,n,r),this}replaceRangeWith(e,n,r){return N0(this,e,n,r),this}deleteRange(e,n){return T0(this,e,n),this}lift(e,n){return c0(this,e,n),this}join(e,n=1){return E0(this,e,n),this}wrap(e,n){return p0(this,e,n),this}setBlockType(e,n=e,r,i=null){return h0(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return g0(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new cr(e,n,r)),this}setDocAttribute(e,n){return this.step(new Kr(e,n)),this}addNodeMark(e,n){return this.step(new on(e,n)),this}removeNodeMark(e,n){if(!(n instanceof he)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new fr(e,n)),this}split(e,n=1,r){return b0(this,e,n,r),this}addMark(e,n,r){return a0(this,e,n,r),this}removeMark(e,n,r){return u0(this,e,n,r),this}clearIncompatible(e,n,r){return La(this,e,n,r),this}}const mo=Object.create(null);class te{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new k0(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n=0;s--){let o=n<0?er(e.node(0),e.node(s),e.before(s+1),e.index(s),n,r):er(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,n,r);if(o)return o}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new bt(e.node(0))}static atStart(e){return er(e,e,0,0,1)||new bt(e)}static atEnd(e){return er(e,e,e.content.size,e.childCount,-1)||new bt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=mo[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in mo)throw new RangeError("Duplicate use of selection JSON ID "+e);return mo[e]=n,n.prototype.jsonID=e,n}getBookmark(){return j.between(this.$anchor,this.$head).getBookmark()}}te.prototype.visible=!0;class k0{constructor(e,n){this.$from=e,this.$to=n}}let Vu=!1;function Ku(t){!Vu&&!t.parent.inlineContent&&(Vu=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class j extends te{constructor(e,n=e){Ku(e),Ku(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return te.near(r);let i=e.resolve(n.map(this.anchor));return new j(i.parent.inlineContent?i:r,r)}replace(e,n=B.empty){if(super.replace(e,n),n==B.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof j&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new qs(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new j(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let s=te.findFrom(n,r,!0)||te.findFrom(n,-r,!0);if(s)n=s.$head;else return te.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(te.findFrom(e,-r,!0)||te.findFrom(e,r,!0)).$anchor,e.pos0?0:1);i>0?o=0;o+=i){let a=e.child(o);if(a.isAtom){if(!s&&H.isSelectable(a))return H.create(t,n-(i<0?a.nodeSize:0))}else{let u=er(t,a,n+i,i<0?a.childCount:0,i,s);if(u)return u}n+=a.nodeSize*i}return null}function Wu(t,e,n){let r=t.steps.length-1;if(r{o==null&&(o=c)}),t.setSelection(te.near(t.doc.resolve(o),n))}const Gu=1,mi=2,ju=4;class A0 extends Dd{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=mi,this}ensureMarks(e){return he.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&mi)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~mi,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||he.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let s=this.storedMarks;if(!s){let o=this.doc.resolve(n);s=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,s)),this.selection.empty||this.setSelection(te.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=ju,this}get scrolledIntoView(){return(this.updated&ju)>0}}function Yu(t,e){return!e||!t?t:t.bind(e)}class Dr{constructor(e,n,r){this.name=e,this.init=Yu(n.init,r),this.apply=Yu(n.apply,r)}}const C0=[new Dr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Dr("selection",{init(t,e){return t.selection||te.atStart(e.doc)},apply(t){return t.selection}}),new Dr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Dr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class go{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C0.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Dr(r.key,r.spec.state,r))})}}class ar{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;rr.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],s=i.spec.state;s&&s.toJSON&&(n[r]=s.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new go(e.schema,e.plugins),s=new ar(i);return i.fields.forEach(o=>{if(o.name=="doc")s.doc=dn.fromJSON(e.schema,n.doc);else if(o.name=="selection")s.selection=te.fromJSON(s.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let a in r){let u=r[a],l=u.spec.state;if(u.key==o.name&&l&&l.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){s[o.name]=l.fromJSON.call(u,e,n[a],s);return}}s[o.name]=o.init(e,s)}}),s}}function Id(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=Id(i,e,{})),n[r]=i}return n}class Ee{constructor(e){this.spec=e,this.props={},e.props&&Id(e.props,this,this.props),this.key=e.key?e.key.key:Ld("plugin")}getState(e){return e[this.key]}}const bo=Object.create(null);function Ld(t){return t in bo?t+"$"+ ++bo[t]:(bo[t]=0,t+"$")}class Le{constructor(e="key"){this.key=Ld(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const $e=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Wr=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let ea=null;const qt=function(t,e,n){let r=ea||(ea=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},M0=function(){ea=null},zn=function(t,e,n,r){return n&&(Ju(t,e,n,r,-1)||Ju(t,e,n,r,1))},R0=/^(img|br|input|textarea|hr)$/i;function Ju(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:gt(t))){let s=t.parentNode;if(!s||s.nodeType!=1||oi(t)||R0.test(t.nodeName)||t.contentEditable=="false")return!1;e=$e(t)+(i<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.contentEditable=="false")return!1;e=i<0?gt(t):0}else return!1}}function gt(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function D0(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=gt(t)}else if(t.parentNode&&!oi(t))e=$e(t),t=t.parentNode;else return null}}function I0(t,e){for(;;){if(t.nodeType==3&&e2),ht=hr||(Lt?/Mac/.test(Lt.platform):!1),$0=Lt?/Win/.test(Lt.platform):!1,St=/Android \d/.test(xn),ai=!!Zu&&"webkitFontSmoothing"in Zu.documentElement.style,F0=ai?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function U0(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Ut(t,e){return typeof t=="number"?t:t[e]}function z0(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function Xu(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,s=t.dom.ownerDocument;for(let o=n||t.dom;o;o=Wr(o)){if(o.nodeType!=1)continue;let a=o,u=a==s.body,l=u?U0(s):z0(a),c=0,d=0;if(e.topl.bottom-Ut(r,"bottom")&&(d=e.bottom-e.top>l.bottom-l.top?e.top+Ut(i,"top")-l.top:e.bottom-l.bottom+Ut(i,"bottom")),e.leftl.right-Ut(r,"right")&&(c=e.right-l.right+Ut(i,"right")),c||d)if(u)s.defaultView.scrollBy(c,d);else{let f=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),c&&(a.scrollLeft+=c);let h=a.scrollLeft-f,m=a.scrollTop-p;e={left:e.left-h,top:e.top-m,right:e.right-h,bottom:e.bottom-m}}if(u||/^(fixed|sticky)$/.test(getComputedStyle(o).position))break}}function H0(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let s=(e.left+e.right)/2,o=n+1;o=n-20){r=a,i=u.top;break}}return{refDOM:r,refTop:i,stack:$d(t.dom)}}function $d(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Wr(r));return e}function q0({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;Fd(n,r==0?0:r-e)}function Fd(t,e){for(let n=0;n=a){o=Math.max(h.bottom,o),a=Math.min(h.top,a);let m=h.left>e.left?h.left-e.left:h.right=(h.left+h.right)/2?1:0));continue}}else h.top>e.top&&!u&&h.left<=e.left&&h.right>=e.left&&(u=c,l={left:Math.max(h.left,Math.min(h.right,e.left)),top:h.top});!n&&(e.left>=h.right&&e.top>=h.top||e.left>=h.left&&e.top>=h.bottom)&&(s=d+1)}}return!n&&u&&(n=u,i=l,r=0),n&&n.nodeType==3?K0(n,i):!n||r&&n.nodeType==1?{node:t,offset:s}:Ud(n,i)}function K0(t,e){let n=t.nodeValue.length,r=document.createRange();for(let i=0;i=(s.left+s.right)/2?1:0)}}return{node:t,offset:0}}function $a(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function W0(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left(o.left+o.right)/2?1:-1}return t.docView.posFromDOM(r,i,s)}function j0(t,e,n,r){let i=-1;for(let s=e,o=!1;s!=t.dom;){let a=t.docView.nearestDesc(s,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let u=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!o&&u.left>r.left||u.top>r.top?i=a.posBefore:(!o&&u.right-1?i:t.docView.posFromDOM(e,n,-1)}function zd(t,e,n){let r=t.childNodes.length;if(r&&n.tope.top&&i++}let l;ai&&i&&r.nodeType==1&&(l=r.childNodes[i-1]).nodeType==1&&l.contentEditable=="false"&&l.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=j0(t,r,i,e))}a==null&&(a=G0(t,o,e));let u=t.docView.nearestDesc(o,!0);return{pos:a,inside:u?u.posAtStart-u.border:-1}}function Qu(t){return t.top=0&&i==r.nodeValue.length?(u--,c=1):n<0?u--:l++,kr(Zt(qt(r,u,l),c),c<0)}if(!t.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&i&&(n<0||i==gt(r))){let u=r.childNodes[i-1];if(u.nodeType==1)return yo(u.getBoundingClientRect(),!1)}if(s==null&&i=0)}if(s==null&&i&&(n<0||i==gt(r))){let u=r.childNodes[i-1],l=u.nodeType==3?qt(u,gt(u)-(o?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(l)return kr(Zt(l,1),!1)}if(s==null&&i=0)}function kr(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function yo(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function qd(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function Z0(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return qd(t,e,()=>{let{node:s}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(s,!0);if(!a)break;if(a.node.isBlock){s=a.contentDOM||a.dom;break}s=a.dom.parentNode}let o=Hd(t,i.pos,1);for(let a=s.firstChild;a;a=a.nextSibling){let u;if(a.nodeType==1)u=a.getClientRects();else if(a.nodeType==3)u=qt(a,0,a.nodeValue.length).getClientRects();else continue;for(let l=0;lc.top+1&&(n=="up"?o.top-c.top>(c.bottom-o.top)*2:c.bottom-o.bottom>(o.bottom-c.top)*2))return!1}}return!0})}const X0=/[\u0590-\u08ac]/;function Q0(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,s=!i,o=i==r.parent.content.size,a=t.domSelection();return a?!X0.test(r.parent.textContent)||!a.modify?n=="left"||n=="backward"?s:o:qd(t,e,()=>{let{focusNode:u,focusOffset:l,anchorNode:c,anchorOffset:d}=t.domSelectionRange(),f=a.caretBidiLevel;a.modify("move",n,"character");let p=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:h,focusOffset:m}=t.domSelectionRange(),g=h&&!p.contains(h.nodeType==1?h:h.parentNode)||u==h&&l==m;try{a.collapse(c,d),u&&(u!=c||l!=d)&&a.extend&&a.extend(u,l)}catch{}return f!=null&&(a.caretBidiLevel=f),g}):r.pos==r.start()||r.pos==r.end()}let el=null,tl=null,nl=!1;function em(t,e,n){return el==e&&tl==n?nl:(el=e,tl=n,nl=n=="up"||n=="down"?Z0(t,e,n):Q0(t,e,n))}const yt=0,rl=1,kn=2,Pt=3;class ui{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=yt,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n$e(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=e;;s=s.parentNode){if(s==this.dom){i=!1;break}if(s.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){i=!0;break}if(s.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let s=this.getDesc(i),o;if(s&&(!n||s.node))if(r&&(o=s.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))r=!1;else return s}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let s=this.getDesc(i);if(s)return s.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;ne||o instanceof Kd){i=e-s;break}s=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let s;r&&!(s=this.children[r-1]).size&&s instanceof Vd&&s.side>=0;r--);if(n<=0){let s,o=!0;for(;s=r?this.children[r-1]:null,!(!s||s.dom.parentNode==this.contentDOM);r--,o=!1);return s&&n&&o&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?$e(s.dom)+1:0}}else{let s,o=!0;for(;s=r=c&&n<=l-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(e,n,c);e=o;for(let d=a;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=$e(f.dom)+1;break}e-=f.size}i==-1&&(i=0)}if(i>-1&&(l>n||a==this.children.length-1)){n=l;for(let c=a+1;cp&&on){let p=a;a=u,u=p}let f=document.createRange();f.setEnd(u.node,u.offset),f.setStart(a.node,a.offset),l.removeAllRanges(),l.addRange(f)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i=r:er){let a=r+s.border,u=o-s.border;if(e>=a&&n<=u){this.dirty=e==r||n==o?kn:rl,e==a&&n==u&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=Pt:s.markDirty(e-a,n-a);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?kn:Pt}r=o}this.dirty=kn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?kn:rl;n.dirty{if(!s)return i;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(o.nodeType!=1){let a=document.createElement("span");a.appendChild(o),o=a}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=n,this.widget=n,s=this}matchesWidget(e){return this.dirty==yt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class tm extends ui{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Hn extends ui{constructor(e,n,r,i,s){super(e,[],r,i),this.mark=n,this.spec=s}static create(e,n,r,i){let s=i.nodeViews[n.type.name],o=s&&s(n,i,r);return(!o||!o.dom)&&(o=yn.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Hn(e,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&Pt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Pt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=yt){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty0&&(s=sa(s,0,e,r));for(let a=0;a{if(!u)return o;if(u.parent)return u.parent.posBeforeChild(u)},r,i),c=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=yn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let f=c;return c=jd(c,r,n),l?u=new nm(e,n,r,i,c,d||null,f,l,s,o+1):n.isText?new Ks(e,n,r,i,c,f,s):new hn(e,n,r,i,c,d||null,f,s,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>C.empty)}return e}matchesNode(e,n,r){return this.dirty==yt&&e.eq(this.node)&&ji(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,i=n,s=e.composing?this.localCompositionInfo(e,n):null,o=s&&s.pos>-1?s:null,a=s&&s.pos<0,u=new im(this,o&&o.node,e);am(this.node,this.innerDeco,(l,c,d)=>{l.spec.marks?u.syncToMarks(l.spec.marks,r,e):l.type.side>=0&&!d&&u.syncToMarks(c==this.node.childCount?he.none:this.node.child(c).marks,r,e),u.placeWidget(l,e,i)},(l,c,d,f)=>{u.syncToMarks(l.marks,r,e);let p;u.findNodeMatch(l,c,d,f)||a&&e.state.selection.from>i&&e.state.selection.to-1&&u.updateNodeAt(l,c,d,p,e)||u.updateNextNode(l,c,d,e,f,i)||u.addNode(l,c,d,e,i),i+=l.nodeSize}),u.syncToMarks([],r,e),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==kn)&&(o&&this.protectLocalComposition(e,o),Wd(this.contentDOM,this.children,e),hr&&um(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof j)||rn+this.node.content.size)return null;let s=e.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let o=s.nodeValue,a=lm(this.node.content,o,r-n,i-n);return a<0?null:{node:s,pos:a,text:o}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let o=new tm(this,s,n,i);e.input.compositionNodes.push(o),this.children=sa(this.children,r,r+i.length,e,o)}update(e,n,r,i){return this.dirty==Pt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=yt}updateOuterDeco(e){if(ji(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Gd(this.dom,this.nodeDOM,ia(this.outerDeco,this.node,n),ia(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function il(t,e,n,r,i){jd(r,e,t);let s=new hn(void 0,t,e,n,r,r,r,i,0);return s.contentDOM&&s.updateChildren(i,0),s}class Ks extends hn{constructor(e,n,r,i,s,o,a){super(e,n,r,i,s,null,o,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==Pt||this.dirty!=yt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=yt||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=yt,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),s=document.createTextNode(i.text);return new Ks(this.parent,i,this.outerDeco,this.innerDeco,s,s,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Pt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Kd extends ui{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==yt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class nm extends hn{constructor(e,n,r,i,s,o,a,u,l,c){super(e,n,r,i,s,o,a,l,c),this.spec=u}update(e,n,r,i){if(this.dirty==Pt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let s=this.spec.update(e,n,r);return s&&this.updateInner(e,n,r,i),s}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Wd(t,e,n){let r=t.firstChild,i=!1;for(let s=0;s>1,o=Math.min(s,e.length);for(;i-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let u=Hn.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,r,i){let s=-1,o;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(e,n,r))s=this.top.children.indexOf(o,this.index);else for(let a=this.index,u=Math.min(this.top.children.length,a+5);a0;){let a;for(;;)if(r){let l=n.children[r-1];if(l instanceof Hn)n=l,r=l.children.length;else{a=l,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let u=a.node;if(u){if(u!=t.child(i-1))break;--i,s.set(a,i),o.push(a)}}return{index:i,matched:s,matches:o.reverse()}}function om(t,e){return t.type.side-e.type.side}function am(t,e,n,r){let i=e.locals(t),s=0;if(i.length==0){for(let l=0;ls;)a.push(i[o++]);let h=s+f.nodeSize;if(f.isText){let g=h;o!g.inline):a.slice();r(f,m,e.forChild(s,f),p),s=h}}function um(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function lm(t,e,n,r){for(let i=0,s=0;i=n){if(s>=r&&u.slice(r-e.length-a,r-a)==e)return r-e.length;let l=a=0&&l+e.length+a>=n)return a+l;if(n==r&&u.length>=r+e.length-a&&u.slice(r-a,r-a+e.length)==e)return r}}return-1}function sa(t,e,n,r,i){let s=[];for(let o=0,a=0;o=n||c<=e?s.push(u):(ln&&s.push(u.slice(n-l,u.size,r)))}return s}function Fa(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),s=i&&i.size==0,o=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let a=r.resolve(o),u,l;if(Vs(n)){for(u=o;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&&H.isSelectable(d)&&i.parent&&!(d.isInline&&L0(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;l=new H(o==f?a:r.resolve(f))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=o,f=o;for(let p=0;p{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Yd(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function dm(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let r=t.cursorWrapper.dom,i=r.nodeName=="IMG";i?n.setStart(r.parentNode,$e(r)+1):n.setStart(r,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!i&&!t.state.selection.visible&&nt&&pn<=11&&(r.disabled=!0,r.disabled=!1)}function Jd(t,e){if(e instanceof H){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(ll(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else ll(t)}function ll(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Ua(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||j.between(e,n,r)}function cl(t){return t.editable&&!t.hasFocus()?!1:Zd(t)}function Zd(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function fm(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return zn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function oa(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),s=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return s&&te.findFrom(s,e)}function Xt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function dl(t,e,n){let r=t.state.selection;if(r instanceof j)if(n.indexOf("s")>-1){let{$head:i}=r,s=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let o=t.state.doc.resolve(i.pos+s.nodeSize*(e<0?-1:1));return Xt(t,new j(r.$anchor,o))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=oa(t.state,e);return i&&i instanceof H?Xt(t,i):!1}else if(!(ht&&n.indexOf("m")>-1)){let i=r.$head,s=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,o;if(!s||s.isText)return!1;let a=e<0?i.pos-s.nodeSize:i.pos;return s.isAtom||(o=t.docView.descAt(a))&&!o.contentDOM?H.isSelectable(s)?Xt(t,new H(e<0?t.state.doc.resolve(i.pos-s.nodeSize):i)):ai?Xt(t,new j(t.state.doc.resolve(e<0?a:a+s.nodeSize))):!1:!1}}else return!1;else{if(r instanceof H&&r.node.isInline)return Xt(t,new j(e>0?r.$to:r.$from));{let i=oa(t.state,e);return i?Xt(t,i):!1}}}function Yi(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Br(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Jn(t,e){return e<0?pm(t):hm(t)}function pm(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,s,o=!1;for(Tt&&n.nodeType==1&&r0){if(n.nodeType!=1)break;{let a=n.childNodes[r-1];if(Br(a,-1))i=n,s=--r;else if(a.nodeType==3)n=a,r=n.nodeValue.length;else break}}else{if(Xd(n))break;{let a=n.previousSibling;for(;a&&Br(a,-1);)i=n.parentNode,s=$e(a),a=a.previousSibling;if(a)n=a,r=Yi(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}o?aa(t,n,r):i&&aa(t,i,s)}function hm(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=Yi(n),s,o;for(;;)if(r{t.state==i&&Wt(t)},50)}function fl(t,e){let n=t.state.doc.resolve(e);if(!(He||$0)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let s=t.coordsAtPos(e-1),o=(s.top+s.bottom)/2;if(o>i.top&&o1)return s.lefti.top&&o1)return s.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function pl(t,e,n){let r=t.state.selection;if(r instanceof j&&!r.empty||n.indexOf("s")>-1||ht&&n.indexOf("m")>-1)return!1;let{$from:i,$to:s}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let o=oa(t.state,e);if(o&&o instanceof H)return Xt(t,o)}if(!i.parent.inlineContent){let o=e<0?i:s,a=r instanceof bt?te.near(o,e):te.findFrom(o,e);return a?Xt(t,a):!1}return!1}function hl(t,e){if(!(t.state.selection instanceof j))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let o=t.state.tr;return e<0?o.delete(n.pos-s.nodeSize,n.pos):o.delete(n.pos,n.pos+s.nodeSize),t.dispatch(o),!0}return!1}function ml(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function bm(t){if(!Ge||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;ml(t,r,"true"),setTimeout(()=>ml(t,r,"false"),20)}return!1}function ym(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function Em(t,e){let n=e.keyCode,r=ym(e);if(n==8||ht&&n==72&&r=="c")return hl(t,-1)||Jn(t,-1);if(n==46&&!e.shiftKey||ht&&n==68&&r=="c")return hl(t,1)||Jn(t,1);if(n==13||n==27)return!0;if(n==37||ht&&n==66&&r=="c"){let i=n==37?fl(t,t.state.selection.from)=="ltr"?-1:1:-1;return dl(t,i,r)||Jn(t,i)}else if(n==39||ht&&n==70&&r=="c"){let i=n==39?fl(t,t.state.selection.from)=="ltr"?1:-1:1;return dl(t,i,r)||Jn(t,i)}else{if(n==38||ht&&n==80&&r=="c")return pl(t,-1,r)||Jn(t,-1);if(n==40||ht&&n==78&&r=="c")return bm(t)||pl(t,1,r)||Jn(t,1);if(r==(ht?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function za(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:r,openStart:i,openEnd:s}=e;for(;i>1&&s>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,s--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let o=t.someProp("clipboardSerializer")||yn.fromSchema(t.state.schema),a=sf(),u=a.createElement("div");u.appendChild(o.serializeFragment(r,{document:a}));let l=u.firstChild,c,d=0;for(;l&&l.nodeType==1&&(c=rf[l.nodeName.toLowerCase()]);){for(let p=c.length-1;p>=0;p--){let h=a.createElement(c[p]);for(;u.firstChild;)h.appendChild(u.firstChild);u.appendChild(h),d++}l=u.firstChild}l&&l.nodeType==1&&l.setAttribute("data-pm-slice",`${i} ${s}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,` `);return{dom:u,text:f,slice:e}}function Qd(t,e,n,r,i){let s=i.parent.type.spec.code,o,a;if(!n&&!e)return null;let u=e&&(r||s||!n);if(u){if(t.someProp("transformPastedText",f=>{e=f(e,s||r,t)}),s)return e?new B(C.from(t.state.schema.text(e.replace(/\r\n?/g,` -`))),0,0):B.empty;let d=t.someProp("clipboardTextParser",f=>f(e,i,r,t));if(d)a=d;else{let f=i.marks(),{schema:p}=t.state,h=yn.fromSchema(p);o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=o.appendChild(document.createElement("p"));m&&g.appendChild(h.serializeNode(p.text(m,f)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),o=_m(n),ai&&Nm(o);let l=o&&o.querySelector("[data-pm-slice]"),c=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let f=o.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;o=f}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||fn.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(u||c),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!vm.test(f.parentNode.nodeName)?{ignore:!0}:null}})),c)a=Tm(gl(a,+c[1],+c[2]),c[4]);else if(a=B.maxOpen(wm(a.content,i),!0),a.openStart||a.openEnd){let d=0,f=0;for(let p=a.content.firstChild;d{a=d(a,t)}),a}const vm=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function wm(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),s,o=[];if(t.forEach(a=>{if(!o)return;let u=i.findWrapping(a.type),l;if(!u)return o=null;if(l=o.length&&s.length&&tf(u,s,a,o[o.length-1],0))o[o.length-1]=l;else{o.length&&(o[o.length-1]=nf(o[o.length-1],s.length));let c=ef(a,u);o.push(c),i=i.matchType(c.type),s=u}}),o)return C.from(o)}return t}function ef(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,C.from(t));return t}function tf(t,e,n,r,i){if(i1&&(s=0),i=n&&(a=e<0?o.contentMatchAt(0).fillBefore(a,s<=i).append(a):a.append(o.contentMatchAt(o.childCount).fillBefore(C.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,o.copy(a))}function gl(t,e,n){return en})),xo.createHTML(t)):t}function _m(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=sf().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&rf[r[1].toLowerCase()])&&(t=i.map(s=>"<"+s+">").join("")+t+i.map(s=>"").reverse().join("")),n.innerHTML=Sm(t),i)for(let s=0;s=0;a-=2){let u=n.nodes[r[a]];if(!u||u.hasRequiredAttrs())break;i=C.from(u.create(r[a+1],i)),s++,o++}return new B(i,s,o)}const je={},Ye={},km={touchstart:!0,touchmove:!0};class Om{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Am(t){for(let e in je){let n=je[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Mm(t,r)&&!Ha(t,r)&&(t.editable||!(r.type in Ye))&&n(t,r)},km[e]?{passive:!0}:void 0)}Ge&&t.dom.addEventListener("input",()=>null),la(t)}function an(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function Cm(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function la(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Ha(t,r))})}function Ha(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function Mm(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function Rm(t,e){!Ha(t,e)&&je[e.type]&&(t.editable||!(e.type in Ye))&&je[e.type](t,e)}Ye.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!af(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(St&&He&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),hr&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,Nn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||xm(t,n)?n.preventDefault():an(t,"key")};Ye.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Ye.keypress=(t,e)=>{let n=e;if(af(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||ht&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof j)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,i))&&t.dispatch(t.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function Ws(t){return{left:t.clientX,top:t.clientY}}function Dm(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function qa(t,e,n,r,i){if(r==-1)return!1;let s=t.state.doc.resolve(r);for(let o=s.depth+1;o>0;o--)if(t.someProp(e,a=>o>s.depth?a(t,n,s.nodeAfter,s.before(o),i,!0):a(t,n,s.node(o),s.before(o),i,!1)))return!0;return!1}function dr(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Im(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&H.isSelectable(r)?(dr(t,new H(n)),!0):!1}function Lm(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof H&&(r=n.node);let s=t.state.doc.resolve(e);for(let o=s.depth+1;o>0;o--){let a=o>s.depth?s.nodeAfter:s.node(o);if(H.isSelectable(a)){r&&n.$from.depth>0&&o>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?i=s.before(n.$from.depth):i=s.before(o);break}}return i!=null?(dr(t,H.create(t.state.doc,i)),!0):!1}function Pm(t,e,n,r,i){return qa(t,"handleClickOn",e,n,r)||t.someProp("handleClick",s=>s(t,e,r))||(i?Lm(t,n):Im(t,n))}function Bm(t,e,n,r){return qa(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function $m(t,e,n,r){return qa(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||Fm(t,n,r)}function Fm(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(dr(t,j.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let s=i.depth+1;s>0;s--){let o=s>i.depth?i.nodeAfter:i.node(s),a=i.before(s);if(o.inlineContent)dr(t,j.create(r,a+1,a+1+o.content.size));else if(H.isSelectable(o))dr(t,H.create(r,a));else continue;return!0}}function Va(t){return Ji(t)}const of=ht?"metaKey":"ctrlKey";je.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Va(t),i=Date.now(),s="singleClick";i-t.input.lastClick.time<500&&Dm(n,t.input.lastClick)&&!n[of]&&(t.input.lastClick.type=="singleClick"?s="doubleClick":t.input.lastClick.type=="doubleClick"&&(s="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:s};let o=t.posAtCoords(Ws(n));o&&(s=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Um(t,o,n,!!r)):(s=="doubleClick"?Bm:$m)(t,o.pos,o.inside,n)?n.preventDefault():an(t,"pointer"))};class Um{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[of],this.allowDefault=r.shiftKey;let s,o;if(n.inside>-1)s=e.state.doc.nodeAt(n.inside),o=n.inside;else{let c=e.state.doc.resolve(n.pos);s=c.parent,o=c.depth?c.before():0}const a=i?null:r.target,u=a?e.docView.nearestDesc(a,!0):null;this.target=u&&u.dom.nodeType==1?u.dom:null;let{selection:l}=e.state;(r.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||l instanceof H&&l.from<=o&&l.to>o)&&(this.mightDrag={node:s,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Tt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),an(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Wt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Ws(e))),this.updateAllowDefault(e),this.allowDefault||!n?an(this.view,"pointer"):Pm(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Ge&&this.mightDrag&&!this.mightDrag.node.isAtom||He&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(dr(this.view,te.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):an(this.view,"pointer")}move(e){this.updateAllowDefault(e),an(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}je.touchstart=t=>{t.input.lastTouch=Date.now(),Va(t),an(t,"pointer")};je.touchmove=t=>{t.input.lastTouch=Date.now(),an(t,"pointer")};je.contextmenu=t=>Va(t);function af(t,e){return t.composing?!0:Ge&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const zm=St?5e3:-1;Ye.compositionstart=Ye.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof j&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Ji(t,!0),t.markCursor=null;else if(Ji(t,!e.selection.empty),Tt&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,s=r.focusOffset;i&&i.nodeType==1&&s!=0;){let o=s<0?i.lastChild:i.childNodes[s-1];if(!o)break;if(o.nodeType==3){let a=t.domSelection();a&&a.collapse(o,o.nodeValue.length);break}else i=o,s=-1}}t.input.composing=!0}uf(t,zm)};Ye.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,uf(t,20))};function uf(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Ji(t),e))}function lf(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=qm());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Hm(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=I0(e.focusNode,e.focusOffset),r=L0(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,s=t.domObserver.lastChangedTextNode;if(n==s||r==s)return s;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let o=n.pmViewDesc;if(!(!o||!o.isText(n.nodeValue)))return r}}return n||r}function qm(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Ji(t,e=!1){if(!(St&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),lf(t),e||t.docView&&t.docView.dirty){let n=Fa(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function Vm(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Gr=nt&&pn<15||hr&&U0<604;je.copy=Ye.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let s=Gr?null:n.clipboardData,o=r.content(),{dom:a,text:u}=za(t,o);s?(n.preventDefault(),s.clearData(),s.setData("text/html",a.innerHTML),s.setData("text/plain",u)):Vm(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Km(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Wm(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?jr(t,r.value,null,i,e):jr(t,r.textContent,r.innerHTML,i,e)},50)}function jr(t,e,n,r,i){let s=Qd(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",u=>u(t,i,s||B.empty)))return!0;if(!s)return!1;let o=Km(s),a=o?t.state.tr.replaceSelectionWith(o,r):t.state.tr.replaceSelection(s);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function cf(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ye.paste=(t,e)=>{let n=e;if(t.composing&&!St)return;let r=Gr?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&jr(t,cf(r),r.getData("text/html"),i,n)?n.preventDefault():Wm(t,n)};class df{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const ff=ht?"altKey":"ctrlKey";je.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,s=i.empty?null:t.posAtCoords(Ws(n)),o;if(!(s&&s.pos>=i.from&&s.pos<=(i instanceof H?i.to-1:i.to))){if(r&&r.mightDrag)o=H.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(o=H.create(t.state.doc,d.posBefore))}}let a=(o||t.state.selection).content(),{dom:u,text:l,slice:c}=za(t,a);(!n.dataTransfer.files.length||!He||Bd>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Gr?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",Gr||n.dataTransfer.setData("text/plain",l),t.dragging=new df(c,!n[ff],o)};je.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Ye.dragover=Ye.dragenter=(t,e)=>e.preventDefault();Ye.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let i=t.posAtCoords(Ws(n));if(!i)return;let s=t.state.doc.resolve(i.pos),o=r&&r.slice;o?t.someProp("transformPasted",h=>{o=h(o,t)}):o=Qd(t,cf(n.dataTransfer),Gr?null:n.dataTransfer.getData("text/html"),!1,s);let a=!!(r&&!n[ff]);if(t.someProp("handleDrop",h=>h(t,n,o||B.empty,a))){n.preventDefault();return}if(!o)return;n.preventDefault();let u=o?Od(t.state.doc,s.pos,o):s.pos;u==null&&(u=s.pos);let l=t.state.tr;if(a){let{node:h}=r;h?h.replace(l):l.deleteSelection()}let c=l.mapping.map(u),d=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,f=l.doc;if(d?l.replaceRangeWith(c,c,o.content.firstChild):l.replaceRange(c,c,o),l.doc.eq(f))return;let p=l.doc.resolve(c);if(d&&H.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new H(p));else{let h=l.mapping.map(u);l.mapping.maps[l.mapping.maps.length-1].forEach((m,g,y,v)=>h=v),l.setSelection(Ua(t,p,l.doc.resolve(h)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))};je.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Wt(t)},20))};je.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};je.beforeinput=(t,e)=>{if(He&&St&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",s=>s(t,Nn(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in Ye)je[t]=Ye[t];function Yr(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Zi{constructor(e,n){this.toDOM=e,this.spec=n||Dn,this.side=this.spec.side||0}map(e,n,r,i){let{pos:s,deleted:o}=e.mapResult(n.from+i,this.side<0?-1:1);return o?null:new We(s-r,s-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Zi&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Yr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class mn{constructor(e,n){this.attrs=e,this.spec=n||Dn}map(e,n,r,i){let s=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return s>=o?null:new We(s,o,this)}valid(e,n){return n.from=e&&(!s||s(a.spec))&&r.push(a.copy(a.from+i,a.to+i))}for(let o=0;oe){let a=this.children[o]+1;this.children[o+2].findInner(e-a,n-a,r,i+a,s)}}map(e,n,r){return this==ze||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Dn)}mapInner(e,n,r,i,s){let o;for(let a=0;a{let l=u+r,c;if(c=hf(n,a,l)){for(i||(i=this.children.slice());sa&&d.to=e){this.children[a]==e&&(r=this.children[a+2]);break}let s=e+1,o=s+n.content.size;for(let a=0;as&&u.type instanceof mn){let l=Math.max(s,u.from)-s,c=Math.min(o,u.to)-s;li.map(e,n,Dn));return tn.from(r)}forChild(e,n){if(n.isLeaf)return be.empty;let r=[];for(let i=0;in instanceof be)?e:e.reduce((n,r)=>n.concat(r instanceof be?r:r.members),[]))}}forEachSet(e){for(let n=0;n{let g=m-h-(p-f);for(let y=0;yv+c-d)continue;let _=a[y]+c-d;p>=_?a[y+1]=f<=_?-2:-1:f>=c&&g&&(a[y]+=g,a[y+1]+=g)}d+=g}),c=n.maps[l].map(c,-1)}let u=!1;for(let l=0;l=r.content.size){u=!0;continue}let f=n.map(t[l+1]+s,-1),p=f-i,{index:h,offset:m}=r.content.findIndex(d),g=r.maybeChild(h);if(g&&m==d&&m+g.nodeSize==p){let y=a[l+2].mapInner(n,g,c+1,t[l]+s+1,o);y!=ze?(a[l]=d,a[l+1]=p,a[l+2]=y):(a[l+1]=-2,u=!0)}else u=!0}if(u){let l=jm(a,t,e,n,i,s,o),c=Xi(l,r,0,o);e=c.local;for(let d=0;dn&&o.to{let l=hf(t,a,u+n);if(l){s=!0;let c=Xi(l,a,n+u+1,r);c!=ze&&i.push(u,u+a.nodeSize,c)}});let o=pf(s?mf(t):t,-n).sort(In);for(let a=0;a0;)e++;t.splice(e,0,n)}function vo(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=ze&&e.push(r)}),t.cursorWrapper&&e.push(be.create(t.state.doc,[t.cursorWrapper.deco])),tn.from(e)}const Ym={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Jm=nt&&pn<=11;class Zm{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Xm{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Zm,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),Jm&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Ym)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(cl(this.view)){if(this.suppressingSelectionUpdates)return Wt(this.view);if(nt&&pn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&zn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let s=e.focusNode;s;s=Wr(s))n.add(s);for(let s=e.anchorNode;s;s=Wr(s))if(n.has(s)){r=s;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&cl(e)&&!this.ignoreSelectionChange(r),s=-1,o=-1,a=!1,u=[];if(e.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,f]=c;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of c){let p=f.parentNode;p&&p.nodeName=="LI"&&(!d||tg(e,d)!=p)&&f.remove()}}}let l=null;s<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||i)&&(s>-1&&(e.docView.markDirty(s,o),Qm(e)),this.handleDOMChange(s,o,a,u),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Wt(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let c=0;ci;g--){let y=r.childNodes[g-1],v=y.pmViewDesc;if(y.nodeName=="BR"&&!v){s=g;break}if(!v||v.size)break}let d=t.state.doc,f=t.someProp("domParser")||fn.fromSchema(t.state.schema),p=d.resolve(o),h=null,m=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:s,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:l,ruleFromNode:rg,context:p});if(l&&l[0].pos!=null){let g=l[0].pos,y=l[1]&&l[1].pos;y==null&&(y=g),h={anchor:g+o,head:y+o}}return{doc:m,sel:h,from:o,to:a}}function rg(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Ge&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Ge&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const ig=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function sg(t,e,n,r,i){let s=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let k=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,$=Fa(t,k);if($&&!t.state.selection.eq($)){if(He&&St&&t.input.lastKeyCode===13&&Date.now()-100Z(t,Nn(13,"Enter"))))return;let G=t.state.tr.setSelection($);k=="pointer"?G.setMeta("pointer",!0):k=="key"&&G.scrollIntoView(),s&&G.setMeta("composition",s),t.dispatch(G)}return}let o=t.state.doc.resolve(e),a=o.sharedDepth(n);e=o.before(a+1),n=t.state.doc.resolve(n).after(a+1);let u=t.state.selection,l=ng(t,e,n),c=t.state.doc,d=c.slice(l.from,l.to),f,p;t.input.lastKeyCode===8&&Date.now()-100Date.now()-225||St)&&i.some(k=>k.nodeType==1&&!ig.test(k.nodeName))&&(!h||h.endA>=h.endB)&&t.someProp("handleKeyDown",k=>k(t,Nn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!h)if(r&&u instanceof j&&!u.empty&&u.$head.sameParent(u.$anchor)&&!t.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))h={start:u.from,endA:u.to,endB:u.to};else{if(l.sel){let k=wl(t,t.state.doc,l.sel);if(k&&!k.eq(t.state.selection)){let $=t.state.tr.setSelection(k);s&&$.setMeta("composition",s),t.dispatch($)}}return}t.state.selection.fromt.state.selection.from&&h.start<=t.state.selection.from+2&&t.state.selection.from>=l.from?h.start=t.state.selection.from:h.endA=t.state.selection.to-2&&t.state.selection.to<=l.to&&(h.endB+=t.state.selection.to-h.endA,h.endA=t.state.selection.to)),nt&&pn<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>l.from&&l.doc.textBetween(h.start-l.from-1,h.start-l.from+1)=="  "&&(h.start--,h.endA--,h.endB--);let m=l.doc.resolveNoCache(h.start-l.from),g=l.doc.resolveNoCache(h.endB-l.from),y=c.resolve(h.start),v=m.sameParent(g)&&m.parent.inlineContent&&y.end()>=h.endA,_;if((hr&&t.input.lastIOSEnter>Date.now()-225&&(!v||i.some(k=>k.nodeName=="DIV"||k.nodeName=="P"))||!v&&m.posk(t,Nn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>h.start&&ag(c,h.start,h.endA,m,g)&&t.someProp("handleKeyDown",k=>k(t,Nn(8,"Backspace")))){St&&He&&t.domObserver.suppressSelectionUpdates();return}He&&St&&h.endB==h.start&&(t.input.lastAndroidDelete=Date.now()),St&&!v&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==h.endA&&(h.endB-=2,g=l.doc.resolveNoCache(h.endB-l.from),setTimeout(()=>{t.someProp("handleKeyDown",function(k){return k(t,Nn(13,"Enter"))})},20));let b=h.start,O=h.endA,x,R,P;if(v){if(m.pos==g.pos)nt&&pn<=11&&m.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Wt(t),20)),x=t.state.tr.delete(b,O),R=c.resolve(h.start).marksAcross(c.resolve(h.endA));else if(h.endA==h.endB&&(P=og(m.parent.content.cut(m.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,h.endA-y.start()))))x=t.state.tr,P.type=="add"?x.addMark(b,O,P.mark):x.removeMark(b,O,P.mark);else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let k=m.parent.textBetween(m.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",$=>$(t,b,O,k)))return;x=t.state.tr.insertText(k,b,O)}}if(x||(x=t.state.tr.replace(b,O,l.doc.slice(h.start-l.from,h.endB-l.from))),l.sel){let k=wl(t,x.doc,l.sel);k&&!(He&&St&&t.composing&&k.empty&&(h.start!=h.endB||t.input.lastAndroidDeletee.content.size?null:Ua(t,e.resolve(n.anchor),e.resolve(n.head))}function og(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,s=r,o,a,u;for(let c=0;cc.mark(a.addToSet(c.marks));else if(i.length==0&&s.length==1)a=s[0],o="remove",u=c=>c.mark(a.removeFromSet(c.marks));else return null;let l=[];for(let c=0;cn||wo(o,!0,!1)0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let s=t.node(r).maybeChild(t.indexAfter(r));for(;s&&!s.isLeaf;)s=s.firstChild,i++}return i}function ug(t,e,n,r,i){let s=t.findDiffStart(e,n);if(s==null)return null;let{a:o,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let u=Math.max(0,s-Math.min(o,a));r-=o+u-s}if(o=o?s-r:0;s-=u,s&&s=a?s-r:0;s-=u,s&&s=56320&&e<=57343&&n>=55296&&n<=56319}const lg=za;class cg{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Om,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Ol),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Tl(this),Nl(this),this.nodeViews=kl(this),this.docView=il(this.state.doc,_l(this),vo(this),this.dom,this),this.domObserver=new Xm(this,(r,i,s,o)=>sg(this,r,i,s,o)),this.domObserver.start(),Am(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&la(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Ol),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,s=!1,o=!1;e.storedMarks&&this.composing&&(lf(this),o=!0),this.state=e;let a=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=kl(this);fg(p,this.nodeViews)&&(this.nodeViews=p,s=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&la(this),this.editable=Tl(this),Nl(this);let u=vo(this),l=_l(this),c=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=s||!this.docView.matchesNode(e.doc,l,u);(d||!e.selection.eq(i.selection))&&(o=!0);let f=c=="preserve"&&o&&this.dom.style.overflowAnchor==null&&q0(this);if(o){this.domObserver.stop();let p=d&&(nt||He)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&dg(i.selection,e.selection);if(d){let h=He?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Hm(this)),(s||!this.docView.update(e.doc,l,u,this))&&(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=il(e.doc,l,u,this.dom,this)),h&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&pm(this))?Wt(this,p):(Jd(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():f&&V0(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof H){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Xu(this,n.getBoundingClientRect(),e)}else Xu(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(s))==r.node&&(i=s)}this.dragging=new df(e.slice,e.move,i<0?void 0:H.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let o=0;on.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return J0(this,e)}coordsAtPos(e,n=1){return Hd(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return tm(this,n||this.state,e)}pasteHTML(e,n){return jr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return jr(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(Cm(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],vo(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,R0())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Rm(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?Ge&&this.root.nodeType===11&&B0(this.dom.ownerDocument)==this.dom&&eg(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function _l(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[We.node(0,t.state.doc.content.size,e)]}function Nl(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:We.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Tl(t){return!t.someProp("editable",e=>e(t.state)===!1)}function dg(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function kl(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function fg(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function Ol(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var gn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Qi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},pg=typeof navigator<"u"&&/Mac/.test(navigator.platform),hg=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Fe=0;Fe<10;Fe++)gn[48+Fe]=gn[96+Fe]=String(Fe);for(var Fe=1;Fe<=24;Fe++)gn[Fe+111]="F"+Fe;for(var Fe=65;Fe<=90;Fe++)gn[Fe]=String.fromCharCode(Fe+32),Qi[Fe]=String.fromCharCode(Fe);for(var So in gn)Qi.hasOwnProperty(So)||(Qi[So]=gn[So]);function mg(t){var e=pg&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||hg&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Qi:gn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const gg=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function bg(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,s,o;for(let a=0;a127)&&(s=gn[r.keyCode])&&s!=i){let a=e[_o(s,r)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Ga=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function bf(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const yf=(t,e,n)=>{let r=bf(t,n);if(!r)return!1;let i=ja(r);if(!i){let o=r.blockRange(),a=o&&_r(o);return a==null?!1:(e&&e(t.tr.lift(o,a).scrollIntoView()),!0)}let s=i.nodeBefore;if(kf(t,i,e,-1))return!0;if(r.parent.content.size==0&&(mr(s,"end")||H.isSelectable(s)))for(let o=r.depth;;o--){let a=Hs(t.doc,r.before(o),r.after(o),B.empty);if(a&&a.slice.size1)break}return s.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-s.nodeSize,i.pos).scrollIntoView()),!0):!1},xg=(t,e,n)=>{let r=bf(t,n);if(!r)return!1;let i=ja(r);return i?Ef(t,i,e):!1},vg=(t,e,n)=>{let r=vf(t,n);if(!r)return!1;let i=Ya(r);return i?Ef(t,i,e):!1};function Ef(t,e,n){let r=e.nodeBefore,i=r,s=e.pos-1;for(;!i.isTextblock;s--){if(i.type.spec.isolating)return!1;let c=i.lastChild;if(!c)return!1;i=c}let o=e.nodeAfter,a=o,u=e.pos+1;for(;!a.isTextblock;u++){if(a.type.spec.isolating)return!1;let c=a.firstChild;if(!c)return!1;a=c}let l=Hs(t.doc,s,u,B.empty);if(!l||l.from!=s||l instanceof Ce&&l.slice.size>=u-s)return!1;if(n){let c=t.tr.step(l);c.setSelection(j.create(c.doc,s)),n(c.scrollIntoView())}return!0}function mr(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const xf=(t,e,n)=>{let{$head:r,empty:i}=t.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;s=ja(r)}let o=s&&s.nodeBefore;return!o||!H.isSelectable(o)?!1:(e&&e(t.tr.setSelection(H.create(t.doc,s.pos-o.nodeSize)).scrollIntoView()),!0)};function ja(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function vf(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let r=vf(t,n);if(!r)return!1;let i=Ya(r);if(!i)return!1;let s=i.nodeAfter;if(kf(t,i,e,1))return!0;if(r.parent.content.size==0&&(mr(s,"start")||H.isSelectable(s))){let o=Hs(t.doc,r.before(),r.after(),B.empty);if(o&&o.slice.size{let{$head:r,empty:i}=t.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let n=t.selection,r=n instanceof H,i;if(r){if(n.node.isTextblock||!En(t.doc,n.from))return!1;i=n.from}else if(i=zs(t.doc,n.from,-1),i==null)return!1;if(e){let s=t.tr.join(i);r&&s.setSelection(H.create(s.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},Sg=(t,e)=>{let n=t.selection,r;if(n instanceof H){if(n.node.isTextblock||!En(t.doc,n.to))return!1;r=n.to}else if(r=zs(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},_g=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),s=i&&_r(i);return s==null?!1:(e&&e(t.tr.lift(i,s).scrollIntoView()),!0)},_f=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` -`).scrollIntoView()),!0)};function Ja(t){for(let e=0;e{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),o=Ja(i.contentMatchAt(s));if(!o||!i.canReplaceWith(s,s,o))return!1;if(e){let a=n.after(),u=t.tr.replaceWith(a,a,o.createAndFill());u.setSelection(te.near(u.doc.resolve(a),1)),e(u.scrollIntoView())}return!0},Nf=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof bt||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=Ja(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let o=(!r.parentOffset&&i.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let s=n.before();if(Kt(t.doc,s))return e&&e(t.tr.split(s).scrollIntoView()),!0}let r=n.blockRange(),i=r&&_r(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function Tg(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof H&&e.selection.node.isBlock)return!r.parentOffset||!Kt(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let s=[],o,a,u=!1,l=!1;for(let p=r.depth;;p--)if(r.node(p).isBlock){u=r.end(p)==r.pos+(r.depth-p),l=r.start(p)==r.pos-(r.depth-p),a=Ja(r.node(p-1).contentMatchAt(r.indexAfter(p-1))),s.unshift(u&&a?{type:a}:null),o=p;break}else{if(p==1)return!1;s.unshift(null)}let c=e.tr;(e.selection instanceof j||e.selection instanceof bt)&&c.deleteSelection();let d=c.mapping.map(r.pos),f=Kt(c.doc,d,s.length,s);if(f||(s[0]=a?{type:a}:null,f=Kt(c.doc,d,s.length,s)),c.split(d,s.length,s),!u&&l&&r.node(o).type!=a){let p=c.mapping.map(r.before(o)),h=c.doc.resolve(p);a&&r.node(o-1).canReplaceWith(h.index(),h.index()+1,a)&&c.setNodeMarkup(c.mapping.map(r.before(o)),a)}return n&&n(c.scrollIntoView()),!0}}const kg=Tg(),Og=(t,e)=>{let{$from:n,to:r}=t.selection,i,s=n.sharedDepth(r);return s==0?!1:(i=n.before(s),e&&e(t.tr.setSelection(H.create(t.doc,i))),!0)};function Ag(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,s=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(s-1,s)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(i.isTextblock||En(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function kf(t,e,n,r){let i=e.nodeBefore,s=e.nodeAfter,o,a,u=i.type.spec.isolating||s.type.spec.isolating;if(!u&&Ag(t,e,n))return!0;let l=!u&&e.parent.canReplace(e.index(),e.index()+1);if(l&&(o=(a=i.contentMatchAt(i.childCount)).findWrapping(s.type))&&a.matchType(o[0]||s.type).validEnd){if(n){let p=e.pos+s.nodeSize,h=C.empty;for(let y=o.length-1;y>=0;y--)h=C.from(o[y].create(null,h));h=C.from(i.copy(h));let m=t.tr.step(new Re(e.pos-1,p,e.pos,p,new B(h,1,0),o.length,!0)),g=m.doc.resolve(p+2*o.length);g.nodeAfter&&g.nodeAfter.type==i.type&&En(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let c=s.type.spec.isolating||r>0&&u?null:te.findFrom(e,1),d=c&&c.$from.blockRange(c.$to),f=d&&_r(d);if(f!=null&&f>=e.depth)return n&&n(t.tr.lift(d,f).scrollIntoView()),!0;if(l&&mr(s,"start",!0)&&mr(i,"end")){let p=i,h=[];for(;h.push(p),!p.isTextblock;)p=p.lastChild;let m=s,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(n){let y=C.empty;for(let _=h.length-1;_>=0;_--)y=C.from(h[_].copy(y));let v=t.tr.step(new Re(e.pos-h.length,e.pos+s.nodeSize,e.pos+g,e.pos+s.nodeSize-g,new B(y,h.length,0),0,!0));n(v.scrollIntoView())}return!0}}return!1}function Of(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return i.node(s).isTextblock?(n&&n(e.tr.setSelection(j.create(e.doc,t<0?i.start(s):i.end(s)))),!0):!1}}const Cg=Of(-1),Mg=Of(1);function Rg(t,e=null){return function(n,r){let{$from:i,$to:s}=n.selection,o=i.blockRange(s),a=o&&Pa(o,t,e);return a?(r&&r(n.tr.wrap(o,a).scrollIntoView()),!0):!1}}function Al(t,e=null){return function(n,r){let i=!1;for(let s=0;s{if(i)return!1;if(!(!u.isTextblock||u.hasMarkup(t,e)))if(u.type==t)i=!0;else{let c=n.doc.resolve(l),d=c.index();i=c.parent.canReplaceWith(d,d+1,t)}})}if(!i)return!1;if(r){let s=n.tr;for(let o=0;o=2&&i.node(o.depth-1).type.compatibleContent(t)&&o.startIndex==0){if(i.index(o.depth-1)==0)return!1;let c=n.doc.resolve(o.start-2);u=new Vi(c,c,o.depth),o.endIndex=0;c--)s=C.from(n[c].type.create(n[c].attrs,s));t.step(new Re(e.start-(r?2:0),e.end,e.start,e.end,new B(s,0,0),n.length,!0));let o=0;for(let c=0;co.childCount>0&&o.firstChild.type==t);return s?n?r.node(s.depth-1).type==t?Pg(e,n,t,s):Bg(e,n,s):!0:!1}}function Pg(t,e,n,r){let i=t.tr,s=r.end,o=r.$to.end(r.depth);sm;h--)p-=i.child(h).nodeSize,r.delete(p-1,p+1);let s=r.doc.resolve(n.start),o=s.nodeAfter;if(r.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,u=n.endIndex==i.childCount,l=s.node(-1),c=s.index(-1);if(!l.canReplace(c+(a?0:1),c+1,o.content.append(u?C.empty:C.from(i))))return!1;let d=s.pos,f=d+o.nodeSize;return r.step(new Re(d-(a?1:0),f+(u?1:0),d+1,f-1,new B((a?C.empty:C.from(i.copy(C.empty))).append(u?C.empty:C.from(i.copy(C.empty))),a?0:1,u?0:1),a?0:1)),e(r.scrollIntoView()),!0}function $g(t){return function(e,n){let{$from:r,$to:i}=e.selection,s=r.blockRange(i,l=>l.childCount>0&&l.firstChild.type==t);if(!s)return!1;let o=s.startIndex;if(o==0)return!1;let a=s.parent,u=a.child(o-1);if(u.type!=t)return!1;if(n){let l=u.lastChild&&u.lastChild.type==a.type,c=C.from(l?t.create():null),d=new B(C.from(t.create(null,C.from(a.type.create(null,c)))),l?3:1,0),f=s.start,p=s.end;n(e.tr.step(new Re(f-(l?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}function Gs(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:i}=n,{storedMarks:s}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return s},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,s=n.storedMarks,n}}}class js{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:i}=n,{tr:s}=r,o=this.buildProps(s);return Object.fromEntries(Object.entries(e).map(([a,u])=>[a,(...c)=>{const d=u(...c)(o);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(s),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:i,state:s}=this,{view:o}=i,a=[],u=!!e,l=e||s.tr,c=()=>(!u&&n&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(l),a.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,p])=>[f,(...m)=>{const g=this.buildProps(l,n),y=p(...m)(g);return a.push(y),d}])),run:c};return d}createCan(e){const{rawCommands:n,state:r}=this,i=!1,s=e||r.tr,o=this.buildProps(s,i);return{...Object.fromEntries(Object.entries(n).map(([u,l])=>[u,(...c)=>l(...c)({...o,dispatch:void 0})])),chain:()=>this.createChain(s,i)}}buildProps(e,n=!0){const{rawCommands:r,editor:i,state:s}=this,{view:o}=i,a={tr:e,editor:i,view:o,state:Gs({state:s,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([u,l])=>[u,(...c)=>l(...c)(a)]))}};return a}}class Fg{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(i=>i.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(i=>i!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function U(t,e,n){return t.config[e]===void 0&&t.parent?U(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?U(t.parent,e,n):null}):t.config[e]}function Ys(t){const e=t.filter(i=>i.type==="extension"),n=t.filter(i=>i.type==="node"),r=t.filter(i=>i.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function Af(t){const e=[],{nodeExtensions:n,markExtensions:r}=Ys(t),i=[...n,...r],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(o=>{const a={name:o.name,options:o.options,storage:o.storage,extensions:i},u=U(o,"addGlobalAttributes",a);if(!u)return;u().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([f,p])=>{e.push({type:d,name:f,attribute:{...s,...p}})})})})}),i.forEach(o=>{const a={name:o.name,options:o.options,storage:o.storage},u=U(o,"addAttributes",a);if(!u)return;const l=u();Object.entries(l).forEach(([c,d])=>{const f={...s,...d};typeof f?.default=="function"&&(f.default=f.default()),f?.isRequired&&f?.default===void 0&&delete f.default,e.push({type:o.name,name:c,attribute:f})})}),e}function Ie(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Te(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([i,s])=>{if(!r[i]){r[i]=s;return}if(i==="class"){const a=s?s.split(" "):[],u=r[i]?r[i].split(" "):[],l=a.filter(c=>!u.includes(c));r[i]=[...u,...l].join(" ")}else if(i==="style"){const a=s?s.split(";").map(c=>c.trim()).filter(Boolean):[],u=r[i]?r[i].split(";").map(c=>c.trim()).filter(Boolean):[],l=new Map;u.forEach(c=>{const[d,f]=c.split(":").map(p=>p.trim());l.set(d,f)}),a.forEach(c=>{const[d,f]=c.split(":").map(p=>p.trim());l.set(d,f)}),r[i]=Array.from(l.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else r[i]=s}),r},{})}function ca(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Te(n,r),{})}function Cf(t){return typeof t=="function"}function ie(t,e=void 0,...n){return Cf(t)?e?t.bind(e)(...n):t(...n):t}function Ug(t={}){return Object.keys(t).length===0&&t.constructor===Object}function zg(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Cl(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const i=e.reduce((s,o)=>{const a=o.attribute.parseHTML?o.attribute.parseHTML(n):zg(n.getAttribute(o.name));return a==null?s:{...s,[o.name]:a}},{});return{...r,...i}}}}function Ml(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&Ug(n)?!1:n!=null))}function Mf(t,e){var n;const r=Af(t),{nodeExtensions:i,markExtensions:s}=Ys(t),o=(n=i.find(l=>U(l,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(i.map(l=>{const c=r.filter(y=>y.type===l.name),d={name:l.name,options:l.options,storage:l.storage,editor:e},f=t.reduce((y,v)=>{const _=U(v,"extendNodeSchema",d);return{...y,..._?_(l):{}}},{}),p=Ml({...f,content:ie(U(l,"content",d)),marks:ie(U(l,"marks",d)),group:ie(U(l,"group",d)),inline:ie(U(l,"inline",d)),atom:ie(U(l,"atom",d)),selectable:ie(U(l,"selectable",d)),draggable:ie(U(l,"draggable",d)),code:ie(U(l,"code",d)),whitespace:ie(U(l,"whitespace",d)),defining:ie(U(l,"defining",d)),isolating:ie(U(l,"isolating",d)),attrs:Object.fromEntries(c.map(y=>{var v;return[y.name,{default:(v=y?.attribute)===null||v===void 0?void 0:v.default}]}))}),h=ie(U(l,"parseHTML",d));h&&(p.parseDOM=h.map(y=>Cl(y,c)));const m=U(l,"renderHTML",d);m&&(p.toDOM=y=>m({node:y,HTMLAttributes:ca(y,c)}));const g=U(l,"renderText",d);return g&&(p.toText=g),[l.name,p]})),u=Object.fromEntries(s.map(l=>{const c=r.filter(g=>g.type===l.name),d={name:l.name,options:l.options,storage:l.storage,editor:e},f=t.reduce((g,y)=>{const v=U(y,"extendMarkSchema",d);return{...g,...v?v(l):{}}},{}),p=Ml({...f,inclusive:ie(U(l,"inclusive",d)),excludes:ie(U(l,"excludes",d)),group:ie(U(l,"group",d)),spanning:ie(U(l,"spanning",d)),code:ie(U(l,"code",d)),attrs:Object.fromEntries(c.map(g=>{var y;return[g.name,{default:(y=g?.attribute)===null||y===void 0?void 0:y.default}]}))}),h=ie(U(l,"parseHTML",d));h&&(p.parseDOM=h.map(g=>Cl(g,c)));const m=U(l,"renderHTML",d);return m&&(p.toDOM=g=>m({mark:g,HTMLAttributes:ca(g,c)})),[l.name,p]}));return new bd({topNode:o,nodes:a,marks:u})}function No(t,e){return e.nodes[t]||e.marks[t]||null}function Rl(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const Hg=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(i,s,o,a)=>{var u,l;const c=((l=(u=i.type.spec).toText)===null||l===void 0?void 0:l.call(u,{node:i,pos:s,parent:o,index:a}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?c:c.slice(0,Math.max(0,r-s))}),n};function Xa(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Js{constructor(e){this.find=e.find,this.handler=e.handler}}const qg=(t,e)=>{if(Xa(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function gi(t){var e;const{editor:n,from:r,to:i,text:s,rules:o,plugin:a}=t,{view:u}=n;if(u.composing)return!1;const l=u.state.doc.resolve(r);if(l.parent.type.spec.code||!((e=l.nodeBefore||l.nodeAfter)===null||e===void 0)&&e.marks.find(f=>f.type.spec.code))return!1;let c=!1;const d=Hg(l)+s;return o.forEach(f=>{if(c)return;const p=qg(d,f.find);if(!p)return;const h=u.state.tr,m=Gs({state:u.state,transaction:h}),g={from:r-(p[0].length-s.length),to:i},{commands:y,chain:v,can:_}=new js({editor:n,state:m});f.handler({state:m,range:g,match:p,commands:y,chain:v,can:_})===null||!h.steps.length||(h.setMeta(a,{transform:h,from:r,to:i,text:s}),u.dispatch(h),c=!0)}),c}function Vg(t){const{editor:e,rules:n}=t,r=new Ee({state:{init(){return null},apply(i,s){const o=i.getMeta(r);if(o)return o;const a=i.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:l,text:c}=a,d=l+c.length;gi({editor:e,from:l,to:d,text:c,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:s}},props:{handleTextInput(i,s,o,a){return gi({editor:e,from:s,to:o,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:s}=i.state.selection;s&&gi({editor:e,from:s.pos,to:s.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,s){if(s.key!=="Enter")return!1;const{$cursor:o}=i.state.selection;return o?gi({editor:e,from:o.pos,to:o.pos,text:` -`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function Kg(t){return Object.prototype.toString.call(t).slice(8,-1)}function bi(t){return Kg(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Zs(t,e){const n={...t};return bi(t)&&bi(e)&&Object.keys(e).forEach(r=>{bi(e[r])&&bi(t[r])?n[r]=Zs(t[r],e[r]):n[r]=e[r]}),n}class Bt{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ie(U(this,"addOptions",{name:this.name}))),this.storage=ie(U(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Bt(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Bt(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ie(U(n,"addOptions",{name:n.name})),n.storage=ie(U(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const o=i.marks();if(!!!o.find(l=>l?.type.name===n.name))return!1;const u=o.find(l=>l?.type.name===n.name);return u&&r.removeStoredMark(u),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}}function Wg(t){return typeof t=="number"}class Gg{constructor(e){this.find=e.find,this.handler=e.handler}}const jg=(t,e,n)=>{if(Xa(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(i=>{const s=[i.text];return s.index=i.index,s.input=t,s.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),s.push(i.replaceWith)),s}):[]};function Yg(t){const{editor:e,state:n,from:r,to:i,rule:s,pasteEvent:o,dropEvent:a}=t,{commands:u,chain:l,can:c}=new js({editor:e,state:n}),d=[];return n.doc.nodesBetween(r,i,(p,h)=>{if(!p.isTextblock||p.type.spec.code)return;const m=Math.max(r,h),g=Math.min(i,h+p.content.size),y=p.textBetween(m-h,g-h,void 0,"");jg(y,s.find,o).forEach(_=>{if(_.index===void 0)return;const b=m+_.index+1,O=b+_[0].length,x={from:n.tr.mapping.map(b),to:n.tr.mapping.map(O)},R=s.handler({state:n,range:x,match:_,commands:u,chain:l,can:c,pasteEvent:o,dropEvent:a});d.push(R)})}),d.every(p=>p!==null)}const Jg=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function Zg(t){const{editor:e,rules:n}=t;let r=null,i=!1,s=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const u=({state:c,from:d,to:f,rule:p,pasteEvt:h})=>{const m=c.tr,g=Gs({state:c,transaction:m});if(!(!Yg({editor:e,state:g,from:Math.max(d-1,0),to:f.b-1,rule:p,pasteEvent:h,dropEvent:a})||!m.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m};return n.map(c=>new Ee({view(d){const f=p=>{var h;r=!((h=d.dom.parentElement)===null||h===void 0)&&h.contains(p.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(s=r===d.dom.parentElement,a=f,!1),paste:(d,f)=>{var p;const h=(p=f.clipboardData)===null||p===void 0?void 0:p.getData("text/html");return o=f,i=!!h?.includes("data-pm-slice"),!1}}},appendTransaction:(d,f,p)=>{const h=d[0],m=h.getMeta("uiEvent")==="paste"&&!i,g=h.getMeta("uiEvent")==="drop"&&!s,y=h.getMeta("applyPasteRules"),v=!!y;if(!m&&!g&&!v)return;if(v){const{from:O,text:x}=y,R=O+x.length,P=Jg(x);return u({rule:c,state:p,from:O,to:{b:R},pasteEvt:P})}const _=f.doc.content.findDiffStart(p.doc.content),b=f.doc.content.findDiffEnd(p.doc.content);if(!(!Wg(_)||!b||_===b.b))return u({rule:c,state:p,from:_,to:b,pasteEvt:o})}}))}function Xg(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}class An{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=An.resolve(e),this.schema=Mf(this.extensions,n),this.setupExtensions()}static resolve(e){const n=An.sort(An.flatten(e)),r=Xg(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=U(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(e){return e.sort((r,i)=>{const s=U(r,"priority")||100,o=U(i,"priority")||100;return s>o?-1:s{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:No(n.name,this.schema)},i=U(n,"addCommands",r);return i?{...e,...i()}:e},{})}get plugins(){const{editor:e}=this,n=An.sort([...this.extensions].reverse()),r=[],i=[],s=n.map(o=>{const a={name:o.name,options:o.options,storage:o.storage,editor:e,type:No(o.name,this.schema)},u=[],l=U(o,"addKeyboardShortcuts",a);let c={};if(o.type==="mark"&&U(o,"exitable",a)&&(c.ArrowRight=()=>Bt.handleExit({editor:e,mark:o})),l){const m=Object.fromEntries(Object.entries(l()).map(([g,y])=>[g,()=>y({editor:e})]));c={...c,...m}}const d=Eg(c);u.push(d);const f=U(o,"addInputRules",a);Rl(o,e.options.enableInputRules)&&f&&r.push(...f());const p=U(o,"addPasteRules",a);Rl(o,e.options.enablePasteRules)&&p&&i.push(...p());const h=U(o,"addProseMirrorPlugins",a);if(h){const m=h();u.push(...m)}return u}).flat();return[Vg({editor:e,rules:r}),...Zg({editor:e,rules:i}),...s]}get attributes(){return Af(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Ys(this.extensions);return Object.fromEntries(n.filter(r=>!!U(r,"addNodeView")).map(r=>{const i=this.attributes.filter(u=>u.type===r.name),s={name:r.name,options:r.options,storage:r.storage,editor:e,type:Ie(r.name,this.schema)},o=U(r,"addNodeView",s);if(!o)return[];const a=(u,l,c,d,f)=>{const p=ca(u,i);return o()({node:u,view:l,getPos:c,decorations:d,innerDecorations:f,editor:e,extension:r,HTMLAttributes:p})};return[r.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const r={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:No(e.name,this.schema)};e.type==="mark"&&(!((n=ie(U(e,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const i=U(e,"onBeforeCreate",r),s=U(e,"onCreate",r),o=U(e,"onUpdate",r),a=U(e,"onSelectionUpdate",r),u=U(e,"onTransaction",r),l=U(e,"onFocus",r),c=U(e,"onBlur",r),d=U(e,"onDestroy",r);i&&this.editor.on("beforeCreate",i),s&&this.editor.on("create",s),o&&this.editor.on("update",o),a&&this.editor.on("selectionUpdate",a),u&&this.editor.on("transaction",u),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class ke{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ie(U(this,"addOptions",{name:this.name}))),this.storage=ie(U(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ke(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ke({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ie(U(n,"addOptions",{name:n.name})),n.storage=ie(U(n,"addStorage",{name:n.name,options:n.options})),n}}function Rf(t,e,n){const{from:r,to:i}=e,{blockSeparator:s=` +`))),0,0):B.empty;let d=t.someProp("clipboardTextParser",f=>f(e,i,r,t));if(d)a=d;else{let f=i.marks(),{schema:p}=t.state,h=yn.fromSchema(p);o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=o.appendChild(document.createElement("p"));m&&g.appendChild(h.serializeNode(p.text(m,f)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),o=Sm(n),ai&&_m(o);let l=o&&o.querySelector("[data-pm-slice]"),c=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let f=o.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;o=f}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||fn.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(u||c),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!xm.test(f.parentNode.nodeName)?{ignore:!0}:null}})),c)a=Nm(gl(a,+c[1],+c[2]),c[4]);else if(a=B.maxOpen(vm(a.content,i),!0),a.openStart||a.openEnd){let d=0,f=0;for(let p=a.content.firstChild;d{a=d(a,t)}),a}const xm=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function vm(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),s,o=[];if(t.forEach(a=>{if(!o)return;let u=i.findWrapping(a.type),l;if(!u)return o=null;if(l=o.length&&s.length&&tf(u,s,a,o[o.length-1],0))o[o.length-1]=l;else{o.length&&(o[o.length-1]=nf(o[o.length-1],s.length));let c=ef(a,u);o.push(c),i=i.matchType(c.type),s=u}}),o)return C.from(o)}return t}function ef(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,C.from(t));return t}function tf(t,e,n,r,i){if(i1&&(s=0),i=n&&(a=e<0?o.contentMatchAt(0).fillBefore(a,s<=i).append(a):a.append(o.contentMatchAt(o.childCount).fillBefore(C.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,o.copy(a))}function gl(t,e,n){return en})),xo.createHTML(t)):t}function Sm(t){let e=/^(\s*]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=sf().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&rf[r[1].toLowerCase()])&&(t=i.map(s=>"<"+s+">").join("")+t+i.map(s=>"").reverse().join("")),n.innerHTML=wm(t),i)for(let s=0;s=0;a-=2){let u=n.nodes[r[a]];if(!u||u.hasRequiredAttrs())break;i=C.from(u.create(r[a+1],i)),s++,o++}return new B(i,s,o)}const je={},Ye={},Tm={touchstart:!0,touchmove:!0};class km{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Om(t){for(let e in je){let n=je[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Cm(t,r)&&!Ha(t,r)&&(t.editable||!(r.type in Ye))&&n(t,r)},Tm[e]?{passive:!0}:void 0)}Ge&&t.dom.addEventListener("input",()=>null),la(t)}function an(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function Am(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function la(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Ha(t,r))})}function Ha(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function Cm(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function Mm(t,e){!Ha(t,e)&&je[e.type]&&(t.editable||!(e.type in Ye))&&je[e.type](t,e)}Ye.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!af(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(St&&He&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),hr&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,Nn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||Em(t,n)?n.preventDefault():an(t,"key")};Ye.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Ye.keypress=(t,e)=>{let n=e;if(af(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||ht&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof j)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode);!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,i))&&t.dispatch(t.state.tr.insertText(i).scrollIntoView()),n.preventDefault()}};function Ws(t){return{left:t.clientX,top:t.clientY}}function Rm(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function qa(t,e,n,r,i){if(r==-1)return!1;let s=t.state.doc.resolve(r);for(let o=s.depth+1;o>0;o--)if(t.someProp(e,a=>o>s.depth?a(t,n,s.nodeAfter,s.before(o),i,!0):a(t,n,s.node(o),s.before(o),i,!1)))return!0;return!1}function dr(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Dm(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&H.isSelectable(r)?(dr(t,new H(n)),!0):!1}function Im(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof H&&(r=n.node);let s=t.state.doc.resolve(e);for(let o=s.depth+1;o>0;o--){let a=o>s.depth?s.nodeAfter:s.node(o);if(H.isSelectable(a)){r&&n.$from.depth>0&&o>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?i=s.before(n.$from.depth):i=s.before(o);break}}return i!=null?(dr(t,H.create(t.state.doc,i)),!0):!1}function Lm(t,e,n,r,i){return qa(t,"handleClickOn",e,n,r)||t.someProp("handleClick",s=>s(t,e,r))||(i?Im(t,n):Dm(t,n))}function Pm(t,e,n,r){return qa(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function Bm(t,e,n,r){return qa(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||$m(t,n,r)}function $m(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(dr(t,j.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let s=i.depth+1;s>0;s--){let o=s>i.depth?i.nodeAfter:i.node(s),a=i.before(s);if(o.inlineContent)dr(t,j.create(r,a+1,a+1+o.content.size));else if(H.isSelectable(o))dr(t,H.create(r,a));else continue;return!0}}function Va(t){return Ji(t)}const of=ht?"metaKey":"ctrlKey";je.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Va(t),i=Date.now(),s="singleClick";i-t.input.lastClick.time<500&&Rm(n,t.input.lastClick)&&!n[of]&&(t.input.lastClick.type=="singleClick"?s="doubleClick":t.input.lastClick.type=="doubleClick"&&(s="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:s};let o=t.posAtCoords(Ws(n));o&&(s=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Fm(t,o,n,!!r)):(s=="doubleClick"?Pm:Bm)(t,o.pos,o.inside,n)?n.preventDefault():an(t,"pointer"))};class Fm{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[of],this.allowDefault=r.shiftKey;let s,o;if(n.inside>-1)s=e.state.doc.nodeAt(n.inside),o=n.inside;else{let c=e.state.doc.resolve(n.pos);s=c.parent,o=c.depth?c.before():0}const a=i?null:r.target,u=a?e.docView.nearestDesc(a,!0):null;this.target=u&&u.dom.nodeType==1?u.dom:null;let{selection:l}=e.state;(r.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||l instanceof H&&l.from<=o&&l.to>o)&&(this.mightDrag={node:s,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Tt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),an(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Wt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Ws(e))),this.updateAllowDefault(e),this.allowDefault||!n?an(this.view,"pointer"):Lm(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Ge&&this.mightDrag&&!this.mightDrag.node.isAtom||He&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(dr(this.view,te.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):an(this.view,"pointer")}move(e){this.updateAllowDefault(e),an(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}je.touchstart=t=>{t.input.lastTouch=Date.now(),Va(t),an(t,"pointer")};je.touchmove=t=>{t.input.lastTouch=Date.now(),an(t,"pointer")};je.contextmenu=t=>Va(t);function af(t,e){return t.composing?!0:Ge&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Um=St?5e3:-1;Ye.compositionstart=Ye.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof j&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Ji(t,!0),t.markCursor=null;else if(Ji(t,!e.selection.empty),Tt&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,s=r.focusOffset;i&&i.nodeType==1&&s!=0;){let o=s<0?i.lastChild:i.childNodes[s-1];if(!o)break;if(o.nodeType==3){let a=t.domSelection();a&&a.collapse(o,o.nodeValue.length);break}else i=o,s=-1}}t.input.composing=!0}uf(t,Um)};Ye.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,uf(t,20))};function uf(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Ji(t),e))}function lf(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Hm());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function zm(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=D0(e.focusNode,e.focusOffset),r=I0(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,s=t.domObserver.lastChangedTextNode;if(n==s||r==s)return s;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let o=n.pmViewDesc;if(!(!o||!o.isText(n.nodeValue)))return r}}return n||r}function Hm(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Ji(t,e=!1){if(!(St&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),lf(t),e||t.docView&&t.docView.dirty){let n=Fa(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function qm(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Gr=nt&&pn<15||hr&&F0<604;je.copy=Ye.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let s=Gr?null:n.clipboardData,o=r.content(),{dom:a,text:u}=za(t,o);s?(n.preventDefault(),s.clearData(),s.setData("text/html",a.innerHTML),s.setData("text/plain",u)):qm(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Vm(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Km(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?jr(t,r.value,null,i,e):jr(t,r.textContent,r.innerHTML,i,e)},50)}function jr(t,e,n,r,i){let s=Qd(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",u=>u(t,i,s||B.empty)))return!0;if(!s)return!1;let o=Vm(s),a=o?t.state.tr.replaceSelectionWith(o,r):t.state.tr.replaceSelection(s);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function cf(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ye.paste=(t,e)=>{let n=e;if(t.composing&&!St)return;let r=Gr?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&jr(t,cf(r),r.getData("text/html"),i,n)?n.preventDefault():Km(t,n)};class df{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const ff=ht?"altKey":"ctrlKey";je.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,s=i.empty?null:t.posAtCoords(Ws(n)),o;if(!(s&&s.pos>=i.from&&s.pos<=(i instanceof H?i.to-1:i.to))){if(r&&r.mightDrag)o=H.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(o=H.create(t.state.doc,d.posBefore))}}let a=(o||t.state.selection).content(),{dom:u,text:l,slice:c}=za(t,a);(!n.dataTransfer.files.length||!He||Bd>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Gr?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",Gr||n.dataTransfer.setData("text/plain",l),t.dragging=new df(c,!n[ff],o)};je.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Ye.dragover=Ye.dragenter=(t,e)=>e.preventDefault();Ye.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let i=t.posAtCoords(Ws(n));if(!i)return;let s=t.state.doc.resolve(i.pos),o=r&&r.slice;o?t.someProp("transformPasted",h=>{o=h(o,t)}):o=Qd(t,cf(n.dataTransfer),Gr?null:n.dataTransfer.getData("text/html"),!1,s);let a=!!(r&&!n[ff]);if(t.someProp("handleDrop",h=>h(t,n,o||B.empty,a))){n.preventDefault();return}if(!o)return;n.preventDefault();let u=o?Od(t.state.doc,s.pos,o):s.pos;u==null&&(u=s.pos);let l=t.state.tr;if(a){let{node:h}=r;h?h.replace(l):l.deleteSelection()}let c=l.mapping.map(u),d=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,f=l.doc;if(d?l.replaceRangeWith(c,c,o.content.firstChild):l.replaceRange(c,c,o),l.doc.eq(f))return;let p=l.doc.resolve(c);if(d&&H.isSelectable(o.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new H(p));else{let h=l.mapping.map(u);l.mapping.maps[l.mapping.maps.length-1].forEach((m,g,y,v)=>h=v),l.setSelection(Ua(t,p,l.doc.resolve(h)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))};je.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Wt(t)},20))};je.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};je.beforeinput=(t,e)=>{if(He&&St&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",s=>s(t,Nn(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in Ye)je[t]=Ye[t];function Yr(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Zi{constructor(e,n){this.toDOM=e,this.spec=n||Dn,this.side=this.spec.side||0}map(e,n,r,i){let{pos:s,deleted:o}=e.mapResult(n.from+i,this.side<0?-1:1);return o?null:new We(s-r,s-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Zi&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Yr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class mn{constructor(e,n){this.attrs=e,this.spec=n||Dn}map(e,n,r,i){let s=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return s>=o?null:new We(s,o,this)}valid(e,n){return n.from=e&&(!s||s(a.spec))&&r.push(a.copy(a.from+i,a.to+i))}for(let o=0;oe){let a=this.children[o]+1;this.children[o+2].findInner(e-a,n-a,r,i+a,s)}}map(e,n,r){return this==ze||e.maps.length==0?this:this.mapInner(e,n,0,0,r||Dn)}mapInner(e,n,r,i,s){let o;for(let a=0;a{let l=u+r,c;if(c=hf(n,a,l)){for(i||(i=this.children.slice());sa&&d.to=e){this.children[a]==e&&(r=this.children[a+2]);break}let s=e+1,o=s+n.content.size;for(let a=0;as&&u.type instanceof mn){let l=Math.max(s,u.from)-s,c=Math.min(o,u.to)-s;li.map(e,n,Dn));return tn.from(r)}forChild(e,n){if(n.isLeaf)return be.empty;let r=[];for(let i=0;in instanceof be)?e:e.reduce((n,r)=>n.concat(r instanceof be?r:r.members),[]))}}forEachSet(e){for(let n=0;n{let g=m-h-(p-f);for(let y=0;yv+c-d)continue;let _=a[y]+c-d;p>=_?a[y+1]=f<=_?-2:-1:f>=c&&g&&(a[y]+=g,a[y+1]+=g)}d+=g}),c=n.maps[l].map(c,-1)}let u=!1;for(let l=0;l=r.content.size){u=!0;continue}let f=n.map(t[l+1]+s,-1),p=f-i,{index:h,offset:m}=r.content.findIndex(d),g=r.maybeChild(h);if(g&&m==d&&m+g.nodeSize==p){let y=a[l+2].mapInner(n,g,c+1,t[l]+s+1,o);y!=ze?(a[l]=d,a[l+1]=p,a[l+2]=y):(a[l+1]=-2,u=!0)}else u=!0}if(u){let l=Gm(a,t,e,n,i,s,o),c=Xi(l,r,0,o);e=c.local;for(let d=0;dn&&o.to{let l=hf(t,a,u+n);if(l){s=!0;let c=Xi(l,a,n+u+1,r);c!=ze&&i.push(u,u+a.nodeSize,c)}});let o=pf(s?mf(t):t,-n).sort(In);for(let a=0;a0;)e++;t.splice(e,0,n)}function vo(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=ze&&e.push(r)}),t.cursorWrapper&&e.push(be.create(t.state.doc,[t.cursorWrapper.deco])),tn.from(e)}const jm={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ym=nt&&pn<=11;class Jm{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Zm{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Jm,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;ii.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),Ym&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,jm)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(cl(this.view)){if(this.suppressingSelectionUpdates)return Wt(this.view);if(nt&&pn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&zn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let s=e.focusNode;s;s=Wr(s))n.add(s);for(let s=e.anchorNode;s;s=Wr(s))if(n.has(s)){r=s;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&cl(e)&&!this.ignoreSelectionChange(r),s=-1,o=-1,a=!1,u=[];if(e.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,f]=c;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of c){let p=f.parentNode;p&&p.nodeName=="LI"&&(!d||eg(e,d)!=p)&&f.remove()}}}let l=null;s<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)-1||i)&&(s>-1&&(e.docView.markDirty(s,o),Xm(e)),this.handleDOMChange(s,o,a,u),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Wt(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let c=0;ci;g--){let y=r.childNodes[g-1],v=y.pmViewDesc;if(y.nodeName=="BR"&&!v){s=g;break}if(!v||v.size)break}let d=t.state.doc,f=t.someProp("domParser")||fn.fromSchema(t.state.schema),p=d.resolve(o),h=null,m=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:s,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:l,ruleFromNode:ng,context:p});if(l&&l[0].pos!=null){let g=l[0].pos,y=l[1]&&l[1].pos;y==null&&(y=g),h={anchor:g+o,head:y+o}}return{doc:m,sel:h,from:o,to:a}}function ng(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Ge&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Ge&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const rg=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function ig(t,e,n,r,i){let s=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let k=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,$=Fa(t,k);if($&&!t.state.selection.eq($)){if(He&&St&&t.input.lastKeyCode===13&&Date.now()-100Z(t,Nn(13,"Enter"))))return;let G=t.state.tr.setSelection($);k=="pointer"?G.setMeta("pointer",!0):k=="key"&&G.scrollIntoView(),s&&G.setMeta("composition",s),t.dispatch(G)}return}let o=t.state.doc.resolve(e),a=o.sharedDepth(n);e=o.before(a+1),n=t.state.doc.resolve(n).after(a+1);let u=t.state.selection,l=tg(t,e,n),c=t.state.doc,d=c.slice(l.from,l.to),f,p;t.input.lastKeyCode===8&&Date.now()-100Date.now()-225||St)&&i.some(k=>k.nodeType==1&&!rg.test(k.nodeName))&&(!h||h.endA>=h.endB)&&t.someProp("handleKeyDown",k=>k(t,Nn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!h)if(r&&u instanceof j&&!u.empty&&u.$head.sameParent(u.$anchor)&&!t.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))h={start:u.from,endA:u.to,endB:u.to};else{if(l.sel){let k=wl(t,t.state.doc,l.sel);if(k&&!k.eq(t.state.selection)){let $=t.state.tr.setSelection(k);s&&$.setMeta("composition",s),t.dispatch($)}}return}t.state.selection.fromt.state.selection.from&&h.start<=t.state.selection.from+2&&t.state.selection.from>=l.from?h.start=t.state.selection.from:h.endA=t.state.selection.to-2&&t.state.selection.to<=l.to&&(h.endB+=t.state.selection.to-h.endA,h.endA=t.state.selection.to)),nt&&pn<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>l.from&&l.doc.textBetween(h.start-l.from-1,h.start-l.from+1)=="  "&&(h.start--,h.endA--,h.endB--);let m=l.doc.resolveNoCache(h.start-l.from),g=l.doc.resolveNoCache(h.endB-l.from),y=c.resolve(h.start),v=m.sameParent(g)&&m.parent.inlineContent&&y.end()>=h.endA,_;if((hr&&t.input.lastIOSEnter>Date.now()-225&&(!v||i.some(k=>k.nodeName=="DIV"||k.nodeName=="P"))||!v&&m.posk(t,Nn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>h.start&&og(c,h.start,h.endA,m,g)&&t.someProp("handleKeyDown",k=>k(t,Nn(8,"Backspace")))){St&&He&&t.domObserver.suppressSelectionUpdates();return}He&&St&&h.endB==h.start&&(t.input.lastAndroidDelete=Date.now()),St&&!v&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==h.endA&&(h.endB-=2,g=l.doc.resolveNoCache(h.endB-l.from),setTimeout(()=>{t.someProp("handleKeyDown",function(k){return k(t,Nn(13,"Enter"))})},20));let b=h.start,O=h.endA,x,R,P;if(v){if(m.pos==g.pos)nt&&pn<=11&&m.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Wt(t),20)),x=t.state.tr.delete(b,O),R=c.resolve(h.start).marksAcross(c.resolve(h.endA));else if(h.endA==h.endB&&(P=sg(m.parent.content.cut(m.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,h.endA-y.start()))))x=t.state.tr,P.type=="add"?x.addMark(b,O,P.mark):x.removeMark(b,O,P.mark);else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let k=m.parent.textBetween(m.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",$=>$(t,b,O,k)))return;x=t.state.tr.insertText(k,b,O)}}if(x||(x=t.state.tr.replace(b,O,l.doc.slice(h.start-l.from,h.endB-l.from))),l.sel){let k=wl(t,x.doc,l.sel);k&&!(He&&St&&t.composing&&k.empty&&(h.start!=h.endB||t.input.lastAndroidDeletee.content.size?null:Ua(t,e.resolve(n.anchor),e.resolve(n.head))}function sg(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,s=r,o,a,u;for(let c=0;cc.mark(a.addToSet(c.marks));else if(i.length==0&&s.length==1)a=s[0],o="remove",u=c=>c.mark(a.removeFromSet(c.marks));else return null;let l=[];for(let c=0;cn||wo(o,!0,!1)0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let s=t.node(r).maybeChild(t.indexAfter(r));for(;s&&!s.isLeaf;)s=s.firstChild,i++}return i}function ag(t,e,n,r,i){let s=t.findDiffStart(e,n);if(s==null)return null;let{a:o,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let u=Math.max(0,s-Math.min(o,a));r-=o+u-s}if(o=o?s-r:0;s-=u,s&&s=a?s-r:0;s-=u,s&&s=56320&&e<=57343&&n>=55296&&n<=56319}const ug=za;class lg{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new km,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Ol),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Tl(this),Nl(this),this.nodeViews=kl(this),this.docView=il(this.state.doc,_l(this),vo(this),this.dom,this),this.domObserver=new Zm(this,(r,i,s,o)=>ig(this,r,i,s,o)),this.domObserver.start(),Om(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&la(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Ol),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,s=!1,o=!1;e.storedMarks&&this.composing&&(lf(this),o=!0),this.state=e;let a=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=kl(this);dg(p,this.nodeViews)&&(this.nodeViews=p,s=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&la(this),this.editable=Tl(this),Nl(this);let u=vo(this),l=_l(this),c=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=s||!this.docView.matchesNode(e.doc,l,u);(d||!e.selection.eq(i.selection))&&(o=!0);let f=c=="preserve"&&o&&this.dom.style.overflowAnchor==null&&H0(this);if(o){this.domObserver.stop();let p=d&&(nt||He)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&cg(i.selection,e.selection);if(d){let h=He?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=zm(this)),(s||!this.docView.update(e.doc,l,u,this))&&(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=il(e.doc,l,u,this.dom,this)),h&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&fm(this))?Wt(this,p):(Jd(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():f&&q0(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof H){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Xu(this,n.getBoundingClientRect(),e)}else Xu(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(s))==r.node&&(i=s)}this.dragging=new df(e.slice,e.move,i<0?void 0:H.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let o=0;on.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return Y0(this,e)}coordsAtPos(e,n=1){return Hd(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return em(this,n||this.state,e)}pasteHTML(e,n){return jr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return jr(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(Am(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],vo(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,M0())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Mm(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?Ge&&this.root.nodeType===11&&P0(this.dom.ownerDocument)==this.dom&&Qm(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function _l(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[We.node(0,t.state.doc.content.size,e)]}function Nl(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:We.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Tl(t){return!t.someProp("editable",e=>e(t.state)===!1)}function cg(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function kl(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function dg(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function Ol(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var gn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Qi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},fg=typeof navigator<"u"&&/Mac/.test(navigator.platform),pg=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Fe=0;Fe<10;Fe++)gn[48+Fe]=gn[96+Fe]=String(Fe);for(var Fe=1;Fe<=24;Fe++)gn[Fe+111]="F"+Fe;for(var Fe=65;Fe<=90;Fe++)gn[Fe]=String.fromCharCode(Fe+32),Qi[Fe]=String.fromCharCode(Fe);for(var So in gn)Qi.hasOwnProperty(So)||(Qi[So]=gn[So]);function hg(t){var e=fg&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||pg&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Qi:gn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const mg=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function gg(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,s,o;for(let a=0;a127)&&(s=gn[r.keyCode])&&s!=i){let a=e[_o(s,r)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Ga=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function bf(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const yf=(t,e,n)=>{let r=bf(t,n);if(!r)return!1;let i=ja(r);if(!i){let o=r.blockRange(),a=o&&_r(o);return a==null?!1:(e&&e(t.tr.lift(o,a).scrollIntoView()),!0)}let s=i.nodeBefore;if(kf(t,i,e,-1))return!0;if(r.parent.content.size==0&&(mr(s,"end")||H.isSelectable(s)))for(let o=r.depth;;o--){let a=Hs(t.doc,r.before(o),r.after(o),B.empty);if(a&&a.slice.size1)break}return s.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-s.nodeSize,i.pos).scrollIntoView()),!0):!1},Eg=(t,e,n)=>{let r=bf(t,n);if(!r)return!1;let i=ja(r);return i?Ef(t,i,e):!1},xg=(t,e,n)=>{let r=vf(t,n);if(!r)return!1;let i=Ya(r);return i?Ef(t,i,e):!1};function Ef(t,e,n){let r=e.nodeBefore,i=r,s=e.pos-1;for(;!i.isTextblock;s--){if(i.type.spec.isolating)return!1;let c=i.lastChild;if(!c)return!1;i=c}let o=e.nodeAfter,a=o,u=e.pos+1;for(;!a.isTextblock;u++){if(a.type.spec.isolating)return!1;let c=a.firstChild;if(!c)return!1;a=c}let l=Hs(t.doc,s,u,B.empty);if(!l||l.from!=s||l instanceof Ce&&l.slice.size>=u-s)return!1;if(n){let c=t.tr.step(l);c.setSelection(j.create(c.doc,s)),n(c.scrollIntoView())}return!0}function mr(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const xf=(t,e,n)=>{let{$head:r,empty:i}=t.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;s=ja(r)}let o=s&&s.nodeBefore;return!o||!H.isSelectable(o)?!1:(e&&e(t.tr.setSelection(H.create(t.doc,s.pos-o.nodeSize)).scrollIntoView()),!0)};function ja(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function vf(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset{let r=vf(t,n);if(!r)return!1;let i=Ya(r);if(!i)return!1;let s=i.nodeAfter;if(kf(t,i,e,1))return!0;if(r.parent.content.size==0&&(mr(s,"start")||H.isSelectable(s))){let o=Hs(t.doc,r.before(),r.after(),B.empty);if(o&&o.slice.size{let{$head:r,empty:i}=t.selection,s=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset=0;e--){let n=t.node(e);if(t.index(e)+1{let n=t.selection,r=n instanceof H,i;if(r){if(n.node.isTextblock||!En(t.doc,n.from))return!1;i=n.from}else if(i=zs(t.doc,n.from,-1),i==null)return!1;if(e){let s=t.tr.join(i);r&&s.setSelection(H.create(s.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},wg=(t,e)=>{let n=t.selection,r;if(n instanceof H){if(n.node.isTextblock||!En(t.doc,n.to))return!1;r=n.to}else if(r=zs(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},Sg=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),s=i&&_r(i);return s==null?!1:(e&&e(t.tr.lift(i,s).scrollIntoView()),!0)},_f=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` +`).scrollIntoView()),!0)};function Ja(t){for(let e=0;e{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),s=n.indexAfter(-1),o=Ja(i.contentMatchAt(s));if(!o||!i.canReplaceWith(s,s,o))return!1;if(e){let a=n.after(),u=t.tr.replaceWith(a,a,o.createAndFill());u.setSelection(te.near(u.doc.resolve(a),1)),e(u.scrollIntoView())}return!0},Nf=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof bt||r.parent.inlineContent||i.parent.inlineContent)return!1;let s=Ja(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let o=(!r.parentOffset&&i.index(){let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let s=n.before();if(Kt(t.doc,s))return e&&e(t.tr.split(s).scrollIntoView()),!0}let r=n.blockRange(),i=r&&_r(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function Ng(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof H&&e.selection.node.isBlock)return!r.parentOffset||!Kt(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let s=[],o,a,u=!1,l=!1;for(let p=r.depth;;p--)if(r.node(p).isBlock){u=r.end(p)==r.pos+(r.depth-p),l=r.start(p)==r.pos-(r.depth-p),a=Ja(r.node(p-1).contentMatchAt(r.indexAfter(p-1))),s.unshift(u&&a?{type:a}:null),o=p;break}else{if(p==1)return!1;s.unshift(null)}let c=e.tr;(e.selection instanceof j||e.selection instanceof bt)&&c.deleteSelection();let d=c.mapping.map(r.pos),f=Kt(c.doc,d,s.length,s);if(f||(s[0]=a?{type:a}:null,f=Kt(c.doc,d,s.length,s)),c.split(d,s.length,s),!u&&l&&r.node(o).type!=a){let p=c.mapping.map(r.before(o)),h=c.doc.resolve(p);a&&r.node(o-1).canReplaceWith(h.index(),h.index()+1,a)&&c.setNodeMarkup(c.mapping.map(r.before(o)),a)}return n&&n(c.scrollIntoView()),!0}}const Tg=Ng(),kg=(t,e)=>{let{$from:n,to:r}=t.selection,i,s=n.sharedDepth(r);return s==0?!1:(i=n.before(s),e&&e(t.tr.setSelection(H.create(t.doc,i))),!0)};function Og(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,s=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(s-1,s)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(i.isTextblock||En(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function kf(t,e,n,r){let i=e.nodeBefore,s=e.nodeAfter,o,a,u=i.type.spec.isolating||s.type.spec.isolating;if(!u&&Og(t,e,n))return!0;let l=!u&&e.parent.canReplace(e.index(),e.index()+1);if(l&&(o=(a=i.contentMatchAt(i.childCount)).findWrapping(s.type))&&a.matchType(o[0]||s.type).validEnd){if(n){let p=e.pos+s.nodeSize,h=C.empty;for(let y=o.length-1;y>=0;y--)h=C.from(o[y].create(null,h));h=C.from(i.copy(h));let m=t.tr.step(new Re(e.pos-1,p,e.pos,p,new B(h,1,0),o.length,!0)),g=m.doc.resolve(p+2*o.length);g.nodeAfter&&g.nodeAfter.type==i.type&&En(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let c=s.type.spec.isolating||r>0&&u?null:te.findFrom(e,1),d=c&&c.$from.blockRange(c.$to),f=d&&_r(d);if(f!=null&&f>=e.depth)return n&&n(t.tr.lift(d,f).scrollIntoView()),!0;if(l&&mr(s,"start",!0)&&mr(i,"end")){let p=i,h=[];for(;h.push(p),!p.isTextblock;)p=p.lastChild;let m=s,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(n){let y=C.empty;for(let _=h.length-1;_>=0;_--)y=C.from(h[_].copy(y));let v=t.tr.step(new Re(e.pos-h.length,e.pos+s.nodeSize,e.pos+g,e.pos+s.nodeSize-g,new B(y,h.length,0),0,!0));n(v.scrollIntoView())}return!0}}return!1}function Of(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return i.node(s).isTextblock?(n&&n(e.tr.setSelection(j.create(e.doc,t<0?i.start(s):i.end(s)))),!0):!1}}const Ag=Of(-1),Cg=Of(1);function Mg(t,e=null){return function(n,r){let{$from:i,$to:s}=n.selection,o=i.blockRange(s),a=o&&Pa(o,t,e);return a?(r&&r(n.tr.wrap(o,a).scrollIntoView()),!0):!1}}function Al(t,e=null){return function(n,r){let i=!1;for(let s=0;s{if(i)return!1;if(!(!u.isTextblock||u.hasMarkup(t,e)))if(u.type==t)i=!0;else{let c=n.doc.resolve(l),d=c.index();i=c.parent.canReplaceWith(d,d+1,t)}})}if(!i)return!1;if(r){let s=n.tr;for(let o=0;o=2&&i.node(o.depth-1).type.compatibleContent(t)&&o.startIndex==0){if(i.index(o.depth-1)==0)return!1;let c=n.doc.resolve(o.start-2);u=new Vi(c,c,o.depth),o.endIndex=0;c--)s=C.from(n[c].type.create(n[c].attrs,s));t.step(new Re(e.start-(r?2:0),e.end,e.start,e.end,new B(s,0,0),n.length,!0));let o=0;for(let c=0;co.childCount>0&&o.firstChild.type==t);return s?n?r.node(s.depth-1).type==t?Lg(e,n,t,s):Pg(e,n,s):!0:!1}}function Lg(t,e,n,r){let i=t.tr,s=r.end,o=r.$to.end(r.depth);sm;h--)p-=i.child(h).nodeSize,r.delete(p-1,p+1);let s=r.doc.resolve(n.start),o=s.nodeAfter;if(r.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,u=n.endIndex==i.childCount,l=s.node(-1),c=s.index(-1);if(!l.canReplace(c+(a?0:1),c+1,o.content.append(u?C.empty:C.from(i))))return!1;let d=s.pos,f=d+o.nodeSize;return r.step(new Re(d-(a?1:0),f+(u?1:0),d+1,f-1,new B((a?C.empty:C.from(i.copy(C.empty))).append(u?C.empty:C.from(i.copy(C.empty))),a?0:1,u?0:1),a?0:1)),e(r.scrollIntoView()),!0}function Bg(t){return function(e,n){let{$from:r,$to:i}=e.selection,s=r.blockRange(i,l=>l.childCount>0&&l.firstChild.type==t);if(!s)return!1;let o=s.startIndex;if(o==0)return!1;let a=s.parent,u=a.child(o-1);if(u.type!=t)return!1;if(n){let l=u.lastChild&&u.lastChild.type==a.type,c=C.from(l?t.create():null),d=new B(C.from(t.create(null,C.from(a.type.create(null,c)))),l?3:1,0),f=s.start,p=s.end;n(e.tr.step(new Re(f-(l?3:1),p,f,p,d,1,!0)).scrollIntoView())}return!0}}function Gs(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:i}=n,{storedMarks:s}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return s},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,s=n.storedMarks,n}}}class js{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:i}=n,{tr:s}=r,o=this.buildProps(s);return Object.fromEntries(Object.entries(e).map(([a,u])=>[a,(...c)=>{const d=u(...c)(o);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(s),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:i,state:s}=this,{view:o}=i,a=[],u=!!e,l=e||s.tr,c=()=>(!u&&n&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(l),a.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(r).map(([f,p])=>[f,(...m)=>{const g=this.buildProps(l,n),y=p(...m)(g);return a.push(y),d}])),run:c};return d}createCan(e){const{rawCommands:n,state:r}=this,i=!1,s=e||r.tr,o=this.buildProps(s,i);return{...Object.fromEntries(Object.entries(n).map(([u,l])=>[u,(...c)=>l(...c)({...o,dispatch:void 0})])),chain:()=>this.createChain(s,i)}}buildProps(e,n=!0){const{rawCommands:r,editor:i,state:s}=this,{view:o}=i,a={tr:e,editor:i,view:o,state:Gs({state:s,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([u,l])=>[u,(...c)=>l(...c)(a)]))}};return a}}class $g{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(i=>i.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(i=>i!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function U(t,e,n){return t.config[e]===void 0&&t.parent?U(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?U(t.parent,e,n):null}):t.config[e]}function Ys(t){const e=t.filter(i=>i.type==="extension"),n=t.filter(i=>i.type==="node"),r=t.filter(i=>i.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function Af(t){const e=[],{nodeExtensions:n,markExtensions:r}=Ys(t),i=[...n,...r],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(o=>{const a={name:o.name,options:o.options,storage:o.storage,extensions:i},u=U(o,"addGlobalAttributes",a);if(!u)return;u().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([f,p])=>{e.push({type:d,name:f,attribute:{...s,...p}})})})})}),i.forEach(o=>{const a={name:o.name,options:o.options,storage:o.storage},u=U(o,"addAttributes",a);if(!u)return;const l=u();Object.entries(l).forEach(([c,d])=>{const f={...s,...d};typeof f?.default=="function"&&(f.default=f.default()),f?.isRequired&&f?.default===void 0&&delete f.default,e.push({type:o.name,name:c,attribute:f})})}),e}function Ie(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Te(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([i,s])=>{if(!r[i]){r[i]=s;return}if(i==="class"){const a=s?s.split(" "):[],u=r[i]?r[i].split(" "):[],l=a.filter(c=>!u.includes(c));r[i]=[...u,...l].join(" ")}else if(i==="style"){const a=s?s.split(";").map(c=>c.trim()).filter(Boolean):[],u=r[i]?r[i].split(";").map(c=>c.trim()).filter(Boolean):[],l=new Map;u.forEach(c=>{const[d,f]=c.split(":").map(p=>p.trim());l.set(d,f)}),a.forEach(c=>{const[d,f]=c.split(":").map(p=>p.trim());l.set(d,f)}),r[i]=Array.from(l.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else r[i]=s}),r},{})}function ca(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Te(n,r),{})}function Cf(t){return typeof t=="function"}function ie(t,e=void 0,...n){return Cf(t)?e?t.bind(e)(...n):t(...n):t}function Fg(t={}){return Object.keys(t).length===0&&t.constructor===Object}function Ug(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Cl(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const i=e.reduce((s,o)=>{const a=o.attribute.parseHTML?o.attribute.parseHTML(n):Ug(n.getAttribute(o.name));return a==null?s:{...s,[o.name]:a}},{});return{...r,...i}}}}function Ml(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&Fg(n)?!1:n!=null))}function Mf(t,e){var n;const r=Af(t),{nodeExtensions:i,markExtensions:s}=Ys(t),o=(n=i.find(l=>U(l,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(i.map(l=>{const c=r.filter(y=>y.type===l.name),d={name:l.name,options:l.options,storage:l.storage,editor:e},f=t.reduce((y,v)=>{const _=U(v,"extendNodeSchema",d);return{...y,..._?_(l):{}}},{}),p=Ml({...f,content:ie(U(l,"content",d)),marks:ie(U(l,"marks",d)),group:ie(U(l,"group",d)),inline:ie(U(l,"inline",d)),atom:ie(U(l,"atom",d)),selectable:ie(U(l,"selectable",d)),draggable:ie(U(l,"draggable",d)),code:ie(U(l,"code",d)),whitespace:ie(U(l,"whitespace",d)),defining:ie(U(l,"defining",d)),isolating:ie(U(l,"isolating",d)),attrs:Object.fromEntries(c.map(y=>{var v;return[y.name,{default:(v=y?.attribute)===null||v===void 0?void 0:v.default}]}))}),h=ie(U(l,"parseHTML",d));h&&(p.parseDOM=h.map(y=>Cl(y,c)));const m=U(l,"renderHTML",d);m&&(p.toDOM=y=>m({node:y,HTMLAttributes:ca(y,c)}));const g=U(l,"renderText",d);return g&&(p.toText=g),[l.name,p]})),u=Object.fromEntries(s.map(l=>{const c=r.filter(g=>g.type===l.name),d={name:l.name,options:l.options,storage:l.storage,editor:e},f=t.reduce((g,y)=>{const v=U(y,"extendMarkSchema",d);return{...g,...v?v(l):{}}},{}),p=Ml({...f,inclusive:ie(U(l,"inclusive",d)),excludes:ie(U(l,"excludes",d)),group:ie(U(l,"group",d)),spanning:ie(U(l,"spanning",d)),code:ie(U(l,"code",d)),attrs:Object.fromEntries(c.map(g=>{var y;return[g.name,{default:(y=g?.attribute)===null||y===void 0?void 0:y.default}]}))}),h=ie(U(l,"parseHTML",d));h&&(p.parseDOM=h.map(g=>Cl(g,c)));const m=U(l,"renderHTML",d);return m&&(p.toDOM=g=>m({mark:g,HTMLAttributes:ca(g,c)})),[l.name,p]}));return new bd({topNode:o,nodes:a,marks:u})}function No(t,e){return e.nodes[t]||e.marks[t]||null}function Rl(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const zg=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(i,s,o,a)=>{var u,l;const c=((l=(u=i.type.spec).toText)===null||l===void 0?void 0:l.call(u,{node:i,pos:s,parent:o,index:a}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?c:c.slice(0,Math.max(0,r-s))}),n};function Xa(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class Js{constructor(e){this.find=e.find,this.handler=e.handler}}const Hg=(t,e)=>{if(Xa(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function gi(t){var e;const{editor:n,from:r,to:i,text:s,rules:o,plugin:a}=t,{view:u}=n;if(u.composing)return!1;const l=u.state.doc.resolve(r);if(l.parent.type.spec.code||!((e=l.nodeBefore||l.nodeAfter)===null||e===void 0)&&e.marks.find(f=>f.type.spec.code))return!1;let c=!1;const d=zg(l)+s;return o.forEach(f=>{if(c)return;const p=Hg(d,f.find);if(!p)return;const h=u.state.tr,m=Gs({state:u.state,transaction:h}),g={from:r-(p[0].length-s.length),to:i},{commands:y,chain:v,can:_}=new js({editor:n,state:m});f.handler({state:m,range:g,match:p,commands:y,chain:v,can:_})===null||!h.steps.length||(h.setMeta(a,{transform:h,from:r,to:i,text:s}),u.dispatch(h),c=!0)}),c}function qg(t){const{editor:e,rules:n}=t,r=new Ee({state:{init(){return null},apply(i,s){const o=i.getMeta(r);if(o)return o;const a=i.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:l,text:c}=a,d=l+c.length;gi({editor:e,from:l,to:d,text:c,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:s}},props:{handleTextInput(i,s,o,a){return gi({editor:e,from:s,to:o,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:s}=i.state.selection;s&&gi({editor:e,from:s.pos,to:s.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,s){if(s.key!=="Enter")return!1;const{$cursor:o}=i.state.selection;return o?gi({editor:e,from:o.pos,to:o.pos,text:` +`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function Vg(t){return Object.prototype.toString.call(t).slice(8,-1)}function bi(t){return Vg(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Zs(t,e){const n={...t};return bi(t)&&bi(e)&&Object.keys(e).forEach(r=>{bi(e[r])&&bi(t[r])?n[r]=Zs(t[r],e[r]):n[r]=e[r]}),n}class Bt{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ie(U(this,"addOptions",{name:this.name}))),this.storage=ie(U(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Bt(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Bt(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ie(U(n,"addOptions",{name:n.name})),n.storage=ie(U(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const o=i.marks();if(!!!o.find(l=>l?.type.name===n.name))return!1;const u=o.find(l=>l?.type.name===n.name);return u&&r.removeStoredMark(u),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}}function Kg(t){return typeof t=="number"}class Wg{constructor(e){this.find=e.find,this.handler=e.handler}}const Gg=(t,e,n)=>{if(Xa(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(i=>{const s=[i.text];return s.index=i.index,s.input=t,s.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),s.push(i.replaceWith)),s}):[]};function jg(t){const{editor:e,state:n,from:r,to:i,rule:s,pasteEvent:o,dropEvent:a}=t,{commands:u,chain:l,can:c}=new js({editor:e,state:n}),d=[];return n.doc.nodesBetween(r,i,(p,h)=>{if(!p.isTextblock||p.type.spec.code)return;const m=Math.max(r,h),g=Math.min(i,h+p.content.size),y=p.textBetween(m-h,g-h,void 0,"");Gg(y,s.find,o).forEach(_=>{if(_.index===void 0)return;const b=m+_.index+1,O=b+_[0].length,x={from:n.tr.mapping.map(b),to:n.tr.mapping.map(O)},R=s.handler({state:n,range:x,match:_,commands:u,chain:l,can:c,pasteEvent:o,dropEvent:a});d.push(R)})}),d.every(p=>p!==null)}const Yg=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function Jg(t){const{editor:e,rules:n}=t;let r=null,i=!1,s=!1,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const u=({state:c,from:d,to:f,rule:p,pasteEvt:h})=>{const m=c.tr,g=Gs({state:c,transaction:m});if(!(!jg({editor:e,state:g,from:Math.max(d-1,0),to:f.b-1,rule:p,pasteEvent:h,dropEvent:a})||!m.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,o=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m};return n.map(c=>new Ee({view(d){const f=p=>{var h;r=!((h=d.dom.parentElement)===null||h===void 0)&&h.contains(p.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(s=r===d.dom.parentElement,a=f,!1),paste:(d,f)=>{var p;const h=(p=f.clipboardData)===null||p===void 0?void 0:p.getData("text/html");return o=f,i=!!h?.includes("data-pm-slice"),!1}}},appendTransaction:(d,f,p)=>{const h=d[0],m=h.getMeta("uiEvent")==="paste"&&!i,g=h.getMeta("uiEvent")==="drop"&&!s,y=h.getMeta("applyPasteRules"),v=!!y;if(!m&&!g&&!v)return;if(v){const{from:O,text:x}=y,R=O+x.length,P=Yg(x);return u({rule:c,state:p,from:O,to:{b:R},pasteEvt:P})}const _=f.doc.content.findDiffStart(p.doc.content),b=f.doc.content.findDiffEnd(p.doc.content);if(!(!Kg(_)||!b||_===b.b))return u({rule:c,state:p,from:_,to:b,pasteEvt:o})}}))}function Zg(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}class An{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=An.resolve(e),this.schema=Mf(this.extensions,n),this.setupExtensions()}static resolve(e){const n=An.sort(An.flatten(e)),r=Zg(n.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},i=U(n,"addExtensions",r);return i?[n,...this.flatten(i())]:n}).flat(10)}static sort(e){return e.sort((r,i)=>{const s=U(r,"priority")||100,o=U(i,"priority")||100;return s>o?-1:s{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:No(n.name,this.schema)},i=U(n,"addCommands",r);return i?{...e,...i()}:e},{})}get plugins(){const{editor:e}=this,n=An.sort([...this.extensions].reverse()),r=[],i=[],s=n.map(o=>{const a={name:o.name,options:o.options,storage:o.storage,editor:e,type:No(o.name,this.schema)},u=[],l=U(o,"addKeyboardShortcuts",a);let c={};if(o.type==="mark"&&U(o,"exitable",a)&&(c.ArrowRight=()=>Bt.handleExit({editor:e,mark:o})),l){const m=Object.fromEntries(Object.entries(l()).map(([g,y])=>[g,()=>y({editor:e})]));c={...c,...m}}const d=yg(c);u.push(d);const f=U(o,"addInputRules",a);Rl(o,e.options.enableInputRules)&&f&&r.push(...f());const p=U(o,"addPasteRules",a);Rl(o,e.options.enablePasteRules)&&p&&i.push(...p());const h=U(o,"addProseMirrorPlugins",a);if(h){const m=h();u.push(...m)}return u}).flat();return[qg({editor:e,rules:r}),...Jg({editor:e,rules:i}),...s]}get attributes(){return Af(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Ys(this.extensions);return Object.fromEntries(n.filter(r=>!!U(r,"addNodeView")).map(r=>{const i=this.attributes.filter(u=>u.type===r.name),s={name:r.name,options:r.options,storage:r.storage,editor:e,type:Ie(r.name,this.schema)},o=U(r,"addNodeView",s);if(!o)return[];const a=(u,l,c,d,f)=>{const p=ca(u,i);return o()({node:u,view:l,getPos:c,decorations:d,innerDecorations:f,editor:e,extension:r,HTMLAttributes:p})};return[r.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const r={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:No(e.name,this.schema)};e.type==="mark"&&(!((n=ie(U(e,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const i=U(e,"onBeforeCreate",r),s=U(e,"onCreate",r),o=U(e,"onUpdate",r),a=U(e,"onSelectionUpdate",r),u=U(e,"onTransaction",r),l=U(e,"onFocus",r),c=U(e,"onBlur",r),d=U(e,"onDestroy",r);i&&this.editor.on("beforeCreate",i),s&&this.editor.on("create",s),o&&this.editor.on("update",o),a&&this.editor.on("selectionUpdate",a),u&&this.editor.on("transaction",u),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class ke{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ie(U(this,"addOptions",{name:this.name}))),this.storage=ie(U(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ke(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ke({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ie(U(n,"addOptions",{name:n.name})),n.storage=ie(U(n,"addStorage",{name:n.name,options:n.options})),n}}function Rf(t,e,n){const{from:r,to:i}=e,{blockSeparator:s=` -`,textSerializers:o={}}=n||{};let a="";return t.nodesBetween(r,i,(u,l,c,d)=>{var f;u.isBlock&&l>r&&(a+=s);const p=o?.[u.type.name];if(p)return c&&(a+=p({node:u,pos:l,parent:c,index:d,range:e})),!1;u.isText&&(a+=(f=u?.text)===null||f===void 0?void 0:f.slice(Math.max(r,l)-l,i-l))}),a}function Df(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const Qg=ke.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ee({key:new Le("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:i}=e,{ranges:s}=i,o=Math.min(...s.map(c=>c.$from.pos)),a=Math.max(...s.map(c=>c.$to.pos)),u=Df(n);return Rf(r,{from:o,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:u})}}})]}}),eb=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),tb=(t=!1)=>({commands:e})=>e.setContent("",t),nb=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:i}=r;return n&&i.forEach(({$from:s,$to:o})=>{t.doc.nodesBetween(s.pos,o.pos,(a,u)=>{if(a.type.isText)return;const{doc:l,mapping:c}=e,d=l.resolve(c.map(u)),f=l.resolve(c.map(u+a.nodeSize)),p=d.blockRange(f);if(!p)return;const h=_r(p);if(a.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(p.start,m)}(h||h===0)&&e.lift(p,h)})}),!0},rb=t=>e=>t(e),ib=()=>({state:t,dispatch:e})=>Nf(t,e),sb=(t,e)=>({editor:n,tr:r})=>{const{state:i}=n,s=i.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const o=r.mapping.map(e);return r.insert(o,s.content),r.setSelection(new j(r.doc.resolve(o-1))),!0},ob=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const i=t.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r.type){if(e){const a=i.before(s),u=i.after(s);t.delete(a,u).scrollIntoView()}return!0}return!1},ab=t=>({tr:e,state:n,dispatch:r})=>{const i=Ie(t,n.schema),s=e.selection.$anchor;for(let o=s.depth;o>0;o-=1)if(s.node(o).type===i){if(r){const u=s.before(o),l=s.after(o);e.delete(u,l).scrollIntoView()}return!0}return!1},ub=t=>({tr:e,dispatch:n})=>{const{from:r,to:i}=t;return n&&e.delete(r,i),!0},lb=()=>({state:t,dispatch:e})=>Ga(t,e),cb=()=>({commands:t})=>t.keyboardShortcut("Enter"),db=()=>({state:t,dispatch:e})=>Ng(t,e);function es(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(i=>n.strict?e[i]===t[i]:Xa(e[i])?e[i].test(t[i]):e[i]===t[i]):!0}function da(t,e,n={}){return t.find(r=>r.type===e&&es(r.attrs,n))}function fb(t,e,n={}){return!!da(t,e,n)}function Qa(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(l=>l.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(l=>l.type===e))return;const i=da([...r.node.marks],e,n);if(!i)return;let s=r.index,o=t.start()+r.offset,a=s+1,u=o+r.node.nodeSize;for(da([...r.node.marks],e,n);s>0&&i.isInSet(t.parent.child(s-1).marks);)s-=1,o-=t.parent.child(s).nodeSize;for(;a({tr:n,state:r,dispatch:i})=>{const s=vn(t,r.schema),{doc:o,selection:a}=n,{$from:u,from:l,to:c}=a;if(i){const d=Qa(u,s,e);if(d&&d.from<=l&&d.to>=c){const f=j.create(o,d.from,d.to);n.setSelection(f)}}return!0},hb=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r({editor:n,view:r,tr:i,dispatch:s})=>{e={scrollIntoView:!0,...e};const o=()=>{tu()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(s&&t===null&&!eu(n.state.selection))return o(),!0;const a=If(i.doc,t)||n.state.selection,u=n.state.selection.eq(a);return s&&(u||i.setSelection(a),u&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},gb=(t,e)=>n=>t.every((r,i)=>e(r,{...n,index:i})),bb=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),Lf=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&Lf(r)}return t};function yi(t){const e=`${t}`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Lf(n)}function ts(t,e,n){n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,i=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return C.fromArray(t.map(a=>e.nodeFromJSON(a)));const o=e.nodeFromJSON(t);return n.errorOnInvalidContent&&o.check(),o}catch(s){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",s),ts("",e,n)}if(i){if(n.errorOnInvalidContent){let o=!1,a="";const u=new bd({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:l=>(o=!0,a=typeof l=="string"?l:l.outerHTML,null)}]}})});if(n.slice?fn.fromSchema(u).parseSlice(yi(t),n.parseOptions):fn.fromSchema(u).parse(yi(t),n.parseOptions),n.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const s=fn.fromSchema(e);return n.slice?s.parseSlice(yi(t),n.parseOptions).content:s.parse(yi(t),n.parseOptions)}return ts("",e,n)}function yb(t,e,n){const r=t.steps.length-1;if(r{o===0&&(o=c)}),t.setSelection(te.near(t.doc.resolve(o),n))}const Eb=t=>!("type"in t),xb=(t,e,n)=>({tr:r,dispatch:i,editor:s})=>{var o;if(i){n={parseOptions:s.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;try{a=ts(e,s.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(o=n.errorOnInvalidContent)!==null&&o!==void 0?o:s.options.enableContentCheck})}catch(h){return s.emit("contentError",{editor:s,error:h,disableCollaboration:()=>{s.storage.collaboration&&(s.storage.collaboration.isDisabled=!0)}}),!1}let{from:u,to:l}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},c=!0,d=!0;if((Eb(a)?a:[a]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,d=d?h.isBlock:!1}),u===l&&d){const{parent:h}=r.doc.resolve(u);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(u-=1,l+=1)}let p;c?(Array.isArray(e)?p=e.map(h=>h.text||"").join(""):typeof e=="object"&&e&&e.text?p=e.text:p=e,r.insertText(p,u,l)):(p=a,r.replaceWith(u,l,p)),n.updateSelection&&yb(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:p}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:p})}return!0},vb=()=>({state:t,dispatch:e})=>wg(t,e),wb=()=>({state:t,dispatch:e})=>Sg(t,e),Sb=()=>({state:t,dispatch:e})=>yf(t,e),_b=()=>({state:t,dispatch:e})=>wf(t,e),Nb=()=>({state:t,dispatch:e,tr:n})=>{try{const r=zs(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},Tb=()=>({state:t,dispatch:e,tr:n})=>{try{const r=zs(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},kb=()=>({state:t,dispatch:e})=>xg(t,e),Ob=()=>({state:t,dispatch:e})=>vg(t,e);function Pf(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Ab(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,i,s,o;for(let a=0;a({editor:e,view:n,tr:r,dispatch:i})=>{const s=Ab(t).split(/-(?!$)/),o=s.find(l=>!["Alt","Ctrl","Meta","Shift"].includes(l)),a=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),u=e.captureTransaction(()=>{n.someProp("handleKeyDown",l=>l(n,a))});return u?.steps.forEach(l=>{const c=l.map(r.mapping);c&&i&&r.maybeStep(c)}),!0};function Jr(t,e,n={}){const{from:r,to:i,empty:s}=t.selection,o=e?Ie(e,t.schema):null,a=[];t.doc.nodesBetween(r,i,(d,f)=>{if(d.isText)return;const p=Math.max(r,f),h=Math.min(i,f+d.nodeSize);a.push({node:d,from:p,to:h})});const u=i-r,l=a.filter(d=>o?o.name===d.node.type.name:!0).filter(d=>es(d.node.attrs,n,{strict:!1}));return s?!!l.length:l.reduce((d,f)=>d+f.to-f.from,0)>=u}const Mb=(t,e={})=>({state:n,dispatch:r})=>{const i=Ie(t,n.schema);return Jr(n,i,e)?_g(n,r):!1},Rb=()=>({state:t,dispatch:e})=>Tf(t,e),Db=t=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return Lg(r)(e,n)},Ib=()=>({state:t,dispatch:e})=>_f(t,e);function Xs(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Dl(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,i)=>(n.includes(i)||(r[i]=t[i]),r),{})}const Lb=(t,e)=>({tr:n,state:r,dispatch:i})=>{let s=null,o=null;const a=Xs(typeof t=="string"?t:t.name,r.schema);return a?(a==="node"&&(s=Ie(t,r.schema)),a==="mark"&&(o=vn(t,r.schema)),i&&n.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(l,c)=>{s&&s===l.type&&n.setNodeMarkup(c,void 0,Dl(l.attrs,e)),o&&l.marks.length&&l.marks.forEach(d=>{o===d.type&&n.addMark(c,c+l.nodeSize,o.create(Dl(d.attrs,e)))})})}),!0):!1},Pb=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Bb=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),$b=()=>({state:t,dispatch:e})=>xf(t,e),Fb=()=>({state:t,dispatch:e})=>Sf(t,e),Ub=()=>({state:t,dispatch:e})=>Og(t,e),zb=()=>({state:t,dispatch:e})=>Mg(t,e),Hb=()=>({state:t,dispatch:e})=>Cg(t,e);function fa(t,e,n={},r={}){return ts(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const qb=(t,e=!1,n={},r={})=>({editor:i,tr:s,dispatch:o,commands:a})=>{var u,l;const{doc:c}=s;if(n.preserveWhitespace!=="full"){const d=fa(t,i.schema,n,{errorOnInvalidContent:(u=r.errorOnInvalidContent)!==null&&u!==void 0?u:i.options.enableContentCheck});return o&&s.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!e),!0}return o&&s.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:c.content.size},t,{parseOptions:n,errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck})};function Bf(t,e){const n=vn(e,t.schema),{from:r,to:i,empty:s}=t.selection,o=[];s?(t.storedMarks&&o.push(...t.storedMarks),o.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,i,u=>{o.push(...u.marks)});const a=o.find(u=>u.type.name===n.name);return a?{...a.attrs}:{}}function Vb(t,e){const n=new Dd(t);return e.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function Kb(t){for(let e=0;e{e(r)&&n.push({node:r,pos:i})}),n}function Wb(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(i,s)=>{n(i)&&r.push({node:i,pos:s})}),r}function Gb(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function nu(t){return e=>Gb(e.$from,t)}function jb(t,e){const n=yn.fromSchema(e).serializeFragment(t),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function Yb(t,e){const n=An.resolve(t);return Mf(n,e)}function Jb(t,e){const n={from:0,to:t.content.size};return Rf(t,n,e)}function Zb(t,e){const n=Ie(e,t.schema),{from:r,to:i}=t.selection,s=[];t.doc.nodesBetween(r,i,a=>{s.push(a)});const o=s.reverse().find(a=>a.type.name===n.name);return o?{...o.attrs}:{}}function $f(t,e){const n=Xs(typeof e=="string"?e:e.name,t.schema);return n==="node"?Zb(t,e):n==="mark"?Bf(t,e):{}}function Xb(t,e=JSON.stringify){const n={};return t.filter(r=>{const i=e(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function Qb(t){const e=Xb(t);return e.length===1?e:e.filter((n,r)=>!e.filter((s,o)=>o!==r).some(s=>n.oldRange.from>=s.oldRange.from&&n.oldRange.to<=s.oldRange.to&&n.newRange.from>=s.newRange.from&&n.newRange.to<=s.newRange.to))}function e1(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((i,s)=>{const o=[];if(i.ranges.length)i.forEach((a,u)=>{o.push({from:a,to:u})});else{const{from:a,to:u}=n[s];if(a===void 0||u===void 0)return;o.push({from:a,to:u})}o.forEach(({from:a,to:u})=>{const l=e.slice(s).map(a,-1),c=e.slice(s).map(u),d=e.invert().map(l,-1),f=e.invert().map(c);r.push({oldRange:{from:d,to:f},newRange:{from:l,to:c}})})}),Qb(r)}function ru(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(i=>{const s=n.resolve(t),o=Qa(s,i.type);o&&r.push({mark:i,...o})}):n.nodesBetween(t,e,(i,s)=>{!i||i?.nodeSize===void 0||r.push(...i.marks.map(o=>({from:s,to:s+i.nodeSize,mark:o})))}),r}function Li(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=t.find(s=>s.type===e&&s.name===r);return i?i.attribute.keepOnSplit:!1}))}function ha(t,e,n={}){const{empty:r,ranges:i}=t.selection,s=e?vn(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>es(d.attrs,n,{strict:!1}));let o=0;const a=[];if(i.forEach(({$from:d,$to:f})=>{const p=d.pos,h=f.pos;t.doc.nodesBetween(p,h,(m,g)=>{if(!m.isText&&!m.marks.length)return;const y=Math.max(p,g),v=Math.min(h,g+m.nodeSize),_=v-y;o+=_,a.push(...m.marks.map(b=>({mark:b,from:y,to:v})))})}),o===0)return!1;const u=a.filter(d=>s?s.name===d.mark.type.name:!0).filter(d=>es(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),l=a.filter(d=>s?d.mark.type!==s&&d.mark.type.excludes(s):!0).reduce((d,f)=>d+f.to-f.from,0);return(u>0?u+l:u)>=o}function t1(t,e,n={}){if(!e)return Jr(t,null,n)||ha(t,null,n);const r=Xs(e,t.schema);return r==="node"?Jr(t,e,n):r==="mark"?ha(t,e,n):!1}function Il(t,e){const{nodeExtensions:n}=Ys(e),r=n.find(o=>o.name===t);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},s=ie(U(r,"group",i));return typeof s!="string"?!1:s.split(" ").includes("list")}function Qs(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!==null&&r!==void 0?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let i=!0;return t.content.forEach(s=>{i!==!1&&(Qs(s,{ignoreWhitespace:n,checkChildren:e})||(i=!1))}),i}return!1}function Ff(t){return t instanceof H}function n1(t,e,n){const i=t.state.doc.content.size,s=Vt(e,0,i),o=Vt(n,0,i),a=t.coordsAtPos(s),u=t.coordsAtPos(o,-1),l=Math.min(a.top,u.top),c=Math.max(a.bottom,u.bottom),d=Math.min(a.left,u.left),f=Math.max(a.right,u.right),p=f-d,h=c-l,y={top:l,bottom:c,left:d,right:f,width:p,height:h,x:d,y:l};return{...y,toJSON:()=>y}}function r1(t,e,n){var r;const{selection:i}=e;let s=null;if(eu(i)&&(s=i.$cursor),s){const a=(r=t.storedMarks)!==null&&r!==void 0?r:s.marks();return!!n.isInSet(a)||!a.some(u=>u.type.excludes(n))}const{ranges:o}=i;return o.some(({$from:a,$to:u})=>{let l=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,u.pos,(c,d,f)=>{if(l)return!1;if(c.isInline){const p=!f||f.type.allowsMarkType(n),h=!!n.isInSet(c.marks)||!c.marks.some(m=>m.type.excludes(n));l=p&&h}return!l}),l})}const i1=(t,e={})=>({tr:n,state:r,dispatch:i})=>{const{selection:s}=n,{empty:o,ranges:a}=s,u=vn(t,r.schema);if(i)if(o){const l=Bf(r,u);n.addStoredMark(u.create({...l,...e}))}else a.forEach(l=>{const c=l.$from.pos,d=l.$to.pos;r.doc.nodesBetween(c,d,(f,p)=>{const h=Math.max(p,c),m=Math.min(p+f.nodeSize,d);f.marks.find(y=>y.type===u)?f.marks.forEach(y=>{u===y.type&&n.addMark(h,m,u.create({...y.attrs,...e}))}):n.addMark(h,m,u.create(e))})});return r1(r,n,u)},s1=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),o1=(t,e={})=>({state:n,dispatch:r,chain:i})=>{const s=Ie(t,n.schema);return s.isTextblock?i().command(({commands:o})=>Al(s,e)(n)?!0:o.clearNodes()).command(({state:o})=>Al(s,e)(o,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},a1=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,i=Vt(t,0,r.content.size),s=H.create(r,i);e.setSelection(s)}return!0},u1=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:i,to:s}=typeof t=="number"?{from:t,to:t}:t,o=j.atStart(r).from,a=j.atEnd(r).to,u=Vt(i,o,a),l=Vt(s,o,a),c=j.create(r,u,l);e.setSelection(c)}return!0},l1=t=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return $g(r)(e,n)};function Ll(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(i=>e?.includes(i.type.name));t.tr.ensureMarks(r)}}const c1=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:i})=>{const{selection:s,doc:o}=e,{$from:a,$to:u}=s,l=i.extensionManager.attributes,c=Li(l,a.node().type.name,a.node().attrs);if(s instanceof H&&s.node.isBlock)return!a.parentOffset||!Kt(o,a.pos)?!1:(r&&(t&&Ll(n,i.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=u.parentOffset===u.parent.content.size,f=a.depth===0?void 0:Kb(a.node(-1).contentMatchAt(a.indexAfter(-1)));let p=d&&f?[{type:f,attrs:c}]:void 0,h=Kt(e.doc,e.mapping.map(a.pos),1,p);if(!p&&!h&&Kt(e.doc,e.mapping.map(a.pos),1,f?[{type:f}]:void 0)&&(h=!0,p=f?[{type:f,attrs:c}]:void 0),r){if(h&&(s instanceof j&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,p),f&&!d&&!a.parentOffset&&a.parent.type!==f)){const m=e.mapping.map(a.before()),g=e.doc.resolve(m);a.node(-1).canReplaceWith(g.index(),g.index()+1,f)&&e.setNodeMarkup(e.mapping.map(a.before()),f)}t&&Ll(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return h},d1=(t,e={})=>({tr:n,state:r,dispatch:i,editor:s})=>{var o;const a=Ie(t,r.schema),{$from:u,$to:l}=r.selection,c=r.selection.node;if(c&&c.isBlock||u.depth<2||!u.sameParent(l))return!1;const d=u.node(-1);if(d.type!==a)return!1;const f=s.extensionManager.attributes;if(u.parent.content.size===0&&u.node(-1).childCount===u.indexAfter(-1)){if(u.depth===2||u.node(-3).type!==a||u.index(-2)!==u.node(-2).childCount-1)return!1;if(i){let y=C.empty;const v=u.index(-1)?1:u.index(-2)?2:3;for(let P=u.depth-v;P>=u.depth-3;P-=1)y=C.from(u.node(P).copy(y));const _=u.indexAfter(-1){if(R>-1)return!1;P.isTextblock&&P.content.size===0&&(R=k+1)}),R>-1&&n.setSelection(j.near(n.doc.resolve(R))),n.scrollIntoView()}return!0}const p=l.pos===u.end()?d.contentMatchAt(0).defaultType:null,h={...Li(f,d.type.name,d.attrs),...e},m={...Li(f,u.node().type.name,u.node().attrs),...e};n.delete(u.pos,l.pos);const g=p?[{type:a,attrs:h},{type:p,attrs:m}]:[{type:a,attrs:h}];if(!Kt(n.doc,u.pos,2))return!1;if(i){const{selection:y,storedMarks:v}=r,{splittableMarks:_}=s.extensionManager,b=v||y.$to.parentOffset&&y.$from.marks();if(n.split(u.pos,2,g).scrollIntoView(),!b||!i)return!0;const O=b.filter(x=>_.includes(x.type.name));n.ensureMarks(O)}return!0},To=(t,e)=>{const n=nu(o=>o.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===i?.type&&En(t.doc,n.pos)&&t.join(n.pos),!0},ko=(t,e)=>{const n=nu(o=>o.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===i?.type&&En(t.doc,r)&&t.join(r),!0},f1=(t,e,n,r={})=>({editor:i,tr:s,state:o,dispatch:a,chain:u,commands:l,can:c})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,p=Ie(t,o.schema),h=Ie(e,o.schema),{selection:m,storedMarks:g}=o,{$from:y,$to:v}=m,_=y.blockRange(v),b=g||m.$to.parentOffset&&m.$from.marks();if(!_)return!1;const O=nu(x=>Il(x.type.name,d))(m);if(_.depth>=1&&O&&_.depth-O.depth<=1){if(O.node.type===p)return l.liftListItem(h);if(Il(O.node.type.name,d)&&p.validContent(O.node.content)&&a)return u().command(()=>(s.setNodeMarkup(O.pos,p),!0)).command(()=>To(s,p)).command(()=>ko(s,p)).run()}return!n||!b||!a?u().command(()=>c().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>To(s,p)).command(()=>ko(s,p)).run():u().command(()=>{const x=c().wrapInList(p,r),R=b.filter(P=>f.includes(P.type.name));return s.ensureMarks(R),x?!0:l.clearNodes()}).wrapInList(p,r).command(()=>To(s,p)).command(()=>ko(s,p)).run()},p1=(t,e={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:s=!1}=n,o=vn(t,r.schema);return ha(r,o,e)?i.unsetMark(o,{extendEmptyMarkRange:s}):i.setMark(o,e)},h1=(t,e,n={})=>({state:r,commands:i})=>{const s=Ie(t,r.schema),o=Ie(e,r.schema),a=Jr(r,s,n);let u;return r.selection.$anchor.sameParent(r.selection.$head)&&(u=r.selection.$anchor.parent.attrs),a?i.setNode(o,u):i.setNode(s,{...u,...n})},m1=(t,e={})=>({state:n,commands:r})=>{const i=Ie(t,n.schema);return Jr(n,i,e)?r.lift(i):r.wrapIn(i,e)},g1=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r=0;u-=1)o.step(a.steps[u].invert(a.docs[u]));if(s.text){const u=o.doc.resolve(s.from).marks();o.replaceWith(s.from,s.to,t.schema.text(s.text,u))}else o.delete(s.from,s.to)}return!0}}return!1},b1=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:i}=n;return r||e&&i.forEach(s=>{t.removeMark(s.$from.pos,s.$to.pos)}),!0},y1=(t,e={})=>({tr:n,state:r,dispatch:i})=>{var s;const{extendEmptyMarkRange:o=!1}=e,{selection:a}=n,u=vn(t,r.schema),{$from:l,empty:c,ranges:d}=a;if(!i)return!0;if(c&&o){let{from:f,to:p}=a;const h=(s=l.marks().find(g=>g.type===u))===null||s===void 0?void 0:s.attrs,m=Qa(l,u,h);m&&(f=m.from,p=m.to),n.removeMark(f,p,u)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,u)});return n.removeStoredMark(u),!0},E1=(t,e={})=>({tr:n,state:r,dispatch:i})=>{let s=null,o=null;const a=Xs(typeof t=="string"?t:t.name,r.schema);return a?(a==="node"&&(s=Ie(t,r.schema)),a==="mark"&&(o=vn(t,r.schema)),i&&n.selection.ranges.forEach(u=>{const l=u.$from.pos,c=u.$to.pos;r.doc.nodesBetween(l,c,(d,f)=>{s&&s===d.type&&n.setNodeMarkup(f,void 0,{...d.attrs,...e}),o&&d.marks.length&&d.marks.forEach(p=>{if(o===p.type){const h=Math.max(f,l),m=Math.min(f+d.nodeSize,c);n.addMark(h,m,o.create({...p.attrs,...e}))}})})}),!0):!1},x1=(t,e={})=>({state:n,dispatch:r})=>{const i=Ie(t,n.schema);return Rg(i,e)(n,r)},v1=(t,e={})=>({state:n,dispatch:r})=>{const i=Ie(t,n.schema);return Dg(i,e)(n,r)};var w1=Object.freeze({__proto__:null,blur:eb,clearContent:tb,clearNodes:nb,command:rb,createParagraphNear:ib,cut:sb,deleteCurrentNode:ob,deleteNode:ab,deleteRange:ub,deleteSelection:lb,enter:cb,exitCode:db,extendMarkRange:pb,first:hb,focus:mb,forEach:gb,insertContent:bb,insertContentAt:xb,joinBackward:Sb,joinDown:wb,joinForward:_b,joinItemBackward:Nb,joinItemForward:Tb,joinTextblockBackward:kb,joinTextblockForward:Ob,joinUp:vb,keyboardShortcut:Cb,lift:Mb,liftEmptyBlock:Rb,liftListItem:Db,newlineInCode:Ib,resetAttributes:Lb,scrollIntoView:Pb,selectAll:Bb,selectNodeBackward:$b,selectNodeForward:Fb,selectParentNode:Ub,selectTextblockEnd:zb,selectTextblockStart:Hb,setContent:qb,setMark:i1,setMeta:s1,setNode:o1,setNodeSelection:a1,setTextSelection:u1,sinkListItem:l1,splitBlock:c1,splitListItem:d1,toggleList:f1,toggleMark:p1,toggleNode:h1,toggleWrap:m1,undoInputRule:g1,unsetAllMarks:b1,unsetMark:y1,updateAttributes:E1,wrapIn:x1,wrapInList:v1});const S1=ke.create({name:"commands",addCommands(){return{...w1}}}),_1=ke.create({name:"drop",addProseMirrorPlugins(){return[new Ee({key:new Le("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),N1=ke.create({name:"editable",addProseMirrorPlugins(){return[new Ee({key:new Le("editable"),props:{editable:()=>this.editor.options.editable}})]}}),T1=ke.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ee({key:new Le("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),k1=ke.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:a})=>{const{selection:u,doc:l}=a,{empty:c,$anchor:d}=u,{pos:f,parent:p}=d,h=d.parent.isTextblock&&f>0?a.doc.resolve(f-1):d,m=h.parent.type.spec.isolating,g=d.pos-d.parentOffset,y=m&&h.parent.childCount===1?g===d.pos:te.atStart(l).from===f;return!c||!p.type.isTextblock||p.textContent.length||!y||y&&d.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},s={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return tu()||Pf()?s:i},addProseMirrorPlugins(){return[new Ee({key:new Le("clearDocument"),appendTransaction:(t,e,n)=>{const r=t.some(m=>m.docChanged)&&!e.doc.eq(n.doc),i=t.some(m=>m.getMeta("preventClearDocument"));if(!r||i)return;const{empty:s,from:o,to:a}=e.selection,u=te.atStart(e.doc).from,l=te.atEnd(e.doc).to;if(s||!(o===u&&a===l)||!Qs(n.doc))return;const f=n.tr,p=Gs({state:n,transaction:f}),{commands:h}=new js({editor:this.editor,state:p});if(h.clearNodes(),!!f.steps.length)return f}})]}}),O1=ke.create({name:"paste",addProseMirrorPlugins(){return[new Ee({key:new Le("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),A1=ke.create({name:"tabindex",addProseMirrorPlugins(){return[new Ee({key:new Le("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Tn{get name(){return this.node.type.name}constructor(e,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new Tn(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Tn(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Tn(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,s=n.isAtom&&!n.isText,o=this.pos+r+(s?0:1),a=this.resolvedPos.doc.resolve(o);if(!i&&a.depth<=this.depth)return;const u=new Tn(a,this.editor,i,i?n:null);i&&(u.actualDepth=this.depth+1),e.push(new Tn(a,this.editor,i,i?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===e)if(Object.keys(n).length>0){const s=i.node.attrs,o=Object.keys(n);for(let a=0;a{r&&i.length>0||(o.node.type.name===e&&s.every(u=>n[u]===o.node.attrs[u])&&i.push(o),!(r&&i.length>0)&&(i=i.concat(o.querySelectorAll(e,n,r))))}),i}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const C1=`.ProseMirror { +`,textSerializers:o={}}=n||{};let a="";return t.nodesBetween(r,i,(u,l,c,d)=>{var f;u.isBlock&&l>r&&(a+=s);const p=o?.[u.type.name];if(p)return c&&(a+=p({node:u,pos:l,parent:c,index:d,range:e})),!1;u.isText&&(a+=(f=u?.text)===null||f===void 0?void 0:f.slice(Math.max(r,l)-l,i-l))}),a}function Df(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const Xg=ke.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ee({key:new Le("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:i}=e,{ranges:s}=i,o=Math.min(...s.map(c=>c.$from.pos)),a=Math.max(...s.map(c=>c.$to.pos)),u=Df(n);return Rf(r,{from:o,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:u})}}})]}}),Qg=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),eb=(t=!1)=>({commands:e})=>e.setContent("",t),tb=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:i}=r;return n&&i.forEach(({$from:s,$to:o})=>{t.doc.nodesBetween(s.pos,o.pos,(a,u)=>{if(a.type.isText)return;const{doc:l,mapping:c}=e,d=l.resolve(c.map(u)),f=l.resolve(c.map(u+a.nodeSize)),p=d.blockRange(f);if(!p)return;const h=_r(p);if(a.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(p.start,m)}(h||h===0)&&e.lift(p,h)})}),!0},nb=t=>e=>t(e),rb=()=>({state:t,dispatch:e})=>Nf(t,e),ib=(t,e)=>({editor:n,tr:r})=>{const{state:i}=n,s=i.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const o=r.mapping.map(e);return r.insert(o,s.content),r.setSelection(new j(r.doc.resolve(o-1))),!0},sb=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const i=t.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r.type){if(e){const a=i.before(s),u=i.after(s);t.delete(a,u).scrollIntoView()}return!0}return!1},ob=t=>({tr:e,state:n,dispatch:r})=>{const i=Ie(t,n.schema),s=e.selection.$anchor;for(let o=s.depth;o>0;o-=1)if(s.node(o).type===i){if(r){const u=s.before(o),l=s.after(o);e.delete(u,l).scrollIntoView()}return!0}return!1},ab=t=>({tr:e,dispatch:n})=>{const{from:r,to:i}=t;return n&&e.delete(r,i),!0},ub=()=>({state:t,dispatch:e})=>Ga(t,e),lb=()=>({commands:t})=>t.keyboardShortcut("Enter"),cb=()=>({state:t,dispatch:e})=>_g(t,e);function es(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(i=>n.strict?e[i]===t[i]:Xa(e[i])?e[i].test(t[i]):e[i]===t[i]):!0}function da(t,e,n={}){return t.find(r=>r.type===e&&es(r.attrs,n))}function db(t,e,n={}){return!!da(t,e,n)}function Qa(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(l=>l.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(l=>l.type===e))return;const i=da([...r.node.marks],e,n);if(!i)return;let s=r.index,o=t.start()+r.offset,a=s+1,u=o+r.node.nodeSize;for(da([...r.node.marks],e,n);s>0&&i.isInSet(t.parent.child(s-1).marks);)s-=1,o-=t.parent.child(s).nodeSize;for(;a({tr:n,state:r,dispatch:i})=>{const s=vn(t,r.schema),{doc:o,selection:a}=n,{$from:u,from:l,to:c}=a;if(i){const d=Qa(u,s,e);if(d&&d.from<=l&&d.to>=c){const f=j.create(o,d.from,d.to);n.setSelection(f)}}return!0},pb=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r({editor:n,view:r,tr:i,dispatch:s})=>{e={scrollIntoView:!0,...e};const o=()=>{tu()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(s&&t===null&&!eu(n.state.selection))return o(),!0;const a=If(i.doc,t)||n.state.selection,u=n.state.selection.eq(a);return s&&(u||i.setSelection(a),u&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},mb=(t,e)=>n=>t.every((r,i)=>e(r,{...n,index:i})),gb=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),Lf=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&Lf(r)}return t};function yi(t){const e=`${t}`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Lf(n)}function ts(t,e,n){n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,i=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return C.fromArray(t.map(a=>e.nodeFromJSON(a)));const o=e.nodeFromJSON(t);return n.errorOnInvalidContent&&o.check(),o}catch(s){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",s),ts("",e,n)}if(i){if(n.errorOnInvalidContent){let o=!1,a="";const u=new bd({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:l=>(o=!0,a=typeof l=="string"?l:l.outerHTML,null)}]}})});if(n.slice?fn.fromSchema(u).parseSlice(yi(t),n.parseOptions):fn.fromSchema(u).parse(yi(t),n.parseOptions),n.errorOnInvalidContent&&o)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const s=fn.fromSchema(e);return n.slice?s.parseSlice(yi(t),n.parseOptions).content:s.parse(yi(t),n.parseOptions)}return ts("",e,n)}function bb(t,e,n){const r=t.steps.length-1;if(r{o===0&&(o=c)}),t.setSelection(te.near(t.doc.resolve(o),n))}const yb=t=>!("type"in t),Eb=(t,e,n)=>({tr:r,dispatch:i,editor:s})=>{var o;if(i){n={parseOptions:s.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;try{a=ts(e,s.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(o=n.errorOnInvalidContent)!==null&&o!==void 0?o:s.options.enableContentCheck})}catch(h){return s.emit("contentError",{editor:s,error:h,disableCollaboration:()=>{s.storage.collaboration&&(s.storage.collaboration.isDisabled=!0)}}),!1}let{from:u,to:l}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},c=!0,d=!0;if((yb(a)?a:[a]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,d=d?h.isBlock:!1}),u===l&&d){const{parent:h}=r.doc.resolve(u);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(u-=1,l+=1)}let p;c?(Array.isArray(e)?p=e.map(h=>h.text||"").join(""):typeof e=="object"&&e&&e.text?p=e.text:p=e,r.insertText(p,u,l)):(p=a,r.replaceWith(u,l,p)),n.updateSelection&&bb(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:p}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:p})}return!0},xb=()=>({state:t,dispatch:e})=>vg(t,e),vb=()=>({state:t,dispatch:e})=>wg(t,e),wb=()=>({state:t,dispatch:e})=>yf(t,e),Sb=()=>({state:t,dispatch:e})=>wf(t,e),_b=()=>({state:t,dispatch:e,tr:n})=>{try{const r=zs(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},Nb=()=>({state:t,dispatch:e,tr:n})=>{try{const r=zs(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},Tb=()=>({state:t,dispatch:e})=>Eg(t,e),kb=()=>({state:t,dispatch:e})=>xg(t,e);function Pf(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Ob(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,i,s,o;for(let a=0;a({editor:e,view:n,tr:r,dispatch:i})=>{const s=Ob(t).split(/-(?!$)/),o=s.find(l=>!["Alt","Ctrl","Meta","Shift"].includes(l)),a=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),u=e.captureTransaction(()=>{n.someProp("handleKeyDown",l=>l(n,a))});return u?.steps.forEach(l=>{const c=l.map(r.mapping);c&&i&&r.maybeStep(c)}),!0};function Jr(t,e,n={}){const{from:r,to:i,empty:s}=t.selection,o=e?Ie(e,t.schema):null,a=[];t.doc.nodesBetween(r,i,(d,f)=>{if(d.isText)return;const p=Math.max(r,f),h=Math.min(i,f+d.nodeSize);a.push({node:d,from:p,to:h})});const u=i-r,l=a.filter(d=>o?o.name===d.node.type.name:!0).filter(d=>es(d.node.attrs,n,{strict:!1}));return s?!!l.length:l.reduce((d,f)=>d+f.to-f.from,0)>=u}const Cb=(t,e={})=>({state:n,dispatch:r})=>{const i=Ie(t,n.schema);return Jr(n,i,e)?Sg(n,r):!1},Mb=()=>({state:t,dispatch:e})=>Tf(t,e),Rb=t=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return Ig(r)(e,n)},Db=()=>({state:t,dispatch:e})=>_f(t,e);function Xs(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Dl(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,i)=>(n.includes(i)||(r[i]=t[i]),r),{})}const Ib=(t,e)=>({tr:n,state:r,dispatch:i})=>{let s=null,o=null;const a=Xs(typeof t=="string"?t:t.name,r.schema);return a?(a==="node"&&(s=Ie(t,r.schema)),a==="mark"&&(o=vn(t,r.schema)),i&&n.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(l,c)=>{s&&s===l.type&&n.setNodeMarkup(c,void 0,Dl(l.attrs,e)),o&&l.marks.length&&l.marks.forEach(d=>{o===d.type&&n.addMark(c,c+l.nodeSize,o.create(Dl(d.attrs,e)))})})}),!0):!1},Lb=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Pb=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),Bb=()=>({state:t,dispatch:e})=>xf(t,e),$b=()=>({state:t,dispatch:e})=>Sf(t,e),Fb=()=>({state:t,dispatch:e})=>kg(t,e),Ub=()=>({state:t,dispatch:e})=>Cg(t,e),zb=()=>({state:t,dispatch:e})=>Ag(t,e);function fa(t,e,n={},r={}){return ts(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const Hb=(t,e=!1,n={},r={})=>({editor:i,tr:s,dispatch:o,commands:a})=>{var u,l;const{doc:c}=s;if(n.preserveWhitespace!=="full"){const d=fa(t,i.schema,n,{errorOnInvalidContent:(u=r.errorOnInvalidContent)!==null&&u!==void 0?u:i.options.enableContentCheck});return o&&s.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!e),!0}return o&&s.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:c.content.size},t,{parseOptions:n,errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck})};function Bf(t,e){const n=vn(e,t.schema),{from:r,to:i,empty:s}=t.selection,o=[];s?(t.storedMarks&&o.push(...t.storedMarks),o.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,i,u=>{o.push(...u.marks)});const a=o.find(u=>u.type.name===n.name);return a?{...a.attrs}:{}}function qb(t,e){const n=new Dd(t);return e.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function Vb(t){for(let e=0;e{e(r)&&n.push({node:r,pos:i})}),n}function Kb(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(i,s)=>{n(i)&&r.push({node:i,pos:s})}),r}function Wb(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function nu(t){return e=>Wb(e.$from,t)}function Gb(t,e){const n=yn.fromSchema(e).serializeFragment(t),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function jb(t,e){const n=An.resolve(t);return Mf(n,e)}function Yb(t,e){const n={from:0,to:t.content.size};return Rf(t,n,e)}function Jb(t,e){const n=Ie(e,t.schema),{from:r,to:i}=t.selection,s=[];t.doc.nodesBetween(r,i,a=>{s.push(a)});const o=s.reverse().find(a=>a.type.name===n.name);return o?{...o.attrs}:{}}function $f(t,e){const n=Xs(typeof e=="string"?e:e.name,t.schema);return n==="node"?Jb(t,e):n==="mark"?Bf(t,e):{}}function Zb(t,e=JSON.stringify){const n={};return t.filter(r=>{const i=e(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function Xb(t){const e=Zb(t);return e.length===1?e:e.filter((n,r)=>!e.filter((s,o)=>o!==r).some(s=>n.oldRange.from>=s.oldRange.from&&n.oldRange.to<=s.oldRange.to&&n.newRange.from>=s.newRange.from&&n.newRange.to<=s.newRange.to))}function Qb(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((i,s)=>{const o=[];if(i.ranges.length)i.forEach((a,u)=>{o.push({from:a,to:u})});else{const{from:a,to:u}=n[s];if(a===void 0||u===void 0)return;o.push({from:a,to:u})}o.forEach(({from:a,to:u})=>{const l=e.slice(s).map(a,-1),c=e.slice(s).map(u),d=e.invert().map(l,-1),f=e.invert().map(c);r.push({oldRange:{from:d,to:f},newRange:{from:l,to:c}})})}),Xb(r)}function ru(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(i=>{const s=n.resolve(t),o=Qa(s,i.type);o&&r.push({mark:i,...o})}):n.nodesBetween(t,e,(i,s)=>{!i||i?.nodeSize===void 0||r.push(...i.marks.map(o=>({from:s,to:s+i.nodeSize,mark:o})))}),r}function Li(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=t.find(s=>s.type===e&&s.name===r);return i?i.attribute.keepOnSplit:!1}))}function ha(t,e,n={}){const{empty:r,ranges:i}=t.selection,s=e?vn(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>es(d.attrs,n,{strict:!1}));let o=0;const a=[];if(i.forEach(({$from:d,$to:f})=>{const p=d.pos,h=f.pos;t.doc.nodesBetween(p,h,(m,g)=>{if(!m.isText&&!m.marks.length)return;const y=Math.max(p,g),v=Math.min(h,g+m.nodeSize),_=v-y;o+=_,a.push(...m.marks.map(b=>({mark:b,from:y,to:v})))})}),o===0)return!1;const u=a.filter(d=>s?s.name===d.mark.type.name:!0).filter(d=>es(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),l=a.filter(d=>s?d.mark.type!==s&&d.mark.type.excludes(s):!0).reduce((d,f)=>d+f.to-f.from,0);return(u>0?u+l:u)>=o}function e1(t,e,n={}){if(!e)return Jr(t,null,n)||ha(t,null,n);const r=Xs(e,t.schema);return r==="node"?Jr(t,e,n):r==="mark"?ha(t,e,n):!1}function Il(t,e){const{nodeExtensions:n}=Ys(e),r=n.find(o=>o.name===t);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},s=ie(U(r,"group",i));return typeof s!="string"?!1:s.split(" ").includes("list")}function Qs(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!==null&&r!==void 0?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let i=!0;return t.content.forEach(s=>{i!==!1&&(Qs(s,{ignoreWhitespace:n,checkChildren:e})||(i=!1))}),i}return!1}function Ff(t){return t instanceof H}function t1(t,e,n){const i=t.state.doc.content.size,s=Vt(e,0,i),o=Vt(n,0,i),a=t.coordsAtPos(s),u=t.coordsAtPos(o,-1),l=Math.min(a.top,u.top),c=Math.max(a.bottom,u.bottom),d=Math.min(a.left,u.left),f=Math.max(a.right,u.right),p=f-d,h=c-l,y={top:l,bottom:c,left:d,right:f,width:p,height:h,x:d,y:l};return{...y,toJSON:()=>y}}function n1(t,e,n){var r;const{selection:i}=e;let s=null;if(eu(i)&&(s=i.$cursor),s){const a=(r=t.storedMarks)!==null&&r!==void 0?r:s.marks();return!!n.isInSet(a)||!a.some(u=>u.type.excludes(n))}const{ranges:o}=i;return o.some(({$from:a,$to:u})=>{let l=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,u.pos,(c,d,f)=>{if(l)return!1;if(c.isInline){const p=!f||f.type.allowsMarkType(n),h=!!n.isInSet(c.marks)||!c.marks.some(m=>m.type.excludes(n));l=p&&h}return!l}),l})}const r1=(t,e={})=>({tr:n,state:r,dispatch:i})=>{const{selection:s}=n,{empty:o,ranges:a}=s,u=vn(t,r.schema);if(i)if(o){const l=Bf(r,u);n.addStoredMark(u.create({...l,...e}))}else a.forEach(l=>{const c=l.$from.pos,d=l.$to.pos;r.doc.nodesBetween(c,d,(f,p)=>{const h=Math.max(p,c),m=Math.min(p+f.nodeSize,d);f.marks.find(y=>y.type===u)?f.marks.forEach(y=>{u===y.type&&n.addMark(h,m,u.create({...y.attrs,...e}))}):n.addMark(h,m,u.create(e))})});return n1(r,n,u)},i1=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),s1=(t,e={})=>({state:n,dispatch:r,chain:i})=>{const s=Ie(t,n.schema);return s.isTextblock?i().command(({commands:o})=>Al(s,e)(n)?!0:o.clearNodes()).command(({state:o})=>Al(s,e)(o,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},o1=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,i=Vt(t,0,r.content.size),s=H.create(r,i);e.setSelection(s)}return!0},a1=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:i,to:s}=typeof t=="number"?{from:t,to:t}:t,o=j.atStart(r).from,a=j.atEnd(r).to,u=Vt(i,o,a),l=Vt(s,o,a),c=j.create(r,u,l);e.setSelection(c)}return!0},u1=t=>({state:e,dispatch:n})=>{const r=Ie(t,e.schema);return Bg(r)(e,n)};function Ll(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(i=>e?.includes(i.type.name));t.tr.ensureMarks(r)}}const l1=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:i})=>{const{selection:s,doc:o}=e,{$from:a,$to:u}=s,l=i.extensionManager.attributes,c=Li(l,a.node().type.name,a.node().attrs);if(s instanceof H&&s.node.isBlock)return!a.parentOffset||!Kt(o,a.pos)?!1:(r&&(t&&Ll(n,i.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=u.parentOffset===u.parent.content.size,f=a.depth===0?void 0:Vb(a.node(-1).contentMatchAt(a.indexAfter(-1)));let p=d&&f?[{type:f,attrs:c}]:void 0,h=Kt(e.doc,e.mapping.map(a.pos),1,p);if(!p&&!h&&Kt(e.doc,e.mapping.map(a.pos),1,f?[{type:f}]:void 0)&&(h=!0,p=f?[{type:f,attrs:c}]:void 0),r){if(h&&(s instanceof j&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,p),f&&!d&&!a.parentOffset&&a.parent.type!==f)){const m=e.mapping.map(a.before()),g=e.doc.resolve(m);a.node(-1).canReplaceWith(g.index(),g.index()+1,f)&&e.setNodeMarkup(e.mapping.map(a.before()),f)}t&&Ll(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return h},c1=(t,e={})=>({tr:n,state:r,dispatch:i,editor:s})=>{var o;const a=Ie(t,r.schema),{$from:u,$to:l}=r.selection,c=r.selection.node;if(c&&c.isBlock||u.depth<2||!u.sameParent(l))return!1;const d=u.node(-1);if(d.type!==a)return!1;const f=s.extensionManager.attributes;if(u.parent.content.size===0&&u.node(-1).childCount===u.indexAfter(-1)){if(u.depth===2||u.node(-3).type!==a||u.index(-2)!==u.node(-2).childCount-1)return!1;if(i){let y=C.empty;const v=u.index(-1)?1:u.index(-2)?2:3;for(let P=u.depth-v;P>=u.depth-3;P-=1)y=C.from(u.node(P).copy(y));const _=u.indexAfter(-1){if(R>-1)return!1;P.isTextblock&&P.content.size===0&&(R=k+1)}),R>-1&&n.setSelection(j.near(n.doc.resolve(R))),n.scrollIntoView()}return!0}const p=l.pos===u.end()?d.contentMatchAt(0).defaultType:null,h={...Li(f,d.type.name,d.attrs),...e},m={...Li(f,u.node().type.name,u.node().attrs),...e};n.delete(u.pos,l.pos);const g=p?[{type:a,attrs:h},{type:p,attrs:m}]:[{type:a,attrs:h}];if(!Kt(n.doc,u.pos,2))return!1;if(i){const{selection:y,storedMarks:v}=r,{splittableMarks:_}=s.extensionManager,b=v||y.$to.parentOffset&&y.$from.marks();if(n.split(u.pos,2,g).scrollIntoView(),!b||!i)return!0;const O=b.filter(x=>_.includes(x.type.name));n.ensureMarks(O)}return!0},To=(t,e)=>{const n=nu(o=>o.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===i?.type&&En(t.doc,n.pos)&&t.join(n.pos),!0},ko=(t,e)=>{const n=nu(o=>o.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===i?.type&&En(t.doc,r)&&t.join(r),!0},d1=(t,e,n,r={})=>({editor:i,tr:s,state:o,dispatch:a,chain:u,commands:l,can:c})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,p=Ie(t,o.schema),h=Ie(e,o.schema),{selection:m,storedMarks:g}=o,{$from:y,$to:v}=m,_=y.blockRange(v),b=g||m.$to.parentOffset&&m.$from.marks();if(!_)return!1;const O=nu(x=>Il(x.type.name,d))(m);if(_.depth>=1&&O&&_.depth-O.depth<=1){if(O.node.type===p)return l.liftListItem(h);if(Il(O.node.type.name,d)&&p.validContent(O.node.content)&&a)return u().command(()=>(s.setNodeMarkup(O.pos,p),!0)).command(()=>To(s,p)).command(()=>ko(s,p)).run()}return!n||!b||!a?u().command(()=>c().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>To(s,p)).command(()=>ko(s,p)).run():u().command(()=>{const x=c().wrapInList(p,r),R=b.filter(P=>f.includes(P.type.name));return s.ensureMarks(R),x?!0:l.clearNodes()}).wrapInList(p,r).command(()=>To(s,p)).command(()=>ko(s,p)).run()},f1=(t,e={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:s=!1}=n,o=vn(t,r.schema);return ha(r,o,e)?i.unsetMark(o,{extendEmptyMarkRange:s}):i.setMark(o,e)},p1=(t,e,n={})=>({state:r,commands:i})=>{const s=Ie(t,r.schema),o=Ie(e,r.schema),a=Jr(r,s,n);let u;return r.selection.$anchor.sameParent(r.selection.$head)&&(u=r.selection.$anchor.parent.attrs),a?i.setNode(o,u):i.setNode(s,{...u,...n})},h1=(t,e={})=>({state:n,commands:r})=>{const i=Ie(t,n.schema);return Jr(n,i,e)?r.lift(i):r.wrapIn(i,e)},m1=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r=0;u-=1)o.step(a.steps[u].invert(a.docs[u]));if(s.text){const u=o.doc.resolve(s.from).marks();o.replaceWith(s.from,s.to,t.schema.text(s.text,u))}else o.delete(s.from,s.to)}return!0}}return!1},g1=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:i}=n;return r||e&&i.forEach(s=>{t.removeMark(s.$from.pos,s.$to.pos)}),!0},b1=(t,e={})=>({tr:n,state:r,dispatch:i})=>{var s;const{extendEmptyMarkRange:o=!1}=e,{selection:a}=n,u=vn(t,r.schema),{$from:l,empty:c,ranges:d}=a;if(!i)return!0;if(c&&o){let{from:f,to:p}=a;const h=(s=l.marks().find(g=>g.type===u))===null||s===void 0?void 0:s.attrs,m=Qa(l,u,h);m&&(f=m.from,p=m.to),n.removeMark(f,p,u)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,u)});return n.removeStoredMark(u),!0},y1=(t,e={})=>({tr:n,state:r,dispatch:i})=>{let s=null,o=null;const a=Xs(typeof t=="string"?t:t.name,r.schema);return a?(a==="node"&&(s=Ie(t,r.schema)),a==="mark"&&(o=vn(t,r.schema)),i&&n.selection.ranges.forEach(u=>{const l=u.$from.pos,c=u.$to.pos;r.doc.nodesBetween(l,c,(d,f)=>{s&&s===d.type&&n.setNodeMarkup(f,void 0,{...d.attrs,...e}),o&&d.marks.length&&d.marks.forEach(p=>{if(o===p.type){const h=Math.max(f,l),m=Math.min(f+d.nodeSize,c);n.addMark(h,m,o.create({...p.attrs,...e}))}})})}),!0):!1},E1=(t,e={})=>({state:n,dispatch:r})=>{const i=Ie(t,n.schema);return Mg(i,e)(n,r)},x1=(t,e={})=>({state:n,dispatch:r})=>{const i=Ie(t,n.schema);return Rg(i,e)(n,r)};var v1=Object.freeze({__proto__:null,blur:Qg,clearContent:eb,clearNodes:tb,command:nb,createParagraphNear:rb,cut:ib,deleteCurrentNode:sb,deleteNode:ob,deleteRange:ab,deleteSelection:ub,enter:lb,exitCode:cb,extendMarkRange:fb,first:pb,focus:hb,forEach:mb,insertContent:gb,insertContentAt:Eb,joinBackward:wb,joinDown:vb,joinForward:Sb,joinItemBackward:_b,joinItemForward:Nb,joinTextblockBackward:Tb,joinTextblockForward:kb,joinUp:xb,keyboardShortcut:Ab,lift:Cb,liftEmptyBlock:Mb,liftListItem:Rb,newlineInCode:Db,resetAttributes:Ib,scrollIntoView:Lb,selectAll:Pb,selectNodeBackward:Bb,selectNodeForward:$b,selectParentNode:Fb,selectTextblockEnd:Ub,selectTextblockStart:zb,setContent:Hb,setMark:r1,setMeta:i1,setNode:s1,setNodeSelection:o1,setTextSelection:a1,sinkListItem:u1,splitBlock:l1,splitListItem:c1,toggleList:d1,toggleMark:f1,toggleNode:p1,toggleWrap:h1,undoInputRule:m1,unsetAllMarks:g1,unsetMark:b1,updateAttributes:y1,wrapIn:E1,wrapInList:x1});const w1=ke.create({name:"commands",addCommands(){return{...v1}}}),S1=ke.create({name:"drop",addProseMirrorPlugins(){return[new Ee({key:new Le("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),_1=ke.create({name:"editable",addProseMirrorPlugins(){return[new Ee({key:new Le("editable"),props:{editable:()=>this.editor.options.editable}})]}}),N1=ke.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ee({key:new Le("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),T1=ke.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:a})=>{const{selection:u,doc:l}=a,{empty:c,$anchor:d}=u,{pos:f,parent:p}=d,h=d.parent.isTextblock&&f>0?a.doc.resolve(f-1):d,m=h.parent.type.spec.isolating,g=d.pos-d.parentOffset,y=m&&h.parent.childCount===1?g===d.pos:te.atStart(l).from===f;return!c||!p.type.isTextblock||p.textContent.length||!y||y&&d.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},s={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return tu()||Pf()?s:i},addProseMirrorPlugins(){return[new Ee({key:new Le("clearDocument"),appendTransaction:(t,e,n)=>{const r=t.some(m=>m.docChanged)&&!e.doc.eq(n.doc),i=t.some(m=>m.getMeta("preventClearDocument"));if(!r||i)return;const{empty:s,from:o,to:a}=e.selection,u=te.atStart(e.doc).from,l=te.atEnd(e.doc).to;if(s||!(o===u&&a===l)||!Qs(n.doc))return;const f=n.tr,p=Gs({state:n,transaction:f}),{commands:h}=new js({editor:this.editor,state:p});if(h.clearNodes(),!!f.steps.length)return f}})]}}),k1=ke.create({name:"paste",addProseMirrorPlugins(){return[new Ee({key:new Le("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),O1=ke.create({name:"tabindex",addProseMirrorPlugins(){return[new Ee({key:new Le("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Tn{get name(){return this.node.type.name}constructor(e,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=i}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new Tn(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Tn(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Tn(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,s=n.isAtom&&!n.isText,o=this.pos+r+(s?0:1),a=this.resolvedPos.doc.resolve(o);if(!i&&a.depth<=this.depth)return;const u=new Tn(a,this.editor,i,i?n:null);i&&(u.actualDepth=this.depth+1),e.push(new Tn(a,this.editor,i,i?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===e)if(Object.keys(n).length>0){const s=i.node.attrs,o=Object.keys(n);for(let a=0;a{r&&i.length>0||(o.node.type.name===e&&s.every(u=>n[u]===o.node.attrs[u])&&i.push(o),!(r&&i.length>0)&&(i=i.concat(o.querySelectorAll(e,n,r))))}),i}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const A1=`.ProseMirror { position: relative; } @@ -84,18 +84,19 @@ img.ProseMirror-separator { .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0 -}`;function M1(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}class R1 extends Fg{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=M1(C1,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=Cf(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(e).forEach(s=>{const o=typeof s=="string"?`${s}$`:s.key;r=n.filter(a=>!a.key.startsWith(o))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var e,n;const i=[...this.options.enableCoreExtensions?[N1,Qg.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),S1,T1,k1,A1,_1,O1].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s?.type));this.extensionManager=new An(i,this)}createCommandManager(){this.commandManager=new js({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=fa(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(o=>o.name!=="collaboration"),this.createExtensionManager()}}),e=fa(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=If(e,this.options.autofocus);this.view=new cg(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:ar.create({doc:e,selection:n||void 0})}),this.view.dom.setAttribute("role","textbox"),this.view.dom.getAttribute("aria-label")||this.view.dom.setAttribute("aria-label","Rich-Text Editor");const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(o=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(o)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const i=e.getMeta("focus"),s=e.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:e}),s&&this.emit("blur",{editor:this,event:s.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return $f(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,i=typeof e=="string"?n:e;return t1(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return jb(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=` +}`;function C1(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}class M1 extends $g{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:r,moved:i})=>this.options.onDrop(n,r,i)),this.on("paste",({event:n,slice:r})=>this.options.onPaste(n,r)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=C1(A1,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=Cf(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let r=n;if([].concat(e).forEach(s=>{const o=typeof s=="string"?`${s}$`:s.key;r=n.filter(a=>!a.key.startsWith(o))}),n.length===r.length)return;const i=this.state.reconfigure({plugins:r});return this.view.updateState(i),i}createExtensionManager(){var e,n;const i=[...this.options.enableCoreExtensions?[_1,Xg.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),w1,N1,T1,O1,S1,k1].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s?.type));this.extensionManager=new An(i,this)}createCommandManager(){this.commandManager=new js({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=fa(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(o=>o.name!=="collaboration"),this.createExtensionManager()}}),e=fa(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=If(e,this.options.autofocus);this.view=new lg(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:ar.create({doc:e,selection:n||void 0})}),this.view.dom.setAttribute("role","textbox"),this.view.dom.getAttribute("aria-label")||this.view.dom.setAttribute("aria-label","Rich-Text Editor");const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(o=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(o)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const i=e.getMeta("focus"),s=e.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:e}),s&&this.emit("blur",{editor:this,event:s.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return $f(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,i=typeof e=="string"?n:e;return e1(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Gb(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=` -`,textSerializers:r={}}=e||{};return Jb(this.state.doc,{blockSeparator:n,textSerializers:{...Df(this.schema),...r}})}get isEmpty(){return Qs(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new Tn(n,this)}get $doc(){return this.$pos(0)}}function gr(t){return new Js({find:t.find,handler:({state:e,range:n,match:r})=>{const i=ie(t.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:s}=e,o=r[r.length-1],a=r[0];if(o){const u=a.search(/\S/),l=n.from+a.indexOf(o),c=l+o.length;if(ru(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(m=>m===t.type&&m!==p.mark.type)).filter(p=>p.to>l).length)return null;cn.from&&s.delete(n.from+u,l);const f=n.from+u+o.length;s.addMark(n.from+u,f,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}function Uf(t){return new Js({find:t.find,handler:({state:e,range:n,match:r})=>{const i=ie(t.getAttributes,void 0,r)||{},{tr:s}=e,o=n.from;let a=n.to;const u=t.type.create(i);if(r[1]){const l=r[0].lastIndexOf(r[1]);let c=o+l;c>a?c=a:a=c+r[1].length;const d=r[0][r[0].length-1];s.insertText(d,o+r[0].length-1),s.replaceWith(c,a,u)}else if(r[0]){const l=t.type.isInline?o:o-1;s.insert(l,t.type.create(i)).delete(s.mapping.map(o),s.mapping.map(a))}s.scrollIntoView()}})}function ma(t){return new Js({find:t.find,handler:({state:e,range:n,match:r})=>{const i=e.doc.resolve(n.from),s=ie(t.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,s)}})}function Zr(t){return new Js({find:t.find,handler:({state:e,range:n,match:r,chain:i})=>{const s=ie(t.getAttributes,void 0,r)||{},o=e.tr.delete(n.from,n.to),u=o.doc.resolve(n.from).blockRange(),l=u&&Pa(u,t.type,s);if(!l)return null;if(o.wrap(u,l),t.keepMarks&&t.editor){const{selection:d,storedMarks:f}=e,{splittableMarks:p}=t.editor.extensionManager,h=f||d.$to.parentOffset&&d.$from.marks();if(h){const m=h.filter(g=>p.includes(g.type.name));o.ensureMarks(m)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,s).run()}const c=o.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&En(o.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,c))&&o.join(n.from-1)}})}class Je{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ie(U(this,"addOptions",{name:this.name}))),this.storage=ie(U(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Je(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Je(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ie(U(n,"addOptions",{name:n.name})),n.storage=ie(U(n,"addStorage",{name:n.name,options:n.options})),n}}function qn(t){return new Gg({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:i})=>{const s=ie(t.getAttributes,void 0,r,i);if(s===!1||s===null)return null;const{tr:o}=e,a=r[r.length-1],u=r[0];let l=n.to;if(a){const c=u.search(/\S/),d=n.from+u.indexOf(a),f=d+a.length;if(ru(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===t.type&&g!==h.mark.type)).filter(h=>h.to>d).length)return null;fn.from&&o.delete(n.from+c,d),l=n.from+c+a.length,o.addMark(n.from+c,l,t.type.create(s||{})),o.removeStoredMark(t.type)}}})}function D1(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const Se=(t,e={},n=[])=>{const r=document.createElement(t);return(Array.isArray(n)?n:[n]).forEach(s=>{if(s instanceof HTMLElement){r.appendChild(s);return}r.textContent=`${s}`}),Object.entries(e).forEach(([s,o])=>{if(s==="className"){r.className=o;return}if(s.startsWith("on")){const a=s.replace("on","").toLowerCase();r.addEventListener(a,o);return}r.setAttribute(s,o)}),r},I1=(t,e)=>Se("div",{className:"ud-root front-handle","data-front-handle":"",draggable:!0},[Se("button",{"data-front-handle":"",onClick:()=>{const r=e();if(!r)return;const{state:i,dispatch:s}=t,{tr:o}=i,a=t.posAtDOM(r,0),u=i.doc.nodeAt(a);if(!u)return;const l=a+u.nodeSize,c=i.schema.nodes.paragraph.create({},i.schema.text("/")),d=l+c.nodeSize;let f=o.insert(l,c);f=f.setSelection(j.create(f.doc,d)),s(f),t.focus()}},"+"),Se("button",{className:"drag-handle","data-drag-handle":"","data-front-handle":""},"")]);function L1(t){const e=t.getBoundingClientRect(),n=t.closest('[role="dialog"]');if(n&&window.getComputedStyle(n).transform!=="none"){const r=n.getBoundingClientRect();return{top:e.top-r.top,left:e.left-r.left,width:e.width}}return{top:e.top,left:e.left,width:e.width}}function Pl(t){return document.elementsFromPoint(t.x,t.y).find(e=>e.parentElement?.matches?.(".ProseMirror")||e.matches(["li","p:not(:first-child)","pre","blockquote","h1, h2, h3, h4, h5, h6"].join(", ")))}function P1(t,e,n){const r=t.getBoundingClientRect();return e.posAtCoords({left:r.left+50+n.handleWidth,top:r.top+1})?.inside}function Bl(t,e){const n=e.state.doc.resolve(t);return n.depth>1?n.before(n.depth):t}function B1(t){let e="";function n(u,l){if(l.focus(),!u.dataTransfer)return;const c=Pl({x:u.clientX+50+t.handleWidth,y:u.clientY});if(console.log(c,"start"),!(c instanceof Element))return;let d=P1(c,l,t);if(d==null||d<0)return;d=Bl(d,l);const{from:f,to:p}=l.state.selection,h=f-p,m=Bl(f,l);let g=!1;const y=l.state.doc.resolve(m);if(y.node().type.name==="doc")g=!0;else{const x=H.create(l.state.doc,y.before());g=!(d+1>=x.$from.pos&&d<=x.$to.pos)}let v=l.state.selection;if(!g&&h!==0&&!(l.state.selection instanceof H)){const x=H.create(l.state.doc,p-1);v=j.create(l.state.doc,d,x.$to.pos)}else if(v=H.create(l.state.doc,d),v.node.type.name==="tableRow"){let x=l.state.doc.resolve(v.from);v=H.create(l.state.doc,x.before())}l.dispatch(l.state.tr.setSelection(v)),l.state.selection instanceof H&&l.state.selection.node.type.name==="listItem"&&(e=c.parentElement.tagName);const _=l.state.selection.content(),{dom:b,text:O}=lg(l,_);u.dataTransfer.clearData(),u.dataTransfer.setData("text/html",b.innerHTML),u.dataTransfer.setData("text/plain",O),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage(c,0,0),l.dragging={slice:_,move:u.ctrlKey}}let r=null,i;function s(){r&&r.classList.add("hide")}function o(){r&&r.classList.remove("hide")}function a(u){if(u.target instanceof Element){const l=!!u.target.closest(".tiptap.ProseMirror"),c=!!u.target.attributes.getNamedItem("data-drag-handle"),d=!!u.target.attributes.getNamedItem("data-front-handle");if(l||c||d)return}s()}return new Ee({key:new Le(t.pluginKey),view:u=>{const l=t.dragHandleSelector?document.querySelector(t.dragHandleSelector):null;r=I1(u,()=>i);function c(f){n(f,u)}r.addEventListener("dragstart",c);function d(f){s();let p=window.scrollY;f.clientY{l||r?.remove?.(),r?.removeEventListener("drag",d),r?.removeEventListener("dragstart",c),r=null,u?.dom?.parentElement?.removeEventListener("mouseout",a)}}},props:{handleDOMEvents:{mousemove:(u,l)=>{if(!u.editable)return;const c=Pl({x:l.clientX+50+t.handleWidth,y:l.clientY}),d=c?.closest(".not-draggable");if(!(c instanceof Element)||c.matches("ul, ol")||d){s();return}i=c;const f=window.getComputedStyle(c),p=parseInt(f.lineHeight,10),h=isNaN(p)?parseInt(f.fontSize)*1.2:p,m=parseInt(f.paddingTop,10),g=L1(c);g.top+=(h-24)/2,g.top+=m,c.matches("ul:not([data-type=taskList]) li, ol li")&&(g.left-=t.liPreWidth??t.handleWidth),g.width=t.handleWidth,r&&(r.style.left=`${g.left-g.width}px`,r.style.top=`${g.top}px`,o())},keydown:()=>{s()},mousewheel:()=>{s()},dragstart:u=>{u.dom.classList.add("dragging")},drop:(u,l)=>{u.dom.classList.remove("dragging"),s();let c=null;const d=u.posAtCoords({left:l.clientX,top:l.clientY});if(!d||(u.state.selection instanceof H&&(c=u.state.selection.node),!c))return;const p=u.state.doc.resolve(d.pos).parent.type.name==="listItem";if(u.state.selection instanceof H&&u.state.selection.node.type.name==="listItem"&&!p&&e=="OL"){const h=u.state.schema.nodes.orderedList?.createAndFill(null,c),m=new B(C.from(h),0,0);u.dragging={slice:m,move:l.ctrlKey}}},dragend:u=>{u.dom.classList.remove("dragging")}}}})}const $1=ke.create({name:"globalDragHandle",addOptions(){return{handleWidth:68,scrollTreshold:100,liPreWidth:40}},addProseMirrorPlugins(){return[B1({pluginKey:"globalFrontHandle",handleWidth:this.options.handleWidth,scrollTreshold:this.options.scrollTreshold,dragHandleSelector:this.options.dragHandleSelector,liPreWidth:this.options.liPreWidth})]}}),F1=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),U1=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var Oo;const z1=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),H1=(Oo=String.fromCodePoint)!==null&&Oo!==void 0?Oo:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function q1(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=z1.get(t))!==null&&e!==void 0?e:t}var Me;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const V1=32;var un;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(un||(un={}));function ga(t){return t>=Me.ZERO&&t<=Me.NINE}function K1(t){return t>=Me.UPPER_A&&t<=Me.UPPER_F||t>=Me.LOWER_A&&t<=Me.LOWER_F}function W1(t){return t>=Me.UPPER_A&&t<=Me.UPPER_Z||t>=Me.LOWER_A&&t<=Me.LOWER_Z||ga(t)}function G1(t){return t===Me.EQUALS||W1(t)}var Ae;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Ae||(Ae={}));var nn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(nn||(nn={}));class j1{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Ae.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=nn.Strict}startEntity(e){this.decodeMode=e,this.state=Ae.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Ae.EntityStart:return e.charCodeAt(n)===Me.NUM?(this.state=Ae.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Ae.NamedEntity,this.stateNamedEntity(e,n));case Ae.NumericStart:return this.stateNumericStart(e,n);case Ae.NumericDecimal:return this.stateNumericDecimal(e,n);case Ae.NumericHex:return this.stateNumericHex(e,n);case Ae.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|V1)===Me.LOWER_X?(this.state=Ae.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Ae.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(e.substr(n,s),i),this.consumed+=s}}stateNumericHex(e,n){const r=n;for(;n>14;for(;n>14,s!==0){if(o===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==nn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,i=(r[n]&un.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[e]&~un.VALUE_LENGTH:i[e+1],r),n===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case Ae.NamedEntity:return this.result!==0&&(this.decodeMode!==nn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ae.NumericDecimal:return this.emitNumericEntity(0,2);case Ae.NumericHex:return this.emitNumericEntity(0,3);case Ae.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ae.EntityStart:return 0}}}function zf(t){let e="";const n=new j1(t,r=>e+=H1(r));return function(i,s){let o=0,a=0;for(;(a=i.indexOf("&",a))>=0;){e+=i.slice(o,a),n.startEntity(s);const l=n.write(i,a+1);if(l<0){o=a+n.end();break}o=a+l,a=l===0?o+1:o}const u=e+i.slice(o);return e="",u}}function Y1(t,e,n,r){const i=(e&un.BRANCH_LENGTH)>>7,s=e&un.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=i?-1:t[n+u]-1}let o=n,a=o+i-1;for(;o<=a;){const u=o+a>>>1,l=t[u];if(lr)a=u-1;else return t[u+i]}return-1}const J1=zf(F1);zf(U1);function Z1(t,e=nn.Legacy){return J1(t,e)}var me;(function(t){t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator"})(me||(me={}));var mt;(function(t){t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start"})(mt||(mt={}));const $l=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,X1=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,Q1=new Map([[126,mt.Element],[94,mt.Start],[36,mt.End],[42,mt.Any],[33,mt.Not],[124,mt.Hyphen]]),ey=new Set(["has","not","matches","is","where","host","host-context"]);function ty(t){switch(t.type){case me.Adjacent:case me.Child:case me.Descendant:case me.Parent:case me.Sibling:case me.ColumnCombinator:return!0;default:return!1}}const ny=new Set(["contains","icontains"]);function ry(t,e,n){const r=parseInt(e,16)-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Or(t){return t.replace(X1,ry)}function Ao(t){return t===39||t===34}function Fl(t){return t===32||t===9||t===10||t===12||t===13}function iy(t){const e=[],n=Hf(e,`${t}`,0);if(n0&&n0&&ty(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function l(f){if(r.length>0&&r[r.length-1].type===me.Descendant){r[r.length-1].type=f;return}u(),r.push({type:f})}function c(f,p){r.push({type:me.Attribute,name:f,action:p,value:i(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===me.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");t.push(r)}if(s(0),e.length===n)return n;e:for(;n/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\xA0/g," ").replace(/\xAD/g,"­")}var Ul=t=>Z1(t);function sy(t,e,n,r){if(typeof e=="function")return e({props:{...n,children:r},attrs:n,children:r,h:t.h,context:t});{let i=!0,s;if(e?e.toLowerCase()==="fragment"?(s=t.document.createDocumentFragment(),i=!1):s=t.document.createElement(e):s=t.document.createElement("div"),n&&i){const o=s;for(let[a,u]of Object.entries(n)){a=a.toString();const l=a.toLowerCase();l==="classname"?o.className=u:l==="on"?Object.entries(u).forEach(([c,d])=>{o.setAttribute(`on${c}`,String(d))}):u!==!1&&u!=null&&(u===!0?o.setAttribute(a,a):o.setAttribute(a,u.toString()))}}if(r)for(const o of r){const a=Array.isArray(o)?[...o]:[o];for(const u of a)u&&u!==!1&&u!=null&&(typeof u!="object"?s.appendChild(t.document.createTextNode(u.toString())):s.appendChild(u))}return s}}function qf(t,e,...n){return typeof t=="object"&&(t="fragment",n=t.children,e=t.attrs),Array.isArray(e)?(n=[e],e={}):e?e.attrs&&(e={...e.attrs,...e},delete e.attrs):e={},{tag:t,attrs:e,children:typeof n[0]=="string"?n:n.flat(Number.POSITIVE_INFINITY)}}function oy(t){return t.h=function(n,r,...i){const{tag:s,attrs:o,children:a}=qf(n,r,i);return sy(t,s,o,a)},t.h}var zl={};function ay(t){let e=zl[t];return e==null&&(e=iy(t),zl[t]=e),e}function uy(t,e,{debug:n=!1}={}){for(const r of ay(t)){const i=(s,o)=>{let a=!1;for(const u of o){const{type:l,name:c,action:d,value:f,_ignoreCase:p=!0,data:h}=u;if(l==="attribute")d==="equals"?a=s.getAttribute(c)===f:d==="start"?a=!!s.getAttribute(c)?.startsWith(f):d==="end"?a=!!s.getAttribute(c)?.endsWith(f):d==="element"?c==="class"?a=s.classList.contains(f):a=!!s.getAttribute(c)?.includes(f):d==="exists"?a=s.hasAttribute(c):d==="any"?a=!!s.getAttribute(c)?.includes(f):console.warn("Unknown CSS selector action",d);else if(l==="tag")a=s.tagName===c.toUpperCase();else if(l==="universal")a=!0;else if(l==="pseudo"){if(c==="not"){let m=!0;h.forEach(g=>{i(s,g)||(m=!1)}),a=!m}}else console.warn("Unknown CSS selector type",l,t,o);if(!a)break}return a};if(i(e,r))return!0}return!1}var ly=Symbol.for("nodejs.util.inspect.custom"),Hl={fontWeight:"bold"},ql={fontStyle:"italic"},Vl={backgroundColor:"rgb(255, 250, 165)"},Kl={textDecorations:"underline"},Co={textDecorations:"line-through"},cy={b:Hl,strong:Hl,em:ql,i:ql,mark:Vl,u:Kl,a:Kl,s:Co,del:Co,ins:Vl,strike:Co};function Wl(t){return t.toLowerCase().replace(/[^a-z0-9]+(.)/gi,(e,n)=>n.toUpperCase())}var jt=class Pi{constructor(){this.append=this.appendChild,this._parentNode=null,this._childNodes=[]}get nodeType(){return console.error("Subclasses should define nodeType!"),0}get nodeName(){return console.error("Subclasses should define nodeName!"),""}get nodeValue(){return null}cloneNode(e=!1){const n=new this.constructor;return e&&(n._childNodes=this._childNodes.map(r=>r.cloneNode(!0)),n._fixChildNodesParent()),n}_fixChildNodesParent(){this._childNodes.forEach(e=>e._parentNode=this)}insertBefore(e,n){if(e!==n){let r=n?this._childNodes.indexOf(n):0;r<0&&(r=0),this._childNodes.splice(r,0,e),this._fixChildNodesParent()}}appendChild(e){if(e!=null){if(e===this){console.warn("Cannot appendChild to self");return}if(e instanceof su&&console.warn("No defined how to append a document to a node!",e),e instanceof iu)for(const n of[...e._childNodes])this.appendChild(n);else if(Array.isArray(e))for(const n of[...e])this.appendChild(n);else if(e instanceof Pi)e.remove(),this._childNodes.push(e);else try{const n=typeof e=="string"?e:JSON.stringify(e,null,2);this._childNodes.push(new ur(n))}catch(n){console.error(`The data ${e} to be added to ${this.render()} is problematic: ${n}`)}this._fixChildNodesParent()}}removeChild(e){const n=this._childNodes.indexOf(e);n>=0&&(e._parentNode=null,this._childNodes.splice(n,1),this._fixChildNodesParent())}remove(){return this?.parentNode?.removeChild(this),this}replaceChildren(...e){this._childNodes=e.map(n=>typeof n=="string"?new ur(n):n.remove()),this._fixChildNodesParent()}replaceWith(...e){const n=this._parentNode;if(n){const r=this._indexInParent();r>=0&&(e=e.map(i=>typeof i=="string"?new ur(i):i.remove()),n._childNodes.splice(r,1,...e),this._parentNode=null,n._fixChildNodesParent())}}_indexInParent(){return this._parentNode?this._parentNode.childNodes.indexOf(this):-1}get parentNode(){return this._parentNode}get childNodes(){return this._childNodes||[]}get children(){return this._childNodes||[]}get firstChild(){return this._childNodes[0]}get lastChild(){return this._childNodes[this._childNodes.length-1]}get nextSibling(){const e=this._indexInParent();return e!=null&&this.parentNode.childNodes[e+1]||null}get previousSibling(){const e=this._indexInParent();return e>0&&this.parentNode.childNodes[e-1]||null}flatten(){const e=[];this instanceof wt&&e.push(this);for(const n of this._childNodes)e.push(...n.flatten());return e}flattenNodes(){const e=[];e.push(this);for(const n of this._childNodes)e.push(...n.flattenNodes());return e}render(){return""}get textContent(){return this._childNodes.map(e=>e.textContent).join("")}set textContent(e){this._childNodes=[],e&&this.appendChild(new ur(e.toString()))}contains(e){return e===this?!0:this._childNodes.some(n=>n.contains(e))}get ownerDocument(){return this.nodeType===Pi.DOCUMENT_NODE||this.nodeType===Pi.DOCUMENT_FRAGMENT_NODE?this:this?._parentNode?.ownerDocument}toString(){return`${this.nodeName}`}[ly](){return`${this.constructor.name} "${this.render()}"`}};jt.ELEMENT_NODE=1;jt.TEXT_NODE=3;jt.CDATA_SECTION_NODE=4;jt.PROCESSING_INSTRUCTION_NODE=7;jt.COMMENT_NODE=8;jt.DOCUMENT_NODE=9;jt.DOCUMENT_TYPE_NODE=10;jt.DOCUMENT_FRAGMENT_NODE=11;var bn=jt,ur=class extends bn{get nodeType(){return bn.TEXT_NODE}get nodeName(){return"#text"}get nodeValue(){return this._text||""}get textContent(){return this.nodeValue}constructor(t=""){super(),this._text=t}render(){const t=this.parentNode?.tagName;return t==="SCRIPT"||t==="STYLE"?this._text:ba(this._text)}cloneNode(t=!1){const e=super.cloneNode(t);return e._text=this._text,e}},Vf=class extends bn{getElementById(t){return this.flatten().find(e=>e._attributes.id===t)}getElementsByClassName(t){return this.flatten().filter(e=>e.classList.contains(t))}matches(t){return uy(t,this)}querySelectorAll(t){return this.flatten().filter(e=>e.matches(t))}querySelector(t){return this.flatten().find(e=>e.matches(t))}parent(t){return this.matches(t)?this:this.parentNode==null?null:this.parentNode?.parent(t)}handle(t,e){let n=0;for(const r of this.querySelectorAll(t))e(r,n++)}},wt=class extends Vf{get nodeType(){return bn.ELEMENT_NODE}get nodeName(){return this._nodeName}constructor(t="div",e={}){super(),this._originalTagName=t,this._nodeName=(t||"").toUpperCase(),this._attributes=e||{}}cloneNode(t=!1){const e=super.cloneNode(t);return e._originalTagName=this._originalTagName,e._nodeName=this._nodeName,e._attributes=Object.assign({},this._attributes),e}get attributes(){return Object.entries(this._attributes).map(([t,e])=>({name:t,value:e}))}get attributesObject(){return{...this._attributes}}_findAttributeName(t){const e=t.toLowerCase();return Object.keys(this._attributes).find(n=>e===n.toLowerCase())||null}setAttribute(t,e){this.removeAttribute(t),this._attributes[t]=e,this._styles=void 0,this._dataset=void 0}getAttribute(t){const e=this._findAttributeName(t),n=e?this._attributes[e]:null;return n==null?null:typeof n=="string"?n:""}removeAttribute(t){this._findAttributeName(String(t))&&delete this._attributes[t]}hasAttribute(t){const e=this._findAttributeName(t);return e?this._attributes[e]!=null:!1}get style(){if(this._styles==null){const t={};let e=0;const n=this.getAttribute("style");if(n){let r;const i=/\s*([\w-]+)\s*:\s*((url\(.*?\)[^;]*|[^;]+))/gi;for(;r=i.exec(n);){++e;const s=r[1],o=r[2].trim();t[s]=o,t[Wl(s)]=o}}this._styles={get length(){return e},getPropertyValue(r){return t[r]},...cy[this.tagName.toLowerCase()],...t}}return this._styles}get dataset(){if(this._dataset==null){const t={};for(const[e,n]of Object.entries(this._attributes))e.startsWith("data-")&&(t[e.slice(5)]=n,t[Wl(e.slice(5))]=n);this._dataset=t}return this._dataset}get tagName(){return this._nodeName}setTagName(t){this._nodeName=t.toUpperCase()}get id(){return this._attributes.id||null}set id(t){t==null?delete this._attributes.id:this._attributes.id=t}get src(){return this._attributes.src}set src(t){t==null?delete this._attributes.src:this._attributes.src=t}getElementsByTagName(t){t=t.toUpperCase();const e=this.flatten();return t!=="*"?e.filter(n=>n.tagName===t):e}setInnerHTML(t){}get innerHTML(){return this._childNodes.map(t=>t.render(eo)).join("")}set innerHTML(t){this.setInnerHTML(t)}get outerHTML(){return this.render(ns)}get className(){return this._attributes.class||""}set className(t){Array.isArray(t)?t=t.filter(e=>!!e).join(" "):typeof t=="object"&&(t=Object.entries(t).filter(([e,n])=>!!n).map(([e,n])=>e).join(" ")),this._attributes.class=t}get classList(){const t=String(this.className??"").trim().split(/\s+/g)||[];return{contains(e){return t.includes(e)},add:e=>{t.includes(e)||(t.push(e),this.className=t)},remove:e=>{const n=t.indexOf(e);n>=0&&(t.splice(n,1),this.className=t)}}}render(t=ns){return t(this._originalTagName||this.tagName,this._attributes,this._childNodes.map(e=>e.render(t)).join(""))}},Kf=class Wf extends bn{get nodeName(){return super.nodeName}get nodeValue(){return super.nodeValue}get nodeType(){return Wf.DOCUMENT_TYPE_NODE}render(){return""}},iu=class Gf extends Vf{get nodeType(){return bn.DOCUMENT_FRAGMENT_NODE}get nodeName(){return"#document-fragment"}render(e=ns){return this._childNodes.map(n=>n.render(e)||[]).join("")}get innerHTML(){return this._childNodes.map(e=>e.render(eo)).join("")}createElement(e,n={}){return new wt(e,n)}createDocumentFragment(){return new Gf}createTextNode(e){return new ur(e)}},su=class extends iu{get nodeType(){return bn.DOCUMENT_NODE}get nodeName(){return"#document"}get documentElement(){return this.firstChild}render(t=ns){let e=super.render(t);return this.docType&&(e=this.docType.render()+e),e}},jf=class extends su{constructor(t=!1){if(super(),this.docType=new Kf,!t){const e=new wt("html"),n=new wt("body"),r=new wt("head"),i=new wt("title");e.appendChild(r),r.appendChild(i),e.appendChild(n),this.appendChild(e)}}get body(){let t=this.querySelector("body");if(!t){let e=this.querySelector("html");e||(e=new wt("html"),this.appendChild(e)),t=new wt("body"),e.appendChild(e)}return t}get title(){return this.querySelector("title")?.textContent||""}set title(t){const e=this.querySelector("title");e&&(e.textContent=t)}get head(){let t=this.querySelector("head");if(!t){let e=this.querySelector("html");e||(e=new wt("html"),this.appendChild(e)),t=new wt("head"),e.insertBefore(e)}return t}};function dy(){return new su}function fy(){return new jf}var Yf=dy();oy({document:Yf});var py={},hy=py.hasOwnProperty;function Jf(t,e){return hy.call(t,e)}var Zf=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","command"];function Xf(t,e,n={},r){const i=!(typeof r=="string"&&r===""||Array.isArray(r)&&(r.length===0||r.length===1&&r[0]==="")||r==null),s=[];if(e=e.replace(/__/g,":"),e!=="noop"&&e!==""){e!=="cdata"?s.push(`<${e}`):s.push("a[u]!=null).map(u=>{let l=a[u];return l=typeof l=="number"?`${l}px`:l,`${u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${l}`}).join(";")}"`):a!==!1&&a!=null&&s.push(` ${o}="${ba(a.toString())}"`)}if(e!=="cdata"){if(t&&!i)return s.push(" />"),s.join("");s.push(">")}if(!t&&Zf.includes(e))return s.join("")}if(i){if(typeof r=="string")s.push(r);else if(r&&r.length>0){for(let o of r)if(o!=null&&o!==!1){Array.isArray(o)||(o=[o]);for(const a of o)a.startsWith("<")&&a.endsWith(">")||e==="script"||e==="style"?s.push(a):s.push(ba(a.toString()))}}}return n.html&&s.push(n.html),e!=="noop"&&e!==""&&(e!=="cdata"?s.push(``):s.push("]]>")),s.join("")}function eo(t,e,...n){const{tag:r,attrs:i,children:s}=qf(t,e,n);return Xf(!1,r,i,s)}var ns=Xf.bind(null,!1);eo.firstLine="";eo.html=!0;var my=/([^=\s]+)(\s*=\s*(("([^"]*)")|('([^']*)')|[^>\s]+))?/g,gy=/^<\/([^>\s]+)[^>]*>/m,by=/^<([^>\s/]+)((\s+[^=>\s]+(\s*=\s*(("[^"]*")|('[^']*')|[^>\s]+))?)*)\s*(?:\/\s*)?>/m,yy=/\s*\/\s*>\s*$/m,Ey=class{constructor(t={}){this.attrRe=my,this.endTagRe=gy,this.startTagRe=by,this.defaults={ignoreWhitespaceText:!1},t.scanner&&(this.scanner=t.scanner),this.options=Object.assign({},this.defaults,t)}parse(t){let e=!1,n,r,i;for(;t.length;){if(t.substring(0,4)===""),n!==-1?(this.scanner.comment(t.substring(4,n)),t=t.substring(n+3),e=!1):e=!0;else if(t.substring(0,2)==="{const[i,s,o,a,u,l,c,d]=r;n[s]=d??l??a??!0}),n}};function xy(t){if(typeof t!="string")throw console.error("parseHTML requires string, found",t),new Error("parseHTML requires string");const e=t.indexOf("=o.pos?{range:{from:g,to:y},query:p[0].slice(n.length),text:p[0]}:null}const _y=new Le("suggestion");function Ny({pluginKey:t=_y,editor:e,char:n="@",allowSpaces:r=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:o="span",decorationClass:a="suggestion",command:u=()=>null,items:l=()=>[],render:c=()=>({}),allow:d=()=>!0,findSuggestionMatch:f=Sy}){let p;const h=c?.(),m=new Ee({key:t,view(){return{update:async(g,y)=>{var v,_,b,O,x,R,P;const k=(v=this.key)===null||v===void 0?void 0:v.getState(y),$=(_=this.key)===null||_===void 0?void 0:_.getState(g.state),G=k.active&&$.active&&k.range.from!==$.range.from,Z=!k.active&&$.active,W=k.active&&!$.active,Q=!Z&&!W&&k.query!==$.query,J=Z||G&&Q,re=Q||G,E=W||G&&Q;if(!J&&!re&&!E)return;const w=E&&!J?k:$,A=g.dom.querySelector(`[data-decoration-id="${w.decorationId}"]`);p={editor:e,range:w.range,query:w.query,text:w.text,items:[],command:D=>u({editor:e,range:w.range,props:D}),decorationNode:A,clientRect:A?()=>{var D;const{decorationId:F}=(D=this.key)===null||D===void 0?void 0:D.getState(e.state),K=g.dom.querySelector(`[data-decoration-id="${F}"]`);return K?.getBoundingClientRect()||null}:null},J&&((b=h?.onBeforeStart)===null||b===void 0||b.call(h,p)),re&&((O=h?.onBeforeUpdate)===null||O===void 0||O.call(h,p)),(re||J)&&(p.items=await l({editor:e,query:w.query})),E&&((x=h?.onExit)===null||x===void 0||x.call(h,p)),re&&((R=h?.onUpdate)===null||R===void 0||R.call(h,p)),J&&((P=h?.onStart)===null||P===void 0||P.call(h,p))},destroy:()=>{var g;p&&((g=h?.onExit)===null||g===void 0||g.call(h,p))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(g,y,v,_){const{isEditable:b}=e,{composing:O}=e.view,{selection:x}=g,{empty:R,from:P}=x,k={...y};if(k.composing=O,b&&(R||e.view.composing)){(Py.range.to)&&!O&&!y.composing&&(k.active=!1);const $=f({char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:s,$position:x.$from}),G=`id_${Math.floor(Math.random()*4294967295)}`;$&&d({editor:e,state:_,range:$.range,isActive:y.active})?(k.active=!0,k.decorationId=y.decorationId?y.decorationId:G,k.range=$.range,k.query=$.query,k.text=$.text):k.active=!1}else k.active=!1;return k.active||(k.decorationId=null,k.range={from:0,to:0},k.query=null,k.text=null),k}},props:{handleKeyDown(g,y){var v;const{active:_,range:b}=m.getState(g.state);return _&&((v=h?.onKeyDown)===null||v===void 0?void 0:v.call(h,{view:g,event:y,range:b}))||!1},decorations(g){const{active:y,range:v,decorationId:_}=m.getState(g);return y?be.create(g.doc,[We.inline(v.from,v.to,{nodeName:o,class:a,"data-decoration-id":_})]):null}}});return m}var rt="top",xt="bottom",vt="right",it="left",ou="auto",li=[rt,xt,vt,it],br="start",Xr="end",Ty="clippingParents",Qf="viewport",Ar="popper",ky="reference",Gl=li.reduce(function(t,e){return t.concat([e+"-"+br,e+"-"+Xr])},[]),ep=[].concat(li,[ou]).reduce(function(t,e){return t.concat([e,e+"-"+br,e+"-"+Xr])},[]),Oy="beforeRead",Ay="read",Cy="afterRead",My="beforeMain",Ry="main",Dy="afterMain",Iy="beforeWrite",Ly="write",Py="afterWrite",By=[Oy,Ay,Cy,My,Ry,Dy,Iy,Ly,Py];function $t(t){return t?(t.nodeName||"").toLowerCase():null}function ot(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Vn(t){var e=ot(t).Element;return t instanceof e||t instanceof Element}function Et(t){var e=ot(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function au(t){if(typeof ShadowRoot>"u")return!1;var e=ot(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $y(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Et(s)||!$t(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Fy(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=o.reduce(function(u,l){return u[l]="",u},{});!Et(i)||!$t(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}const tp={name:"applyStyles",enabled:!0,phase:"write",fn:$y,effect:Fy,requires:["computeStyles"]};function It(t){return t.split("-")[0]}var Ln=Math.max,rs=Math.min,yr=Math.round;function ya(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function np(){return!/^((?!chrome|android).)*safari/i.test(ya())}function Er(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,s=1;e&&Et(t)&&(i=t.offsetWidth>0&&yr(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&yr(r.height)/t.offsetHeight||1);var o=Vn(t)?ot(t):window,a=o.visualViewport,u=!np()&&n,l=(r.left+(u&&a?a.offsetLeft:0))/i,c=(r.top+(u&&a?a.offsetTop:0))/s,d=r.width/i,f=r.height/s;return{width:d,height:f,top:c,right:l+d,bottom:c+f,left:l,x:l,y:c}}function uu(t){var e=Er(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function rp(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&au(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gt(t){return ot(t).getComputedStyle(t)}function Uy(t){return["table","td","th"].indexOf($t(t))>=0}function wn(t){return((Vn(t)?t.ownerDocument:t.document)||window.document).documentElement}function to(t){return $t(t)==="html"?t:t.assignedSlot||t.parentNode||(au(t)?t.host:null)||wn(t)}function jl(t){return!Et(t)||Gt(t).position==="fixed"?null:t.offsetParent}function zy(t){var e=/firefox/i.test(ya()),n=/Trident/i.test(ya());if(n&&Et(t)){var r=Gt(t);if(r.position==="fixed")return null}var i=to(t);for(au(i)&&(i=i.host);Et(i)&&["html","body"].indexOf($t(i))<0;){var s=Gt(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function ci(t){for(var e=ot(t),n=jl(t);n&&Uy(n)&&Gt(n).position==="static";)n=jl(n);return n&&($t(n)==="html"||$t(n)==="body"&&Gt(n).position==="static")?e:n||zy(t)||e}function lu(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $r(t,e,n){return Ln(t,rs(e,n))}function Hy(t,e,n){var r=$r(t,e,n);return r>n?n:r}function ip(){return{top:0,right:0,bottom:0,left:0}}function sp(t){return Object.assign({},ip(),t)}function op(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var qy=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,sp(typeof e!="number"?e:op(e,li))};function Vy(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=It(n.placement),u=lu(a),l=[it,vt].indexOf(a)>=0,c=l?"height":"width";if(!(!s||!o)){var d=qy(i.padding,n),f=uu(s),p=u==="y"?rt:it,h=u==="y"?xt:vt,m=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c],g=o[u]-n.rects.reference[u],y=ci(s),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,_=m/2-g/2,b=d[p],O=v-f[c]-d[h],x=v/2-f[c]/2+_,R=$r(b,x,O),P=u;n.modifiersData[r]=(e={},e[P]=R,e.centerOffset=R-x,e)}}function Ky(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||rp(e.elements.popper,i)&&(e.elements.arrow=i))}const Wy={name:"arrow",enabled:!0,phase:"main",fn:Vy,effect:Ky,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xr(t){return t.split("-")[1]}var Gy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jy(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:yr(n*i)/i||0,y:yr(r*i)/i||0}}function Yl(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,d=t.isFixed,f=o.x,p=f===void 0?0:f,h=o.y,m=h===void 0?0:h,g=typeof c=="function"?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),_=it,b=rt,O=window;if(l){var x=ci(n),R="clientHeight",P="clientWidth";if(x===ot(n)&&(x=wn(n),Gt(x).position!=="static"&&a==="absolute"&&(R="scrollHeight",P="scrollWidth")),x=x,i===rt||(i===it||i===vt)&&s===Xr){b=xt;var k=d&&x===O&&O.visualViewport?O.visualViewport.height:x[R];m-=k-r.height,m*=u?1:-1}if(i===it||(i===rt||i===xt)&&s===Xr){_=vt;var $=d&&x===O&&O.visualViewport?O.visualViewport.width:x[P];p-=$-r.width,p*=u?1:-1}}var G=Object.assign({position:a},l&&Gy),Z=c===!0?jy({x:p,y:m},ot(n)):{x:p,y:m};if(p=Z.x,m=Z.y,u){var W;return Object.assign({},G,(W={},W[b]=v?"0":"",W[_]=y?"0":"",W.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",W))}return Object.assign({},G,(e={},e[b]=v?m+"px":"",e[_]=y?p+"px":"",e.transform="",e))}function Yy(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,u=a===void 0?!0:a,l={placement:It(e.placement),variation:xr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Yl(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Yl(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Jy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yy,data:{}};var Ei={passive:!0};function Zy(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,u=ot(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(c){c.addEventListener("scroll",n.update,Ei)}),a&&u.addEventListener("resize",n.update,Ei),function(){s&&l.forEach(function(c){c.removeEventListener("scroll",n.update,Ei)}),a&&u.removeEventListener("resize",n.update,Ei)}}const Xy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zy,data:{}};var Qy={left:"right",right:"left",bottom:"top",top:"bottom"};function Bi(t){return t.replace(/left|right|bottom|top/g,function(e){return Qy[e]})}var eE={start:"end",end:"start"};function Jl(t){return t.replace(/start|end/g,function(e){return eE[e]})}function cu(t){var e=ot(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function du(t){return Er(wn(t)).left+cu(t).scrollLeft}function tE(t,e){var n=ot(t),r=wn(t),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,u=0;if(i){s=i.width,o=i.height;var l=np();(l||!l&&e==="fixed")&&(a=i.offsetLeft,u=i.offsetTop)}return{width:s,height:o,x:a+du(t),y:u}}function nE(t){var e,n=wn(t),r=cu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Ln(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ln(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+du(t),u=-r.scrollTop;return Gt(i||n).direction==="rtl"&&(a+=Ln(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:u}}function fu(t){var e=Gt(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ap(t){return["html","body","#document"].indexOf($t(t))>=0?t.ownerDocument.body:Et(t)&&fu(t)?t:ap(to(t))}function Fr(t,e){var n;e===void 0&&(e=[]);var r=ap(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=ot(r),o=i?[s].concat(s.visualViewport||[],fu(r)?r:[]):r,a=e.concat(o);return i?a:a.concat(Fr(to(o)))}function Ea(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rE(t,e){var n=Er(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Zl(t,e,n){return e===Qf?Ea(tE(t,n)):Vn(e)?rE(e,n):Ea(nE(wn(t)))}function iE(t){var e=Fr(to(t)),n=["absolute","fixed"].indexOf(Gt(t).position)>=0,r=n&&Et(t)?ci(t):t;return Vn(r)?e.filter(function(i){return Vn(i)&&rp(i,r)&&$t(i)!=="body"}):[]}function sE(t,e,n,r){var i=e==="clippingParents"?iE(t):[].concat(e),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(u,l){var c=Zl(t,l,r);return u.top=Ln(c.top,u.top),u.right=rs(c.right,u.right),u.bottom=rs(c.bottom,u.bottom),u.left=Ln(c.left,u.left),u},Zl(t,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function up(t){var e=t.reference,n=t.element,r=t.placement,i=r?It(r):null,s=r?xr(r):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,u;switch(i){case rt:u={x:o,y:e.y-n.height};break;case xt:u={x:o,y:e.y+e.height};break;case vt:u={x:e.x+e.width,y:a};break;case it:u={x:e.x-n.width,y:a};break;default:u={x:e.x,y:e.y}}var l=i?lu(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(s){case br:u[l]=u[l]-(e[c]/2-n[c]/2);break;case Xr:u[l]=u[l]+(e[c]/2-n[c]/2);break}}return u}function Qr(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,s=n.strategy,o=s===void 0?t.strategy:s,a=n.boundary,u=a===void 0?Ty:a,l=n.rootBoundary,c=l===void 0?Qf:l,d=n.elementContext,f=d===void 0?Ar:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,y=sp(typeof g!="number"?g:op(g,li)),v=f===Ar?ky:Ar,_=t.rects.popper,b=t.elements[h?v:f],O=sE(Vn(b)?b:b.contextElement||wn(t.elements.popper),u,c,o),x=Er(t.elements.reference),R=up({reference:x,element:_,placement:i}),P=Ea(Object.assign({},_,R)),k=f===Ar?P:x,$={top:O.top-k.top+y.top,bottom:k.bottom-O.bottom+y.bottom,left:O.left-k.left+y.left,right:k.right-O.right+y.right},G=t.modifiersData.offset;if(f===Ar&&G){var Z=G[i];Object.keys($).forEach(function(W){var Q=[vt,xt].indexOf(W)>=0?1:-1,J=[rt,xt].indexOf(W)>=0?"y":"x";$[W]+=Z[J]*Q})}return $}function oE(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?ep:u,c=xr(r),d=c?a?Gl:Gl.filter(function(h){return xr(h)===c}):li,f=d.filter(function(h){return l.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=Qr(t,{placement:m,boundary:i,rootBoundary:s,padding:o})[It(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function aE(t){if(It(t)===ou)return[];var e=Bi(t);return[Jl(t),e,Jl(e)]}function uE(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,g=e.options.placement,y=It(g),v=y===g,_=u||(v||!h?[Bi(g)]:aE(g)),b=[g].concat(_).reduce(function(xe,ee){return xe.concat(It(ee)===ou?oE(e,{placement:ee,boundary:c,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:m}):ee)},[]),O=e.rects.reference,x=e.rects.popper,R=new Map,P=!0,k=b[0],$=0;$=0,J=Q?"width":"height",re=Qr(e,{placement:G,boundary:c,rootBoundary:d,altBoundary:f,padding:l}),E=Q?W?vt:it:W?xt:rt;O[J]>x[J]&&(E=Bi(E));var w=Bi(E),A=[];if(s&&A.push(re[Z]<=0),a&&A.push(re[E]<=0,re[w]<=0),A.every(function(xe){return xe})){k=G,P=!1;break}R.set(G,A)}if(P)for(var D=h?3:1,F=function(ee){var ae=b.find(function(Ze){var Oe=R.get(Ze);if(Oe)return Oe.slice(0,ee).every(function(Xe){return Xe})});if(ae)return k=ae,"break"},K=D;K>0;K--){var ue=F(K);if(ue==="break")break}e.placement!==k&&(e.modifiersData[r]._skip=!0,e.placement=k,e.reset=!0)}}const lE={name:"flip",enabled:!0,phase:"main",fn:uE,requiresIfExists:["offset"],data:{_skip:!1}};function Xl(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ql(t){return[rt,vt,xt,it].some(function(e){return t[e]>=0})}function cE(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=Qr(e,{elementContext:"reference"}),a=Qr(e,{altBoundary:!0}),u=Xl(o,r),l=Xl(a,i,s),c=Ql(u),d=Ql(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const dE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cE};function fE(t,e,n){var r=It(t),i=[it,rt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[it,vt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function pE(t){var e=t.state,n=t.options,r=t.name,i=n.offset,s=i===void 0?[0,0]:i,o=ep.reduce(function(c,d){return c[d]=fE(d,e.rects,s),c},{}),a=o[e.placement],u=a.x,l=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[r]=o}const hE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pE};function mE(t){var e=t.state,n=t.name;e.modifiersData[n]=up({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const gE={name:"popperOffsets",enabled:!0,phase:"read",fn:mE,data:{}};function bE(t){return t==="x"?"y":"x"}function yE(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,g=Qr(e,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),y=It(e.placement),v=xr(e.placement),_=!v,b=lu(y),O=bE(b),x=e.modifiersData.popperOffsets,R=e.rects.reference,P=e.rects.popper,k=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,$=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),G=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if(x){if(s){var W,Q=b==="y"?rt:it,J=b==="y"?xt:vt,re=b==="y"?"height":"width",E=x[b],w=E+g[Q],A=E-g[J],D=p?-P[re]/2:0,F=v===br?R[re]:P[re],K=v===br?-P[re]:-R[re],ue=e.elements.arrow,xe=p&&ue?uu(ue):{width:0,height:0},ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ip(),ae=ee[Q],Ze=ee[J],Oe=$r(0,R[re],xe[re]),Xe=_?R[re]/2-D-Oe-ae-$.mainAxis:F-Oe-ae-$.mainAxis,Qe=_?-R[re]/2+D+Oe+Ze+$.mainAxis:K+Oe+Ze+$.mainAxis,at=e.elements.arrow&&ci(e.elements.arrow),kt=at?b==="y"?at.clientTop||0:at.clientLeft||0:0,se=(W=G?.[b])!=null?W:0,Ne=E+Xe-se-kt,Ue=E+Qe-se,ce=$r(p?rs(w,Ne):w,E,p?Ln(A,Ue):A);x[b]=ce,Z[b]=ce-E}if(a){var Ft,ut=b==="x"?rt:it,M=b==="x"?xt:vt,Ve=x[O],X=O==="y"?"height":"width",V=Ve+g[ut],Pe=Ve-g[M],ve=[rt,it].indexOf(y)!==-1,lt=(Ft=G?.[O])!=null?Ft:0,ct=ve?V:Ve-R[X]-P[X]-lt+$.altAxis,S=ve?Ve+R[X]+P[X]-lt-$.altAxis:Pe,T=p&&ve?Hy(ct,Ve,S):$r(p?ct:V,Ve,p?S:Pe);x[O]=T,Z[O]=T-Ve}e.modifiersData[r]=Z}}const EE={name:"preventOverflow",enabled:!0,phase:"main",fn:yE,requiresIfExists:["offset"]};function xE(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function vE(t){return t===ot(t)||!Et(t)?cu(t):xE(t)}function wE(t){var e=t.getBoundingClientRect(),n=yr(e.width)/t.offsetWidth||1,r=yr(e.height)/t.offsetHeight||1;return n!==1||r!==1}function SE(t,e,n){n===void 0&&(n=!1);var r=Et(e),i=Et(e)&&wE(e),s=wn(e),o=Er(t,i,n),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($t(e)!=="body"||fu(s))&&(a=vE(e)),Et(e)?(u=Er(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=du(s))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function _E(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var u=e.get(a);u&&i(u)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),r}function NE(t){var e=_E(t);return By.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function TE(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function kE(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var ec={placement:"bottom",modifiers:[],strategy:"absolute"};function tc(){for(var t=arguments.length,e=new Array(t),n=0;n-1}function pp(t,e){return typeof t=="function"?t.apply(void 0,e):t}function nc(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function DE(t){return t.split(/\s+/).filter(Boolean)}function nr(t){return[].concat(t)}function rc(t,e){t.indexOf(e)===-1&&t.push(e)}function IE(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function LE(t){return t.split("-")[0]}function is(t){return[].slice.call(t)}function ic(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Ur(){return document.createElement("div")}function no(t){return["Element","Fragment"].some(function(e){return pu(t,e)})}function PE(t){return pu(t,"NodeList")}function BE(t){return pu(t,"MouseEvent")}function $E(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function FE(t){return no(t)?[t]:PE(t)?is(t):Array.isArray(t)?t:is(document.querySelectorAll(t))}function Ro(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function sc(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function UE(t){var e,n=nr(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function zE(t,e){var n=e.clientX,r=e.clientY;return t.every(function(i){var s=i.popperRect,o=i.popperState,a=i.props,u=a.interactiveBorder,l=LE(o.placement),c=o.modifiersData.offset;if(!c)return!0;var d=l==="bottom"?c.top.y:0,f=l==="top"?c.bottom.y:0,p=l==="right"?c.left.x:0,h=l==="left"?c.right.x:0,m=s.top-r+d>u,g=r-s.bottom-f>u,y=s.left-n+p>u,v=n-s.right-h>u;return m||g||y||v})}function Do(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){t[r](i,n)})}function oc(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Rt={isTouch:!1},ac=0;function HE(){Rt.isTouch||(Rt.isTouch=!0,window.performance&&document.addEventListener("mousemove",hp))}function hp(){var t=performance.now();t-ac<20&&(Rt.isTouch=!1,document.removeEventListener("mousemove",hp)),ac=t}function qE(){var t=document.activeElement;if($E(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function VE(){document.addEventListener("touchstart",HE,_n),window.addEventListener("blur",qE)}var KE=typeof window<"u"&&typeof document<"u",WE=KE?!!window.msCrypto:!1,GE={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},jE={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Nt=Object.assign({appendTo:fp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},GE,jE),YE=Object.keys(Nt),JE=function(e){var n=Object.keys(e);n.forEach(function(r){Nt[r]=e[r]})};function mp(t){var e=t.plugins||[],n=e.reduce(function(r,i){var s=i.name,o=i.defaultValue;if(s){var a;r[s]=t[s]!==void 0?t[s]:(a=Nt[s])!=null?a:o}return r},{});return Object.assign({},t,n)}function ZE(t,e){var n=e?Object.keys(mp(Object.assign({},Nt,{plugins:e}))):YE,r=n.reduce(function(i,s){var o=(t.getAttribute("data-tippy-"+s)||"").trim();if(!o)return i;if(s==="content")i[s]=o;else try{i[s]=JSON.parse(o)}catch{i[s]=o}return i},{});return r}function uc(t,e){var n=Object.assign({},e,{content:pp(e.content,[t])},e.ignoreAttributes?{}:ZE(t,e.plugins));return n.aria=Object.assign({},Nt.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}var XE=function(){return"innerHTML"};function xa(t,e){t[XE()]=e}function lc(t){var e=Ur();return t===!0?e.className=cp:(e.className=dp,no(t)?e.appendChild(t):xa(e,t)),e}function cc(t,e){no(e.content)?(xa(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?xa(t,e.content):t.textContent=e.content)}function va(t){var e=t.firstElementChild,n=is(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(lp)}),arrow:n.find(function(r){return r.classList.contains(cp)||r.classList.contains(dp)}),backdrop:n.find(function(r){return r.classList.contains(RE)})}}function gp(t){var e=Ur(),n=Ur();n.className=ME,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ur();r.className=lp,r.setAttribute("data-state","hidden"),cc(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props);function i(s,o){var a=va(e),u=a.box,l=a.content,c=a.arrow;o.theme?u.setAttribute("data-theme",o.theme):u.removeAttribute("data-theme"),typeof o.animation=="string"?u.setAttribute("data-animation",o.animation):u.removeAttribute("data-animation"),o.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?u.setAttribute("role",o.role):u.removeAttribute("role"),(s.content!==o.content||s.allowHTML!==o.allowHTML)&&cc(l,t.props),o.arrow?c?s.arrow!==o.arrow&&(u.removeChild(c),u.appendChild(lc(o.arrow))):u.appendChild(lc(o.arrow)):c&&u.removeChild(c)}return{popper:e,onUpdate:i}}gp.$$tippy=!0;var QE=1,xi=[],Io=[];function e2(t,e){var n=uc(t,Object.assign({},Nt,mp(ic(e)))),r,i,s,o=!1,a=!1,u=!1,l=!1,c,d,f,p=[],h=nc(Ne,n.interactiveDebounce),m,g=QE++,y=null,v=IE(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:g,reference:t,popper:Ur(),popperInstance:y,props:n,state:_,plugins:v,clearDelayTimeouts:ct,setProps:S,setContent:T,show:I,hide:z,hideWithInteractivity:oe,enable:ve,disable:lt,unmount:we,destroy:Tr};if(!n.render)return b;var O=n.render(b),x=O.popper,R=O.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,t._tippy=b,x._tippy=b;var P=v.map(function(N){return N.fn(b)}),k=t.hasAttribute("aria-expanded");return at(),D(),E(),w("onCreate",[b]),n.showOnCreate&&V(),x.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",h)}),b;function $(){var N=b.props.touch;return Array.isArray(N)?N:[N,0]}function G(){return $()[0]==="hold"}function Z(){var N;return!!((N=b.props.render)!=null&&N.$$tippy)}function W(){return m||t}function Q(){var N=W().parentNode;return N?UE(N):document}function J(){return va(x)}function re(N){return b.state.isMounted&&!b.state.isVisible||Rt.isTouch||c&&c.type==="focus"?0:Mo(b.props.delay,N?0:1,Nt.delay)}function E(N){N===void 0&&(N=!1),x.style.pointerEvents=b.props.interactive&&!N?"":"none",x.style.zIndex=""+b.props.zIndex}function w(N,q,Y){if(Y===void 0&&(Y=!0),P.forEach(function(le){le[N]&&le[N].apply(le,q)}),Y){var de;(de=b.props)[N].apply(de,q)}}function A(){var N=b.props.aria;if(N.content){var q="aria-"+N.content,Y=x.id,de=nr(b.props.triggerTarget||t);de.forEach(function(le){var Ke=le.getAttribute(q);if(b.state.isVisible)le.setAttribute(q,Ke?Ke+" "+Y:Y);else{var dt=Ke&&Ke.replace(Y,"").trim();dt?le.setAttribute(q,dt):le.removeAttribute(q)}})}}function D(){if(!(k||!b.props.aria.expanded)){var N=nr(b.props.triggerTarget||t);N.forEach(function(q){b.props.interactive?q.setAttribute("aria-expanded",b.state.isVisible&&q===W()?"true":"false"):q.removeAttribute("aria-expanded")})}}function F(){Q().removeEventListener("mousemove",h),xi=xi.filter(function(N){return N!==h})}function K(N){if(!(Rt.isTouch&&(u||N.type==="mousedown"))){var q=N.composedPath&&N.composedPath()[0]||N.target;if(!(b.props.interactive&&oc(x,q))){if(nr(b.props.triggerTarget||t).some(function(Y){return oc(Y,q)})){if(Rt.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else w("onClickOutside",[b,N]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),a=!0,setTimeout(function(){a=!1}),b.state.isMounted||ae())}}}function ue(){u=!0}function xe(){u=!1}function ee(){var N=Q();N.addEventListener("mousedown",K,!0),N.addEventListener("touchend",K,_n),N.addEventListener("touchstart",xe,_n),N.addEventListener("touchmove",ue,_n)}function ae(){var N=Q();N.removeEventListener("mousedown",K,!0),N.removeEventListener("touchend",K,_n),N.removeEventListener("touchstart",xe,_n),N.removeEventListener("touchmove",ue,_n)}function Ze(N,q){Xe(N,function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&q()})}function Oe(N,q){Xe(N,q)}function Xe(N,q){var Y=J().box;function de(le){le.target===Y&&(Do(Y,"remove",de),q())}if(N===0)return q();Do(Y,"remove",d),Do(Y,"add",de),d=de}function Qe(N,q,Y){Y===void 0&&(Y=!1);var de=nr(b.props.triggerTarget||t);de.forEach(function(le){le.addEventListener(N,q,Y),p.push({node:le,eventType:N,handler:q,options:Y})})}function at(){G()&&(Qe("touchstart",se,{passive:!0}),Qe("touchend",Ue,{passive:!0})),DE(b.props.trigger).forEach(function(N){if(N!=="manual")switch(Qe(N,se),N){case"mouseenter":Qe("mouseleave",Ue);break;case"focus":Qe(WE?"focusout":"blur",ce);break;case"focusin":Qe("focusout",ce);break}})}function kt(){p.forEach(function(N){var q=N.node,Y=N.eventType,de=N.handler,le=N.options;q.removeEventListener(Y,de,le)}),p=[]}function se(N){var q,Y=!1;if(!(!b.state.isEnabled||Ft(N)||a)){var de=((q=c)==null?void 0:q.type)==="focus";c=N,m=N.currentTarget,D(),!b.state.isVisible&&BE(N)&&xi.forEach(function(le){return le(N)}),N.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||o)&&b.props.hideOnClick!==!1&&b.state.isVisible?Y=!0:V(N),N.type==="click"&&(o=!Y),Y&&!de&&Pe(N)}}function Ne(N){var q=N.target,Y=W().contains(q)||x.contains(q);if(!(N.type==="mousemove"&&Y)){var de=X().concat(x).map(function(le){var Ke,dt=le._tippy,Gn=(Ke=dt.popperInstance)==null?void 0:Ke.state;return Gn?{popperRect:le.getBoundingClientRect(),popperState:Gn,props:n}:null}).filter(Boolean);zE(de,N)&&(F(),Pe(N))}}function Ue(N){var q=Ft(N)||b.props.trigger.indexOf("click")>=0&&o;if(!q){if(b.props.interactive){b.hideWithInteractivity(N);return}Pe(N)}}function ce(N){b.props.trigger.indexOf("focusin")<0&&N.target!==W()||b.props.interactive&&N.relatedTarget&&x.contains(N.relatedTarget)||Pe(N)}function Ft(N){return Rt.isTouch?G()!==N.type.indexOf("touch")>=0:!1}function ut(){M();var N=b.props,q=N.popperOptions,Y=N.placement,de=N.offset,le=N.getReferenceClientRect,Ke=N.moveTransition,dt=Z()?va(x).arrow:null,Gn=le?{getBoundingClientRect:le,contextElement:le.contextElement||W()}:t,Cu={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(di){var jn=di.state;if(Z()){var Mh=J(),uo=Mh.box;["placement","reference-hidden","escaped"].forEach(function(fi){fi==="placement"?uo.setAttribute("data-placement",jn.placement):jn.attributes.popper["data-popper-"+fi]?uo.setAttribute("data-"+fi,""):uo.removeAttribute("data-"+fi)}),jn.attributes.popper={}}}},Sn=[{name:"offset",options:{offset:de}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ke}},Cu];Z()&&dt&&Sn.push({name:"arrow",options:{element:dt,padding:3}}),Sn.push.apply(Sn,q?.modifiers||[]),b.popperInstance=CE(Gn,x,Object.assign({},q,{placement:Y,onFirstUpdate:f,modifiers:Sn}))}function M(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Ve(){var N=b.props.appendTo,q,Y=W();b.props.interactive&&N===fp||N==="parent"?q=Y.parentNode:q=pp(N,[Y]),q.contains(x)||q.appendChild(x),b.state.isMounted=!0,ut()}function X(){return is(x.querySelectorAll("[data-tippy-root]"))}function V(N){b.clearDelayTimeouts(),N&&w("onTrigger",[b,N]),ee();var q=re(!0),Y=$(),de=Y[0],le=Y[1];Rt.isTouch&&de==="hold"&&le&&(q=le),q?r=setTimeout(function(){b.show()},q):b.show()}function Pe(N){if(b.clearDelayTimeouts(),w("onUntrigger",[b,N]),!b.state.isVisible){ae();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(N.type)>=0&&o)){var q=re(!1);q?i=setTimeout(function(){b.state.isVisible&&b.hide()},q):s=requestAnimationFrame(function(){b.hide()})}}function ve(){b.state.isEnabled=!0}function lt(){b.hide(),b.state.isEnabled=!1}function ct(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(s)}function S(N){if(!b.state.isDestroyed){w("onBeforeUpdate",[b,N]),kt();var q=b.props,Y=uc(t,Object.assign({},q,ic(N),{ignoreAttributes:!0}));b.props=Y,at(),q.interactiveDebounce!==Y.interactiveDebounce&&(F(),h=nc(Ne,Y.interactiveDebounce)),q.triggerTarget&&!Y.triggerTarget?nr(q.triggerTarget).forEach(function(de){de.removeAttribute("aria-expanded")}):Y.triggerTarget&&t.removeAttribute("aria-expanded"),D(),E(),R&&R(q,Y),b.popperInstance&&(ut(),X().forEach(function(de){requestAnimationFrame(de._tippy.popperInstance.forceUpdate)})),w("onAfterUpdate",[b,N])}}function T(N){b.setProps({content:N})}function I(){var N=b.state.isVisible,q=b.state.isDestroyed,Y=!b.state.isEnabled,de=Rt.isTouch&&!b.props.touch,le=Mo(b.props.duration,0,Nt.duration);if(!(N||q||Y||de)&&!W().hasAttribute("disabled")&&(w("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,Z()&&(x.style.visibility="visible"),E(),ee(),b.state.isMounted||(x.style.transition="none"),Z()){var Ke=J(),dt=Ke.box,Gn=Ke.content;Ro([dt,Gn],0)}f=function(){var Sn;if(!(!b.state.isVisible||l)){if(l=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,Z()&&b.props.animation){var ao=J(),di=ao.box,jn=ao.content;Ro([di,jn],le),sc([di,jn],"visible")}A(),D(),rc(Io,b),(Sn=b.popperInstance)==null||Sn.forceUpdate(),w("onMount",[b]),b.props.animation&&Z()&&Oe(le,function(){b.state.isShown=!0,w("onShown",[b])})}},Ve()}}function z(){var N=!b.state.isVisible,q=b.state.isDestroyed,Y=!b.state.isEnabled,de=Mo(b.props.duration,1,Nt.duration);if(!(N||q||Y)&&(w("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,l=!1,o=!1,Z()&&(x.style.visibility="hidden"),F(),ae(),E(!0),Z()){var le=J(),Ke=le.box,dt=le.content;b.props.animation&&(Ro([Ke,dt],de),sc([Ke,dt],"hidden"))}A(),D(),b.props.animation?Z()&&Ze(de,b.unmount):b.unmount()}}function oe(N){Q().addEventListener("mousemove",h),rc(xi,h),h(N)}function we(){b.state.isVisible&&b.hide(),b.state.isMounted&&(M(),X().forEach(function(N){N._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),Io=Io.filter(function(N){return N!==b}),b.state.isMounted=!1,w("onHidden",[b]))}function Tr(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),kt(),delete t._tippy,b.state.isDestroyed=!0,w("onDestroy",[b]))}}function Nr(t,e){e===void 0&&(e={});var n=Nt.plugins.concat(e.plugins||[]);VE();var r=Object.assign({},e,{plugins:n}),i=FE(t),s=i.reduce(function(o,a){var u=a&&e2(a,r);return u&&o.push(u),o},[]);return no(t)?s[0]:s}Nr.defaultProps=Nt;Nr.setDefaultProps=JE;Nr.currentInput=Rt;Object.assign({},tp,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});Nr.setDefaultProps({render:gp});const t2=t=>{const{items:e}=t,n=e.map(d=>Se("button",{className:"",onClick:()=>{t.command(d)}},d.title)),r=Se("div",{className:"ud-root slash-menu"},n);let i=0;const s=d=>{n.forEach((f,p)=>{d===p?f.classList.add("selected"):f.classList.remove("selected")})};s(0);const o=()=>{i=i===0?n.length-1:i-1,s(i)},a=()=>{i=i===n.length-1?0:i+1,s(i)},u=()=>{t.command(e[i])};return r.append(...n),{dom:r,updateProps:d=>{},onKeyDown:({event:d})=>d.key==="ArrowUp"?(o(),!0):d.key==="ArrowDown"?(a(),!0):d.key==="Enter"?(u(),!0):!1,destroy:()=>r.remove()}},n2=()=>{const t=document.createElement("input");return t.type="file",t.accept="image/*",new Promise((e,n)=>{t.addEventListener("change",()=>{const r=t.files;e(r)}),t.click()})},r2={items:({query:t})=>[{title:"Heading 1",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{title:"Heading 2",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{title:"CodeBlock",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).setCodeBlock().run()}},{title:"Image",command:async({editor:e,range:n})=>{const r=await n2();r&&[...r].forEach(i=>{const s=URL.createObjectURL(i);e.chain().focus().deleteRange(n).setImage({src:s,alt:i.name}).run()})}}].filter(e=>e.title.toLowerCase().startsWith(t.toLowerCase())).slice(0,10),render:()=>{let t,e;return{onStart:n=>{t=t2(n),console.log(n,"props"),n.clientRect&&(e=Nr("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:t.dom,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"}))},onUpdate(n){t.updateProps(n),n.clientRect&&e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(n){return n.event.key==="Escape"?(e[0].hide(),!0):t?.onKeyDown(n)},onExit(){e[0].destroy(),t.destroy()}}}},i2=ke.create({name:"SlashCommands",addOptions(){return{suggestion:{char:"/",command:({editor:t,range:e,props:n})=>{n.command({editor:t,range:e})}}}},addProseMirrorPlugins(){return[Ny({editor:this.editor,...this.options.suggestion})]}}),s2=()=>i2.configure({suggestion:r2});class o2{constructor({editor:e,element:n,view:r,tippyOptions:i={},updateDelay:s=250,shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:a,state:u,from:l,to:c})=>{const{doc:d,selection:f}=u,{empty:p}=f,h=!d.textBetween(l,c).length&&eu(u.selection),m=this.element.contains(document.activeElement);return!(!(a.hasFocus()||m)||p||h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var u;if(this.preventHide){this.preventHide=!1;return}a?.relatedTarget&&(!((u=this.element.parentNode)===null||u===void 0)&&u.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,u)=>{const l=!u?.selection.eq(a.state.selection),c=!u?.doc.eq(a.state.doc);!l&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,l,c,u)},this.updateDelay))},this.updateHandler=(a,u,l,c)=>{var d,f,p;const{state:h,composing:m}=a,{selection:g}=h;if(m||!u&&!l)return;this.createTooltip();const{ranges:v}=g,_=Math.min(...v.map(x=>x.$from.pos)),b=Math.max(...v.map(x=>x.$to.pos));if(!((d=this.shouldShow)===null||d===void 0?void 0:d.call(this,{editor:this.editor,view:a,state:h,oldState:c,from:_,to:b}))){this.hide();return}(f=this.tippy)===null||f===void 0||f.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(Ff(h.selection)){let x=a.nodeDOM(_);const R=x.dataset.nodeViewWrapper?x:x.querySelector("[data-node-view-wrapper]");if(R&&(x=R.firstChild),x)return x.getBoundingClientRect()}return n1(a,_,b)})}),this.show()},this.editor=e,this.element=n,this.view=r,this.updateDelay=s,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=Nr(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){const{state:r}=e,i=r.selection.from!==r.selection.to;if(this.updateDelay>0&&i){this.handleDebouncedUpdate(e,n);return}const s=!n?.selection.eq(e.state.selection),o=!n?.doc.eq(e.state.doc);this.updateHandler(e,s,o,n)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const a2=t=>new Ee({key:typeof t.pluginKey=="string"?new Le(t.pluginKey):t.pluginKey,view:e=>new o2({view:e,...t})}),u2=ke.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[a2({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}}),l2=t=>Se("div",{className:"ud-root bubble-menu"},[Se("button",{className:"",onClick:e=>{const n=t();n.chain().focus().toggleBold().run(),n.isActive("bold")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"B"),Se("button",{onClick:e=>{const n=t();n.chain().focus().toggleItalic().run(),n.isActive("italic")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"I"),Se("button",{onClick:e=>{const n=t();n.chain().focus().toggleUnderline().run(),n.isActive("underline")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"U"),Se("button",{onClick:e=>{const n=t();n.chain().focus().toggleStrike().run(),n.isActive("strike")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"S"),Se("button",{onClick:e=>{const n=t();n.chain().focus().toggleCode().run(),n.isActive("code")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"<>"),Se("button",{onClick:e=>{const n=t();if(n.isActive("link"))n.chain().focus().unsetLink().run();else{const i=prompt("Input link");if(!i)return;n.chain().focus().setLink({href:i,target:"_blank",rel:"noreferer"}).run()}n.isActive("link")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"🔗")]),c2=(t,e)=>{const n=l2(e);return t.appendChild(n),u2.configure({element:n,shouldShow({editor:r,state:i}){const{selection:s}=i,{$from:o,$to:a}=s,u=o.sameParent(a)&&o.parent.isTextblock&&!o.parent.textContent,l=o.sameParent(a)&&o.parent.type.name==="codeBlock";return!(s.empty||u||l)}})},d2=/^```([a-z]+)?[\s\n]$/,f2=/^~~~([a-z]+)?[\s\n]$/,bp=Je.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,s=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(o=>o.startsWith(n)).map(o=>o.replace(n,""))[0];return s||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",Te(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const s=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(` +`,textSerializers:r={}}=e||{};return Yb(this.state.doc,{blockSeparator:n,textSerializers:{...Df(this.schema),...r}})}get isEmpty(){return Qs(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,n))||null}$nodes(e,n){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new Tn(n,this)}get $doc(){return this.$pos(0)}}function gr(t){return new Js({find:t.find,handler:({state:e,range:n,match:r})=>{const i=ie(t.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:s}=e,o=r[r.length-1],a=r[0];if(o){const u=a.search(/\S/),l=n.from+a.indexOf(o),c=l+o.length;if(ru(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(m=>m===t.type&&m!==p.mark.type)).filter(p=>p.to>l).length)return null;cn.from&&s.delete(n.from+u,l);const f=n.from+u+o.length;s.addMark(n.from+u,f,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}function Uf(t){return new Js({find:t.find,handler:({state:e,range:n,match:r})=>{const i=ie(t.getAttributes,void 0,r)||{},{tr:s}=e,o=n.from;let a=n.to;const u=t.type.create(i);if(r[1]){const l=r[0].lastIndexOf(r[1]);let c=o+l;c>a?c=a:a=c+r[1].length;const d=r[0][r[0].length-1];s.insertText(d,o+r[0].length-1),s.replaceWith(c,a,u)}else if(r[0]){const l=t.type.isInline?o:o-1;s.insert(l,t.type.create(i)).delete(s.mapping.map(o),s.mapping.map(a))}s.scrollIntoView()}})}function ma(t){return new Js({find:t.find,handler:({state:e,range:n,match:r})=>{const i=e.doc.resolve(n.from),s=ie(t.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,s)}})}function Zr(t){return new Js({find:t.find,handler:({state:e,range:n,match:r,chain:i})=>{const s=ie(t.getAttributes,void 0,r)||{},o=e.tr.delete(n.from,n.to),u=o.doc.resolve(n.from).blockRange(),l=u&&Pa(u,t.type,s);if(!l)return null;if(o.wrap(u,l),t.keepMarks&&t.editor){const{selection:d,storedMarks:f}=e,{splittableMarks:p}=t.editor.extensionManager,h=f||d.$to.parentOffset&&d.$from.marks();if(h){const m=h.filter(g=>p.includes(g.type.name));o.ensureMarks(m)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,s).run()}const c=o.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&En(o.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,c))&&o.join(n.from-1)}})}class Je{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ie(U(this,"addOptions",{name:this.name}))),this.storage=ie(U(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Je(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Zs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Je(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=ie(U(n,"addOptions",{name:n.name})),n.storage=ie(U(n,"addStorage",{name:n.name,options:n.options})),n}}function qn(t){return new Wg({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:i})=>{const s=ie(t.getAttributes,void 0,r,i);if(s===!1||s===null)return null;const{tr:o}=e,a=r[r.length-1],u=r[0];let l=n.to;if(a){const c=u.search(/\S/),d=n.from+u.indexOf(a),f=d+a.length;if(ru(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===t.type&&g!==h.mark.type)).filter(h=>h.to>d).length)return null;fn.from&&o.delete(n.from+c,d),l=n.from+c+a.length,o.addMark(n.from+c,l,t.type.create(s||{})),o.removeStoredMark(t.type)}}})}function R1(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const Se=(t,e={},n=[])=>{const r=document.createElement(t);return(Array.isArray(n)?n:[n]).forEach(s=>{if(s instanceof HTMLElement){r.appendChild(s);return}r.textContent=`${s}`}),Object.entries(e).forEach(([s,o])=>{if(s==="className"){r.className=o;return}if(s.startsWith("on")){const a=s.replace("on","").toLowerCase();r.addEventListener(a,o);return}r.setAttribute(s,o)}),r},D1=(t,e)=>Se("div",{className:"ud-root front-handle","data-front-handle":"",draggable:!0},[Se("button",{"data-front-handle":"",onClick:()=>{const r=e();if(!r)return;const{state:i,dispatch:s}=t,{tr:o}=i,a=t.posAtDOM(r,0),u=i.doc.nodeAt(a);if(!u)return;const l=a+u.nodeSize,c=i.schema.nodes.paragraph.create({},i.schema.text("/")),d=l+c.nodeSize;let f=o.insert(l,c);f=f.setSelection(j.create(f.doc,d)),s(f),t.focus()}},"+"),Se("button",{className:"drag-handle","data-drag-handle":"","data-front-handle":""},"")]);function I1(t){const e=t.getBoundingClientRect(),n=t.closest('[role="dialog"]');if(n&&window.getComputedStyle(n).transform!=="none"){const r=n.getBoundingClientRect();return{top:e.top-r.top,left:e.left-r.left,width:e.width}}return{top:e.top,left:e.left,width:e.width}}function Pl(t){return document.elementsFromPoint(t.x,t.y).find(e=>e.parentElement?.matches?.(".ProseMirror")||e.matches(["li","p:not(:first-child)","pre","blockquote","h1, h2, h3, h4, h5, h6"].join(", ")))}function L1(t,e,n){const r=t.getBoundingClientRect();return e.posAtCoords({left:r.left+50+n.handleWidth,top:r.top+1})?.inside}function Bl(t,e){const n=e.state.doc.resolve(t);return n.depth>1?n.before(n.depth):t}function P1(t){let e="";function n(u,l){if(l.focus(),!u.dataTransfer)return;const c=Pl({x:u.clientX+50+t.handleWidth,y:u.clientY});if(console.log(c,"start"),!(c instanceof Element))return;let d=L1(c,l,t);if(d==null||d<0)return;d=Bl(d,l);const{from:f,to:p}=l.state.selection,h=f-p,m=Bl(f,l);let g=!1;const y=l.state.doc.resolve(m);if(y.node().type.name==="doc")g=!0;else{const x=H.create(l.state.doc,y.before());g=!(d+1>=x.$from.pos&&d<=x.$to.pos)}let v=l.state.selection;if(!g&&h!==0&&!(l.state.selection instanceof H)){const x=H.create(l.state.doc,p-1);v=j.create(l.state.doc,d,x.$to.pos)}else if(v=H.create(l.state.doc,d),v.node.type.name==="tableRow"){let x=l.state.doc.resolve(v.from);v=H.create(l.state.doc,x.before())}l.dispatch(l.state.tr.setSelection(v)),l.state.selection instanceof H&&l.state.selection.node.type.name==="listItem"&&(e=c.parentElement.tagName);const _=l.state.selection.content(),{dom:b,text:O}=ug(l,_);u.dataTransfer.clearData(),u.dataTransfer.setData("text/html",b.innerHTML),u.dataTransfer.setData("text/plain",O),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage(c,0,0),l.dragging={slice:_,move:u.ctrlKey}}let r=null,i;function s(){r&&r.classList.add("hide")}function o(){r&&r.classList.remove("hide")}function a(u){if(u.target instanceof Element){const l=!!u.target.closest(".tiptap.ProseMirror"),c=!!u.target.attributes.getNamedItem("data-drag-handle"),d=!!u.target.attributes.getNamedItem("data-front-handle");if(l||c||d)return}s()}return new Ee({key:new Le(t.pluginKey),view:u=>{const l=t.dragHandleSelector?document.querySelector(t.dragHandleSelector):null;r=D1(u,()=>i);function c(f){n(f,u)}r.addEventListener("dragstart",c);function d(f){s();let p=window.scrollY;f.clientY{l||r?.remove?.(),r?.removeEventListener("drag",d),r?.removeEventListener("dragstart",c),r=null,u?.dom?.parentElement?.removeEventListener("mouseout",a)}}},props:{handleDOMEvents:{mousemove:(u,l)=>{if(!u.editable)return;const c=Pl({x:l.clientX+50+t.handleWidth,y:l.clientY}),d=c?.closest(".not-draggable");if(!(c instanceof Element)||c.matches("ul, ol")||d){s();return}i=c;const f=window.getComputedStyle(c),p=parseInt(f.lineHeight,10),h=isNaN(p)?parseInt(f.fontSize)*1.2:p,m=parseInt(f.paddingTop,10),g=I1(c);g.top+=(h-24)/2,g.top+=m,c.matches("ul:not([data-type=taskList]) li, ol li")&&(g.left-=t.liPreWidth??t.handleWidth),g.width=t.handleWidth,r&&(r.style.left=`${g.left-g.width}px`,r.style.top=`${g.top}px`,o())},keydown:()=>{s()},mousewheel:()=>{s()},dragstart:u=>{u.dom.classList.add("dragging")},drop:(u,l)=>{u.dom.classList.remove("dragging"),s();let c=null;const d=u.posAtCoords({left:l.clientX,top:l.clientY});if(!d||(u.state.selection instanceof H&&(c=u.state.selection.node),!c))return;const p=u.state.doc.resolve(d.pos).parent.type.name==="listItem";if(u.state.selection instanceof H&&u.state.selection.node.type.name==="listItem"&&!p&&e=="OL"){const h=u.state.schema.nodes.orderedList?.createAndFill(null,c),m=new B(C.from(h),0,0);u.dragging={slice:m,move:l.ctrlKey}}},dragend:u=>{u.dom.classList.remove("dragging")}}}})}const B1=ke.create({name:"globalDragHandle",addOptions(){return{handleWidth:68,scrollTreshold:100,liPreWidth:40}},addProseMirrorPlugins(){return[P1({pluginKey:"globalFrontHandle",handleWidth:this.options.handleWidth,scrollTreshold:this.options.scrollTreshold,dragHandleSelector:this.options.dragHandleSelector,liPreWidth:this.options.liPreWidth})]}}),$1=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),F1=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var Oo;const U1=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),z1=(Oo=String.fromCodePoint)!==null&&Oo!==void 0?Oo:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function H1(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=U1.get(t))!==null&&e!==void 0?e:t}var Me;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const q1=32;var un;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(un||(un={}));function ga(t){return t>=Me.ZERO&&t<=Me.NINE}function V1(t){return t>=Me.UPPER_A&&t<=Me.UPPER_F||t>=Me.LOWER_A&&t<=Me.LOWER_F}function K1(t){return t>=Me.UPPER_A&&t<=Me.UPPER_Z||t>=Me.LOWER_A&&t<=Me.LOWER_Z||ga(t)}function W1(t){return t===Me.EQUALS||K1(t)}var Ae;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Ae||(Ae={}));var nn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(nn||(nn={}));class G1{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Ae.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=nn.Strict}startEntity(e){this.decodeMode=e,this.state=Ae.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Ae.EntityStart:return e.charCodeAt(n)===Me.NUM?(this.state=Ae.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Ae.NamedEntity,this.stateNamedEntity(e,n));case Ae.NumericStart:return this.stateNumericStart(e,n);case Ae.NumericDecimal:return this.stateNumericDecimal(e,n);case Ae.NumericHex:return this.stateNumericHex(e,n);case Ae.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|q1)===Me.LOWER_X?(this.state=Ae.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Ae.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(e.substr(n,s),i),this.consumed+=s}}stateNumericHex(e,n){const r=n;for(;n>14;for(;n>14,s!==0){if(o===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==nn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,i=(r[n]&un.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[e]&~un.VALUE_LENGTH:i[e+1],r),n===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case Ae.NamedEntity:return this.result!==0&&(this.decodeMode!==nn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ae.NumericDecimal:return this.emitNumericEntity(0,2);case Ae.NumericHex:return this.emitNumericEntity(0,3);case Ae.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ae.EntityStart:return 0}}}function zf(t){let e="";const n=new G1(t,r=>e+=z1(r));return function(i,s){let o=0,a=0;for(;(a=i.indexOf("&",a))>=0;){e+=i.slice(o,a),n.startEntity(s);const l=n.write(i,a+1);if(l<0){o=a+n.end();break}o=a+l,a=l===0?o+1:o}const u=e+i.slice(o);return e="",u}}function j1(t,e,n,r){const i=(e&un.BRANCH_LENGTH)>>7,s=e&un.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=i?-1:t[n+u]-1}let o=n,a=o+i-1;for(;o<=a;){const u=o+a>>>1,l=t[u];if(lr)a=u-1;else return t[u+i]}return-1}const Y1=zf($1);zf(F1);function J1(t,e=nn.Legacy){return Y1(t,e)}var me;(function(t){t.Attribute="attribute",t.Pseudo="pseudo",t.PseudoElement="pseudo-element",t.Tag="tag",t.Universal="universal",t.Adjacent="adjacent",t.Child="child",t.Descendant="descendant",t.Parent="parent",t.Sibling="sibling",t.ColumnCombinator="column-combinator"})(me||(me={}));var mt;(function(t){t.Any="any",t.Element="element",t.End="end",t.Equals="equals",t.Exists="exists",t.Hyphen="hyphen",t.Not="not",t.Start="start"})(mt||(mt={}));const $l=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Z1=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,X1=new Map([[126,mt.Element],[94,mt.Start],[36,mt.End],[42,mt.Any],[33,mt.Not],[124,mt.Hyphen]]),Q1=new Set(["has","not","matches","is","where","host","host-context"]);function ey(t){switch(t.type){case me.Adjacent:case me.Child:case me.Descendant:case me.Parent:case me.Sibling:case me.ColumnCombinator:return!0;default:return!1}}const ty=new Set(["contains","icontains"]);function ny(t,e,n){const r=parseInt(e,16)-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Or(t){return t.replace(Z1,ny)}function Ao(t){return t===39||t===34}function Fl(t){return t===32||t===9||t===10||t===12||t===13}function ry(t){const e=[],n=Hf(e,`${t}`,0);if(n0&&n0&&ey(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function l(f){if(r.length>0&&r[r.length-1].type===me.Descendant){r[r.length-1].type=f;return}u(),r.push({type:f})}function c(f,p){r.push({type:me.Attribute,name:f,action:p,value:i(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===me.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");t.push(r)}if(s(0),e.length===n)return n;e:for(;n/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\xA0/g," ").replace(/\xAD/g,"­")}var Ul=t=>J1(t);function iy(t,e,n,r){if(typeof e=="function")return e({props:{...n,children:r},attrs:n,children:r,h:t.h,context:t});{let i=!0,s;if(e?e.toLowerCase()==="fragment"?(s=t.document.createDocumentFragment(),i=!1):s=t.document.createElement(e):s=t.document.createElement("div"),n&&i){const o=s;for(let[a,u]of Object.entries(n)){a=a.toString();const l=a.toLowerCase();l==="classname"?o.className=u:l==="on"?Object.entries(u).forEach(([c,d])=>{o.setAttribute(`on${c}`,String(d))}):u!==!1&&u!=null&&(u===!0?o.setAttribute(a,a):o.setAttribute(a,u.toString()))}}if(r)for(const o of r){const a=Array.isArray(o)?[...o]:[o];for(const u of a)u&&u!==!1&&u!=null&&(typeof u!="object"?s.appendChild(t.document.createTextNode(u.toString())):s.appendChild(u))}return s}}function qf(t,e,...n){return typeof t=="object"&&(t="fragment",n=t.children,e=t.attrs),Array.isArray(e)?(n=[e],e={}):e?e.attrs&&(e={...e.attrs,...e},delete e.attrs):e={},{tag:t,attrs:e,children:typeof n[0]=="string"?n:n.flat(Number.POSITIVE_INFINITY)}}function sy(t){return t.h=function(n,r,...i){const{tag:s,attrs:o,children:a}=qf(n,r,i);return iy(t,s,o,a)},t.h}var zl={};function oy(t){let e=zl[t];return e==null&&(e=ry(t),zl[t]=e),e}function ay(t,e,{debug:n=!1}={}){for(const r of oy(t)){const i=(s,o)=>{let a=!1;for(const u of o){const{type:l,name:c,action:d,value:f,_ignoreCase:p=!0,data:h}=u;if(l==="attribute")d==="equals"?a=s.getAttribute(c)===f:d==="start"?a=!!s.getAttribute(c)?.startsWith(f):d==="end"?a=!!s.getAttribute(c)?.endsWith(f):d==="element"?c==="class"?a=s.classList.contains(f):a=!!s.getAttribute(c)?.includes(f):d==="exists"?a=s.hasAttribute(c):d==="any"?a=!!s.getAttribute(c)?.includes(f):console.warn("Unknown CSS selector action",d);else if(l==="tag")a=s.tagName===c.toUpperCase();else if(l==="universal")a=!0;else if(l==="pseudo"){if(c==="not"){let m=!0;h.forEach(g=>{i(s,g)||(m=!1)}),a=!m}}else console.warn("Unknown CSS selector type",l,t,o);if(!a)break}return a};if(i(e,r))return!0}return!1}var uy=Symbol.for("nodejs.util.inspect.custom"),Hl={fontWeight:"bold"},ql={fontStyle:"italic"},Vl={backgroundColor:"rgb(255, 250, 165)"},Kl={textDecorations:"underline"},Co={textDecorations:"line-through"},ly={b:Hl,strong:Hl,em:ql,i:ql,mark:Vl,u:Kl,a:Kl,s:Co,del:Co,ins:Vl,strike:Co};function Wl(t){return t.toLowerCase().replace(/[^a-z0-9]+(.)/gi,(e,n)=>n.toUpperCase())}var jt=class Pi{constructor(){this.append=this.appendChild,this._parentNode=null,this._childNodes=[]}get nodeType(){return console.error("Subclasses should define nodeType!"),0}get nodeName(){return console.error("Subclasses should define nodeName!"),""}get nodeValue(){return null}cloneNode(e=!1){const n=new this.constructor;return e&&(n._childNodes=this._childNodes.map(r=>r.cloneNode(!0)),n._fixChildNodesParent()),n}_fixChildNodesParent(){this._childNodes.forEach(e=>e._parentNode=this)}insertBefore(e,n){if(e!==n){let r=n?this._childNodes.indexOf(n):0;r<0&&(r=0),this._childNodes.splice(r,0,e),this._fixChildNodesParent()}}appendChild(e){if(e!=null){if(e===this){console.warn("Cannot appendChild to self");return}if(e instanceof su&&console.warn("No defined how to append a document to a node!",e),e instanceof iu)for(const n of[...e._childNodes])this.appendChild(n);else if(Array.isArray(e))for(const n of[...e])this.appendChild(n);else if(e instanceof Pi)e.remove(),this._childNodes.push(e);else try{const n=typeof e=="string"?e:JSON.stringify(e,null,2);this._childNodes.push(new ur(n))}catch(n){console.error(`The data ${e} to be added to ${this.render()} is problematic: ${n}`)}this._fixChildNodesParent()}}removeChild(e){const n=this._childNodes.indexOf(e);n>=0&&(e._parentNode=null,this._childNodes.splice(n,1),this._fixChildNodesParent())}remove(){return this?.parentNode?.removeChild(this),this}replaceChildren(...e){this._childNodes=e.map(n=>typeof n=="string"?new ur(n):n.remove()),this._fixChildNodesParent()}replaceWith(...e){const n=this._parentNode;if(n){const r=this._indexInParent();r>=0&&(e=e.map(i=>typeof i=="string"?new ur(i):i.remove()),n._childNodes.splice(r,1,...e),this._parentNode=null,n._fixChildNodesParent())}}_indexInParent(){return this._parentNode?this._parentNode.childNodes.indexOf(this):-1}get parentNode(){return this._parentNode}get childNodes(){return this._childNodes||[]}get children(){return this._childNodes||[]}get firstChild(){return this._childNodes[0]}get lastChild(){return this._childNodes[this._childNodes.length-1]}get nextSibling(){const e=this._indexInParent();return e!=null&&this.parentNode.childNodes[e+1]||null}get previousSibling(){const e=this._indexInParent();return e>0&&this.parentNode.childNodes[e-1]||null}flatten(){const e=[];this instanceof wt&&e.push(this);for(const n of this._childNodes)e.push(...n.flatten());return e}flattenNodes(){const e=[];e.push(this);for(const n of this._childNodes)e.push(...n.flattenNodes());return e}render(){return""}get textContent(){return this._childNodes.map(e=>e.textContent).join("")}set textContent(e){this._childNodes=[],e&&this.appendChild(new ur(e.toString()))}contains(e){return e===this?!0:this._childNodes.some(n=>n.contains(e))}get ownerDocument(){return this.nodeType===Pi.DOCUMENT_NODE||this.nodeType===Pi.DOCUMENT_FRAGMENT_NODE?this:this?._parentNode?.ownerDocument}toString(){return`${this.nodeName}`}[uy](){return`${this.constructor.name} "${this.render()}"`}};jt.ELEMENT_NODE=1;jt.TEXT_NODE=3;jt.CDATA_SECTION_NODE=4;jt.PROCESSING_INSTRUCTION_NODE=7;jt.COMMENT_NODE=8;jt.DOCUMENT_NODE=9;jt.DOCUMENT_TYPE_NODE=10;jt.DOCUMENT_FRAGMENT_NODE=11;var bn=jt,ur=class extends bn{get nodeType(){return bn.TEXT_NODE}get nodeName(){return"#text"}get nodeValue(){return this._text||""}get textContent(){return this.nodeValue}constructor(t=""){super(),this._text=t}render(){const t=this.parentNode?.tagName;return t==="SCRIPT"||t==="STYLE"?this._text:ba(this._text)}cloneNode(t=!1){const e=super.cloneNode(t);return e._text=this._text,e}},Vf=class extends bn{getElementById(t){return this.flatten().find(e=>e._attributes.id===t)}getElementsByClassName(t){return this.flatten().filter(e=>e.classList.contains(t))}matches(t){return ay(t,this)}querySelectorAll(t){return this.flatten().filter(e=>e.matches(t))}querySelector(t){return this.flatten().find(e=>e.matches(t))}parent(t){return this.matches(t)?this:this.parentNode==null?null:this.parentNode?.parent(t)}handle(t,e){let n=0;for(const r of this.querySelectorAll(t))e(r,n++)}},wt=class extends Vf{get nodeType(){return bn.ELEMENT_NODE}get nodeName(){return this._nodeName}constructor(t="div",e={}){super(),this._originalTagName=t,this._nodeName=(t||"").toUpperCase(),this._attributes=e||{}}cloneNode(t=!1){const e=super.cloneNode(t);return e._originalTagName=this._originalTagName,e._nodeName=this._nodeName,e._attributes=Object.assign({},this._attributes),e}get attributes(){return Object.entries(this._attributes).map(([t,e])=>({name:t,value:e}))}get attributesObject(){return{...this._attributes}}_findAttributeName(t){const e=t.toLowerCase();return Object.keys(this._attributes).find(n=>e===n.toLowerCase())||null}setAttribute(t,e){this.removeAttribute(t),this._attributes[t]=e,this._styles=void 0,this._dataset=void 0}getAttribute(t){const e=this._findAttributeName(t),n=e?this._attributes[e]:null;return n==null?null:typeof n=="string"?n:""}removeAttribute(t){this._findAttributeName(String(t))&&delete this._attributes[t]}hasAttribute(t){const e=this._findAttributeName(t);return e?this._attributes[e]!=null:!1}get style(){if(this._styles==null){const t={};let e=0;const n=this.getAttribute("style");if(n){let r;const i=/\s*([\w-]+)\s*:\s*((url\(.*?\)[^;]*|[^;]+))/gi;for(;r=i.exec(n);){++e;const s=r[1],o=r[2].trim();t[s]=o,t[Wl(s)]=o}}this._styles={get length(){return e},getPropertyValue(r){return t[r]},...ly[this.tagName.toLowerCase()],...t}}return this._styles}get dataset(){if(this._dataset==null){const t={};for(const[e,n]of Object.entries(this._attributes))e.startsWith("data-")&&(t[e.slice(5)]=n,t[Wl(e.slice(5))]=n);this._dataset=t}return this._dataset}get tagName(){return this._nodeName}setTagName(t){this._nodeName=t.toUpperCase()}get id(){return this._attributes.id||null}set id(t){t==null?delete this._attributes.id:this._attributes.id=t}get src(){return this._attributes.src}set src(t){t==null?delete this._attributes.src:this._attributes.src=t}getElementsByTagName(t){t=t.toUpperCase();const e=this.flatten();return t!=="*"?e.filter(n=>n.tagName===t):e}setInnerHTML(t){}get innerHTML(){return this._childNodes.map(t=>t.render(eo)).join("")}set innerHTML(t){this.setInnerHTML(t)}get outerHTML(){return this.render(ns)}get className(){return this._attributes.class||""}set className(t){Array.isArray(t)?t=t.filter(e=>!!e).join(" "):typeof t=="object"&&(t=Object.entries(t).filter(([e,n])=>!!n).map(([e,n])=>e).join(" ")),this._attributes.class=t}get classList(){const t=String(this.className??"").trim().split(/\s+/g)||[];return{contains(e){return t.includes(e)},add:e=>{t.includes(e)||(t.push(e),this.className=t)},remove:e=>{const n=t.indexOf(e);n>=0&&(t.splice(n,1),this.className=t)}}}render(t=ns){return t(this._originalTagName||this.tagName,this._attributes,this._childNodes.map(e=>e.render(t)).join(""))}},Kf=class Wf extends bn{get nodeName(){return super.nodeName}get nodeValue(){return super.nodeValue}get nodeType(){return Wf.DOCUMENT_TYPE_NODE}render(){return""}},iu=class Gf extends Vf{get nodeType(){return bn.DOCUMENT_FRAGMENT_NODE}get nodeName(){return"#document-fragment"}render(e=ns){return this._childNodes.map(n=>n.render(e)||[]).join("")}get innerHTML(){return this._childNodes.map(e=>e.render(eo)).join("")}createElement(e,n={}){return new wt(e,n)}createDocumentFragment(){return new Gf}createTextNode(e){return new ur(e)}},su=class extends iu{get nodeType(){return bn.DOCUMENT_NODE}get nodeName(){return"#document"}get documentElement(){return this.firstChild}render(t=ns){let e=super.render(t);return this.docType&&(e=this.docType.render()+e),e}},jf=class extends su{constructor(t=!1){if(super(),this.docType=new Kf,!t){const e=new wt("html"),n=new wt("body"),r=new wt("head"),i=new wt("title");e.appendChild(r),r.appendChild(i),e.appendChild(n),this.appendChild(e)}}get body(){let t=this.querySelector("body");if(!t){let e=this.querySelector("html");e||(e=new wt("html"),this.appendChild(e)),t=new wt("body"),e.appendChild(e)}return t}get title(){return this.querySelector("title")?.textContent||""}set title(t){const e=this.querySelector("title");e&&(e.textContent=t)}get head(){let t=this.querySelector("head");if(!t){let e=this.querySelector("html");e||(e=new wt("html"),this.appendChild(e)),t=new wt("head"),e.insertBefore(e)}return t}};function cy(){return new su}function dy(){return new jf}var Yf=cy();sy({document:Yf});var fy={},py=fy.hasOwnProperty;function Jf(t,e){return py.call(t,e)}var Zf=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","command"];function Xf(t,e,n={},r){const i=!(typeof r=="string"&&r===""||Array.isArray(r)&&(r.length===0||r.length===1&&r[0]==="")||r==null),s=[];if(e=e.replace(/__/g,":"),e!=="noop"&&e!==""){e!=="cdata"?s.push(`<${e}`):s.push("a[u]!=null).map(u=>{let l=a[u];return l=typeof l=="number"?`${l}px`:l,`${u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${l}`}).join(";")}"`):a!==!1&&a!=null&&s.push(` ${o}="${ba(a.toString())}"`)}if(e!=="cdata"){if(t&&!i)return s.push(" />"),s.join("");s.push(">")}if(!t&&Zf.includes(e))return s.join("")}if(i){if(typeof r=="string")s.push(r);else if(r&&r.length>0){for(let o of r)if(o!=null&&o!==!1){Array.isArray(o)||(o=[o]);for(const a of o)a.startsWith("<")&&a.endsWith(">")||e==="script"||e==="style"?s.push(a):s.push(ba(a.toString()))}}}return n.html&&s.push(n.html),e!=="noop"&&e!==""&&(e!=="cdata"?s.push(``):s.push("]]>")),s.join("")}function eo(t,e,...n){const{tag:r,attrs:i,children:s}=qf(t,e,n);return Xf(!1,r,i,s)}var ns=Xf.bind(null,!1);eo.firstLine="";eo.html=!0;var hy=/([^=\s]+)(\s*=\s*(("([^"]*)")|('([^']*)')|[^>\s]+))?/g,my=/^<\/([^>\s]+)[^>]*>/m,gy=/^<([^>\s/]+)((\s+[^=>\s]+(\s*=\s*(("[^"]*")|('[^']*')|[^>\s]+))?)*)\s*(?:\/\s*)?>/m,by=/\s*\/\s*>\s*$/m,yy=class{constructor(t={}){this.attrRe=hy,this.endTagRe=my,this.startTagRe=gy,this.defaults={ignoreWhitespaceText:!1},t.scanner&&(this.scanner=t.scanner),this.options=Object.assign({},this.defaults,t)}parse(t){let e=!1,n,r,i;for(;t.length;){if(t.substring(0,4)===""),n!==-1?(this.scanner.comment(t.substring(4,n)),t=t.substring(n+3),e=!1):e=!0;else if(t.substring(0,2)==="{const[i,s,o,a,u,l,c,d]=r;n[s]=d??l??a??!0}),n}};function Ey(t){if(typeof t!="string")throw console.error("parseHTML requires string, found",t),new Error("parseHTML requires string");const e=t.indexOf("=o.pos?{range:{from:g,to:y},query:p[0].slice(n.length),text:p[0]}:null}const Sy=new Le("suggestion");function _y({pluginKey:t=Sy,editor:e,char:n="@",allowSpaces:r=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:o="span",decorationClass:a="suggestion",command:u=()=>null,items:l=()=>[],render:c=()=>({}),allow:d=()=>!0,findSuggestionMatch:f=wy}){let p;const h=c?.(),m=new Ee({key:t,view(){return{update:async(g,y)=>{var v,_,b,O,x,R,P;const k=(v=this.key)===null||v===void 0?void 0:v.getState(y),$=(_=this.key)===null||_===void 0?void 0:_.getState(g.state),G=k.active&&$.active&&k.range.from!==$.range.from,Z=!k.active&&$.active,W=k.active&&!$.active,Q=!Z&&!W&&k.query!==$.query,J=Z||G&&Q,re=Q||G,E=W||G&&Q;if(!J&&!re&&!E)return;const w=E&&!J?k:$,A=g.dom.querySelector(`[data-decoration-id="${w.decorationId}"]`);p={editor:e,range:w.range,query:w.query,text:w.text,items:[],command:D=>u({editor:e,range:w.range,props:D}),decorationNode:A,clientRect:A?()=>{var D;const{decorationId:F}=(D=this.key)===null||D===void 0?void 0:D.getState(e.state),K=g.dom.querySelector(`[data-decoration-id="${F}"]`);return K?.getBoundingClientRect()||null}:null},J&&((b=h?.onBeforeStart)===null||b===void 0||b.call(h,p)),re&&((O=h?.onBeforeUpdate)===null||O===void 0||O.call(h,p)),(re||J)&&(p.items=await l({editor:e,query:w.query})),E&&((x=h?.onExit)===null||x===void 0||x.call(h,p)),re&&((R=h?.onUpdate)===null||R===void 0||R.call(h,p)),J&&((P=h?.onStart)===null||P===void 0||P.call(h,p))},destroy:()=>{var g;p&&((g=h?.onExit)===null||g===void 0||g.call(h,p))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(g,y,v,_){const{isEditable:b}=e,{composing:O}=e.view,{selection:x}=g,{empty:R,from:P}=x,k={...y};if(k.composing=O,b&&(R||e.view.composing)){(Py.range.to)&&!O&&!y.composing&&(k.active=!1);const $=f({char:n,allowSpaces:r,allowedPrefixes:i,startOfLine:s,$position:x.$from}),G=`id_${Math.floor(Math.random()*4294967295)}`;$&&d({editor:e,state:_,range:$.range,isActive:y.active})?(k.active=!0,k.decorationId=y.decorationId?y.decorationId:G,k.range=$.range,k.query=$.query,k.text=$.text):k.active=!1}else k.active=!1;return k.active||(k.decorationId=null,k.range={from:0,to:0},k.query=null,k.text=null),k}},props:{handleKeyDown(g,y){var v;const{active:_,range:b}=m.getState(g.state);return _&&((v=h?.onKeyDown)===null||v===void 0?void 0:v.call(h,{view:g,event:y,range:b}))||!1},decorations(g){const{active:y,range:v,decorationId:_}=m.getState(g);return y?be.create(g.doc,[We.inline(v.from,v.to,{nodeName:o,class:a,"data-decoration-id":_})]):null}}});return m}var rt="top",xt="bottom",vt="right",it="left",ou="auto",li=[rt,xt,vt,it],br="start",Xr="end",Ny="clippingParents",Qf="viewport",Ar="popper",Ty="reference",Gl=li.reduce(function(t,e){return t.concat([e+"-"+br,e+"-"+Xr])},[]),ep=[].concat(li,[ou]).reduce(function(t,e){return t.concat([e,e+"-"+br,e+"-"+Xr])},[]),ky="beforeRead",Oy="read",Ay="afterRead",Cy="beforeMain",My="main",Ry="afterMain",Dy="beforeWrite",Iy="write",Ly="afterWrite",Py=[ky,Oy,Ay,Cy,My,Ry,Dy,Iy,Ly];function $t(t){return t?(t.nodeName||"").toLowerCase():null}function ot(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Vn(t){var e=ot(t).Element;return t instanceof e||t instanceof Element}function Et(t){var e=ot(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function au(t){if(typeof ShadowRoot>"u")return!1;var e=ot(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function By(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Et(s)||!$t(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function $y(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=o.reduce(function(u,l){return u[l]="",u},{});!Et(i)||!$t(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}const tp={name:"applyStyles",enabled:!0,phase:"write",fn:By,effect:$y,requires:["computeStyles"]};function It(t){return t.split("-")[0]}var Ln=Math.max,rs=Math.min,yr=Math.round;function ya(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function np(){return!/^((?!chrome|android).)*safari/i.test(ya())}function Er(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,s=1;e&&Et(t)&&(i=t.offsetWidth>0&&yr(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&yr(r.height)/t.offsetHeight||1);var o=Vn(t)?ot(t):window,a=o.visualViewport,u=!np()&&n,l=(r.left+(u&&a?a.offsetLeft:0))/i,c=(r.top+(u&&a?a.offsetTop:0))/s,d=r.width/i,f=r.height/s;return{width:d,height:f,top:c,right:l+d,bottom:c+f,left:l,x:l,y:c}}function uu(t){var e=Er(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function rp(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&au(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gt(t){return ot(t).getComputedStyle(t)}function Fy(t){return["table","td","th"].indexOf($t(t))>=0}function wn(t){return((Vn(t)?t.ownerDocument:t.document)||window.document).documentElement}function to(t){return $t(t)==="html"?t:t.assignedSlot||t.parentNode||(au(t)?t.host:null)||wn(t)}function jl(t){return!Et(t)||Gt(t).position==="fixed"?null:t.offsetParent}function Uy(t){var e=/firefox/i.test(ya()),n=/Trident/i.test(ya());if(n&&Et(t)){var r=Gt(t);if(r.position==="fixed")return null}var i=to(t);for(au(i)&&(i=i.host);Et(i)&&["html","body"].indexOf($t(i))<0;){var s=Gt(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function ci(t){for(var e=ot(t),n=jl(t);n&&Fy(n)&&Gt(n).position==="static";)n=jl(n);return n&&($t(n)==="html"||$t(n)==="body"&&Gt(n).position==="static")?e:n||Uy(t)||e}function lu(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function $r(t,e,n){return Ln(t,rs(e,n))}function zy(t,e,n){var r=$r(t,e,n);return r>n?n:r}function ip(){return{top:0,right:0,bottom:0,left:0}}function sp(t){return Object.assign({},ip(),t)}function op(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Hy=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,sp(typeof e!="number"?e:op(e,li))};function qy(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=It(n.placement),u=lu(a),l=[it,vt].indexOf(a)>=0,c=l?"height":"width";if(!(!s||!o)){var d=Hy(i.padding,n),f=uu(s),p=u==="y"?rt:it,h=u==="y"?xt:vt,m=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c],g=o[u]-n.rects.reference[u],y=ci(s),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,_=m/2-g/2,b=d[p],O=v-f[c]-d[h],x=v/2-f[c]/2+_,R=$r(b,x,O),P=u;n.modifiersData[r]=(e={},e[P]=R,e.centerOffset=R-x,e)}}function Vy(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||rp(e.elements.popper,i)&&(e.elements.arrow=i))}const Ky={name:"arrow",enabled:!0,phase:"main",fn:qy,effect:Vy,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xr(t){return t.split("-")[1]}var Wy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gy(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:yr(n*i)/i||0,y:yr(r*i)/i||0}}function Yl(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,d=t.isFixed,f=o.x,p=f===void 0?0:f,h=o.y,m=h===void 0?0:h,g=typeof c=="function"?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),_=it,b=rt,O=window;if(l){var x=ci(n),R="clientHeight",P="clientWidth";if(x===ot(n)&&(x=wn(n),Gt(x).position!=="static"&&a==="absolute"&&(R="scrollHeight",P="scrollWidth")),x=x,i===rt||(i===it||i===vt)&&s===Xr){b=xt;var k=d&&x===O&&O.visualViewport?O.visualViewport.height:x[R];m-=k-r.height,m*=u?1:-1}if(i===it||(i===rt||i===xt)&&s===Xr){_=vt;var $=d&&x===O&&O.visualViewport?O.visualViewport.width:x[P];p-=$-r.width,p*=u?1:-1}}var G=Object.assign({position:a},l&&Wy),Z=c===!0?Gy({x:p,y:m},ot(n)):{x:p,y:m};if(p=Z.x,m=Z.y,u){var W;return Object.assign({},G,(W={},W[b]=v?"0":"",W[_]=y?"0":"",W.transform=(O.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",W))}return Object.assign({},G,(e={},e[b]=v?m+"px":"",e[_]=y?p+"px":"",e.transform="",e))}function jy(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,u=a===void 0?!0:a,l={placement:It(e.placement),variation:xr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Yl(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Yl(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Yy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jy,data:{}};var Ei={passive:!0};function Jy(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,u=ot(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(c){c.addEventListener("scroll",n.update,Ei)}),a&&u.addEventListener("resize",n.update,Ei),function(){s&&l.forEach(function(c){c.removeEventListener("scroll",n.update,Ei)}),a&&u.removeEventListener("resize",n.update,Ei)}}const Zy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Jy,data:{}};var Xy={left:"right",right:"left",bottom:"top",top:"bottom"};function Bi(t){return t.replace(/left|right|bottom|top/g,function(e){return Xy[e]})}var Qy={start:"end",end:"start"};function Jl(t){return t.replace(/start|end/g,function(e){return Qy[e]})}function cu(t){var e=ot(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function du(t){return Er(wn(t)).left+cu(t).scrollLeft}function eE(t,e){var n=ot(t),r=wn(t),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,u=0;if(i){s=i.width,o=i.height;var l=np();(l||!l&&e==="fixed")&&(a=i.offsetLeft,u=i.offsetTop)}return{width:s,height:o,x:a+du(t),y:u}}function tE(t){var e,n=wn(t),r=cu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Ln(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ln(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+du(t),u=-r.scrollTop;return Gt(i||n).direction==="rtl"&&(a+=Ln(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:u}}function fu(t){var e=Gt(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ap(t){return["html","body","#document"].indexOf($t(t))>=0?t.ownerDocument.body:Et(t)&&fu(t)?t:ap(to(t))}function Fr(t,e){var n;e===void 0&&(e=[]);var r=ap(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=ot(r),o=i?[s].concat(s.visualViewport||[],fu(r)?r:[]):r,a=e.concat(o);return i?a:a.concat(Fr(to(o)))}function Ea(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nE(t,e){var n=Er(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Zl(t,e,n){return e===Qf?Ea(eE(t,n)):Vn(e)?nE(e,n):Ea(tE(wn(t)))}function rE(t){var e=Fr(to(t)),n=["absolute","fixed"].indexOf(Gt(t).position)>=0,r=n&&Et(t)?ci(t):t;return Vn(r)?e.filter(function(i){return Vn(i)&&rp(i,r)&&$t(i)!=="body"}):[]}function iE(t,e,n,r){var i=e==="clippingParents"?rE(t):[].concat(e),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(u,l){var c=Zl(t,l,r);return u.top=Ln(c.top,u.top),u.right=rs(c.right,u.right),u.bottom=rs(c.bottom,u.bottom),u.left=Ln(c.left,u.left),u},Zl(t,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function up(t){var e=t.reference,n=t.element,r=t.placement,i=r?It(r):null,s=r?xr(r):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,u;switch(i){case rt:u={x:o,y:e.y-n.height};break;case xt:u={x:o,y:e.y+e.height};break;case vt:u={x:e.x+e.width,y:a};break;case it:u={x:e.x-n.width,y:a};break;default:u={x:e.x,y:e.y}}var l=i?lu(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(s){case br:u[l]=u[l]-(e[c]/2-n[c]/2);break;case Xr:u[l]=u[l]+(e[c]/2-n[c]/2);break}}return u}function Qr(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,s=n.strategy,o=s===void 0?t.strategy:s,a=n.boundary,u=a===void 0?Ny:a,l=n.rootBoundary,c=l===void 0?Qf:l,d=n.elementContext,f=d===void 0?Ar:d,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,y=sp(typeof g!="number"?g:op(g,li)),v=f===Ar?Ty:Ar,_=t.rects.popper,b=t.elements[h?v:f],O=iE(Vn(b)?b:b.contextElement||wn(t.elements.popper),u,c,o),x=Er(t.elements.reference),R=up({reference:x,element:_,placement:i}),P=Ea(Object.assign({},_,R)),k=f===Ar?P:x,$={top:O.top-k.top+y.top,bottom:k.bottom-O.bottom+y.bottom,left:O.left-k.left+y.left,right:k.right-O.right+y.right},G=t.modifiersData.offset;if(f===Ar&&G){var Z=G[i];Object.keys($).forEach(function(W){var Q=[vt,xt].indexOf(W)>=0?1:-1,J=[rt,xt].indexOf(W)>=0?"y":"x";$[W]+=Z[J]*Q})}return $}function sE(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?ep:u,c=xr(r),d=c?a?Gl:Gl.filter(function(h){return xr(h)===c}):li,f=d.filter(function(h){return l.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,m){return h[m]=Qr(t,{placement:m,boundary:i,rootBoundary:s,padding:o})[It(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function oE(t){if(It(t)===ou)return[];var e=Bi(t);return[Jl(t),e,Jl(e)]}function aE(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,g=e.options.placement,y=It(g),v=y===g,_=u||(v||!h?[Bi(g)]:oE(g)),b=[g].concat(_).reduce(function(xe,ee){return xe.concat(It(ee)===ou?sE(e,{placement:ee,boundary:c,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:m}):ee)},[]),O=e.rects.reference,x=e.rects.popper,R=new Map,P=!0,k=b[0],$=0;$=0,J=Q?"width":"height",re=Qr(e,{placement:G,boundary:c,rootBoundary:d,altBoundary:f,padding:l}),E=Q?W?vt:it:W?xt:rt;O[J]>x[J]&&(E=Bi(E));var w=Bi(E),A=[];if(s&&A.push(re[Z]<=0),a&&A.push(re[E]<=0,re[w]<=0),A.every(function(xe){return xe})){k=G,P=!1;break}R.set(G,A)}if(P)for(var D=h?3:1,F=function(ee){var ae=b.find(function(Ze){var Oe=R.get(Ze);if(Oe)return Oe.slice(0,ee).every(function(Xe){return Xe})});if(ae)return k=ae,"break"},K=D;K>0;K--){var ue=F(K);if(ue==="break")break}e.placement!==k&&(e.modifiersData[r]._skip=!0,e.placement=k,e.reset=!0)}}const uE={name:"flip",enabled:!0,phase:"main",fn:aE,requiresIfExists:["offset"],data:{_skip:!1}};function Xl(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ql(t){return[rt,vt,xt,it].some(function(e){return t[e]>=0})}function lE(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=Qr(e,{elementContext:"reference"}),a=Qr(e,{altBoundary:!0}),u=Xl(o,r),l=Xl(a,i,s),c=Ql(u),d=Ql(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const cE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lE};function dE(t,e,n){var r=It(t),i=[it,rt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[it,vt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function fE(t){var e=t.state,n=t.options,r=t.name,i=n.offset,s=i===void 0?[0,0]:i,o=ep.reduce(function(c,d){return c[d]=dE(d,e.rects,s),c},{}),a=o[e.placement],u=a.x,l=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[r]=o}const pE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fE};function hE(t){var e=t.state,n=t.name;e.modifiersData[n]=up({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const mE={name:"popperOffsets",enabled:!0,phase:"read",fn:hE,data:{}};function gE(t){return t==="x"?"y":"x"}function bE(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,m=h===void 0?0:h,g=Qr(e,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),y=It(e.placement),v=xr(e.placement),_=!v,b=lu(y),O=gE(b),x=e.modifiersData.popperOffsets,R=e.rects.reference,P=e.rects.popper,k=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,$=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),G=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if(x){if(s){var W,Q=b==="y"?rt:it,J=b==="y"?xt:vt,re=b==="y"?"height":"width",E=x[b],w=E+g[Q],A=E-g[J],D=p?-P[re]/2:0,F=v===br?R[re]:P[re],K=v===br?-P[re]:-R[re],ue=e.elements.arrow,xe=p&&ue?uu(ue):{width:0,height:0},ee=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ip(),ae=ee[Q],Ze=ee[J],Oe=$r(0,R[re],xe[re]),Xe=_?R[re]/2-D-Oe-ae-$.mainAxis:F-Oe-ae-$.mainAxis,Qe=_?-R[re]/2+D+Oe+Ze+$.mainAxis:K+Oe+Ze+$.mainAxis,at=e.elements.arrow&&ci(e.elements.arrow),kt=at?b==="y"?at.clientTop||0:at.clientLeft||0:0,se=(W=G?.[b])!=null?W:0,Ne=E+Xe-se-kt,Ue=E+Qe-se,de=$r(p?rs(w,Ne):w,E,p?Ln(A,Ue):A);x[b]=de,Z[b]=de-E}if(a){var Ft,ut=b==="x"?rt:it,M=b==="x"?xt:vt,Ve=x[O],X=O==="y"?"height":"width",V=Ve+g[ut],Pe=Ve-g[M],ve=[rt,it].indexOf(y)!==-1,lt=(Ft=G?.[O])!=null?Ft:0,ct=ve?V:Ve-R[X]-P[X]-lt+$.altAxis,S=ve?Ve+R[X]+P[X]-lt-$.altAxis:Pe,T=p&&ve?zy(ct,Ve,S):$r(p?ct:V,Ve,p?S:Pe);x[O]=T,Z[O]=T-Ve}e.modifiersData[r]=Z}}const yE={name:"preventOverflow",enabled:!0,phase:"main",fn:bE,requiresIfExists:["offset"]};function EE(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function xE(t){return t===ot(t)||!Et(t)?cu(t):EE(t)}function vE(t){var e=t.getBoundingClientRect(),n=yr(e.width)/t.offsetWidth||1,r=yr(e.height)/t.offsetHeight||1;return n!==1||r!==1}function wE(t,e,n){n===void 0&&(n=!1);var r=Et(e),i=Et(e)&&vE(e),s=wn(e),o=Er(t,i,n),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($t(e)!=="body"||fu(s))&&(a=xE(e)),Et(e)?(u=Er(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=du(s))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function SE(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var u=e.get(a);u&&i(u)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),r}function _E(t){var e=SE(t);return Py.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function NE(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function TE(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var ec={placement:"bottom",modifiers:[],strategy:"absolute"};function tc(){for(var t=arguments.length,e=new Array(t),n=0;n-1}function pp(t,e){return typeof t=="function"?t.apply(void 0,e):t}function nc(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function RE(t){return t.split(/\s+/).filter(Boolean)}function nr(t){return[].concat(t)}function rc(t,e){t.indexOf(e)===-1&&t.push(e)}function DE(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function IE(t){return t.split("-")[0]}function is(t){return[].slice.call(t)}function ic(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Ur(){return document.createElement("div")}function no(t){return["Element","Fragment"].some(function(e){return pu(t,e)})}function LE(t){return pu(t,"NodeList")}function PE(t){return pu(t,"MouseEvent")}function BE(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function $E(t){return no(t)?[t]:LE(t)?is(t):Array.isArray(t)?t:is(document.querySelectorAll(t))}function Ro(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function sc(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function FE(t){var e,n=nr(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function UE(t,e){var n=e.clientX,r=e.clientY;return t.every(function(i){var s=i.popperRect,o=i.popperState,a=i.props,u=a.interactiveBorder,l=IE(o.placement),c=o.modifiersData.offset;if(!c)return!0;var d=l==="bottom"?c.top.y:0,f=l==="top"?c.bottom.y:0,p=l==="right"?c.left.x:0,h=l==="left"?c.right.x:0,m=s.top-r+d>u,g=r-s.bottom-f>u,y=s.left-n+p>u,v=n-s.right-h>u;return m||g||y||v})}function Do(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){t[r](i,n)})}function oc(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Rt={isTouch:!1},ac=0;function zE(){Rt.isTouch||(Rt.isTouch=!0,window.performance&&document.addEventListener("mousemove",hp))}function hp(){var t=performance.now();t-ac<20&&(Rt.isTouch=!1,document.removeEventListener("mousemove",hp)),ac=t}function HE(){var t=document.activeElement;if(BE(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function qE(){document.addEventListener("touchstart",zE,_n),window.addEventListener("blur",HE)}var VE=typeof window<"u"&&typeof document<"u",KE=VE?!!window.msCrypto:!1,WE={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},GE={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Nt=Object.assign({appendTo:fp,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},WE,GE),jE=Object.keys(Nt),YE=function(e){var n=Object.keys(e);n.forEach(function(r){Nt[r]=e[r]})};function mp(t){var e=t.plugins||[],n=e.reduce(function(r,i){var s=i.name,o=i.defaultValue;if(s){var a;r[s]=t[s]!==void 0?t[s]:(a=Nt[s])!=null?a:o}return r},{});return Object.assign({},t,n)}function JE(t,e){var n=e?Object.keys(mp(Object.assign({},Nt,{plugins:e}))):jE,r=n.reduce(function(i,s){var o=(t.getAttribute("data-tippy-"+s)||"").trim();if(!o)return i;if(s==="content")i[s]=o;else try{i[s]=JSON.parse(o)}catch{i[s]=o}return i},{});return r}function uc(t,e){var n=Object.assign({},e,{content:pp(e.content,[t])},e.ignoreAttributes?{}:JE(t,e.plugins));return n.aria=Object.assign({},Nt.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}var ZE=function(){return"innerHTML"};function xa(t,e){t[ZE()]=e}function lc(t){var e=Ur();return t===!0?e.className=cp:(e.className=dp,no(t)?e.appendChild(t):xa(e,t)),e}function cc(t,e){no(e.content)?(xa(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?xa(t,e.content):t.textContent=e.content)}function va(t){var e=t.firstElementChild,n=is(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(lp)}),arrow:n.find(function(r){return r.classList.contains(cp)||r.classList.contains(dp)}),backdrop:n.find(function(r){return r.classList.contains(ME)})}}function gp(t){var e=Ur(),n=Ur();n.className=CE,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ur();r.className=lp,r.setAttribute("data-state","hidden"),cc(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props);function i(s,o){var a=va(e),u=a.box,l=a.content,c=a.arrow;o.theme?u.setAttribute("data-theme",o.theme):u.removeAttribute("data-theme"),typeof o.animation=="string"?u.setAttribute("data-animation",o.animation):u.removeAttribute("data-animation"),o.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?u.setAttribute("role",o.role):u.removeAttribute("role"),(s.content!==o.content||s.allowHTML!==o.allowHTML)&&cc(l,t.props),o.arrow?c?s.arrow!==o.arrow&&(u.removeChild(c),u.appendChild(lc(o.arrow))):u.appendChild(lc(o.arrow)):c&&u.removeChild(c)}return{popper:e,onUpdate:i}}gp.$$tippy=!0;var XE=1,xi=[],Io=[];function QE(t,e){var n=uc(t,Object.assign({},Nt,mp(ic(e)))),r,i,s,o=!1,a=!1,u=!1,l=!1,c,d,f,p=[],h=nc(Ne,n.interactiveDebounce),m,g=XE++,y=null,v=DE(n.plugins),_={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:g,reference:t,popper:Ur(),popperInstance:y,props:n,state:_,plugins:v,clearDelayTimeouts:ct,setProps:S,setContent:T,show:I,hide:z,hideWithInteractivity:oe,enable:ve,disable:lt,unmount:we,destroy:Tr};if(!n.render)return b;var O=n.render(b),x=O.popper,R=O.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,t._tippy=b,x._tippy=b;var P=v.map(function(N){return N.fn(b)}),k=t.hasAttribute("aria-expanded");return at(),D(),E(),w("onCreate",[b]),n.showOnCreate&&V(),x.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",h)}),b;function $(){var N=b.props.touch;return Array.isArray(N)?N:[N,0]}function G(){return $()[0]==="hold"}function Z(){var N;return!!((N=b.props.render)!=null&&N.$$tippy)}function W(){return m||t}function Q(){var N=W().parentNode;return N?FE(N):document}function J(){return va(x)}function re(N){return b.state.isMounted&&!b.state.isVisible||Rt.isTouch||c&&c.type==="focus"?0:Mo(b.props.delay,N?0:1,Nt.delay)}function E(N){N===void 0&&(N=!1),x.style.pointerEvents=b.props.interactive&&!N?"":"none",x.style.zIndex=""+b.props.zIndex}function w(N,q,Y){if(Y===void 0&&(Y=!0),P.forEach(function(le){le[N]&&le[N].apply(le,q)}),Y){var fe;(fe=b.props)[N].apply(fe,q)}}function A(){var N=b.props.aria;if(N.content){var q="aria-"+N.content,Y=x.id,fe=nr(b.props.triggerTarget||t);fe.forEach(function(le){var Ke=le.getAttribute(q);if(b.state.isVisible)le.setAttribute(q,Ke?Ke+" "+Y:Y);else{var dt=Ke&&Ke.replace(Y,"").trim();dt?le.setAttribute(q,dt):le.removeAttribute(q)}})}}function D(){if(!(k||!b.props.aria.expanded)){var N=nr(b.props.triggerTarget||t);N.forEach(function(q){b.props.interactive?q.setAttribute("aria-expanded",b.state.isVisible&&q===W()?"true":"false"):q.removeAttribute("aria-expanded")})}}function F(){Q().removeEventListener("mousemove",h),xi=xi.filter(function(N){return N!==h})}function K(N){if(!(Rt.isTouch&&(u||N.type==="mousedown"))){var q=N.composedPath&&N.composedPath()[0]||N.target;if(!(b.props.interactive&&oc(x,q))){if(nr(b.props.triggerTarget||t).some(function(Y){return oc(Y,q)})){if(Rt.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else w("onClickOutside",[b,N]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),a=!0,setTimeout(function(){a=!1}),b.state.isMounted||ae())}}}function ue(){u=!0}function xe(){u=!1}function ee(){var N=Q();N.addEventListener("mousedown",K,!0),N.addEventListener("touchend",K,_n),N.addEventListener("touchstart",xe,_n),N.addEventListener("touchmove",ue,_n)}function ae(){var N=Q();N.removeEventListener("mousedown",K,!0),N.removeEventListener("touchend",K,_n),N.removeEventListener("touchstart",xe,_n),N.removeEventListener("touchmove",ue,_n)}function Ze(N,q){Xe(N,function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&q()})}function Oe(N,q){Xe(N,q)}function Xe(N,q){var Y=J().box;function fe(le){le.target===Y&&(Do(Y,"remove",fe),q())}if(N===0)return q();Do(Y,"remove",d),Do(Y,"add",fe),d=fe}function Qe(N,q,Y){Y===void 0&&(Y=!1);var fe=nr(b.props.triggerTarget||t);fe.forEach(function(le){le.addEventListener(N,q,Y),p.push({node:le,eventType:N,handler:q,options:Y})})}function at(){G()&&(Qe("touchstart",se,{passive:!0}),Qe("touchend",Ue,{passive:!0})),RE(b.props.trigger).forEach(function(N){if(N!=="manual")switch(Qe(N,se),N){case"mouseenter":Qe("mouseleave",Ue);break;case"focus":Qe(KE?"focusout":"blur",de);break;case"focusin":Qe("focusout",de);break}})}function kt(){p.forEach(function(N){var q=N.node,Y=N.eventType,fe=N.handler,le=N.options;q.removeEventListener(Y,fe,le)}),p=[]}function se(N){var q,Y=!1;if(!(!b.state.isEnabled||Ft(N)||a)){var fe=((q=c)==null?void 0:q.type)==="focus";c=N,m=N.currentTarget,D(),!b.state.isVisible&&PE(N)&&xi.forEach(function(le){return le(N)}),N.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||o)&&b.props.hideOnClick!==!1&&b.state.isVisible?Y=!0:V(N),N.type==="click"&&(o=!Y),Y&&!fe&&Pe(N)}}function Ne(N){var q=N.target,Y=W().contains(q)||x.contains(q);if(!(N.type==="mousemove"&&Y)){var fe=X().concat(x).map(function(le){var Ke,dt=le._tippy,Gn=(Ke=dt.popperInstance)==null?void 0:Ke.state;return Gn?{popperRect:le.getBoundingClientRect(),popperState:Gn,props:n}:null}).filter(Boolean);UE(fe,N)&&(F(),Pe(N))}}function Ue(N){var q=Ft(N)||b.props.trigger.indexOf("click")>=0&&o;if(!q){if(b.props.interactive){b.hideWithInteractivity(N);return}Pe(N)}}function de(N){b.props.trigger.indexOf("focusin")<0&&N.target!==W()||b.props.interactive&&N.relatedTarget&&x.contains(N.relatedTarget)||Pe(N)}function Ft(N){return Rt.isTouch?G()!==N.type.indexOf("touch")>=0:!1}function ut(){M();var N=b.props,q=N.popperOptions,Y=N.placement,fe=N.offset,le=N.getReferenceClientRect,Ke=N.moveTransition,dt=Z()?va(x).arrow:null,Gn=le?{getBoundingClientRect:le,contextElement:le.contextElement||W()}:t,Cu={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(di){var jn=di.state;if(Z()){var Mh=J(),uo=Mh.box;["placement","reference-hidden","escaped"].forEach(function(fi){fi==="placement"?uo.setAttribute("data-placement",jn.placement):jn.attributes.popper["data-popper-"+fi]?uo.setAttribute("data-"+fi,""):uo.removeAttribute("data-"+fi)}),jn.attributes.popper={}}}},Sn=[{name:"offset",options:{offset:fe}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ke}},Cu];Z()&&dt&&Sn.push({name:"arrow",options:{element:dt,padding:3}}),Sn.push.apply(Sn,q?.modifiers||[]),b.popperInstance=AE(Gn,x,Object.assign({},q,{placement:Y,onFirstUpdate:f,modifiers:Sn}))}function M(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Ve(){var N=b.props.appendTo,q,Y=W();b.props.interactive&&N===fp||N==="parent"?q=Y.parentNode:q=pp(N,[Y]),q.contains(x)||q.appendChild(x),b.state.isMounted=!0,ut()}function X(){return is(x.querySelectorAll("[data-tippy-root]"))}function V(N){b.clearDelayTimeouts(),N&&w("onTrigger",[b,N]),ee();var q=re(!0),Y=$(),fe=Y[0],le=Y[1];Rt.isTouch&&fe==="hold"&&le&&(q=le),q?r=setTimeout(function(){b.show()},q):b.show()}function Pe(N){if(b.clearDelayTimeouts(),w("onUntrigger",[b,N]),!b.state.isVisible){ae();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(N.type)>=0&&o)){var q=re(!1);q?i=setTimeout(function(){b.state.isVisible&&b.hide()},q):s=requestAnimationFrame(function(){b.hide()})}}function ve(){b.state.isEnabled=!0}function lt(){b.hide(),b.state.isEnabled=!1}function ct(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(s)}function S(N){if(!b.state.isDestroyed){w("onBeforeUpdate",[b,N]),kt();var q=b.props,Y=uc(t,Object.assign({},q,ic(N),{ignoreAttributes:!0}));b.props=Y,at(),q.interactiveDebounce!==Y.interactiveDebounce&&(F(),h=nc(Ne,Y.interactiveDebounce)),q.triggerTarget&&!Y.triggerTarget?nr(q.triggerTarget).forEach(function(fe){fe.removeAttribute("aria-expanded")}):Y.triggerTarget&&t.removeAttribute("aria-expanded"),D(),E(),R&&R(q,Y),b.popperInstance&&(ut(),X().forEach(function(fe){requestAnimationFrame(fe._tippy.popperInstance.forceUpdate)})),w("onAfterUpdate",[b,N])}}function T(N){b.setProps({content:N})}function I(){var N=b.state.isVisible,q=b.state.isDestroyed,Y=!b.state.isEnabled,fe=Rt.isTouch&&!b.props.touch,le=Mo(b.props.duration,0,Nt.duration);if(!(N||q||Y||fe)&&!W().hasAttribute("disabled")&&(w("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,Z()&&(x.style.visibility="visible"),E(),ee(),b.state.isMounted||(x.style.transition="none"),Z()){var Ke=J(),dt=Ke.box,Gn=Ke.content;Ro([dt,Gn],0)}f=function(){var Sn;if(!(!b.state.isVisible||l)){if(l=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,Z()&&b.props.animation){var ao=J(),di=ao.box,jn=ao.content;Ro([di,jn],le),sc([di,jn],"visible")}A(),D(),rc(Io,b),(Sn=b.popperInstance)==null||Sn.forceUpdate(),w("onMount",[b]),b.props.animation&&Z()&&Oe(le,function(){b.state.isShown=!0,w("onShown",[b])})}},Ve()}}function z(){var N=!b.state.isVisible,q=b.state.isDestroyed,Y=!b.state.isEnabled,fe=Mo(b.props.duration,1,Nt.duration);if(!(N||q||Y)&&(w("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,l=!1,o=!1,Z()&&(x.style.visibility="hidden"),F(),ae(),E(!0),Z()){var le=J(),Ke=le.box,dt=le.content;b.props.animation&&(Ro([Ke,dt],fe),sc([Ke,dt],"hidden"))}A(),D(),b.props.animation?Z()&&Ze(fe,b.unmount):b.unmount()}}function oe(N){Q().addEventListener("mousemove",h),rc(xi,h),h(N)}function we(){b.state.isVisible&&b.hide(),b.state.isMounted&&(M(),X().forEach(function(N){N._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),Io=Io.filter(function(N){return N!==b}),b.state.isMounted=!1,w("onHidden",[b]))}function Tr(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),kt(),delete t._tippy,b.state.isDestroyed=!0,w("onDestroy",[b]))}}function Nr(t,e){e===void 0&&(e={});var n=Nt.plugins.concat(e.plugins||[]);qE();var r=Object.assign({},e,{plugins:n}),i=$E(t),s=i.reduce(function(o,a){var u=a&&QE(a,r);return u&&o.push(u),o},[]);return no(t)?s[0]:s}Nr.defaultProps=Nt;Nr.setDefaultProps=YE;Nr.currentInput=Rt;Object.assign({},tp,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});Nr.setDefaultProps({render:gp});const e2=t=>{const{items:e}=t,n=e.map(d=>Se("button",{className:"",onClick:()=>{t.command(d)}},d.title)),r=Se("div",{className:"ud-root slash-menu"},n);let i=0;const s=d=>{n.forEach((f,p)=>{d===p?f.classList.add("selected"):f.classList.remove("selected")})};s(0);const o=()=>{i=i===0?n.length-1:i-1,s(i)},a=()=>{i=i===n.length-1?0:i+1,s(i)},u=()=>{t.command(e[i])};return r.append(...n),{dom:r,updateProps:d=>{},onKeyDown:({event:d})=>d.key==="ArrowUp"?(o(),!0):d.key==="ArrowDown"?(a(),!0):d.key==="Enter"?(u(),!0):!1,destroy:()=>r.remove()}},t2=()=>{const t=document.createElement("input");return t.type="file",t.accept="image/*",new Promise((e,n)=>{t.addEventListener("change",()=>{const r=t.files;e(r)}),t.click()})},n2={items:({query:t})=>[{title:"Heading 1",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{title:"Heading 2",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{title:"CodeBlock",command:({editor:e,range:n})=>{e.chain().focus().deleteRange(n).setCodeBlock().run()}},{title:"Image",command:async({editor:e,range:n})=>{const r=await t2();r&&[...r].forEach(i=>{const s=URL.createObjectURL(i);e.chain().focus().deleteRange(n).setImage({src:s,alt:i.name}).run()})}}].filter(e=>e.title.toLowerCase().startsWith(t.toLowerCase())).slice(0,10),render:()=>{let t,e;return{onStart:n=>{t=e2(n),console.log(n,"props"),n.clientRect&&(e=Nr("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:t.dom,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"}))},onUpdate(n){t.updateProps(n),n.clientRect&&e[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(n){return n.event.key==="Escape"?(e[0].hide(),!0):t?.onKeyDown(n)},onExit(){e[0].destroy(),t.destroy()}}}},r2=ke.create({name:"SlashCommands",addOptions(){return{suggestion:{char:"/",command:({editor:t,range:e,props:n})=>{n.command({editor:t,range:e})}}}},addProseMirrorPlugins(){return[_y({editor:this.editor,...this.options.suggestion})]}}),i2=()=>r2.configure({suggestion:n2});class s2{constructor({editor:e,element:n,view:r,tippyOptions:i={},updateDelay:s=250,shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:a,state:u,from:l,to:c})=>{const{doc:d,selection:f}=u,{empty:p}=f,h=!d.textBetween(l,c).length&&eu(u.selection),m=this.element.contains(document.activeElement);return!(!(a.hasFocus()||m)||p||h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var u;if(this.preventHide){this.preventHide=!1;return}a?.relatedTarget&&(!((u=this.element.parentNode)===null||u===void 0)&&u.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,u)=>{const l=!u?.selection.eq(a.state.selection),c=!u?.doc.eq(a.state.doc);!l&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,l,c,u)},this.updateDelay))},this.updateHandler=(a,u,l,c)=>{var d,f,p;const{state:h,composing:m}=a,{selection:g}=h;if(m||!u&&!l)return;this.createTooltip();const{ranges:v}=g,_=Math.min(...v.map(x=>x.$from.pos)),b=Math.max(...v.map(x=>x.$to.pos));if(!((d=this.shouldShow)===null||d===void 0?void 0:d.call(this,{editor:this.editor,view:a,state:h,oldState:c,from:_,to:b}))){this.hide();return}(f=this.tippy)===null||f===void 0||f.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(Ff(h.selection)){let x=a.nodeDOM(_);const R=x.dataset.nodeViewWrapper?x:x.querySelector("[data-node-view-wrapper]");if(R&&(x=R.firstChild),x)return x.getBoundingClientRect()}return t1(a,_,b)})}),this.show()},this.editor=e,this.element=n,this.view=r,this.updateDelay=s,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=Nr(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,n){const{state:r}=e,i=r.selection.from!==r.selection.to;if(this.updateDelay>0&&i){this.handleDebouncedUpdate(e,n);return}const s=!n?.selection.eq(e.state.selection),o=!n?.doc.eq(e.state.doc);this.updateHandler(e,s,o,n)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const o2=t=>new Ee({key:typeof t.pluginKey=="string"?new Le(t.pluginKey):t.pluginKey,view:e=>new s2({view:e,...t})}),a2=ke.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[o2({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}}),u2=t=>Se("div",{className:"ud-root bubble-menu"},[Se("button",{className:"",onClick:e=>{const n=t();n.chain().focus().toggleBold().run(),n.isActive("bold")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"B"),Se("button",{onClick:e=>{const n=t();n.chain().focus().toggleItalic().run(),n.isActive("italic")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"I"),Se("button",{onClick:e=>{const n=t();n.chain().focus().toggleUnderline().run(),n.isActive("underline")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"U"),Se("button",{onClick:e=>{const n=t();n.chain().focus().toggleStrike().run(),n.isActive("strike")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"S"),Se("button",{onClick:e=>{const n=t();n.chain().focus().toggleCode().run(),n.isActive("code")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"<>"),Se("button",{onClick:e=>{const n=t();if(n.isActive("link"))n.chain().focus().unsetLink().run();else{const i=prompt("Input link");if(!i)return;n.chain().focus().setLink({href:i,target:"_blank",rel:"noreferer"}).run()}n.isActive("link")?e.target?.classList.add("active"):e.target?.classList.remove("active")}},"🔗")]),l2=(t,e)=>{const n=u2(e);return t.appendChild(n),a2.configure({element:n,shouldShow({editor:r,state:i}){const{selection:s}=i,{$from:o,$to:a}=s,u=o.sameParent(a)&&o.parent.isTextblock&&!o.parent.textContent,l=o.sameParent(a)&&o.parent.type.name==="codeBlock";return!(s.empty||u||l)}})},c2=/^```([a-z]+)?[\s\n]$/,d2=/^~~~([a-z]+)?[\s\n]$/,bp=Je.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;const{languageClassPrefix:n}=this.options,s=[...((e=t.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(o=>o.startsWith(n)).map(o=>o.replace(n,""))[0];return s||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:t,HTMLAttributes:e}){return["pre",Te(this.options.HTMLAttributes,e),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:t=>({commands:e})=>e.setNode(this.name,t),toggleCodeBlock:t=>({commands:e})=>e.toggleNode(this.name,"paragraph",t)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:t,$anchor:e}=this.editor.state.selection,n=e.pos===1;return!t||e.parent.type.name!==this.name?!1:n||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:t})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=t,{selection:n}=e,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;const s=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(` -`);return!s||!o?!1:t.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:i,empty:s}=n;if(!s||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const a=i.after();return a===void 0?!1:r.nodeAt(a)?t.commands.command(({tr:l})=>(l.setSelection(te.near(r.resolve(a))),!0)):t.commands.exitCode()}}},addInputRules(){return[ma({find:d2,type:this.type,getAttributes:t=>({language:t[1]})}),ma({find:f2,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new Ee({key:new Le("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,s=i?.mode;if(!n||!s)return!1;const{tr:o,schema:a}=t.state,u=a.text(n.replace(/\r\n?/g,` -`));return o.replaceSelectionWith(this.type.create({language:s},u)),o.selection.$from.parent.type!==this.type&&o.setSelection(j.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),t.dispatch(o),!0}}})]}});function p2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yp(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&yp(n)}),t}let dc=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Ep(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ln(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const h2="",fc=t=>!!t.scope,m2=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`};let g2=class{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Ep(e)}openNode(e){if(!fc(e))return;const n=m2(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){fc(e)&&(this.buffer+=h2)}value(){return this.buffer}span(e){this.buffer+=``}};const pc=(t={})=>{const e={children:[]};return Object.assign(e,t),e};let b2=class xp{constructor(){this.rootNode=pc(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=pc({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{xp._collapse(n)}))}},y2=class extends b2{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new g2(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function ei(t){return t?typeof t=="string"?t:t.source:null}function vp(t){return Kn("(?=",t,")")}function E2(t){return Kn("(?:",t,")*")}function x2(t){return Kn("(?:",t,")?")}function Kn(...t){return t.map(n=>ei(n)).join("")}function v2(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function hu(...t){return"("+(v2(t).capture?"":"?:")+t.map(r=>ei(r)).join("|")+")"}function wp(t){return new RegExp(t.toString()+"|").exec("").length-1}function w2(t,e){const n=t&&t.exec(e);return n&&n.index===0}const S2=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function mu(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const i=n;let s=ei(r),o="";for(;s.length>0;){const a=S2.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(e)}const _2=/\b\B/,Sp="[a-zA-Z]\\w*",gu="[a-zA-Z_]\\w*",_p="\\b\\d+(\\.\\d+)?",Np="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Tp="\\b(0b[01]+)",N2="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",T2=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=Kn(e,/.*\b/,t.binary,/\b.*/)),ln({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},ti={begin:"\\\\[\\s\\S]",relevance:0},k2={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ti]},O2={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ti]},A2={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ro=function(t,e,n={}){const r=ln({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=hu("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Kn(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},C2=ro("//","$"),M2=ro("/\\*","\\*/"),R2=ro("#","$"),D2={scope:"number",begin:_p,relevance:0},I2={scope:"number",begin:Np,relevance:0},L2={scope:"number",begin:Tp,relevance:0},P2={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ti,{begin:/\[/,end:/\]/,relevance:0,contains:[ti]}]},B2={scope:"title",begin:Sp,relevance:0},$2={scope:"title",begin:gu,relevance:0},F2={begin:"\\.\\s*"+gu,relevance:0},U2=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var vi=Object.freeze({__proto__:null,APOS_STRING_MODE:k2,BACKSLASH_ESCAPE:ti,BINARY_NUMBER_MODE:L2,BINARY_NUMBER_RE:Tp,COMMENT:ro,C_BLOCK_COMMENT_MODE:M2,C_LINE_COMMENT_MODE:C2,C_NUMBER_MODE:I2,C_NUMBER_RE:Np,END_SAME_AS_BEGIN:U2,HASH_COMMENT_MODE:R2,IDENT_RE:Sp,MATCH_NOTHING_RE:_2,METHOD_GUARD:F2,NUMBER_MODE:D2,NUMBER_RE:_p,PHRASAL_WORDS_MODE:A2,QUOTE_STRING_MODE:O2,REGEXP_MODE:P2,RE_STARTERS_RE:N2,SHEBANG:T2,TITLE_MODE:B2,UNDERSCORE_IDENT_RE:gu,UNDERSCORE_TITLE_MODE:$2});function z2(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function H2(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function q2(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=z2,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function V2(t,e){Array.isArray(t.illegal)&&(t.illegal=hu(...t.illegal))}function K2(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function W2(t,e){t.relevance===void 0&&(t.relevance=1)}const G2=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=Kn(n.beforeMatch,vp(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},j2=["of","and","for","in","not","or","if","then","parent","list","value"],Y2="keyword";function kp(t,e,n=Y2){const r=Object.create(null);return typeof t=="string"?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach(function(s){Object.assign(r,kp(t[s],e,s))}),r;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const u=a.split("|");r[u[0]]=[s,J2(u[0],u[1])]})}}function J2(t,e){return e?Number(e):Z2(t)?0:1}function Z2(t){return j2.includes(t.toLowerCase())}const hc={},Pn=t=>{console.error(t)},mc=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Zn=(t,e)=>{hc[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),hc[`${t}/${e}`]=!0)},ss=new Error;function Op(t,e,{key:n}){let r=0;const i=t[n],s={},o={};for(let a=1;a<=e.length;a++)o[a+r]=i[a],s[a+r]=!0,r+=wp(e[a-1]);t[n]=o,t[n]._emit=s,t[n]._multi=!0}function X2(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Pn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ss;if(typeof t.beginScope!="object"||t.beginScope===null)throw Pn("beginScope must be object"),ss;Op(t,t.begin,{key:"beginScope"}),t.begin=mu(t.begin,{joinWith:""})}}function Q2(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Pn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ss;if(typeof t.endScope!="object"||t.endScope===null)throw Pn("endScope must be object"),ss;Op(t,t.end,{key:"endScope"}),t.end=mu(t.end,{joinWith:""})}}function ex(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function tx(t){ex(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),X2(t),Q2(t)}function nx(t){function e(o,a){return new RegExp(ei(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,a]),this.matchAt+=wp(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(u=>u[1]);this.matcherRe=e(mu(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(a);if(!u)return null;const l=u.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[l];return u.splice(0,l),Object.assign(u,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const u=new n;return this.rules.slice(a).forEach(([l,c])=>u.addRule(l,c)),u.compile(),this.multiRegexes[a]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,u){this.rules.push([a,u]),u.type==="begin"&&this.count++}exec(a){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let l=u.exec(a);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,l=c.exec(a)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function i(o){const a=new r;return o.contains.forEach(u=>a.addRule(u.begin,{rule:u,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const u=o;if(o.isCompiled)return u;[H2,K2,tx,G2].forEach(c=>c(o,a)),t.compilerExtensions.forEach(c=>c(o,a)),o.__beforeBegin=null,[q2,V2,W2].forEach(c=>c(o,a)),o.isCompiled=!0;let l=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),l=o.keywords.$pattern,delete o.keywords.$pattern),l=l||/\w+/,o.keywords&&(o.keywords=kp(o.keywords,t.case_insensitive)),u.keywordPatternRe=e(l,!0),a&&(o.begin||(o.begin=/\B|\b/),u.beginRe=e(u.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(u.endRe=e(u.end)),u.terminatorEnd=ei(u.end)||"",o.endsWithParent&&a.terminatorEnd&&(u.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(u.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return rx(c==="self"?o:c)})),o.contains.forEach(function(c){s(c,u)}),o.starts&&s(o.starts,a),u.matcher=i(u),u}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=ln(t.classNameAliases||{}),s(t)}function Ap(t){return t?t.endsWithParent||Ap(t.starts):!1}function rx(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return ln(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:Ap(t)?ln(t,{starts:t.starts?ln(t.starts):null}):Object.isFrozen(t)?ln(t):t}var ix="11.10.0";let sx=class extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}};const Lo=Ep,gc=ln,bc=Symbol("nomatch"),ox=7,Cp=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y2};function u(E){return a.noHighlightRe.test(E)}function l(E){let w=E.className+" ";w+=E.parentNode?E.parentNode.className:"";const A=a.languageDetectRe.exec(w);if(A){const D=k(A[1]);return D||(mc(s.replace("{}",A[1])),mc("Falling back to no-highlight mode for this block.",E)),D?A[1]:"no-highlight"}return w.split(/\s+/).find(D=>u(D)||k(D))}function c(E,w,A){let D="",F="";typeof w=="object"?(D=E,A=w.ignoreIllegals,F=w.language):(Zn("10.7.0","highlight(lang, code, ...args) has been deprecated."),Zn("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),F=E,D=w),A===void 0&&(A=!0);const K={code:D,language:F};J("before:highlight",K);const ue=K.result?K.result:d(K.language,K.code,A);return ue.code=K.code,J("after:highlight",ue),ue}function d(E,w,A,D){const F=Object.create(null);function K(S,T){return S.keywords[T]}function ue(){if(!M.keywords){X.addText(V);return}let S=0;M.keywordPatternRe.lastIndex=0;let T=M.keywordPatternRe.exec(V),I="";for(;T;){I+=V.substring(S,T.index);const z=ce.case_insensitive?T[0].toLowerCase():T[0],oe=K(M,z);if(oe){const[we,Tr]=oe;if(X.addText(I),I="",F[z]=(F[z]||0)+1,F[z]<=ox&&(Pe+=Tr),we.startsWith("_"))I+=T[0];else{const N=ce.classNameAliases[we]||we;ae(T[0],N)}}else I+=T[0];S=M.keywordPatternRe.lastIndex,T=M.keywordPatternRe.exec(V)}I+=V.substring(S),X.addText(I)}function xe(){if(V==="")return;let S=null;if(typeof M.subLanguage=="string"){if(!e[M.subLanguage]){X.addText(V);return}S=d(M.subLanguage,V,!0,Ve[M.subLanguage]),Ve[M.subLanguage]=S._top}else S=p(V,M.subLanguage.length?M.subLanguage:null);M.relevance>0&&(Pe+=S.relevance),X.__addSublanguage(S._emitter,S.language)}function ee(){M.subLanguage!=null?xe():ue(),V=""}function ae(S,T){S!==""&&(X.startScope(T),X.addText(S),X.endScope())}function Ze(S,T){let I=1;const z=T.length-1;for(;I<=z;){if(!S._emit[I]){I++;continue}const oe=ce.classNameAliases[S[I]]||S[I],we=T[I];oe?ae(we,oe):(V=we,ue(),V=""),I++}}function Oe(S,T){return S.scope&&typeof S.scope=="string"&&X.openNode(ce.classNameAliases[S.scope]||S.scope),S.beginScope&&(S.beginScope._wrap?(ae(V,ce.classNameAliases[S.beginScope._wrap]||S.beginScope._wrap),V=""):S.beginScope._multi&&(Ze(S.beginScope,T),V="")),M=Object.create(S,{parent:{value:M}}),M}function Xe(S,T,I){let z=w2(S.endRe,I);if(z){if(S["on:end"]){const oe=new dc(S);S["on:end"](T,oe),oe.isMatchIgnored&&(z=!1)}if(z){for(;S.endsParent&&S.parent;)S=S.parent;return S}}if(S.endsWithParent)return Xe(S.parent,T,I)}function Qe(S){return M.matcher.regexIndex===0?(V+=S[0],1):(ct=!0,0)}function at(S){const T=S[0],I=S.rule,z=new dc(I),oe=[I.__beforeBegin,I["on:begin"]];for(const we of oe)if(we&&(we(S,z),z.isMatchIgnored))return Qe(T);return I.skip?V+=T:(I.excludeBegin&&(V+=T),ee(),!I.returnBegin&&!I.excludeBegin&&(V=T)),Oe(I,S),I.returnBegin?0:T.length}function kt(S){const T=S[0],I=w.substring(S.index),z=Xe(M,S,I);if(!z)return bc;const oe=M;M.endScope&&M.endScope._wrap?(ee(),ae(T,M.endScope._wrap)):M.endScope&&M.endScope._multi?(ee(),Ze(M.endScope,S)):oe.skip?V+=T:(oe.returnEnd||oe.excludeEnd||(V+=T),ee(),oe.excludeEnd&&(V=T));do M.scope&&X.closeNode(),!M.skip&&!M.subLanguage&&(Pe+=M.relevance),M=M.parent;while(M!==z.parent);return z.starts&&Oe(z.starts,S),oe.returnEnd?0:T.length}function se(){const S=[];for(let T=M;T!==ce;T=T.parent)T.scope&&S.unshift(T.scope);S.forEach(T=>X.openNode(T))}let Ne={};function Ue(S,T){const I=T&&T[0];if(V+=S,I==null)return ee(),0;if(Ne.type==="begin"&&T.type==="end"&&Ne.index===T.index&&I===""){if(V+=w.slice(T.index,T.index+1),!i){const z=new Error(`0 width match regex (${E})`);throw z.languageName=E,z.badRule=Ne.rule,z}return 1}if(Ne=T,T.type==="begin")return at(T);if(T.type==="illegal"&&!A){const z=new Error('Illegal lexeme "'+I+'" for mode "'+(M.scope||"")+'"');throw z.mode=M,z}else if(T.type==="end"){const z=kt(T);if(z!==bc)return z}if(T.type==="illegal"&&I==="")return 1;if(lt>1e5&<>T.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=I,I.length}const ce=k(E);if(!ce)throw Pn(s.replace("{}",E)),new Error('Unknown language: "'+E+'"');const Ft=nx(ce);let ut="",M=D||Ft;const Ve={},X=new a.__emitter(a);se();let V="",Pe=0,ve=0,lt=0,ct=!1;try{if(ce.__emitTokens)ce.__emitTokens(w,X);else{for(M.matcher.considerAll();;){lt++,ct?ct=!1:M.matcher.considerAll(),M.matcher.lastIndex=ve;const S=M.matcher.exec(w);if(!S)break;const T=w.substring(ve,S.index),I=Ue(T,S);ve=S.index+I}Ue(w.substring(ve))}return X.finalize(),ut=X.toHTML(),{language:E,value:ut,relevance:Pe,illegal:!1,_emitter:X,_top:M}}catch(S){if(S.message&&S.message.includes("Illegal"))return{language:E,value:Lo(w),illegal:!0,relevance:0,_illegalBy:{message:S.message,index:ve,context:w.slice(ve-100,ve+100),mode:S.mode,resultSoFar:ut},_emitter:X};if(i)return{language:E,value:Lo(w),illegal:!1,relevance:0,errorRaised:S,_emitter:X,_top:M};throw S}}function f(E){const w={value:Lo(E),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return w._emitter.addText(E),w}function p(E,w){w=w||a.languages||Object.keys(e);const A=f(E),D=w.filter(k).filter(G).map(ee=>d(ee,E,!1));D.unshift(A);const F=D.sort((ee,ae)=>{if(ee.relevance!==ae.relevance)return ae.relevance-ee.relevance;if(ee.language&&ae.language){if(k(ee.language).supersetOf===ae.language)return 1;if(k(ae.language).supersetOf===ee.language)return-1}return 0}),[K,ue]=F,xe=K;return xe.secondBest=ue,xe}function h(E,w,A){const D=w&&n[w]||A;E.classList.add("hljs"),E.classList.add(`language-${D}`)}function m(E){let w=null;const A=l(E);if(u(A))return;if(J("before:highlightElement",{el:E,language:A}),E.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",E);return}if(E.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(E)),a.throwUnescapedHTML))throw new sx("One of your code blocks includes unescaped HTML.",E.innerHTML);w=E;const D=w.textContent,F=A?c(D,{language:A,ignoreIllegals:!0}):p(D);E.innerHTML=F.value,E.dataset.highlighted="yes",h(E,A,F.language),E.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(E.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),J("after:highlightElement",{el:E,result:F,text:D})}function g(E){a=gc(a,E)}const y=()=>{b(),Zn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){b(),Zn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function b(){if(document.readyState==="loading"){_=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function O(){_&&b()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function x(E,w){let A=null;try{A=w(t)}catch(D){if(Pn("Language definition for '{}' could not be registered.".replace("{}",E)),i)Pn(D);else throw D;A=o}A.name||(A.name=E),e[E]=A,A.rawDefinition=w.bind(null,t),A.aliases&&$(A.aliases,{languageName:E})}function R(E){delete e[E];for(const w of Object.keys(n))n[w]===E&&delete n[w]}function P(){return Object.keys(e)}function k(E){return E=(E||"").toLowerCase(),e[E]||e[n[E]]}function $(E,{languageName:w}){typeof E=="string"&&(E=[E]),E.forEach(A=>{n[A.toLowerCase()]=w})}function G(E){const w=k(E);return w&&!w.disableAutodetect}function Z(E){E["before:highlightBlock"]&&!E["before:highlightElement"]&&(E["before:highlightElement"]=w=>{E["before:highlightBlock"](Object.assign({block:w.el},w))}),E["after:highlightBlock"]&&!E["after:highlightElement"]&&(E["after:highlightElement"]=w=>{E["after:highlightBlock"](Object.assign({block:w.el},w))})}function W(E){Z(E),r.push(E)}function Q(E){const w=r.indexOf(E);w!==-1&&r.splice(w,1)}function J(E,w){const A=E;r.forEach(function(D){D[A]&&D[A](w)})}function re(E){return Zn("10.7.0","highlightBlock will be removed entirely in v12.0"),Zn("10.7.0","Please use highlightElement now."),m(E)}Object.assign(t,{highlight:c,highlightAuto:p,highlightAll:b,highlightElement:m,highlightBlock:re,configure:g,initHighlighting:y,initHighlightingOnLoad:v,registerLanguage:x,unregisterLanguage:R,listLanguages:P,getLanguage:k,registerAliases:$,autoDetection:G,inherit:gc,addPlugin:W,removePlugin:Q}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=ix,t.regex={concat:Kn,lookahead:vp,either:hu,optional:x2,anyNumberOfTimes:E2};for(const E in vi)typeof vi[E]=="object"&&yp(vi[E]);return Object.assign(t,vi),t},vr=Cp({});vr.newInstance=()=>Cp({});var ax=vr;vr.HighlightJS=vr;vr.default=vr;var ux=p2(ax);function Mp(t,e=[]){return t.map(n=>{const r=[...e,...n.properties?n.properties.className:[]];return n.children?Mp(n.children,r):{text:n.value,classes:r}}).flat()}function yc(t){return t.value||t.children||[]}function lx(t){return!!ux.getLanguage(t)}function Ec({doc:t,name:e,lowlight:n,defaultLanguage:r}){const i=[];return pa(t,s=>s.type.name===e).forEach(s=>{var o;let a=s.pos+1;const u=s.node.attrs.language||r,l=n.listLanguages(),c=u&&(l.includes(u)||lx(u)||!((o=n.registered)===null||o===void 0)&&o.call(n,u))?yc(n.highlight(u,s.node.textContent)):yc(n.highlightAuto(s.node.textContent));Mp(c).forEach(d=>{const f=a+d.text.length;if(d.classes.length){const p=We.inline(a,f,{class:d.classes.join(" ")});i.push(p)}a=f})}),be.create(t,i)}function cx(t){return typeof t=="function"}function dx({name:t,lowlight:e,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(i=>cx(e[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new Ee({key:new Le("lowlight"),state:{init:(i,{doc:s})=>Ec({doc:s,name:t,lowlight:e,defaultLanguage:n}),apply:(i,s,o,a)=>{const u=o.selection.$head.parent.type.name,l=a.selection.$head.parent.type.name,c=pa(o.doc,f=>f.type.name===t),d=pa(a.doc,f=>f.type.name===t);return i.docChanged&&([u,l].includes(t)||d.length!==c.length||i.steps.some(f=>f.from!==void 0&&f.to!==void 0&&c.some(p=>p.pos>=f.from&&p.pos+p.node.nodeSize<=f.to)))?Ec({doc:i.doc,name:t,lowlight:e,defaultLanguage:n}):s.map(i.mapping,i.doc)}},props:{decorations(i){return r.getState(i)}}});return r}const fx=bp.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),lowlight:{}}},addProseMirrorPlugins(){var t;return[...((t=this.parent)===null||t===void 0?void 0:t.call(this))||[],dx({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function px(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],b={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},O={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},x=[O,d,a,n,t.C_BLOCK_COMMENT_MODE,c,l],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:x.concat([{begin:/\(/,end:/\)/,keywords:b,contains:x.concat(["self"]),relevance:0}]),relevance:0},P={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,l,c,a,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,l,c,a]}]},a,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:b,illegal:"",keywords:b,contains:["self",a]},{begin:t.IDENT_RE+"::",keywords:b},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function hx(t){const e={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=px(t),r=n.keywords;return r.type=[...r.type,...e.type],r.literal=[...r.literal,...e.literal],r.built_in=[...r.built_in,...e.built_in],r._hints=e._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function mx(t){const e=t.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const a={match:/\\"/},u={className:"string",begin:/'/,end:/'/},l={match:/\\'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,n]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=t.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],g={match:/(\/[a-z._-]+)+/},y=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],v=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],_=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],b=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[...y,...v,"set","shopt",..._,...b]},contains:[f,t.SHEBANG(),p,c,t.HASH_COMMENT_MODE,s,g,o,a,u,l,n]}}function gx(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",g={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[d,a,n,t.C_BLOCK_COMMENT_MODE,c,l],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:y.concat([{begin:/\(/,end:/\)/,keywords:g,contains:y.concat(["self"]),relevance:0}]),relevance:0},_={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:p,returnBegin:!0,contains:[t.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,l,c,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,l,c,a]}]},a,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:d,strings:l,keywords:g}}}function bx(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],b={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},O={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},x=[O,d,a,n,t.C_BLOCK_COMMENT_MODE,c,l],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:x.concat([{begin:/\(/,end:/\)/,keywords:b,contains:x.concat(["self"]),relevance:0}]),relevance:0},P={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,l,c,a,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,l,c,a]}]},a,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:b,illegal:"",keywords:b,contains:["self",a]},{begin:t.IDENT_RE+"::",keywords:b},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function yx(t){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:e,literal:r},a=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},c=t.inherit(l,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:o},f=t.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,f]},h={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},m=t.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[h,p,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.C_BLOCK_COMMENT_MODE],f.contains=[m,p,c,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[h,p,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},v=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",_={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},g,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+v+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[g,u,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},_]}}const Ex=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),xx=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],vx=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],wx=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Sx=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],_x=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Nx(t){const e=t.regex,n=Ex(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+wx.join("|")+")"},{begin:":(:)?("+Sx.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+_x.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:vx.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+xx.join("|")+")\\b"}]}}function Tx(t){const e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function kx(t){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"Rp(t,e,n-1))}function Cx(t){const e=t.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Rp("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),u={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[e.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[c,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,xc,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},xc,l]}}const vc="[A-Za-z$_][0-9A-Za-z$_]*",Mx=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Rx=["true","false","null","undefined","NaN","Infinity"],Dp=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ip=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Lp=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Dx=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ix=[].concat(Lp,Dp,Ip);function Lx(t){const e=t.regex,n=(w,{after:A})=>{const D="",end:""},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,A)=>{const D=w[0].length+w.index,F=w.input[D];if(F==="<"||F===","){A.ignoreMatch();return}F===">"&&(n(w,{after:D})||A.ignoreMatch());let K;const ue=w.input.substring(D);if(K=ue.match(/^\s*=/)){A.ignoreMatch();return}if((K=ue.match(/^\s+extends\s+/))&&K.index===0){A.ignoreMatch();return}}},a={$pattern:vc,keyword:Mx,literal:Rx,built_in:Ix,"variable.language":Dx},u="[0-9](_?[0-9])*",l=`\\.(${u})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},_=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,h,m,g,{match:/\$\d+/},d];f.contains=_.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(_)});const b=[].concat(v,f.contains),O=b.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(b)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Dp,...Ip]}},k={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},G={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return e.concat("(?!",w.join("|"),")")}const W={match:e.concat(/\b/,Z([...Lp,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",E={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),k,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,h,m,g,v,{match:/\$\d+/},d,P,{className:"attr",begin:r+e.lookahead(":"),relevance:0},E,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,t.REGEXP_MODE,{className:"function",begin:re,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},W,G,R,J,{match:/\$[(.]/}]}}function Px(t){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[e,n,t.QUOTE_STRING_MODE,i,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var ir="[0-9](_*[0-9])*",_i=`\\.(${ir})`,Ni="[0-9a-fA-F](_*[0-9a-fA-F])*",Bx={className:"number",variants:[{begin:`(\\b(${ir})((${_i})|\\.)?|(${_i}))[eE][+-]?(${ir})[fFdD]?\\b`},{begin:`\\b(${ir})((${_i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${_i})[fFdD]?\\b`},{begin:`\\b(${ir})[fFdD]\\b`},{begin:`\\b0[xX]((${Ni})\\.?|(${Ni})?\\.(${Ni}))[pP][+-]?(${ir})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Ni})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function $x(t){const e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,i]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,s,i]}]};i.contains.push(o);const a={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},u={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(o,{className:"string"}),"self"]}]},l=Bx,c=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,c,n,r,a,u,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,t.C_LINE_COMMENT_MODE,c],relevance:0},t.C_LINE_COMMENT_MODE,c,a,u,o,t.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},a,u]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` -`},l]}}const Fx=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Ux=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],zx=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Pp=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Bp=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Hx=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),qx=Pp.concat(Bp);function Vx(t){const e=Fx(t),n=qx,r="and or not only",i="[\\w-]+",s="("+i+"|@\\{"+i+"\\})",o=[],a=[],u=function(_){return{className:"string",begin:"~?"+_+".*?"+_}},l=function(_,b,O){return{className:_,begin:b,relevance:O}},c={$pattern:/[a-z-]+/,keyword:r,attribute:zx.join(" ")},d={begin:"\\(",end:"\\)",contains:a,keywords:c,relevance:0};a.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,u("'"),u('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.HEXCOLOR,d,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);const f=a.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},h={begin:s+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Hx.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:a,relevance:0}},g={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},y={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:s,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+Ux.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,l("selector-tag",s,0),l("selector-id","#"+s),l("selector-class","\\."+s,0),l("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Pp.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Bp.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},e.FUNCTION_DISPATCH]},v={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[y]};return o.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,m,g,v,h,y,p,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function Kx(t){const e="\\[=*\\[",n="\\]=*\\]",r={begin:e,end:n,contains:["self"]},i=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:n,contains:[r],relevance:5}])}}function Wx(t){const e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},a=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,a,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=t.inherit(l,{contains:[]}),f=t.inherit(c,{contains:[]});l.contains.push(f),c.contains.push(d);let p=[n,u];return[l,c,d,f].forEach(g=>{g.contains=g.contains.concat(p)}),p=p.concat(l,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,s,l,c,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,u,o]}}function jx(t){const e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,a={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:a,illegal:"/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function Yx(t){const e=t.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},a={variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},u=[t.BACKSLASH_ESCAPE,s,a],l=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],c=(p,h,m="\\1")=>{const g=m==="\\1"?m:e.concat(m,h);return e.concat(e.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,g,/(?:\\.|[^\\\/])*?/,m,r)},d=(p,h,m)=>e.concat(e.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,m,r),f=[a,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:c("s|tr|y",e.either(...l,{capture:!0}))},{begin:c("s|tr|y","\\(","\\)")},{begin:c("s|tr|y","\\[","\\]")},{begin:c("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",e.either(...l,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=f,o.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function Jx(t){const e=t.regex,n=/(?![A-Za-z0-9])(?![$])/,r=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),s={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},a={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=t.inherit(t.APOS_STRING_MODE,{illegal:null}),l=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(a)}),c={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(a),"on:begin":(W,Q)=>{Q.data._beginMatch=W[1]||W[2]},"on:end":(W,Q)=>{Q.data._beginMatch!==W[1]&&Q.ignoreMatch()}},d=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ -]`,p={scope:"string",variants:[l,u,c,d]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],g=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],_={keyword:g,literal:(W=>{const Q=[];return W.forEach(J=>{Q.push(J),J.toLowerCase()===J?Q.push(J.toUpperCase()):Q.push(J.toLowerCase())}),Q})(m),built_in:y},b=W=>W.map(Q=>Q.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,e.concat(f,"+"),e.concat("(?!",b(y).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},x=e.concat(r,"\\b(?!\\()"),R={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,e.concat(/::/,e.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[i,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},P={scope:"attr",match:e.concat(r,e.lookahead(":"),e.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:_,contains:[P,s,R,t.C_BLOCK_COMMENT_MODE,p,h,O]},$={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",b(g).join("\\b|"),"|",b(y).join("\\b|"),"\\b)"),r,e.concat(f,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push($);const G=[P,R,t.C_BLOCK_COMMENT_MODE,p,h,O],Z={begin:e.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...G]},...G,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:_,contains:[Z,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,$,R,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:_,contains:["self",s,R,t.C_BLOCK_COMMENT_MODE,p,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},p,h]}}function Zx(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Xx(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Qx(t){const e=t.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},c={begin:/\{\{/,relevance:0},d={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u,c,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u,c,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,c,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,c,l]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,h=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${h})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${f})[jJ](?=${h})`}]},g={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",u,m,d,t.HASH_COMMENT_MODE]}]};return l.contains=[d,m,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[u,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,g,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,y,d]}]}}function ev(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function tv(t){const e=t.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=e.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=e.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[s,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function nv(t){const e=t.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=e.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},l=[t.COMMENT("#","$",{contains:[a]}),t.COMMENT("^=begin","^=end",{contains:[a],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"string",contains:[t.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,c]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},x=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,l),relevance:0}].concat(u,l);c.contains=x,m.contains=x;const $=[{begin:/^\s*=>/,starts:{end:"$",contains:x}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:x}}];return l.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat($).concat(l).concat(x)}}function rv(t){const e=t.regex,n={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let|for|while|if|else|match\b)/,t.IDENT_RE,e.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],s=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],a=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:a,keyword:i,literal:s,built_in:o},illegal:""},n]}}const iv=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),sv=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],ov=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],av=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],uv=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],lv=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function cv(t){const e=iv(t),n=uv,r=av,i="@[a-z-]+",s="and or not only",a={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+sv.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+lv.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,a,e.HEXCOLOR,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:ov.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}function dv(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function fv(t){const e=t.regex,n=t.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=c,h=[...l,...u].filter(_=>!c.includes(_)),m={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={begin:e.concat(/\b/,e.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(_,{exceptions:b,when:O}={}){const x=O;return b=b||[],_.map(R=>R.match(/\|\d+$/)||b.includes(R)?R:x(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(h,{when:_=>_.length<3}),literal:s,type:a,built_in:d},contains:[{begin:e.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:h.concat(f),literal:s,type:a}},{className:"type",begin:e.either(...o)},y,m,r,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,g]}}function $p(t){return t?typeof t=="string"?t:t.source:null}function Ti(t){return pe("(?=",t,")")}function pe(...t){return t.map(n=>$p(n)).join("")}function pv(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function et(...t){return"("+(pv(t).capture?"":"?:")+t.map(r=>$p(r)).join("|")+")"}const bu=t=>pe(/\b/,t,/\w$/.test(t)?/\b/:/\B/),hv=["Protocol","Type"].map(bu),wc=["init","self"].map(bu),mv=["Any","Self"],Po=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Sc=["false","nil","true"],gv=["assignment","associativity","higherThan","left","lowerThan","none","right"],bv=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],_c=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Fp=et(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Up=et(Fp,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Bo=pe(Fp,Up,"*"),zp=et(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),as=et(zp,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),zt=pe(zp,as,"*"),$o=pe(/[A-Z]/,as,"*"),yv=["attached","autoclosure",pe(/convention\(/,et("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",pe(/objc\(/,zt,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Ev=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function xv(t){const e={match:/\s+/,relevance:0},n=t.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[t.C_LINE_COMMENT_MODE,n],i={match:[/\./,et(...hv,...wc)],className:{2:"keyword"}},s={match:pe(/\./,et(...Po)),relevance:0},o=Po.filter(se=>typeof se=="string").concat(["_|0"]),a=Po.filter(se=>typeof se!="string").concat(mv).map(bu),u={variants:[{className:"keyword",match:et(...a,...wc)}]},l={$pattern:et(/\b\w+/,/#\w+/),keyword:o.concat(bv),literal:Sc},c=[i,s,u],d={match:pe(/\./,et(..._c)),relevance:0},f={className:"built_in",match:pe(/\b/,et(..._c),/(?=\()/)},p=[d,f],h={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:Bo},{match:`\\.(\\.|${Up})+`}]},g=[h,m],y="([0-9]_*)+",v="([0-9a-fA-F]_*)+",_={className:"number",relevance:0,variants:[{match:`\\b(${y})(\\.(${y}))?([eE][+-]?(${y}))?\\b`},{match:`\\b0x(${v})(\\.(${v}))?([pP][+-]?(${y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},b=(se="")=>({className:"subst",variants:[{match:pe(/\\/,se,/[0\\tnr"']/)},{match:pe(/\\/,se,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(se="")=>({className:"subst",match:pe(/\\/,se,/[\t ]*(?:[\r\n]|\r\n)/)}),x=(se="")=>({className:"subst",label:"interpol",begin:pe(/\\/,se,/\(/),end:/\)/}),R=(se="")=>({begin:pe(se,/"""/),end:pe(/"""/,se),contains:[b(se),O(se),x(se)]}),P=(se="")=>({begin:pe(se,/"/),end:pe(/"/,se),contains:[b(se),x(se)]}),k={className:"string",variants:[R(),R("#"),R("##"),R("###"),P(),P("#"),P("##"),P("###")]},$=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],G={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:$},Z=se=>{const Ne=pe(se,/\//),Ue=pe(/\//,se);return{begin:Ne,end:Ue,contains:[...$,{scope:"comment",begin:`#(?!.*${Ue})`,end:/$/}]}},W={scope:"regexp",variants:[Z("###"),Z("##"),Z("#"),G]},Q={match:pe(/`/,zt,/`/)},J={className:"variable",match:/\$\d+/},re={className:"variable",match:`\\$${as}+`},E=[Q,J,re],w={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Ev,contains:[...g,_,k]}]}},A={scope:"keyword",match:pe(/@/,et(...yv))},D={scope:"meta",match:pe(/@/,zt)},F=[w,A,D],K={match:Ti(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:pe(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,as,"+")},{className:"type",match:$o,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:pe(/\s+&\s+/,Ti($o)),relevance:0}]},ue={begin://,keywords:l,contains:[...r,...c,...F,h,K]};K.contains.push(ue);const xe={match:pe(zt,/\s*:/),keywords:"_|0",relevance:0},ee={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",xe,...r,W,...c,...p,...g,_,k,...E,...F,K]},ae={begin://,keywords:"repeat each",contains:[...r,K]},Ze={begin:et(Ti(pe(zt,/\s*:/)),Ti(pe(zt,/\s+/,zt,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:zt}]},Oe={begin:/\(/,end:/\)/,keywords:l,contains:[Ze,...r,...c,...g,_,k,...F,K,ee],endsParent:!0,illegal:/["']/},Xe={match:[/(func|macro)/,/\s+/,et(Q.match,zt,Bo)],className:{1:"keyword",3:"title.function"},contains:[ae,Oe,e],illegal:[/\[/,/%/]},Qe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ae,Oe,e],illegal:/\[|%/},at={match:[/operator/,/\s+/,Bo],className:{1:"keyword",3:"title"}},kt={begin:[/precedencegroup/,/\s+/,$o],className:{1:"keyword",3:"title"},contains:[K],keywords:[...gv,...Sc],end:/}/};for(const se of k.variants){const Ne=se.contains.find(ce=>ce.label==="interpol");Ne.keywords=l;const Ue=[...c,...p,...g,_,k,...E];Ne.contains=[...Ue,{begin:/\(/,end:/\)/,contains:["self",...Ue]}]}return{name:"Swift",keywords:l,contains:[...r,Xe,Qe,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:l,contains:[t.inherit(t.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c]},at,kt,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},W,...c,...p,...g,_,k,...E,...F,K,ee]}}const us="[A-Za-z$_][0-9A-Za-z$_]*",Hp=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],qp=["true","false","null","undefined","NaN","Infinity"],Vp=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Kp=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Wp=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gp=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],jp=[].concat(Wp,Vp,Kp);function vv(t){const e=t.regex,n=(w,{after:A})=>{const D="",end:""},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,A)=>{const D=w[0].length+w.index,F=w.input[D];if(F==="<"||F===","){A.ignoreMatch();return}F===">"&&(n(w,{after:D})||A.ignoreMatch());let K;const ue=w.input.substring(D);if(K=ue.match(/^\s*=/)){A.ignoreMatch();return}if((K=ue.match(/^\s+extends\s+/))&&K.index===0){A.ignoreMatch();return}}},a={$pattern:us,keyword:Hp,literal:qp,built_in:jp,"variable.language":Gp},u="[0-9](_?[0-9])*",l=`\\.(${u})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},_=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,h,m,g,{match:/\$\d+/},d];f.contains=_.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(_)});const b=[].concat(v,f.contains),O=b.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(b)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Vp,...Kp]}},k={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},G={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return e.concat("(?!",w.join("|"),")")}const W={match:e.concat(/\b/,Z([...Wp,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",E={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),k,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,h,m,g,v,{match:/\$\d+/},d,P,{className:"attr",begin:r+e.lookahead(":"),relevance:0},E,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,t.REGEXP_MODE,{className:"function",begin:re,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},W,G,R,J,{match:/\$[(.]/}]}}function wv(t){const e=vv(t),n=us,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],u={$pattern:us,keyword:Hp.concat(a),literal:qp,built_in:jp.concat(r),"variable.language":Gp},l={className:"meta",begin:"@"+n},c=(f,p,h)=>{const m=f.contains.findIndex(g=>g.label===p);if(m===-1)throw new Error("can not find mode to replace");f.contains.splice(m,1,h)};Object.assign(e.keywords,u),e.exports.PARAMS_CONTAINS.push(l),e.contains=e.contains.concat([l,i,s]),c(e,"shebang",t.SHEBANG()),c(e,"use_strict",o);const d=e.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Sv(t){const e=t.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,a=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:e.concat(/# */,e.either(s,i),/ *#/)},{begin:e.concat(/# */,a,/ *#/)},{begin:e.concat(/# */,o,/ *#/)},{begin:e.concat(/# */,e.either(s,i),/ +/,e.either(o,a),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},c={className:"label",begin:/^\w+:/},d=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,u,l,c,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function _v(t){t.regex;const e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");const n=t.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},a={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,i,t.QUOTE_STRING_MODE,u,l,a]}}function Nv(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(s,{begin:/\(/,end:/\)/}),a=t.inherit(t.APOS_STRING_MODE,{className:"string"}),u=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[s,u,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[s,o,u,a]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Tv(t){const e="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,i]},o=t.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},p={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},d,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},p,h,s],g=[...m];return g.pop(),g.push(o),f.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}const kv={arduino:hx,bash:mx,c:gx,cpp:bx,csharp:yx,css:Nx,diff:Tx,go:kx,graphql:Ox,ini:Ax,java:Cx,javascript:Lx,json:Px,kotlin:$x,less:Vx,lua:Kx,makefile:Wx,markdown:Gx,objectivec:jx,perl:Yx,php:Jx,"php-template":Zx,plaintext:Xx,python:Qx,"python-repl":ev,r:tv,ruby:nv,rust:rv,scss:cv,shell:dv,sql:fv,swift:xv,typescript:wv,vbnet:Sv,wasm:_v,xml:Nv,yaml:Tv};function Yp(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Yp(n)}),t}class Nc{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Jp(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function cn(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const Ov="",Tc=t=>!!t.scope,Av=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`};class Cv{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Jp(e)}openNode(e){if(!Tc(e))return;const n=Av(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){Tc(e)&&(this.buffer+=Ov)}value(){return this.buffer}span(e){this.buffer+=``}}const kc=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class yu{constructor(){this.rootNode=kc(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=kc({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{yu._collapse(n)}))}}class Mv extends yu{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Cv(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ni(t){return t?typeof t=="string"?t:t.source:null}function Zp(t){return Wn("(?=",t,")")}function Rv(t){return Wn("(?:",t,")*")}function Dv(t){return Wn("(?:",t,")?")}function Wn(...t){return t.map(n=>ni(n)).join("")}function Iv(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Eu(...t){return"("+(Iv(t).capture?"":"?:")+t.map(r=>ni(r)).join("|")+")"}function Xp(t){return new RegExp(t.toString()+"|").exec("").length-1}function Lv(t,e){const n=t&&t.exec(e);return n&&n.index===0}const Pv=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function xu(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const i=n;let s=ni(r),o="";for(;s.length>0;){const a=Pv.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(e)}const Bv=/\b\B/,Qp="[a-zA-Z]\\w*",vu="[a-zA-Z_]\\w*",eh="\\b\\d+(\\.\\d+)?",th="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",nh="\\b(0b[01]+)",$v="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Fv=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=Wn(e,/.*\b/,t.binary,/\b.*/)),cn({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},ri={begin:"\\\\[\\s\\S]",relevance:0},Uv={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ri]},zv={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ri]},Hv={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},io=function(t,e,n={}){const r=cn({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Eu("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Wn(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},qv=io("//","$"),Vv=io("/\\*","\\*/"),Kv=io("#","$"),Wv={scope:"number",begin:eh,relevance:0},Gv={scope:"number",begin:th,relevance:0},jv={scope:"number",begin:nh,relevance:0},Yv={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ri,{begin:/\[/,end:/\]/,relevance:0,contains:[ri]}]},Jv={scope:"title",begin:Qp,relevance:0},Zv={scope:"title",begin:vu,relevance:0},Xv={begin:"\\.\\s*"+vu,relevance:0},Qv=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var ki=Object.freeze({__proto__:null,APOS_STRING_MODE:Uv,BACKSLASH_ESCAPE:ri,BINARY_NUMBER_MODE:jv,BINARY_NUMBER_RE:nh,COMMENT:io,C_BLOCK_COMMENT_MODE:Vv,C_LINE_COMMENT_MODE:qv,C_NUMBER_MODE:Gv,C_NUMBER_RE:th,END_SAME_AS_BEGIN:Qv,HASH_COMMENT_MODE:Kv,IDENT_RE:Qp,MATCH_NOTHING_RE:Bv,METHOD_GUARD:Xv,NUMBER_MODE:Wv,NUMBER_RE:eh,PHRASAL_WORDS_MODE:Hv,QUOTE_STRING_MODE:zv,REGEXP_MODE:Yv,RE_STARTERS_RE:$v,SHEBANG:Fv,TITLE_MODE:Jv,UNDERSCORE_IDENT_RE:vu,UNDERSCORE_TITLE_MODE:Zv});function ew(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function tw(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function nw(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=ew,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function rw(t,e){Array.isArray(t.illegal)&&(t.illegal=Eu(...t.illegal))}function iw(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function sw(t,e){t.relevance===void 0&&(t.relevance=1)}const ow=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=Wn(n.beforeMatch,Zp(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},aw=["of","and","for","in","not","or","if","then","parent","list","value"],uw="keyword";function rh(t,e,n=uw){const r=Object.create(null);return typeof t=="string"?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach(function(s){Object.assign(r,rh(t[s],e,s))}),r;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const u=a.split("|");r[u[0]]=[s,lw(u[0],u[1])]})}}function lw(t,e){return e?Number(e):cw(t)?0:1}function cw(t){return aw.includes(t.toLowerCase())}const Oc={},Bn=t=>{console.error(t)},Ac=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Xn=(t,e)=>{Oc[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Oc[`${t}/${e}`]=!0)},ls=new Error;function ih(t,e,{key:n}){let r=0;const i=t[n],s={},o={};for(let a=1;a<=e.length;a++)o[a+r]=i[a],s[a+r]=!0,r+=Xp(e[a-1]);t[n]=o,t[n]._emit=s,t[n]._multi=!0}function dw(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Bn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ls;if(typeof t.beginScope!="object"||t.beginScope===null)throw Bn("beginScope must be object"),ls;ih(t,t.begin,{key:"beginScope"}),t.begin=xu(t.begin,{joinWith:""})}}function fw(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Bn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ls;if(typeof t.endScope!="object"||t.endScope===null)throw Bn("endScope must be object"),ls;ih(t,t.end,{key:"endScope"}),t.end=xu(t.end,{joinWith:""})}}function pw(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function hw(t){pw(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),dw(t),fw(t)}function mw(t){function e(o,a){return new RegExp(ni(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,a]),this.matchAt+=Xp(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(u=>u[1]);this.matcherRe=e(xu(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(a);if(!u)return null;const l=u.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[l];return u.splice(0,l),Object.assign(u,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const u=new n;return this.rules.slice(a).forEach(([l,c])=>u.addRule(l,c)),u.compile(),this.multiRegexes[a]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,u){this.rules.push([a,u]),u.type==="begin"&&this.count++}exec(a){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let l=u.exec(a);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,l=c.exec(a)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function i(o){const a=new r;return o.contains.forEach(u=>a.addRule(u.begin,{rule:u,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const u=o;if(o.isCompiled)return u;[tw,iw,hw,ow].forEach(c=>c(o,a)),t.compilerExtensions.forEach(c=>c(o,a)),o.__beforeBegin=null,[nw,rw,sw].forEach(c=>c(o,a)),o.isCompiled=!0;let l=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),l=o.keywords.$pattern,delete o.keywords.$pattern),l=l||/\w+/,o.keywords&&(o.keywords=rh(o.keywords,t.case_insensitive)),u.keywordPatternRe=e(l,!0),a&&(o.begin||(o.begin=/\B|\b/),u.beginRe=e(u.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(u.endRe=e(u.end)),u.terminatorEnd=ni(u.end)||"",o.endsWithParent&&a.terminatorEnd&&(u.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(u.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return gw(c==="self"?o:c)})),o.contains.forEach(function(c){s(c,u)}),o.starts&&s(o.starts,a),u.matcher=i(u),u}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=cn(t.classNameAliases||{}),s(t)}function sh(t){return t?t.endsWithParent||sh(t.starts):!1}function gw(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return cn(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:sh(t)?cn(t,{starts:t.starts?cn(t.starts):null}):Object.isFrozen(t)?cn(t):t}var bw="11.9.0";class yw extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Fo=Jp,Cc=cn,Mc=Symbol("nomatch"),Ew=7,oh=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Mv};function u(E){return a.noHighlightRe.test(E)}function l(E){let w=E.className+" ";w+=E.parentNode?E.parentNode.className:"";const A=a.languageDetectRe.exec(w);if(A){const D=k(A[1]);return D||(Ac(s.replace("{}",A[1])),Ac("Falling back to no-highlight mode for this block.",E)),D?A[1]:"no-highlight"}return w.split(/\s+/).find(D=>u(D)||k(D))}function c(E,w,A){let D="",F="";typeof w=="object"?(D=E,A=w.ignoreIllegals,F=w.language):(Xn("10.7.0","highlight(lang, code, ...args) has been deprecated."),Xn("10.7.0",`Please use highlight(code, options) instead. -https://github.com/highlightjs/highlight.js/issues/2277`),F=E,D=w),A===void 0&&(A=!0);const K={code:D,language:F};J("before:highlight",K);const ue=K.result?K.result:d(K.language,K.code,A);return ue.code=K.code,J("after:highlight",ue),ue}function d(E,w,A,D){const F=Object.create(null);function K(S,T){return S.keywords[T]}function ue(){if(!M.keywords){X.addText(V);return}let S=0;M.keywordPatternRe.lastIndex=0;let T=M.keywordPatternRe.exec(V),I="";for(;T;){I+=V.substring(S,T.index);const z=ce.case_insensitive?T[0].toLowerCase():T[0],oe=K(M,z);if(oe){const[we,Tr]=oe;if(X.addText(I),I="",F[z]=(F[z]||0)+1,F[z]<=Ew&&(Pe+=Tr),we.startsWith("_"))I+=T[0];else{const N=ce.classNameAliases[we]||we;ae(T[0],N)}}else I+=T[0];S=M.keywordPatternRe.lastIndex,T=M.keywordPatternRe.exec(V)}I+=V.substring(S),X.addText(I)}function xe(){if(V==="")return;let S=null;if(typeof M.subLanguage=="string"){if(!e[M.subLanguage]){X.addText(V);return}S=d(M.subLanguage,V,!0,Ve[M.subLanguage]),Ve[M.subLanguage]=S._top}else S=p(V,M.subLanguage.length?M.subLanguage:null);M.relevance>0&&(Pe+=S.relevance),X.__addSublanguage(S._emitter,S.language)}function ee(){M.subLanguage!=null?xe():ue(),V=""}function ae(S,T){S!==""&&(X.startScope(T),X.addText(S),X.endScope())}function Ze(S,T){let I=1;const z=T.length-1;for(;I<=z;){if(!S._emit[I]){I++;continue}const oe=ce.classNameAliases[S[I]]||S[I],we=T[I];oe?ae(we,oe):(V=we,ue(),V=""),I++}}function Oe(S,T){return S.scope&&typeof S.scope=="string"&&X.openNode(ce.classNameAliases[S.scope]||S.scope),S.beginScope&&(S.beginScope._wrap?(ae(V,ce.classNameAliases[S.beginScope._wrap]||S.beginScope._wrap),V=""):S.beginScope._multi&&(Ze(S.beginScope,T),V="")),M=Object.create(S,{parent:{value:M}}),M}function Xe(S,T,I){let z=Lv(S.endRe,I);if(z){if(S["on:end"]){const oe=new Nc(S);S["on:end"](T,oe),oe.isMatchIgnored&&(z=!1)}if(z){for(;S.endsParent&&S.parent;)S=S.parent;return S}}if(S.endsWithParent)return Xe(S.parent,T,I)}function Qe(S){return M.matcher.regexIndex===0?(V+=S[0],1):(ct=!0,0)}function at(S){const T=S[0],I=S.rule,z=new Nc(I),oe=[I.__beforeBegin,I["on:begin"]];for(const we of oe)if(we&&(we(S,z),z.isMatchIgnored))return Qe(T);return I.skip?V+=T:(I.excludeBegin&&(V+=T),ee(),!I.returnBegin&&!I.excludeBegin&&(V=T)),Oe(I,S),I.returnBegin?0:T.length}function kt(S){const T=S[0],I=w.substring(S.index),z=Xe(M,S,I);if(!z)return Mc;const oe=M;M.endScope&&M.endScope._wrap?(ee(),ae(T,M.endScope._wrap)):M.endScope&&M.endScope._multi?(ee(),Ze(M.endScope,S)):oe.skip?V+=T:(oe.returnEnd||oe.excludeEnd||(V+=T),ee(),oe.excludeEnd&&(V=T));do M.scope&&X.closeNode(),!M.skip&&!M.subLanguage&&(Pe+=M.relevance),M=M.parent;while(M!==z.parent);return z.starts&&Oe(z.starts,S),oe.returnEnd?0:T.length}function se(){const S=[];for(let T=M;T!==ce;T=T.parent)T.scope&&S.unshift(T.scope);S.forEach(T=>X.openNode(T))}let Ne={};function Ue(S,T){const I=T&&T[0];if(V+=S,I==null)return ee(),0;if(Ne.type==="begin"&&T.type==="end"&&Ne.index===T.index&&I===""){if(V+=w.slice(T.index,T.index+1),!i){const z=new Error(`0 width match regex (${E})`);throw z.languageName=E,z.badRule=Ne.rule,z}return 1}if(Ne=T,T.type==="begin")return at(T);if(T.type==="illegal"&&!A){const z=new Error('Illegal lexeme "'+I+'" for mode "'+(M.scope||"")+'"');throw z.mode=M,z}else if(T.type==="end"){const z=kt(T);if(z!==Mc)return z}if(T.type==="illegal"&&I==="")return 1;if(lt>1e5&<>T.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=I,I.length}const ce=k(E);if(!ce)throw Bn(s.replace("{}",E)),new Error('Unknown language: "'+E+'"');const Ft=mw(ce);let ut="",M=D||Ft;const Ve={},X=new a.__emitter(a);se();let V="",Pe=0,ve=0,lt=0,ct=!1;try{if(ce.__emitTokens)ce.__emitTokens(w,X);else{for(M.matcher.considerAll();;){lt++,ct?ct=!1:M.matcher.considerAll(),M.matcher.lastIndex=ve;const S=M.matcher.exec(w);if(!S)break;const T=w.substring(ve,S.index),I=Ue(T,S);ve=S.index+I}Ue(w.substring(ve))}return X.finalize(),ut=X.toHTML(),{language:E,value:ut,relevance:Pe,illegal:!1,_emitter:X,_top:M}}catch(S){if(S.message&&S.message.includes("Illegal"))return{language:E,value:Fo(w),illegal:!0,relevance:0,_illegalBy:{message:S.message,index:ve,context:w.slice(ve-100,ve+100),mode:S.mode,resultSoFar:ut},_emitter:X};if(i)return{language:E,value:Fo(w),illegal:!1,relevance:0,errorRaised:S,_emitter:X,_top:M};throw S}}function f(E){const w={value:Fo(E),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return w._emitter.addText(E),w}function p(E,w){w=w||a.languages||Object.keys(e);const A=f(E),D=w.filter(k).filter(G).map(ee=>d(ee,E,!1));D.unshift(A);const F=D.sort((ee,ae)=>{if(ee.relevance!==ae.relevance)return ae.relevance-ee.relevance;if(ee.language&&ae.language){if(k(ee.language).supersetOf===ae.language)return 1;if(k(ae.language).supersetOf===ee.language)return-1}return 0}),[K,ue]=F,xe=K;return xe.secondBest=ue,xe}function h(E,w,A){const D=w&&n[w]||A;E.classList.add("hljs"),E.classList.add(`language-${D}`)}function m(E){let w=null;const A=l(E);if(u(A))return;if(J("before:highlightElement",{el:E,language:A}),E.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",E);return}if(E.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(E)),a.throwUnescapedHTML))throw new yw("One of your code blocks includes unescaped HTML.",E.innerHTML);w=E;const D=w.textContent,F=A?c(D,{language:A,ignoreIllegals:!0}):p(D);E.innerHTML=F.value,E.dataset.highlighted="yes",h(E,A,F.language),E.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(E.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),J("after:highlightElement",{el:E,result:F,text:D})}function g(E){a=Cc(a,E)}const y=()=>{b(),Xn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){b(),Xn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function b(){if(document.readyState==="loading"){_=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function O(){_&&b()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function x(E,w){let A=null;try{A=w(t)}catch(D){if(Bn("Language definition for '{}' could not be registered.".replace("{}",E)),i)Bn(D);else throw D;A=o}A.name||(A.name=E),e[E]=A,A.rawDefinition=w.bind(null,t),A.aliases&&$(A.aliases,{languageName:E})}function R(E){delete e[E];for(const w of Object.keys(n))n[w]===E&&delete n[w]}function P(){return Object.keys(e)}function k(E){return E=(E||"").toLowerCase(),e[E]||e[n[E]]}function $(E,{languageName:w}){typeof E=="string"&&(E=[E]),E.forEach(A=>{n[A.toLowerCase()]=w})}function G(E){const w=k(E);return w&&!w.disableAutodetect}function Z(E){E["before:highlightBlock"]&&!E["before:highlightElement"]&&(E["before:highlightElement"]=w=>{E["before:highlightBlock"](Object.assign({block:w.el},w))}),E["after:highlightBlock"]&&!E["after:highlightElement"]&&(E["after:highlightElement"]=w=>{E["after:highlightBlock"](Object.assign({block:w.el},w))})}function W(E){Z(E),r.push(E)}function Q(E){const w=r.indexOf(E);w!==-1&&r.splice(w,1)}function J(E,w){const A=E;r.forEach(function(D){D[A]&&D[A](w)})}function re(E){return Xn("10.7.0","highlightBlock will be removed entirely in v12.0"),Xn("10.7.0","Please use highlightElement now."),m(E)}Object.assign(t,{highlight:c,highlightAuto:p,highlightAll:b,highlightElement:m,highlightBlock:re,configure:g,initHighlighting:y,initHighlightingOnLoad:v,registerLanguage:x,unregisterLanguage:R,listLanguages:P,getLanguage:k,registerAliases:$,autoDetection:G,inherit:Cc,addPlugin:W,removePlugin:Q}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=bw,t.regex={concat:Wn,lookahead:Zp,either:Eu,optional:Dv,anyNumberOfTimes:Rv};for(const E in ki)typeof ki[E]=="object"&&Yp(ki[E]);return Object.assign(t,ki),t},wr=oh({});wr.newInstance=()=>oh({});var xw=wr;wr.HighlightJS=wr;wr.default=wr;const vw=ed(xw),Rc={},ww="hljs-";function Sw(t){const e=vw.newInstance();return t&&s(t),{highlight:n,highlightAuto:r,listLanguages:i,register:s,registerAlias:o,registered:a};function n(u,l,c){const d=c||Rc,f=typeof d.prefix=="string"?d.prefix:ww;if(!e.getLanguage(u))throw new Error("Unknown language: `"+u+"` is not registered");e.configure({__emitter:_w,classPrefix:f});const p=e.highlight(l,{ignoreIllegals:!0,language:u});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const h=p._emitter.root,m=h.data;return m.language=p.language,m.relevance=p.relevance,h}function r(u,l){const d=(l||Rc).subset||i();let f=-1,p=0,h;for(;++fp&&(p=g.data.relevance,h=g)}return h||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return e.listLanguages()}function s(u,l){if(typeof u=="string")e.registerLanguage(u,l);else{let c;for(c in u)Object.hasOwn(u,c)&&e.registerLanguage(c,u[c])}}function o(u,l){if(typeof u=="string")e.registerAliases(typeof l=="string"?l:[...l],{languageName:u});else{let c;for(c in u)if(Object.hasOwn(u,c)){const d=u[c];e.registerAliases(typeof d=="string"?d:[...d],{languageName:c})}}}function a(u){return!!e.getLanguage(u)}}class _w{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=e:n.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,n){const r=this.stack[this.stack.length-1],i=e.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(e){const n=this,r=e.split(".").map(function(o,a){return a?o+"_".repeat(a):n.options.classPrefix+o}),i=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const Nw=()=>{const t=Sw(kv);return fx.extend({addNodeView(){const n=Se("pre",{},[Se("code",{})]),r=Se("select",{contenteditable:!1,value:null,className:"language"},[Se("option",{value:void 0,disabled:!0},"select a language"),Se("option",{value:null},"auto"),...t.listLanguages().map(s=>Se("option",{value:s},s))]),i=Se("div",{className:"llt-code"},[r,n]);return s=>{r.value=s.node.attrs.language;const o=()=>{const u=r.value;s.editor.view.dispatch(s.editor.view.state.tr.setNodeMarkup(s.getPos(),null,{...s.node.attrs,language:u}))};return r.addEventListener("change",o),{dom:i,contentDOM:n,destroy:()=>{r.removeEventListener("change",o)}}}},addKeyboardShortcuts(){return{Tab:()=>(this.editor.commands.insertContent(" "),!0)}}}).configure({lowlight:t})},Tw=t=>(e,n,r)=>{t();const i=n.clipboardData?.items??[];for(let s=0;s(e,n,r)=>{n.preventDefault(),console.log(n.dataTransfer?.files),t();const i={left:n.clientX,top:n.clientY},s=e.posAtCoords(i)?.pos;if(!s)return;const o=n.dataTransfer?.items??[];for(let a=0;a({handlePaste:Tw(t),handleDrop:kw(t)}),Aw="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Cw="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Sr=(t,e)=>{for(const n in e)t[n]=e[n];return t},wa="numeric",Sa="ascii",_a="alpha",$i="asciinumeric",Oi="alphanumeric",Na="domain",ah="emoji",Mw="scheme",Rw="slashscheme",Dc="whitespace";function Dw(t,e){return t in e||(e[t]=[]),e[t]}function Cn(t,e,n){e[wa]&&(e[$i]=!0,e[Oi]=!0),e[Sa]&&(e[$i]=!0,e[_a]=!0),e[$i]&&(e[Oi]=!0),e[_a]&&(e[Oi]=!0),e[Oi]&&(e[Na]=!0),e[ah]&&(e[Na]=!0);for(const r in e){const i=Dw(r,n);i.indexOf(t)<0&&i.push(t)}}function Iw(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function tt(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}tt.groups={};tt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;rt.ta(e,n,r,i),ft=(t,e,n,r,i)=>t.tr(e,n,r,i),Ic=(t,e,n,r,i)=>t.ts(e,n,r,i),L=(t,e,n,r,i)=>t.tt(e,n,r,i),Ht="WORD",Ta="UWORD",ii="LOCALHOST",ka="TLD",Oa="UTLD",Fi="SCHEME",sr="SLASH_SCHEME",wu="NUM",uh="WS",Su="NL",zr="OPENBRACE",Hr="CLOSEBRACE",cs="OPENBRACKET",ds="CLOSEBRACKET",fs="OPENPAREN",ps="CLOSEPAREN",hs="OPENANGLEBRACKET",ms="CLOSEANGLEBRACKET",gs="FULLWIDTHLEFTPAREN",bs="FULLWIDTHRIGHTPAREN",ys="LEFTCORNERBRACKET",Es="RIGHTCORNERBRACKET",xs="LEFTWHITECORNERBRACKET",vs="RIGHTWHITECORNERBRACKET",ws="FULLWIDTHLESSTHAN",Ss="FULLWIDTHGREATERTHAN",_s="AMPERSAND",Ns="APOSTROPHE",Ts="ASTERISK",Qt="AT",ks="BACKSLASH",Os="BACKTICK",As="CARET",rn="COLON",_u="COMMA",Cs="DOLLAR",Ot="DOT",Ms="EQUALS",Nu="EXCLAMATION",At="HYPHEN",Rs="PERCENT",Ds="PIPE",Is="PLUS",Ls="POUND",Ps="QUERY",Tu="QUOTE",ku="SEMI",Ct="SLASH",qr="TILDE",Bs="UNDERSCORE",lh="EMOJI",$s="SYM";var ch=Object.freeze({__proto__:null,WORD:Ht,UWORD:Ta,LOCALHOST:ii,TLD:ka,UTLD:Oa,SCHEME:Fi,SLASH_SCHEME:sr,NUM:wu,WS:uh,NL:Su,OPENBRACE:zr,CLOSEBRACE:Hr,OPENBRACKET:cs,CLOSEBRACKET:ds,OPENPAREN:fs,CLOSEPAREN:ps,OPENANGLEBRACKET:hs,CLOSEANGLEBRACKET:ms,FULLWIDTHLEFTPAREN:gs,FULLWIDTHRIGHTPAREN:bs,LEFTCORNERBRACKET:ys,RIGHTCORNERBRACKET:Es,LEFTWHITECORNERBRACKET:xs,RIGHTWHITECORNERBRACKET:vs,FULLWIDTHLESSTHAN:ws,FULLWIDTHGREATERTHAN:Ss,AMPERSAND:_s,APOSTROPHE:Ns,ASTERISK:Ts,AT:Qt,BACKSLASH:ks,BACKTICK:Os,CARET:As,COLON:rn,COMMA:_u,DOLLAR:Cs,DOT:Ot,EQUALS:Ms,EXCLAMATION:Nu,HYPHEN:At,PERCENT:Rs,PIPE:Ds,PLUS:Is,POUND:Ls,QUERY:Ps,QUOTE:Tu,SEMI:ku,SLASH:Ct,TILDE:qr,UNDERSCORE:Bs,EMOJI:lh,SYM:$s});const Qn=/[a-z]/,Uo=/\p{L}/u,zo=/\p{Emoji}/u,Ho=/\d/,Lc=/\s/,Pc=` -`,Lw="️",Pw="‍";let Ai=null,Ci=null;function Bw(t){t===void 0&&(t=[]);const e={};tt.groups=e;const n=new tt;Ai==null&&(Ai=Bc(Aw)),Ci==null&&(Ci=Bc(Cw)),L(n,"'",Ns),L(n,"{",zr),L(n,"}",Hr),L(n,"[",cs),L(n,"]",ds),L(n,"(",fs),L(n,")",ps),L(n,"<",hs),L(n,">",ms),L(n,"(",gs),L(n,")",bs),L(n,"「",ys),L(n,"」",Es),L(n,"『",xs),L(n,"』",vs),L(n,"<",ws),L(n,">",Ss),L(n,"&",_s),L(n,"*",Ts),L(n,"@",Qt),L(n,"`",Os),L(n,"^",As),L(n,":",rn),L(n,",",_u),L(n,"$",Cs),L(n,".",Ot),L(n,"=",Ms),L(n,"!",Nu),L(n,"-",At),L(n,"%",Rs),L(n,"|",Ds),L(n,"+",Is),L(n,"#",Ls),L(n,"?",Ps),L(n,'"',Tu),L(n,"/",Ct),L(n,";",ku),L(n,"~",qr),L(n,"_",Bs),L(n,"\\",ks);const r=ft(n,Ho,wu,{[wa]:!0});ft(r,Ho,r);const i=ft(n,Qn,Ht,{[Sa]:!0});ft(i,Qn,i);const s=ft(n,Uo,Ta,{[_a]:!0});ft(s,Qn),ft(s,Uo,s);const o=ft(n,Lc,uh,{[Dc]:!0});L(n,Pc,Su,{[Dc]:!0}),L(o,Pc),ft(o,Lc,o);const a=ft(n,zo,lh,{[ah]:!0});ft(a,zo,a),L(a,Lw,a);const u=L(a,Pw);ft(u,zo,a);const l=[[Qn,i]],c=[[Qn,null],[Uo,s]];for(let d=0;dd[0]>f[0]?1:-1);for(let d=0;d=0?h[Na]=!0:Qn.test(f)?Ho.test(f)?h[$i]=!0:h[Sa]=!0:h[wa]=!0,Ic(n,f,f,h)}return Ic(n,"localhost",ii,{ascii:!0}),n.jd=new tt($s),{start:n,tokens:Sr({groups:e},ch)}}function $w(t,e){const n=Fw(e.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,i=[];let s=0,o=0;for(;o=0&&(d+=n[o].length,f++),l+=n[o].length,s+=n[o].length,o++;s-=d,o-=f,l-=d,i.push({t:c.t,v:e.slice(s-l,s),s:s-l,e:s})}return i}function Fw(t){const e=[],n=t.length;let r=0;for(;r56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?t[r]:t.slice(r,r+2);e.push(o),r+=o.length}return e}function Yt(t,e,n,r,i){let s;const o=e.length;for(let a=0;a=0;)s++;if(s>0){e.push(n.join(""));for(let o=parseInt(t.substring(r,r+s),10);o>0;o--)n.pop();r+=s}else n.push(t[r]),r++}return e}const si={defaultProtocol:"http",events:null,format:$c,formatHref:$c,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Ou(t,e){e===void 0&&(e=null);let n=Sr({},si);t&&(n=Sr(n,t instanceof Ou?t.o:t));const r=n.ignoreTags,i=[];for(let s=0;sn?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=si.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),i=t.get("tagName",n,e),s=this.toFormattedString(t),o={},a=t.get("className",n,e),u=t.get("target",n,e),l=t.get("rel",n,e),c=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return o.href=r,a&&(o.class=a),u&&(o.target=u),l&&(o.rel=l),c&&Sr(o,c),{tagName:i,attributes:o,content:s,eventListeners:d}}};function so(t,e){class n extends dh{constructor(i,s){super(i,s),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const Fc=so("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Uc=so("text"),Uw=so("nl"),Mi=so("url",{isLink:!0,toHref(t){return t===void 0&&(t=si.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==ii&&t[1].t===rn}}),pt=t=>new tt(t);function zw(t){let{groups:e}=t;const n=e.domain.concat([_s,Ts,Qt,ks,Os,As,Cs,Ms,At,wu,Rs,Ds,Is,Ls,Ct,$s,qr,Bs]),r=[Ns,rn,_u,Ot,Nu,Ps,Tu,ku,hs,ms,zr,Hr,ds,cs,fs,ps,gs,bs,ys,Es,xs,vs,ws,Ss],i=[_s,Ns,Ts,ks,Os,As,Cs,Ms,At,zr,Hr,Rs,Ds,Is,Ls,Ps,Ct,$s,qr,Bs],s=pt(),o=L(s,qr);ne(o,i,o),ne(o,e.domain,o);const a=pt(),u=pt(),l=pt();ne(s,e.domain,a),ne(s,e.scheme,u),ne(s,e.slashscheme,l),ne(a,i,o),ne(a,e.domain,a);const c=L(a,Qt);L(o,Qt,c),L(u,Qt,c),L(l,Qt,c);const d=L(o,Ot);ne(d,i,o),ne(d,e.domain,o);const f=pt();ne(c,e.domain,f),ne(f,e.domain,f);const p=L(f,Ot);ne(p,e.domain,f);const h=pt(Fc);ne(p,e.tld,h),ne(p,e.utld,h),L(c,ii,h);const m=L(f,At);ne(m,e.domain,f),ne(h,e.domain,f),L(h,Ot,p),L(h,At,m);const g=L(h,rn);ne(g,e.numeric,Fc);const y=L(a,At),v=L(a,Ot);ne(y,e.domain,a),ne(v,i,o),ne(v,e.domain,a);const _=pt(Mi);ne(v,e.tld,_),ne(v,e.utld,_),ne(_,e.domain,a),ne(_,i,o),L(_,Ot,v),L(_,At,y),L(_,Qt,c);const b=L(_,rn),O=pt(Mi);ne(b,e.numeric,O);const x=pt(Mi),R=pt();ne(x,n,x),ne(x,r,R),ne(R,n,x),ne(R,r,R),L(_,Ct,x),L(O,Ct,x);const P=L(u,rn),k=L(l,rn),$=L(k,Ct),G=L($,Ct);ne(u,e.domain,a),L(u,Ot,v),L(u,At,y),ne(l,e.domain,a),L(l,Ot,v),L(l,At,y),ne(P,e.domain,x),L(P,Ct,x),ne(G,e.domain,x),ne(G,n,x),L(G,Ct,x);const Z=[[zr,Hr],[cs,ds],[fs,ps],[hs,ms],[gs,bs],[ys,Es],[xs,vs],[ws,Ss]];for(let W=0;W=0&&f++,i++,c++;if(f<0)i-=c,i0&&(s.push(qo(Uc,e,o)),o=[]),i-=f,c-=f;const p=d.t,h=n.slice(i-c,i);s.push(qo(p,e,h))}}return o.length>0&&s.push(qo(Uc,e,o)),s}function qo(t,e,n){const r=n[0].s,i=n[n.length-1].e,s=e.slice(r,i);return new t(s,n)}const qw=typeof console<"u"&&console&&console.warn||(()=>{}),Vw="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ge={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Kw(){tt.groups={},ge.scanner=null,ge.parser=null,ge.tokenQueue=[],ge.pluginQueue=[],ge.customSchemes=[],ge.initialized=!1}function zc(t,e){if(e===void 0&&(e=!1),ge.initialized&&qw(`linkifyjs: already initialized - will not register custom scheme "${t}" ${Vw}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format. +`);return!s||!o?!1:t.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:i,empty:s}=n;if(!s||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const a=i.after();return a===void 0?!1:r.nodeAt(a)?t.commands.command(({tr:l})=>(l.setSelection(te.near(r.resolve(a))),!0)):t.commands.exitCode()}}},addInputRules(){return[ma({find:c2,type:this.type,getAttributes:t=>({language:t[1]})}),ma({find:d2,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new Ee({key:new Le("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,s=i?.mode;if(!n||!s)return!1;const{tr:o,schema:a}=t.state,u=a.text(n.replace(/\r\n?/g,` +`));return o.replaceSelectionWith(this.type.create({language:s},u)),o.selection.$from.parent.type!==this.type&&o.setSelection(j.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),t.dispatch(o),!0}}})]}});function f2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yp(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&yp(n)}),t}let dc=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Ep(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ln(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const p2="",fc=t=>!!t.scope,h2=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`};let m2=class{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Ep(e)}openNode(e){if(!fc(e))return;const n=h2(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){fc(e)&&(this.buffer+=p2)}value(){return this.buffer}span(e){this.buffer+=``}};const pc=(t={})=>{const e={children:[]};return Object.assign(e,t),e};let g2=class xp{constructor(){this.rootNode=pc(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=pc({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{xp._collapse(n)}))}},b2=class extends g2{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new m2(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function ei(t){return t?typeof t=="string"?t:t.source:null}function vp(t){return Kn("(?=",t,")")}function y2(t){return Kn("(?:",t,")*")}function E2(t){return Kn("(?:",t,")?")}function Kn(...t){return t.map(n=>ei(n)).join("")}function x2(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function hu(...t){return"("+(x2(t).capture?"":"?:")+t.map(r=>ei(r)).join("|")+")"}function wp(t){return new RegExp(t.toString()+"|").exec("").length-1}function v2(t,e){const n=t&&t.exec(e);return n&&n.index===0}const w2=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function mu(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const i=n;let s=ei(r),o="";for(;s.length>0;){const a=w2.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(e)}const S2=/\b\B/,Sp="[a-zA-Z]\\w*",gu="[a-zA-Z_]\\w*",_p="\\b\\d+(\\.\\d+)?",Np="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Tp="\\b(0b[01]+)",_2="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",N2=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=Kn(e,/.*\b/,t.binary,/\b.*/)),ln({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},ti={begin:"\\\\[\\s\\S]",relevance:0},T2={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ti]},k2={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ti]},O2={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ro=function(t,e,n={}){const r=ln({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=hu("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Kn(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},A2=ro("//","$"),C2=ro("/\\*","\\*/"),M2=ro("#","$"),R2={scope:"number",begin:_p,relevance:0},D2={scope:"number",begin:Np,relevance:0},I2={scope:"number",begin:Tp,relevance:0},L2={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ti,{begin:/\[/,end:/\]/,relevance:0,contains:[ti]}]},P2={scope:"title",begin:Sp,relevance:0},B2={scope:"title",begin:gu,relevance:0},$2={begin:"\\.\\s*"+gu,relevance:0},F2=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var vi=Object.freeze({__proto__:null,APOS_STRING_MODE:T2,BACKSLASH_ESCAPE:ti,BINARY_NUMBER_MODE:I2,BINARY_NUMBER_RE:Tp,COMMENT:ro,C_BLOCK_COMMENT_MODE:C2,C_LINE_COMMENT_MODE:A2,C_NUMBER_MODE:D2,C_NUMBER_RE:Np,END_SAME_AS_BEGIN:F2,HASH_COMMENT_MODE:M2,IDENT_RE:Sp,MATCH_NOTHING_RE:S2,METHOD_GUARD:$2,NUMBER_MODE:R2,NUMBER_RE:_p,PHRASAL_WORDS_MODE:O2,QUOTE_STRING_MODE:k2,REGEXP_MODE:L2,RE_STARTERS_RE:_2,SHEBANG:N2,TITLE_MODE:P2,UNDERSCORE_IDENT_RE:gu,UNDERSCORE_TITLE_MODE:B2});function U2(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function z2(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function H2(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=U2,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function q2(t,e){Array.isArray(t.illegal)&&(t.illegal=hu(...t.illegal))}function V2(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function K2(t,e){t.relevance===void 0&&(t.relevance=1)}const W2=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=Kn(n.beforeMatch,vp(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},G2=["of","and","for","in","not","or","if","then","parent","list","value"],j2="keyword";function kp(t,e,n=j2){const r=Object.create(null);return typeof t=="string"?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach(function(s){Object.assign(r,kp(t[s],e,s))}),r;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const u=a.split("|");r[u[0]]=[s,Y2(u[0],u[1])]})}}function Y2(t,e){return e?Number(e):J2(t)?0:1}function J2(t){return G2.includes(t.toLowerCase())}const hc={},Pn=t=>{console.error(t)},mc=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Zn=(t,e)=>{hc[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),hc[`${t}/${e}`]=!0)},ss=new Error;function Op(t,e,{key:n}){let r=0;const i=t[n],s={},o={};for(let a=1;a<=e.length;a++)o[a+r]=i[a],s[a+r]=!0,r+=wp(e[a-1]);t[n]=o,t[n]._emit=s,t[n]._multi=!0}function Z2(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Pn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ss;if(typeof t.beginScope!="object"||t.beginScope===null)throw Pn("beginScope must be object"),ss;Op(t,t.begin,{key:"beginScope"}),t.begin=mu(t.begin,{joinWith:""})}}function X2(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Pn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ss;if(typeof t.endScope!="object"||t.endScope===null)throw Pn("endScope must be object"),ss;Op(t,t.end,{key:"endScope"}),t.end=mu(t.end,{joinWith:""})}}function Q2(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function ex(t){Q2(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Z2(t),X2(t)}function tx(t){function e(o,a){return new RegExp(ei(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,a]),this.matchAt+=wp(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(u=>u[1]);this.matcherRe=e(mu(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(a);if(!u)return null;const l=u.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[l];return u.splice(0,l),Object.assign(u,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const u=new n;return this.rules.slice(a).forEach(([l,c])=>u.addRule(l,c)),u.compile(),this.multiRegexes[a]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,u){this.rules.push([a,u]),u.type==="begin"&&this.count++}exec(a){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let l=u.exec(a);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,l=c.exec(a)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function i(o){const a=new r;return o.contains.forEach(u=>a.addRule(u.begin,{rule:u,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const u=o;if(o.isCompiled)return u;[z2,V2,ex,W2].forEach(c=>c(o,a)),t.compilerExtensions.forEach(c=>c(o,a)),o.__beforeBegin=null,[H2,q2,K2].forEach(c=>c(o,a)),o.isCompiled=!0;let l=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),l=o.keywords.$pattern,delete o.keywords.$pattern),l=l||/\w+/,o.keywords&&(o.keywords=kp(o.keywords,t.case_insensitive)),u.keywordPatternRe=e(l,!0),a&&(o.begin||(o.begin=/\B|\b/),u.beginRe=e(u.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(u.endRe=e(u.end)),u.terminatorEnd=ei(u.end)||"",o.endsWithParent&&a.terminatorEnd&&(u.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(u.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return nx(c==="self"?o:c)})),o.contains.forEach(function(c){s(c,u)}),o.starts&&s(o.starts,a),u.matcher=i(u),u}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=ln(t.classNameAliases||{}),s(t)}function Ap(t){return t?t.endsWithParent||Ap(t.starts):!1}function nx(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return ln(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:Ap(t)?ln(t,{starts:t.starts?ln(t.starts):null}):Object.isFrozen(t)?ln(t):t}var rx="11.10.0";let ix=class extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}};const Lo=Ep,gc=ln,bc=Symbol("nomatch"),sx=7,Cp=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b2};function u(E){return a.noHighlightRe.test(E)}function l(E){let w=E.className+" ";w+=E.parentNode?E.parentNode.className:"";const A=a.languageDetectRe.exec(w);if(A){const D=k(A[1]);return D||(mc(s.replace("{}",A[1])),mc("Falling back to no-highlight mode for this block.",E)),D?A[1]:"no-highlight"}return w.split(/\s+/).find(D=>u(D)||k(D))}function c(E,w,A){let D="",F="";typeof w=="object"?(D=E,A=w.ignoreIllegals,F=w.language):(Zn("10.7.0","highlight(lang, code, ...args) has been deprecated."),Zn("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),F=E,D=w),A===void 0&&(A=!0);const K={code:D,language:F};J("before:highlight",K);const ue=K.result?K.result:d(K.language,K.code,A);return ue.code=K.code,J("after:highlight",ue),ue}function d(E,w,A,D){const F=Object.create(null);function K(S,T){return S.keywords[T]}function ue(){if(!M.keywords){X.addText(V);return}let S=0;M.keywordPatternRe.lastIndex=0;let T=M.keywordPatternRe.exec(V),I="";for(;T;){I+=V.substring(S,T.index);const z=de.case_insensitive?T[0].toLowerCase():T[0],oe=K(M,z);if(oe){const[we,Tr]=oe;if(X.addText(I),I="",F[z]=(F[z]||0)+1,F[z]<=sx&&(Pe+=Tr),we.startsWith("_"))I+=T[0];else{const N=de.classNameAliases[we]||we;ae(T[0],N)}}else I+=T[0];S=M.keywordPatternRe.lastIndex,T=M.keywordPatternRe.exec(V)}I+=V.substring(S),X.addText(I)}function xe(){if(V==="")return;let S=null;if(typeof M.subLanguage=="string"){if(!e[M.subLanguage]){X.addText(V);return}S=d(M.subLanguage,V,!0,Ve[M.subLanguage]),Ve[M.subLanguage]=S._top}else S=p(V,M.subLanguage.length?M.subLanguage:null);M.relevance>0&&(Pe+=S.relevance),X.__addSublanguage(S._emitter,S.language)}function ee(){M.subLanguage!=null?xe():ue(),V=""}function ae(S,T){S!==""&&(X.startScope(T),X.addText(S),X.endScope())}function Ze(S,T){let I=1;const z=T.length-1;for(;I<=z;){if(!S._emit[I]){I++;continue}const oe=de.classNameAliases[S[I]]||S[I],we=T[I];oe?ae(we,oe):(V=we,ue(),V=""),I++}}function Oe(S,T){return S.scope&&typeof S.scope=="string"&&X.openNode(de.classNameAliases[S.scope]||S.scope),S.beginScope&&(S.beginScope._wrap?(ae(V,de.classNameAliases[S.beginScope._wrap]||S.beginScope._wrap),V=""):S.beginScope._multi&&(Ze(S.beginScope,T),V="")),M=Object.create(S,{parent:{value:M}}),M}function Xe(S,T,I){let z=v2(S.endRe,I);if(z){if(S["on:end"]){const oe=new dc(S);S["on:end"](T,oe),oe.isMatchIgnored&&(z=!1)}if(z){for(;S.endsParent&&S.parent;)S=S.parent;return S}}if(S.endsWithParent)return Xe(S.parent,T,I)}function Qe(S){return M.matcher.regexIndex===0?(V+=S[0],1):(ct=!0,0)}function at(S){const T=S[0],I=S.rule,z=new dc(I),oe=[I.__beforeBegin,I["on:begin"]];for(const we of oe)if(we&&(we(S,z),z.isMatchIgnored))return Qe(T);return I.skip?V+=T:(I.excludeBegin&&(V+=T),ee(),!I.returnBegin&&!I.excludeBegin&&(V=T)),Oe(I,S),I.returnBegin?0:T.length}function kt(S){const T=S[0],I=w.substring(S.index),z=Xe(M,S,I);if(!z)return bc;const oe=M;M.endScope&&M.endScope._wrap?(ee(),ae(T,M.endScope._wrap)):M.endScope&&M.endScope._multi?(ee(),Ze(M.endScope,S)):oe.skip?V+=T:(oe.returnEnd||oe.excludeEnd||(V+=T),ee(),oe.excludeEnd&&(V=T));do M.scope&&X.closeNode(),!M.skip&&!M.subLanguage&&(Pe+=M.relevance),M=M.parent;while(M!==z.parent);return z.starts&&Oe(z.starts,S),oe.returnEnd?0:T.length}function se(){const S=[];for(let T=M;T!==de;T=T.parent)T.scope&&S.unshift(T.scope);S.forEach(T=>X.openNode(T))}let Ne={};function Ue(S,T){const I=T&&T[0];if(V+=S,I==null)return ee(),0;if(Ne.type==="begin"&&T.type==="end"&&Ne.index===T.index&&I===""){if(V+=w.slice(T.index,T.index+1),!i){const z=new Error(`0 width match regex (${E})`);throw z.languageName=E,z.badRule=Ne.rule,z}return 1}if(Ne=T,T.type==="begin")return at(T);if(T.type==="illegal"&&!A){const z=new Error('Illegal lexeme "'+I+'" for mode "'+(M.scope||"")+'"');throw z.mode=M,z}else if(T.type==="end"){const z=kt(T);if(z!==bc)return z}if(T.type==="illegal"&&I==="")return 1;if(lt>1e5&<>T.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=I,I.length}const de=k(E);if(!de)throw Pn(s.replace("{}",E)),new Error('Unknown language: "'+E+'"');const Ft=tx(de);let ut="",M=D||Ft;const Ve={},X=new a.__emitter(a);se();let V="",Pe=0,ve=0,lt=0,ct=!1;try{if(de.__emitTokens)de.__emitTokens(w,X);else{for(M.matcher.considerAll();;){lt++,ct?ct=!1:M.matcher.considerAll(),M.matcher.lastIndex=ve;const S=M.matcher.exec(w);if(!S)break;const T=w.substring(ve,S.index),I=Ue(T,S);ve=S.index+I}Ue(w.substring(ve))}return X.finalize(),ut=X.toHTML(),{language:E,value:ut,relevance:Pe,illegal:!1,_emitter:X,_top:M}}catch(S){if(S.message&&S.message.includes("Illegal"))return{language:E,value:Lo(w),illegal:!0,relevance:0,_illegalBy:{message:S.message,index:ve,context:w.slice(ve-100,ve+100),mode:S.mode,resultSoFar:ut},_emitter:X};if(i)return{language:E,value:Lo(w),illegal:!1,relevance:0,errorRaised:S,_emitter:X,_top:M};throw S}}function f(E){const w={value:Lo(E),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return w._emitter.addText(E),w}function p(E,w){w=w||a.languages||Object.keys(e);const A=f(E),D=w.filter(k).filter(G).map(ee=>d(ee,E,!1));D.unshift(A);const F=D.sort((ee,ae)=>{if(ee.relevance!==ae.relevance)return ae.relevance-ee.relevance;if(ee.language&&ae.language){if(k(ee.language).supersetOf===ae.language)return 1;if(k(ae.language).supersetOf===ee.language)return-1}return 0}),[K,ue]=F,xe=K;return xe.secondBest=ue,xe}function h(E,w,A){const D=w&&n[w]||A;E.classList.add("hljs"),E.classList.add(`language-${D}`)}function m(E){let w=null;const A=l(E);if(u(A))return;if(J("before:highlightElement",{el:E,language:A}),E.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",E);return}if(E.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(E)),a.throwUnescapedHTML))throw new ix("One of your code blocks includes unescaped HTML.",E.innerHTML);w=E;const D=w.textContent,F=A?c(D,{language:A,ignoreIllegals:!0}):p(D);E.innerHTML=F.value,E.dataset.highlighted="yes",h(E,A,F.language),E.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(E.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),J("after:highlightElement",{el:E,result:F,text:D})}function g(E){a=gc(a,E)}const y=()=>{b(),Zn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){b(),Zn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function b(){if(document.readyState==="loading"){_=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function O(){_&&b()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function x(E,w){let A=null;try{A=w(t)}catch(D){if(Pn("Language definition for '{}' could not be registered.".replace("{}",E)),i)Pn(D);else throw D;A=o}A.name||(A.name=E),e[E]=A,A.rawDefinition=w.bind(null,t),A.aliases&&$(A.aliases,{languageName:E})}function R(E){delete e[E];for(const w of Object.keys(n))n[w]===E&&delete n[w]}function P(){return Object.keys(e)}function k(E){return E=(E||"").toLowerCase(),e[E]||e[n[E]]}function $(E,{languageName:w}){typeof E=="string"&&(E=[E]),E.forEach(A=>{n[A.toLowerCase()]=w})}function G(E){const w=k(E);return w&&!w.disableAutodetect}function Z(E){E["before:highlightBlock"]&&!E["before:highlightElement"]&&(E["before:highlightElement"]=w=>{E["before:highlightBlock"](Object.assign({block:w.el},w))}),E["after:highlightBlock"]&&!E["after:highlightElement"]&&(E["after:highlightElement"]=w=>{E["after:highlightBlock"](Object.assign({block:w.el},w))})}function W(E){Z(E),r.push(E)}function Q(E){const w=r.indexOf(E);w!==-1&&r.splice(w,1)}function J(E,w){const A=E;r.forEach(function(D){D[A]&&D[A](w)})}function re(E){return Zn("10.7.0","highlightBlock will be removed entirely in v12.0"),Zn("10.7.0","Please use highlightElement now."),m(E)}Object.assign(t,{highlight:c,highlightAuto:p,highlightAll:b,highlightElement:m,highlightBlock:re,configure:g,initHighlighting:y,initHighlightingOnLoad:v,registerLanguage:x,unregisterLanguage:R,listLanguages:P,getLanguage:k,registerAliases:$,autoDetection:G,inherit:gc,addPlugin:W,removePlugin:Q}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=rx,t.regex={concat:Kn,lookahead:vp,either:hu,optional:E2,anyNumberOfTimes:y2};for(const E in vi)typeof vi[E]=="object"&&yp(vi[E]);return Object.assign(t,vi),t},vr=Cp({});vr.newInstance=()=>Cp({});var ox=vr;vr.HighlightJS=vr;vr.default=vr;var ax=f2(ox);function Mp(t,e=[]){return t.map(n=>{const r=[...e,...n.properties?n.properties.className:[]];return n.children?Mp(n.children,r):{text:n.value,classes:r}}).flat()}function yc(t){return t.value||t.children||[]}function ux(t){return!!ax.getLanguage(t)}function Ec({doc:t,name:e,lowlight:n,defaultLanguage:r}){const i=[];return pa(t,s=>s.type.name===e).forEach(s=>{var o;let a=s.pos+1;const u=s.node.attrs.language||r,l=n.listLanguages(),c=u&&(l.includes(u)||ux(u)||!((o=n.registered)===null||o===void 0)&&o.call(n,u))?yc(n.highlight(u,s.node.textContent)):yc(n.highlightAuto(s.node.textContent));Mp(c).forEach(d=>{const f=a+d.text.length;if(d.classes.length){const p=We.inline(a,f,{class:d.classes.join(" ")});i.push(p)}a=f})}),be.create(t,i)}function lx(t){return typeof t=="function"}function cx({name:t,lowlight:e,defaultLanguage:n}){if(!["highlight","highlightAuto","listLanguages"].every(i=>lx(e[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new Ee({key:new Le("lowlight"),state:{init:(i,{doc:s})=>Ec({doc:s,name:t,lowlight:e,defaultLanguage:n}),apply:(i,s,o,a)=>{const u=o.selection.$head.parent.type.name,l=a.selection.$head.parent.type.name,c=pa(o.doc,f=>f.type.name===t),d=pa(a.doc,f=>f.type.name===t);return i.docChanged&&([u,l].includes(t)||d.length!==c.length||i.steps.some(f=>f.from!==void 0&&f.to!==void 0&&c.some(p=>p.pos>=f.from&&p.pos+p.node.nodeSize<=f.to)))?Ec({doc:i.doc,name:t,lowlight:e,defaultLanguage:n}):s.map(i.mapping,i.doc)}},props:{decorations(i){return r.getState(i)}}});return r}const dx=bp.extend({addOptions(){var t;return{...(t=this.parent)===null||t===void 0?void 0:t.call(this),lowlight:{}}},addProseMirrorPlugins(){var t;return[...((t=this.parent)===null||t===void 0?void 0:t.call(this))||[],cx({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}});function fx(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],b={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},O={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},x=[O,d,a,n,t.C_BLOCK_COMMENT_MODE,c,l],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:x.concat([{begin:/\(/,end:/\)/,keywords:b,contains:x.concat(["self"]),relevance:0}]),relevance:0},P={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,l,c,a,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,l,c,a]}]},a,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:b,illegal:"",keywords:b,contains:["self",a]},{begin:t.IDENT_RE+"::",keywords:b},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function px(t){const e={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=fx(t),r=n.keywords;return r.type=[...r.type,...e.type],r.literal=[...r.literal,...e.literal],r.built_in=[...r.built_in,...e.built_in],r._hints=e._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function hx(t){const e=t.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const a={match:/\\"/},u={className:"string",begin:/'/,end:/'/},l={match:/\\'/},c={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,n]},d=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=t.SHEBANG({binary:`(${d.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},h=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],g={match:/(\/[a-z._-]+)+/},y=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],v=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],_=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],b=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:h,literal:m,built_in:[...y,...v,"set","shopt",..._,...b]},contains:[f,t.SHEBANG(),p,c,t.HASH_COMMENT_MODE,s,g,o,a,u,l,n]}}function mx(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",g={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[d,a,n,t.C_BLOCK_COMMENT_MODE,c,l],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:y.concat([{begin:/\(/,end:/\)/,keywords:g,contains:y.concat(["self"]),relevance:0}]),relevance:0},_={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:p,returnBegin:!0,contains:[t.inherit(f,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,l,c,a,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,l,c,a]}]},a,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:d,strings:l,keywords:g}}}function gx(t){const e=t.regex,n=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="(?!struct)("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},n,t.C_BLOCK_COMMENT_MODE]},f={className:"title",begin:e.optional(i)+t.IDENT_RE,relevance:0},p=e.optional(i)+t.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],b={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:g},O={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},x=[O,d,a,n,t.C_BLOCK_COMMENT_MODE,c,l],R={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:x.concat([{begin:/\(/,end:/\)/,keywords:b,contains:x.concat(["self"]),relevance:0}]),relevance:0},P={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:b,relevance:0},{begin:p,returnBegin:!0,contains:[f],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[n,t.C_BLOCK_COMMENT_MODE,l,c,a,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",n,t.C_BLOCK_COMMENT_MODE,l,c,a]}]},a,n,t.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:b,illegal:"",keywords:b,contains:["self",a]},{begin:t.IDENT_RE+"::",keywords:b},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function bx(t){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:e,literal:r},a=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},c=t.inherit(l,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:o},f=t.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,f]},h={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},m=t.inherit(h,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});d.contains=[h,p,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.C_BLOCK_COMMENT_MODE],f.contains=[m,p,c,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[h,p,l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},y={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},v=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",_={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},g,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,y,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+v+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,y],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[g,u,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},_]}}const yx=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Ex=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],xx=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],vx=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],wx=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Sx=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function _x(t){const e=t.regex,n=yx(t),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+vx.join("|")+")"},{begin:":(:)?("+wx.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Sx.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:xx.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ex.join("|")+")\\b"}]}}function Nx(t){const e=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:e.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:e.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Tx(t){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"Rp(t,e,n-1))}function Ax(t){const e=t.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+Rp("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),u={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},l={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[t.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[t.BACKSLASH_ESCAPE]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[e.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[c,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",t.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[l,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,xc,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},xc,l]}}const vc="[A-Za-z$_][0-9A-Za-z$_]*",Cx=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Mx=["true","false","null","undefined","NaN","Infinity"],Dp=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ip=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Lp=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Rx=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Dx=[].concat(Lp,Dp,Ip);function Ix(t){const e=t.regex,n=(w,{after:A})=>{const D="",end:""},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,A)=>{const D=w[0].length+w.index,F=w.input[D];if(F==="<"||F===","){A.ignoreMatch();return}F===">"&&(n(w,{after:D})||A.ignoreMatch());let K;const ue=w.input.substring(D);if(K=ue.match(/^\s*=/)){A.ignoreMatch();return}if((K=ue.match(/^\s+extends\s+/))&&K.index===0){A.ignoreMatch();return}}},a={$pattern:vc,keyword:Cx,literal:Mx,built_in:Dx,"variable.language":Rx},u="[0-9](_?[0-9])*",l=`\\.(${u})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},_=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,h,m,g,{match:/\$\d+/},d];f.contains=_.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(_)});const b=[].concat(v,f.contains),O=b.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(b)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Dp,...Ip]}},k={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},G={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return e.concat("(?!",w.join("|"),")")}const W={match:e.concat(/\b/,Z([...Lp,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",E={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),k,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,h,m,g,v,{match:/\$\d+/},d,P,{className:"attr",begin:r+e.lookahead(":"),relevance:0},E,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,t.REGEXP_MODE,{className:"function",begin:re,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},W,G,R,J,{match:/\$[(.]/}]}}function Lx(t){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[e,n,t.QUOTE_STRING_MODE,i,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var ir="[0-9](_*[0-9])*",_i=`\\.(${ir})`,Ni="[0-9a-fA-F](_*[0-9a-fA-F])*",Px={className:"number",variants:[{begin:`(\\b(${ir})((${_i})|\\.)?|(${_i}))[eE][+-]?(${ir})[fFdD]?\\b`},{begin:`\\b(${ir})((${_i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${_i})[fFdD]?\\b`},{begin:`\\b(${ir})[fFdD]\\b`},{begin:`\\b0[xX]((${Ni})\\.?|(${Ni})?\\.(${Ni}))[pP][+-]?(${ir})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Ni})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Bx(t){const e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[t.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+t.UNDERSCORE_IDENT_RE},o={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,i]},{begin:"'",end:"'",illegal:/\n/,contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[t.BACKSLASH_ESCAPE,s,i]}]};i.contains.push(o);const a={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+t.UNDERSCORE_IDENT_RE+")?"},u={className:"meta",begin:"@"+t.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[t.inherit(o,{className:"string"}),"self"]}]},l=Px,c=t.COMMENT("/\\*","\\*/",{contains:[t.C_BLOCK_COMMENT_MODE]}),d={variants:[{className:"type",begin:t.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=d;return f.variants[1].contains=[d],d.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),t.C_LINE_COMMENT_MODE,c,n,r,a,u,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:t.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[t.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[d,t.C_LINE_COMMENT_MODE,c],relevance:0},t.C_LINE_COMMENT_MODE,c,a,u,o,t.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,t.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},t.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},a,u]},o,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` +`},l]}}const $x=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Fx=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ux=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Pp=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Bp=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],zx=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),Hx=Pp.concat(Bp);function qx(t){const e=$x(t),n=Hx,r="and or not only",i="[\\w-]+",s="("+i+"|@\\{"+i+"\\})",o=[],a=[],u=function(_){return{className:"string",begin:"~?"+_+".*?"+_}},l=function(_,b,O){return{className:_,begin:b,relevance:O}},c={$pattern:/[a-z-]+/,keyword:r,attribute:Ux.join(" ")},d={begin:"\\(",end:"\\)",contains:a,keywords:c,relevance:0};a.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,u("'"),u('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.HEXCOLOR,d,l("variable","@@?"+i,10),l("variable","@\\{"+i+"\\}"),l("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);const f=a.concat({begin:/\{/,end:/\}/,contains:o}),p={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},h={begin:s+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+zx.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},m={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:a,relevance:0}},g={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:f}},y={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:s,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+i+"\\}"),{begin:"\\b("+Fx.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,l("selector-tag",s,0),l("selector-id","#"+s),l("selector-class","\\."+s,0),l("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Pp.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Bp.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:f},{begin:"!important"},e.FUNCTION_DISPATCH]},v={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[y]};return o.push(t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,m,g,v,h,y,p,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:o}}function Vx(t){const e="\\[=*\\[",n="\\]=*\\]",r={begin:e,end:n,contains:["self"]},i=[t.COMMENT("--(?!"+e+")","$"),t.COMMENT("--"+e,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:e,end:n,contains:[r],relevance:5}])}}function Kx(t){const e={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},a=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,a,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=t.inherit(l,{contains:[]}),f=t.inherit(c,{contains:[]});l.contains.push(f),c.contains.push(d);let p=[n,u];return[l,c,d,f].forEach(g=>{g.contains=g.contains.concat(p)}),p=p.concat(l,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},n,s,l,c,{className:"quote",begin:"^>\\s+",contains:p,end:"$"},i,r,u,o]}}function Gx(t){const e={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,a={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:a,illegal:"/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}function jx(t){const e=t.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},a={variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},u=[t.BACKSLASH_ESCAPE,s,a],l=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],c=(p,h,m="\\1")=>{const g=m==="\\1"?m:e.concat(m,h);return e.concat(e.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,g,/(?:\\.|[^\\\/])*?/,m,r)},d=(p,h,m)=>e.concat(e.concat("(?:",p,")"),h,/(?:\\.|[^\\\/])*?/,m,r),f=[a,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:c("s|tr|y",e.either(...l,{capture:!0}))},{begin:c("s|tr|y","\\(","\\)")},{begin:c("s|tr|y","\\[","\\]")},{begin:c("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",e.either(...l,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=f,o.contains=f,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:f}}function Yx(t){const e=t.regex,n=/(?![A-Za-z0-9])(?![$])/,r=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),s={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},a={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=t.inherit(t.APOS_STRING_MODE,{illegal:null}),l=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(a)}),c={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(a),"on:begin":(W,Q)=>{Q.data._beginMatch=W[1]||W[2]},"on:end":(W,Q)=>{Q.data._beginMatch!==W[1]&&Q.ignoreMatch()}},d=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f=`[ +]`,p={scope:"string",variants:[l,u,c,d]},h={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],g=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],_={keyword:g,literal:(W=>{const Q=[];return W.forEach(J=>{Q.push(J),J.toLowerCase()===J?Q.push(J.toUpperCase()):Q.push(J.toLowerCase())}),Q})(m),built_in:y},b=W=>W.map(Q=>Q.replace(/\|\d+$/,"")),O={variants:[{match:[/new/,e.concat(f,"+"),e.concat("(?!",b(y).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},x=e.concat(r,"\\b(?!\\()"),R={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,e.concat(/::/,e.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[i,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},P={scope:"attr",match:e.concat(r,e.lookahead(":"),e.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:_,contains:[P,s,R,t.C_BLOCK_COMMENT_MODE,p,h,O]},$={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",b(g).join("\\b|"),"|",b(y).join("\\b|"),"\\b)"),r,e.concat(f,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push($);const G=[P,R,t.C_BLOCK_COMMENT_MODE,p,h,O],Z={begin:e.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...G]},...G,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:_,contains:[Z,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},s,$,R,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},O,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:_,contains:["self",s,R,t.C_BLOCK_COMMENT_MODE,p,h]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},p,h]}}function Jx(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function Zx(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Xx(t){const e=t.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},c={begin:/\{\{/,relevance:0},d={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u,c,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u,c,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,c,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,c,l]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",p=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,h=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${p}))[eE][+-]?(${f})[jJ]?(?=${h})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${f})[jJ](?=${h})`}]},g={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",u,m,d,t.HASH_COMMENT_MODE]}]};return l.contains=[d,m,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[u,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,g,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,y,d]}]}}function Qx(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function ev(t){const e=t.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=e.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=e.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:e.lookahead(e.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[s,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function tv(t){const e=t.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=e.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},l=[t.COMMENT("#","$",{contains:[a]}),t.COMMENT("^=begin","^=end",{contains:[a],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},d={className:"string",contains:[t.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,c]})]}]},f="[1-9](_?[0-9])*|0",p="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${f})(\\.(${p}))?([eE][+-]?(${p})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},x=[d,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:o},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,l),relevance:0}].concat(u,l);c.contains=x,m.contains=x;const $=[{begin:/^\s*=>/,starts:{end:"$",contains:x}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:x}}];return l.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat($).concat(l).concat(x)}}function nv(t){const e=t.regex,n={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let|for|while|if|else|match\b)/,t.IDENT_RE,e.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],s=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],a=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:a,keyword:i,literal:s,built_in:o},illegal:""},n]}}const rv=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),iv=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],sv=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],ov=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],av=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],uv=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function lv(t){const e=rv(t),n=av,r=ov,i="@[a-z-]+",s="and or not only",a={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+iv.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+uv.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,a,e.HEXCOLOR,e.CSS_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:sv.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}function cv(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function dv(t){const e=t.regex,n=t.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},s=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],f=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=c,h=[...l,...u].filter(_=>!c.includes(_)),m={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={begin:e.concat(/\b/,e.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function v(_,{exceptions:b,when:O}={}){const x=O;return b=b||[],_.map(R=>R.match(/\|\d+$/)||b.includes(R)?R:x(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(h,{when:_=>_.length<3}),literal:s,type:a,built_in:d},contains:[{begin:e.either(...f),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:h.concat(f),literal:s,type:a}},{className:"type",begin:e.either(...o)},y,m,r,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,n,g]}}function $p(t){return t?typeof t=="string"?t:t.source:null}function Ti(t){return pe("(?=",t,")")}function pe(...t){return t.map(n=>$p(n)).join("")}function fv(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function et(...t){return"("+(fv(t).capture?"":"?:")+t.map(r=>$p(r)).join("|")+")"}const bu=t=>pe(/\b/,t,/\w$/.test(t)?/\b/:/\B/),pv=["Protocol","Type"].map(bu),wc=["init","self"].map(bu),hv=["Any","Self"],Po=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Sc=["false","nil","true"],mv=["assignment","associativity","higherThan","left","lowerThan","none","right"],gv=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],_c=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Fp=et(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Up=et(Fp,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Bo=pe(Fp,Up,"*"),zp=et(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),as=et(zp,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),zt=pe(zp,as,"*"),$o=pe(/[A-Z]/,as,"*"),bv=["attached","autoclosure",pe(/convention\(/,et("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",pe(/objc\(/,zt,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],yv=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Ev(t){const e={match:/\s+/,relevance:0},n=t.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[t.C_LINE_COMMENT_MODE,n],i={match:[/\./,et(...pv,...wc)],className:{2:"keyword"}},s={match:pe(/\./,et(...Po)),relevance:0},o=Po.filter(se=>typeof se=="string").concat(["_|0"]),a=Po.filter(se=>typeof se!="string").concat(hv).map(bu),u={variants:[{className:"keyword",match:et(...a,...wc)}]},l={$pattern:et(/\b\w+/,/#\w+/),keyword:o.concat(gv),literal:Sc},c=[i,s,u],d={match:pe(/\./,et(..._c)),relevance:0},f={className:"built_in",match:pe(/\b/,et(..._c),/(?=\()/)},p=[d,f],h={match:/->/,relevance:0},m={className:"operator",relevance:0,variants:[{match:Bo},{match:`\\.(\\.|${Up})+`}]},g=[h,m],y="([0-9]_*)+",v="([0-9a-fA-F]_*)+",_={className:"number",relevance:0,variants:[{match:`\\b(${y})(\\.(${y}))?([eE][+-]?(${y}))?\\b`},{match:`\\b0x(${v})(\\.(${v}))?([pP][+-]?(${y}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},b=(se="")=>({className:"subst",variants:[{match:pe(/\\/,se,/[0\\tnr"']/)},{match:pe(/\\/,se,/u\{[0-9a-fA-F]{1,8}\}/)}]}),O=(se="")=>({className:"subst",match:pe(/\\/,se,/[\t ]*(?:[\r\n]|\r\n)/)}),x=(se="")=>({className:"subst",label:"interpol",begin:pe(/\\/,se,/\(/),end:/\)/}),R=(se="")=>({begin:pe(se,/"""/),end:pe(/"""/,se),contains:[b(se),O(se),x(se)]}),P=(se="")=>({begin:pe(se,/"/),end:pe(/"/,se),contains:[b(se),x(se)]}),k={className:"string",variants:[R(),R("#"),R("##"),R("###"),P(),P("#"),P("##"),P("###")]},$=[t.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[t.BACKSLASH_ESCAPE]}],G={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:$},Z=se=>{const Ne=pe(se,/\//),Ue=pe(/\//,se);return{begin:Ne,end:Ue,contains:[...$,{scope:"comment",begin:`#(?!.*${Ue})`,end:/$/}]}},W={scope:"regexp",variants:[Z("###"),Z("##"),Z("#"),G]},Q={match:pe(/`/,zt,/`/)},J={className:"variable",match:/\$\d+/},re={className:"variable",match:`\\$${as}+`},E=[Q,J,re],w={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:yv,contains:[...g,_,k]}]}},A={scope:"keyword",match:pe(/@/,et(...bv))},D={scope:"meta",match:pe(/@/,zt)},F=[w,A,D],K={match:Ti(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:pe(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,as,"+")},{className:"type",match:$o,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:pe(/\s+&\s+/,Ti($o)),relevance:0}]},ue={begin://,keywords:l,contains:[...r,...c,...F,h,K]};K.contains.push(ue);const xe={match:pe(zt,/\s*:/),keywords:"_|0",relevance:0},ee={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",xe,...r,W,...c,...p,...g,_,k,...E,...F,K]},ae={begin://,keywords:"repeat each",contains:[...r,K]},Ze={begin:et(Ti(pe(zt,/\s*:/)),Ti(pe(zt,/\s+/,zt,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:zt}]},Oe={begin:/\(/,end:/\)/,keywords:l,contains:[Ze,...r,...c,...g,_,k,...F,K,ee],endsParent:!0,illegal:/["']/},Xe={match:[/(func|macro)/,/\s+/,et(Q.match,zt,Bo)],className:{1:"keyword",3:"title.function"},contains:[ae,Oe,e],illegal:[/\[/,/%/]},Qe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[ae,Oe,e],illegal:/\[|%/},at={match:[/operator/,/\s+/,Bo],className:{1:"keyword",3:"title"}},kt={begin:[/precedencegroup/,/\s+/,$o],className:{1:"keyword",3:"title"},contains:[K],keywords:[...mv,...Sc],end:/}/};for(const se of k.variants){const Ne=se.contains.find(de=>de.label==="interpol");Ne.keywords=l;const Ue=[...c,...p,...g,_,k,...E];Ne.contains=[...Ue,{begin:/\(/,end:/\)/,contains:["self",...Ue]}]}return{name:"Swift",keywords:l,contains:[...r,Xe,Qe,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:l,contains:[t.inherit(t.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c]},at,kt,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},W,...c,...p,...g,_,k,...E,...F,K,ee]}}const us="[A-Za-z$_][0-9A-Za-z$_]*",Hp=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],qp=["true","false","null","undefined","NaN","Infinity"],Vp=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Kp=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Wp=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gp=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],jp=[].concat(Wp,Vp,Kp);function xv(t){const e=t.regex,n=(w,{after:A})=>{const D="",end:""},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,A)=>{const D=w[0].length+w.index,F=w.input[D];if(F==="<"||F===","){A.ignoreMatch();return}F===">"&&(n(w,{after:D})||A.ignoreMatch());let K;const ue=w.input.substring(D);if(K=ue.match(/^\s*=/)){A.ignoreMatch();return}if((K=ue.match(/^\s+extends\s+/))&&K.index===0){A.ignoreMatch();return}}},a={$pattern:us,keyword:Hp,literal:qp,built_in:jp,"variable.language":Gp},u="[0-9](_?[0-9])*",l=`\\.(${u})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${u})\\b`},{begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},h={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,f]},v={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},_=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,h,m,g,{match:/\$\d+/},d];f.contains=_.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(_)});const b=[].concat(v,f.contains),O=b.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(b)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O},R={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},P={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Vp,...Kp]}},k={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},G={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(w){return e.concat("(?!",w.join("|"),")")}const W={match:e.concat(/\b/,Z([...Wp,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},J={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",E={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:P},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),k,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,p,h,m,g,v,{match:/\$\d+/},d,P,{className:"attr",begin:r+e.lookahead(":"),relevance:0},E,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,t.REGEXP_MODE,{className:"function",begin:re,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},W,G,R,J,{match:/\$[(.]/}]}}function vv(t){const e=xv(t),n=us,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],u={$pattern:us,keyword:Hp.concat(a),literal:qp,built_in:jp.concat(r),"variable.language":Gp},l={className:"meta",begin:"@"+n},c=(f,p,h)=>{const m=f.contains.findIndex(g=>g.label===p);if(m===-1)throw new Error("can not find mode to replace");f.contains.splice(m,1,h)};Object.assign(e.keywords,u),e.exports.PARAMS_CONTAINS.push(l),e.contains=e.contains.concat([l,i,s]),c(e,"shebang",t.SHEBANG()),c(e,"use_strict",o);const d=e.contains.find(f=>f.label==="func.def");return d.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function wv(t){const e=t.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,o=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,a=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:e.concat(/# */,e.either(s,i),/ *#/)},{begin:e.concat(/# */,a,/ *#/)},{begin:e.concat(/# */,o,/ *#/)},{begin:e.concat(/# */,e.either(s,i),/ +/,e.either(o,a),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},c={className:"label",begin:/^\w+:/},d=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),f=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,u,l,c,d,f,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[f]}]}}function Sv(t){t.regex;const e=t.COMMENT(/\(;/,/;\)/);e.contains.push("self");const n=t.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},o={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},a={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,e,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,o,i,t.QUOTE_STRING_MODE,u,l,a]}}function _v(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(s,{begin:/\(/,end:/\)/}),a=t.inherit(t.APOS_STRING_MODE,{className:"string"}),u=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[s,u,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[s,o,u,a]}]}]},t.COMMENT(//,{relevance:10}),{begin://,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Nv(t){const e="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,i]},o=t.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),d={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},p={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},h={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},d,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},p,h,s],g=[...m];return g.pop(),g.push(o),f.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}const Tv={arduino:px,bash:hx,c:mx,cpp:gx,csharp:bx,css:_x,diff:Nx,go:Tx,graphql:kx,ini:Ox,java:Ax,javascript:Ix,json:Lx,kotlin:Bx,less:qx,lua:Vx,makefile:Kx,markdown:Wx,objectivec:Gx,perl:jx,php:Yx,"php-template":Jx,plaintext:Zx,python:Xx,"python-repl":Qx,r:ev,ruby:tv,rust:nv,scss:lv,shell:cv,sql:dv,swift:Ev,typescript:vv,vbnet:wv,wasm:Sv,xml:_v,yaml:Nv};function Yp(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&Yp(n)}),t}class Nc{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Jp(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function cn(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const kv="",Tc=t=>!!t.scope,Ov=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${t}`};class Av{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Jp(e)}openNode(e){if(!Tc(e))return;const n=Ov(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){Tc(e)&&(this.buffer+=kv)}value(){return this.buffer}span(e){this.buffer+=``}}const kc=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class yu{constructor(){this.rootNode=kc(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=kc({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{yu._collapse(n)}))}}class Cv extends yu{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Av(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ni(t){return t?typeof t=="string"?t:t.source:null}function Zp(t){return Wn("(?=",t,")")}function Mv(t){return Wn("(?:",t,")*")}function Rv(t){return Wn("(?:",t,")?")}function Wn(...t){return t.map(n=>ni(n)).join("")}function Dv(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Eu(...t){return"("+(Dv(t).capture?"":"?:")+t.map(r=>ni(r)).join("|")+")"}function Xp(t){return new RegExp(t.toString()+"|").exec("").length-1}function Iv(t,e){const n=t&&t.exec(e);return n&&n.index===0}const Lv=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function xu(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const i=n;let s=ni(r),o="";for(;s.length>0;){const a=Lv.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&n++)}return o}).map(r=>`(${r})`).join(e)}const Pv=/\b\B/,Qp="[a-zA-Z]\\w*",vu="[a-zA-Z_]\\w*",eh="\\b\\d+(\\.\\d+)?",th="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",nh="\\b(0b[01]+)",Bv="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",$v=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=Wn(e,/.*\b/,t.binary,/\b.*/)),cn({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},ri={begin:"\\\\[\\s\\S]",relevance:0},Fv={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ri]},Uv={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ri]},zv={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},io=function(t,e,n={}){const r=cn({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Eu("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Wn(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Hv=io("//","$"),qv=io("/\\*","\\*/"),Vv=io("#","$"),Kv={scope:"number",begin:eh,relevance:0},Wv={scope:"number",begin:th,relevance:0},Gv={scope:"number",begin:nh,relevance:0},jv={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ri,{begin:/\[/,end:/\]/,relevance:0,contains:[ri]}]},Yv={scope:"title",begin:Qp,relevance:0},Jv={scope:"title",begin:vu,relevance:0},Zv={begin:"\\.\\s*"+vu,relevance:0},Xv=function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var ki=Object.freeze({__proto__:null,APOS_STRING_MODE:Fv,BACKSLASH_ESCAPE:ri,BINARY_NUMBER_MODE:Gv,BINARY_NUMBER_RE:nh,COMMENT:io,C_BLOCK_COMMENT_MODE:qv,C_LINE_COMMENT_MODE:Hv,C_NUMBER_MODE:Wv,C_NUMBER_RE:th,END_SAME_AS_BEGIN:Xv,HASH_COMMENT_MODE:Vv,IDENT_RE:Qp,MATCH_NOTHING_RE:Pv,METHOD_GUARD:Zv,NUMBER_MODE:Kv,NUMBER_RE:eh,PHRASAL_WORDS_MODE:zv,QUOTE_STRING_MODE:Uv,REGEXP_MODE:jv,RE_STARTERS_RE:Bv,SHEBANG:$v,TITLE_MODE:Yv,UNDERSCORE_IDENT_RE:vu,UNDERSCORE_TITLE_MODE:Jv});function Qv(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function ew(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function tw(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=Qv,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function nw(t,e){Array.isArray(t.illegal)&&(t.illegal=Eu(...t.illegal))}function rw(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function iw(t,e){t.relevance===void 0&&(t.relevance=1)}const sw=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=Wn(n.beforeMatch,Zp(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},ow=["of","and","for","in","not","or","if","then","parent","list","value"],aw="keyword";function rh(t,e,n=aw){const r=Object.create(null);return typeof t=="string"?i(n,t.split(" ")):Array.isArray(t)?i(n,t):Object.keys(t).forEach(function(s){Object.assign(r,rh(t[s],e,s))}),r;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const u=a.split("|");r[u[0]]=[s,uw(u[0],u[1])]})}}function uw(t,e){return e?Number(e):lw(t)?0:1}function lw(t){return ow.includes(t.toLowerCase())}const Oc={},Bn=t=>{console.error(t)},Ac=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Xn=(t,e)=>{Oc[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Oc[`${t}/${e}`]=!0)},ls=new Error;function ih(t,e,{key:n}){let r=0;const i=t[n],s={},o={};for(let a=1;a<=e.length;a++)o[a+r]=i[a],s[a+r]=!0,r+=Xp(e[a-1]);t[n]=o,t[n]._emit=s,t[n]._multi=!0}function cw(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Bn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ls;if(typeof t.beginScope!="object"||t.beginScope===null)throw Bn("beginScope must be object"),ls;ih(t,t.begin,{key:"beginScope"}),t.begin=xu(t.begin,{joinWith:""})}}function dw(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Bn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ls;if(typeof t.endScope!="object"||t.endScope===null)throw Bn("endScope must be object"),ls;ih(t,t.end,{key:"endScope"}),t.end=xu(t.end,{joinWith:""})}}function fw(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function pw(t){fw(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),cw(t),dw(t)}function hw(t){function e(o,a){return new RegExp(ni(o),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(a?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,a]),this.matchAt+=Xp(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(u=>u[1]);this.matcherRe=e(xu(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(a);if(!u)return null;const l=u.findIndex((d,f)=>f>0&&d!==void 0),c=this.matchIndexes[l];return u.splice(0,l),Object.assign(u,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const u=new n;return this.rules.slice(a).forEach(([l,c])=>u.addRule(l,c)),u.compile(),this.multiRegexes[a]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,u){this.rules.push([a,u]),u.type==="begin"&&this.count++}exec(a){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let l=u.exec(a);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,l=c.exec(a)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function i(o){const a=new r;return o.contains.forEach(u=>a.addRule(u.begin,{rule:u,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const u=o;if(o.isCompiled)return u;[ew,rw,pw,sw].forEach(c=>c(o,a)),t.compilerExtensions.forEach(c=>c(o,a)),o.__beforeBegin=null,[tw,nw,iw].forEach(c=>c(o,a)),o.isCompiled=!0;let l=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),l=o.keywords.$pattern,delete o.keywords.$pattern),l=l||/\w+/,o.keywords&&(o.keywords=rh(o.keywords,t.case_insensitive)),u.keywordPatternRe=e(l,!0),a&&(o.begin||(o.begin=/\B|\b/),u.beginRe=e(u.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(u.endRe=e(u.end)),u.terminatorEnd=ni(u.end)||"",o.endsWithParent&&a.terminatorEnd&&(u.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(u.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(c){return mw(c==="self"?o:c)})),o.contains.forEach(function(c){s(c,u)}),o.starts&&s(o.starts,a),u.matcher=i(u),u}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=cn(t.classNameAliases||{}),s(t)}function sh(t){return t?t.endsWithParent||sh(t.starts):!1}function mw(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return cn(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:sh(t)?cn(t,{starts:t.starts?cn(t.starts):null}):Object.isFrozen(t)?cn(t):t}var gw="11.9.0";class bw extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Fo=Jp,Cc=cn,Mc=Symbol("nomatch"),yw=7,oh=function(t){const e=Object.create(null),n=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Cv};function u(E){return a.noHighlightRe.test(E)}function l(E){let w=E.className+" ";w+=E.parentNode?E.parentNode.className:"";const A=a.languageDetectRe.exec(w);if(A){const D=k(A[1]);return D||(Ac(s.replace("{}",A[1])),Ac("Falling back to no-highlight mode for this block.",E)),D?A[1]:"no-highlight"}return w.split(/\s+/).find(D=>u(D)||k(D))}function c(E,w,A){let D="",F="";typeof w=="object"?(D=E,A=w.ignoreIllegals,F=w.language):(Xn("10.7.0","highlight(lang, code, ...args) has been deprecated."),Xn("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),F=E,D=w),A===void 0&&(A=!0);const K={code:D,language:F};J("before:highlight",K);const ue=K.result?K.result:d(K.language,K.code,A);return ue.code=K.code,J("after:highlight",ue),ue}function d(E,w,A,D){const F=Object.create(null);function K(S,T){return S.keywords[T]}function ue(){if(!M.keywords){X.addText(V);return}let S=0;M.keywordPatternRe.lastIndex=0;let T=M.keywordPatternRe.exec(V),I="";for(;T;){I+=V.substring(S,T.index);const z=de.case_insensitive?T[0].toLowerCase():T[0],oe=K(M,z);if(oe){const[we,Tr]=oe;if(X.addText(I),I="",F[z]=(F[z]||0)+1,F[z]<=yw&&(Pe+=Tr),we.startsWith("_"))I+=T[0];else{const N=de.classNameAliases[we]||we;ae(T[0],N)}}else I+=T[0];S=M.keywordPatternRe.lastIndex,T=M.keywordPatternRe.exec(V)}I+=V.substring(S),X.addText(I)}function xe(){if(V==="")return;let S=null;if(typeof M.subLanguage=="string"){if(!e[M.subLanguage]){X.addText(V);return}S=d(M.subLanguage,V,!0,Ve[M.subLanguage]),Ve[M.subLanguage]=S._top}else S=p(V,M.subLanguage.length?M.subLanguage:null);M.relevance>0&&(Pe+=S.relevance),X.__addSublanguage(S._emitter,S.language)}function ee(){M.subLanguage!=null?xe():ue(),V=""}function ae(S,T){S!==""&&(X.startScope(T),X.addText(S),X.endScope())}function Ze(S,T){let I=1;const z=T.length-1;for(;I<=z;){if(!S._emit[I]){I++;continue}const oe=de.classNameAliases[S[I]]||S[I],we=T[I];oe?ae(we,oe):(V=we,ue(),V=""),I++}}function Oe(S,T){return S.scope&&typeof S.scope=="string"&&X.openNode(de.classNameAliases[S.scope]||S.scope),S.beginScope&&(S.beginScope._wrap?(ae(V,de.classNameAliases[S.beginScope._wrap]||S.beginScope._wrap),V=""):S.beginScope._multi&&(Ze(S.beginScope,T),V="")),M=Object.create(S,{parent:{value:M}}),M}function Xe(S,T,I){let z=Iv(S.endRe,I);if(z){if(S["on:end"]){const oe=new Nc(S);S["on:end"](T,oe),oe.isMatchIgnored&&(z=!1)}if(z){for(;S.endsParent&&S.parent;)S=S.parent;return S}}if(S.endsWithParent)return Xe(S.parent,T,I)}function Qe(S){return M.matcher.regexIndex===0?(V+=S[0],1):(ct=!0,0)}function at(S){const T=S[0],I=S.rule,z=new Nc(I),oe=[I.__beforeBegin,I["on:begin"]];for(const we of oe)if(we&&(we(S,z),z.isMatchIgnored))return Qe(T);return I.skip?V+=T:(I.excludeBegin&&(V+=T),ee(),!I.returnBegin&&!I.excludeBegin&&(V=T)),Oe(I,S),I.returnBegin?0:T.length}function kt(S){const T=S[0],I=w.substring(S.index),z=Xe(M,S,I);if(!z)return Mc;const oe=M;M.endScope&&M.endScope._wrap?(ee(),ae(T,M.endScope._wrap)):M.endScope&&M.endScope._multi?(ee(),Ze(M.endScope,S)):oe.skip?V+=T:(oe.returnEnd||oe.excludeEnd||(V+=T),ee(),oe.excludeEnd&&(V=T));do M.scope&&X.closeNode(),!M.skip&&!M.subLanguage&&(Pe+=M.relevance),M=M.parent;while(M!==z.parent);return z.starts&&Oe(z.starts,S),oe.returnEnd?0:T.length}function se(){const S=[];for(let T=M;T!==de;T=T.parent)T.scope&&S.unshift(T.scope);S.forEach(T=>X.openNode(T))}let Ne={};function Ue(S,T){const I=T&&T[0];if(V+=S,I==null)return ee(),0;if(Ne.type==="begin"&&T.type==="end"&&Ne.index===T.index&&I===""){if(V+=w.slice(T.index,T.index+1),!i){const z=new Error(`0 width match regex (${E})`);throw z.languageName=E,z.badRule=Ne.rule,z}return 1}if(Ne=T,T.type==="begin")return at(T);if(T.type==="illegal"&&!A){const z=new Error('Illegal lexeme "'+I+'" for mode "'+(M.scope||"")+'"');throw z.mode=M,z}else if(T.type==="end"){const z=kt(T);if(z!==Mc)return z}if(T.type==="illegal"&&I==="")return 1;if(lt>1e5&<>T.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=I,I.length}const de=k(E);if(!de)throw Bn(s.replace("{}",E)),new Error('Unknown language: "'+E+'"');const Ft=hw(de);let ut="",M=D||Ft;const Ve={},X=new a.__emitter(a);se();let V="",Pe=0,ve=0,lt=0,ct=!1;try{if(de.__emitTokens)de.__emitTokens(w,X);else{for(M.matcher.considerAll();;){lt++,ct?ct=!1:M.matcher.considerAll(),M.matcher.lastIndex=ve;const S=M.matcher.exec(w);if(!S)break;const T=w.substring(ve,S.index),I=Ue(T,S);ve=S.index+I}Ue(w.substring(ve))}return X.finalize(),ut=X.toHTML(),{language:E,value:ut,relevance:Pe,illegal:!1,_emitter:X,_top:M}}catch(S){if(S.message&&S.message.includes("Illegal"))return{language:E,value:Fo(w),illegal:!0,relevance:0,_illegalBy:{message:S.message,index:ve,context:w.slice(ve-100,ve+100),mode:S.mode,resultSoFar:ut},_emitter:X};if(i)return{language:E,value:Fo(w),illegal:!1,relevance:0,errorRaised:S,_emitter:X,_top:M};throw S}}function f(E){const w={value:Fo(E),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return w._emitter.addText(E),w}function p(E,w){w=w||a.languages||Object.keys(e);const A=f(E),D=w.filter(k).filter(G).map(ee=>d(ee,E,!1));D.unshift(A);const F=D.sort((ee,ae)=>{if(ee.relevance!==ae.relevance)return ae.relevance-ee.relevance;if(ee.language&&ae.language){if(k(ee.language).supersetOf===ae.language)return 1;if(k(ae.language).supersetOf===ee.language)return-1}return 0}),[K,ue]=F,xe=K;return xe.secondBest=ue,xe}function h(E,w,A){const D=w&&n[w]||A;E.classList.add("hljs"),E.classList.add(`language-${D}`)}function m(E){let w=null;const A=l(E);if(u(A))return;if(J("before:highlightElement",{el:E,language:A}),E.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",E);return}if(E.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(E)),a.throwUnescapedHTML))throw new bw("One of your code blocks includes unescaped HTML.",E.innerHTML);w=E;const D=w.textContent,F=A?c(D,{language:A,ignoreIllegals:!0}):p(D);E.innerHTML=F.value,E.dataset.highlighted="yes",h(E,A,F.language),E.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(E.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),J("after:highlightElement",{el:E,result:F,text:D})}function g(E){a=Cc(a,E)}const y=()=>{b(),Xn("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function v(){b(),Xn("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function b(){if(document.readyState==="loading"){_=!0;return}document.querySelectorAll(a.cssSelector).forEach(m)}function O(){_&&b()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function x(E,w){let A=null;try{A=w(t)}catch(D){if(Bn("Language definition for '{}' could not be registered.".replace("{}",E)),i)Bn(D);else throw D;A=o}A.name||(A.name=E),e[E]=A,A.rawDefinition=w.bind(null,t),A.aliases&&$(A.aliases,{languageName:E})}function R(E){delete e[E];for(const w of Object.keys(n))n[w]===E&&delete n[w]}function P(){return Object.keys(e)}function k(E){return E=(E||"").toLowerCase(),e[E]||e[n[E]]}function $(E,{languageName:w}){typeof E=="string"&&(E=[E]),E.forEach(A=>{n[A.toLowerCase()]=w})}function G(E){const w=k(E);return w&&!w.disableAutodetect}function Z(E){E["before:highlightBlock"]&&!E["before:highlightElement"]&&(E["before:highlightElement"]=w=>{E["before:highlightBlock"](Object.assign({block:w.el},w))}),E["after:highlightBlock"]&&!E["after:highlightElement"]&&(E["after:highlightElement"]=w=>{E["after:highlightBlock"](Object.assign({block:w.el},w))})}function W(E){Z(E),r.push(E)}function Q(E){const w=r.indexOf(E);w!==-1&&r.splice(w,1)}function J(E,w){const A=E;r.forEach(function(D){D[A]&&D[A](w)})}function re(E){return Xn("10.7.0","highlightBlock will be removed entirely in v12.0"),Xn("10.7.0","Please use highlightElement now."),m(E)}Object.assign(t,{highlight:c,highlightAuto:p,highlightAll:b,highlightElement:m,highlightBlock:re,configure:g,initHighlighting:y,initHighlightingOnLoad:v,registerLanguage:x,unregisterLanguage:R,listLanguages:P,getLanguage:k,registerAliases:$,autoDetection:G,inherit:Cc,addPlugin:W,removePlugin:Q}),t.debugMode=function(){i=!1},t.safeMode=function(){i=!0},t.versionString=gw,t.regex={concat:Wn,lookahead:Zp,either:Eu,optional:Rv,anyNumberOfTimes:Mv};for(const E in ki)typeof ki[E]=="object"&&Yp(ki[E]);return Object.assign(t,ki),t},wr=oh({});wr.newInstance=()=>oh({});var Ew=wr;wr.HighlightJS=wr;wr.default=wr;const xw=ed(Ew),Rc={},vw="hljs-";function ww(t){const e=xw.newInstance();return t&&s(t),{highlight:n,highlightAuto:r,listLanguages:i,register:s,registerAlias:o,registered:a};function n(u,l,c){const d=c||Rc,f=typeof d.prefix=="string"?d.prefix:vw;if(!e.getLanguage(u))throw new Error("Unknown language: `"+u+"` is not registered");e.configure({__emitter:Sw,classPrefix:f});const p=e.highlight(l,{ignoreIllegals:!0,language:u});if(p.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:p.errorRaised});const h=p._emitter.root,m=h.data;return m.language=p.language,m.relevance=p.relevance,h}function r(u,l){const d=(l||Rc).subset||i();let f=-1,p=0,h;for(;++fp&&(p=g.data.relevance,h=g)}return h||{type:"root",children:[],data:{language:void 0,relevance:p}}}function i(){return e.listLanguages()}function s(u,l){if(typeof u=="string")e.registerLanguage(u,l);else{let c;for(c in u)Object.hasOwn(u,c)&&e.registerLanguage(c,u[c])}}function o(u,l){if(typeof u=="string")e.registerAliases(typeof l=="string"?l:[...l],{languageName:u});else{let c;for(c in u)if(Object.hasOwn(u,c)){const d=u[c];e.registerAliases(typeof d=="string"?d:[...d],{languageName:c})}}}function a(u){return!!e.getLanguage(u)}}class Sw{constructor(e){this.options=e,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(e){if(e==="")return;const n=this.stack[this.stack.length-1],r=n.children[n.children.length-1];r&&r.type==="text"?r.value+=e:n.children.push({type:"text",value:e})}startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}__addSublanguage(e,n){const r=this.stack[this.stack.length-1],i=e.root.children;n?r.children.push({type:"element",tagName:"span",properties:{className:[n]},children:i}):r.children.push(...i)}openNode(e){const n=this,r=e.split(".").map(function(o,a){return a?o+"_".repeat(a):n.options.classPrefix+o}),i=this.stack[this.stack.length-1],s={type:"element",tagName:"span",properties:{className:r},children:[]};i.children.push(s),this.stack.push(s)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const _w=()=>{const t=ww(Tv);return dx.extend({addNodeView(){const n=Se("pre",{},[Se("code",{})]),r=Se("select",{contenteditable:!1,value:null,className:"language"},[Se("option",{value:void 0,disabled:!0},"select a language"),Se("option",{value:null},"auto"),...t.listLanguages().map(s=>Se("option",{value:s},s))]),i=Se("div",{className:"llt-code"},[r,n]);return s=>{r.value=s.node.attrs.language;const o=()=>{const u=r.value;s.editor.view.dispatch(s.editor.view.state.tr.setNodeMarkup(s.getPos(),null,{...s.node.attrs,language:u}))};return r.addEventListener("change",o),{dom:i,contentDOM:n,destroy:()=>{r.removeEventListener("change",o)}}}},addKeyboardShortcuts(){return{Tab:()=>(this.editor.commands.insertContent(" "),!0)}}}).configure({lowlight:t})},Nw=t=>(e,n,r)=>{t();const i=n.clipboardData?.items??[];for(let s=0;s(e,n,r)=>{n.preventDefault(),console.log(n.dataTransfer?.files),t();const i={left:n.clientX,top:n.clientY},s=e.posAtCoords(i)?.pos;if(!s)return;const o=n.dataTransfer?.items??[];for(let a=0;a({handlePaste:Nw(t),handleDrop:Tw(t)}),Ow="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Aw="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Sr=(t,e)=>{for(const n in e)t[n]=e[n];return t},wa="numeric",Sa="ascii",_a="alpha",$i="asciinumeric",Oi="alphanumeric",Na="domain",ah="emoji",Cw="scheme",Mw="slashscheme",Dc="whitespace";function Rw(t,e){return t in e||(e[t]=[]),e[t]}function Cn(t,e,n){e[wa]&&(e[$i]=!0,e[Oi]=!0),e[Sa]&&(e[$i]=!0,e[_a]=!0),e[$i]&&(e[Oi]=!0),e[_a]&&(e[Oi]=!0),e[Oi]&&(e[Na]=!0),e[ah]&&(e[Na]=!0);for(const r in e){const i=Rw(r,n);i.indexOf(t)<0&&i.push(t)}}function Dw(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function tt(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}tt.groups={};tt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;rt.ta(e,n,r,i),ft=(t,e,n,r,i)=>t.tr(e,n,r,i),Ic=(t,e,n,r,i)=>t.ts(e,n,r,i),L=(t,e,n,r,i)=>t.tt(e,n,r,i),Ht="WORD",Ta="UWORD",ii="LOCALHOST",ka="TLD",Oa="UTLD",Fi="SCHEME",sr="SLASH_SCHEME",wu="NUM",uh="WS",Su="NL",zr="OPENBRACE",Hr="CLOSEBRACE",cs="OPENBRACKET",ds="CLOSEBRACKET",fs="OPENPAREN",ps="CLOSEPAREN",hs="OPENANGLEBRACKET",ms="CLOSEANGLEBRACKET",gs="FULLWIDTHLEFTPAREN",bs="FULLWIDTHRIGHTPAREN",ys="LEFTCORNERBRACKET",Es="RIGHTCORNERBRACKET",xs="LEFTWHITECORNERBRACKET",vs="RIGHTWHITECORNERBRACKET",ws="FULLWIDTHLESSTHAN",Ss="FULLWIDTHGREATERTHAN",_s="AMPERSAND",Ns="APOSTROPHE",Ts="ASTERISK",Qt="AT",ks="BACKSLASH",Os="BACKTICK",As="CARET",rn="COLON",_u="COMMA",Cs="DOLLAR",Ot="DOT",Ms="EQUALS",Nu="EXCLAMATION",At="HYPHEN",Rs="PERCENT",Ds="PIPE",Is="PLUS",Ls="POUND",Ps="QUERY",Tu="QUOTE",ku="SEMI",Ct="SLASH",qr="TILDE",Bs="UNDERSCORE",lh="EMOJI",$s="SYM";var ch=Object.freeze({__proto__:null,WORD:Ht,UWORD:Ta,LOCALHOST:ii,TLD:ka,UTLD:Oa,SCHEME:Fi,SLASH_SCHEME:sr,NUM:wu,WS:uh,NL:Su,OPENBRACE:zr,CLOSEBRACE:Hr,OPENBRACKET:cs,CLOSEBRACKET:ds,OPENPAREN:fs,CLOSEPAREN:ps,OPENANGLEBRACKET:hs,CLOSEANGLEBRACKET:ms,FULLWIDTHLEFTPAREN:gs,FULLWIDTHRIGHTPAREN:bs,LEFTCORNERBRACKET:ys,RIGHTCORNERBRACKET:Es,LEFTWHITECORNERBRACKET:xs,RIGHTWHITECORNERBRACKET:vs,FULLWIDTHLESSTHAN:ws,FULLWIDTHGREATERTHAN:Ss,AMPERSAND:_s,APOSTROPHE:Ns,ASTERISK:Ts,AT:Qt,BACKSLASH:ks,BACKTICK:Os,CARET:As,COLON:rn,COMMA:_u,DOLLAR:Cs,DOT:Ot,EQUALS:Ms,EXCLAMATION:Nu,HYPHEN:At,PERCENT:Rs,PIPE:Ds,PLUS:Is,POUND:Ls,QUERY:Ps,QUOTE:Tu,SEMI:ku,SLASH:Ct,TILDE:qr,UNDERSCORE:Bs,EMOJI:lh,SYM:$s});const Qn=/[a-z]/,Uo=/\p{L}/u,zo=/\p{Emoji}/u,Ho=/\d/,Lc=/\s/,Pc=` +`,Iw="️",Lw="‍";let Ai=null,Ci=null;function Pw(t){t===void 0&&(t=[]);const e={};tt.groups=e;const n=new tt;Ai==null&&(Ai=Bc(Ow)),Ci==null&&(Ci=Bc(Aw)),L(n,"'",Ns),L(n,"{",zr),L(n,"}",Hr),L(n,"[",cs),L(n,"]",ds),L(n,"(",fs),L(n,")",ps),L(n,"<",hs),L(n,">",ms),L(n,"(",gs),L(n,")",bs),L(n,"「",ys),L(n,"」",Es),L(n,"『",xs),L(n,"』",vs),L(n,"<",ws),L(n,">",Ss),L(n,"&",_s),L(n,"*",Ts),L(n,"@",Qt),L(n,"`",Os),L(n,"^",As),L(n,":",rn),L(n,",",_u),L(n,"$",Cs),L(n,".",Ot),L(n,"=",Ms),L(n,"!",Nu),L(n,"-",At),L(n,"%",Rs),L(n,"|",Ds),L(n,"+",Is),L(n,"#",Ls),L(n,"?",Ps),L(n,'"',Tu),L(n,"/",Ct),L(n,";",ku),L(n,"~",qr),L(n,"_",Bs),L(n,"\\",ks);const r=ft(n,Ho,wu,{[wa]:!0});ft(r,Ho,r);const i=ft(n,Qn,Ht,{[Sa]:!0});ft(i,Qn,i);const s=ft(n,Uo,Ta,{[_a]:!0});ft(s,Qn),ft(s,Uo,s);const o=ft(n,Lc,uh,{[Dc]:!0});L(n,Pc,Su,{[Dc]:!0}),L(o,Pc),ft(o,Lc,o);const a=ft(n,zo,lh,{[ah]:!0});ft(a,zo,a),L(a,Iw,a);const u=L(a,Lw);ft(u,zo,a);const l=[[Qn,i]],c=[[Qn,null],[Uo,s]];for(let d=0;dd[0]>f[0]?1:-1);for(let d=0;d=0?h[Na]=!0:Qn.test(f)?Ho.test(f)?h[$i]=!0:h[Sa]=!0:h[wa]=!0,Ic(n,f,f,h)}return Ic(n,"localhost",ii,{ascii:!0}),n.jd=new tt($s),{start:n,tokens:Sr({groups:e},ch)}}function Bw(t,e){const n=$w(e.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,i=[];let s=0,o=0;for(;o=0&&(d+=n[o].length,f++),l+=n[o].length,s+=n[o].length,o++;s-=d,o-=f,l-=d,i.push({t:c.t,v:e.slice(s-l,s),s:s-l,e:s})}return i}function $w(t){const e=[],n=t.length;let r=0;for(;r56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?t[r]:t.slice(r,r+2);e.push(o),r+=o.length}return e}function Yt(t,e,n,r,i){let s;const o=e.length;for(let a=0;a=0;)s++;if(s>0){e.push(n.join(""));for(let o=parseInt(t.substring(r,r+s),10);o>0;o--)n.pop();r+=s}else n.push(t[r]),r++}return e}const si={defaultProtocol:"http",events:null,format:$c,formatHref:$c,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Ou(t,e){e===void 0&&(e=null);let n=Sr({},si);t&&(n=Sr(n,t instanceof Ou?t.o:t));const r=n.ignoreTags,i=[];for(let s=0;sn?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=si.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),i=t.get("tagName",n,e),s=this.toFormattedString(t),o={},a=t.get("className",n,e),u=t.get("target",n,e),l=t.get("rel",n,e),c=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return o.href=r,a&&(o.class=a),u&&(o.target=u),l&&(o.rel=l),c&&Sr(o,c),{tagName:i,attributes:o,content:s,eventListeners:d}}};function so(t,e){class n extends dh{constructor(i,s){super(i,s),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const Fc=so("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Uc=so("text"),Fw=so("nl"),Mi=so("url",{isLink:!0,toHref(t){return t===void 0&&(t=si.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==ii&&t[1].t===rn}}),pt=t=>new tt(t);function Uw(t){let{groups:e}=t;const n=e.domain.concat([_s,Ts,Qt,ks,Os,As,Cs,Ms,At,wu,Rs,Ds,Is,Ls,Ct,$s,qr,Bs]),r=[Ns,rn,_u,Ot,Nu,Ps,Tu,ku,hs,ms,zr,Hr,ds,cs,fs,ps,gs,bs,ys,Es,xs,vs,ws,Ss],i=[_s,Ns,Ts,ks,Os,As,Cs,Ms,At,zr,Hr,Rs,Ds,Is,Ls,Ps,Ct,$s,qr,Bs],s=pt(),o=L(s,qr);ne(o,i,o),ne(o,e.domain,o);const a=pt(),u=pt(),l=pt();ne(s,e.domain,a),ne(s,e.scheme,u),ne(s,e.slashscheme,l),ne(a,i,o),ne(a,e.domain,a);const c=L(a,Qt);L(o,Qt,c),L(u,Qt,c),L(l,Qt,c);const d=L(o,Ot);ne(d,i,o),ne(d,e.domain,o);const f=pt();ne(c,e.domain,f),ne(f,e.domain,f);const p=L(f,Ot);ne(p,e.domain,f);const h=pt(Fc);ne(p,e.tld,h),ne(p,e.utld,h),L(c,ii,h);const m=L(f,At);ne(m,e.domain,f),ne(h,e.domain,f),L(h,Ot,p),L(h,At,m);const g=L(h,rn);ne(g,e.numeric,Fc);const y=L(a,At),v=L(a,Ot);ne(y,e.domain,a),ne(v,i,o),ne(v,e.domain,a);const _=pt(Mi);ne(v,e.tld,_),ne(v,e.utld,_),ne(_,e.domain,a),ne(_,i,o),L(_,Ot,v),L(_,At,y),L(_,Qt,c);const b=L(_,rn),O=pt(Mi);ne(b,e.numeric,O);const x=pt(Mi),R=pt();ne(x,n,x),ne(x,r,R),ne(R,n,x),ne(R,r,R),L(_,Ct,x),L(O,Ct,x);const P=L(u,rn),k=L(l,rn),$=L(k,Ct),G=L($,Ct);ne(u,e.domain,a),L(u,Ot,v),L(u,At,y),ne(l,e.domain,a),L(l,Ot,v),L(l,At,y),ne(P,e.domain,x),L(P,Ct,x),ne(G,e.domain,x),ne(G,n,x),L(G,Ct,x);const Z=[[zr,Hr],[cs,ds],[fs,ps],[hs,ms],[gs,bs],[ys,Es],[xs,vs],[ws,Ss]];for(let W=0;W=0&&f++,i++,c++;if(f<0)i-=c,i0&&(s.push(qo(Uc,e,o)),o=[]),i-=f,c-=f;const p=d.t,h=n.slice(i-c,i);s.push(qo(p,e,h))}}return o.length>0&&s.push(qo(Uc,e,o)),s}function qo(t,e,n){const r=n[0].s,i=n[n.length-1].e,s=e.slice(r,i);return new t(s,n)}const Hw=typeof console<"u"&&console&&console.warn||(()=>{}),qw="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ge={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Vw(){tt.groups={},ge.scanner=null,ge.parser=null,ge.tokenQueue=[],ge.pluginQueue=[],ge.customSchemes=[],ge.initialized=!1}function zc(t,e){if(e===void 0&&(e=!1),ge.initialized&&Hw(`linkifyjs: already initialized - will not register custom scheme "${t}" ${qw}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format. 1. Must only contain digits, lowercase ASCII letters or "-" 2. Cannot start or end with "-" -3. "-" cannot repeat`);ge.customSchemes.push([t,e])}function Ww(){ge.scanner=Bw(ge.customSchemes);for(let t=0;t{const i=e.some(l=>l.docChanged)&&!n.doc.eq(r.doc),s=e.some(l=>l.getMeta("preventAutolink"));if(!i||s)return;const{tr:o}=r,a=Vb(n.doc,[...e]);if(e1(a).forEach(({newRange:l})=>{const c=Wb(r.doc,l,p=>p.isTextblock);let d,f;if(c.length>1?(d=c[0],f=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):c.length&&r.doc.textBetween(l.from,l.to," "," ").endsWith(" ")&&(d=c[0],f=r.doc.textBetween(d.pos,l.to,void 0," ")),d&&f){const p=f.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const h=p[p.length-1],m=d.pos+f.lastIndexOf(h);if(!h)return!1;const g=fh(h).map(y=>y.toObject(t.defaultProtocol));if(!Gw(g))return!1;g.filter(y=>y.isLink).map(y=>({...y,from:m+y.start+1,to:m+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate(y.value)).forEach(y=>{ru(y.from,y.to,r.doc).some(v=>v.mark.type===t.type)||o.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!o.steps.length)return o}})}function Yw(t){return new Ee({key:new Le("handleClickLink"),props:{handleClick:(e,n,r)=>{var i,s;if(r.button!==0||!e.editable)return!1;let o=r.target;const a=[];for(;o.nodeName!=="DIV";)a.push(o),o=o.parentNode;if(!a.find(f=>f.nodeName==="A"))return!1;const u=$f(e.state,t.type.name),l=r.target,c=(i=l?.href)!==null&&i!==void 0?i:u.href,d=(s=l?.target)!==null&&s!==void 0?s:u.target;return l&&c?(window.open(c,d),!0):!1}}})}function Jw(t){return new Ee({key:new Le("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:i}=e,{selection:s}=i,{empty:o}=s;if(o)return!1;let a="";r.content.forEach(l=>{a+=l.textContent});const u=ph(a,{defaultProtocol:t.defaultProtocol}).find(l=>l.isLink&&l.value===a);return!a||!u?!1:(t.editor.commands.setMark(t.type,{href:u.href}),!0)}}})}const Zw=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Hc(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!t||t.replace(Zw,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Xw=Bt.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){zc(t);return}zc(t.scheme,t.optionalSlashes)})},onDestroy(){Kw()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!Hc(e,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:t}){return Hc(t.href,this.options.protocols)?["a",Te(this.options.HTMLAttributes,t),0]:["a",Te(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[qn({find:t=>{const e=[];if(t){const{validate:n}=this.options,r=ph(t).filter(i=>i.isLink&&n(i.value));r.length&&r.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(jw({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(Yw({type:this.type})),this.options.linkOnPaste&&t.push(Jw({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),hh=Je.create({name:"doc",topNode:!0,content:"block+"}),Qw=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,eS=Je.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Te(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[Uf({find:Qw,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]}}),tS=Bt.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),nS=/^\s*>\s$/,rS=Je.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Zr({find:nS,type:this.type})]}}),iS=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,sS=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,oS=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,aS=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,uS=Bt.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[gr({find:iS,type:this.type}),gr({find:oS,type:this.type})]},addPasteRules(){return[qn({find:sS,type:this.type}),qn({find:aS,type:this.type})]}}),lS="listItem",qc="textStyle",Vc=/^\s*([-+*])\s$/,cS=Je.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(lS,this.editor.getAttributes(qc)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Zr({find:Vc,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Zr({find:Vc,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(qc),editor:this.editor})),[t]}}),dS=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,fS=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,pS=Bt.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[gr({find:dS,type:this.type})]},addPasteRules(){return[qn({find:fS,type:this.type})]}});function hS(t={}){return new Ee({view(e){return new mS(e,t)}})}class mS{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let s=o=>{this[i](o)};return e.dom.addEventListener(i,s),{name:i,handler:s}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let a=e.nodeBefore,u=e.nodeAfter;if(a||u){let l=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(l){let c=l.getBoundingClientRect(),d=a?c.bottom:c.top;a&&u&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let a=this.editorView.coordsAtPos(this.cursorPos);r={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let s,o;if(!i||i==document.body&&getComputedStyle(i).position=="static")s=-pageXOffset,o=-pageYOffset;else{let a=i.getBoundingClientRect();s=a.left-i.scrollLeft,o=a.top-i.scrollTop}this.element.style.left=r.left-s+"px",this.element.style.top=r.top-o+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,s=typeof i=="function"?i(this.editorView,n,e):i;if(n&&!s){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Od(this.editorView.state.doc,o,this.editorView.dragging.slice);a!=null&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const gS=ke.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[hS(this.options)]}});class ye extends te{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return ye.valid(r)?new ye(r):te.near(r)}content(){return B.empty}eq(e){return e instanceof ye&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ye(e.resolve(n.pos))}getBookmark(){return new Au(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!bS(e)||!yS(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&ye.valid(e))return e;let i=e.pos,s=null;for(let o=e.depth;;o--){let a=e.node(o);if(n>0?e.indexAfter(o)0){s=a.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;i+=n;let u=e.doc.resolve(i);if(ye.valid(u))return u}for(;;){let o=n>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!H.isSelectable(s)){e=e.doc.resolve(i+s.nodeSize*n),r=!1;continue e}break}s=o,i+=n;let a=e.doc.resolve(i);if(ye.valid(a))return a}return null}}}ye.prototype.visible=!1;ye.findFrom=ye.findGapCursorFrom;te.jsonID("gapcursor",ye);class Au{constructor(e){this.pos=e}map(e){return new Au(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ye.valid(n)?new ye(n):te.near(n)}}function bS(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function yS(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function ES(){return new Ee({props:{decorations:SS,createSelectionBetween(t,e,n){return e.pos==n.pos&&ye.valid(n)?new ye(n):null},handleClick:vS,handleKeyDown:xS,handleDOMEvents:{beforeinput:wS}}})}const xS=gf({ArrowLeft:Ri("horiz",-1),ArrowRight:Ri("horiz",1),ArrowUp:Ri("vert",-1),ArrowDown:Ri("vert",1)});function Ri(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,s){let o=r.selection,a=e>0?o.$to:o.$from,u=o.empty;if(o instanceof j){if(!s.endOfTextblock(n)||a.depth==0)return!1;u=!1,a=r.doc.resolve(e>0?a.after():a.before())}let l=ye.findGapCursorFrom(a,e,u);return l?(i&&i(r.tr.setSelection(new ye(l))),!0):!1}}function vS(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!ye.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&H.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ye(r))),!0)}function wS(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ye))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=C.empty;for(let o=r.length-1;o>=0;o--)i=C.from(r[o].createAndFill(null,i));let s=t.state.tr.replace(n.pos,n.pos,new B(i,0,0));return s.setSelection(j.near(s.doc.resolve(n.pos+1))),t.dispatch(s),!1}function SS(t){if(!(t.selection instanceof ye))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",be.create(t.doc,[We.widget(t.selection.head,e,{key:"gapcursor"})])}const _S=ke.create({name:"gapCursor",addProseMirrorPlugins(){return[ES()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=ie(U(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),NS=Je.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Te(this.options.HTMLAttributes,t)]},renderText(){return` -`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:i,storedMarks:s}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:a}=r.extensionManager,u=s||i.$to.parentOffset&&i.$from.marks();return e().insertContent({type:this.name}).command(({tr:l,dispatch:c})=>{if(c&&u&&o){const d=u.filter(f=>a.includes(f.type.name));l.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),TS=Je.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Te(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>ma({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var Fs=200,De=function(){};De.prototype.append=function(e){return e.length?(e=De.from(e),!this.length&&e||e.length=n?De.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};De.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};De.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};De.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(s,o){return i.push(e(s,o))},n,r),i};De.from=function(e){return e instanceof De?e:e&&e.length?new mh(e):De.empty};var mh=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,s){return i==0&&s==this.length?this:new e(this.values.slice(i,s))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,s,o,a){for(var u=s;u=o;u--)if(i(this.values[u],a+u)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Fs)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Fs)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(De);De.empty=new mh([]);var kS=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return ra&&this.right.forEachInner(r,Math.max(i-a,0),Math.min(this.length,s)-a,o+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,s,o){var a=this.left.length;if(i>a&&this.right.forEachInvertedInner(r,i-a,Math.max(s,a)-a,o+a)===!1||s=s?this.right.slice(r-s,i-s):this.left.slice(r,s).append(this.right.slice(0,i-s))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(De);const OS=500;class _t{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,s;n&&(i=this.remapping(r,this.items.length),s=i.maps.length);let o=e.tr,a,u,l=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),s=i.maps.length),s--,c.push(d);return}if(i){c.push(new Mt(d.map));let p=d.step.map(i.slice(s)),h;p&&o.maybeStep(p).doc&&(h=o.mapping.maps[o.mapping.maps.length-1],l.push(new Mt(h,void 0,void 0,l.length+c.length))),s--,h&&i.appendMap(h,s)}else o.maybeStep(d.step);if(d.selection)return a=i?d.selection.map(i.slice(s)):d.selection,u=new _t(this.items.slice(0,r).append(c.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:o,selection:a}}addTransform(e,n,r,i){let s=[],o=this.eventCount,a=this.items,u=!i&&a.length?a.get(a.length-1):null;for(let c=0;cCS&&(a=AS(a,l),o-=l),new _t(a.append(s),o)}remapping(e,n){let r=new lr;return this.items.forEach((i,s)=>{let o=i.mirrorOffset!=null&&s-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new _t(this.items.append(e.map(n=>new Mt(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),s=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(f=>{f.selection&&a--},i);let u=n;this.items.forEach(f=>{let p=s.getMirror(--u);if(p==null)return;o=Math.min(o,p);let h=s.maps[p];if(f.step){let m=e.steps[p].invert(e.docs[p]),g=f.selection&&f.selection.map(s.slice(u+1,p));g&&a++,r.push(new Mt(h,m,g))}else r.push(new Mt(h))},i);let l=[];for(let f=n;fOS&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],s=0;return this.items.forEach((o,a)=>{if(a>=e)i.push(o),o.selection&&s++;else if(o.step){let u=o.step.map(n.slice(r)),l=u&&u.getMap();if(r--,l&&n.appendMap(l,r),u){let c=o.selection&&o.selection.map(n.slice(r));c&&s++;let d=new Mt(l.invert(),u,c),f,p=i.length-1;(f=i.length&&i[p].merge(d))?i[p]=f:i.push(d)}}else o.map&&r--},this.items.length,0),new _t(De.from(i.reverse()),s)}}_t.empty=new _t(De.empty,0);function AS(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class Mt{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Mt(n.getMap().invert(),n,this.selection)}}}class en{constructor(e,n,r,i,s){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=s}}const CS=20;function MS(t,e,n,r){let i=n.getMeta($n),s;if(i)return i.historyState;n.getMeta(IS)&&(t=new en(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta($n))return o.getMeta($n).redo?new en(t.done.addTransform(n,void 0,r,Ui(e)),t.undone,Kc(n.mapping.maps),t.prevTime,t.prevComposition):new en(t.done,t.undone.addTransform(n,void 0,r,Ui(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),u=t.prevTime==0||!o&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!RS(n,t.prevRanges)),l=o?Vo(t.prevRanges,n.mapping):Kc(n.mapping.maps);return new en(t.done.addTransform(n,u?e.selection.getBookmark():void 0,r,Ui(e)),_t.empty,l,n.time,a??t.prevComposition)}else return(s=n.getMeta("rebased"))?new en(t.done.rebased(n,s),t.undone.rebased(n,s),Vo(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new en(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Vo(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function RS(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let s=0;s=e[s]&&(n=!0)}),n}function Kc(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,s,o)=>e.push(s,o));return e}function Vo(t,e){if(!t)return null;let n=[];for(let r=0;r{let i=$n.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let s=DS(i,n,t);s&&r(e?s.scrollIntoView():s)}return!0}}const bh=gh(!1,!0),yh=gh(!0,!0),PS=ke.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>bh(t,e),redo:()=>({state:t,dispatch:e})=>yh(t,e)}},addProseMirrorPlugins(){return[LS(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),BS=Je.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Te(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{selection:n}=e,{$from:r,$to:i}=n,s=t();return r.parentOffset===0?s.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):Ff(n)?s.insertContentAt(i.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:o,dispatch:a})=>{var u;if(a){const{$to:l}=o.selection,c=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(j.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(H.create(o.doc,l.pos)):o.setSelection(j.create(o.doc,l.pos));else{const d=(u=l.parent.type.contentMatch.defaultType)===null||u===void 0?void 0:u.create();d&&(o.insert(c,d),o.setSelection(j.create(o.doc,c+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Uf({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),$S=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,FS=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,US=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,zS=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,HS=Bt.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[gr({find:$S,type:this.type}),gr({find:US,type:this.type})]},addPasteRules(){return[qn({find:FS,type:this.type}),qn({find:zS,type:this.type})]}}),qS=Je.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Te(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),VS="listItem",Gc="textStyle",jc=/^(\d+)\.\s$/,KS=Je.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Te(this.options.HTMLAttributes,n),0]:["ol",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(VS,this.editor.getAttributes(Gc)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Zr({find:jc,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Zr({find:jc,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Gc)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),WS=Je.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),GS=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,jS=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,YS=Bt.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[gr({find:GS,type:this.type})]},addPasteRules(){return[qn({find:jS,type:this.type})]}}),JS=Je.create({name:"text",group:"inline"}),ZS=ke.create({name:"starterKit",addExtensions(){var t,e,n,r,i,s,o,a,u,l,c,d,f,p,h,m,g,y;const v=[];return this.options.bold!==!1&&v.push(uS.configure((t=this.options)===null||t===void 0?void 0:t.bold)),this.options.blockquote!==!1&&v.push(rS.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bulletList!==!1&&v.push(cS.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&v.push(pS.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&v.push(bp.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&v.push(hh.configure((s=this.options)===null||s===void 0?void 0:s.document)),this.options.dropcursor!==!1&&v.push(gS.configure((o=this.options)===null||o===void 0?void 0:o.dropcursor)),this.options.gapcursor!==!1&&v.push(_S.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&v.push(NS.configure((u=this.options)===null||u===void 0?void 0:u.hardBreak)),this.options.heading!==!1&&v.push(TS.configure((l=this.options)===null||l===void 0?void 0:l.heading)),this.options.history!==!1&&v.push(PS.configure((c=this.options)===null||c===void 0?void 0:c.history)),this.options.horizontalRule!==!1&&v.push(BS.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&v.push(HS.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&v.push(qS.configure((p=this.options)===null||p===void 0?void 0:p.listItem)),this.options.orderedList!==!1&&v.push(KS.configure((h=this.options)===null||h===void 0?void 0:h.orderedList)),this.options.paragraph!==!1&&v.push(WS.configure((m=this.options)===null||m===void 0?void 0:m.paragraph)),this.options.strike!==!1&&v.push(YS.configure((g=this.options)===null||g===void 0?void 0:g.strike)),this.options.text!==!1&&v.push(JS.configure((y=this.options)===null||y===void 0?void 0:y.text)),v}}),XS=ke.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ee({key:new Le("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,i=[];if(!n)return null;const s=this.editor.isEmpty;return t.descendants((o,a)=>{const u=r>=a&&r<=a+o.nodeSize,l=!o.isLeaf&&Qs(o);if((u||!this.options.showOnlyCurrent)&&l){const c=[this.options.emptyNodeClass];s&&c.push(this.options.emptyEditorClass);const d=We.node(a,a+o.nodeSize,{class:c.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:a,hasAnchor:u}):this.options.placeholder});i.push(d)}return this.options.includeChildren}),be.create(t,i)}}})]}}),QS=()=>XS.configure({placeholder:({node:t})=>t.type.name==="heading"?"What’s the title?":t.type.name==="codeBlock"?"":"Press / to continue"}),e_=()=>[hh.extend({content:"heading block*"}),ZS.configure({document:!1,codeBlock:!1}),eS,Xw.configure({autolink:!1}),tS,QS()],t_=(t,e)=>{const n=Se("div",{className:"ud-root"});t?.appendChild(n);const r=[...e_(),Nw()],i=[$1,...r,c2(n,()=>o),s2()],s=e===""?"":wy(JSON.parse(e),r),o=new R1({element:n,extensions:i,content:s,editorProps:{...Ow(()=>o)}});return o};var Eh={exports:{}};(function(t,e){(function(n,r,i){t.exports=i(),t.exports.default=i()})("slugify",Rh,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(s,o){if(typeof s!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var a=r[o.locale]||{},u=o.replacement===void 0?"-":o.replacement,l=o.trim===void 0?!0:o.trim,c=s.normalize().split("").reduce(function(d,f){var p=a[f];return p===void 0&&(p=n[f]),p===void 0&&(p=f),p===u&&(p=" "),d+p.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),l&&(c=c.trim()),c=c.replace(/\s+/g,u),o.lower&&(c=c.toLowerCase()),c}return i.extend=function(s){Object.assign(n,s)},i})})(Eh);var n_=Eh.exports;const xh=ed(n_),vh="__ud_title",wh="__ud_tags",Sh="__ud_create_time",_h="__ud_update_time",Nh="__ud_draft",r_=t=>({title:t[vh],tags:t[wh],updateTime:t[_h],createTime:t[Sh],draft:!!t[Nh]}),i_=t=>({[vh]:t.title,[wh]:t.tags,[_h]:t.updateTime,[Sh]:t.createTime,[Nh]:!!t.draft}),s_=t=>t.content?.find(e=>e.type==="heading")?.content?.map(e=>e.text).join(""),Th=t=>xh(`${Date.now().toString(36)}-${t}`).replace(/%/g,"-"),o_=t=>xh(`${t}`).replace(/%/g,"-"),a_="user_github",u_=()=>{if(typeof window>"u")return;const t=localStorage.getItem(a_)??void 0;return t?JSON.parse(t):void 0},{repo:or,login:l_}=Ih.github,kh=()=>{const t=u_()?.token;return new Dh({auth:t})},c_=async t=>{const e=t.replace(/\/$/,""),n=`posts/${e}.json`,r=kh(),{data:i}=await r.request("GET /repos/{owner}/{repo}/contents/{path}",{owner:l_,repo:or,path:n}),s=decodeURIComponent(escape(window.atob(i.content.replace(/\s/g,"")))),o=JSON.parse(s),a=r_(o);return{content:s,...a,id:e,path:n}};function d_(t){return new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>{const i=r.result.split(",")[1];e(i)},r.onerror=i=>n(i)})}const f_=async(t,e,n)=>{const r=t.replace(/\/$/,""),i=kh(),{data:s}=await i.request({url:"/user"}),o=s.login,a=await i.request("GET /repos/{owner}/{repo}/git/ref/{ref}",{owner:o,ref:"heads/main",repo:or,headers:{"X-GitHub-Api-Version":"2022-11-28"}});console.log(a,"main");const u=i_({...e,updateTime:Date.now()}),l=JSON.stringify({...u,...JSON.parse(e.content)}),c=new File([new Blob([l],{type:"application/json"})],r.replace(/^\//,"")),d=await Promise.all([...n.map(({file:m})=>({path:`public/post-assets/${m.name}`,file:m})),{path:`posts/${r}.json`,file:c}].map(async({file:m,path:g})=>{const y=typeof m=="string"?btoa(m):await d_(m),v=await i.request("POST /repos/{owner}/{repo}/git/blobs",{owner:o,repo:or,content:y,encoding:"base64"});return console.log(v,"blob"),{path:g,sha:v.data.sha,mode:"100644",type:"blob"}})),f=await i.request("POST /repos/{owner}/{repo}/git/trees",{owner:o,repo:or,tree:d,base_tree:a.data.object.sha});console.log(f,"new tree");const p=await i.request("POST /repos/{owner}/{repo}/git/commits",{owner:o,repo:or,message:"update by urodele",tree:f.data.sha,parents:[a.data.object.sha]});console.log(p,"commit");const h=await i.request("PATCH /repos/{owner}/{repo}/git/refs/{ref}",{owner:o,repo:or,ref:a.data.ref.replace(/^refs\//,""),sha:p.data.sha});console.log(h,"res")},p_=Object.freeze(Object.defineProperty({__proto__:null,readPageByPath:c_,writePage:f_},Symbol.toStringTag,{value:"Module"})),h_=p_,Oh=(t,e)=>{e(t);for(const n of t.content??[])e(n)},m_=(t,e)=>{const n=[];return t.filter(r=>!n.includes(r[e]))},g_=async t=>{const e=t.getJSON(),n=[];t.state.doc.content.forEach(s=>{s.type.name==="image"&&s.attrs.src.startsWith("blob:")&&n.push({url:s.attrs.src,name:s.attrs.alt})});const r=m_(n,"url");return{assets:await Promise.all(r.map(async s=>{const o=await(await fetch(s.url)).blob(),a=new File([o],Th(s.name));return{...s,file:a}})),editorJSON:e}},b_=async(t,e)=>{const n=await td(),r=[...new Set(n.map(a=>a.tags).flat())],i=[...e],s=[],o=()=>{const a=Cr(),u=Cr(),l=g=>fe("div",{key:g,class:"rounded px-3 py-1 cursor-pointer relative group tag"},fe("button",{class:"opacity-0 transition-delay-[0.25s] group-hover:opacity-100 absolute bg-red top-0 right-0 w-3 h-3 rounded-full flex items-center justify-center",onClick:()=>h(g)},fe("div",{class:"i-ri:close-line text-white"})),"#",g),c=()=>i.map(l),d=Cr(),f=()=>r.filter(y=>!i.includes(y)).map(y=>fe("button",{key:y,class:"text-button text-gray hover:text-black",onClick:()=>m(y)},"#",y)),p=Cr(),h=g=>{i.splice(i.findIndex(y=>y===g),1),u.current?.replaceChildren(...c()),d.current?.replaceChildren(...f()),s.forEach(y=>y())},m=g=>{const y=g??p.current.value;y&&(i.includes(y)||(p.current.value&&(p.current.value="",a.current.blur()),i.push(y),u.current?.replaceChildren(...c()),d.current?.replaceChildren(...f()),s.forEach(v=>v())))};return fe("div",{ref:a,class:"tag-editor flex text-sm px-4 gap-2 w-full max-w-[720px]"},fe("div",{ref:u,class:"flex gap-2"},c()),fe("div",{class:"relative add-tag"},fe("button",{class:"rounded text-gray hover:bg-gray-200 px-2 py-1 cursor-pointer"},"#Add a Tag"),fe("div",{class:"absolute z-[50] tag-selector"},fe("div",{class:"flex flex-col bg-white shadow-md rounded p-2 gap-2 text-sm"},fe("div",{class:"flex items-center justify-center gap-2"},fe("input",{ref:p,type:"text",class:"border px-2 py-1 rounded border-blue w-[180px] text-xs",placeholder:"Create new Tag"}),fe("button",{class:"text-button text-blue",onClick:()=>m()},"Add")),fe("div",{ref:d,class:"flex flex-col"},f())))))};return t.appendChild(o()),{getValue:()=>i,onChange:a=>(s.push(a),()=>s.splice(s.findIndex(u=>u===a),1))}};function y_(t,e=3e3){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>t(...r),e)}}const Aa=(t,e)=>e.some(n=>t instanceof n);let Yc,Jc;function E_(){return Yc||(Yc=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function x_(){return Jc||(Jc=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ca=new WeakMap,Wo=new WeakMap,oo=new WeakMap;function v_(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{n(Fn(t.result)),i()},o=()=>{r(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return oo.set(e,t),e}function w_(t){if(Ca.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{n(),i()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});Ca.set(t,e)}let Ma={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Ca.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Fn(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Ah(t){Ma=t(Ma)}function S_(t){return x_().includes(t)?function(...e){return t.apply(Ra(this),e),Fn(this.request)}:function(...e){return Fn(t.apply(Ra(this),e))}}function __(t){return typeof t=="function"?S_(t):(t instanceof IDBTransaction&&w_(t),Aa(t,E_())?new Proxy(t,Ma):t)}function Fn(t){if(t instanceof IDBRequest)return v_(t);if(Wo.has(t))return Wo.get(t);const e=__(t);return e!==t&&(Wo.set(t,e),oo.set(e,t)),e}const Ra=t=>oo.get(t);function N_(t,e,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=Fn(o);return r&&o.addEventListener("upgradeneeded",u=>{r(Fn(o.result),u.oldVersion,u.newVersion,Fn(o.transaction),u)}),n&&o.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),a.then(u=>{s&&u.addEventListener("close",()=>s()),i&&u.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const T_=["get","getKey","getAll","getAllKeys","count"],k_=["put","add","delete","clear"],Go=new Map;function Zc(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Go.get(e))return Go.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=k_.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||T_.includes(n)))return;const s=async function(o,...a){const u=this.transaction(o,i?"readwrite":"readonly");let l=u.store;return r&&(l=l.index(a.shift())),(await Promise.all([l[n](...a),i&&u.done]))[0]};return Go.set(e,s),s}Ah(t=>({...t,get:(e,n,r)=>Zc(e,n)||t.get(e,n,r),has:(e,n)=>!!Zc(e,n)||t.has(e,n)}));const O_=["continue","continuePrimaryKey","advance"],Xc={},Da=new WeakMap,Ch=new WeakMap,A_={get(t,e){if(!O_.includes(e))return t[e];let n=Xc[e];return n||(n=Xc[e]=function(...r){Da.set(this,Ch.get(this)[e](...r))}),n}};async function*C_(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,A_);for(Ch.set(n,e),oo.set(n,Ra(e));e;)yield n,e=await(Da.get(n)||e.continue()),Da.delete(n)}function Qc(t,e){return e===Symbol.asyncIterator&&Aa(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Aa(t,[IDBIndex,IDBObjectStore])}Ah(t=>({...t,get(e,n,r){return Qc(e,n)?C_:t.get(e,n,r)},has(e,n){return Qc(e,n)||t.has(e,n)}}));const M_="editor-saver",Jt="history",jo="new",R_=()=>{const e=(async()=>({db:await N_(M_,1,{upgrade(o){o.objectStoreNames.contains(Jt)||o.createObjectStore(Jt)}})}))();return{save:async(s,o=jo)=>{const{db:a}=await e,u=a.transaction(Jt,"readwrite");await u.objectStore(Jt).put(s,o),await u.done},read:async(s=jo)=>{const{db:o}=await e;return await o.transaction(Jt,"readonly").objectStore(Jt).get(s)},clean:async(s=jo)=>{const{db:o}=await e;await o.transaction(Jt,"readwrite").objectStore(Jt).delete(s)}}},{readPageByPath:D_,writePage:I_}=h_,L_=async(t,e)=>{const n=document.querySelector(t),r=document.querySelector(e);if(!n||!r)return;const i=new URL(location.href),s=i.searchParams.has("new"),o=i.searchParams.get("path")??void 0,a=await td(),u=R_(),{editor:l,tagEditor:c,initial:d}=await(async()=>{const m=await u.read(o),{data:g}=m?await P_(m):{},y=await(async()=>{if(g)return g;if(o)return D_(o)})(),v=await b_(n,y?.tags??[]),_=t_(n,y?.content??"");return{tagEditor:v,editor:_,initial:y}})();n.removeAttribute("data-modal-loading");const f=async()=>{const m=l.getJSON(),{assets:g}=await g_(l),y=c.getValue(),v=s_(m)??"";return{path:s?a.some(b=>b.title===v)?Th(v):o_(v):o,content:m,data:{content:JSON.stringify(m),title:v,tags:y,createTime:d?.createTime??Date.now()},assets:g}},p=()=>{const[m,g]=Ph({disable:!1,"data-loading":!1}),y=async(_=!1)=>{g({disable:!0,"data-loading":!0});try{const{path:b,data:O,assets:x,content:R}=await f();Oh(R,P=>{if(P.type==="image"){const k=x.find($=>$.url===P.attrs?.src);k&&P.attrs&&(P.attrs.src=`/post-assets/${k.file.name}`)}}),await I_(b,{...O,draft:_},x)}finally{g({disable:!1,"data-loading":!1})}};return fe("div",{class:"group relative"},fe("button",{ref:m,class:"buttoned bg-blue-200",onClick:()=>y()},fe("div",null,"Publish"),fe("div",{class:"i-ri:arrow-down-s-fill"})),fe("div",{class:"absolute top-full pt-1 transition-all transition-delay-[0.2s] whitespace-nowrap opacity-0 translate-y--2 pointer-events-none group-hover:opacity-100 group-hover:translate-y-0 group-hover:pointer-events-auto"},fe("button",{class:"buttoned bg-yellow-200",onClick:()=>y(!0)},"Save as draft")))},h=()=>{const m=Cr();let g=!0;const y=x=>{g=x,m.current.replaceChildren(O())},v=y_(async()=>{const{data:x,assets:R,content:P}=await f();await u.save({data:{...x,content:void 0},assets:R,content:P},o),y(!0)}),_=async()=>{await u.clean(o),location.reload()},b=()=>{y(!1),v()};l.on("update",b),c.onChange(b);const O=()=>fe(Lh,null,fe("button",{class:["text-button",g?"text-green-500":""].join(" ")},fe("div",{class:[g?"i-material-symbols:sync-saved-locally-outline-rounded":"i-svg-spinners:ring-resize"].join(" ")})),fe("div",{class:"absolute right-0 z-[50] local-save-tooltip bg-white flex flex-col justify-center text-xs w-[200px] shadow rounded gap-2 p-2"},g?fe("div",{class:"text-center text-green-500"},"Changes saved"):fe("div",{class:"text-center"},"Saving Changes to local"),fe("button",{class:"buttoned bg-red text-xs",onClick:_},"Clear"),fe("div",{class:"text-xs text-red text-center"},"saved doc will be cleared!")));return fe("div",{ref:m,class:"relative local-save mr-6 text-sm"},O())};r.appendChild(h()),r.appendChild(p())},P_=async t=>{const{data:e,assets:n,content:r}=t;return Oh(r,i=>{if(i.type==="image"){const s=n.find(o=>o.url===i.attrs?.src);if(s&&i.attrs){const o=URL.createObjectURL(s.file);i.attrs.src=o}}}),e.content=JSON.stringify(r),{data:e,assets:n,content:r}};L_("#editor","#editor-operarions"); +3. "-" cannot repeat`);ge.customSchemes.push([t,e])}function Kw(){ge.scanner=Pw(ge.customSchemes);for(let t=0;t{const i=e.some(l=>l.docChanged)&&!n.doc.eq(r.doc),s=e.some(l=>l.getMeta("preventAutolink"));if(!i||s)return;const{tr:o}=r,a=qb(n.doc,[...e]);if(Qb(a).forEach(({newRange:l})=>{const c=Kb(r.doc,l,p=>p.isTextblock);let d,f;if(c.length>1?(d=c[0],f=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):c.length&&r.doc.textBetween(l.from,l.to," "," ").endsWith(" ")&&(d=c[0],f=r.doc.textBetween(d.pos,l.to,void 0," ")),d&&f){const p=f.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const h=p[p.length-1],m=d.pos+f.lastIndexOf(h);if(!h)return!1;const g=fh(h).map(y=>y.toObject(t.defaultProtocol));if(!Ww(g))return!1;g.filter(y=>y.isLink).map(y=>({...y,from:m+y.start+1,to:m+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate(y.value)).forEach(y=>{ru(y.from,y.to,r.doc).some(v=>v.mark.type===t.type)||o.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!o.steps.length)return o}})}function jw(t){return new Ee({key:new Le("handleClickLink"),props:{handleClick:(e,n,r)=>{var i,s;if(r.button!==0||!e.editable)return!1;let o=r.target;const a=[];for(;o.nodeName!=="DIV";)a.push(o),o=o.parentNode;if(!a.find(f=>f.nodeName==="A"))return!1;const u=$f(e.state,t.type.name),l=r.target,c=(i=l?.href)!==null&&i!==void 0?i:u.href,d=(s=l?.target)!==null&&s!==void 0?s:u.target;return l&&c?(window.open(c,d),!0):!1}}})}function Yw(t){return new Ee({key:new Le("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:i}=e,{selection:s}=i,{empty:o}=s;if(o)return!1;let a="";r.content.forEach(l=>{a+=l.textContent});const u=ph(a,{defaultProtocol:t.defaultProtocol}).find(l=>l.isLink&&l.value===a);return!a||!u?!1:(t.editor.commands.setMark(t.type,{href:u.href}),!0)}}})}const Jw=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Hc(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const i=typeof r=="string"?r:r.scheme;i&&n.push(i)}),!t||t.replace(Jw,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Zw=Bt.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){zc(t);return}zc(t.scheme,t.optionalSlashes)})},onDestroy(){Vw()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!Hc(e,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:t}){return Hc(t.href,this.options.protocols)?["a",Te(this.options.HTMLAttributes,t),0]:["a",Te(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[qn({find:t=>{const e=[];if(t){const{validate:n}=this.options,r=ph(t).filter(i=>i.isLink&&n(i.value));r.length&&r.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(Gw({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(jw({type:this.type})),this.options.linkOnPaste&&t.push(Yw({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),hh=Je.create({name:"doc",topNode:!0,content:"block+"}),Xw=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,Qw=Je.create({name:"image",addOptions(){return{inline:!1,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},title:{default:null}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",Te(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[Uf({find:Xw,type:this.type,getAttributes:t=>{const[,,e,n,r]=t;return{src:n,alt:e,title:r}}})]}}),eS=Bt.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),tS=/^\s*>\s$/,nS=Je.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Zr({find:tS,type:this.type})]}}),rS=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,iS=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,sS=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,oS=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,aS=Bt.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[gr({find:rS,type:this.type}),gr({find:sS,type:this.type})]},addPasteRules(){return[qn({find:iS,type:this.type}),qn({find:oS,type:this.type})]}}),uS="listItem",qc="textStyle",Vc=/^\s*([-+*])\s$/,lS=Je.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(uS,this.editor.getAttributes(qc)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Zr({find:Vc,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Zr({find:Vc,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(qc),editor:this.editor})),[t]}}),cS=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,dS=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,fS=Bt.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:t}){return["code",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>({commands:t})=>t.setMark(this.name),toggleCode:()=>({commands:t})=>t.toggleMark(this.name),unsetCode:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[gr({find:cS,type:this.type})]},addPasteRules(){return[qn({find:dS,type:this.type})]}});function pS(t={}){return new Ee({view(e){return new hS(e,t)}})}class hS{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let s=o=>{this[i](o)};return e.dom.addEventListener(i,s),{name:i,handler:s}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let a=e.nodeBefore,u=e.nodeAfter;if(a||u){let l=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(l){let c=l.getBoundingClientRect(),d=a?c.bottom:c.top;a&&u&&(d=(d+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:c.left,right:c.right,top:d-this.width/2,bottom:d+this.width/2}}}}if(!r){let a=this.editorView.coordsAtPos(this.cursorPos);r={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let i=this.editorView.dom.offsetParent;this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let s,o;if(!i||i==document.body&&getComputedStyle(i).position=="static")s=-pageXOffset,o=-pageYOffset;else{let a=i.getBoundingClientRect();s=a.left-i.scrollLeft,o=a.top-i.scrollTop}this.element.style.left=r.left-s+"px",this.element.style.top=r.top-o+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,s=typeof i=="function"?i(this.editorView,n,e):i;if(n&&!s){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Od(this.editorView.state.doc,o,this.editorView.dragging.slice);a!=null&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const mS=ke.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[pS(this.options)]}});class ye extends te{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return ye.valid(r)?new ye(r):te.near(r)}content(){return B.empty}eq(e){return e instanceof ye&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ye(e.resolve(n.pos))}getBookmark(){return new Au(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!gS(e)||!bS(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&ye.valid(e))return e;let i=e.pos,s=null;for(let o=e.depth;;o--){let a=e.node(o);if(n>0?e.indexAfter(o)0){s=a.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;i+=n;let u=e.doc.resolve(i);if(ye.valid(u))return u}for(;;){let o=n>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!H.isSelectable(s)){e=e.doc.resolve(i+s.nodeSize*n),r=!1;continue e}break}s=o,i+=n;let a=e.doc.resolve(i);if(ye.valid(a))return a}return null}}}ye.prototype.visible=!1;ye.findFrom=ye.findGapCursorFrom;te.jsonID("gapcursor",ye);class Au{constructor(e){this.pos=e}map(e){return new Au(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return ye.valid(n)?new ye(n):te.near(n)}}function gS(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function bS(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function yS(){return new Ee({props:{decorations:wS,createSelectionBetween(t,e,n){return e.pos==n.pos&&ye.valid(n)?new ye(n):null},handleClick:xS,handleKeyDown:ES,handleDOMEvents:{beforeinput:vS}}})}const ES=gf({ArrowLeft:Ri("horiz",-1),ArrowRight:Ri("horiz",1),ArrowUp:Ri("vert",-1),ArrowDown:Ri("vert",1)});function Ri(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,s){let o=r.selection,a=e>0?o.$to:o.$from,u=o.empty;if(o instanceof j){if(!s.endOfTextblock(n)||a.depth==0)return!1;u=!1,a=r.doc.resolve(e>0?a.after():a.before())}let l=ye.findGapCursorFrom(a,e,u);return l?(i&&i(r.tr.setSelection(new ye(l))),!0):!1}}function xS(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!ye.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&H.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new ye(r))),!0)}function vS(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof ye))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=C.empty;for(let o=r.length-1;o>=0;o--)i=C.from(r[o].createAndFill(null,i));let s=t.state.tr.replace(n.pos,n.pos,new B(i,0,0));return s.setSelection(j.near(s.doc.resolve(n.pos+1))),t.dispatch(s),!1}function wS(t){if(!(t.selection instanceof ye))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",be.create(t.doc,[We.widget(t.selection.head,e,{key:"gapcursor"})])}const SS=ke.create({name:"gapCursor",addProseMirrorPlugins(){return[yS()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=ie(U(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),_S=Je.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Te(this.options.HTMLAttributes,t)]},renderText(){return` +`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:i,storedMarks:s}=n;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:a}=r.extensionManager,u=s||i.$to.parentOffset&&i.$from.marks();return e().insertContent({type:this.name}).command(({tr:l,dispatch:c})=>{if(c&&u&&o){const d=u.filter(f=>a.includes(f.type.name));l.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),NS=Je.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Te(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>ma({find:new RegExp(`^(#{1,${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var Fs=200,De=function(){};De.prototype.append=function(e){return e.length?(e=De.from(e),!this.length&&e||e.length=n?De.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};De.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};De.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};De.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(s,o){return i.push(e(s,o))},n,r),i};De.from=function(e){return e instanceof De?e:e&&e.length?new mh(e):De.empty};var mh=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,s){return i==0&&s==this.length?this:new e(this.values.slice(i,s))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,s,o,a){for(var u=s;u=o;u--)if(i(this.values[u],a+u)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Fs)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Fs)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(De);De.empty=new mh([]);var TS=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return ra&&this.right.forEachInner(r,Math.max(i-a,0),Math.min(this.length,s)-a,o+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,s,o){var a=this.left.length;if(i>a&&this.right.forEachInvertedInner(r,i-a,Math.max(s,a)-a,o+a)===!1||s=s?this.right.slice(r-s,i-s):this.left.slice(r,s).append(this.right.slice(0,i-s))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(De);const kS=500;class _t{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,s;n&&(i=this.remapping(r,this.items.length),s=i.maps.length);let o=e.tr,a,u,l=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),s=i.maps.length),s--,c.push(d);return}if(i){c.push(new Mt(d.map));let p=d.step.map(i.slice(s)),h;p&&o.maybeStep(p).doc&&(h=o.mapping.maps[o.mapping.maps.length-1],l.push(new Mt(h,void 0,void 0,l.length+c.length))),s--,h&&i.appendMap(h,s)}else o.maybeStep(d.step);if(d.selection)return a=i?d.selection.map(i.slice(s)):d.selection,u=new _t(this.items.slice(0,r).append(c.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:o,selection:a}}addTransform(e,n,r,i){let s=[],o=this.eventCount,a=this.items,u=!i&&a.length?a.get(a.length-1):null;for(let c=0;cAS&&(a=OS(a,l),o-=l),new _t(a.append(s),o)}remapping(e,n){let r=new lr;return this.items.forEach((i,s)=>{let o=i.mirrorOffset!=null&&s-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new _t(this.items.append(e.map(n=>new Mt(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),s=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(f=>{f.selection&&a--},i);let u=n;this.items.forEach(f=>{let p=s.getMirror(--u);if(p==null)return;o=Math.min(o,p);let h=s.maps[p];if(f.step){let m=e.steps[p].invert(e.docs[p]),g=f.selection&&f.selection.map(s.slice(u+1,p));g&&a++,r.push(new Mt(h,m,g))}else r.push(new Mt(h))},i);let l=[];for(let f=n;fkS&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],s=0;return this.items.forEach((o,a)=>{if(a>=e)i.push(o),o.selection&&s++;else if(o.step){let u=o.step.map(n.slice(r)),l=u&&u.getMap();if(r--,l&&n.appendMap(l,r),u){let c=o.selection&&o.selection.map(n.slice(r));c&&s++;let d=new Mt(l.invert(),u,c),f,p=i.length-1;(f=i.length&&i[p].merge(d))?i[p]=f:i.push(d)}}else o.map&&r--},this.items.length,0),new _t(De.from(i.reverse()),s)}}_t.empty=new _t(De.empty,0);function OS(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class Mt{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Mt(n.getMap().invert(),n,this.selection)}}}class en{constructor(e,n,r,i,s){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=s}}const AS=20;function CS(t,e,n,r){let i=n.getMeta($n),s;if(i)return i.historyState;n.getMeta(DS)&&(t=new en(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta($n))return o.getMeta($n).redo?new en(t.done.addTransform(n,void 0,r,Ui(e)),t.undone,Kc(n.mapping.maps),t.prevTime,t.prevComposition):new en(t.done,t.undone.addTransform(n,void 0,r,Ui(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),u=t.prevTime==0||!o&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!MS(n,t.prevRanges)),l=o?Vo(t.prevRanges,n.mapping):Kc(n.mapping.maps);return new en(t.done.addTransform(n,u?e.selection.getBookmark():void 0,r,Ui(e)),_t.empty,l,n.time,a??t.prevComposition)}else return(s=n.getMeta("rebased"))?new en(t.done.rebased(n,s),t.undone.rebased(n,s),Vo(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new en(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Vo(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function MS(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let s=0;s=e[s]&&(n=!0)}),n}function Kc(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,i,s,o)=>e.push(s,o));return e}function Vo(t,e){if(!t)return null;let n=[];for(let r=0;r{let i=$n.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let s=RS(i,n,t);s&&r(e?s.scrollIntoView():s)}return!0}}const bh=gh(!1,!0),yh=gh(!0,!0),LS=ke.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>bh(t,e),redo:()=>({state:t,dispatch:e})=>yh(t,e)}},addProseMirrorPlugins(){return[IS(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),PS=Je.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Te(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{const{selection:n}=e,{$from:r,$to:i}=n,s=t();return r.parentOffset===0?s.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):Ff(n)?s.insertContentAt(i.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(({tr:o,dispatch:a})=>{var u;if(a){const{$to:l}=o.selection,c=l.end();if(l.nodeAfter)l.nodeAfter.isTextblock?o.setSelection(j.create(o.doc,l.pos+1)):l.nodeAfter.isBlock?o.setSelection(H.create(o.doc,l.pos)):o.setSelection(j.create(o.doc,l.pos));else{const d=(u=l.parent.type.contentMatch.defaultType)===null||u===void 0?void 0:u.create();d&&(o.insert(c,d),o.setSelection(j.create(o.doc,c+1)))}o.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Uf({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),BS=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,$S=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,FS=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,US=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,zS=Bt.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[gr({find:BS,type:this.type}),gr({find:FS,type:this.type})]},addPasteRules(){return[qn({find:$S,type:this.type}),qn({find:US,type:this.type})]}}),HS=Je.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Te(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),qS="listItem",Gc="textStyle",jc=/^(\d+)\.\s$/,VS=Je.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Te(this.options.HTMLAttributes,n),0]:["ol",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(qS,this.editor.getAttributes(Gc)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Zr({find:jc,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Zr({find:jc,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Gc)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),KS=Je.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),WS=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,GS=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,jS=Bt.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Te(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[gr({find:WS,type:this.type})]},addPasteRules(){return[qn({find:GS,type:this.type})]}}),YS=Je.create({name:"text",group:"inline"}),JS=ke.create({name:"starterKit",addExtensions(){var t,e,n,r,i,s,o,a,u,l,c,d,f,p,h,m,g,y;const v=[];return this.options.bold!==!1&&v.push(aS.configure((t=this.options)===null||t===void 0?void 0:t.bold)),this.options.blockquote!==!1&&v.push(nS.configure((e=this.options)===null||e===void 0?void 0:e.blockquote)),this.options.bulletList!==!1&&v.push(lS.configure((n=this.options)===null||n===void 0?void 0:n.bulletList)),this.options.code!==!1&&v.push(fS.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&v.push(bp.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&v.push(hh.configure((s=this.options)===null||s===void 0?void 0:s.document)),this.options.dropcursor!==!1&&v.push(mS.configure((o=this.options)===null||o===void 0?void 0:o.dropcursor)),this.options.gapcursor!==!1&&v.push(SS.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&v.push(_S.configure((u=this.options)===null||u===void 0?void 0:u.hardBreak)),this.options.heading!==!1&&v.push(NS.configure((l=this.options)===null||l===void 0?void 0:l.heading)),this.options.history!==!1&&v.push(LS.configure((c=this.options)===null||c===void 0?void 0:c.history)),this.options.horizontalRule!==!1&&v.push(PS.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&v.push(zS.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&v.push(HS.configure((p=this.options)===null||p===void 0?void 0:p.listItem)),this.options.orderedList!==!1&&v.push(VS.configure((h=this.options)===null||h===void 0?void 0:h.orderedList)),this.options.paragraph!==!1&&v.push(KS.configure((m=this.options)===null||m===void 0?void 0:m.paragraph)),this.options.strike!==!1&&v.push(jS.configure((g=this.options)===null||g===void 0?void 0:g.strike)),this.options.text!==!1&&v.push(YS.configure((y=this.options)===null||y===void 0?void 0:y.text)),v}}),ZS=ke.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ee({key:new Le("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,i=[];if(!n)return null;const s=this.editor.isEmpty;return t.descendants((o,a)=>{const u=r>=a&&r<=a+o.nodeSize,l=!o.isLeaf&&Qs(o);if((u||!this.options.showOnlyCurrent)&&l){const c=[this.options.emptyNodeClass];s&&c.push(this.options.emptyEditorClass);const d=We.node(a,a+o.nodeSize,{class:c.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:o,pos:a,hasAnchor:u}):this.options.placeholder});i.push(d)}return this.options.includeChildren}),be.create(t,i)}}})]}}),XS=()=>ZS.configure({placeholder:({node:t})=>t.type.name==="heading"?"What’s the title?":t.type.name==="codeBlock"?"":"Press / to continue"}),QS=()=>[hh.extend({content:"heading block*"}),JS.configure({document:!1,codeBlock:!1}),Qw,Zw.configure({autolink:!1}),eS,XS()],e_=(t,e)=>{const n=Se("div",{className:"ud-root"});t?.appendChild(n);const r=[...QS(),_w()],i=[B1,...r,l2(n,()=>o),i2()],s=e===""?"":vy(JSON.parse(e),r),o=new M1({element:n,extensions:i,content:s,editorProps:{...kw(()=>o)}});return o};var Eh={exports:{}};(function(t,e){(function(n,r,i){t.exports=i(),t.exports.default=i()})("slugify",Rh,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(s,o){if(typeof s!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var a=r[o.locale]||{},u=o.replacement===void 0?"-":o.replacement,l=o.trim===void 0?!0:o.trim,c=s.normalize().split("").reduce(function(d,f){var p=a[f];return p===void 0&&(p=n[f]),p===void 0&&(p=f),p===u&&(p=" "),d+p.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),l&&(c=c.trim()),c=c.replace(/\s+/g,u),o.lower&&(c=c.toLowerCase()),c}return i.extend=function(s){Object.assign(n,s)},i})})(Eh);var t_=Eh.exports;const xh=ed(t_),vh="__ud_title",wh="__ud_tags",Sh="__ud_create_time",_h="__ud_update_time",Nh="__ud_draft",n_=t=>({title:t[vh],tags:t[wh],updateTime:t[_h],createTime:t[Sh],draft:!!t[Nh]}),r_=t=>({[vh]:t.title,[wh]:t.tags,[_h]:t.updateTime,[Sh]:t.createTime,[Nh]:!!t.draft}),i_=t=>t.content?.find(e=>e.type==="heading")?.content?.map(e=>e.text).join(""),Th=t=>xh(`${Date.now().toString(36)}-${t}`).replace(/%/g,"-"),s_=t=>xh(`${t}`).replace(/%/g,"-"),o_="user_github",a_=()=>{if(typeof window>"u")return;const t=localStorage.getItem(o_)??void 0;return t?JSON.parse(t):void 0},{repo:or,login:u_}=Ih.github,kh=()=>{const t=a_()?.token;return new Dh({auth:t})},l_=async t=>{const e=t.replace(/\/$/,""),n=`posts/${e}.json`,r=kh(),{data:i}=await r.request("GET /repos/{owner}/{repo}/contents/{path}",{owner:u_,repo:or,path:n}),s=decodeURIComponent(escape(window.atob(i.content.replace(/\s/g,"")))),o=JSON.parse(s),a=n_(o);return{content:s,...a,id:e,path:n}};function c_(t){return new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>{const i=r.result.split(",")[1];e(i)},r.onerror=i=>n(i)})}const d_=async(t,e,n)=>{const r=t.replace(/\/$/,""),i=kh(),{data:s}=await i.request({url:"/user"}),o=s.login,a=await i.request("GET /repos/{owner}/{repo}/git/ref/{ref}",{owner:o,ref:"heads/main",repo:or,headers:{"X-GitHub-Api-Version":"2022-11-28"}});console.log(a,"main");const u=r_({...e,updateTime:Date.now()}),l=JSON.stringify({...u,...JSON.parse(e.content)}),c=new File([new Blob([l],{type:"application/json"})],r.replace(/^\//,"")),d=await Promise.all([...n.map(({file:m})=>({path:`public/post-assets/${m.name}`,file:m})),{path:`posts/${r}.json`,file:c}].map(async({file:m,path:g})=>{const y=typeof m=="string"?btoa(m):await c_(m),v=await i.request("POST /repos/{owner}/{repo}/git/blobs",{owner:o,repo:or,content:y,encoding:"base64"});return console.log(v,"blob"),{path:g,sha:v.data.sha,mode:"100644",type:"blob"}})),f=await i.request("POST /repos/{owner}/{repo}/git/trees",{owner:o,repo:or,tree:d,base_tree:a.data.object.sha});console.log(f,"new tree");const p=await i.request("POST /repos/{owner}/{repo}/git/commits",{owner:o,repo:or,message:"update by urodele",tree:f.data.sha,parents:[a.data.object.sha]});console.log(p,"commit");const h=await i.request("PATCH /repos/{owner}/{repo}/git/refs/{ref}",{owner:o,repo:or,ref:a.data.ref.replace(/^refs\//,""),sha:p.data.sha});console.log(h,"res")},f_=Object.freeze(Object.defineProperty({__proto__:null,readPageByPath:l_,writePage:d_},Symbol.toStringTag,{value:"Module"})),p_=f_,Oh=(t,e)=>{e(t);for(const n of t.content??[])e(n)},h_=(t,e)=>{const n=[];return t.filter(r=>!n.includes(r[e]))},m_=async t=>{const e=t.getJSON(),n=[];t.state.doc.content.forEach(s=>{s.type.name==="image"&&s.attrs.src.startsWith("blob:")&&n.push({url:s.attrs.src,name:s.attrs.alt})});const r=h_(n,"url");return{assets:await Promise.all(r.map(async s=>{const o=await(await fetch(s.url)).blob(),a=new File([o],Th(s.name));return{...s,file:a}})),editorJSON:e}},g_=async(t,e)=>{const n=await td(),r=[...new Set(n.map(a=>a.tags).flat())],i=[...e],s=[],o=()=>{const a=Cr(),u=Cr(),l=g=>ce("div",{key:g,class:"rounded px-3 py-1 cursor-pointer relative group tag"},ce("button",{class:"opacity-0 transition-delay-[0.25s] group-hover:opacity-100 absolute bg-red top-0 right-0 w-3 h-3 rounded-full flex items-center justify-center",onClick:()=>h(g)},ce("div",{class:"i-ri:close-line text-white"})),"#",g),c=()=>i.map(l),d=Cr(),f=()=>r.filter(y=>!i.includes(y)).map(y=>ce("button",{key:y,class:"text-button text-gray hover:text-text",onClick:()=>m(y)},"#",y)),p=Cr(),h=g=>{i.splice(i.findIndex(y=>y===g),1),u.current?.replaceChildren(...c()),d.current?.replaceChildren(...f()),s.forEach(y=>y())},m=g=>{const y=g??p.current.value;y&&(i.includes(y)||(p.current.value&&(p.current.value="",a.current.blur()),i.push(y),u.current?.replaceChildren(...c()),d.current?.replaceChildren(...f()),s.forEach(v=>v())))};return ce("div",{ref:a,class:"tag-editor flex text-sm px-4 gap-2 w-full max-w-[720px]"},ce("div",{ref:u,class:"flex gap-2"},c()),ce("div",{class:"relative add-tag"},ce("button",{class:"rounded text-gray hover:bg-gray-200 px-2 py-1 cursor-pointer"},"#Add a Tag"),ce("div",{class:"absolute z-[50] tag-selector"},ce("div",{class:"flex flex-col bg-modal shadow-md rounded p-2 gap-2 text-sm"},ce("div",{class:"flex items-center justify-center gap-2"},ce("input",{ref:p,type:"text",class:"border px-2 py-1 rounded outline-none border-blue w-[180px] text-xs bg-transparent",placeholder:"Create new Tag"}),ce("button",{class:"text-button text-blue",onClick:()=>m()},"Add")),ce("div",{ref:d,class:"flex flex-col"},f())))))};return t.appendChild(o()),{getValue:()=>i,onChange:a=>(s.push(a),()=>s.splice(s.findIndex(u=>u===a),1))}};function b_(t,e=3e3){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>t(...r),e)}}const Aa=(t,e)=>e.some(n=>t instanceof n);let Yc,Jc;function y_(){return Yc||(Yc=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function E_(){return Jc||(Jc=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ca=new WeakMap,Wo=new WeakMap,oo=new WeakMap;function x_(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{n(Fn(t.result)),i()},o=()=>{r(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return oo.set(e,t),e}function v_(t){if(Ca.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{n(),i()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});Ca.set(t,e)}let Ma={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Ca.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Fn(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Ah(t){Ma=t(Ma)}function w_(t){return E_().includes(t)?function(...e){return t.apply(Ra(this),e),Fn(this.request)}:function(...e){return Fn(t.apply(Ra(this),e))}}function S_(t){return typeof t=="function"?w_(t):(t instanceof IDBTransaction&&v_(t),Aa(t,y_())?new Proxy(t,Ma):t)}function Fn(t){if(t instanceof IDBRequest)return x_(t);if(Wo.has(t))return Wo.get(t);const e=S_(t);return e!==t&&(Wo.set(t,e),oo.set(e,t)),e}const Ra=t=>oo.get(t);function __(t,e,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=Fn(o);return r&&o.addEventListener("upgradeneeded",u=>{r(Fn(o.result),u.oldVersion,u.newVersion,Fn(o.transaction),u)}),n&&o.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),a.then(u=>{s&&u.addEventListener("close",()=>s()),i&&u.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const N_=["get","getKey","getAll","getAllKeys","count"],T_=["put","add","delete","clear"],Go=new Map;function Zc(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Go.get(e))return Go.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=T_.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||N_.includes(n)))return;const s=async function(o,...a){const u=this.transaction(o,i?"readwrite":"readonly");let l=u.store;return r&&(l=l.index(a.shift())),(await Promise.all([l[n](...a),i&&u.done]))[0]};return Go.set(e,s),s}Ah(t=>({...t,get:(e,n,r)=>Zc(e,n)||t.get(e,n,r),has:(e,n)=>!!Zc(e,n)||t.has(e,n)}));const k_=["continue","continuePrimaryKey","advance"],Xc={},Da=new WeakMap,Ch=new WeakMap,O_={get(t,e){if(!k_.includes(e))return t[e];let n=Xc[e];return n||(n=Xc[e]=function(...r){Da.set(this,Ch.get(this)[e](...r))}),n}};async function*A_(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;const n=new Proxy(e,O_);for(Ch.set(n,e),oo.set(n,Ra(e));e;)yield n,e=await(Da.get(n)||e.continue()),Da.delete(n)}function Qc(t,e){return e===Symbol.asyncIterator&&Aa(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&Aa(t,[IDBIndex,IDBObjectStore])}Ah(t=>({...t,get(e,n,r){return Qc(e,n)?A_:t.get(e,n,r)},has(e,n){return Qc(e,n)||t.has(e,n)}}));const C_="editor-saver",Jt="history",jo="new",M_=()=>{const e=(async()=>({db:await __(C_,1,{upgrade(o){o.objectStoreNames.contains(Jt)||o.createObjectStore(Jt)}})}))();return{save:async(s,o=jo)=>{const{db:a}=await e,u=a.transaction(Jt,"readwrite");await u.objectStore(Jt).put(s,o),await u.done},read:async(s=jo)=>{const{db:o}=await e;return await o.transaction(Jt,"readonly").objectStore(Jt).get(s)},clean:async(s=jo)=>{const{db:o}=await e;await o.transaction(Jt,"readwrite").objectStore(Jt).delete(s)}}},{readPageByPath:R_,writePage:D_}=p_,I_=async(t,e)=>{const n=document.querySelector(t),r=document.querySelector(e);if(!n||!r)return;const i=new URL(location.href),s=i.searchParams.has("new"),o=i.searchParams.get("path")??void 0,a=await td(),u=M_(),{editor:l,tagEditor:c,initial:d}=await(async()=>{const m=await u.read(o),{data:g}=m?await L_(m):{},y=await(async()=>{if(g)return g;if(o)return R_(o)})(),v=await g_(n,y?.tags??[]),_=e_(n,y?.content??"");return{tagEditor:v,editor:_,initial:y}})();n.removeAttribute("data-modal-loading");const f=async()=>{const m=l.getJSON(),{assets:g}=await m_(l),y=c.getValue(),v=i_(m)??"";return{path:s?a.some(b=>b.title===v)?Th(v):s_(v):o,content:m,data:{content:JSON.stringify(m),title:v,tags:y,createTime:d?.createTime??Date.now()},assets:g}},p=()=>{const[m,g]=Lh({disabled:!1,"data-loading":!1},!0),y=async(_=!1)=>{g(b=>(b.blur(),{disabled:!0,"data-loading":!0}));try{const{path:b,data:O,assets:x,content:R}=await f();Oh(R,P=>{if(P.type==="image"){const k=x.find($=>$.url===P.attrs?.src);k&&P.attrs&&(P.attrs.src=`/post-assets/${k.file.name}`)}}),await D_(b,{...O,draft:_},x),s&&location.replace(`/edit?path=${b}`)}finally{g({disabled:!1,"data-loading":!1})}};return ce("div",{class:"group relative",tabIndex:-1},ce("button",{ref:m,class:"buttoned bg-blue-200 dark:bg-blue"},ce("div",{class:"i-ri:send-plane-fill"}),ce("div",{class:"i-ri:arrow-down-s-fill"})),ce("div",{class:`absolute z-[50] top-full right-0 mt-1 transition-all transition-delay-[0.2s] whitespace-nowrap opacity-0 translate-y--2 pointer-events-none group-focus-within:opacity-100 group-focus-within:translate-y-0 group-focus-within:pointer-events-auto + flex flex-col gap-2 p-2 rounded bg-modal shadow text-sm`},ce("button",{ref:m,class:"buttoned bg-blue-200 dark:bg-blue",onClick:()=>y()},ce("div",null,"Publish")),ce("button",{ref:m,class:"buttoned bg-yellow-200 dark:bg-yellow",onClick:()=>y(!0)},"Save as draft")))},h=()=>{const m=Cr();let g=!0;const y=x=>{g=x,m.current.replaceChildren(O())},v=b_(async()=>{const{data:x,assets:R,content:P}=await f();await u.save({data:{...x,content:void 0},assets:R,content:P},o),y(!0)}),_=async()=>{await u.clean(o),location.reload()},b=()=>{y(!1),v()};l.on("update",b),c.onChange(b);const O=()=>ce("div",{class:"group relative",tabIndex:-1},ce("button",{class:["text-button",g?"text-green-500":""].join(" ")},ce("div",{class:[g?"i-ri:check-line":"i-svg-spinners:pulse"].join(" ")})),ce("div",{class:"absolute top-full right-0 gap-2 p-2 mt-1 z-[50] bg-modal flex flex-col justify-center w-[200px] shadow rounded transition-all transition-delay-[0.2s] whitespace-nowrap opacity-0 translate-y--2 pointer-events-none group-focus-within:opacity-100 group-focus-within:translate-y-0 group-focus-within:pointer-events-auto"},g?ce("div",{class:"text-center"},"Changes saved"):ce("div",{class:"text-center"},"Saving Changes to local"),ce("button",{class:"buttoned bg-red text-xs",onClick:_},"Clear"),ce("div",{class:"text-xs text-red text-center"},"saved doc will be cleared!")));return ce("div",{ref:m,class:""},O())};r.appendChild(h()),r.appendChild(p())},L_=async t=>{const{data:e,assets:n,content:r}=t;return Oh(r,i=>{if(i.type==="image"){const s=n.find(o=>o.url===i.attrs?.src);if(s&&i.attrs){const o=URL.createObjectURL(s.file);i.attrs.src=o}}}),e.content=JSON.stringify(r),{data:e,assets:n,content:r}};I_("#editor","#editor-operarions"); diff --git a/_astro/hoisted.xc4L3aOo.js b/_astro/hoisted.xc4L3aOo.js new file mode 100644 index 0000000..ee6a9ae --- /dev/null +++ b/_astro/hoisted.xc4L3aOo.js @@ -0,0 +1 @@ +import{g,c as e}from"./hoisted.DnwpQtlg.js";const u=async(c,d)=>{const t=document.querySelector(c);if(!t)return;const f=t?.getAttribute(d),a=new URL(location.href).searchParams.get("fromTag");if(!a)return;const o=decodeURIComponent(a),r=(await g()).filter(i=>i.tags.includes(o)),l=r.findIndex(i=>i.id===f),n=r[l+1],s=r[l-1];t?.replaceChildren(...[n?e("a",{href:`/post/${n.id}?fromTag=${o}`,class:"flex items-center gap-1 text-blue cursor-pointer flex-[45%]"},e("div",{class:"i-ri:arrow-left-double-line w-5 h-5 flex-shrink-0"}),e("div",null,n.title)):e("div",null),s?e("a",{href:`/post/${s.id}?fromTag=${o}`,class:"flex items-center justify-end gap-1 text-blue cursor-pointer flex-[45%]"},e("div",null,s.title),e("div",{class:"i-ri:arrow-right-double-line w-5 h-5 flex-shrink-0"})):e("div",null)].filter(Boolean))};u(".navigator","data-page-id"); diff --git a/edit/index.html b/edit/index.html index 02c87d6..d044625 100644 --- a/edit/index.html +++ b/edit/index.html @@ -1,5 +1,5 @@ - Editor | Urodele - - -
\ No newline at end of file + + +
\ No newline at end of file diff --git a/index.html b/index.html index 0a9bfb4..9f76c09 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - Welcome to Astro. | Urodele -
+ Welcome to Astro. | Urodele +
Urodele -

Welcome to Urodele

What is urodele? Let's see

\ No newline at end of file diff --git a/post/Urodele/index.html b/post/Urodele/index.html index dcafc1b..82cff47 100644 --- a/post/Urodele/index.html +++ b/post/Urodele/index.html @@ -1,4 +1,4 @@ - Urodele,随时随地 | Urodele - -

Urodele,随时随地

每个程序猿最想做却又最不容易做下去的事,莫过于写博客了。

很多时候心血来潮,想写一篇文章来描述当下的新点子,却总是有着这样那样的掣肘:

写在哪呢?备忘录?不行,没法分享,怎么能算是博客呢?

发到论坛吧,又担心遇到这样那样的审核黑盒,耗费心神。

自己搭个博客系统?服务器的钱从哪里来,域名也是个大问题,建个站费时费力。

当然,可以用万能GitHub Pages,实在不行还要Vercel,CloudFlare,Netlify这些白嫖党网站呢,随便fork一个仓库就可以实现个人站点自由。

没错,可是,它们都有一个最大的问题:

不支持在线编辑

想要写一篇博客,你不得不clone整个仓库,用vscode或者什么其他编辑器写好,然后push上去才能发布,即使使用GitHub来管理文件,自带的web端编辑器也实在说不上好用。没办法,既然选择了白嫖,也不得不接受一些瑕疵。

但是事实真的如此吗?

当有人说这世界上没有一个完美的博客系统时,

我:请看 Urodele

\ No newline at end of file + Urodele,随时随地 | Urodele + +

Urodele,随时随地

每个程序猿最想做却又最不容易做下去的事,莫过于写博客了。

很多时候心血来潮,想写一篇文章来描述当下的新点子,却总是有着这样那样的掣肘:

写在哪呢?备忘录?不行,没法分享,怎么能算是博客呢?

发到论坛吧,又担心遇到这样那样的审核黑盒,耗费心神。

自己搭个博客系统?服务器的钱从哪里来,域名也是个大问题,建个站费时费力。

当然,可以用万能GitHub Pages,实在不行还要Vercel,CloudFlare,Netlify这些白嫖党网站呢,随便fork一个仓库就可以实现个人站点自由。

没错,可是,它们都有一个最大的问题:

不支持在线编辑

想要写一篇博客,你不得不clone整个仓库,用vscode或者什么其他编辑器写好,然后push上去才能发布,即使使用GitHub来管理文件,自带的web端编辑器也实在说不上好用。没办法,既然选择了白嫖,也不得不接受一些瑕疵。

但是事实真的如此吗?

当有人说这世界上没有一个完美的博客系统时,

我:请看 Urodele

\ No newline at end of file diff --git a/post/Welcome-to-Urodele/index.html b/post/Welcome-to-Urodele/index.html index f249e00..d4b1dea 100644 --- a/post/Welcome-to-Urodele/index.html +++ b/post/Welcome-to-Urodele/index.html @@ -1,6 +1,6 @@ - Welcome to Urodele | Urodele - -
+ Welcome to Urodele | Urodele + +

Welcome to Urodele

What is urodele? Let's see

It is a fully-static Blog system based on Github Pages, you can create, share, and edit any post you wrote anywhere, without worrying about server or any other problems, just fork it on your Github, and it just works!

you can type any rich-text you want, more powerful than markdown!

Much more powerful than markdown

javascript
const code = "javascript";
-// also support code block

and even static local images, without server! urodele can magicly make it alright!

image.png

Hurry up and join Urodele!

\ No newline at end of file +// also support code block

and even static local images, without server! urodele can magicly make it alright!

image.png

Hurry up and join Urodele!

\ No newline at end of file diff --git a/tag/Urodele/index.html b/tag/Urodele/index.html index aed73b4..b7f6a5f 100644 --- a/tag/Urodele/index.html +++ b/tag/Urodele/index.html @@ -1,2 +1,2 @@ - Tag | Urodele | Urodele -
\ No newline at end of file + Tag | Urodele | Urodele +
\ No newline at end of file diff --git a/tag/Welcome/index.html b/tag/Welcome/index.html index e631da9..96cdf97 100644 --- a/tag/Welcome/index.html +++ b/tag/Welcome/index.html @@ -1,2 +1,2 @@ - Tag | Welcome | Urodele -
\ No newline at end of file + Tag | Welcome | Urodele +
\ No newline at end of file diff --git a/tag/index.html b/tag/index.html index 1f7e021..6a92018 100644 --- a/tag/index.html +++ b/tag/index.html @@ -1,4 +1,4 @@ - Tags | Urodele -