agenttwin 0.3.43 → 0.3.45
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/api.js +26461 -4499
- package/dist/dashboard/assets/next/static/chunks/1937-6d51d4e124712da3.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{7772-f2d773cd3e94eea6.js → 3481-38a2a90084247ab1.js} +6 -6
- package/dist/dashboard/assets/next/static/chunks/6259-3689e5642b66d78c.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/8176-80d26c1ba3e96c09.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/{page-cbf0a4f7672335b8.js → page-90e7c4625d67caa3.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/about/page-7b6ab8f6081f5e77.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/account/password/page-037fec5f56012be1.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/{page-35fd8f4fe3b2af15.js → page-540d65d1057a7527.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/auth/{page-35fd8f4fe3b2af15.js → page-540d65d1057a7527.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/blog/{layout-89f2942330b48007.js → layout-1f35c9c8280d8e88.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/compare/{page-35fd8f4fe3b2af15.js → page-540d65d1057a7527.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/contact/{page-35fd8f4fe3b2af15.js → page-540d65d1057a7527.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-0a7a4610c777d4ca.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-7ee71756cadd81da.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/demo/{page-9e977d1d883f7386.js → page-fa467521a350a22e.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/{page-aea3b669bcb45491.js → page-2f02d1a4e3c44daa.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/dpa/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/{page-ce47c76b4160b3c9.js → page-5d3aa113786c4257.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/{layout-bc1ef1623bd1dca6.js → layout-f1fad0b3adfa8650.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/login/page-0fcaa825ae57072e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/not-found-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/{page-9c1bd81087260f4f.js → page-0ef60a890802e3ea.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/page-02d88045d016e184.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/pricing/{page-2e2f53160e686d9e.js → page-b20818439dc8daa3.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/security/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-0fcaa825ae57072e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/status/{page-d075703822281526.js → page-477b90a47b806b39.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/terms/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-f3b848d905696aa6.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-5114d5bc25cc925a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-c5a3a914ad02b396.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-391350c8e39d35fe.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-cb95f6e08d868cb9.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-ba5549311d95d01d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-391350c8e39d35fe.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-540d65d1057a7527.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{main-app-85f4e8de9868bedc.js → main-app-09f87cf7a6813e7b.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{webpack-382af3529e0fbd25.js → webpack-956fc59a9b8e1c9d.js} +1 -1
- package/dist/dashboard/assets/next/static/css/481ca6c2928cd200.css +1 -0
- package/dist/dashboard/assets/next/static/css/9b2210225877b730.css +1 -0
- package/dist/dashboard/assets/next/static/css/{f55186d294d5c4d4.css → d9a8b84d1f38505a.css} +2 -2
- package/dist/dashboard/assets/next/static/css/{11f70fd04660da57.css → dbba4df791f6fafa.css} +1 -1
- package/dist/dashboard/assets/next/static/css/{41d14b615c51789f.css → f219b6480a7505ef.css} +1 -1
- package/dist/dashboard/index.html +2 -2
- package/dist/discover-worker.js +315 -36
- package/dist/engine.js +27112 -5122
- package/dist/gateway.js +26474 -4512
- package/dist/scan-worker.js +20755 -667
- package/dist/worker.js +1174 -445
- package/dist/world-host.js +1239 -467
- package/package.json +1 -1
- package/dist/dashboard/assets/next/static/chunks/1937-6c86fddc443de922.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/2960-520ffde27b062af4.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/5258-3d0060b41be9ad97.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/about/page-6e8e140ea96e4e5e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/account/password/page-124ac1de3af2d687.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-0262e35e50882ab7.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-943e07dc51384546.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dpa/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/login/page-9a6e88fc56812fbb.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/not-found-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/page-7849ed5b53ffb2d1.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/security/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-9a6e88fc56812fbb.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/terms/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-22d3ae1def1dd220.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-1b768bed2b8a2747.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-38b897124c7f6223.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-91f11cbfe46c4c25.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-64dd3f1b59afe38a.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-9191727c63b6ce2e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-91f11cbfe46c4c25.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-35fd8f4fe3b2af15.js +0 -1
- package/dist/dashboard/assets/next/static/css/14ef6d1b7f922ef2.css +0 -1
- package/dist/dashboard/assets/next/static/css/39133c9a03c8edb8.css +0 -1
- package/dist/dashboard/assets/next/static/css/8f1b98de253e73ed.css +0 -1
- package/dist/dashboard/assets/next/static/css/c3d3b671693fb96d.css +0 -1
- package/dist/dashboard/assets/next/static/css/dd3fb06005e18149.css +0 -1
- package/dist/dashboard/assets/next/static/css/f14e187b236cb6fb.css +0 -1
- /package/dist/dashboard/assets/next/static/{sxtodXehxQTT0-7MaA4p7 → iCEc5bCzyYUPa74FKyLIp}/_buildManifest.js +0 -0
- /package/dist/dashboard/assets/next/static/{sxtodXehxQTT0-7MaA4p7 → iCEc5bCzyYUPa74FKyLIp}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1937],{395:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};o.node;let i=(0,r.A)(o)},1516:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"users",size:24,node:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]};o.node;let i=(0,r.A)(o)},3808:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"house",size:24,node:[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],aliases:["home"]};o.node;let i=(0,r.A)(o)},3955:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};o.node;let i=(0,r.A)(o)},4416:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};o.node;let i=(0,r.A)(o)},4626:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};o.node;let i=(0,r.A)(o)},4788:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};o.node;let i=(0,r.A)(o)},5154:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"panel-left",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aliases:["sidebar"]};o.node;let i=(0,r.A)(o)},6164:(e,t,n)=>{let r;n.d(t,{i3:()=>tA,UC:()=>tv,ZL:()=>tm,Kq:()=>tl,bL:()=>tu,l9:()=>td});var o=n(2115),i=n(2556),l=n(4446),a=n(3468),s=n(1987),c=n(9666),u=n(8946);let f=["top","right","bottom","left"],d=Math.min,p=Math.max,h=Math.round,g=Math.floor,m=e=>({x:e,y:e}),y={left:"right",right:"left",bottom:"top",top:"bottom"};function v(e,t){return"function"==typeof e?e(t):e}function w(e){return e.split("-")[0]}function x(e){return e.split("-")[1]}function b(e){return"x"===e?"y":"x"}function A(e){return"y"===e?"height":"width"}function C(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function R(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let T=["left","right"],k=["right","left"],E=["top","bottom"],P=["bottom","top"];function L(e){let t=w(e);return y[t]+e.slice(t.length)}function O(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function S(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function M(e,t,n){let r,{reference:o,floating:i}=e,l=C(t),a=b(C(t)),s=A(a),c=w(t),u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[s]/2-i[s]/2;switch(c){case"top":r={x:u,y:o.y-i.height};break;case"bottom":r={x:u,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}let p=x(t);return p&&(r[a]+=d*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function j(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=v(t,e),h=O(p),g=a[d?"floating"===f?"reference":"floating":f],m=S(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=S(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:s}):y);return{top:(m.top-b.top+h.top)/x.y,bottom:(b.bottom-m.bottom+h.bottom)/x.y,left:(m.left-b.left+h.left)/x.x,right:(b.right-m.right+h.right)/x.x}}let z=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:j},s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=M(c,r,s),d=r,p=0,h={};for(let n=0;n<i.length;n++){let g=i[n];if(!g)continue;let{name:m,fn:y}=g,{x:v,y:w,data:x,reset:b}=await y({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,f=null!=w?w:f,h[m]={...h[m],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:u,y:f}=M(c,d,s)),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:h}};function H(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return f.some(t=>e[t]>=0)}let F=new Set(["left","top"]);async function _(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=w(n),a=x(n),s="y"===C(n),c=F.has(l)?-1:1,u=i&&s?-1:1,f=v(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}function W(){return"undefined"!=typeof window}function B(e){return I(e)?(e.nodeName||"").toLowerCase():"#document"}function N(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(I(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function I(e){return!!W()&&(e instanceof Node||e instanceof N(e).Node)}function q(e){return!!W()&&(e instanceof Element||e instanceof N(e).Element)}function G(e){return!!W()&&(e instanceof HTMLElement||e instanceof N(e).HTMLElement)}function K(e){return!!W()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof N(e).ShadowRoot)}function Y(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function $(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let X=/transform|translate|scale|rotate|perspective|filter/,U=/paint|layout|strict|content/,Z=e=>!!e&&"none"!==e;function J(e){let t=q(e)?et(e):e;return Z(t.transform)||Z(t.translate)||Z(t.scale)||Z(t.rotate)||Z(t.perspective)||!Q()&&(Z(t.backdropFilter)||Z(t.filter))||X.test(t.willChange||"")||U.test(t.contain||"")}function Q(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ee(e){return/^(html|body|#document)$/.test(B(e))}function et(e){return N(e).getComputedStyle(e)}function en(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===B(e))return e;let t=e.assignedSlot||e.parentNode||K(e)&&e.host||V(e);return K(t)?t.host:t}function eo(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=er(t);return ee(n)?(t.ownerDocument||t).body:G(n)&&Y(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=N(o);if(!i)return t.concat(o,eo(o,[],n));{let e=ei(l);return t.concat(l,l.visualViewport||[],Y(o)?o:[],e&&n?eo(e):[])}}function ei(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function el(e){let t=et(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=G(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=h(n)!==i||h(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ea(e){return q(e)?e:e.contextElement}function es(e){let t=ea(e);if(!G(t))return m(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=el(t),l=(i?h(n.width):n.width)/r,a=(i?h(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ec=m(0);function eu(e){let t=N(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ec}function ef(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ea(e),a=m(1);t&&(r?q(r)&&(a=es(r)):a=es(e));let s=(void 0===(o=n)&&(o=!1),r&&o&&r===N(l))?eu(l):m(0),c=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l&&r){let e=N(l),t=q(r)?N(r):r,n=e,o=ei(n);for(;o&&t!==n;){let e=es(o),t=o.getBoundingClientRect(),r=et(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,f*=e.x,d*=e.y,c+=i,u+=l,o=ei(n=N(o))}}return S({width:f,height:d,x:c,y:u})}function ed(e,t){let n=en(e).scrollLeft;return t?t.left+n:ef(V(e)).left+n}function ep(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}function eh(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=N(e),i=V(e),l=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(l){let e=!Q()||"fixed"===t;r?e||(c=-l.offsetLeft,u=-l.offsetTop):(a=l.width,s=l.height,e&&(c=l.offsetLeft,u=l.offsetTop))}if(0>=ed(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:s,x:c,y:u}}(e,n,t);else if("document"===t)r=function(e){let t=en(e),n=e.ownerDocument.body,r=p(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=p(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+ed(e),l=-t.scrollTop;return"rtl"===et(n).direction&&(i+=p(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(V(e));else if(q(t))r=function(e,t){let n=ef(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=es(e),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function eg(e){return"static"===et(e).position}function em(e,t){if(!G(e)||"fixed"===et(e).position)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){var n;let r=N(e);if($(e))return r;if(!G(e)){let t=er(e);for(;t&&!ee(t);){if(q(t)&&!eg(t))return t;t=er(t)}return r}let o=em(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(B(n)))&&eg(o);)o=em(o,t);return o&&ee(o)&&eg(o)&&!J(o)?r:o||function(e){let t=er(e);for(;G(t)&&!ee(t);){if(J(t))return t;if($(t))break;t=er(t)}return null}(e)||r}let ev=async function(e){let t=this.getOffsetParent||ey,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=G(t),o=V(t),i="fixed"===n,l=ef(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=m(0);if((r||!i)&&(("body"!==B(t)||Y(o))&&(a=en(t)),r)){let e=ef(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&o&&(s.x=ed(o));let c=!o||r||i?m(0):ep(o,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=V(r),a=!!t&&$(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=m(1),u=m(0),f=G(r);if((f||!i)&&(("body"!==B(r)||Y(l))&&(s=en(r)),f)){let e=ef(r);c=es(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let d=!l||f||i?m(0):ep(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-s.scrollTop*c.y+u.y+d.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?$(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eo(e,[],!1).filter(e=>q(e)&&"body"!==B(e)),o=null,i="fixed"===et(e).position,l=i?er(e):e;for(;q(l)&&!ee(l);){let e=et(l),t=J(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=er(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eh(t,i[0],o),a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){let n=eh(t,i[e],o);a=p(n.top,a),s=d(n.right,s),c=d(n.bottom,c),u=p(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:ey,getElementRects:ev,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=el(e);return{width:t,height:n}},getScale:es,isElement:q,isRTL:function(e){return"rtl"===et(e).direction}};function ex(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eb=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=v(e,t)||{};if(null==c)return{};let f=O(u),h={x:n,y:r},g=b(C(o)),m=A(g),y=await l.getDimensions(c),w="y"===g,R=w?"clientHeight":"clientWidth",T=i.reference[m]+i.reference[g]-h[g]-i.floating[m],k=h[g]-i.reference[g],E=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),P=E?E[R]:0;P&&await (null==l.isElement?void 0:l.isElement(E))||(P=a.floating[R]||i.floating[m]);let L=P/2-y[m]/2-1,S=d(f[w?"top":"left"],L),M=d(f[w?"bottom":"right"],L),j=P-y[m]-M,z=P/2-y[m]/2+(T/2-k/2),H=p(S,d(z,j)),D=!s.arrow&&null!=x(o)&&z!==H&&i.reference[m]/2-(z<S?S:M)-y[m]/2<0,F=D?z<S?z-S:z-j:0;return{[g]:h[g]+F,data:{[g]:H,centerOffset:z-H-F,...D&&{alignmentOffset:F}},reset:D}}});var eA=n(7650),eC="undefined"!=typeof document?o.useLayoutEffect:function(){};function eR(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eR(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eR(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=eT(e);return Math.round(t*n)/n}function eE(e){let t=o.useRef(e);return eC(()=>{t.current=e}),t}var eP=n(7602),eL=n(5155),eO=Object.defineProperty,eS=o.forwardRef(eO(function(e,t){let{children:n,width:r=10,height:o=5,...i}=e;return(0,eL.jsx)(eP.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eL.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),eM=n(222),ej=n(4129);function ez(e){let[t,n]=o.useState(void 0);return(0,ej.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let o=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if("borderBoxSize"in o){let e=o.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:"border-box"}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}(0,Object.defineProperty)(ez,"name",{value:"useSize",configurable:!0});var eH=Object.defineProperty,eD=(e,t)=>eH(e,"name",{value:t,configurable:!0}),eF={Partial:"partial"},e_={Optimized:"optimized",Always:"always"},eW="Popper",[eB,eN]=(0,a.A)(eW),[eV,eI]=eB(eW),eq=eD(e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,a]=o.useState(void 0);return(0,eL.jsx)(eV,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:a,children:n})},"Popper"),eG=o.forwardRef(eD(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=eI("PopperAnchor",n),s=o.useRef(null),c=a.onAnchorChange,u=o.useCallback(e=>{s.current=e,e&&c(e)},[c]),f=(0,l.s)(t,u),d=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&c(d.current)});let p=a.placementState&&e0(a.placementState),h=null==p?void 0:p[0],g=null==p?void 0:p[1];return r?null:(0,eL.jsx)(eP.sG.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...i,ref:f})},"PopperAnchor")),eK="PopperContent",[eY,e$]=eB(eK),eX=o.forwardRef(eD(function(e,t){var n,r,i,a,s,c,u,f,h,m,y,O;let{__scopePopper:S,side:M="bottom",sideOffset:j=0,align:W="center",alignOffset:B=0,arrowPadding:I=0,avoidCollisions:q=!0,collisionBoundary:G=[],collisionPadding:K=0,sticky:Y=eF.Partial,hideWhenDetached:$=!1,updatePositionStrategy:X=e_.Optimized,onPlaced:U,...Z}=e,J=eI(eK,S),[Q,ee]=o.useState(null),et=(0,l.s)(t,ee),[en,er]=o.useState(null),ei=ez(en),el=null!=(f=null==ei?void 0:ei.width)?f:0,es=null!=(h=null==ei?void 0:ei.height)?h:0,ec="number"==typeof K?K:{top:0,right:0,bottom:0,left:0,...K},eu=Array.isArray(G)?G:[G],ed=eu.length>0,ep={padding:ec,boundary:eu.filter(eJ),altBoundary:ed},{refs:eh,floatingStyles:eg,placement:em,isPositioned:ey,middlewareData:ev}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);eR(p,r)||h(r);let[g,m]=o.useState(null),[y,v]=o.useState(null),w=o.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),x=o.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),b=l||g,A=a||y,C=o.useRef(null),R=o.useRef(null),T=o.useRef(f),k=null!=c,E=eE(c),P=eE(i),L=eE(u),O=o.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),((e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...ew,...o.platform,_c:r};return z(e,t,{...o,platform:i})})(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};S.current&&!eR(T.current,t)&&(T.current=t,eA.flushSync(()=>{d(t)}))})},[p,t,n,P,L]);eC(()=>{!1===u&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let S=o.useRef(!1);eC(()=>(S.current=!0,()=>{S.current=!1}),[]),eC(()=>{if(b&&(C.current=b),A&&(R.current=A),b&&A){if(E.current)return E.current(b,A,O);O()}},[b,A,O,E,k]);let M=o.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:x}),[w,x]),j=o.useMemo(()=>({reference:b,floating:A}),[b,A]),H=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=ek(j.floating,f.x),r=ek(j.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eT(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,j.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:O,refs:M,elements:j,floatingStyles:H}),[f,O,M,j,H])}({strategy:"fixed",placement:M+("center"!==W?"-"+W:""),whileElementsMounted:eD(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=ea(e),f=i||l?[...u?eo(u):[],...t?eo(t):[]]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let h=u&&s?function(e,t,n){let r,o=null,i=V(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),l();let c=e.getBoundingClientRect(),{left:u,top:f,width:h,height:m}=c;if(n||t(),!h||!m)return;let y=g(f),v=g(i.clientWidth-(u+h)),w={rootMargin:-y+"px "+-v+"px "+-g(i.clientHeight-(f+m))+"px "+-g(u)+"px",threshold:p(0,d(1,s))||1},x=!0;function b(t){let n=t[0].intersectionRatio;if(!ex(c,e.getBoundingClientRect()))return a();if(n!==s){if(!x)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x=!1}try{o=new IntersectionObserver(b,{...w,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(b,w)}o.observe(e)}let s=N(e),c=()=>a(n);return s.addEventListener("resize",c),a(!0),()=>{s.removeEventListener("resize",c),l()}}(u,n,l):null,m=-1,y=null;a&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),u&&!c&&y.observe(u),t&&y.observe(t));let v=c?ef(e):null;return c&&function t(){let r=ef(e);v&&!ex(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=y)||e.disconnect(),y=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:X===e_.Always})},"whileElementsMounted"),elements:{reference:J.anchor},middleware:[((e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,s=await _(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}})({mainAxis:j+es,alignmentAxis:B}),q&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=v(n,e),u={x:t,y:r},f=await i.detectOverflow(e,c),h=C(o),g=b(h),m=u[g],y=u[h],w=(e,t)=>p(t+f["y"===e?"top":"left"],d(t,t-f["y"===e?"bottom":"right"]));l&&(m=w(g,m)),a&&(y=w(h,y));let x=s.fn({...e,[g]:m,[h]:y});return{...x,data:{x:x.x-t,y:x.y-r,enabled:{[g]:l,[h]:a}}}}});return{name:r.name,fn:r.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,...Y===eF.Partial?{limiter:{fn:(void 0===(O=m)&&(O={}),{options:O,fn(e){var t,n,r,o;let{x:i,y:l,placement:a,rects:s,middlewareData:c}=e,{offset:u=0,mainAxis:f=!0,crossAxis:d=!0}=v(O,e),p={x:i,y:l},h=C(a),g=b(h),m=p[g],y=p[h],x=v(u,e),A="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:null!=(t=x.mainAxis)?t:0,crossAxis:null!=(n=x.crossAxis)?n:0};if(f){let e="y"===g?"height":"width",t=s.reference[g]-s.floating[e]+A.mainAxis,n=s.reference[g]+s.reference[e]-A.mainAxis;m<t?m=t:m>n&&(m=n)}if(d){let e="y"===g?"width":"height",t=F.has(w(a)),n=s.reference[h]-s.floating[e]+(t&&(null==(r=c.offset)?void 0:r[h])||0)+(t?0:A.crossAxis),i=s.reference[h]+s.reference[e]+(t?0:(null==(o=c.offset)?void 0:o[h])||0)-(t?A.crossAxis:0);y<n?y=n:y>i&&(y=i)}return{[g]:m,[h]:y}}}).fn,options:[m,y]}}:{},...ep}),q&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:s,rects:c,initialPlacement:u,platform:f,elements:d}=e,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:O=!0,...S}=v(n,e);if(null!=(t=s.arrow)&&t.alignmentOffset)return{};let M=w(a),j=C(u),z=w(u)===u,H=await (null==f.isRTL?void 0:f.isRTL(d.floating)),D=g||(z||!O?[L(u)]:function(e){let t=L(e);return[R(e),t,R(t)]}(u)),F="none"!==y;!g&&F&&D.push(...function(e,t,n,r){let o=x(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?k:T;return t?T:k;case"left":case"right":return t?E:P;default:return[]}}(w(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(R)))),i}(u,O,y,H));let _=[u,...D],W=await f.detectOverflow(e,S),B=[],N=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&B.push(W[M]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=x(e),o=b(C(e)),i=A(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),[l,L(l)]}(a,c,H);B.push(W[e[0]],W[e[1]])}if(N=[...N,{placement:a,overflows:B}],!B.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=_[e];if(t&&("alignment"!==h||j===C(t)||N.every(e=>C(e.placement)!==j||e.overflows[0]>0)))return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(i=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(l=N.filter(e=>{if(F){let t=C(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}})({...ep}),((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r,{placement:o,rects:i,platform:l,elements:a}=e,{apply:s=()=>{},...c}=v(n,e),u=await l.detectOverflow(e,c),f=w(o),h=x(o),g="y"===C(o),{width:m,height:y}=i.floating;"top"===f||"bottom"===f?(t=f,r=h===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(r=f,t="end"===h?"top":"bottom");let b=y-u.top-u.bottom,A=m-u.left-u.right,R=d(y-u[t],b),T=d(m-u[r],A),k=e.middlewareData.shift,E=!k,P=R,L=T;null!=k&&k.enabled.x&&(L=A),null!=k&&k.enabled.y&&(P=b),E&&!h&&(g?L=m-2*p(u.left,u.right):P=y-2*p(u.top,u.bottom)),await s({...e,availableWidth:L,availableHeight:P});let O=await l.getDimensions(a.floating);return m!==O.width||y!==O.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}})({...ep,apply:eD(e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))},"apply")}),en&&((e,t)=>{let n,r={name:"arrow",options:n=e,fn(e){let{element:t,padding:r}="function"==typeof n?n(e):n;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eb({element:t.current,padding:r}).fn(e):{}:t?eb({element:t,padding:r}).fn(e):{}}};return{name:r.name,fn:r.fn,options:[e,t]}})({element:en,padding:I}),eQ({arrowWidth:el,arrowHeight:es}),$&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=v(n,e);switch(o){case"referenceHidden":{let n=H(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:D(n)}}}case"escaped":{let n=H(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:D(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,t]}})(ed?{strategy:"referenceHidden",...ep}:{strategy:"referenceHidden",padding:ep.padding,altBoundary:ep.altBoundary})]}),eO=J.setPlacementState;(0,ej.N)(()=>(eO(em),()=>{eO(void 0)}),[em,eO]);let[eS,eH]=e0(em),eW=(0,eM.c)(U);(0,ej.N)(()=>{ey&&(null==eW||eW())},[ey,eW]);let eB=null==(n=ev.arrow)?void 0:n.x,eN=null==(r=ev.arrow)?void 0:r.y,eV=(null==(i=ev.arrow)?void 0:i.centerOffset)!==0,[eq,eG]=o.useState();return(0,ej.N)(()=>{Q&&eG(window.getComputedStyle(Q).zIndex)},[Q]),(0,eL.jsx)("div",{ref:eh.setFloating,"data-radix-popper-content-wrapper":"",style:{...eg,transform:ey?eg.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eq,"--radix-popper-transform-origin":[null==(a=ev.transformOrigin)?void 0:a.x,null==(s=ev.transformOrigin)?void 0:s.y].join(" "),...(null==(c=ev.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eL.jsx)(eY,{scope:S,placedSide:eS,placedAlign:eH,onArrowChange:er,arrowX:eB,arrowY:eN,shouldHideArrow:eV,children:(0,eL.jsx)(eP.sG.div,{"data-side":eS,"data-align":eH,...Z,ref:et,style:{...Z.style,animation:ey?null==(u=Z.style)?void 0:u.animation:"none"}})})})},"PopperContent")),eU={top:"bottom",right:"left",bottom:"top",left:"right"},eZ=o.forwardRef(eD(function(e,t){let{__scopePopper:n,...r}=e,o=e$("PopperArrow",n),i=eU[o.placedSide];return(0,eL.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eL.jsx)(eS,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function eJ(e){return null!==e}eD(eJ,"isNotNull");var eQ=eD(e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:c}=t,u=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,f=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=e0(a),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!=(i=null==(r=c.arrow)?void 0:r.x)?i:0)+f/2,y=(null!=(l=null==(o=c.arrow)?void 0:o.y)?l:0)+d/2,v="",w="";return"bottom"===p?(v=u?g:"".concat(m,"px"),w="".concat(-d,"px")):"top"===p?(v=u?g:"".concat(m,"px"),w="".concat(s.floating.height+d,"px")):"right"===p?(v="".concat(-d,"px"),w=u?g:"".concat(y,"px")):"left"===p&&(v="".concat(s.floating.width+d,"px"),w=u?g:"".concat(y,"px")),{data:{x:v,y:w}}}}),"transformOrigin");function e0(e){let[t,n="center"]=e.split("-");return[t,n]}eD(e0,"getSideAndAlignFromPlacement");var e1=n(5433),e2=n(6842),e4=n(2467),e3=n(9478),e5=Object.defineProperty,e6=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),e8=o.forwardRef(e5(function(e,t){return(0,eL.jsx)(eP.sG.span,{...e,ref:t,style:{...e6,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0})),e9=Object.defineProperty,e7=(e,t)=>e9(e,"name",{value:t,configurable:!0}),[te,tt]=(0,a.A)("Tooltip",[eN]),tn=eN(),tr="tooltip.open",[to,ti]=te("TooltipProvider"),tl=e7(e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,a=o.useRef(!0),s=o.useRef(!1),c=o.useRef(0);return o.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,eL.jsx)(to,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:o.useCallback(()=>{r<=0||(window.clearTimeout(c.current),a.current=!1)},[r]),onClose:o.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:o.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})},"TooltipProvider"),ta="Tooltip",[ts,tc]=te(ta),tu=e7(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:a,delayDuration:s}=e,c=ti(ta,e.__scopeTooltip),f=tn(t),[d,p]=o.useState(null),[h,g]=o.useState(void 0),m=(0,u.B)(),y=o.useRef(0),v=null!=a?a:c.disableHoverableContent,w=null!=s?s:c.delayDuration,x=o.useRef(!1),[b,A]=(0,e3.i)({prop:r,defaultProp:null!=i&&i,onChange:e7(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(tr))):c.onClose(),null==l||l(e)},"onChange"),caller:ta}),C=o.useMemo(()=>b?x.current?"delayed-open":"instant-open":"closed",[b]),R=o.useCallback(()=>{window.clearTimeout(y.current),y.current=0,x.current=!1,A(!0)},[A]),T=o.useCallback(()=>{window.clearTimeout(y.current),y.current=0,A(!1)},[A]),k=o.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{x.current=!0,A(!0),y.current=0},w)},[w,A]);return o.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,eL.jsx)(eq,{...f,children:(0,eL.jsx)(ts,{scope:t,contentId:null!=h?h:m,setContentId:g,open:b,stateAttribute:C,trigger:d,onTriggerChange:p,onTriggerEnter:o.useCallback(()=>{c.isOpenDelayedRef.current?k():R()},[c.isOpenDelayedRef,k,R]),onTriggerLeave:o.useCallback(()=>{v?T():(window.clearTimeout(y.current),y.current=0)},[T,v]),onOpen:R,onClose:T,disableHoverableContent:v,children:n})})},"Tooltip"),tf="TooltipTrigger",td=o.forwardRef(e7(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...a}=e,s=tc(tf,n),c=ti(tf,n),u=tn(n),f=o.useRef(null),d=(0,l.s)(t,f,s.onTriggerChange),p=o.useRef(!1),h=o.useRef(!1),g=o.useCallback(()=>p.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,eL.jsx)(eG,{asChild:!0,...u,children:(0,eL.jsx)(eP.sG.button,{"aria-describedby":s.open?tL(r,s.contentId):r,"data-state":s.stateAttribute,...a,ref:d,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(h.current||c.isPointerInTransitRef.current||(s.onTriggerEnter(),h.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{s.onTriggerLeave(),h.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:(0,i.mK)(e.onBlur,s.onClose),onClick:(0,i.mK)(e.onClick,s.onClose)})})},"TooltipTrigger")),tp="TooltipPortal",[th,tg]=te(tp,{forceMount:void 0}),tm=e7(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=tc(tp,t);return(0,eL.jsx)(th,{scope:t,forceMount:n,children:(0,eL.jsx)(e2.C,{present:n||i.open,children:(0,eL.jsx)(e1.Z,{asChild:!0,container:o,children:r})})})},"TooltipPortal"),ty="TooltipContent",tv=o.forwardRef(e7(function(e,t){let n=tg(ty,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=tc(ty,e.__scopeTooltip);return(0,eL.jsx)(e2.C,{present:r||l.open,children:l.disableHoverableContent?(0,eL.jsx)(tb,{side:o,...i,ref:t}):(0,eL.jsx)(tw,{side:o,...i,ref:t})})},"TooltipContent")),tw=o.forwardRef(e7(function(e,t){let n=tc(ty,e.__scopeTooltip),r=ti(ty,e.__scopeTooltip),i=o.useRef(null),a=(0,l.s)(t,i),[s,c]=o.useState(null),{trigger:u,onClose:f}=n,d=i.current,{onPointerInTransitChange:p}=r,h=o.useCallback(()=>{c(null),p(!1)},[p]),g=o.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=tC(r,n.getBoundingClientRect());c(tE([...tR(r,o),...tT(t.getBoundingClientRect())])),p(!0)},[p]);return o.useEffect(()=>()=>h(),[h]),o.useEffect(()=>{if(u&&d){let e=e7(e=>g(e,d),"handleTriggerLeave"),t=e7(e=>g(e,u),"handleContentLeave");return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[u,d,g,h]),o.useEffect(()=>{if(s){let e=e7(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==d?void 0:d.contains(t)),o=!tk(n,s);r?h():o&&(h(),f())},"handleTrackPointerGrace");return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,d,s,f,h]),(0,eL.jsx)(tb,{...e,ref:a})},"TooltipContentHoverable")),tx=(0,e4.Dc)("TooltipContent"),tb=o.forwardRef(e7(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:u,onPointerDownOutside:f,...d}=e,p=tc(ty,n),h=tn(n),{onClose:g}=p,[m,y]=o.useState(null),v=(0,l.s)(t,y);(0,c.Md)(m),o.useEffect(()=>(document.addEventListener(tr,g),()=>document.removeEventListener(tr,g)),[g]),o.useEffect(()=>{if(p.trigger){let e=e7(e=>{e.target instanceof Node&&e.target.contains(p.trigger)&&g()},"handleScroll");return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[p.trigger,g]);let{setContentId:w}=p;return(0,ej.N)(()=>(w(a),()=>{w(void 0)}),[a,w]),(0,eL.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:e=>e.preventDefault(),onDismiss:g,children:(0,eL.jsxs)(eX,{"data-state":p.stateAttribute,role:i?void 0:"tooltip",id:i?void 0:p.contentId,...h,...d,ref:v,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,eL.jsx)(tx,{children:r}),i?(0,eL.jsx)(e8,{id:p.contentId,role:"tooltip",children:i}):null]})})},"TooltipContentImpl")),tA=o.forwardRef(e7(function(e,t){let{__scopeTooltip:n,...r}=e,o=tn(n);return(0,eL.jsx)(eZ,{...o,...r,ref:t})},"TooltipArrow"));function tC(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}function tR(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function tT(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function tk(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],s=l.x,c=l.y,u=a.x,f=a.y;c>r!=f>r&&n<(u-s)*(r-c)/(f-c)+s&&(o=!o)}return o}function tE(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),tP(t)}function tP(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}function tL(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=new Set;for(let e of t)if("string"==typeof e)for(let t of String(e).trim().split(/\s+/))t&&r.add(t);return r.size>0?Array.from(r).join(" "):void 0}e7(tC,"getExitSideFromRect"),e7(tR,"getPaddedExitPoints"),e7(tT,"getPointsFromRect"),e7(tk,"isPointInPolygon"),e7(tE,"getHull"),e7(tP,"getHullPresorted"),e7(tL,"concatAriaDescribedby")},8546:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2115),o=n(3352);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="string"==typeof e?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:null==e?void 0:e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...n.length>0?{aliases:n}:{}}}(e,t,n):e,l=(0,r.forwardRef)((e,t)=>{let{className:n,...l}=e;return(0,r.createElement)(o.default,{ref:t,icon:i,className:n,...l})});return i.name&&(l.displayName=(e=>{let t=(e=>{let t="",n=!1;for(let r of e){if("-"===r||"_"===r||r<=" "){n=t.length>0;continue}0===t.length?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t})(e);return t.charAt(0).toUpperCase()+t.slice(1)})(i.name)),l}},8570:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};o.node;let i=(0,r.A)(o)},8661:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"settings",size:24,node:[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]};o.node;let i=(0,r.A)(o)},9532:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(8546);let o={name:"rotate-ccw-clock",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],aliases:["history"]};o.node;let i=(0,r.A)(o)}}]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7772],{2931:(e,t,n)=>{function r(e,t){this.v=e,this.k=t}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t,n;function i(t,n){try{var o=e[t](n),a=o.value,s=a instanceof r;Promise.resolve(s?a.v:a).then(function(n){if(s){var r="return"===t&&a.k?t:"next";if(!a.k||n.done)return i(r,n);n=e[r](n).value}l(!!o.done,n)},function(e){i("throw",e)})}catch(e){l(2,e)}}function l(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(l,o){var a={key:e,arg:r,resolve:l,reject:o,next:null};n?n=n.next=a:(t=n=a,i(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}n.d(t,{A:()=>eT}),l.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)};let o=Object.entries,a=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,p=Object.freeze,h=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,g=d.apply,m=d.construct;p||(p=function(e){return e}),h||(h=function(e){return e}),g||(g=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),m||(m=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let k=F(Array.prototype.forEach);Array.prototype.indexOf;let b=F(Array.prototype.lastIndexOf),x=F(Array.prototype.pop),y=F(Array.prototype.push),w=F(Array.prototype.slice),S=F(Array.prototype.splice),T=Array.isArray,A=j(Set),_=F(Set.prototype.add),R=F(Set.prototype.has),E=F(String.prototype.toLowerCase),v=F(String.prototype.toString),z=F(String.prototype.match),$=F(String.prototype.replace),C=F(String.prototype.indexOf),P=F(String.prototype.trim),I=F(Number.prototype.toString),O=F(Boolean.prototype.toString),D="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),N=F(Object.prototype.hasOwnProperty),M=F(Object.prototype.toString),B=F(RegExp.prototype.test),U=j(TypeError);function F(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return g(e,t,r)}}function j(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(e,n)}}function q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(a&&a(e,null),!T(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(s(t)||(t[r]=e),i=e)}e[i]=!0}return e}function H(e){let t=f(null);for(let r of o(e)){var n=function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,o,a=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(r,2)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let l=n[0],o=n[1];N(e,l)&&(T(o)?t[l]=function(e){for(let t=0;t<e.length;t++)N(e,t)||(e[t]=null);return e}(o):o&&"object"==typeof o&&o.constructor===Object?t[l]=H(o):t[l]=o)}return t}function Z(e,t){for(;null!==e;){let n=u(e,t);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}e=c(e)}return function(){return null}}let W=p(["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"]),G=p(["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"]),Y=p(["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"]),Q=p(["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"]),X=p(["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"]),K=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=p(["#text"]),J=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),ee=p(["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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),et=p(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),en=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),er=h(/{{[\w\W]*|^[\w\W]*}}/g),ei=h(/<%[\w\W]*|^[\w\W]*%>/g),el=h(/\${[\w\W]*/g),eo=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),ea=h(/^aria-[\-\w]+$/),es=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ec=h(/^(?:\w+script|data):/i),eu=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ep=h(/^html$/i),eh=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ef=h(/<[/\w!]/g),ed=h(/<[/\w]/g),eg=h(/<\/no(script|embed|frames)/i),em=h(/\/>/i),ek={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},eb=p(q({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),ex=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)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=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ey=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ew=function(e,t,n,r){return N(e,t)&&T(e[t])?q(r.base?H(r.base):{},e[t],r.transform):n},eS=function(e,t,n){let r=N(e,t)?e[t]:void 0;return r&&"object"==typeof r?H(r):n()};var eT=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.4.17",i.removed=[],!r||!r.document||r.document.nodeType!==ek.document||!r.Element)return i.isSupported=!1,i;let l=r.document,a=l,s=a.currentScript;r.DocumentFragment;let d=r.HTMLTemplateElement,g=r.Node,m=r.Element,j=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let eT=r.DOMParser,eA=r.trustedTypes,e_=m.prototype,eR=Z(e_,"cloneNode"),eE=Z(e_,"remove"),ev=Z(e_,"removeAttributeNode"),ez=Z(e_,"nextSibling"),e$=Z(e_,"childNodes"),eC=Z(e_,"parentNode"),eP=Z(e_,"shadowRoot"),eI=Z(e_,"attributes"),eO=g&&g.prototype?Z(g.prototype,"nodeType"):null,eD=g&&g.prototype?Z(g.prototype,"nodeName"):null,eL=g&&g.prototype?Z(g.prototype,"ownerDocument"):null,eN=function(e){return eO?eO(e):e.nodeType},eM=function(e){return eD?eD(e):e.nodeName},eB=function(e,t){for(;null!==e;){let n=u(e,t);if(n)return n.get?F(n.get):null;e=c(e)}return null}(e_,"namespaceURI"),eU=function(e){return eB?eB(e):e.namespaceURI};if("function"==typeof d){let e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}let eF="",ej=!1,eq=0,eH=function(){if(eq>0)throw U('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eZ=function(e){eH(),eq++;try{return t.createHTML(e)}finally{eq--}},eW=function(e){eH(),eq++;try{return t.createScriptURL(e)}finally{eq--}},eG=l,eY=eG.implementation,eQ=eG.createNodeIterator,eX=eG.createDocumentFragment,eK=eG.getElementsByTagName,eV=a.importNode,eJ=ey();i.isSupported="function"==typeof o&&"function"==typeof eC&&eY&&void 0!==eY.createHTMLDocument;let e0=es,e1=null,e3=q({},[...W,...G,...Y,...X,...V]),e2=null,e9=q({},[...J,...ee,...et,...en]),e4=Object.seal(f(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}})),e6=null,e5=null,e7=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),e8=!0,te=!0,tt=!1,tn=!0,tr=!1,ti=!0,tl=!1,to=!1,ta=null,ts=null,tc=!1,tu=!1,tp=!1,th=!1,tf=!0,td=!1,tg="user-content-",tm=!0,tk=!1,tb=null,tx={},ty=null,tw=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tS=null,tT=q({},["audio","video","img","source","image","track"]),tA=null,t_=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tR="http://www.w3.org/1998/Math/MathML",tE="http://www.w3.org/2000/svg",tv="http://www.w3.org/1999/xhtml",tz=tv,t$=!1,tC=null,tP=q({},[tR,tE,tv],v),tI=p(["mi","mo","mn","ms","mtext"]),tO=q({},tI),tD=p(["annotation-xml"]),tL=q({},tD),tN=q({},["title","style","font","a","script"]),tM=null,tB=["application/xhtml+xml","text/html"],tU=null,tF=null,tj=l.createElement("form"),tq=function(e){return e instanceof RegExp||e instanceof Function},tH=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tF&&tF===e)return;e&&"object"==typeof e||(e={}),e=H(e),tU="application/xhtml+xml"===(tM=-1===tB.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?v:E,e1=ew(e,"ALLOWED_TAGS",e3,{transform:tU}),e2=ew(e,"ALLOWED_ATTR",e9,{transform:tU}),tC=ew(e,"ALLOWED_NAMESPACES",tP,{transform:v}),tA=ew(e,"ADD_URI_SAFE_ATTR",t_,{transform:tU,base:t_}),tS=ew(e,"ADD_DATA_URI_TAGS",tT,{transform:tU,base:tT}),ty=ew(e,"FORBID_CONTENTS",tw,{transform:tU}),e6=ew(e,"FORBID_TAGS",H({}),{transform:tU}),e5=ew(e,"FORBID_ATTR",H({}),{transform:tU}),tx=!!N(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?H(e.USE_PROFILES):e.USE_PROFILES),e8=!1!==e.ALLOW_ARIA_ATTR,te=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tn=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,tr=e.SAFE_FOR_TEMPLATES||!1,ti=!1!==e.SAFE_FOR_XML,tl=e.WHOLE_DOCUMENT||!1,tu=e.RETURN_DOM||!1,tp=e.RETURN_DOM_FRAGMENT||!1,th=e.RETURN_TRUSTED_TYPE||!1,tc=e.FORCE_BODY||!1,tf=!1!==e.SANITIZE_DOM,td=e.SANITIZE_NAMED_PROPS||!1,tm=!1!==e.KEEP_CONTENT,tk=e.IN_PLACE||!1,e0=!function(e){try{return B(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?es:e.ALLOWED_URI_REGEXP,tz="string"==typeof e.NAMESPACE?e.NAMESPACE:tv,tO=eS(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>q({},tI)),tL=eS(e,"HTML_INTEGRATION_POINTS",()=>q({},tD));let r=eS(e,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(e4=f(null),N(r,"tagNameCheck")&&tq(r.tagNameCheck)&&(e4.tagNameCheck=r.tagNameCheck),N(r,"attributeNameCheck")&&tq(r.attributeNameCheck)&&(e4.attributeNameCheck=r.attributeNameCheck),N(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(e4.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),h(e4),tr&&(te=!1),tp&&(tu=!0),tx&&(e1=q({},V),e2=f(null),!0===tx.html&&(q(e1,W),q(e2,J)),!0===tx.svg&&(q(e1,G),q(e2,ee),q(e2,en)),!0===tx.svgFilters&&(q(e1,Y),q(e2,ee),q(e2,en)),!0===tx.mathMl&&(q(e1,X),q(e2,et),q(e2,en))),e7.tagCheck=null,e7.attributeCheck=null,N(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?e7.tagCheck=e.ADD_TAGS:T(e.ADD_TAGS)&&(e1===e3&&(e1=H(e1)),q(e1,e.ADD_TAGS,tU))),N(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?e7.attributeCheck=e.ADD_ATTR:T(e.ADD_ATTR)&&(e2===e9&&(e2=H(e2)),q(e2,e.ADD_ATTR,tU))),N(e,"ADD_FORBID_CONTENTS")&&T(e.ADD_FORBID_CONTENTS)&&(ty===tw&&(ty=H(ty)),q(ty,e.ADD_FORBID_CONTENTS,tU)),tm&&(e1["#text"]=!0),tl&&q(e1,["html","head","body"]),e1.table&&(q(e1,["tbody"]),delete e6.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{eF=eZ("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,eF=""):(void 0===t&&(ej||(n=ex(eA,s),ej=!0),t=n),t&&"string"==typeof eF&&(eF=eZ("")));p&&p(e),tF=e},tZ=q({},[...G,...Y,...Q]),tW=q({},[...X,...K]),tG=function(e){var t,n,r,i,l,o;let a,s,c=eU(e),u=E(eM(e)),p=eC(e);return p&&eN(p)===ek.element?(a={namespaceURI:eU(p)},s=E(eM(p))):(a={namespaceURI:tz},s="template"),!!tC[c]&&(c===tE?(t=a,n=s,t.namespaceURI===tv?"svg"===u:t.namespaceURI===tR?"svg"===u&&("annotation-xml"===n||tO[n]):!!tZ[u]):c===tR?(r=a,i=s,r.namespaceURI===tv?"math"===u:r.namespaceURI===tE?"math"===u&&tL[i]:!!tW[u]):c===tv?(l=a,o=s,(l.namespaceURI!==tE||!!tL[o])&&(l.namespaceURI!==tR||!!tO[o])&&!tW[u]&&(tN[u]||!tZ[u])):"application/xhtml+xml"===tM&&!!tC[c])},tY=function(e){y(i.removed,{element:e});try{eC(e).removeChild(e)}catch(t){if(eE(e),!eC(e))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tQ=function(e,t,n){try{ev(e,t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tX=function(e){t0(e);let t=e$(e);t&&k(w(t),e=>{try{eE(e)}catch(e){}});let n=eN(e)===ek.element?eI(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;"string"==typeof i&&tQ(e,r,i)}},tK=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}y(i.removed,{attribute:n||null,from:t});try{n?ev(t,n):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(tu||tp)try{tY(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tV=function(e){let t=eI(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;"string"!=typeof i||e2[tU(i)]||tQ(e,r,i)}},tJ=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(!1===t(e))continue;if(n&&eN(e)===ek.element){let t=eP(e);nl(t)&&r.push(t)}let i=e$(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},t0=function(e){tJ(e,e=>{eN(e)===ek.element&&tV(e)})},t1=function(e){let t=[];return tJ(e,e=>{t.push(e)},!0),t},t3=function(e,t){let n=A();k(t1(e),e=>{eN(e)===ek.element&&_(n,e)}),k(t,e=>{eN(e)!==ek.element||R(n,e)||tV(e)})},t2=function(e,t){let n=!1;return k(i.removed,t=>{t.element&&(n=n||t.element===e,t0(t.element))}),t3(e,t),n},t9=function(e,t){let n=tb,r=null,i=()=>(r||(r=A(),k(t,e=>{_(r,e)})),r);for(let t=0;;t++){let r=t1(e),l=[e],o=!1;if(k(r,e=>{eN(e)===ek.documentFragment?y(l,e):o||R(n,e)||(o=R(i(),e))}),!o)return;if(t>=8)throw U("the tree kept changing during in-place sanitization; refusing to return it");k(l,(t,n)=>{t4(t,n>0,e,i())})}},t4=function(e,t,n,r){let i,l=ne(e);for(;i=l.nextNode();)!(!R(r,i)||R(tb,i))&&(t&&na(eJ.uponSanitizeShadowNode,i,null),nh(i,n),nx(i,n),nl(i.content)&&ny(i.content))},t6=function(e){tb&&_(tb,e)},t5=function(e,t){return!!ti&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},t7=function(e){ti&&tJ(e,e=>{let t=eN(e);if(t===ek.processingInstruction||t===ek.comment&&B(ed,e.data)){try{eE(e)}catch(e){}return!1}if(t===ek.element){let t=tU(eM(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&t5("for",t)&&e.removeAttribute("for")}catch(e){}}return!0})},t8=function(e){let n=null,r=null;if(tc)e="<remove></remove>"+e;else{let t=z(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tM&&tz===tv&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eZ(e):e;if(tz===tv)try{n=new eT().parseFromString(i,tM)}catch(e){}if(!n||!n.documentElement){n=eY.createDocument(tz,"template",null);try{n.documentElement.innerHTML=t$?eF:i}catch(e){}}let o=n.body||n.documentElement;return(e&&r&&o.insertBefore(l.createTextNode(r),o.childNodes[0]||null),tz===tv)?eK.call(n,tl?"html":"body")[0]:tl?n.documentElement:o},ne=function(e){let t=eL?eL(e):e.ownerDocument;return eQ.call(t||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},nt=function(e){return e=$(e,er," "),e=$(e,ei," "),e=$(e,el," ")},nn=function(e){var t;nr(e);let n=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");n&&k(n,e=>{nl(e.content)&&nn(e.content)})},nr=function(e){e.normalize();let t=eL?eL(e):e.ownerDocument,n=eQ.call(t||e,e,j.SHOW_TEXT|j.SHOW_COMMENT|j.SHOW_CDATA_SECTION|j.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=nt(r.data),r=n.nextNode()},ni=function(e){let t=eD?eD(e):null;return"string"==typeof t&&"form"===tU(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eI(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eO(e)||e.childNodes!==e$(e))},nl=function(e){if(!eO||"object"!=typeof e||null===e)return!1;try{return eO(e)===ek.documentFragment}catch(e){return!1}},no=function(e){if(!eO||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eO(e)}catch(e){return!1}};function na(e,t,n){0!==e.length&&k(e,e=>{e.call(i,t,n,tF)})}let ns=function(e,t){if(e instanceof RegExp)return B(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},nc=function(e,t,n){if(!e6[t]&&ng(t)&&ns(e4.tagNameCheck,t))return!1;if(tm&&!ty[t]&&!ty[E(t)]){let t=eC(e),r=e$(e);if(r&&t){let i=r.length;for(let l=i-1;l>=0;--l){let i=e===n?eR(r[l],!0):r[l];t.insertBefore(i,ez(e))}}}return tY(e),!0},nu=function(e,t,n,r){return 0===e.length?t:t===n||t===r?H(t):t},np=function(e,t){return e!==t&&null===eC(e)&&(tk&&t0(e),!0)},nh=function(e,t){if(t6(e),na(eJ.beforeSanitizeElements,e,null),np(e,t))return!0;if(ni(e))return tY(e),!0;let n=tU(eM(e));if(e1=nu(eJ.uponSanitizeElement,e1,e3,ta),na(eJ.uponSanitizeElement,e,{tagName:n,allowedTags:e1}),np(e,t))return!0;if(ti&&e.hasChildNodes()&&!no(e.firstElementChild)&&B(ef,e.textContent)&&B(ef,e.innerHTML)||ti&&eb[n]&&eN(e)===ek.element&&eU(e)===tv&&(no(e.firstElementChild)||"string"==typeof e.textContent&&B(ef,e.textContent))||e.nodeType===ek.processingInstruction||ti&&e.nodeType===ek.comment&&B(ed,e.data))return tY(e),!0;if(e6[n]||!(e7.tagCheck instanceof Function&&e7.tagCheck(n))&&!e1[n]){let r=nc(e,n,t);return!!(!1===r&&(na(eJ.afterSanitizeElements,e,null),np(e,t)))||r}if(eN(e)===ek.element&&!tG(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&B(eg,e.innerHTML))return tY(e),!0;if(tr&&e.nodeType===ek.text){let t=nt(e.textContent);e.textContent!==t&&(y(i.removed,{element:e.cloneNode()}),e.textContent=t)}return na(eJ.afterSanitizeElements,e,null),np(e,t)},nf=function(e,t,n){if(e5[t]||t5(t,e)||tf&&("id"===t||"name"===t)&&(n in l||n in tj))return!1;let r=e2[t]||e7.attributeCheck instanceof Function&&e7.attributeCheck(t,e);return!!(te&&B(eo,t)||e8&&B(ea,t))||(r?!(!(tA[t]||B(e0,$(n,eu,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!tS[e])&&(!tt||B(ec,$(n,eu,""))))||!n:ng(e)&&ns(e4.tagNameCheck,e)&&ns(e4.attributeNameCheck,t,e)||"is"===t&&e4.allowCustomizedBuiltInElements&&ns(e4.tagNameCheck,n))},nd=q({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ng=function(e){return!nd[E(e)]&&B(eh,e)},nm=function(e,n,r,i){if(t&&"object"==typeof eA&&"function"==typeof eA.getAttributeType&&!r)switch(eA.getAttributeType(e,n)){case"TrustedHTML":return eZ(i);case"TrustedScriptURL":return eW(i)}return i},nk=function(e,t,n,r){try{if(n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),ni(e))return tY(e),!1;return!0}catch(n){return tK(t,e),!1}},nb=function(e,t){return!!(ti&&B(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t))||"attributename"===E(e)&&null!==z(t,"href")},nx=function(e,t){if(na(eJ.beforeSanitizeAttributes,e,null),np(e,t))return;let n=e.attributes;if(!n||ni(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:e2=nu(eJ.uponSanitizeAttribute,e2,e9,ts),forceKeepAttr:void 0},l=n.length,o=tU(e.nodeName);for(;l--;){let t=n[l],a=t.name,s=t.namespaceURI,c=t.value,u=tU(a),p="value"===a?c:P(c),h=!1;if(r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,na(eJ.uponSanitizeAttribute,e,r),p=r.attrValue,td&&("id"===u||"name"===u)&&0!==C(p,tg)&&(tK(a,e,t),p=tg+p,h=!0),nb(a,p)){tK(a,e,t);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!tn&&B(em,p)||(tr&&(p=nt(p)),!nf(o,u,p))){tK(a,e,t);continue}(p=nm(o,u,s,p))!==c&&nk(e,a,s,p)&&h&&x(i.removed)}}na(eJ.afterSanitizeAttributes,e,null),np(e,t)},ny=function(e){let t=null,n=ne(e);for(na(eJ.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(na(eJ.uponSanitizeShadowNode,t,null),nh(t,e),nx(t,e),nl(t.content)&&ny(t.content),eN(t)===ek.element){let e=eP(t);nl(e)&&(nw(e),ny(e))}tr&&nr(e),na(eJ.afterSanitizeShadowDOM,e,null)},nw=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){ny(e.shadow);continue}let n=e.node,r=eN(n)===ek.element,i=e$(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=eD?eD(n):null;if("string"==typeof e&&"template"===tU(e)){let e=n.content;nl(e)&&t.push({node:e,shadow:null})}}if(r){let e=eP(n);nl(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,l=null,o=null,s=null;if((t$=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!no(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return I(e);case"boolean":return O(e);case"bigint":return D?D(e):"0";case"symbol":return L?L(e):"Symbol()";case"undefined":default:return M(e);case"function":case"object":{if(null===e)return M(e);let t=Z(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:M(n)}return M(e)}}}(e)))throw U("dirty is not a string, aborting");if(!i.isSupported)return e;to?(e1=ta,e2=ts):tH(n),(eJ.uponSanitizeElement.length>0||eJ.uponSanitizeAttribute.length>0)&&(e1=H(e1)),eJ.uponSanitizeAttribute.length>0&&(e2=H(e2)),i.removed=[];let c=tk&&"string"!=typeof e&&no(e),u=[],p=tb;if(c){t7(e);let t=eM(e);if("string"==typeof t){let n=tU(t);if(!e1[n]||e6[n])throw tX(e),U("root node is forbidden and cannot be sanitized in-place")}if(ni(e))throw tX(e),U("root node is clobbered and cannot be sanitized in-place");u=t1(e),tb=A()}else if(no(e))(l=(r=t8("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===ek.element&&"BODY"===l.nodeName||"HTML"===l.nodeName?r=l:r.appendChild(l),nw(r);else{if(!tu&&!tr&&!tl&&-1===e.indexOf("<"))return t&&th?eZ(e):e;if(!(r=t8(e)))return tu?null:th?eF:""}r&&tc&&tY(r.firstChild);let h=c?e:r;try{c&&nw(e);let t=ne(h);for(;o=t.nextNode();)nh(o,h),nx(o,h),nl(o.content)&&ny(o.content);c&&t9(e,u)}catch(t){throw c&&(tX(e),t2(e,u)),t}finally{tb=p}if(c){if(t2(e,u))throw U("a node selected for removal could not be safely returned; refusing to sanitize in place");return tr&&nn(e),e}if(tu){if(tr&&nn(r),tp)for(s=eX.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(e2.shadowroot||e2.shadowrootmode)&&(s=eV.call(a,s,!0)),s}let f=tl?r.outerHTML:r.innerHTML;return tl&&e1["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&B(ep,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),tr&&(f=nt(f)),t&&th?eZ(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tH(e),to=!0,ta=e1,ts=e2},i.clearConfig=function(){tF=null,to=!1,ta=null,ts=null,t=n,eF=""},i.isValidAttribute=function(e,t,n){tF||tH({});let r=tU(e),i=tU(t);return!("string"==typeof n&&(nb(t,n)||!tn&&B(em,n)))&&nf(r,i,n)},i.addHook=function(e,t){"function"==typeof t&&N(eJ,e)&&y(eJ[e],t)},i.removeHook=function(e,t){if(N(eJ,e)){if(void 0!==t){let n=b(eJ[e],t);return -1===n?void 0:S(eJ[e],n,1)[0]}return x(eJ[e])}},i.removeHooks=function(e){N(eJ,e)&&(eJ[e]=[])},i.removeAllHooks=function(){eJ=ey()},i}()},4558:(e,t,n)=>{function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:()=>eI});var i=r(),l={exec:()=>null};function o(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function a(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(c.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var s=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),c={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,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:o(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:o(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:o(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:</?(?:${x})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:o(e=>RegExp(`^ {0,${e}}>`))},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,h=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=a(h).replace(/bull/g,p).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d=a(h).replace(/bull/g,p).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,m=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=a(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),x="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",y=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,w=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",y).replace("tag",x).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S=e=>a(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex(),T=S(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),A=S(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),_={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:k,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:w,lheading:f,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:T,table:l,text:/^[^\n]+/},R=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex(),E={..._,lheading:d,table:R,paragraph:a(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex()},v={..._,html:a(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",y).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:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(g).replace("hr",u).replace("heading",` *#{1,6} *[^
|
|
2
|
-
]`).replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,$=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,P=/[^\s\p{P}\p{S}]/u,
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3481],{2931:(e,t,n)=>{function r(e,t){this.v=e,this.k=t}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t,n;function i(t,n){try{var o=e[t](n),a=o.value,s=a instanceof r;Promise.resolve(s?a.v:a).then(function(n){if(s){var r="return"===t&&a.k?t:"next";if(!a.k||n.done)return i(r,n);n=e[r](n).value}l(!!o.done,n)},function(e){i("throw",e)})}catch(e){l(2,e)}}function l(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?i(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(l,o){var a={key:e,arg:r,resolve:l,reject:o,next:null};n?n=n.next=a:(t=n=a,i(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}n.d(t,{A:()=>eT}),l.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)};let o=Object.entries,a=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,p=Object.freeze,h=Object.seal,f=Object.create,d="undefined"!=typeof Reflect&&Reflect,g=d.apply,m=d.construct;p||(p=function(e){return e}),h||(h=function(e){return e}),g||(g=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),m||(m=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});let k=j(Array.prototype.forEach);Array.prototype.indexOf;let b=j(Array.prototype.lastIndexOf),x=j(Array.prototype.pop),y=j(Array.prototype.push),w=j(Array.prototype.slice),S=j(Array.prototype.splice),T=Array.isArray,A=F(Set),_=j(Set.prototype.add),R=j(Set.prototype.has),v=j(String.prototype.toLowerCase),E=j(String.prototype.toString),z=j(String.prototype.match),$=j(String.prototype.replace),C=j(String.prototype.indexOf),P=j(String.prototype.trim),N=j(Number.prototype.toString),I=j(Boolean.prototype.toString),O="undefined"==typeof BigInt?null:j(BigInt.prototype.toString),D="undefined"==typeof Symbol?null:j(Symbol.prototype.toString),L=j(Object.prototype.hasOwnProperty),M=j(Object.prototype.toString),B=j(RegExp.prototype.test),U=F(TypeError);function j(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return g(e,t,r)}}function F(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(e,n)}}function q(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;if(a&&a(e,null),!T(t))return e;let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){let e=n(i);e!==i&&(s(t)||(t[r]=e),i=e)}e[i]=!0}return e}function H(e){let t=f(null);for(let r of o(e)){var n=function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,l,o,a=[],s=!0,c=!1;try{l=(n=n.call(e)).next,!1;for(;!(s=(r=l.call(n)).done)&&(a.push(r.value),a.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return a}}(r,2)||function(e,t){if(e){if("string"==typeof e)return i(e,2);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(r,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let l=n[0],o=n[1];L(e,l)&&(T(o)?t[l]=function(e){for(let t=0;t<e.length;t++)L(e,t)||(e[t]=null);return e}(o):o&&"object"==typeof o&&o.constructor===Object?t[l]=H(o):t[l]=o)}return t}function W(e,t){for(;null!==e;){let n=u(e,t);if(n){if(n.get)return j(n.get);if("function"==typeof n.value)return j(n.value)}e=c(e)}return function(){return null}}let Z=p(["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"]),G=p(["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"]),Y=p(["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"]),Q=p(["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"]),X=p(["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"]),K=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=p(["#text"]),J=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),ee=p(["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","dominant-baseline","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","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),et=p(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),en=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),er=h(/{{[\w\W]*|^[\w\W]*}}/g),ei=h(/<%[\w\W]*|^[\w\W]*%>/g),el=h(/\${[\w\W]*/g),eo=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),ea=h(/^aria-[\-\w]+$/),es=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ec=h(/^(?:\w+script|data):/i),eu=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ep=h(/^html$/i),eh=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ef=h(/<[/\w!]/g),ed=h(/<[/\w]/g),eg=h(/<\/no(script|embed|frames)/i),em=h(/\/>/i),ek={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},eb=p(q({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),ex=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)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=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ey=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ew=function(e,t,n,r){return L(e,t)&&T(e[t])?q(r.base?H(r.base):{},e[t],r.transform):n},eS=function(e,t,n){let r=L(e,t)?e[t]:void 0;return r&&"object"==typeof r?H(r):n()};var eT=function e(){let t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.4.17",i.removed=[],!r||!r.document||r.document.nodeType!==ek.document||!r.Element)return i.isSupported=!1,i;let l=r.document,a=l,s=a.currentScript;r.DocumentFragment;let d=r.HTMLTemplateElement,g=r.Node,m=r.Element,F=r.NodeFilter;void 0===r.NamedNodeMap&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;let eT=r.DOMParser,eA=r.trustedTypes,e_=m.prototype,eR=W(e_,"cloneNode"),ev=W(e_,"remove"),eE=W(e_,"removeAttributeNode"),ez=W(e_,"nextSibling"),e$=W(e_,"childNodes"),eC=W(e_,"parentNode"),eP=W(e_,"shadowRoot"),eN=W(e_,"attributes"),eI=g&&g.prototype?W(g.prototype,"nodeType"):null,eO=g&&g.prototype?W(g.prototype,"nodeName"):null,eD=g&&g.prototype?W(g.prototype,"ownerDocument"):null,eL=function(e){return eI?eI(e):e.nodeType},eM=function(e){return eO?eO(e):e.nodeName},eB=function(e,t){for(;null!==e;){let n=u(e,t);if(n)return n.get?j(n.get):null;e=c(e)}return null}(e_,"namespaceURI"),eU=function(e){return eB?eB(e):e.namespaceURI};if("function"==typeof d){let e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}let ej="",eF=!1,eq=0,eH=function(){if(eq>0)throw U('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},eW=function(e){eH(),eq++;try{return t.createHTML(e)}finally{eq--}},eZ=function(e){eH(),eq++;try{return t.createScriptURL(e)}finally{eq--}},eG=l,eY=eG.implementation,eQ=eG.createNodeIterator,eX=eG.createDocumentFragment,eK=eG.getElementsByTagName,eV=a.importNode,eJ=ey();i.isSupported="function"==typeof o&&"function"==typeof eC&&eY&&void 0!==eY.createHTMLDocument;let e0=es,e1=null,e3=q({},[...Z,...G,...Y,...X,...V]),e2=null,e9=q({},[...J,...ee,...et,...en]),e4=Object.seal(f(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}})),e6=null,e5=null,e8=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),e7=!0,te=!0,tt=!1,tn=!0,tr=!1,ti=!0,tl=!1,to=!1,ta=null,ts=null,tc=!1,tu=!1,tp=!1,th=!1,tf=!0,td=!1,tg="user-content-",tm=!0,tk=!1,tb=null,tx={},ty=null,tw=q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),tS=null,tT=q({},["audio","video","img","source","image","track"]),tA=null,t_=q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tR="http://www.w3.org/1998/Math/MathML",tv="http://www.w3.org/2000/svg",tE="http://www.w3.org/1999/xhtml",tz=tE,t$=!1,tC=null,tP=q({},[tR,tv,tE],E),tN=p(["mi","mo","mn","ms","mtext"]),tI=q({},tN),tO=p(["annotation-xml"]),tD=q({},tO),tL=q({},["title","style","font","a","script"]),tM=null,tB=["application/xhtml+xml","text/html"],tU=null,tj=null,tF=l.createElement("form"),tq=function(e){return e instanceof RegExp||e instanceof Function},tH=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(tj&&tj===e)return;e&&"object"==typeof e||(e={}),e=H(e),tU="application/xhtml+xml"===(tM=-1===tB.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?E:v,e1=ew(e,"ALLOWED_TAGS",e3,{transform:tU}),e2=ew(e,"ALLOWED_ATTR",e9,{transform:tU}),tC=ew(e,"ALLOWED_NAMESPACES",tP,{transform:E}),tA=ew(e,"ADD_URI_SAFE_ATTR",t_,{transform:tU,base:t_}),tS=ew(e,"ADD_DATA_URI_TAGS",tT,{transform:tU,base:tT}),ty=ew(e,"FORBID_CONTENTS",tw,{transform:tU}),e6=ew(e,"FORBID_TAGS",H({}),{transform:tU}),e5=ew(e,"FORBID_ATTR",H({}),{transform:tU}),tx=!!L(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?H(e.USE_PROFILES):e.USE_PROFILES),e7=!1!==e.ALLOW_ARIA_ATTR,te=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tn=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,tr=e.SAFE_FOR_TEMPLATES||!1,ti=!1!==e.SAFE_FOR_XML,tl=e.WHOLE_DOCUMENT||!1,tu=e.RETURN_DOM||!1,tp=e.RETURN_DOM_FRAGMENT||!1,th=e.RETURN_TRUSTED_TYPE||!1,tc=e.FORCE_BODY||!1,tf=!1!==e.SANITIZE_DOM,td=e.SANITIZE_NAMED_PROPS||!1,tm=!1!==e.KEEP_CONTENT,tk=e.IN_PLACE||!1,e0=!function(e){try{return B(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?es:e.ALLOWED_URI_REGEXP,tz="string"==typeof e.NAMESPACE?e.NAMESPACE:tE,tI=eS(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>q({},tN)),tD=eS(e,"HTML_INTEGRATION_POINTS",()=>q({},tO));let r=eS(e,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(e4=f(null),L(r,"tagNameCheck")&&tq(r.tagNameCheck)&&(e4.tagNameCheck=r.tagNameCheck),L(r,"attributeNameCheck")&&tq(r.attributeNameCheck)&&(e4.attributeNameCheck=r.attributeNameCheck),L(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(e4.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),h(e4),tr&&(te=!1),tp&&(tu=!0),tx&&(e1=q({},V),e2=f(null),!0===tx.html&&(q(e1,Z),q(e2,J)),!0===tx.svg&&(q(e1,G),q(e2,ee),q(e2,en)),!0===tx.svgFilters&&(q(e1,Y),q(e2,ee),q(e2,en)),!0===tx.mathMl&&(q(e1,X),q(e2,et),q(e2,en))),e8.tagCheck=null,e8.attributeCheck=null,L(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?e8.tagCheck=e.ADD_TAGS:T(e.ADD_TAGS)&&(e1===e3&&(e1=H(e1)),q(e1,e.ADD_TAGS,tU))),L(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?e8.attributeCheck=e.ADD_ATTR:T(e.ADD_ATTR)&&(e2===e9&&(e2=H(e2)),q(e2,e.ADD_ATTR,tU))),L(e,"ADD_FORBID_CONTENTS")&&T(e.ADD_FORBID_CONTENTS)&&(ty===tw&&(ty=H(ty)),q(ty,e.ADD_FORBID_CONTENTS,tU)),tm&&(e1["#text"]=!0),tl&&q(e1,["html","head","body"]),e1.table&&(q(e1,["tbody"]),delete e6.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=t;t=e.TRUSTED_TYPES_POLICY;try{ej=eW("")}catch(e){throw t=n,e}}else null===e.TRUSTED_TYPES_POLICY?(t=void 0,ej=""):(void 0===t&&(eF||(n=ex(eA,s),eF=!0),t=n),t&&"string"==typeof ej&&(ej=eW("")));p&&p(e),tj=e},tW=q({},[...G,...Y,...Q]),tZ=q({},[...X,...K]),tG=function(e){var t,n,r,i,l,o;let a,s,c=eU(e),u=v(eM(e)),p=eC(e);return p&&eL(p)===ek.element?(a={namespaceURI:eU(p)},s=v(eM(p))):(a={namespaceURI:tz},s="template"),!!tC[c]&&(c===tv?(t=a,n=s,t.namespaceURI===tE?"svg"===u:t.namespaceURI===tR?"svg"===u&&("annotation-xml"===n||tI[n]):!!tW[u]):c===tR?(r=a,i=s,r.namespaceURI===tE?"math"===u:r.namespaceURI===tv?"math"===u&&tD[i]:!!tZ[u]):c===tE?(l=a,o=s,(l.namespaceURI!==tv||!!tD[o])&&(l.namespaceURI!==tR||!!tI[o])&&!tZ[u]&&(tL[u]||!tW[u])):"application/xhtml+xml"===tM&&!!tC[c])},tY=function(e){y(i.removed,{element:e});try{eC(e).removeChild(e)}catch(t){if(ev(e),!eC(e))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tQ=function(e,t,n){try{eE(e,t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tX=function(e){t0(e);let t=e$(e);t&&k(w(t),e=>{try{ev(e)}catch(e){}});let n=eL(e)===ek.element?eN(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;"string"==typeof i&&tQ(e,r,i)}},tK=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}y(i.removed,{attribute:n||null,from:t});try{n?eE(t,n):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(tu||tp)try{tY(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tV=function(e){let t=eN(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;"string"!=typeof i||e2[tU(i)]||tQ(e,r,i)}},tJ=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(!1===t(e))continue;if(n&&eL(e)===ek.element){let t=eP(e);nl(t)&&r.push(t)}let i=e$(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},t0=function(e){tJ(e,e=>{eL(e)===ek.element&&tV(e)})},t1=function(e){let t=[];return tJ(e,e=>{t.push(e)},!0),t},t3=function(e,t){let n=A();k(t1(e),e=>{eL(e)===ek.element&&_(n,e)}),k(t,e=>{eL(e)!==ek.element||R(n,e)||tV(e)})},t2=function(e,t){let n=!1;return k(i.removed,t=>{t.element&&(n=n||t.element===e,t0(t.element))}),t3(e,t),n},t9=function(e,t){let n=tb,r=null,i=()=>(r||(r=A(),k(t,e=>{_(r,e)})),r);for(let t=0;;t++){let r=t1(e),l=[e],o=!1;if(k(r,e=>{eL(e)===ek.documentFragment?y(l,e):o||R(n,e)||(o=R(i(),e))}),!o)return;if(t>=8)throw U("the tree kept changing during in-place sanitization; refusing to return it");k(l,(t,n)=>{t4(t,n>0,e,i())})}},t4=function(e,t,n,r){let i,l=ne(e);for(;i=l.nextNode();)!(!R(r,i)||R(tb,i))&&(t&&na(eJ.uponSanitizeShadowNode,i,null),nh(i,n),nx(i,n),nl(i.content)&&ny(i.content))},t6=function(e){tb&&_(tb,e)},t5=function(e,t){return!!ti&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},t8=function(e){ti&&tJ(e,e=>{let t=eL(e);if(t===ek.processingInstruction||t===ek.comment&&B(ed,e.data)){try{ev(e)}catch(e){}return!1}if(t===ek.element){let t=tU(eM(e));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&t5("for",t)&&e.removeAttribute("for")}catch(e){}}return!0})},t7=function(e){let n=null,r=null;if(tc)e="<remove></remove>"+e;else{let t=z(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===tM&&tz===tE&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?eW(e):e;if(tz===tE)try{n=new eT().parseFromString(i,tM)}catch(e){}if(!n||!n.documentElement){n=eY.createDocument(tz,"template",null);try{n.documentElement.innerHTML=t$?ej:i}catch(e){}}let o=n.body||n.documentElement;return(e&&r&&o.insertBefore(l.createTextNode(r),o.childNodes[0]||null),tz===tE)?eK.call(n,tl?"html":"body")[0]:tl?n.documentElement:o},ne=function(e){let t=eD?eD(e):e.ownerDocument;return eQ.call(t||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},nt=function(e){return e=$(e,er," "),e=$(e,ei," "),e=$(e,el," ")},nn=function(e){var t;nr(e);let n=null==(t=e.querySelectorAll)?void 0:t.call(e,"template");n&&k(n,e=>{nl(e.content)&&nn(e.content)})},nr=function(e){e.normalize();let t=eD?eD(e):e.ownerDocument,n=eQ.call(t||e,e,F.SHOW_TEXT|F.SHOW_COMMENT|F.SHOW_CDATA_SECTION|F.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=nt(r.data),r=n.nextNode()},ni=function(e){let t=eO?eO(e):null;return"string"==typeof t&&"form"===tU(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==eN(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==eI(e)||e.childNodes!==e$(e))},nl=function(e){if(!eI||"object"!=typeof e||null===e)return!1;try{return eI(e)===ek.documentFragment}catch(e){return!1}},no=function(e){if(!eI||"object"!=typeof e||null===e)return!1;try{return"number"==typeof eI(e)}catch(e){return!1}};function na(e,t,n){0!==e.length&&k(e,e=>{e.call(i,t,n,tj)})}let ns=function(e,t){if(e instanceof RegExp)return B(e,t);if(e instanceof Function){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return!!e(t,...r)}return!1},nc=function(e,t,n){if(!e6[t]&&ng(t)&&ns(e4.tagNameCheck,t))return!1;if(tm&&!ty[t]&&!ty[v(t)]){let t=eC(e),r=e$(e);if(r&&t){let i=r.length;for(let l=i-1;l>=0;--l){let i=e===n?eR(r[l],!0):r[l];t.insertBefore(i,ez(e))}}}return tY(e),!0},nu=function(e,t,n,r){return 0===e.length?t:t===n||t===r?H(t):t},np=function(e,t){return e!==t&&null===eC(e)&&(tk&&t0(e),!0)},nh=function(e,t){if(t6(e),na(eJ.beforeSanitizeElements,e,null),np(e,t))return!0;if(ni(e))return tY(e),!0;let n=tU(eM(e));if(e1=nu(eJ.uponSanitizeElement,e1,e3,ta),na(eJ.uponSanitizeElement,e,{tagName:n,allowedTags:e1}),np(e,t))return!0;if(ti&&e.hasChildNodes()&&!no(e.firstElementChild)&&B(ef,e.textContent)&&B(ef,e.innerHTML)||ti&&eb[n]&&eL(e)===ek.element&&eU(e)===tE&&(no(e.firstElementChild)||"string"==typeof e.textContent&&B(ef,e.textContent))||e.nodeType===ek.processingInstruction||ti&&e.nodeType===ek.comment&&B(ed,e.data))return tY(e),!0;if(e6[n]||!(e8.tagCheck instanceof Function&&e8.tagCheck(n))&&!e1[n]){let r=nc(e,n,t);return!!(!1===r&&(na(eJ.afterSanitizeElements,e,null),np(e,t)))||r}if(eL(e)===ek.element&&!tG(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&B(eg,e.innerHTML))return tY(e),!0;if(tr&&e.nodeType===ek.text){let t=nt(e.textContent);e.textContent!==t&&(y(i.removed,{element:e.cloneNode()}),e.textContent=t)}return na(eJ.afterSanitizeElements,e,null),np(e,t)},nf=function(e,t,n){if(e5[t]||t5(t,e)||tf&&("id"===t||"name"===t)&&(n in l||n in tF))return!1;let r=e2[t]||e8.attributeCheck instanceof Function&&e8.attributeCheck(t,e);return!!(te&&B(eo,t)||e7&&B(ea,t))||(r?!(!(tA[t]||B(e0,$(n,eu,"")))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!tS[e])&&(!tt||B(ec,$(n,eu,""))))||!n:ng(e)&&ns(e4.tagNameCheck,e)&&ns(e4.attributeNameCheck,t,e)||"is"===t&&e4.allowCustomizedBuiltInElements&&ns(e4.tagNameCheck,n))},nd=q({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ng=function(e){return!nd[v(e)]&&B(eh,e)},nm=function(e,n,r,i){if(t&&"object"==typeof eA&&"function"==typeof eA.getAttributeType&&!r)switch(eA.getAttributeType(e,n)){case"TrustedHTML":return eW(i);case"TrustedScriptURL":return eZ(i)}return i},nk=function(e,t,n,r){try{if(n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),ni(e))return tY(e),!1;return!0}catch(n){return tK(t,e),!1}},nb=function(e,t){return!!(ti&&B(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t))||"attributename"===v(e)&&null!==z(t,"href")},nx=function(e,t){if(na(eJ.beforeSanitizeAttributes,e,null),np(e,t))return;let n=e.attributes;if(!n||ni(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:e2=nu(eJ.uponSanitizeAttribute,e2,e9,ts),forceKeepAttr:void 0},l=n.length,o=tU(e.nodeName);for(;l--;){let t=n[l],a=t.name,s=t.namespaceURI,c=t.value,u=tU(a),p="value"===a?c:P(c),h=!1;if(r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,na(eJ.uponSanitizeAttribute,e,r),p=r.attrValue,td&&("id"===u||"name"===u)&&0!==C(p,tg)&&(tK(a,e,t),p=tg+p,h=!0),nb(a,p)){tK(a,e,t);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!tn&&B(em,p)||(tr&&(p=nt(p)),!nf(o,u,p))){tK(a,e,t);continue}(p=nm(o,u,s,p))!==c&&nk(e,a,s,p)&&h&&x(i.removed)}}na(eJ.afterSanitizeAttributes,e,null),np(e,t)},ny=function(e){let t=null,n=ne(e);for(na(eJ.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(na(eJ.uponSanitizeShadowNode,t,null),nh(t,e),nx(t,e),nl(t.content)&&ny(t.content),eL(t)===ek.element){let e=eP(t);nl(e)&&(nw(e),ny(e))}tr&&nr(e),na(eJ.afterSanitizeShadowDOM,e,null)},nw=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){ny(e.shadow);continue}let n=e.node,r=eL(n)===ek.element,i=e$(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=eO?eO(n):null;if("string"==typeof e&&"template"===tU(e)){let e=n.content;nl(e)&&t.push({node:e,shadow:null})}}if(r){let e=eP(n);nl(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,l=null,o=null,s=null;if((t$=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!no(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return N(e);case"boolean":return I(e);case"bigint":return O?O(e):"0";case"symbol":return D?D(e):"Symbol()";case"undefined":default:return M(e);case"function":case"object":{if(null===e)return M(e);let t=W(e,"toString");if("function"==typeof t){let n=t(e);return"string"==typeof n?n:M(n)}return M(e)}}}(e)))throw U("dirty is not a string, aborting");if(!i.isSupported)return e;to?(e1=ta,e2=ts):tH(n),(eJ.uponSanitizeElement.length>0||eJ.uponSanitizeAttribute.length>0)&&(e1=H(e1)),eJ.uponSanitizeAttribute.length>0&&(e2=H(e2)),i.removed=[];let c=tk&&"string"!=typeof e&&no(e),u=[],p=tb;if(c){t8(e);let t=eM(e);if("string"==typeof t){let n=tU(t);if(!e1[n]||e6[n])throw tX(e),U("root node is forbidden and cannot be sanitized in-place")}if(ni(e))throw tX(e),U("root node is clobbered and cannot be sanitized in-place");u=t1(e),tb=A()}else if(no(e))(l=(r=t7("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===ek.element&&"BODY"===l.nodeName||"HTML"===l.nodeName?r=l:r.appendChild(l),nw(r);else{if(!tu&&!tr&&!tl&&-1===e.indexOf("<"))return t&&th?eW(e):e;if(!(r=t7(e)))return tu?null:th?ej:""}r&&tc&&tY(r.firstChild);let h=c?e:r;try{c&&nw(e);let t=ne(h);for(;o=t.nextNode();)nh(o,h),nx(o,h),nl(o.content)&&ny(o.content);c&&t9(e,u)}catch(t){throw c&&(tX(e),t2(e,u)),t}finally{tb=p}if(c){if(t2(e,u))throw U("a node selected for removal could not be safely returned; refusing to sanitize in place");return tr&&nn(e),e}if(tu){if(tr&&nn(r),tp)for(s=eX.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(e2.shadowroot||e2.shadowrootmode)&&(s=eV.call(a,s,!0)),s}let f=tl?r.outerHTML:r.innerHTML;return tl&&e1["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&B(ep,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),tr&&(f=nt(f)),t&&th?eW(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tH(e),to=!0,ta=e1,ts=e2},i.clearConfig=function(){tj=null,to=!1,ta=null,ts=null,t=n,ej=""},i.isValidAttribute=function(e,t,n){tj||tH({});let r=tU(e),i=tU(t);return!("string"==typeof n&&(nb(t,n)||!tn&&B(em,n)))&&nf(r,i,n)},i.addHook=function(e,t){"function"==typeof t&&L(eJ,e)&&y(eJ[e],t)},i.removeHook=function(e,t){if(L(eJ,e)){if(void 0!==t){let n=b(eJ[e],t);return -1===n?void 0:S(eJ[e],n,1)[0]}return x(eJ[e])}},i.removeHooks=function(e){L(eJ,e)&&(eJ[e]=[])},i.removeAllHooks=function(){eJ=ey()},i}()},3352:(e,t,n)=>{n.d(t,{default:()=>a});var r=n(2115);let i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()},l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},o=(0,r.createContext)({}),a=(0,r.forwardRef)((e,t)=>{var n,a,s;let{color:c,size:u,width:p,height:h,strokeWidth:f,absoluteStrokeWidth:d,nonScalingStroke:g,className:m="",children:k,iconNode:b=[],icon:x={node:b,aliases:[],size:24},...y}=e,{size:w=24,strokeWidth:S=2,absoluteStrokeWidth:T=!1,nonScalingStroke:A=!1,color:_="currentColor",className:R=""}=null!=(n=(0,r.useContext)(o))?n:{},v=!!k||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(y),[E,z,$=[]]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){var t,n,r,o,a,s,c,u,p,h,f,d,g,m,k;let b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=null!=(r=b.attributeNames)?r:{},y=e=>{var t;return null!=(t=x[e])?t:e},w=null!=(a=null!=(o=e.size)?o:e.width)?a:l.width,S=null!=(c=null!=(s=e.size)?s:e.height)?c:l.height,T=null!=(u=null==(t=e.aliases)?void 0:t.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>"lucide-".concat(e)))?u:[],A=[...e.name?["lucide-".concat(e.name)]:[],...T],_=null!=(p=null==(n=b.className)?void 0:n.split(" ").filter(Boolean))?p:[],R=!1===b.includeDefaultClasses?i(..._):i("lucide",...A,..._),v=b.absoluteStrokeWidth?Number(null!=(h=b.strokeWidth)?h:l["stroke-width"])*Number(null!=(d=null!=(f=e.size)?f:e.width)?d:l.width)/Number(null!=(m=null!=(g=b.size)?g:b.width)?m:l.width):null!=(k=b.strokeWidth)?k:l["stroke-width"];return["svg",{...Object.entries(l).reduce((e,t)=>{let[n,r]=t;return e[y(n)]=r,e},{}),..."color"in b&&b.color&&{[y("stroke")]:b.color},..."size"in b&&null!=b.size&&{[y("width")]:b.size,[y("height")]:b.size},..."width"in b&&null!=b.width&&{[y("width")]:b.width},..."height"in b&&null!=b.height&&{[y("height")]:b.height},[y("stroke-width")]:v,...R&&{[y("class")]:R},[y("viewBox")]:"0 0 ".concat(w," ").concat(S),...!1===b.hasA11yProp?{[y("aria-hidden")]:"true"}:{},..."attributes"in b&&b.attributes},e.node.map(e=>{let[t,n,r]=e,i=b.nonScalingStroke?{[y("vector-effect")]:"non-scaling-stroke",...n}:n;return r?[t,i,r]:[t,i]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(x,{color:null!=c?c:_,width:null!=(a=null!=p?p:u)?a:w,height:null!=(s=null!=h?h:u)?s:w,strokeWidth:null!=f?f:S,absoluteStrokeWidth:null!=d?d:T,nonScalingStroke:null!=g?g:A,className:i(R,m),hasA11yProp:v,attributes:y});return(0,r.createElement)(E,{ref:t,...z},[...$.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(k)?k:[k]])})},4558:(e,t,n)=>{function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:()=>eN});var i=r(),l={exec:()=>null};function o(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function a(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(c.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var s=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),c={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,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:o(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:o(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:o(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:o(e=>RegExp(`^ {0,${e}}(?:</?(?:${x})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:o(e=>RegExp(`^ {0,${e}}>`))},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,p=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,h=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=a(h).replace(/bull/g,p).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d=a(h).replace(/bull/g,p).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,m=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,k=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=a(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,p).getRegex(),x="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",y=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,w=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",y).replace("tag",x).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),S=e=>a(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex(),T=S(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),A=S(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),_={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",A).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:k,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:w,lheading:f,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:T,table:l,text:/^[^\n]+/},R=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex(),v={..._,lheading:d,table:R,paragraph:a(g).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",R).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",x).getRegex()},E={..._,html:a(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",y).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:l,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(g).replace("hr",u).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},z=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,$=/[\p{P}\p{S}]/u,C=/[\s\p{P}\p{S}]/u,P=/[^\s\p{P}\p{S}]/u,N=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,C).getRegex(),I=/(?!~)[\p{P}\p{S}]/u,O=a(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",s?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),D=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,L=a(D,"u").replace(/punct/g,$).getRegex(),M=a(D,"u").replace(/punct/g,I).getRegex(),B=a(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,"u").replace(/openQuote/g,/[\p{Pi}\p{Ps}"']/u).replace(/punct/g,$).getRegex(),U="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j=a(U,"gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),F=a(U,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,I).getRegex(),q=a("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),H=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),W=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),Z=a(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,$).getRegex(),G=a("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,P).replace(/punctSpace/g,C).replace(/punct/g,$).getRegex(),Y=a(/\\(punct)/,"gu").replace(/punct/g,$).getRegex(),Q=a(/^<(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(),X=a(y).replace("(?:--\x3e|$)","--\x3e").getRegex(),K=a("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",X).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,J=a(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",V).getRegex(),ee=a(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",J).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),et=a(/^!?\[(label)\]\[(ref)\]/).replace("label",J).replace("ref",m).getRegex(),en=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",m).getRegex(),er=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,ei=a(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",V).getRegex(),el=a("reflink|nolink(?!\\()","g").replace("reflink",a(/^!?\[(label)\]\[(ref)\]/).replace("label",ei).replace("ref",er).getRegex()).replace("nolink",a(/^!?\[(ref)\](?:\[\])?/).replace("ref",er).getRegex()).getRegex(),eo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ea=a(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),es={_backpedal:l,anyPunctuation:Y,autolink:Q,blockSkip:O,br:z,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:l,delLDelim:l,delRDelim:l,emStrongLDelim:L,emStrongRDelimAst:j,emStrongRDelimUnd:H,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ee,nolink:en,punctuation:N,reflink:et,reflinkSearch:el,tag:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:l},ec={...es,emStrongLDelim:B,emStrongRDelimAst:q,emStrongRDelimUnd:W,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",J).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",J).getRegex()},eu={...es,emStrongRDelimAst:F,emStrongLDelim:M,delLDelim:Z,delRDelim:G,url:a(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",ea).replace("protocol",eo).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:a(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",eo).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},ep={...eu,br:a(z).replace("{2,}","*").getRegex(),text:a(eu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},eh={normal:_,gfm:v,pedantic:E},ef={normal:es,gfm:eu,breaks:ep,pedantic:ec},ed={"&":"&","<":"<",">":">",'"':""","'":"'"},eg=e=>ed[e];function em(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,eg)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,eg);return e}function ek(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch{return null}return e}function eb(e,t){let n=e.replace(c.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(c.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(c.slashPipe,"|");return n}function ex(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let l=e.charAt(r-i-1);if(l!==t||n)if(l!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function ey(e){let t=e.split(`
|
|
3
3
|
`),n=t.length-1;for(;n>=0&&c.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
4
4
|
`)}function ew(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function eS(e,t){if(-1===e.indexOf(t[0])&&-1===e.indexOf(t[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<0)return r;return n>0?-2:-1}function eT(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 eA(e,t,n,r,i){let l=t.href,o=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1"),s="!"===e[0].charAt(0);r.state.inLink=!0;let c=r.state.linkEmitted,u=r.state.inRawBlock;r.state.linkEmitted=!1;let p=r.inlineTokens(a),h=r.state.linkEmitted;if(r.state.linkEmitted=c,r.state.inLink=!1,!s){if(h){r.state.inRawBlock=u;return}r.state.linkEmitted=!0}return{type:s?"image":"link",raw:n,href:l,title:o,text:a,tokens:p}}function e_(e,t,n,r){if(!t.includes("<"))return!1;for(let i=0;i<t.length;i++){if("\\"===t[i]){i++;continue}if("`"===t[i]){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if("<"!==t[i])continue;let l=e.slice(n+i),o=r.inline.tag.exec(l)||r.inline.autolink.exec(l);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var eR=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:ey(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
|
|
5
5
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
|
|
@@ -31,7 +31,7 @@ ${c.join(`
|
|
|
31
31
|
`):[],l={type:"table",raw:ex(t[0],`
|
|
32
32
|
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?l.align.push("right"):this.rules.other.tableAlignCenter.test(e)?l.align.push("center"):this.rules.other.tableAlignLeft.test(e)?l.align.push("left"):l.align.push(null);for(let e=0;e<n.length;e++)l.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:l.align[e]});for(let e of i)l.rows.push(eb(e,l.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:l.align[t]})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:ex(t[0],`
|
|
33
33
|
`),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
|
|
34
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(!1===this.lexer.state.linkParenPossible)return;let t=this.rules.inline.link.exec(e);if(t){let n="!"===t[0].charAt(0)?2:1;if(!this.options.pedantic&&e_(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=ex(r.slice(0,-1),"\\");if((r.length-e.length)%2==0)return}else{let e=eS(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let i=t[2],l="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],l=e[3])}else l=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),eA(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r="!"===n[0].charAt(0)?2:1;if(!this.options.pedantic&&e_(e,n[1],r,this.rules))return;let i=t[ew((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "))];if(!i){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return eA(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,l,o,a=i,s=0,c=r[0][0],u=n===c,p="*"===c?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=p.exec(t));){if(!(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(o=[...l].length,r[3]||r[4]){a+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){s+=o;continue}if(u)break}if((a-=o)>0)continue;o=Math.min(o,o+a+s);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:"em",raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let c=n.slice(2,-2);return{type:"strong",raw:n,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,l,o=n,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=a.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(l=[...i].length)!==n)continue;if(r[3]||r[4]){o+=l;continue}if((o-=l)>0)continue;l=Math.min(l,l+o);let t=[...r[0]][0].length,a=e.slice(0,n+r.index+t+l),s=a.slice(n,-n);return{type:"del",raw:a,text:s,tokens:this.lexer.inlineTokens(s)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:e?t[0]:t[0].replace(c.numericCharacterReference,(e,t,n)=>{let r=void 0===t?Number.parseInt(n,16):Number.parseInt(t,10);return 0===r||r>1114111||r>=55296&&r<=57343?"�":String.fromCodePoint(r)}),escaped:e}}}},
|
|
34
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(!1===this.lexer.state.linkParenPossible)return;let t=this.rules.inline.link.exec(e);if(t){let n="!"===t[0].charAt(0)?2:1;if(!this.options.pedantic&&e_(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=ex(r.slice(0,-1),"\\");if((r.length-e.length)%2==0)return}else{let e=eS(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let i=t[2],l="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],l=e[3])}else l=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),eA(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r="!"===n[0].charAt(0)?2:1;if(!this.options.pedantic&&e_(e,n[1],r,this.rules))return;let i=t[ew((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "))];if(!i){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return eA(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,l,o,a=i,s=0,c=r[0][0],u=n===c,p="*"===c?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,t=t.slice(-1*e.length+i);null!==(r=p.exec(t));){if(!(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(o=[...l].length,r[3]||r[4]){a+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){s+=o;continue}if(u)break}if((a-=o)>0)continue;o=Math.min(o,o+a+s);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:"em",raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let c=n.slice(2,-2);return{type:"strong",raw:n,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,l,o=n,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=a.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(l=[...i].length)!==n)continue;if(r[3]||r[4]){o+=l;continue}if((o-=l)>0)continue;l=Math.min(l,l+o);let t=[...r[0]][0].length,a=e.slice(0,n+r.index+t+l),s=a.slice(n,-n);return{type:"del",raw:a,text:s,tokens:this.lexer.inlineTokens(s)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:e?t[0]:t[0].replace(c.numericCharacterReference,(e,t,n)=>{let r=void 0===t?Number.parseInt(n,16):Number.parseInt(t,10);return 0===r||r>1114111||r>=55296&&r<=57343?"�":String.fromCodePoint(r)}),escaped:e}}}},ev=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new eR,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let t={other:c,block:eh.normal,inline:ef.normal};this.options.pedantic?(t.block=eh.pedantic,t.inline=ef.pedantic):this.options.gfm&&(t.block=eh.gfm,this.options.breaks?t.inline=ef.breaks:t.inline=ef.gfm),this.tokenizer.rules=t}static get rules(){return{block:eh,inline:ef}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(c.carriageReturn,`
|
|
35
35
|
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(c.tabCharGlobal," ").replace(c.spaceLine,""));let r=1/0;for(;e;){let i;if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(this.options.extensions?.block?.some(n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);1===i.raw.length&&void 0!==n?n.raw+=`
|
|
36
36
|
`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
37
37
|
`)?"":`
|
|
@@ -45,7 +45,7 @@ ${c.join(`
|
|
|
45
45
|
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=l.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
|
|
46
46
|
`)?"":`
|
|
47
47
|
`)+i.raw,n.text+=`
|
|
48
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes("["))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&"!"!==e.charAt(n.index-1))return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf("[");if(!("!"===e.charAt(0)||!Object.hasOwn(this.tokens.links,ew(e.slice(n+1,-1))))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=n&&e.includes(")");try{return this.#e(e,t)}finally{this.state.linkParenPossible=n}}#e(e,t){let n=e;if(this.tokens.links&&e.includes("[")){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,ew(n.slice(r+1,-1))))return n;if(r>1&&"!"!==n.charAt(0)){let i=n.slice(1,r-1);if(this.linkInText(i))return"["+i.replace(e,t)+"]["+"a".repeat(n.length-r-2)+"]"}return"["+"a".repeat(n.length-2)+"]"};n=n.replace(e,t)}n=(n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>"+".repeat(e.length))).replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+"["+"a".repeat(e.length-r-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i="",l=1/0;for(;e;){let o;if(e.length<l)l=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(r||(i=""),r=!1,this.options.extensions?.inline?.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if((o=this.tokenizer.escape(e))||(o=this.tokenizer.tag(e))||(o=this.tokenizer.link(e))){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);"text"===o.type&&n?.type==="text"?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if((o=this.tokenizer.emStrong(e,n,i))||(o=this.tokenizer.codespan(e))||(o=this.tokenizer.br(e))||(o=this.tokenizer.del(e,n,i))||(o=this.tokenizer.autolink(e))||!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let a=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(a)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw Error(t)}},
|
|
48
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes("["))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&"!"!==e.charAt(n.index-1))return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf("[");if(!("!"===e.charAt(0)||!Object.hasOwn(this.tokens.links,ew(e.slice(n+1,-1))))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=n&&e.includes(")");try{return this.#e(e,t)}finally{this.state.linkParenPossible=n}}#e(e,t){let n=e;if(this.tokens.links&&e.includes("[")){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,ew(n.slice(r+1,-1))))return n;if(r>1&&"!"!==n.charAt(0)){let i=n.slice(1,r-1);if(this.linkInText(i))return"["+i.replace(e,t)+"]["+"a".repeat(n.length-r-2)+"]"}return"["+"a".repeat(n.length-2)+"]"};n=n.replace(e,t)}n=(n=n.replace(this.tokenizer.rules.inline.anyPunctuation,e=>"+".repeat(e.length))).replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+"["+"a".repeat(e.length-r-2)+"]"}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i="",l=1/0;for(;e;){let o;if(e.length<l)l=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(r||(i=""),r=!1,this.options.extensions?.inline?.some(n=>!!(o=n.call({lexer:this},e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)))continue;if((o=this.tokenizer.escape(e))||(o=this.tokenizer.tag(e))||(o=this.tokenizer.link(e))){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);"text"===o.type&&n?.type==="text"?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if((o=this.tokenizer.emStrong(e,n,i))||(o=this.tokenizer.codespan(e))||(o=this.tokenizer.br(e))||(o=this.tokenizer.del(e,n,i))||(o=this.tokenizer.autolink(e))||!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let a=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(a)){e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw Error(t)}},eE=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(c.notSpaceStart)?.[0],i=e?e.replace(c.endingNewline,"")+`
|
|
49
49
|
`:"";return r?'<pre><code class="language-'+em(r)+'">'+(n?i:em(i,!0))+`</code></pre>
|
|
50
50
|
`:"<pre><code>"+(n?i:em(i,!0))+`</code></pre>
|
|
51
51
|
`}blockquote({tokens:e}){return`<blockquote>
|
|
@@ -63,5 +63,5 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
63
63
|
`}tablerow({text:e}){return`<tr>
|
|
64
64
|
${e}</tr>
|
|
65
65
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
66
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${em(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let l=i?em(n,!0):this.parser.parseInline(r),o=ek(e);if(null===o)return l;let a='<a href="'+(e=em(o,i))+'"';return t&&(a+=' title="'+em(t)+'"'),a+=">"+l+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=ek(e);if(null===i)return em(n);e=i;let l=`<img src="${em(e)}" alt="${em(n)}"`;return t&&(l+=` title="${em(t)}"`),l+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:em(e.text)}},ez=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},e$=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new
|
|
67
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+em(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function
|
|
66
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${em(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let l=i?em(n,!0):this.parser.parseInline(r),o=ek(e);if(null===o)return l;let a='<a href="'+(e=em(o,i))+'"';return t&&(a+=' title="'+em(t)+'"'),a+=">"+l+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=ek(e);if(null===i)return em(n);e=i;let l=`<img src="${em(e)}" alt="${em(n)}"`;return t&&(l+=` title="${em(t)}"`),l+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:em(e.text)}},ez=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},e$=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new eE,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ez}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(r.type)){t+=e||"";continue}}switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},eC=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ev.lex:ev.lexInline}provideParser(e=this.block){return e?e$.parse:e$.parseInline}},eP=new class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=e$;Renderer=eE;TextRenderer=ez;Lexer=ev;Tokenizer=eR;Hooks=eC;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new eE(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new eR(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eC;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];eC.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&eC.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let l=r.call(t,e);return i.call(t,l)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ev.lex(e,t??this.defaults)}parser(e,t){return e$.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},l=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return l(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer(e):e?ev.lex:ev.lexInline)(n,i),l=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(l,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser(e):e?e$.parse:e$.parseInline)(l,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(l);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?ev.lex:ev.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?e$.parse:e$.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return l(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
67
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+em(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function eN(e,t){return eP.parse(e,t)}eN.options=eN.setOptions=function(e){return eP.setOptions(e),eN.defaults=eP.defaults,i=eN.defaults,eN},eN.getDefaults=r,eN.defaults=i,eN.use=function(...e){return eP.use(...e),eN.defaults=eP.defaults,i=eN.defaults,eN},eN.walkTokens=function(e,t){return eP.walkTokens(e,t)},eN.parseInline=eP.parseInline,eN.Parser=e$,eN.parser=e$.parse,eN.Renderer=eE,eN.TextRenderer=ez,eN.Lexer=ev,eN.lexer=ev.lex,eN.Tokenizer=eR,eN.Hooks=eC,eN.parse=eN,eN.options,eN.setOptions,eN.walkTokens,eN.parseInline,e$.parse,ev.lex}}]);
|