@loicngr/kobo 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/db/migrations.js +13 -0
- package/dist/server/db/schema.js +8 -0
- package/dist/server/index.js +3 -1
- package/dist/server/routes/workspaces.js +45 -0
- package/dist/server/services/agent/orchestrator.js +18 -0
- package/dist/server/services/pr-watcher-service.js +14 -0
- package/dist/server/services/wakeup-service.js +154 -0
- package/dist/server/services/workspace-service.js +7 -0
- package/package.json +1 -1
- package/src/client/dist/spa/assets/{ActivityFeed-BmGNYNux.js → ActivityFeed-Bn9tpyLw.js} +1 -1
- package/src/client/dist/spa/assets/{CreatePage-BC4P1Xq2.js → CreatePage-DDPmb3I-.js} +1 -1
- package/src/client/dist/spa/assets/{DiffViewer-C6d1h3-o.js → DiffViewer-CM3g7W7U.js} +2 -2
- package/src/client/dist/spa/assets/{HealthPage-usVzGjv-.js → HealthPage-BNv_dnMz.js} +1 -1
- package/src/client/dist/spa/assets/{MainLayout-BAimmdFy.css → MainLayout-BeKCjOA2.css} +1 -1
- package/src/client/dist/spa/assets/{MainLayout-DcltT6j8.js → MainLayout-NzuypipH.js} +16 -16
- package/src/client/dist/spa/assets/{SearchPage-DqVwM-Nw.js → SearchPage-B3m_OWli.js} +1 -1
- package/src/client/dist/spa/assets/{SettingsPage-BKKAIJXH.js → SettingsPage-CpQm15XA.js} +1 -1
- package/src/client/dist/spa/assets/WorkspacePage-BQzk5qfr.js +4 -0
- package/src/client/dist/spa/assets/{WorkspacePage-BIquds-p.css → WorkspacePage-CM676R3B.css} +1 -1
- package/src/client/dist/spa/assets/{build-path-tree-BaiH1Val.js → build-path-tree-DOPXkGhj.js} +1 -1
- package/src/client/dist/spa/assets/{cssMode-DV77SXAp.js → cssMode-BPObkLMQ.js} +1 -1
- package/src/client/dist/spa/assets/{documents-DLpLMq-0.js → documents-DMvdjtPf.js} +1 -1
- package/src/client/dist/spa/assets/{editor.api-BGhylbsn.js → editor.api-BpCtstKS.js} +1 -1
- package/src/client/dist/spa/assets/{editor.main-qZAJW6DY.js → editor.main-C2h6FfOt.js} +3 -3
- package/src/client/dist/spa/assets/{freemarker2-BKAXCv8N.js → freemarker2-DUmHGv4C.js} +1 -1
- package/src/client/dist/spa/assets/{handlebars-v0nKPEWi.js → handlebars-BU6pjzPg.js} +1 -1
- package/src/client/dist/spa/assets/{html-BRupIzA4.js → html-A5-15bWl.js} +1 -1
- package/src/client/dist/spa/assets/{htmlMode-BihW-P2O.js → htmlMode-C3KkomG3.js} +1 -1
- package/src/client/dist/spa/assets/i18n-CIduhxS0.js +1 -0
- package/src/client/dist/spa/assets/index-QcUb2Iwh.js +2 -0
- package/src/client/dist/spa/assets/{javascript-BJDZ_NcB.js → javascript-ggaOKiy5.js} +1 -1
- package/src/client/dist/spa/assets/{jsonMode-C9JdqFNv.js → jsonMode-Bk-QMPGJ.js} +1 -1
- package/src/client/dist/spa/assets/{liquid-Lk-oZkkL.js → liquid-CJdzn-JB.js} +1 -1
- package/src/client/dist/spa/assets/{mdx-DXTW2dI0.js → mdx-D5wRO-st.js} +1 -1
- package/src/client/dist/spa/assets/{models-D_Rq_B4d.js → models-CwWSex3X.js} +1 -1
- package/src/client/dist/spa/assets/{monaco.contribution-sDg_eF3E.js → monaco.contribution-CPqJifAu.js} +2 -2
- package/src/client/dist/spa/assets/{python-DWz3NVjv.js → python-DHI9rQDm.js} +1 -1
- package/src/client/dist/spa/assets/{razor-BwkYCkDS.js → razor-CzQWNzhW.js} +1 -1
- package/src/client/dist/spa/assets/{tsMode-C0izvBnL.js → tsMode-DPkpdkNr.js} +1 -1
- package/src/client/dist/spa/assets/{typescript-CKsF3o2F.js → typescript-Dgm0x_-O.js} +1 -1
- package/src/client/dist/spa/assets/{xml-D2KHAqfG.js → xml-BeXyffrj.js} +1 -1
- package/src/client/dist/spa/assets/{yaml-Bh60Z-Sr.js → yaml-D4UE_1wU.js} +1 -1
- package/src/client/dist/spa/index.html +1 -1
- package/src/client/dist/spa/assets/WorkspacePage-B-iEkrN1.js +0 -4
- package/src/client/dist/spa/assets/i18n-B4u2URrK.js +0 -1
- package/src/client/dist/spa/assets/index-CDTpNA2L.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as e}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{i as t}from"./use-id-BmXMngYX.js";import{y as n}from"./index-CDTpNA2L.js";var{entries:r,setPrototypeOf:i,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object,{freeze:c,seal:l,create:u}=Object,{apply:d,construct:f}=typeof Reflect<`u`&&Reflect;c||=function(e){return e},l||=function(e){return e},d||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},f||=function(e){return new e(...[...arguments].slice(1))};var p=_(Array.prototype.forEach),m=_(Array.prototype.lastIndexOf),ee=_(Array.prototype.pop),te=_(Array.prototype.push),ne=_(Array.prototype.splice),re=_(String.prototype.toLowerCase),ie=_(String.prototype.toString),ae=_(String.prototype.match),oe=_(String.prototype.replace),se=_(String.prototype.indexOf),ce=_(String.prototype.trim),h=_(Object.prototype.hasOwnProperty),g=_(RegExp.prototype.test),le=ue(TypeError);function _(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return d(e,t,n)}}function ue(e){return function(){return f(e,[...arguments])}}function v(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re;i&&i(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(a(t)||(t[r]=e),i=e)}e[i]=!0}return e}function de(e){for(let t=0;t<e.length;t++)h(e,t)||(e[t]=null);return e}function y(e){let t=u(null);for(let[n,i]of r(e))h(e,n)&&(Array.isArray(i)?t[n]=de(i):i&&typeof i==`object`&&i.constructor===Object?t[n]=y(i):t[n]=i);return t}function fe(e,t){for(;e!==null;){let n=s(e,t);if(n){if(n.get)return _(n.get);if(typeof n.value==`function`)return _(n.value)}e=o(e)}function n(){return null}return n}var pe=c(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),me=c(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),he=c([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),ge=c([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),_e=c(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ve=c([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ye=c([`#text`]),be=c(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),xe=c(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Se=c(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Ce=c([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),we=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),b=l(/<%[\w\W]*|[\w\W]*%>/gm),Te=l(/\$\{[\w\W]*/gm),Ee=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),De=l(/^aria-[\-\w]+$/),Oe=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ke=l(/^(?:\w+script|data):/i),Ae=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),je=l(/^html$/i),x=l(/^[a-z][.\w]*(-[.\w]+)+$/i),Me=Object.freeze({__proto__:null,ARIA_ATTR:De,ATTR_WHITESPACE:Ae,CUSTOM_ELEMENT:x,DATA_ATTR:Ee,DOCTYPE_NAME:je,ERB_EXPR:b,IS_ALLOWED_URI:Oe,IS_SCRIPT_OR_DATA:ke,MUSTACHE_EXPR:we,TMPLIT_EXPR:Te}),Ne={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Pe=function(){return typeof window>`u`?null:window},Fe=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ie=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pe(),t=e=>Le(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Ne.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,i=n,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:d,NodeFilter:f,NamedNodeMap:_=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:ue,DOMParser:de,trustedTypes:we}=e,b=d.prototype,Te=fe(b,`cloneNode`),Ee=fe(b,`remove`),De=fe(b,`nextSibling`),ke=fe(b,`childNodes`),Ae=fe(b,`parentNode`);if(typeof s==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,{implementation:C,createNodeIterator:Re,createDocumentFragment:w,getElementsByTagName:ze}=n,{importNode:T}=i,E=Ie();t.isSupported=typeof r==`function`&&typeof Ae==`function`&&C&&C.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Be,ERB_EXPR:D,TMPLIT_EXPR:Ve,DATA_ATTR:He,ARIA_ATTR:Ue,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:We,CUSTOM_ELEMENT:Ge}=Me,{IS_ALLOWED_URI:Ke}=Me,k=null,qe=v({},[...pe,...me,...he,..._e,...ye]),A=null,Je=v({},[...be,...xe,...Se,...Ce]),j=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,Ye=null,N=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Xe=!0,Ze=!0,Qe=!1,$e=!0,P=!1,et=!0,F=!1,tt=!1,nt=!1,I=!1,rt=!1,L=!1,R=!0,it=!1,at=!0,z=!1,B={},V=null,ot=v({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),st=null,ct=v({},[`audio`,`video`,`img`,`source`,`image`,`track`]),lt=null,ut=v({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),dt=`http://www.w3.org/1998/Math/MathML`,ft=`http://www.w3.org/2000/svg`,H=`http://www.w3.org/1999/xhtml`,U=H,pt=!1,mt=null,ht=v({},[dt,ft,H],ie),gt=v({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),_t=v({},[`annotation-xml`]),vt=v({},[`title`,`style`,`font`,`a`,`script`]),yt=null,bt=[`application/xhtml+xml`,`text/html`],W=null,G=null,xt=n.createElement(`form`),St=function(e){return e instanceof RegExp||e instanceof Function},Ct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(G&&G===e)){if((!e||typeof e!=`object`)&&(e={}),e=y(e),yt=bt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,W=yt===`application/xhtml+xml`?ie:re,k=h(e,`ALLOWED_TAGS`)?v({},e.ALLOWED_TAGS,W):qe,A=h(e,`ALLOWED_ATTR`)?v({},e.ALLOWED_ATTR,W):Je,mt=h(e,`ALLOWED_NAMESPACES`)?v({},e.ALLOWED_NAMESPACES,ie):ht,lt=h(e,`ADD_URI_SAFE_ATTR`)?v(y(ut),e.ADD_URI_SAFE_ATTR,W):ut,st=h(e,`ADD_DATA_URI_TAGS`)?v(y(ct),e.ADD_DATA_URI_TAGS,W):ct,V=h(e,`FORBID_CONTENTS`)?v({},e.FORBID_CONTENTS,W):ot,M=h(e,`FORBID_TAGS`)?v({},e.FORBID_TAGS,W):y({}),Ye=h(e,`FORBID_ATTR`)?v({},e.FORBID_ATTR,W):y({}),B=h(e,`USE_PROFILES`)?e.USE_PROFILES:!1,Xe=e.ALLOW_ARIA_ATTR!==!1,Ze=e.ALLOW_DATA_ATTR!==!1,Qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=e.SAFE_FOR_TEMPLATES||!1,et=e.SAFE_FOR_XML!==!1,F=e.WHOLE_DOCUMENT||!1,I=e.RETURN_DOM||!1,rt=e.RETURN_DOM_FRAGMENT||!1,L=e.RETURN_TRUSTED_TYPE||!1,nt=e.FORCE_BODY||!1,R=e.SANITIZE_DOM!==!1,it=e.SANITIZE_NAMED_PROPS||!1,at=e.KEEP_CONTENT!==!1,z=e.IN_PLACE||!1,Ke=e.ALLOWED_URI_REGEXP||Oe,U=e.NAMESPACE||H,gt=e.MATHML_TEXT_INTEGRATION_POINTS||gt,_t=e.HTML_INTEGRATION_POINTS||_t,j=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&St(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&St(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(Ze=!1),rt&&(I=!0),B&&(k=v({},ye),A=u(null),B.html===!0&&(v(k,pe),v(A,be)),B.svg===!0&&(v(k,me),v(A,xe),v(A,Ce)),B.svgFilters===!0&&(v(k,he),v(A,xe),v(A,Ce)),B.mathMl===!0&&(v(k,_e),v(A,Se),v(A,Ce))),h(e,`ADD_TAGS`)||(N.tagCheck=null),h(e,`ADD_ATTR`)||(N.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?N.tagCheck=e.ADD_TAGS:(k===qe&&(k=y(k)),v(k,e.ADD_TAGS,W))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?N.attributeCheck=e.ADD_ATTR:(A===Je&&(A=y(A)),v(A,e.ADD_ATTR,W))),e.ADD_URI_SAFE_ATTR&&v(lt,e.ADD_URI_SAFE_ATTR,W),e.FORBID_CONTENTS&&(V===ot&&(V=y(V)),v(V,e.FORBID_CONTENTS,W)),e.ADD_FORBID_CONTENTS&&(V===ot&&(V=y(V)),v(V,e.ADD_FORBID_CONTENTS,W)),at&&(k[`#text`]=!0),F&&v(k,[`html`,`head`,`body`]),k.table&&(v(k,[`tbody`]),delete M.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw le(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw le(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=Fe(we,a)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));c&&c(e),G=e}},wt=v({},[...me,...he,...ge]),Tt=v({},[..._e,...ve]),Et=function(e){let t=Ae(e);(!t||!t.tagName)&&(t={namespaceURI:U,tagName:`template`});let n=re(e.tagName),r=re(t.tagName);return mt[e.namespaceURI]?e.namespaceURI===ft?t.namespaceURI===H?n===`svg`:t.namespaceURI===dt?n===`svg`&&(r===`annotation-xml`||gt[r]):!!wt[n]:e.namespaceURI===dt?t.namespaceURI===H?n===`math`:t.namespaceURI===ft?n===`math`&&_t[r]:!!Tt[n]:e.namespaceURI===H?t.namespaceURI===ft&&!_t[r]||t.namespaceURI===dt&&!gt[r]?!1:!Tt[n]&&(vt[n]||!wt[n]):!!(yt===`application/xhtml+xml`&&mt[e.namespaceURI]):!1},K=function(e){te(t.removed,{element:e});try{Ae(e).removeChild(e)}catch{Ee(e)}},q=function(e,n){try{te(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{te(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(I||rt)try{K(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Dt=function(e){let t=null,r=null;if(nt)e=`<remove></remove>`+e;else{let t=ae(e,/^[\r\n\t ]+/);r=t&&t[0]}yt===`application/xhtml+xml`&&U===H&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?x.createHTML(e):e;if(U===H)try{t=new de().parseFromString(i,yt)}catch{}if(!t||!t.documentElement){t=C.createDocument(U,`template`,null);try{t.documentElement.innerHTML=pt?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),U===H?ze.call(t,F?`html`:`body`)[0]:F?t.documentElement:a},J=function(e){return Re.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Ot=function(e){return e instanceof ue&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof _)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},kt=function(e){return typeof l==`function`&&e instanceof l};function Y(e,n,r){p(e,e=>{e.call(t,n,r,G)})}let At=function(e){let n=null;if(Y(E.beforeSanitizeElements,e,null),Ot(e))return K(e),!0;let r=W(e.nodeName);if(Y(E.uponSanitizeElement,e,{tagName:r,allowedTags:k}),et&&e.hasChildNodes()&&!kt(e.firstElementChild)&&g(/<[/\w!]/g,e.innerHTML)&&g(/<[/\w!]/g,e.textContent)||e.nodeType===Ne.progressingInstruction||et&&e.nodeType===Ne.comment&&g(/<[/\w]/g,e.data))return K(e),!0;if(!(N.tagCheck instanceof Function&&N.tagCheck(r))&&(!k[r]||M[r])){if(!M[r]&&Mt(r)&&(j.tagNameCheck instanceof RegExp&&g(j.tagNameCheck,r)||j.tagNameCheck instanceof Function&&j.tagNameCheck(r)))return!1;if(at&&!V[r]){let t=Ae(e)||e.parentNode,n=ke(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Te(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,De(e))}}}return K(e),!0}return e instanceof d&&!Et(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&g(/<\/no(script|embed|frames)/i,e.innerHTML)?(K(e),!0):(P&&e.nodeType===Ne.text&&(n=e.textContent,p([Be,D,Ve],e=>{n=oe(n,e,` `)}),e.textContent!==n&&(te(t.removed,{element:e.cloneNode()}),e.textContent=n)),Y(E.afterSanitizeElements,e,null),!1)},jt=function(e,t,r){if(Ye[t]||R&&(t===`id`||t===`name`)&&(r in n||r in xt))return!1;if(!(Ze&&!Ye[t]&&g(He,t))&&!(Xe&&g(Ue,t))&&!(N.attributeCheck instanceof Function&&N.attributeCheck(t,e))){if(!A[t]||Ye[t]){if(!(Mt(e)&&(j.tagNameCheck instanceof RegExp&&g(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&g(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||t===`is`&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&g(j.tagNameCheck,r)||j.tagNameCheck instanceof Function&&j.tagNameCheck(r))))return!1}else if(!lt[t]&&!g(Ke,oe(r,We,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&se(r,`data:`)===0&&st[e])&&!(Qe&&!g(O,oe(r,We,``)))&&r)return!1}return!0},Mt=function(e){return e!==`annotation-xml`&&ae(e,Ge)},Nt=function(e){Y(E.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Ot(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=W(a),l=s,u=a===`value`?l:ce(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Y(E.uponSanitizeAttribute,e,r),u=r.attrValue,it&&(c===`id`||c===`name`)&&(q(a,e),u=`user-content-`+u),et&&g(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){q(a,e);continue}if(c===`attributename`&&ae(u,`href`)){q(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){q(a,e);continue}if(!$e&&g(/\/>/i,u)){q(a,e);continue}P&&p([Be,D,Ve],e=>{u=oe(u,e,` `)});let d=W(e.nodeName);if(!jt(d,c,u)){q(a,e);continue}if(x&&typeof we==`object`&&typeof we.getAttributeType==`function`&&!o)switch(we.getAttributeType(d,c)){case`TrustedHTML`:u=x.createHTML(u);break;case`TrustedScriptURL`:u=x.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),Ot(e)?K(e):ee(t.removed)}catch{q(a,e)}}Y(E.afterSanitizeAttributes,e,null)},Pt=function e(t){let n=null,r=J(t);for(Y(E.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Y(E.uponSanitizeShadowNode,n,null),At(n),Nt(n),n.content instanceof o&&e(n.content);Y(E.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=null,a=null,s=null,c=null;if(pt=!e,pt&&(e=`<!-->`),typeof e!=`string`&&!kt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw le(`dirty is not a string, aborting`)}else throw le(`toString is not a function`);if(!t.isSupported)return e;if(tt||Ct(n),t.removed=[],typeof e==`string`&&(z=!1),z){if(e.nodeName){let t=W(e.nodeName);if(!k[t]||M[t])throw le(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof l)r=Dt(`<!---->`),a=r.ownerDocument.importNode(e,!0),a.nodeType===Ne.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?r=a:r.appendChild(a);else{if(!I&&!P&&!F&&e.indexOf(`<`)===-1)return x&&L?x.createHTML(e):e;if(r=Dt(e),!r)return I?null:L?S:``}r&&nt&&K(r.firstChild);let u=J(z?e:r);for(;s=u.nextNode();)At(s),Nt(s),s.content instanceof o&&Pt(s.content);if(z)return e;if(I){if(rt)for(c=w.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(A.shadowroot||A.shadowrootmode)&&(c=T.call(i,c,!0)),c}let d=F?r.outerHTML:r.innerHTML;return F&&k[`!doctype`]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&g(je,r.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+r.ownerDocument.doctype.name+`>
|
|
1
|
+
import{Q as e}from"./runtime-core.esm-bundler-C3IgBgY5.js";import{i as t}from"./use-id-BmXMngYX.js";import{y as n}from"./index-QcUb2Iwh.js";var{entries:r,setPrototypeOf:i,isFrozen:a,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object,{freeze:c,seal:l,create:u}=Object,{apply:d,construct:f}=typeof Reflect<`u`&&Reflect;c||=function(e){return e},l||=function(e){return e},d||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},f||=function(e){return new e(...[...arguments].slice(1))};var p=_(Array.prototype.forEach),m=_(Array.prototype.lastIndexOf),ee=_(Array.prototype.pop),te=_(Array.prototype.push),ne=_(Array.prototype.splice),re=_(String.prototype.toLowerCase),ie=_(String.prototype.toString),ae=_(String.prototype.match),oe=_(String.prototype.replace),se=_(String.prototype.indexOf),ce=_(String.prototype.trim),h=_(Object.prototype.hasOwnProperty),g=_(RegExp.prototype.test),le=ue(TypeError);function _(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return d(e,t,n)}}function ue(e){return function(){return f(e,[...arguments])}}function v(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re;i&&i(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(a(t)||(t[r]=e),i=e)}e[i]=!0}return e}function de(e){for(let t=0;t<e.length;t++)h(e,t)||(e[t]=null);return e}function y(e){let t=u(null);for(let[n,i]of r(e))h(e,n)&&(Array.isArray(i)?t[n]=de(i):i&&typeof i==`object`&&i.constructor===Object?t[n]=y(i):t[n]=i);return t}function fe(e,t){for(;e!==null;){let n=s(e,t);if(n){if(n.get)return _(n.get);if(typeof n.value==`function`)return _(n.value)}e=o(e)}function n(){return null}return n}var pe=c(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),me=c(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),he=c([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),ge=c([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),_e=c(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ve=c([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ye=c([`#text`]),be=c(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),xe=c(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Se=c(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Ce=c([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),we=l(/\{\{[\w\W]*|[\w\W]*\}\}/gm),b=l(/<%[\w\W]*|[\w\W]*%>/gm),Te=l(/\$\{[\w\W]*/gm),Ee=l(/^data-[\-\w.\u00B7-\uFFFF]+$/),De=l(/^aria-[\-\w]+$/),Oe=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ke=l(/^(?:\w+script|data):/i),Ae=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),je=l(/^html$/i),x=l(/^[a-z][.\w]*(-[.\w]+)+$/i),Me=Object.freeze({__proto__:null,ARIA_ATTR:De,ATTR_WHITESPACE:Ae,CUSTOM_ELEMENT:x,DATA_ATTR:Ee,DOCTYPE_NAME:je,ERB_EXPR:b,IS_ALLOWED_URI:Oe,IS_SCRIPT_OR_DATA:ke,MUSTACHE_EXPR:we,TMPLIT_EXPR:Te}),Ne={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Pe=function(){return typeof window>`u`?null:window},Fe=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ie=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pe(),t=e=>Le(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Ne.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,i=n,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:d,NodeFilter:f,NamedNodeMap:_=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:ue,DOMParser:de,trustedTypes:we}=e,b=d.prototype,Te=fe(b,`cloneNode`),Ee=fe(b,`remove`),De=fe(b,`nextSibling`),ke=fe(b,`childNodes`),Ae=fe(b,`parentNode`);if(typeof s==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,{implementation:C,createNodeIterator:Re,createDocumentFragment:w,getElementsByTagName:ze}=n,{importNode:T}=i,E=Ie();t.isSupported=typeof r==`function`&&typeof Ae==`function`&&C&&C.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Be,ERB_EXPR:D,TMPLIT_EXPR:Ve,DATA_ATTR:He,ARIA_ATTR:Ue,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:We,CUSTOM_ELEMENT:Ge}=Me,{IS_ALLOWED_URI:Ke}=Me,k=null,qe=v({},[...pe,...me,...he,..._e,...ye]),A=null,Je=v({},[...be,...xe,...Se,...Ce]),j=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),M=null,Ye=null,N=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Xe=!0,Ze=!0,Qe=!1,$e=!0,P=!1,et=!0,F=!1,tt=!1,nt=!1,I=!1,rt=!1,L=!1,R=!0,it=!1,at=!0,z=!1,B={},V=null,ot=v({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),st=null,ct=v({},[`audio`,`video`,`img`,`source`,`image`,`track`]),lt=null,ut=v({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),dt=`http://www.w3.org/1998/Math/MathML`,ft=`http://www.w3.org/2000/svg`,H=`http://www.w3.org/1999/xhtml`,U=H,pt=!1,mt=null,ht=v({},[dt,ft,H],ie),gt=v({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),_t=v({},[`annotation-xml`]),vt=v({},[`title`,`style`,`font`,`a`,`script`]),yt=null,bt=[`application/xhtml+xml`,`text/html`],W=null,G=null,xt=n.createElement(`form`),St=function(e){return e instanceof RegExp||e instanceof Function},Ct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(G&&G===e)){if((!e||typeof e!=`object`)&&(e={}),e=y(e),yt=bt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,W=yt===`application/xhtml+xml`?ie:re,k=h(e,`ALLOWED_TAGS`)?v({},e.ALLOWED_TAGS,W):qe,A=h(e,`ALLOWED_ATTR`)?v({},e.ALLOWED_ATTR,W):Je,mt=h(e,`ALLOWED_NAMESPACES`)?v({},e.ALLOWED_NAMESPACES,ie):ht,lt=h(e,`ADD_URI_SAFE_ATTR`)?v(y(ut),e.ADD_URI_SAFE_ATTR,W):ut,st=h(e,`ADD_DATA_URI_TAGS`)?v(y(ct),e.ADD_DATA_URI_TAGS,W):ct,V=h(e,`FORBID_CONTENTS`)?v({},e.FORBID_CONTENTS,W):ot,M=h(e,`FORBID_TAGS`)?v({},e.FORBID_TAGS,W):y({}),Ye=h(e,`FORBID_ATTR`)?v({},e.FORBID_ATTR,W):y({}),B=h(e,`USE_PROFILES`)?e.USE_PROFILES:!1,Xe=e.ALLOW_ARIA_ATTR!==!1,Ze=e.ALLOW_DATA_ATTR!==!1,Qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,P=e.SAFE_FOR_TEMPLATES||!1,et=e.SAFE_FOR_XML!==!1,F=e.WHOLE_DOCUMENT||!1,I=e.RETURN_DOM||!1,rt=e.RETURN_DOM_FRAGMENT||!1,L=e.RETURN_TRUSTED_TYPE||!1,nt=e.FORCE_BODY||!1,R=e.SANITIZE_DOM!==!1,it=e.SANITIZE_NAMED_PROPS||!1,at=e.KEEP_CONTENT!==!1,z=e.IN_PLACE||!1,Ke=e.ALLOWED_URI_REGEXP||Oe,U=e.NAMESPACE||H,gt=e.MATHML_TEXT_INTEGRATION_POINTS||gt,_t=e.HTML_INTEGRATION_POINTS||_t,j=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&St(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&St(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(Ze=!1),rt&&(I=!0),B&&(k=v({},ye),A=u(null),B.html===!0&&(v(k,pe),v(A,be)),B.svg===!0&&(v(k,me),v(A,xe),v(A,Ce)),B.svgFilters===!0&&(v(k,he),v(A,xe),v(A,Ce)),B.mathMl===!0&&(v(k,_e),v(A,Se),v(A,Ce))),h(e,`ADD_TAGS`)||(N.tagCheck=null),h(e,`ADD_ATTR`)||(N.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?N.tagCheck=e.ADD_TAGS:(k===qe&&(k=y(k)),v(k,e.ADD_TAGS,W))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?N.attributeCheck=e.ADD_ATTR:(A===Je&&(A=y(A)),v(A,e.ADD_ATTR,W))),e.ADD_URI_SAFE_ATTR&&v(lt,e.ADD_URI_SAFE_ATTR,W),e.FORBID_CONTENTS&&(V===ot&&(V=y(V)),v(V,e.FORBID_CONTENTS,W)),e.ADD_FORBID_CONTENTS&&(V===ot&&(V=y(V)),v(V,e.ADD_FORBID_CONTENTS,W)),at&&(k[`#text`]=!0),F&&v(k,[`html`,`head`,`body`]),k.table&&(v(k,[`tbody`]),delete M.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw le(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw le(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=Fe(we,a)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));c&&c(e),G=e}},wt=v({},[...me,...he,...ge]),Tt=v({},[..._e,...ve]),Et=function(e){let t=Ae(e);(!t||!t.tagName)&&(t={namespaceURI:U,tagName:`template`});let n=re(e.tagName),r=re(t.tagName);return mt[e.namespaceURI]?e.namespaceURI===ft?t.namespaceURI===H?n===`svg`:t.namespaceURI===dt?n===`svg`&&(r===`annotation-xml`||gt[r]):!!wt[n]:e.namespaceURI===dt?t.namespaceURI===H?n===`math`:t.namespaceURI===ft?n===`math`&&_t[r]:!!Tt[n]:e.namespaceURI===H?t.namespaceURI===ft&&!_t[r]||t.namespaceURI===dt&&!gt[r]?!1:!Tt[n]&&(vt[n]||!wt[n]):!!(yt===`application/xhtml+xml`&&mt[e.namespaceURI]):!1},K=function(e){te(t.removed,{element:e});try{Ae(e).removeChild(e)}catch{Ee(e)}},q=function(e,n){try{te(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{te(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(I||rt)try{K(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Dt=function(e){let t=null,r=null;if(nt)e=`<remove></remove>`+e;else{let t=ae(e,/^[\r\n\t ]+/);r=t&&t[0]}yt===`application/xhtml+xml`&&U===H&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?x.createHTML(e):e;if(U===H)try{t=new de().parseFromString(i,yt)}catch{}if(!t||!t.documentElement){t=C.createDocument(U,`template`,null);try{t.documentElement.innerHTML=pt?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),U===H?ze.call(t,F?`html`:`body`)[0]:F?t.documentElement:a},J=function(e){return Re.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Ot=function(e){return e instanceof ue&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof _)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},kt=function(e){return typeof l==`function`&&e instanceof l};function Y(e,n,r){p(e,e=>{e.call(t,n,r,G)})}let At=function(e){let n=null;if(Y(E.beforeSanitizeElements,e,null),Ot(e))return K(e),!0;let r=W(e.nodeName);if(Y(E.uponSanitizeElement,e,{tagName:r,allowedTags:k}),et&&e.hasChildNodes()&&!kt(e.firstElementChild)&&g(/<[/\w!]/g,e.innerHTML)&&g(/<[/\w!]/g,e.textContent)||e.nodeType===Ne.progressingInstruction||et&&e.nodeType===Ne.comment&&g(/<[/\w]/g,e.data))return K(e),!0;if(!(N.tagCheck instanceof Function&&N.tagCheck(r))&&(!k[r]||M[r])){if(!M[r]&&Mt(r)&&(j.tagNameCheck instanceof RegExp&&g(j.tagNameCheck,r)||j.tagNameCheck instanceof Function&&j.tagNameCheck(r)))return!1;if(at&&!V[r]){let t=Ae(e)||e.parentNode,n=ke(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Te(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,De(e))}}}return K(e),!0}return e instanceof d&&!Et(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&g(/<\/no(script|embed|frames)/i,e.innerHTML)?(K(e),!0):(P&&e.nodeType===Ne.text&&(n=e.textContent,p([Be,D,Ve],e=>{n=oe(n,e,` `)}),e.textContent!==n&&(te(t.removed,{element:e.cloneNode()}),e.textContent=n)),Y(E.afterSanitizeElements,e,null),!1)},jt=function(e,t,r){if(Ye[t]||R&&(t===`id`||t===`name`)&&(r in n||r in xt))return!1;if(!(Ze&&!Ye[t]&&g(He,t))&&!(Xe&&g(Ue,t))&&!(N.attributeCheck instanceof Function&&N.attributeCheck(t,e))){if(!A[t]||Ye[t]){if(!(Mt(e)&&(j.tagNameCheck instanceof RegExp&&g(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&g(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||t===`is`&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&g(j.tagNameCheck,r)||j.tagNameCheck instanceof Function&&j.tagNameCheck(r))))return!1}else if(!lt[t]&&!g(Ke,oe(r,We,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&se(r,`data:`)===0&&st[e])&&!(Qe&&!g(O,oe(r,We,``)))&&r)return!1}return!0},Mt=function(e){return e!==`annotation-xml`&&ae(e,Ge)},Nt=function(e){Y(E.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Ot(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:A,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=W(a),l=s,u=a===`value`?l:ce(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Y(E.uponSanitizeAttribute,e,r),u=r.attrValue,it&&(c===`id`||c===`name`)&&(q(a,e),u=`user-content-`+u),et&&g(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){q(a,e);continue}if(c===`attributename`&&ae(u,`href`)){q(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){q(a,e);continue}if(!$e&&g(/\/>/i,u)){q(a,e);continue}P&&p([Be,D,Ve],e=>{u=oe(u,e,` `)});let d=W(e.nodeName);if(!jt(d,c,u)){q(a,e);continue}if(x&&typeof we==`object`&&typeof we.getAttributeType==`function`&&!o)switch(we.getAttributeType(d,c)){case`TrustedHTML`:u=x.createHTML(u);break;case`TrustedScriptURL`:u=x.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),Ot(e)?K(e):ee(t.removed)}catch{q(a,e)}}Y(E.afterSanitizeAttributes,e,null)},Pt=function e(t){let n=null,r=J(t);for(Y(E.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Y(E.uponSanitizeShadowNode,n,null),At(n),Nt(n),n.content instanceof o&&e(n.content);Y(E.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=null,a=null,s=null,c=null;if(pt=!e,pt&&(e=`<!-->`),typeof e!=`string`&&!kt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw le(`dirty is not a string, aborting`)}else throw le(`toString is not a function`);if(!t.isSupported)return e;if(tt||Ct(n),t.removed=[],typeof e==`string`&&(z=!1),z){if(e.nodeName){let t=W(e.nodeName);if(!k[t]||M[t])throw le(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof l)r=Dt(`<!---->`),a=r.ownerDocument.importNode(e,!0),a.nodeType===Ne.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?r=a:r.appendChild(a);else{if(!I&&!P&&!F&&e.indexOf(`<`)===-1)return x&&L?x.createHTML(e):e;if(r=Dt(e),!r)return I?null:L?S:``}r&&nt&&K(r.firstChild);let u=J(z?e:r);for(;s=u.nextNode();)At(s),Nt(s),s.content instanceof o&&Pt(s.content);if(z)return e;if(I){if(rt)for(c=w.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(A.shadowroot||A.shadowrootmode)&&(c=T.call(i,c,!0)),c}let d=F?r.outerHTML:r.innerHTML;return F&&k[`!doctype`]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&g(je,r.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+r.ownerDocument.doctype.name+`>
|
|
2
2
|
`+d),P&&p([Be,D,Ve],e=>{d=oe(d,e,` `)}),x&&L?x.createHTML(d):d},t.setConfig=function(){Ct(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),tt=!0},t.clearConfig=function(){G=null,tt=!1},t.isValidAttribute=function(e,t,n){return G||Ct({}),jt(W(e),W(t),n)},t.addHook=function(e,t){typeof t==`function`&&te(E[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=m(E[e],t);return n===-1?void 0:ne(E[e],n,1)[0]}return ee(E[e])},t.removeHooks=function(e){E[e]=[]},t.removeAllHooks=function(){E=Ie()},t}var S=Le(),C;function Re(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var w=Re();function ze(e){w=e}var T={exec:()=>null};function E(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(D.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Be=(()=>{try{return!0}catch{return!1}})(),D={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Ve=/^(?:[ \t]*(?:\n|$))+/,He=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ue=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,O=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,We=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ge=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ke=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,k=E(Ke).replace(/bull/g,Ge).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),qe=E(Ke).replace(/bull/g,Ge).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),A=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Je=/^[^\n]+/,j=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,M=E(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,j).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ye=E(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ge).getRegex(),N=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Xe=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ze=E(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Xe).replace(`tag`,N).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Qe=E(A).replace(`hr`,O).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,N).getRegex(),$e={blockquote:E(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Qe).getRegex(),code:He,def:M,fences:Ue,heading:We,hr:O,html:Ze,lheading:k,list:Ye,newline:Ve,paragraph:Qe,table:T,text:Je},P=E(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,O).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,N).getRegex(),et={...$e,lheading:qe,table:P,paragraph:E(A).replace(`hr`,O).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,P).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,N).getRegex()},F={...$e,html:E(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Xe).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:E(A).replace(`hr`,O).replace(`heading`,` *#{1,6} *[^
|
|
3
3
|
]`).replace(`lheading`,k).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},tt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,I=/^( {2,}|\\)\n(?!\s*$)/,rt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,L=/[\p{P}\p{S}]/u,R=/[\s\p{P}\p{S}]/u,it=/[^\s\p{P}\p{S}]/u,at=E(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,R).getRegex(),z=/(?!~)[\p{P}\p{S}]/u,B=/(?!~)[\s\p{P}\p{S}]/u,V=/(?:[^\s\p{P}\p{S}]|~)/u,ot=E(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Be?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),st=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,ct=E(st,`u`).replace(/punct/g,L).getRegex(),lt=E(st,`u`).replace(/punct/g,z).getRegex(),ut=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,dt=E(ut,`gu`).replace(/notPunctSpace/g,it).replace(/punctSpace/g,R).replace(/punct/g,L).getRegex(),ft=E(ut,`gu`).replace(/notPunctSpace/g,V).replace(/punctSpace/g,B).replace(/punct/g,z).getRegex(),H=E(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,it).replace(/punctSpace/g,R).replace(/punct/g,L).getRegex(),U=E(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,L).getRegex(),pt=E(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,it).replace(/punctSpace/g,R).replace(/punct/g,L).getRegex(),mt=E(/\\(punct)/,`gu`).replace(/punct/g,L).getRegex(),ht=E(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),gt=E(Xe).replace(`(?:-->|$)`,`-->`).getRegex(),_t=E(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,gt).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,yt=E(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,vt).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),bt=E(/^!?\[(label)\]\[(ref)\]/).replace(`label`,vt).replace(`ref`,j).getRegex(),W=E(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,j).getRegex(),G=E(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,bt).replace(`nolink`,W).getRegex(),xt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,St={_backpedal:T,anyPunctuation:mt,autolink:ht,blockSkip:ot,br:I,code:nt,del:T,delLDelim:T,delRDelim:T,emStrongLDelim:ct,emStrongRDelimAst:dt,emStrongRDelimUnd:H,escape:tt,link:yt,nolink:W,punctuation:at,reflink:bt,reflinkSearch:G,tag:_t,text:rt,url:T},Ct={...St,link:E(/^!?\[(label)\]\((.*?)\)/).replace(`label`,vt).getRegex(),reflink:E(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,vt).getRegex()},wt={...St,emStrongRDelimAst:ft,emStrongLDelim:lt,delLDelim:U,delRDelim:pt,url:E(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,xt).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:E(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,xt).getRegex()},Tt={...wt,br:E(I).replace(`{2,}`,`*`).getRegex(),text:E(wt.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Et={normal:$e,gfm:et,pedantic:F},K={normal:St,gfm:wt,breaks:Tt,pedantic:Ct},q={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Dt=e=>q[e];function J(e,t){if(t){if(D.escapeTest.test(e))return e.replace(D.escapeReplace,Dt)}else if(D.escapeTestNoEncode.test(e))return e.replace(D.escapeReplaceNoEncode,Dt);return e}function Ot(e){try{e=encodeURI(e).replace(D.percentDecode,`%`)}catch{return null}return e}function kt(e,t){let n=e.replace(D.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(D.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(D.slashPipe,`|`);return n}function Y(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function At(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function jt(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function Mt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Nt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
4
4
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as e}from"./index-
|
|
1
|
+
import{y as e}from"./index-QcUb2Iwh.js";var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},r;function i(e){if(e.length===0)throw Error(`Invalid tail call`);return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function o(e,t){let n=e.length-1;t<n&&(e[t]=e[n]),e.pop()}function s(e,t,n){return c(e.length,r=>n(e[r],t))}function c(e,t){let n=0,r=e-1;for(;n<=r;){let e=(n+r)/2|0,i=t(e);if(i<0)n=e+1;else if(i>0)r=e-1;else return e}return-(n+1)}function l(e,t,n){if(e|=0,e>=t.length)throw TypeError(`invalid index`);let r=t[Math.floor(t.length*Math.random())],i=[],a=[],o=[];for(let e of t){let t=n(e,r);t<0?i.push(e):t>0?a.push(e):o.push(e)}return e<i.length?l(e,i,n):e<i.length+o.length?o[0]:l(e-(i.length+o.length),a,n)}function u(e,t){let n=[],r;for(let i of e.slice(0).sort(t))!r||t(r[0],i)!==0?(r=[i],n.push(r)):r.push(i);return n}function*d(e,t){let n,r;for(let i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function f(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function p(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function m(e){return e.filter(e=>!!e)}function h(e){let t=0;for(let n=0;n<e.length;n++)e[n]&&(e[t]=e[n],t+=1);e.length=t}function g(e){return!Array.isArray(e)||e.length===0}function _(e){return Array.isArray(e)&&e.length>0}function v(e,t=e=>e){let n=new Set;return e.filter(e=>{let r=t(e);return n.has(r)?!1:(n.add(r),!0)})}function y(e,t){let n=typeof t==`number`?e:0;typeof t==`number`?n=e:(n=0,t=e);let r=[];if(n<=t)for(let e=n;e<t;e++)r.push(e);else for(let e=n;e>t;e--)r.push(e);return r}function b(e,t,n){let r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function x(e,t){let n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function S(e,t){let n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function C(e,t){for(let n of t)e.push(n)}function ee(e){return Array.isArray(e)?e:[e]}function te(e,t,n){let r=re(e,t),i=e.length,a=n.length;e.length=i+a;for(let t=i-1;t>=r;t--)e[t+a]=e[t];for(let t=0;t<a;t++)e[t+r]=n[t]}function ne(e,t,n,r){let i=re(e,t),a=e.splice(i,n);return a===void 0&&(a=[]),te(e,i,r),a}function re(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}var ie;(function(e){function t(e){return e<0}e.isLessThan=t;function n(e){return e<=0}e.isLessThanOrEqual=n;function r(e){return e>0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(ie||={});function ae(e,t){return(n,r)=>t(e(n),e(r))}function oe(...e){return(t,n)=>{for(let r of e){let e=r(t,n);if(!ie.isNeitherLessOrGreaterThan(e))return e}return ie.neitherLessOrGreaterThan}}var se=(e,t)=>e-t,ce=(e,t)=>se(e?1:0,t?1:0);function le(e){return(t,n)=>-e(t,n)}function ue(e){return(t,n)=>t===void 0?n===void 0?ie.neitherLessOrGreaterThan:ie.lessThan:n===void 0?ie.greaterThan:e(t,n)}var de=class{constructor(e){this.firstIdx=0,this.items=e,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}},fe=class e{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>t(n)?e(n):!0))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||ie.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};r=fe,r.empty=new r(e=>{});var pe=class e{constructor(e){this._indexMap=e}static createSortPermutation(t,n){return new e(Array.from(t.keys()).sort((e,r)=>n(t[e],t[r])))}apply(e){return e.map((t,n)=>e[this._indexMap[n]])}inverse(){let t=this._indexMap.slice();for(let e=0;e<this._indexMap.length;e++)t[this._indexMap[e]]=e;return new e(t)}};function me(e){return e.reduce((e,t)=>e+t,0)}var he=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?De.isErrorNoTelemetry(e)?new De(e.message+`
|
|
2
2
|
|
|
3
3
|
`+e.stack):Error(e.message+`
|
|
4
4
|
|